2012年6月18日
摘要: 因为ie不支持console.log的原因 封装了一层 代码如下function debug(){ window.console && console.log.apply(null , arguments);}FF下正常 chrome下把错uncaught typeerror illegal invocation原因是console.log的运行上下文要求是console不能是其它任何别的objectconsole.info.call(this,"stuff")TypeError:Illegal invocationconsole.info.call(con 阅读全文
posted @ 2012-06-18 12:22 雨弓 阅读(2325) 评论(0) 推荐(1) 编辑
  2012年6月6日
摘要: 新发现的网站 适合我这种php转js的 呵呵http://phpjs.org/functions/index 阅读全文
posted @ 2012-06-06 15:51 雨弓 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 到新公司改攻前端了 呃 大前端 所以显示层服务端的部分我用node封装了个VC的结构 在指定的controller入口不存在的时候 writeheader 404 ,但nginx上配置的error_page 404 /404.html 怎么也不生效 ,但nodejs出错报500的时候就可以处理到 。解决方法是加个配置 proxy_intercept_errors on; 这样nginx会处理反向代理抛出的错误码,over。 阅读全文
posted @ 2012-06-06 15:43 雨弓 阅读(388) 评论(0) 推荐(0) 编辑
  2012年3月23日
摘要: http://www.sprymedia.co.uk/article/Visual+Event 阅读全文
posted @ 2012-03-23 12:31 雨弓 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 首先安装less (没有nodejs的自行搜索)npm install less -g编辑 .vimrc添加function LessToCss() let current_file = shellescape(expand('%:p')) let filename = shellescape(expand('%:r')) let command = "silent !lessc " . current_file . " ../css/" . filename .".css" execute comma 阅读全文
posted @ 2012-03-23 10:06 雨弓 阅读(412) 评论(0) 推荐(0) 编辑
  2012年2月7日
摘要: make 的时候遇到ImportError: No module named bz2yum install bzip2-devel然后需要重新编译Python - -然后继续就可以了 阅读全文
posted @ 2012-02-07 12:52 雨弓 阅读(270) 评论(0) 推荐(0) 编辑
  2012年2月6日
摘要: 用nc命令操作memcached1)存储数据:printf “set key 0 10 6\r\nresult\r\n” |nc 192.168.2.34 112112)获取数据:printf “get key\r\n” |nc 192.168.2.34 112113)删除数据:printf “delete key\r\n” |nc 192.168.2.34 112114)查看状态:printf “stats\r\n” |nc 192.168.2.34 112115)模拟top命令查看状态:watch “echo stats” |nc 192.168.2.34 112116)清空缓存:prin 阅读全文
posted @ 2012-02-06 17:01 雨弓 阅读(2785) 评论(0) 推荐(0) 编辑
  2012年1月31日
摘要: 不知道zencoding的去往这里http://www.appinn.com/zen-coding/其实安装非常简单 ,但是网上的说法不是针对eclips就是针对老版本aptana的 在 studio3这个版本的安装方法是这样的zen coding for aptana studio 3方法:菜单-帮助-安装新软件-添加-输入地址名称,等待加载,选择就可以了.安装地址:http://zen-coding.ru/eclipse/updates/重启ide后 新建个文件 输入div#header>ul.navigation>li*4>acommand + e 展开so cool 阅读全文
posted @ 2012-01-31 19:40 雨弓 阅读(707) 评论(0) 推荐(0) 编辑
  2012年1月29日
摘要: http://www.subversion.org.cn/svnbook/1.2/svn.intro.install.htmlhttp://wiki.greenstone.org/wiki/index.php/Install_SVN_on_Linuxhttp://jijian91.com/blog20061020/svn-subversion-install-configure.htmlwgethttp://labs.renren.com/apache-mirror/subversion/subversion-1.7.1.tar.gzwgethttp://labs.renren.com/apa 阅读全文
posted @ 2012-01-29 18:02 雨弓 阅读(391) 评论(0) 推荐(1) 编辑
摘要: http://www.subversion.org.cn/svnbook/1.2/svn.intro.install.htmlhttp://wiki.greenstone.org/wiki/index.php/Install_SVN_on_Linuxhttp://jijian91.com/blog20061020/svn-subversion-install-configure.htmlwgethttp://labs.renren.com/apache-mirror/subversion/subversion-1.7.1.tar.gzwgethttp://labs.renren.com/apa 阅读全文
posted @ 2012-01-29 17:43 雨弓 阅读(572) 评论(0) 推荐(0) 编辑