浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  12653 随笔 :: 2 文章 :: 617 评论 :: 609万 阅读

05 2010 档案

摘要:when you use break jump out from for or while statement,if has else caluse,it will not exec,for example:>>> for i in xrange(0,11): print ielse: print "haha,%s"%i 012345678910haha,10>>&g... 阅读全文
posted @ 2010-05-31 14:48 lexus 阅读(207) 评论(0) 推荐(0) 编辑

摘要:cat 1.txt|sort|uniqreference:http://zhangyuexing.7ta.cn/Article/12289/1444/ 阅读全文
posted @ 2010-05-31 13:21 lexus 阅读(206) 评论(0) 推荐(0) 编辑

摘要:www.netcraft.com 阅读全文
posted @ 2010-05-31 11:46 lexus 阅读(167) 评论(0) 推荐(0) 编辑

摘要:1.wget 2.tar -zxvf ...tar.gz3.sudo rm -rvf /data/db4.sudo mkdir -p /data/db5.sudo ./mongod --dbpath /var/lib/mongodb/ --port 12345 or ./mongod6.reference:http://www.mongodb.org/display/DOCS/Starting+a... 阅读全文
posted @ 2010-05-31 11:04 lexus 阅读(243) 评论(0) 推荐(0) 编辑

摘要:如果只是在终端上进行日常维护,没有必要用中文 export LANG=en_US export LC_ALL=en_US 再做操作就会显示英文了 Ubuntu的server版本,支持中文意义不是很大,折腾console中文支持,还比较麻烦 referencehttp://ubuntuforums.org/showthread.php?t=934357 阅读全文
posted @ 2010-05-31 08:03 lexus 阅读(324) 评论(0) 推荐(0) 编辑

摘要:安装ubuntu server版本全记录 1、下载ubuntu 6.06 server http://mirror.lupaworld.com/ubuntu/releases/6.06/ubuntu-6.06-server-i386.iso 刻盘 2、从光驱启动后,选择install LAMP。为了方便,最好将语言选择为英文,不然在命令行模式(tty)底下将会将汉字显示为方块,设置完毕再将语言设置... 阅读全文
posted @ 2010-05-31 07:42 lexus 阅读(335) 评论(0) 推荐(0) 编辑

摘要:Ubuntu Server 9.10安装时除非特殊原因,一定要选English,这样默认的语言就是English,到后面的控制台界面上显示时就不会有问题。如果选了中文,安装 完重启后在console上会显示小方块,根本没法看命令的提示。网上分析说问题的原因是console下缺少中文字体的支持,看来中国的Linux开发 者要加油呀。reference:http://blog.csdn.net/or... 阅读全文
posted @ 2010-05-31 07:40 lexus 阅读(188) 评论(0) 推荐(0) 编辑

摘要:http://www.linuxidc.com/Linux/2007-05/4065.htmcat<=>tactac 1.txt >tac1.txttail 1.txt == head tac1.txt 阅读全文
posted @ 2010-05-31 07:34 lexus 阅读(140) 评论(0) 推荐(0) 编辑

摘要:split -l 310000 inputfile outputprefixcat a.txt,b.txt > c.txt 阅读全文
posted @ 2010-05-31 07:24 lexus 阅读(242) 评论(0) 推荐(0) 编辑

摘要:http://www.codercaste.com/2009/10/20/5-reasons-why-you-should-learn-python-programming/ 阅读全文
posted @ 2010-05-30 08:11 lexus 阅读(218) 评论(0) 推荐(1) 编辑

摘要:reference:http://blog.csdn.net/flynetcn/archive/2009/01/08/3733574.aspxcost time:24s('202.108.33.94', 0) 625('202.108.33.77', 0) 625('202.108.33.70', 0) 625('202.108.33.95', 0) 625('202.108.33.74', 0)... 阅读全文
posted @ 2010-05-29 14:31 lexus 阅读(195) 评论(0) 推荐(0) 编辑

摘要:socket.getaddrinfo("http://www.news.com",None)when you try to parser dns,can not start with http://,belows is the right waysocket.getaddrinfo("www.xx.com",None) 阅读全文
posted @ 2010-05-29 14:23 lexus 阅读(249) 评论(0) 推荐(0) 编辑

摘要:finally i got this http://ubuntuforums.org/showthread.php?t=1575in sudo /etc/environment 阅读全文
posted @ 2010-05-29 13:23 lexus 阅读(124) 评论(0) 推荐(0) 编辑

