码迷,mamicode.com
首页 >  
搜索关键字:time    ( 52982个结果
php中将数据库中time由String改为时间戳
1 $uid, "PWD"=>$pwd, "Database"=>"LocationAnalysisDatabase");10 11 $conn = sqlsrv_connect( $serverName, $connectionInfo);12 13 if( $conn == false){14....
分类:数据库   时间:2014-05-16 04:39:58    阅读次数:360
倒计时
Using UnityEngine;public class TimeDela:MonoBehavior{ float myScencons=0; public long time=100; void Updata(){ myScencons+=Time.deltaTime; if(myScenco...
分类:其他好文   时间:2014-05-16 04:38:42    阅读次数:235
代码艺术 CountDownTimer
/** * Schedule a countdown until a time in the future, with regular notifications on intervals along the way. * * Example of showing a 30 second count...
分类:其他好文   时间:2014-05-16 04:21:02    阅读次数:311
几个常用ORACLE运维监控的SQL语句
1.消耗CPUSELECT a.CPU_TIME, --CPU时间 百万分之一(微秒) a.OPTIMIZER_MODE,--优化方式 a.EXECUTIONS,--执行次数 a.DISK_READS,--读盘次数 a.SHARABLE_MEM,--占用shared pool...
分类:数据库   时间:2014-05-16 04:07:52    阅读次数:419
CF 27E Number With The Given Amount Of Divisors
A - Number With The Given Amount Of Divisors Time Limit:2000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64u Submit Status Description Given the number n, find the smallest...
分类:其他好文   时间:2014-05-15 13:31:36    阅读次数:343
pexpect练习实例--批量执行远程服务器上的指定脚本
经过几天的学习,pexpect模块对于linux下运维脚本编写属实有用,下面写个脚本检验下学习效果。#!/usr/bin/envpython #coding=utf-8 #远程执行服务器上的脚本 importsys,time,os,multiprocessing try: importpexpect exceptImportError: print""" Youmustinstallpexpectmodule "..
分类:其他好文   时间:2014-05-15 12:55:28    阅读次数:260
MySQL内存参数及调整
1.慢查询日志:slow_launch_time=2查询大于某个时间的值(单位:s)slow_query_log=on/off开启关闭慢查询日志slow_query_log_file=/opt/data/host-slow.log慢查询日志位置2.连接数:max_connectionsMySQL最大连接数back_log当连接数满了后,设置一个值,允许多少个连接进入等待堆..
分类:数据库   时间:2014-05-15 12:44:41    阅读次数:385
优化脚本
第一步vim/etc/sysctl.conf net.ipv4.tcp_keepalive_time=1800 net.ipv4.tcp_keepalive_probes=5 net.ipv4.tcp_keepalive_intvl=15 net.core.rmem_max=167772160 net.core.wmem_max=167772160 net.ipv4.tcp_rmem=409687380167772160 net.ipv4.tcp_wmem=409665536167772160 net...
分类:其他好文   时间:2014-05-15 12:32:43    阅读次数:248
计算公历
void GregorianDay(struct rtc_time * tm){ int leapsToDate; int lastYear; int day; int MonthOffset[] = { 0,31,59,90,120,151,181,212,243,273,304,334 }; l...
分类:其他好文   时间:2014-05-15 11:38:36    阅读次数:488
小鑫与小伙伴
小鑫与小伙伴 Time Limit: 1000ms   Memory limit: 65536K  有疑问?点这里^_^ 题目描述 这天,小鑫决定与他的小伙伴们玩一个游戏。 游戏规则是这样的:他们将会按照随机顺序围坐成一个圈,顺时针从1开始依次编号。之后从1号开始沿顺时针报数。当数到第m个人时那个人就要退出游戏。这样进行下去一直到最后只剩下一个人。它就是...
分类:其他好文   时间:2014-05-15 08:08:49    阅读次数:304
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!