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

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

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

04 2010 档案

摘要:http://hi.baidu.com/zuiini/blog/item/2c7027faaa90ec8f9e5146bf.htmlroute -vlinux下查看网卡地址和网关 1、查看网卡地址的命令:ifconfig 2、查看dns的命令:route -n(destination Genmask都是0.0.0.0的那个) UBUNTU没有sysconfig目录,设置静态IP在/etc/netw... 阅读全文
posted @ 2010-04-30 11:37 lexus 阅读(310) 评论(2) 推荐(0) 编辑

摘要:limited:you cpu must support vt-x,(硬件虚似化) 阅读全文
posted @ 2010-04-30 08:36 lexus 阅读(183) 评论(0) 推荐(0) 编辑

摘要:cd /etc/sudo mv my-ib.cnf.inactive my-ib.cnf/etc/init.d/mysqld-ib start 阅读全文
posted @ 2010-04-29 18:33 lexus 阅读(154) 评论(0) 推荐(0) 编辑

摘要:sudo dpkg -r package_namesudo dpkg -i package_file.debsudo apt-get autoremove 要移除的软件包名sudo apt-get install 要安装的软件包名 阅读全文
posted @ 2010-04-29 18:24 lexus 阅读(179) 评论(0) 推荐(0) 编辑

摘要:今天要做一个python里面内存效率的测试,所以需要查看当前运行的python unittest的内存占用情况,查了一下发现psutil可以帮助你做这个事情,这样的代码就可以工作,需要安装psutil,我用的sudo pip install psutil: 用的时候你可以实例化一个MemoryInfo()然后分多次调用它的print_usage方法。结绳记事。 阅读全文
posted @ 2010-04-29 17:10 lexus 阅读(193) 评论(0) 推荐(0) 编辑

摘要:sudo apt-get install sysstatitpub.net这个网站还不错 阅读全文
posted @ 2010-04-29 16:35 lexus 阅读(159) 评论(0) 推荐(0) 编辑

摘要:php,我不否定掉它,我只能说,我不会php,也不想学。java,这个东西,和ACE一样,学之者生,用之者死。.net,如果有那么多钱去买授权,倒不如给程序员买个好点的椅子。ruby,这个我也不否定,但如果让一个人接受它,却是很不容易。 阅读全文
posted @ 2010-04-29 11:39 lexus 阅读(153) 评论(0) 推荐(0) 编辑

摘要:不巧同事问到这个中文显示的问题,结果就无意搜索到了  PieTTY 是由林弘德(Hung-Te Lin, piaip)以 PuTTY 源代码为基础,在 Windows 上发展的 Telnet/SSH 安全远端连线程式,修正与完整支援亚洲语系字符,可切换多种 Unicode 字符显示方式,提供简易 scp 上传界面,并增加透明视窗、无边框模式等视觉效果。PieTTY 与 PuTTY 同样采用 MI... 阅读全文
posted @ 2010-04-29 11:11 lexus 阅读(292) 评论(0) 推荐(0) 编辑

摘要:http://you.joy.cn/video/1186197.htmerick recommendation 阅读全文
posted @ 2010-04-27 19:06 lexus 阅读(265) 评论(0) 推荐(0) 编辑

摘要:Help on method randint in module random:randint(self, a, b) method of random.Random instance Return random integer in range [a, b], including both end points.reference:http://bytes.com/topic/python/an... 阅读全文
posted @ 2010-04-27 14:34 lexus 阅读(271) 评论(0) 推荐(0) 编辑

摘要:server=ip;Network=xxxxx;uid=***;pwd=***; database=db;failover partner=ip2 阅读全文
posted @ 2010-04-26 10:35 lexus 阅读(447) 评论(0) 推荐(0) 编辑

摘要:bcp DMDM2.dbo.similarities in d:\resultnew.csv -c -t, -k -E -C936 -Slocalhost -T 阅读全文
posted @ 2010-04-26 10:22 lexus 阅读(164) 评论(0) 推荐(0) 编辑

摘要:nautilus `pwd` 阅读全文
posted @ 2010-04-25 18:09 lexus 阅读(214) 评论(0) 推荐(0) 编辑

摘要:小记,未用http://www.oschina.net/p/squidmodel 阅读全文
posted @ 2010-04-25 14:34 lexus 阅读(735) 评论(0) 推荐(0) 编辑