摘要:nodejs,go都有适合做爬虫的地方,不过,它们的基础设施还不够完善,我年纪也大了,暂时不想折腾,待观察这几位的发展,目前我的观点是,要做一个爬虫的健壮性还是很重要的,并不是用了非阴塞IO,或是用c写了,就行了,这是一个系统工程,环环相扣,即使你爬虫写得再好,以你目前的实力,你能租用多大的带宽,能把带宽占满就O了, 阅读全文
posted @ 2010-05-29 11:41 lexus 阅读(558) 评论(0) 推荐(0) 编辑

摘要:unset http_proxy 阅读全文
posted @ 2010-05-28 13:30 lexus 阅读(595) 评论(0) 推荐(0) 编辑

摘要:今天去医院,因为昨个洗澡耳朵进水了,医生用专业工具帮我掏耳朵,花了44米,对于屎产生比较频繁的还是要掏掏, 阅读全文
posted @ 2010-05-28 11:21 lexus 阅读(225) 评论(0) 推荐(0) 编辑

摘要:~~~ 阅读全文
posted @ 2010-05-27 13:48 lexus 阅读(159) 评论(0) 推荐(0) 编辑

摘要:如果用.net可以考虑一下db4o接着是subsonic,胡说八道,慎辩之 阅读全文
posted @ 2010-05-26 11:34 lexus 阅读(373) 评论(1) 推荐(0) 编辑

摘要:append & appendTo is an pair method,it is an opposite methode.g$("div").append("xx");put xx to all mached div"xx"can be select element such as $("h1") or plain string.$("xx").appendTo("div")move x... 阅读全文
posted @ 2010-05-26 11:08 lexus 阅读(178) 评论(0) 推荐(0) 编辑

摘要:append & appendTo is an pair method,it is an opposite methode.g$("div").append("xx");put xx to all mached div$("xx").appendTo("div")move xx element into all matched div,caution:xx must be elementr... 阅读全文
posted @ 2010-05-26 11:06 lexus 阅读(233) 评论(0) 推荐(0) 编辑

摘要:rt 阅读全文
posted @ 2010-05-24 17:04 lexus 阅读(254) 评论(0) 推荐(0) 编辑

摘要:beacuse the mac address of net adapter is changed,so you need modifiy it,the easy way is 阅读全文
posted @ 2010-05-24 09:36 lexus 阅读(174) 评论(1) 推荐(1) 编辑

摘要:i'm a totaly ubuntu & virutalbox fan,here is a record about how to deploy os on virtualbox under ubuntu serverhttp://burnz.wordpress.com/2008/09/04/how-to-setup-headless-xvm-virtualbox-on-ubuntu-s... 阅读全文
posted @ 2010-05-23 13:02 lexus 阅读(153) 评论(0) 推荐(0) 编辑

摘要:http://blog.chinaunix.net/u3/109488/showart_2138366.html1.vi ~/.bashrchttp_proxy=http://192.168.0.1:81export http_proxy#becare,didn't ""2.vi /etc/apt/apt.confAcquire::http::proxy "http://192.168.0.43:... 阅读全文
posted @ 2010-05-23 09:49 lexus 阅读(339) 评论(0) 推荐(0) 编辑

摘要:scribe,thrift from facebook,scribe is python friendly 阅读全文
posted @ 2010-05-22 23:14 lexus 阅读(190) 评论(0) 推荐(0) 编辑

摘要:我快了 阅读全文
posted @ 2010-05-22 23:08 lexus 阅读(153) 评论(0) 推荐(0) 编辑

摘要:cat 1.txt 2.txt >12.txt 阅读全文
posted @ 2010-05-22 18:30 lexus 阅读(171) 评论(0) 推荐(0) 编辑

摘要:刚开始装的时候我还吓一跳是不是搞错了,以为是专门针对oracle的版本,后来加味一下嗯应该是这样的, 阅读全文
posted @ 2010-05-22 16:31 lexus 阅读(172) 评论(0) 推荐(0) 编辑

摘要:集中式的redis比分布式的程序差,不便于扩展,它受限于内存及单cpu的问题在我的应用中突显出来, 阅读全文
posted @ 2010-05-22 11:17 lexus 阅读(148) 评论(0) 推荐(0) 编辑

摘要:测了server及desktop均如此,在80G时ok 阅读全文
posted @ 2010-05-22 11:16 lexus 阅读(258) 评论(0) 推荐(0) 编辑

摘要:tar -zcvf aa.tar.gz dirteory 阅读全文
posted @ 2010-05-22 08:46 lexus 阅读(156) 评论(0) 推荐(1) 编辑

摘要:http://hi.baidu.com/fdwm_lx/blog/item/48726e33598c1af31a4cff83.html 阅读全文
posted @ 2010-05-21 16:40 lexus 阅读(210) 评论(0) 推荐(0) 编辑

