摘要: If you have forgot the MySQL root password, can’t remember or want to break in….. you can reset the mysql database password from the command line in e 阅读全文
posted @ 2017-06-06 10:36 river-lee 阅读(381) 评论(0) 推荐(0) 编辑
摘要: Introduction Surprisingly, a topic of named function expressions doesn’t seem to be covered well enough on the web. This is probably why there are so 阅读全文
posted @ 2017-04-20 10:16 river-lee 阅读(379) 评论(0) 推荐(0) 编辑
摘要: /** 文字截取* create by:river* create date : 2014/08/15* 文字截取两种方式截取,按字数,按行数* 分别通过相应自定义属性* data-textflow-words 字数* data-textflow-rows 行数*/Ymt.add(function... 阅读全文
posted @ 2015-09-15 21:33 river-lee 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 所谓的Hack就是只有特定浏览器才能识别这段hack代码。Hack 不是什么好东西,除非没有办法,我们尽量还是不要用着玩意。 下面是各个浏览器的CSS Hack 列表。Firefox 浏览器@-moz-document url-prefix() { .selector { property:... 阅读全文
posted @ 2015-06-15 23:50 river-lee 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 这篇文章主要记录作者如何在FreeBSD上构架Nginx服务器。作者采用下载该程序的一个源代码包手动编译的方法,而不是使用包管理工具。这样做有两个原因:首先包质量不能保证,或无效或版本旧;其次需要在编译时对多种重要的选项进行配置。另外,相关FreeBSD初始优化见博主之前的博文。1GCCNginx是... 阅读全文
posted @ 2015-06-15 23:18 river-lee 阅读(884) 评论(0) 推荐(0) 编辑
摘要: 综合/资源frontend-dev-bookmarks一个巨大的前端开发资源清单。star:15000front-end-collect分享自己长期关注的前端开发相关的优秀网站、博客、以及活跃开发者。star:860Front-end-Interview-questions史上最全前端开发面试问题及... 阅读全文
posted @ 2015-06-03 00:10 river-lee 阅读(605) 评论(0) 推荐(1) 编辑
摘要: 最近发现android在4.4.3上面出现很多怪异的现象,现在虽然没有找到原因和解决方案,但是突然间找到一个css hack写法;button{ display:none; width:$rem*45; height:$rem*33; //我这... 阅读全文
posted @ 2015-05-11 15:40 river-lee 阅读(549) 评论(0) 推荐(0) 编辑
摘要: var Person = function(name) {};Person.prototype.say = function() { console.log("Person say");}Person.prototype.age = 20;var Man = function() {};Man.pr... 阅读全文
posted @ 2015-05-07 00:47 river-lee 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 因为最近公司线上node项目出一些不稳定的情况,考虑在这方面能不能做进一步的优化,既然要做优化首先要知道问题出在哪里?因为暂无法定位是node层问题还是api层出现问题,由于在开发环境小并发量程序运行都是很稳定的,后面考虑使用一些压力工具去验证在高并发的时候线上的问题,这里我首选siege来做压... 阅读全文
posted @ 2015-04-03 18:13 river-lee 阅读(1295) 评论(0) 推荐(0) 编辑
摘要: 今天在centos上安装mysql,添加用户一直报Access denied for user 'root'@'localhost' (using password: YES),试过了网上各种方法,mysql -uroot -p同样都是无济于事,后来我打开mysql的配置文件/etc/my.cnf中... 阅读全文
posted @ 2015-03-22 00:29 river-lee 阅读(222) 评论(0) 推荐(0) 编辑