摘要:python set type dose not support indexinge.g.a=set([1,2])means you can't use a[1] or a[:1] etc.because set dosen't have orders. 阅读全文
posted @ 2010-04-25 13:36 lexus 阅读(148) 评论(0) 推荐(0) 编辑

摘要:sudo apt-get install terminatorreference:http://huqilong.blog.51cto.com/53638/191760 阅读全文
posted @ 2010-04-25 13:26 lexus 阅读(165) 评论(0) 推荐(0) 编辑

摘要:nowa从杭州来参加qcon,抽空和我见面,我花了一个小时洗洗澡,换了件衣服,两个小时整理了屋子,距上次收拾屋子,应该是半年前的事情了。有阳光,屋子整理完后,心情不错,原来屋子整洁心情是会舒畅的,妈妈的话真的有道理啊。向nowa请教了好多技术上问题,思路又开阔了,送走nowa,饭后睡了一觉到十点下楼买了可乐回来研究uwsgi,一天就这么过去了,晚上的战斗力不行,估计错误,小盘鸡还剩了一半多,>... 阅读全文
posted @ 2010-04-25 10:32 lexus 阅读(174) 评论(0) 推荐(0) 编辑

摘要:http://www.bdinfo.net/speedtest/test.htm 阅读全文
posted @ 2010-04-23 21:30 lexus 阅读(226) 评论(0) 推荐(0) 编辑

摘要:when you first compile application,you should look INSTALL document,there has something you need take carefully,it write as follows:you mst have libev (and the header) installed.for some os,you have t... 阅读全文
posted @ 2010-04-23 20:35 lexus 阅读(142) 评论(0) 推荐(0) 编辑

摘要:/etc/nginx$ find . -name nginx.conf 阅读全文
posted @ 2010-04-23 20:32 lexus 阅读(173) 评论(0) 推荐(0) 编辑

摘要:when you first compile application,you should look INSTALL document,there has something you need take carefully,it write as follows:you mst have libev (and the header) installed.for some os,you have t... 阅读全文
posted @ 2010-04-23 20:31 lexus 阅读(259) 评论(0) 推荐(0) 编辑

摘要:sudo gedit /etc/apt/sources.list reference http://www.ylmf.org/faq/source_lst.html 阅读全文
posted @ 2010-04-23 17:24 lexus 阅读(191) 评论(0) 推荐(0) 编辑

摘要:同事在介绍lucene时介绍到这个函数,以前见过一面,没记住,小记一下, http://msdn.microsoft.com/en-us/library/ms186323.aspx 阅读全文
posted @ 2010-04-23 16:50 lexus 阅读(200) 评论(0) 推荐(0) 编辑

摘要:Synkron is a cross-platform sync tools,this linke introduce a software named SSHWindows help you use ssh on windows oshttp://www.digitalmediaminute.com/article/1487/setting-up-a-sftp-server-on-windows... 阅读全文
posted @ 2010-04-23 15:51 lexus 阅读(170) 评论(0) 推荐(0) 编辑

摘要:sudo apt-get install bpython,unison-gtk,gftp,grsync 阅读全文
posted @ 2010-04-23 15:24 lexus 阅读(155) 评论(0) 推荐(0) 编辑

摘要:alt+f2 equals win+r 阅读全文
posted @ 2010-04-23 14:25 lexus 阅读(225) 评论(0) 推荐(0) 编辑

摘要:随意从同事那拿起书来,发现是本好书,我还没有在其它书上介绍过协程,和pipeline,第14章末尾很精华,还有不太了解的闭包,有时间好好研读,我只会用,没仔细看过,python中也有这些东西 阅读全文
posted @ 2010-04-23 12:27 lexus 阅读(174) 评论(0) 推荐(0) 编辑

摘要:我的ubuntu装的是ylmf,比较不稳定,只能做开发测试用,真正跑长时间的处理程序,一是cpu全速运转,影响我看网页什么的,所以还是把任务放到远程,不是的ssh,top看一下状况,比较好。我做的分布式的程序部署比较麻烦,因此我考虑在u盘装一个linux把所有要装的程序都装上,插上就启动linux,就可以运算了 阅读全文
posted @ 2010-04-23 11:35 lexus 阅读(167) 评论(0) 推荐(0) 编辑

