It’s a major release this time, Horizon 6.0 is out. You can get to the downloadshere. As always, here’s theWhat’s New from the release notes:This rele...
分类:
其他好文 时间:
2014-07-06 22:43:46
阅读次数:
244
用途用户控件包含Time控件和一个lable控件,一个ToolStrip控件,每隔一秒显示一次时间 1. 生成用户控件 新建一个项目类型为用户控件 注意定义类名,此类名为以后工具箱中显示的名字,暂且定义此处类名为LabelTime. 文件名称为UserControl1.cs(无关紧要,vs引用dll...
主要备忘:DATE_FORMAT 函数1:微博对比图(按日统计)SELECT DATE_FORMAT(tw.article_publish_time, '%Y-%m-%d'),count(page_id) FROM `tab_weibo` tw where tw.page_id =100206507...
分类:
数据库 时间:
2014-07-06 22:37:48
阅读次数:
291
Linux环境: 无论操作系统何时启动一个新程序,参数argc和argv都会被设置并传递给main(即使main函数未声明参数,此时只是不能使用这些参数)。这些参数通常由另一个程序提供,一般是shell,它要求操作系统启动该新程序。shell会接受用户输入的命令行,将命令行分解成单词,然后把这些单词...
分类:
系统相关 时间:
2014-07-06 21:43:20
阅读次数:
272
Sort a linked list in O(n log n) time using constant space complexity.merge sort、heap sort和quick sort都是O(nlgn),但是mergesort和quicksort都是递归的,不是constant s...
分类:
其他好文 时间:
2014-07-06 21:07:41
阅读次数:
210
shell类型:登录shell(需要密码的)正常通过某一个终端来登录,需要输入用户名和密码。使用su-username使用su-lusername2.非登录shell(不需要密码)suusername图形终端下打开终端窗口自动执行的shell脚本BASH的配置文件:全局配置使用的配置文件:/etc/prifile
/etc/profile...
分类:
其他好文 时间:
2014-07-04 06:33:25
阅读次数:
246
#!/bin/bashwhiletruedo badip=$(lastb-i-a|awk‘/ssh:notty/{print$NF}‘|sort|uniq-c|awk‘($1>3){print$2}‘) foriin$badip do iptables-tfilter-IINPUT-s$i-ptcp--dport22-jDROP done :>/var/log/btmp sleep10sdone
分类:
移动开发 时间:
2014-07-04 06:22:09
阅读次数:
364
屌丝运维常用shell列出你最常用的10条shellhistory|awk‘{a[$2]++}END{for(iina){printa[i]""i}}‘|sort-rn|headhistory|awk‘{a[$4]++}END{for(iina){printa[$i]""i}}‘|sort-rn|headgrep-v"#".bash_history|awk‘{++a[$1]}END{for(iina)printi,a[i]|"sort-k2-nr..
分类:
其他好文 时间:
2014-07-04 06:19:01
阅读次数:
253
na=int(input("开奖时间(如:20140630):\n"))
importtime
nb=int(time.strftime("%Y%m%d"))
#获取当前时间的年月日
#print(nb)
#获取键盘输入
a=True
whilea:
ifnb<na:
importos
os.system("pythonshuangseqou.py")
a=False
#如果条件成立则运行另一个python程序,并结束..
分类:
编程语言 时间:
2014-07-04 06:12:48
阅读次数:
303
一个普通用户在Shell下执行了一条命令,这背后发生了什么事情,是个人的一些总结,如果有不对的地方欢迎搭建指正,谢谢!touch/tmp/test.txt#######################################################################################tom在Shell中执行这条命令,Shell将命令发..
分类:
系统相关 时间:
2014-07-04 06:09:45
阅读次数:
250