摘要:http://stackoverflow.com/questions/1031851/python-best-way-to-exchange-keys-with-values-in-a-dictionaryanswer is: 阅读全文
posted @ 2010-05-21 08:22 lexus 阅读(202) 评论(0) 推荐(0) 编辑

摘要:http://stackoverflow.com/questions/1031851/python-best-way-to-exchange-keys-with-values-in-a-dictionaryanswer is: 阅读全文
posted @ 2010-05-21 08:10 lexus 阅读(225) 评论(0) 推荐(0) 编辑

摘要:别随便升级版本,除非有一个功能是你非常非常需要的,一般来讲,升级和你没有多大关系,因为新的系统,很可能包的安装方法又不一样了,意味着你又要重新折腾一遍,而且,没几个小时下不来的。 阅读全文
posted @ 2010-05-20 16:09 lexus 阅读(139) 评论(0) 推荐(1) 编辑

摘要:install fastestmirror 阅读全文
posted @ 2010-05-20 16:07 lexus 阅读(228) 评论(0) 推荐(1) 编辑

摘要:install fastestmirror 阅读全文
posted @ 2010-05-20 15:31 lexus 阅读(208) 评论(0) 推荐(1) 编辑

摘要:i have spent 1 day to find this issue,it made me sad,i need another virtual machine to apply pymssql app,oooooops 阅读全文
posted @ 2010-05-19 19:14 lexus 阅读(168) 评论(0) 推荐(1) 编辑

摘要:change default python to python26,use mv commandeasy_install rediseasy_install drequechange the python back to original python interperteryum -y install gccyum install kernel-headerschnage to the new ... 阅读全文
posted @ 2010-05-19 18:10 lexus 阅读(135) 评论(0) 推荐(1) 编辑

摘要:change default python to python26,use mv commandeasy_install rediseasy_install drequechange the python back to original python interperteryum -y install gccyum install kernel-headerschnage to the new ... 阅读全文
posted @ 2010-05-19 18:10 lexus 阅读(296) 评论(0) 推荐(1) 编辑

摘要:reference:http://www.linuxquestions.org/questions/debian-26/change-default-python-version-605397/Well, if the link exists, remove it: "rm /usr/bin/python". Then make the link with ln -sIn my example o... 阅读全文
posted @ 2010-05-19 17:56 lexus 阅读(228) 评论(0) 推荐(1) 编辑

摘要:download rpm from fedora epelyum install tixrpm -ivh python26-2.6.5-3.el5.i386.rpm python26-test-2.6.5-3.el5.i386.rpm python26-devel-2.6.5-3.el5.i386.rpm python26-tools-2.6.5-3.el5.i386.rpm python26-l... 阅读全文
posted @ 2010-05-19 17:14 lexus 阅读(220) 评论(0) 推荐(0) 编辑

摘要:vi ~/.bash_profilealias python='/usr/bin/python26'alias easy_install='/usr/bin/easy_install' 阅读全文
posted @ 2010-05-19 13:40 lexus 阅读(181) 评论(0) 推荐(1) 编辑

摘要:easy_install cythonwget http://pymssql.googlecode.com/files/pymssql-1.9.908.tar.gztar -zxvf pymssql-1.9.908.tar.gzcd pymssql-1.9.908sudo python2.6 setup.py install#CAUTION:choose the right version pyt... 阅读全文
posted @ 2010-05-19 09:58 lexus 阅读(569) 评论(0) 推荐(1) 编辑

摘要:referencehttp://blog.mcmoyer.com/2009/2/21/getting-freetds-to-work-on-centos-5-2- in the global section change “tds version” to 8.0 阅读全文
posted @ 2010-05-19 09:29 lexus 阅读(386) 评论(0) 推荐(1) 编辑

摘要:import cPicklef=open("f.txt","w")cPickle.dump("aa",f)f.close()f=open("f.txt",'r')o=cPickle.load(f)f.closeprint o 阅读全文
posted @ 2010-05-18 14:50 lexus 阅读(163) 评论(0) 推荐(1) 编辑

摘要:我花了半年的时间做这块东西,发现自己心浮气躁,不太适合做这块的东西,我还是擅长做工程,单纯叫我研究一个算法还成,要把人工智能一整套的东西都掌握下来,等于要我脱胎换骨,爷还是用我山寨的方式解决吃饭的问题,不玩这个了 阅读全文
posted @ 2010-05-17 18:33 lexus 阅读(182) 评论(0) 推荐(0) 编辑