摘要:我的ubuntu装的是ylmf,比较不稳定,只能做开发测试用,真正跑长时间的处理程序,一是cpu全速运转,影响我看网页什么的,所以还是把任务放到远程,不是的ssh,top看一下状况,比较好。 阅读全文
posted @ 2010-04-23 11:33 lexus 阅读(108) 评论(0) 推荐(0) 编辑

摘要:when you want run a server on 80 port your need root permissionhttp://stackoverflow.com/questions/550032/what-causes-python-socket-error 阅读全文
posted @ 2010-04-23 09:46 lexus 阅读(156) 评论(0) 推荐(0) 编辑

摘要:sudo passwd root 阅读全文
posted @ 2010-04-23 09:45 lexus 阅读(145) 评论(0) 推荐(0) 编辑

摘要:http://tobysh.blog.hexun.com/4595645_d.html linux下如何使用sftp命令。 fu.yatao-- sftp 是一个交互式文件传输程式。它类似于 ftp, 但它进行加密传输,比FTP有更高的安全性。下边就简单介绍一下如何远程连接主机,进行文件的上传和下载,以及一些相关操作。 举例,如远程主机的 IP 是 202.206.64.33或者是域名www.h... 阅读全文
posted @ 2010-04-23 07:57 lexus 阅读(217) 评论(0) 推荐(0) 编辑

摘要:as more as you can use pipeline,this will help you reduce the interivate times with redis 阅读全文
posted @ 2010-04-22 09:44 lexus 阅读(180) 评论(0) 推荐(0) 编辑

摘要:zset means sorted setit take with a score as sort standardswhen you use zadd() add a new element,you need specificed a score as rank stardandanother tip is when you use redis list type,always use rpus... 阅读全文
posted @ 2010-04-22 06:49 lexus 阅读(178) 评论(0) 推荐(0) 编辑

摘要:e.g.a=dict(a=1,b=2,c=3)r=redis.Redis()r.set("haha",a)r.hget("haha","b")#this will raise a exceptionthe right way is as follows:r.hmset("haha",a)#attenation:when you use this approach,if you use r.set(... 阅读全文
posted @ 2010-04-20 10:23 lexus 阅读(473) 评论(0) 推荐(0) 编辑

摘要:after git pull you need make,this is important,then use ./redis-server and in python client,type r.info(),you'll find you redis-server version is 1.3.8congratiouns!hahahahahha 阅读全文
posted @ 2010-04-20 09:40 lexus 阅读(183) 评论(0) 推荐(0) 编辑

摘要:make./redis-server 阅读全文
posted @ 2010-04-19 11:55 lexus 阅读(165) 评论(0) 推荐(0) 编辑

摘要:tar -czf test-redis-1.3.7.tar.gz test-redis-1.3.7scp test-redis-1.3.7.tar.gz mlzboy@192.168.1.7:/home/mlzboy/ 阅读全文
posted @ 2010-04-19 11:28 lexus 阅读(226) 评论(0) 推荐(0) 编辑

摘要:sudo apt-get install python-doc 阅读全文
posted @ 2010-04-18 15:11 lexus 阅读(345) 评论(0) 推荐(0) 编辑

摘要:昨个在华美汉盛举办了py的聚会,总共两个话题,其它演讲者临时有事都没来,挺遗憾的,所以不到4点就结束了,会后和cnborn及conglin一块在北新街一带的馆子吃了晚饭,之后就早早的回住院处了,一天就这么过去了。和qingfeng交流了一下tt的日志获取方式及redis,发现大家都差不多在相同的时间关注相关的事情,redis最近还是挺火的,大家可以看看。 阅读全文
posted @ 2010-04-18 12:56 lexus 阅读(195) 评论(0) 推荐(0) 编辑

摘要:我在virtual box中装ubuntu时发现的 阅读全文
posted @ 2010-04-18 12:50 lexus 阅读(246) 评论(0) 推荐(0) 编辑

摘要:print datetime.strptime("2010-04-01 00:04:57.277","%Y-%m-%d %H:%M:%S.%f")参考文章:http://docs.python.org/library/datetime.html#strftime-strptime-behaviorDirective Meaning Notes %a Locale’s abbreviated wee... 阅读全文
posted @ 2010-04-17 09:00 lexus 阅读(485) 评论(1) 推荐(0) 编辑

