在这篇文章中,提到了Master进程对信号的处理函数,其中有两个信号比较有意思。 SIGHUP:用来热更新(Reload)应用 SIGUSR2:用来在线升级(upgrade on the fly)gunicorn 下面来详细看一下: SIGHUP: Reload the configuration, ...
分类:
其他好文 时间:
2017-01-20 11:10:44
阅读次数:
223
功能说明 Sed是Stream Editor(流编辑器)缩写,是操作、过滤和转换文本内容的强大工具。常用功能有增删改查,过滤,取行。 语法格式 命令执行流程 概括流程:Sed软件从文件或管道中读取一行,处理一行,输出一行;再读取一行,再处理一行,再输出一行…… 模式空间:sed软件内部的一个临时缓存 ...
分类:
其他好文 时间:
2017-01-20 11:09:32
阅读次数:
281
关于堆和栈已经是程序员的一个月经话题,大部分有是基于os层来聊的。 那么,在赤裸裸的单片机下的堆和栈是什么样的分布呢?以下是网摘: 刚接手STM32时,你只编写一个 int main() { while(1); } BUILD://Program Size: Code=340 RO-data=252 ...
分类:
其他好文 时间:
2017-01-20 11:10:40
阅读次数:
204
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>无标题页</title> </head><body> <form id="form1" runat="server"> <asp:ScriptManager ...
分类:
其他好文 时间:
2017-01-20 11:10:01
阅读次数:
160
public static class CloneExtend { /// <summary> /// 深复制 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="sender"></param> /// <ret ...
分类:
其他好文 时间:
2017-01-20 11:07:43
阅读次数:
188
public class EmailConfig { public static readonly string ServerAddress = ConfigurationManager.AppSettings["ServerAddress"]; public static readonly str ...
分类:
其他好文 时间:
2017-01-20 11:07:19
阅读次数:
155
/// <summary> /// 此类作用:数据仓库,数据基础操作 /// </summary> /// <typeparam name="TEntity">实体</typeparam> /// <remarks> /// zhangqc 2016.08.08 新建 /// </remarks> ...
分类:
其他好文 时间:
2017-01-20 11:05:59
阅读次数:
186
shell脚本实现ssh自动登录远程服务器示例: #!/usr/bin/expect spawn ssh root@192.168.22.194 expect "*password:" send "123\r" expect "*#" interact 原文链接:http://www.xuanhao ...
分类:
其他好文 时间:
2017-01-20 11:07:10
阅读次数:
195
/// <summary> /// 此类作用:拦截所有经过IOC的方法,日志在Debug模式下记录传入参数,以及产生的错误 /// 日志在Release模式下,只有出错的情况下才会记录传入参数和错误信息 /// </summary> public class ExceptionLogBehavior ...
分类:
其他好文 时间:
2017-01-20 11:04:05
阅读次数:
170
在多表联合查询的时候,如果我们查看它的执行计划,就会发现里面有多表之间的连接方式。 之前打算在sqlplus中用执行计划的,但是格式看起来有点乱,就用Toad 做了3个截图。 从3张图里我们看到了几点信息: 1. CBO 使用的ALL_ROWS模式 Oracle Optimizer CBO RBO ...
分类:
其他好文 时间:
2017-01-20 11:05:42
阅读次数:
299
package com.smbea.demo.excel; import java.awt.image.BufferedImage; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileNotFo... ...
分类:
其他好文 时间:
2017-01-20 11:01:57
阅读次数:
288
private String[] getDateArrByWeek(Date startDate, Date endDate) { Calendar c = Calendar.getInstance(); List<String> list = new ArrayList<String>(); Si ...
分类:
其他好文 时间:
2017-01-20 11:01:55
阅读次数:
150
/// <summary> /// 自定义比较器 ZhangQC 2016.11.29 /// </summary> /// <typeparam name="T"></typeparam> /// <typeparam name="TV"></typeparam> public class Com ...
分类:
其他好文 时间:
2017-01-20 10:59:56
阅读次数:
174
public class ImageDraw { public Image NewBitmap(int w, int h, float dpix, float dpiy) { var rt = new Bitmap(w, h); rt.SetResolution(dpix, dpiy); retur ...
分类:
其他好文 时间:
2017-01-20 10:59:53
阅读次数:
182
The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul ...
分类:
其他好文 时间:
2017-01-20 10:58:16
阅读次数:
142