摘要:没学之前觉得挺高深的,学了之后,就是安装配置不太人性化,多大的事啊,刚开始玩苹果的时候,还有点生疏,切换到ubuntu上来后就马上上道了。所以各位想学习的不用胆怯哈 阅读全文
posted @ 2010-05-17 15:01 lexus 阅读(195) 评论(0) 推荐(0) 编辑

摘要:娃哈哈 阅读全文
posted @ 2010-05-16 10:45 lexus 阅读(145) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2010-05-16 10:44 lexus 阅读(156) 评论(0) 推荐(0) 编辑

摘要:yum groupinstall "X Window System"yum groupinstall "GNOME Desktop Environment"yum groupinstall "KDE (K Desktop Environment)"reference:http://www.siutung.org/post/280/ 阅读全文
posted @ 2010-05-14 19:18 lexus 阅读(253) 评论(0) 推荐(1) 编辑

摘要: 阅读全文
posted @ 2010-05-14 17:52 lexus 阅读(187) 评论(0) 推荐(1) 编辑

摘要: 阅读全文
posted @ 2010-05-14 15:36 lexus 阅读(216) 评论(0) 推荐(1) 编辑

摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta... 阅读全文
posted @ 2010-05-14 15:25 lexus 阅读(615) 评论(0) 推荐(1) 编辑

摘要:有google desktop search也没有啥用了 阅读全文
posted @ 2010-05-14 09:00 lexus 阅读(165) 评论(0) 推荐(0) 编辑

摘要:http://fedoraproject.org/wiki/EPEL正当我在为centos快要疯的时候,找到了这个,挽救了中国,挽救了党 阅读全文
posted @ 2010-05-13 22:19 lexus 阅读(119) 评论(0) 推荐(0) 编辑

摘要:http://www.360doc.com/content/08/1218/15/20151_2151508.shtmlim-switch -s scim -d defaultapt-get install scim apt-get install scim-chinese apt-get install scim-tables-zh 阅读全文
posted @ 2010-05-13 20:05 lexus 阅读(168) 评论(0) 推荐(0) 编辑

摘要:http://www.360doc.com/content/08/1218/15/20151_2151508.shtmlim-switch -s scim -d default 阅读全文
posted @ 2010-05-13 20:04 lexus 阅读(136) 评论(0) 推荐(0) 编辑

摘要:reference:http://lloydsheng.com/2010/05/how-to-update-python-in-centos.html$rpm-Uvhhttp://yum.chrislea.com/centos/5/i386/chl-release-5-3.noarch.rpm$rpm--import/etc/pki/rpm-gpg/RPM-GPG-KEY-CHL$rpm-Uvhh... 阅读全文
posted @ 2010-05-13 17:45 lexus 阅读(239) 评论(0) 推荐(0) 编辑

摘要:lsb_release -areference:http://hi.baidu.com/libk/blog/item/f9f68494db305112d31b70a3.html 阅读全文
posted @ 2010-05-13 17:31 lexus 阅读(168) 评论(0) 推荐(0) 编辑

摘要:virtualenv --no-site-packages concurrency_isolatecd concurrency_isolatesource bin/activate 阅读全文
posted @ 2010-05-13 16:09 lexus 阅读(205) 评论(0) 推荐(0) 编辑

摘要:ctrl +a+c create new sessionctrl +a +n切换到下一个窗体ctrl+a+d deattch暂时短开screen -ls查看有哪些sessionsscreen -r 3389使用screen -ls查看到的id号进行重连 阅读全文
posted @ 2010-05-13 15:17 lexus 阅读(193) 评论(0) 推荐(0) 编辑

摘要:总算摆脱了ylmf山寨版,之前在gnome下一直会假死,不过我觉得应该是ubuntu和我的laptop硬件的问题,我是在线升级,之前还是遇到一些问题,包括virutalbox的配置,将不兼容的硬件加入blacklist,进入u10.04的gnome存在cpu负载非常高的问题,然后改为kde还是一些不习惯,心时感觉负载还是挺高,关键是界面还是有一点不适应,后来改到xfce下就彻底清凉了, 加上它的图... 阅读全文
posted @ 2010-05-13 10:46 lexus 阅读(209) 评论(0) 推荐(0) 编辑

摘要:http://www.sy.ln.cn/kdcs/kdcs.htm 阅读全文
posted @ 2010-05-12 16:20 lexus 阅读(702) 评论(0) 推荐(0) 编辑