摘要:之前被xrdp在ylmf下的设置整can了,后来重新装了一遍,就使用了正式的9.10就ok了。 阅读全文
posted @ 2010-04-16 18:28 lexus 阅读(139) 评论(0) 推荐(0) 编辑

摘要:使用\\10.3.10.157\\d$来访问 阅读全文
posted @ 2010-04-16 17:53 lexus 阅读(273) 评论(0) 推荐(0) 编辑

摘要:之前装过1.2.1在/data/db下产生了垃圾文件,把它们统统给我删了,1.4.1就o了 阅读全文
posted @ 2010-04-16 17:28 lexus 阅读(238) 评论(0) 推荐(0) 编辑

摘要:前段时间和头表态,以后不做C#了,将精力主要放在python及linux,c上.结合亲身经历,谈一下我的体会. 阅读全文
posted @ 2010-04-16 08:53 lexus 阅读(2398) 评论(17) 推荐(1) 编辑

摘要:有一个clonevdi工具http://www.alittletothewright.com/2009/11/expanding-virtualbox-dynamic-vdis/,见此处 阅读全文
posted @ 2010-04-15 17:59 lexus 阅读(184) 评论(0) 推荐(0) 编辑

摘要:http://imvoo.com/archives/205.html安装了Ubuntu后,连接经常被重置的解决办法 by Joseph under 软件应用 下载了Ubuntu 8.10,安装之后,用Firefox 3.03上网,连接经常被重置,丢包现象严重,于是到网上去查了一下解决方法。 解决:设置连接的MTU值。在网络连接上点右键,选择编辑连接,有线,编辑,在MTU那里填上1500(取得... 阅读全文
posted @ 2010-04-15 16:56 lexus 阅读(490) 评论(0) 推荐(0) 编辑

摘要:http://www.webupd8.org/2009/10/use-more-than-3gb-of-ram-in-ubuntu.htmlfree -mthis can fixed ubunt use 3.4 limited memory problem 阅读全文
posted @ 2010-04-15 16:55 lexus 阅读(216) 评论(0) 推荐(0) 编辑

摘要:参考链接http://linuxfan-linuxtips.blogspot.com/2010/03/get-xrdp-to-work-in-ubuntu.htmlhttp://chip.twbbs.org/blog/?p=658http://www.mexlinux.com/how-to-install-xrdp-in-ubuntu/首先,你必须remove vnc4server,这个东西和这个... 阅读全文
posted @ 2010-04-15 14:55 lexus 阅读(806) 评论(0) 推荐(0) 编辑

摘要:http://chip.twbbs.org/blog/?p=658首先,你必须remove vnc4server,这个东西和这个软件有冲突sudo apt-get remove vnc4serversudo apt-get install tightvncserversudo apt-get install xrdp使用netstat -ctl查看一下有没有使用3389端口在监听重启后机子可能不会... 阅读全文
posted @ 2010-04-15 14:54 lexus 阅读(297) 评论(0) 推荐(0) 编辑

摘要:scp -P 22 xpvm.vdi mlzboy@192.168.1.6:/home/mlzboy参考链接:http://llhdf.javaeye.com/blog/477115 阅读全文
posted @ 2010-04-15 11:53 lexus 阅读(193) 评论(0) 推荐(0) 编辑

摘要:启动上还是费了一些功夫 阅读全文
posted @ 2010-04-15 11:31 lexus 阅读(345) 评论(0) 推荐(0) 编辑

摘要:本次活动,感谢华美汉盛软件技术有限公司提供场地支持,促进工程师之间的技术交流,结识更多志同道合的朋友:)地点:海淀区苏州街18号长远天地A1座1906时间:2010-04-17 阅读全文
posted @ 2010-04-15 10:01 lexus 阅读(161) 评论(0) 推荐(0) 编辑

摘要:http://kpjack.blog.51cto.com/627289/157704 ubuntu 9.04安装ibus输入法 2009-05-14 08:47:37  标签:ubuntu 安装 ibus   [推送到技术圈] 版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律... 阅读全文
posted @ 2010-04-15 09:37 lexus 阅读(257) 评论(0) 推荐(0) 编辑

