上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 导出excel/** * 以下是使用示例,对于以 //// 开头的行是不同的可选方式,请根据实际需要 * 打开对应行的注释。 * 如果使用 Excel5 ,输出的内容应该是GBK编码。 *///require_once 'PHPExcel.php'; // uncomment ////require_once 'PHPExcel/Writer/Excel5.php'; // 用于其他低版本xls // or ////require_once 'PHPExcel/Writer/Excel2007.php'; // 用于 excel-2007 格式 阅读全文
posted @ 2013-04-10 23:23 firesnow 阅读(8944) 评论(1) 推荐(0)
摘要: html代码 用户名 跟随 新外汇指数 月均交易(手) 账户余额($) 近一个月收益 当前持仓(单) ... 阅读全文
posted @ 2013-04-07 23:36 firesnow 阅读(47711) 评论(1) 推荐(5)
摘要: 在ubuntu中简单安装运行SSH服务。SSH程序有客户端openssh-client和服务端openssh-server想登陆别的电脑SSH,只需安装openssh-client,ubuntu有默认安装。安装openssh-client:sudo apt-get install openssh-client要让本机开放SSH服务就需要安装openssh-server:sudo apt-get install openssh-server查看sshserver是否运行:ps -e |grep ssh运行sshserver:sudo /etc/init.d/ssh startssh-server 阅读全文
posted @ 2013-04-03 00:18 firesnow 阅读(433) 评论(0) 推荐(0)
摘要: 由于硬件兼容性的原因,一部分计算机在每次启动时,屏幕亮度都会重置为最高或者最低。用户可能需要每次开机的时候都重新将亮度调整到合适的值,非常不便。解决办法:用命令行查询亮度的最大值(笔记本液晶显示器一般为7)cat /sys/class/backlight/acpi_video0/max_brightness打开/etc/rc.localsudo gedit /etc/rc.local在“exit 0”前面一行添加一行文字echo 4 > /sys/class/backlight/acpi_video0/brightness #4代表亮度值,可以调节为您认为合适的值 阅读全文
posted @ 2013-04-01 22:40 firesnow 阅读(292) 评论(0) 推荐(0)
摘要: http://marshal.easymorse.com/archives/951 阅读全文
posted @ 2013-04-01 22:31 firesnow 阅读(108) 评论(0) 推荐(0)
摘要: import logginglogger = logging.getLogger("hello") # 生成一个名为hello日志对象 对象名可以为空logfile = '/home/x/mt4client/process_node.log'# logfile是一个全局变量,它就是一个文件名# 生成一个Handler。logging支持许多Handler,# 象FileHandler, SocketHandler, SMTPHandler等,我由于要写# 文件就使用了FileHandler。 handler = logging.FileHandler(log 阅读全文
posted @ 2013-04-01 22:29 firesnow 阅读(207) 评论(0) 推荐(0)
摘要: mysqladmin -uroot -p status 阅读全文
posted @ 2013-04-01 16:33 firesnow 阅读(125) 评论(0) 推荐(0)
摘要: Select CONVERT(varchar(100), '2013-01-01 01:01:01', 20)详细点这里 阅读全文
posted @ 2013-03-26 11:13 firesnow 阅读(131) 评论(0) 推荐(0)
摘要: 1.下载apt-get install supervisor2.修改配置文件vim /etc/supervisor/supervisord.conf [program:process_node]command=python /home/x/mt4client/process_node.py -n ss1@127.0.0.1 -c 123456 2>&1 &autorstart=truestdout_logfile=/home/x/mt4client/log/process_node.log3.启动/etc/init.d/supervisor start启动的时候遇到错误S 阅读全文
posted @ 2013-03-19 18:30 firesnow 阅读(10166) 评论(0) 推荐(0)
摘要: Python MySQLdb escape_string 转义函数php mysql_escape_string 阅读全文
posted @ 2013-03-15 11:45 firesnow 阅读(252) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 9 下一页