摘要:wget http://nginx.org/download/nginx-0.7.65.tar.gztar zxvf nginx-0.7.65.tar.gzhg clone http://projects.unbit.it/hg/uwsgicd nginx-0.7.65yum -y install zlib zlib-develyum -y install pcre pcre-develyum -... 阅读全文
posted @ 2010-05-12 14:05 lexus 阅读(207) 评论(0) 推荐(0) 编辑

摘要:wget http://nginx.org/download/nginx-0.7.65.tar.gztar zxvf nginx-0.7.65.tar.gzhg clone http://projects.unbit.it/hg/uwsgicd nginx-0.7.65yum -y install zlib zlib-develyum -y install pcre pcre-develyum -... 阅读全文
posted @ 2010-05-12 12:49 lexus 阅读(220) 评论(0) 推荐(0) 编辑

摘要:启动nginx进程/usr/sbin/nginx -c /etc/nginx/nginx.conf检查主进程号ps -ef|grep nginx强制所有nginx进程pkill -9 niginx 阅读全文
posted @ 2010-05-12 12:08 lexus 阅读(208) 评论(0) 推荐(0) 编辑

摘要:五、安装nginx由于centos没有默认的nginx软件包,需要启用REHL的附件包 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpmyum -y install nginxreference:http://hi.baidu.com/passprot/blog/item/... 阅读全文
posted @ 2010-05-12 12:02 lexus 阅读(303) 评论(0) 推荐(0) 编辑

摘要:http://www.selfcai.com.cn/?p=359 阅读全文
posted @ 2010-05-12 11:49 lexus 阅读(558) 评论(0) 推荐(0) 编辑

摘要:yum install mercurial 阅读全文
posted @ 2010-05-12 11:45 lexus 阅读(426) 评论(0) 推荐(0) 编辑

摘要:* 如何直接解压.tar.gz文件 * 分类:备份恢复 | Oracle 作者:Linux宝库 来自:Linux教程 发布时间:2008年12月31日您是本文的第42841位读者本文来自:Linux教程 -- http://doc.linuxpk.com/50046.html如有不明白之处,欢迎参加社区讨论  xxxx.tar.gz文件使用tar带zxvf参数,可以一次解压开。XXXX为文件... 阅读全文
posted @ 2010-05-12 11:40 lexus 阅读(258) 评论(0) 推荐(0) 编辑