摘要:http://www.xlglvc.cn/showsoft.asp?id=28newsid 阅读全文
posted @ 2010-04-14 15:49 lexus 阅读(259) 评论(0) 推荐(0) 编辑

摘要:sudo apt-get install vnc4server关键是:可以先使用VNCViewer连接到Ubuntu上,然后在系统(System) —> 首选项(Preferences) —> 远程桌面(Remote Desktop)下,去掉第一个勾。这个时候你的VNCViewer就会自动断开。之后使用互联网--->远程桌面查看器进行连接这篇文章帮了大忙http://stdyun... 阅读全文
posted @ 2010-04-14 14:40 lexus 阅读(308) 评论(0) 推荐(0) 编辑

摘要:7.6 关机重启命令 相信读者在前几个小节里大量命令的“洗礼”下,可能需要关闭计算机休息一下了,不过先别急,因为Ubuntu可不是随便就能关机的。我们知 道,Ubuntu是一个多人多工的操作系统,这就意味着可能同一时间不止一个人在系统上操作,而且在Ubuntu后台还在默默地运行着很多的工作,关机很 可能造成其他人工作的丢失,所以需要好好了解一下关机的命令。 7.6.1 关闭计算机命令:shutdo... 阅读全文
posted @ 2010-04-14 09:26 lexus 阅读(376) 评论(0) 推荐(0) 编辑

摘要:昨个下班发现有一个chuan night,本以为是吃羊肉串的,结果是一家任俄罗斯的餐厅,经qiang推荐,点了一个,不过总体感觉份量不够,吃一次还是不能够习惯的,当时吃的感觉还行,回来就寝发现,还是有一点不适用。早上起的早,兴趣去kfc吃了一顿,没有想像中的好吃。吃完做上10号车,发现大人也玩psp无解,现在便地都是iphone,昨个聚会也发现了。 阅读全文
posted @ 2010-04-14 08:34 lexus 阅读(228) 评论(0) 推荐(0) 编辑

摘要:昨个下班发现有一个chuan night,本以为是吃羊肉串的,结果是一家任俄罗斯的餐厅,经qiang推荐,点了一个,不过总体感觉份量不够,吃一次还是不能够习惯的,当时吃的感觉还行,回来就寝发现,还是有一点不适用。早上起的早,兴趣去kfc吃了一顿,没有想像中的好吃。 阅读全文
posted @ 2010-04-14 08:32 lexus 阅读(252) 评论(0) 推荐(0) 编辑

摘要:sudo apt-get install openssh-serversudo apt-get install gshutdown 阅读全文
posted @ 2010-04-13 14:10 lexus 阅读(144) 评论(0) 推荐(0) 编辑

摘要:today,i finally find how to use share folder with the virtual os is windows,you should open the network neighbor,double click virtualbox newwork,in this folder there is a folder named //Vboxsvr Then, ... 阅读全文
posted @ 2010-04-13 13:19 lexus 阅读(396) 评论(0) 推荐(0) 编辑

摘要:在看一个slideshare的PPT结果没有下载,只好做下笔记了key-value storeall data lives in memorykeys can expire(or not)fast,light-weightpersistencemultiple databasesQueryable keyspaceSupport for integer countershigher level d... 阅读全文
posted @ 2010-04-13 11:17 lexus 阅读(291) 评论(0) 推荐(0) 编辑

摘要:pyxer是一上python web framework,还不错,但和jaxer不可同日而语,我本期望给我一点灵感和激动,结果没有,不可和jaxer相提并论 阅读全文
posted @ 2010-04-12 10:54 lexus 阅读(162) 评论(0) 推荐(0) 编辑

摘要:我一直在寻找一种已经现成的持久化方案,类似消息队列,我只要将持久化的任务扔给它,它就能很快速的进行持久化(可能是并行),然后当我要读出消息的时候,有一部分已经加载在内存中,这样可以提高取数据的速度,和redis有点像只可惜它全在内存和磁盘。在这里小记一下,高人知道的话指点下那。周六参加了perl聚会,和qiang\alex\agent\joe等人一块吃饭,我本不是perl用户,不过还是很喜欢和技术... 阅读全文
posted @ 2010-04-12 10:39 lexus 阅读(244) 评论(0) 推荐(0) 编辑

