结果如下: ...
分类:
其他 时间:
2017-01-20 11:10:07
收藏:
0 评论:
0 赞:
0 阅读:
110
在这篇文章中,提到了Master进程对信号的处理函数,其中有两个信号比较有意思。 SIGHUP:用来热更新(Reload)应用 SIGUSR2:用来在线升级(upgrade on the fly)gunicorn 下面来详细看一下: SIGHUP: Reload the configuration, ...
分类:
其他 时间:
2017-01-20 11:09:47
收藏:
0 评论:
0 赞:
0 阅读:
207
#列表中每个数值乘三 vec = [2,4,6] print([3*x for x in vec]) #[6, 12, 18] #if过滤器 print([3*x for x in vec if x > 3]) #[12, 18] #嵌套 var1 = [1,2,3] var2 = [4,5,6] ... ...
分类:
其他 时间:
2017-01-20 11:09:09
收藏:
0 评论:
0 赞:
0 阅读:
132
功能说明 Sed是Stream Editor(流编辑器)缩写,是操作、过滤和转换文本内容的强大工具。常用功能有增删改查,过滤,取行。 语法格式 命令执行流程 概括流程:Sed软件从文件或管道中读取一行,处理一行,输出一行;再读取一行,再处理一行,再输出一行…… 模式空间:sed软件内部的一个临时缓存 ...
分类:
其他 时间:
2017-01-20 11:08:46
收藏:
0 评论:
0 赞:
0 阅读:
188
关于堆和栈已经是程序员的一个月经话题,大部分有是基于os层来聊的。 那么,在赤裸裸的单片机下的堆和栈是什么样的分布呢?以下是网摘: 刚接手STM32时,你只编写一个 int main() { while(1); } BUILD://Program Size: Code=340 RO-data=252 ...
分类:
其他 时间:
2017-01-20 11:07:57
收藏:
0 评论:
0 赞:
0 阅读:
282
<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:07:26
收藏:
0 评论:
0 赞:
0 阅读:
193
public static class CloneExtend { /// <summary> /// 深复制 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="sender"></param> /// <ret ...
分类:
其他 时间:
2017-01-20 11:07:06
收藏:
0 评论:
0 赞:
0 阅读:
123
public class EmailConfig { public static readonly string ServerAddress = ConfigurationManager.AppSettings["ServerAddress"]; public static readonly str ...
分类:
其他 时间:
2017-01-20 11:06:28
收藏:
0 评论:
0 赞:
0 阅读:
231
/// <summary> /// 此类作用:数据仓库,数据基础操作 /// </summary> /// <typeparam name="TEntity">实体</typeparam> /// <remarks> /// zhangqc 2016.08.08 新建 /// </remarks> ...
分类:
其他 时间:
2017-01-20 11:05:34
收藏:
0 评论:
0 赞:
0 阅读:
192
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:03:55
收藏:
0 评论:
0 赞:
0 阅读:
184
/// <summary> /// 此类作用:拦截所有经过IOC的方法,日志在Debug模式下记录传入参数,以及产生的错误 /// 日志在Release模式下,只有出错的情况下才会记录传入参数和错误信息 /// </summary> public class ExceptionLogBehavior ...
分类:
其他 时间:
2017-01-20 11:03:39
收藏:
0 评论:
0 赞:
0 阅读:
213
在多表联合查询的时候,如果我们查看它的执行计划,就会发现里面有多表之间的连接方式。 之前打算在sqlplus中用执行计划的,但是格式看起来有点乱,就用Toad 做了3个截图。 从3张图里我们看到了几点信息: 1. CBO 使用的ALL_ROWS模式 Oracle Optimizer CBO RBO ...
分类:
其他 时间:
2017-01-20 11:03:25
收藏:
0 评论:
0 赞:
0 阅读:
180
1、里面的参数定义不一样 substring(x,y) substr(x,y) ; substring里面的x,y是位置,相当于坐标,substr里的x是位置,y是长度length 特殊备注: x和y都是从0开始,只是substring里面的y的位置会多1。(好像和在北大青鸟老师讲得有出入) ...
分类:
其他 时间:
2017-01-20 11:02:00
收藏:
0 评论:
0 赞:
0 阅读:
140
车载后视镜机器,Liinux + qtUI形式,前后双路,前一天晚上开机用gdb run DvrUI,第二天早上回来一看,机器绿屏卡死了,录像预览停止刷新了,sd录像也停止了。点击无任何反应。 看gdb打印显示“Program terminated with signal SIGKILL,Kille ...
分类:
其他 时间:
2017-01-20 11:00:38
收藏:
0 评论:
0 赞:
0 阅读:
3219
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:00:18
收藏:
0 评论:
0 赞:
0 阅读:
206
private String[] getDateArrByWeek(Date startDate, Date endDate) { Calendar c = Calendar.getInstance(); List<String> list = new ArrayList<String>(); Si ...
分类:
其他 时间:
2017-01-20 10:59:55
收藏:
0 评论:
0 赞:
0 阅读:
238
/// <summary> /// 自定义比较器 ZhangQC 2016.11.29 /// </summary> /// <typeparam name="T"></typeparam> /// <typeparam name="TV"></typeparam> public class Com ...
分类:
其他 时间:
2017-01-20 10:59:09
收藏:
0 评论:
0 赞:
0 阅读:
135
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:58:40
收藏:
0 评论:
0 赞:
0 阅读:
288
方式一 采用LoadLibraryEx 若DLL不在调用方的同一目录下,可以用LoadLibrary(L"DLL绝对路径")加载。但若调用的DLL内部又调用另外一个DLL,此时调用仍会失败。解决办法是用LoadLibraryEx:eg: LoadLibraryEx("DLL绝对路径", NULL, ...
分类:
其他 时间:
2017-01-20 10:57:48
收藏:
0 评论:
0 赞:
0 阅读:
318
虽然A了但是完全不懂这题在干什么。 ...
分类:
其他 时间:
2017-01-20 10:57:28
收藏:
0 评论:
0 赞:
0 阅读:
135