摘要:user www-data;worker_processes 1;error_log /var/log/nginx/error.log;pid /var/run/nginx.pid;events { worker_connections 1024; # multi_accept on;}http { include /etc/nginx/mime.types; server { resolver ... 阅读全文
posted @ 2010-05-12 11:06 lexus 阅读(334) 评论(0) 推荐(0) 编辑

摘要:http://hi.baidu.com/pnalson/blog/item/1aba58f0d3870bc97831aad5.html 或者,你可以在终端下输入如下内容来安 装.deb文件 卸载.deb文件,可以使用Adept, 或输入: 阅读全文
posted @ 2010-05-12 10:37 lexus 阅读(338) 评论(0) 推荐(0) 编辑

摘要:http://blog.chinaunix.net/u/7217/showart_189768.htmlvi ~/.bash_profilehttp_proxy="http://192.168.1.7:81"export http_proxy 阅读全文
posted @ 2010-05-12 09:53 lexus 阅读(384) 评论(0) 推荐(0) 编辑

摘要:http://blog.csdn.net/ghychina/archive/2009/08/24/4476943.aspx在CentOS上安装Git非常方便,可以安装EPEL,这是一个由Fedora 社区打造,由为RHEL及衍生发行版提供高质量软件的项目,里面有软件还是比较丰富的,默认的没有git。。。。我的CentOS版本是5.2,执行下面命令安装该库: sudo rpm -Uvh http:/... 阅读全文
posted @ 2010-05-12 09:41 lexus 阅读(188) 评论(0) 推荐(0) 编辑

摘要:http://www.techiecorner.com/113/centos-install-yum-fastest-mirror-plugin-for-faster-connection-update/yum fastest mirror plugin (yum-plugin-fastestmirror) sound interesting? Want to try? To install yu... 阅读全文
posted @ 2010-05-12 09:39 lexus 阅读(290) 评论(0) 推荐(0) 编辑

摘要:關於 Server Keys 的紀錄資料: ~/.ssh/known_hosts 如果您剛剛有研究過 SSH 的連線流程的話,會發現到當 client 端接受來自 server 端的 public key 之後,會主動的比對這支 Key 的正確性。而比對的檔案是 ~/.ssh/known_hosts 。 若是接受到的這支 public key 並沒有被紀錄在這檔案內,那... 阅读全文
posted @ 2010-05-12 09:25 lexus 阅读(228) 评论(0) 推荐(0) 编辑

摘要:QQREADER226F83CC564FCCCFqq 阅读全文
posted @ 2010-05-11 23:43 lexus 阅读(253) 评论(0) 推荐(0) 编辑

摘要:var ht={}$.each(json_result,function(i,e){$.each(e,function(i,e){ console.info(e["site"]); console.info(e["type"]); console.info(e["link"]); $(e).attr("site","ssss"); console.info($(e).attr("site")); ... 阅读全文
posted @ 2010-05-11 19:03 lexus 阅读(129) 评论(0) 推荐(0) 编辑

摘要:http://blog.mondlab.com/python/centos-python-2-6-4-install 阅读全文
posted @ 2010-05-11 19:03 lexus 阅读(340) 评论(0) 推荐(0) 编辑

摘要:http://www.stockvault.net/tutorials/photoshop_45degree_line_pattern.php 阅读全文
posted @ 2010-05-11 13:07 lexus 阅读(183) 评论(0) 推荐(0) 编辑

摘要:$([1,2,3]).each(function(i,e){console.info(i);console.info(e);});$([1,2,3]).each(function(e){console.info(e);}).get(0);$([1,2,3]).each(function(e){console.info(e);}); 阅读全文
posted @ 2010-05-10 15:04 lexus 阅读(153) 评论(0) 推荐(0) 编辑

摘要:国产山寨连锁餐饮最近有抬头之势,不过连招牌菜都做的没有小店好,这个就有问题了, 阅读全文
posted @ 2010-05-09 14:25 lexus 阅读(193) 评论(0) 推荐(0) 编辑

摘要:重在灵活应用 方显乐趣无穷 阅读全文
posted @ 2010-05-09 10:00 lexus 阅读(150) 评论(0) 推荐(0) 编辑

摘要:var ht={}$.each(json_result,function(i,e){$.each(e,function(i,e){ console.info(e["site"]); console.info(e["type"]); console.info(e["link"]); $(e).attr("site","ssss"); console.info($(e).attr("site")); ... 阅读全文
posted @ 2010-05-09 08:42 lexus 阅读(205) 评论(0) 推荐(0) 编辑

摘要:var ht={}$.each(json_result,function(i,e){$.each(e,function(i,e){ console.info(e["site"]); console.info(e["type"]); console.info(e["link"]); $(e).attr("site","ssss"); console.info($(e).attr("site"));}... 阅读全文
posted @ 2010-05-09 08:00 lexus 阅读(204) 评论(0) 推荐(0) 编辑

摘要:http://hi.baidu.com/zjw0358/blog/item/43b89f2599618a6334a80ffe.htmlimport hashliba="haha"print hashlib.md5(a).hexdigest()print hashlib.sha1(a).hexdigest() 阅读全文
posted @ 2010-05-08 14:56 lexus 阅读(210) 评论(0) 推荐(0) 编辑

摘要:http://markmail.org/message/evkgcdnct3jfnrli#query:related%3Aevkgcdnct3jfnrli+page:1+mid:z2ry45oagt6n56du+state:results 阅读全文
posted @ 2010-05-08 14:49 lexus 阅读(348) 评论(0) 推荐(0) 编辑

摘要:问题定义:本质要解决的问题:有没有可以变通替代的方法:相关的约束:解决的步骤: 阅读全文
posted @ 2010-05-08 08:12 lexus 阅读(154) 评论(0) 推荐(0) 编辑

摘要:you may see my blog mixed with chinse & english ,and english tech article has many check mistake,one primarly resason is my chinese input ifitcx under ubuntu is some time good,some time wrong,afte... 阅读全文
posted @ 2010-05-07 14:10 lexus 阅读(198) 评论(0) 推荐(0) 编辑

摘要:http://www.scriptlearn.com/archives/1005 阅读全文
posted @ 2010-05-07 14:05 lexus 阅读(271) 评论(0) 推荐(0) 编辑

摘要:http://tumblelog.jauderho.com/post/27655495/gzip-compression-with-nginx 阅读全文
posted @ 2010-05-07 14:04 lexus 阅读(164) 评论(0) 推荐(0) 编辑

摘要:i'm crouis 阅读全文
posted @ 2010-05-07 11:30 lexus 阅读(121) 评论(0) 推荐(0) 编辑

摘要:i'm crouis 阅读全文
posted @ 2010-05-07 11:29 lexus 阅读(136) 评论(0) 推荐(0) 编辑

摘要:a={"a":"1",}this is legal 阅读全文
posted @ 2010-05-07 11:28 lexus 阅读(254) 评论(0) 推荐(0) 编辑

摘要:is these part of page have some special coding in server end? 阅读全文
posted @ 2010-05-07 11:24 lexus 阅读(100) 评论(0) 推荐(0) 编辑

摘要:<html> <head><title>400 Bad Request</title></head> <body bgcolor="white"> <center><h1>400 Bad Request</h1></center> <hr><center>... 阅读全文
posted @ 2010-05-06 23:53 lexus 阅读(282) 评论(0) 推荐(0) 编辑

摘要:http://techgurulive.com/2009/08/09/how-to-count-files-in-the-current-directory-in-linux/reference as abovels -l |wc -lCAUTION, the link of current foler also as a file ,so as common sense,the resultyo... 阅读全文
posted @ 2010-05-06 23:40 lexus 阅读(156) 评论(0) 推荐(0) 编辑

摘要:url='aa'print type(url)print url.encode('utf8')以上是ok的keyword="中国"print keyword.encode("utf8")就会报错了UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128) 阅读全文
posted @ 2010-05-05 19:51 lexus 阅读(402) 评论(0) 推荐(0) 编辑

摘要:http://localhost:8080/testajaxhttp://127.0.0.1:8080/testajax竟然不一样,你们要小心了避世编程的感觉很好 阅读全文
posted @ 2010-05-05 16:14 lexus 阅读(199) 评论(0) 推荐(0) 编辑

摘要:referencehttp://api.jquery.com/jQuery.post/some notes as follows:Pages fetched with POST are never cached, so the cache and ifModified options in jQuery.ajaxSetup() have no effect on these requests. 阅读全文
posted @ 2010-05-05 15:39 lexus 阅读(206) 评论(0) 推荐(0) 编辑

摘要:$("#news").load(http://xxx_newsserver/news.php)reference:http://jquery.org.cn/bbs/simple/index.php?t2626.html 阅读全文
posted @ 2010-05-05 15:25 lexus 阅读(334) 评论(0) 推荐(0) 编辑

摘要:龟缩~~ 阅读全文
posted @ 2010-05-05 11:52 lexus 阅读(120) 评论(1) 推荐(0) 编辑

摘要:session识别的原理是什么?客户端有一个key,服务器端也有一个,如果有则用同一标识,如果没有则新创建标识?(那么第一次创建标识是client导向,还是server导向(好像应该是都可以)使用ajax如何应用session,ajax有两种get,post,应用session的方式是否不一样? 阅读全文
posted @ 2010-05-05 10:42 lexus 阅读(323) 评论(0) 推荐(0) 编辑

摘要:东亚上北,上风上水,神人老赵,真男人。屋漏偏缝边夜雨,在dreamweaver下,你呆要将html中的charset从gb2312,变成utf-8网页文件的编码就变了,好神奇哦 阅读全文
posted @ 2010-05-05 09:21 lexus 阅读(168) 评论(0) 推荐(0) 编辑

摘要:样式padding-left和margin-left有什么区别? 悬赏分:20 - 解决时间:2006-3-31 11:18 提问者: fox10 - 一级 最佳答案 检举 阅读全文
posted @ 2010-05-03 13:58 lexus 阅读(627) 评论(0) 推荐(0) 编辑

摘要:i want use my json lib in bottle,but encouter some error as follows:function not has write attribute,i think the problem is bottle also contain a class named json,so i use from lib import json as json... 阅读全文
posted @ 2010-05-02 17:07 lexus 阅读(324) 评论(0) 推荐(0) 编辑

摘要:there is a moudle named fixiedpoint in sf,it can slove part of problem 阅读全文
posted @ 2010-05-02 10:38 lexus 阅读(398) 评论(0) 推荐(0) 编辑

摘要:方式运行python脚本,会有很多鬼诡的问题,还是直接在terminal下运行比较稳妥 阅读全文
posted @ 2010-05-02 09:56 lexus 阅读(189) 评论(0) 推荐(0) 编辑

摘要:由于bitbucket.org好像不支持代理,所以我又要把它改回来找到gedit ~/.bashrc将http_proxy前面加上#reference:http://hi.baidu.com/denghb/blog/item/c7cd828b959f3cd3fd1f10dd.html Ubuntu中apt及终端程序使用代理设置方法 2007年01月13日 星期六 13:56 因为在校园网内,... 阅读全文
posted @ 2010-05-02 08:11 lexus 阅读(283) 评论(0) 推荐(0) 编辑

摘要:回去快11点了,口渴正好还有半瓶可乐,就喝了,结果睡的时候,虽然头晕,很累但就是脑子清醒着,关键是也不是很清醒,已经不能思考问题了,sigh~~~早上又不到六点就醒了,其实应该没睡饱,不过脑子已经半醒状态,肯定回不了笼了。 阅读全文
posted @ 2010-05-02 07:45 lexus 阅读(189) 评论(0) 推荐(0) 编辑

摘要:今天主要将精力放在调试json上,python下的json的库很大,也看了一些文章,主要有这么一些库,demjson,simplejson,我之前比较过这两个,所以初步在这两个上用,后来发现生成的序列化后的中文还是不是中文而是类似/uxx343,\x3454等,这样不直观,可能也能用,,因为只想它序列化和反序化的操作是等价的就可以了,不过我还是想我看起来更直观一些,所以想找能直接看就是中文的,之后... 阅读全文
posted @ 2010-05-01 21:48 lexus 阅读(449) 评论(0) 推荐(0) 编辑

摘要:要想確保一件事情,按時完成,中間可能會遇到不可預期的事情發生,如何盡可能的保證項目的按時完成,這就需要在出現意外的時候,使用一些額外的辦法,比如用錢,或是別的什麼減少自己花費在意外上的時間來保證這個項目的正常進行電腦是不可靠的,不要把你的數據放在一台電腦上,要把重要的東西,隨是提交放到網絡上。或是打印出來, 隨時考慮電腦會掛掉的狀況,對於項目代碼的各種模塊的依賴等,一定要配置在一個目錄下,能很方便... 阅读全文
posted @ 2010-05-01 14:47 lexus 阅读(170) 评论(0) 推荐(0) 编辑

摘要:sudo gedit /etc/apt/apt.conf当你在安装ubuntu server时,设置代理不小心弄错了,可以通过上面这条命令来修改,我就遇到这个问题,之后使用sudo apt-get install装东西装不上,因此想到了是在安装的时候出了一点refference:此文讲述了三种修改代理的方法http://hi.baidu.com/soberggg/blog/item/0c597b8... 阅读全文
posted @ 2010-05-01 10:15 lexus 阅读(158) 评论(0) 推荐(0) 编辑

摘要:设置ssh:http://www.cnblogs.com/lexus/archive/2010/05/01/1725477.html设置代理:http://www.cnblogs.com/lexus/archive/2010/05/01/1725483.html安装easy_install:http://www.cnblogs.com/lexus/archive/2010/05/01/172547... 阅读全文
posted @ 2010-05-01 10:13 lexus 阅读(268) 评论(1) 推荐(0) 编辑

摘要:sudo gedit /etc/apt/apt.conf当你在安装ubuntu server时,设置代理不小心弄错了,可以通过上面这条命令来修改,我就遇到这个问题,之后使用sudo apt-get install装东西装不上,因此想到了是在安装的时候出了一点refference:此文讲述了三种修改代理的方法http://hi.baidu.com/soberggg/blog/item/0c597b8... 阅读全文
posted @ 2010-05-01 09:34 lexus 阅读(261) 评论(0) 推荐(0) 编辑

摘要:sudo gedit /etc/apt/apt.conf当你在安装ubuntu server时,设置代理不小心弄错了,可以通过上面这条命令来修改,我就遇到这个问题,之后使用sudo apt-get install装东西装不上,因此想到了是在安装的时候出了一点纰漏,结绳记事 阅读全文
posted @ 2010-05-01 09:33 lexus 阅读(152) 评论(0) 推荐(0) 编辑

摘要:sudo apt-get install python-setuptools 阅读全文
posted @ 2010-05-01 09:17 lexus 阅读(165) 评论(0) 推荐(0) 编辑

摘要:sudo easy_install virtualenvvirtualenv --no-site-packages new2(folder name)cd new2source bin/activatereferencehttp://inet6.blogspot.com/2010/02/virtualenv.html 阅读全文
posted @ 2010-05-01 09:12 lexus 阅读(252) 评论(0) 推荐(0) 编辑

摘要:(new3)mlzboy@mlzboy-laptop:~/bijia/sblity/src/new3$ ssh mlzboy@10.3.11.240ssh: connect to host 10.3.11.240 port 22: No route to host(new3)mlzboy@mlzboy-laptop:~/bijia/sblity/src/new3$ ssh mlzboy@10.3.... 阅读全文
posted @ 2010-05-01 09:11 lexus 阅读(264) 评论(0) 推荐(0) 编辑

摘要:i have two laptops one is fujishu6311,another is mac 466,both of them have prons & cons.fujishu is more focus on business,he is very strong,i fail down from half meater smany times,it's ok ,i have... 阅读全文
posted @ 2010-05-01 08:44 lexus 阅读(240) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示