摘要:a={}result=a.setdefault("e")#return None and a add a new key-value pairprint a#a={"e":None}result-a.setdefault("e","eeee")#return None,because the dict already has "e" element so it return current "e"... 阅读全文
posted @ 2010-04-09 15:02 lexus 阅读(203) 评论(0) 推荐(0) 编辑

摘要:sudo dpkg -i 1_virtualbox-3.1_3.1.6-59338_Ubuntu_karmic_i386.deb 在图形界面,不知道 怎么的老死,不知道 是不是ylmf os的问题 阅读全文
posted @ 2010-04-08 12:21 lexus 阅读(182) 评论(0) 推荐(0) 编辑

摘要:sudo dpkg -r virtualbox-3.1 阅读全文
posted @ 2010-04-08 12:04 lexus 阅读(425) 评论(0) 推荐(0) 编辑

摘要:ReloadEveryTinyReadAutoPagerScribeFileAutoProxyReadItLaterFirefinderjQuerifyxpatherscreengrabscrapbookstumbleUponwebdeveloperfirebugxmarks 阅读全文
posted @ 2010-04-08 10:50 lexus 阅读(184) 评论(0) 推荐(0) 编辑

摘要:#! usr/bin/env python#encoding=utf8from dreque import Dreque, DrequeWorkerimport timea=Dreque("127.0.0.1", db=None)a=Dreque(("127.0.0.1",6379),db=10)a.redis.flushdb()def some_job(argument): time.sleep... 阅读全文
posted @ 2010-04-08 10:30 lexus 阅读(228) 评论(0) 推荐(0) 编辑

摘要:Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE MicrosoftInternetExplorer4 和同事在linqpad的帮助下讨论了一下,能不能序化传递函数,经测试,内置的binaryformatter是可以的,xmlserializer是不行的, Normal 0 7.8 磅 0 2 false false false EN-... 阅读全文
posted @ 2010-04-08 10:28 lexus 阅读(182) 评论(0) 推荐(0) 编辑

摘要:很久没有像今天效率这么高了,之前也在公司加过班,也卧在床上写过代码,效率都没有这次在工大新图一阵天的效率好,难道真的是地点的缘故,在公司还在星火的时候我只加过一两次班感觉效率也不怎么地,那时周六加班公司几乎没有人很安静,(我想这是一个重要的因素),公司到双井后,加班的机会 就多了,但是周六日其它人加班的也多,中午和他们一块吃加班餐,是蹭了一顿,感觉上是省钱了,可是由于总是有人打扰,反而因小失大,得... 阅读全文
posted @ 2010-04-07 13:14 lexus 阅读(173) 评论(0) 推荐(0) 编辑

摘要:今天用komodo总算有点上道了,之前用的一直不顺,以前在windows下一直用ulipad,不过到ubuntu下,感觉有点问题,我就没怎么用了,可能是错觉,有时间我还要再尝试一下,主要是找到了ctrl+shift+o这个定位文件的功能 。类似textmate中的command+t功能。另外总算是找到了在文件中查找文字这个功能,由于我对linux刚上路,很多在winodws显而意见的东西,在ubu... 阅读全文
posted @ 2010-04-07 13:14 lexus 阅读(162) 评论(0) 推荐(0) 编辑

摘要:这个名字故意取得和艺妓回忆录像,饭后忽然想起以前大二在去实习时公司领导的一句话,跟着微软走,十年不会错。当时初入编程,也没什么概念,我那时认定只要学好asp这辈子就够 了现在想想老总的话,没有错,微软也没有错,只是时代在变,环境在变。所以得走自己的路,让别人无路可走! 阅读全文
posted @ 2010-04-06 18:59 lexus 阅读(141) 评论(0) 推荐(0) 编辑

摘要:自己写程序要注意不光,还得小心你用的第三方库,比如dreque这个库,好在是开源,hoho,打完收工,吃饭 阅读全文
posted @ 2010-04-06 18:08 lexus 阅读(155) 评论(0) 推荐(0) 编辑

摘要:tail -f -n10 *.out暂时还没有找到完美的方案 阅读全文
posted @ 2010-04-06 16:11 lexus 阅读(208) 评论(0) 推荐(0) 编辑

摘要:. ./go.shfile:go.sh#! /bin/sh#echo pwdcd ~/bijia/sblity/src/new2/ 阅读全文
posted @ 2010-04-06 13:36 lexus 阅读(200) 评论(0) 推荐(0) 编辑

