码迷,mamicode.com
首页 >  
搜索关键字:current    ( 7130个结果
更新数据时如何使时间自动更新
更新数据时不能使用time类型使用timestamp类型才可以自动获取当前系统时间TIMESTAMP的变体1,TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP 在创建新记录和修改现有记录的时候都对这个数据列刷新2,TIME...
分类:其他好文   时间:2014-05-26 22:57:27    阅读次数:290
python模块与包加载机制
模块的搜索路径:When a module namedspamis imported, the interpreter searches for a file namedspam.pyin the current directory, and then in the list of director...
分类:编程语言   时间:2014-05-26 15:09:11    阅读次数:367
[Scheme]Understanding the Yin-Yang Puzzle
这题目确实比较杀脑细胞...原题:1 (let* ((yin2 ((lambda (cc) (display "@") cc) (call-with-current-continuation (lambda (c) c))))3 (yang4 ((l...
分类:其他好文   时间:2014-05-26 12:13:09    阅读次数:424
查看一个进程打开的文件都有哪些
step 1pfile pidstep 2根据 inode number 查找 比如bash-2.05# pfiles 2605326053: python Current rlimit: 256 file descriptors 0: S_IFCHR mode:0620 dev:32,0 ...
分类:其他好文   时间:2014-05-26 07:30:09    阅读次数:329
Algorithm for Maximum Subsequence Sum z
MSS(Array[],N)//Where N is the number of elements in array{sum=0; //current summax-sum=0;//Maximum Sumseq-start=0;//start of the subsequenceseq-end=0;...
分类:其他好文   时间:2014-05-23 11:03:58    阅读次数:221
asp.net或javascript判断是否手机访问
///  /// 判断手机用户UserAgent ///  ///  private bool IsMobile() {          HttpContext context = HttpContext.Current;     if (context != null)     {         HttpRequest request = context.Request;         i...
分类:移动开发   时间:2014-05-23 01:06:25    阅读次数:258
玩转VC++实现程序开机运行及注册表修改
一、方案 要实现Windows程序开机运行,需要在注册表中相关位置加入键值。所谓的键可以是你程序的名称,值就是你程序的所在目录。所谓的相关位置有两处: 主键HKEY_LOCAL_MACHINE,Software\Microsoft\Windows\CurrentVersion\Run下。 主键HKEY_CURRENT_USER, Software\Micros...
分类:编程语言   时间:2014-05-22 22:39:12    阅读次数:460
Win8.1设置窗口背景颜色为护眼色
注册表法window+R ---》输入regedit(点击确定后进入注册表编辑器)需要修改以下两个地方,重启电脑生效:[HKEY_CURRENT_USER\Control Panel\Colors] "Window"="202 234 206" [HKEY_LOCAL_MACHINE\SOFTWA....
分类:Windows程序   时间:2014-05-22 14:21:03    阅读次数:410
linux内核中驱动开发常见的类似多态
#include #include struct test { char name[20]; void (*func)(char *); }; void tttfunc(char *name) { printf("current is %d\n",__LINE__); printf("%s\n",name); } int main() { struct test ttt= { .n...
分类:系统相关   时间:2014-05-22 11:25:09    阅读次数:380
Windows下字符编码转换
// // get current time, yyyyMMddhhmmss // char* curtime( char *p, uint len ) { if( NULL != p ) { time_t tt; time( &tt ); tm* ptm = localtime( &tt ); memset( p, 0, sizeof(char) * len ); spr...
分类:Windows程序   时间:2014-05-18 18:47:20    阅读次数:407
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!