更新数据时不能使用time类型使用timestamp类型才可以自动获取当前系统时间TIMESTAMP的变体1,TIMESTAMP DEFAULT
CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP 在创建新记录和修改现有记录的时候都对这个数据列刷新2,TIME...
分类:
其他好文 时间:
2014-05-26 22:57:27
阅读次数:
290
模块的搜索路径: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
这题目确实比较杀脑细胞...原题: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
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
///
/// 判断手机用户UserAgent
///
///
private bool IsMobile()
{
HttpContext context = HttpContext.Current;
if (context != null)
{
HttpRequest request = context.Request;
i...
分类:
移动开发 时间:
2014-05-23 01:06:25
阅读次数:
258
一、方案
要实现Windows程序开机运行,需要在注册表中相关位置加入键值。所谓的键可以是你程序的名称,值就是你程序的所在目录。所谓的相关位置有两处:
主键HKEY_LOCAL_MACHINE,Software\Microsoft\Windows\CurrentVersion\Run下。
主键HKEY_CURRENT_USER, Software\Micros...
分类:
编程语言 时间:
2014-05-22 22:39:12
阅读次数:
460
注册表法window+R
---》输入regedit(点击确定后进入注册表编辑器)需要修改以下两个地方,重启电脑生效:[HKEY_CURRENT_USER\Control
Panel\Colors] "Window"="202 234 206" [HKEY_LOCAL_MACHINE\SOFTWA....
#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
//
// 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...