摘要:netstat -anp | more死杀存放在文件中的pidkill `cat total.pid` 阅读全文
posted @ 2010-04-06 13:16 lexus 阅读(146) 评论(0) 推荐(0) 编辑

摘要:netstat -anp | more 阅读全文
posted @ 2010-04-06 12:12 lexus 阅读(142) 评论(0) 推荐(0) 编辑

摘要:sudo easy_install simplejsonsudo easy_install demjsonsudo easy_install python-cjson 阅读全文
posted @ 2010-04-06 10:44 lexus 阅读(213) 评论(0) 推荐(0) 编辑

摘要:之前默认的虚拟机中的联接方式为nat,好像在用飞鸽时,在host和virtual machine上同时开飞鸽有问题,这回改了连接方式为桥接,这样虚拟机也有一个和host类似的ip了,因此也就可以使用两个飞鸽了,这里我们用了iptux作为ubuntu的兼容版本 阅读全文
posted @ 2010-04-05 20:58 lexus 阅读(310) 评论(0) 推荐(0) 编辑

摘要:rm -rf `find . -name temp*`rm -rf `find . -name *.pyc` 阅读全文
posted @ 2010-04-05 16:49 lexus 阅读(245) 评论(0) 推荐(0) 编辑

摘要:#! usr/bin/env python#encoding=utf8def savefile(filename,lines_list): f= open(filename,mode="w") f.writelines(lines_list) f.close()if __name__=="__main__": savefile("test.csv",["hello\r\n","world\r\n"... 阅读全文
posted @ 2010-04-05 16:31 lexus 阅读(173) 评论(0) 推荐(0) 编辑

摘要:mkdir -prm -rf force delete foldersrmdir delete empty folder 阅读全文
posted @ 2010-04-05 12:52 lexus 阅读(132) 评论(0) 推荐(0) 编辑

摘要:markdown input.txt > output.html 阅读全文
posted @ 2010-04-05 12:51 lexus 阅读(192) 评论(0) 推荐(0) 编辑

摘要:from the matrix今天在看李明编辑的infoq的架构师,我觉得此人的水平是很高的,之前在py的聚会上听过它的演讲,ppt给我留下很深的印象,很国际的水准。 阅读全文
posted @ 2010-04-05 12:50 lexus 阅读(135) 评论(0) 推荐(0) 编辑

摘要:简单而有用的nohup命令在UNIX/LINUX中,普通进程用&符号放到后台运行,如果启动该程序的控制台logout,则该进程随即终止。可以用nohup命令启动程序: nohup <程序名> & 则控制台logout后,进程仍然继续运行,起到守护进程的作用(虽然它不是严格意义上的守护进程)。使用nohup命令后,原程序的的标准输出被自动改向到当前目录下的nohup.ou... 阅读全文
posted @ 2010-04-05 12:50 lexus 阅读(591) 评论(0) 推荐(0) 编辑

摘要:chmod +x aa.pychmod 777 aa.py 阅读全文
posted @ 2010-04-05 12:50 lexus 阅读(98) 评论(0) 推荐(0) 编辑

摘要:kiB=1024bytekb=1000byte 阅读全文
posted @ 2010-04-05 12:50 lexus 阅读(820) 评论(0) 推荐(0) 编辑

摘要:对于工作的人来说,清明放假,五一放假, 阅读全文
posted @ 2010-04-05 12:49 lexus 阅读(127) 评论(0) 推荐(0) 编辑

摘要:今天宅在屋里,看一些技术资料,看多了,烦了,我就在想,学这么多新的技术,关注技术趋势在干什么?其实大家所掌握的知识已经基本能够应付各种问题了, 为什么还在不停的学习新的东西呢,这样的投资似乎是太不值当了,投入和产出不成正比。因此,我觉得是不是有必要改变一下,下一步的策略。 阅读全文
posted @ 2010-04-05 12:49 lexus 阅读(133) 评论(0) 推荐(0) 编辑

摘要:今天使用django授挫,因此想说点东西,以前晚学java,学php太执着于别人的想法,比如人家 认为rails好,你就去学rails,这样很被动,也不知道真的它哪里好,或许别人给你看到是很炫的一面,但是你没看到人家背后的流泪的一面。所以,你要有自己的判断,我现在真的体会到语言无好坏,只只有合适不合适的问题,语言的选择和性格也有关系,所谓率性而为,才是真人,be you self,用开复的话说,做... 阅读全文
posted @ 2010-04-03 18:04 lexus 阅读(263) 评论(0) 推荐(0) 编辑

摘要:今天在设置media root时,我晕了,英文不好,虽然google到staticmedia这样一个app但还是没搞定,django的文档丰富的让人头痛,虽然听大家说django如何如何的不错,但是最后我回顾了一下学习的django历程,虽然不太用功,但是好待也投入了一本书,断续两周的时间,投入这么多精力,还对他没好感,好吧,缘分尽了。 阅读全文
posted @ 2010-04-03 17:54 lexus 阅读(163) 评论(0) 推荐(0) 编辑

摘要:前几天给同学装xp,结果发现好像是一键ghost光坏了,这张光盘,做的还是不错的,不过真正用也就没几次,才不到一年的时间,再用它就坏了,由此我想到了,对于这样的东西,一做就得刻两份,以防万一。这样出错了,还有一个备的, 阅读全文
posted @ 2010-04-03 11:42 lexus 阅读(127) 评论(0) 推荐(0) 编辑

摘要:下载安装wget http://www.djangoproject.com/download/1.1.1/tarball/检测安装是否成功pythonimport djangodjango.VERSION创建项目frontend(在这里遇到一个小问题,我使用komodo的show in filemanager-->file-->在terminal中打开,然后执行下面的命令就是无法正确执... 阅读全文
posted @ 2010-04-03 11:35 lexus 阅读(352) 评论(0) 推荐(0) 编辑

摘要:下载安装wget http://www.djangoproject.com/download/1.1.1/tarball/检测安装是否成功pythonimport djangodjango.VERSION创建项目frontend(在这里遇到一个小问题,我使用komodo的show in filemanager-->file-->在terminal中打开,然后执行下面的命令就是无法正确执... 阅读全文
posted @ 2010-04-03 11:32 lexus 阅读(164) 评论(0) 推荐(0) 编辑

摘要:下载安装wget http://www.djangoproject.com/download/1.1.1/tarball/检测安装是否成功pythonimport djangodjango.VERSION创建项目frontend(在这里遇到一个小问题,我使用komodo的show in filemanager-->file-->在terminal中打开,然后执行下面的命令就是无法正确执... 阅读全文
posted @ 2010-04-03 11:30 lexus 阅读(117) 评论(0) 推荐(0) 编辑

摘要:下载安装wget http://www.djangoproject.com/download/1.1.1/tarball/检测安装是否成功pythonimport djangodjango.VERSION创建项目frontend(在这里遇到一个小问题,我使用komodo的show in filemanager-->file-->在terminal中打开,然后执行下面的命令就是无法正确执... 阅读全文
posted @ 2010-04-03 11:29 lexus 阅读(159) 评论(0) 推荐(0) 编辑

摘要:下载安装wget http://www.djangoproject.com/download/1.1.1/tarball/检测安装是否成功pythonimport djangodjango.VERSION创建项目 阅读全文
posted @ 2010-04-03 11:01 lexus 阅读(129) 评论(0) 推荐(0) 编辑

摘要:http://zhangxugg-163-com.javaeye.com/blog/580376 rm -dfr /usr/local/bakup-d : 非空目录也尝试删除,仅root可用此选项-f: 强制,不出现确认提示-r: 递归删除所有文件 阅读全文
posted @ 2010-04-03 10:58 lexus 阅读(162) 评论(0) 推荐(0) 编辑

摘要:可能最近吃洋肉泡膜的缘故 阅读全文
posted @ 2010-04-02 13:39 lexus 阅读(138) 评论(0) 推荐(0) 编辑

摘要:然后我们关闭一下从服务器(不关也行,我就是为了告诉你如何正确关闭redis服务器):. V+ \$ Y. [1 D- b4 sz) u6 cs# w& qredis-cli -p 6380 shutdown1 ]: V+ K3 i, l; ~8 EW( p1 | 阅读全文
posted @ 2010-04-02 10:26 lexus 阅读(200) 评论(0) 推荐(0) 编辑

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