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

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

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

03 2010 档案

摘要:bcp DMDM.dbo.similarities in f:\result.csv -c -t, -k -E -C936 -S10.3.10.90 -Uabc -Pabcbcp.exe在路径C:\Program Files\Microsoft SQL Server\90\Tools\Binn下,有时直接在命令行不管用 阅读全文
posted @ 2010-03-31 20:56 lexus 阅读(220) 评论(0) 推荐(0) 编辑

摘要:Install Redis Server Simple on Ubuntu / Debian: aptitude install redis-server 阅读全文
posted @ 2010-03-31 17:45 lexus 阅读(250) 评论(0) 推荐(0) 编辑

摘要:http://im.qq.com/qq/linux/ 阅读全文
posted @ 2010-03-31 13:55 lexus 阅读(121) 评论(0) 推荐(0) 编辑

摘要:之前我在发牢骚时说用户体验,但我没有讲我理解的用户体验 我理解的用户体验最早来自xp,如果用词来解释可以理解为sence or 换位思考。 举个例子: 洗手间坑里贴了张条件,禁止吸烟,违着罚款500元,行政部宣。 关间不是这段子,而是它贴的位置,刚好和你蹲下解手时眼睛一个高度。 同样的道理,可以解释上前一小步,文明一大步,殊同此理。 阅读全文
posted @ 2010-03-30 16:34 lexus 阅读(143) 评论(0) 推荐(0) 编辑

摘要:<1>未修改过的/etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). auto lo iface lo in... 阅读全文
posted @ 2010-03-30 16:30 lexus 阅读(546) 评论(0) 推荐(0) 编辑

摘要:编辑/etc/udev/rules.d 删除最后一行的信息, 然后进行dd 阅读全文
posted @ 2010-03-30 13:28 lexus 阅读(294) 评论(0) 推荐(0) 编辑

摘要:不知道原因何在 阅读全文
posted @ 2010-03-29 18:40 lexus 阅读(168) 评论(0) 推荐(0) 编辑

摘要:郁闷了有半天了,不想多说了 #! usr/bin/env python #encoding=utf8 from dreque import Dreque, DrequeWorker import time a=Dreque("127.0.0.1", db=None) a=Dreque(("127.0.0.1",6379),db=10) a.redis.flushdb() def some_job(... 阅读全文
posted @ 2010-03-29 18:18 lexus 阅读(176) 评论(0) 推荐(0) 编辑

摘要:我没怎么用过mysql,只在一个ssh的项目中尝试着用了一下,近来的新闻报道都分分传各大网站抛弃mysql拥抱nosql,在这里跳笑一下,就想没用vc直奔.net了,muhaha 阅读全文
posted @ 2010-03-29 10:08 lexus 阅读(222) 评论(0) 推荐(0) 编辑

摘要:if you want to use redis master-slave schema,you only need is attatch a .conf file,default,there is a redis.conf file as a template in redis release package,just do two step: 1)change the port(defaul... 阅读全文
posted @ 2010-03-29 09:44 lexus 阅读(445) 评论(0) 推荐(0) 编辑

摘要:周六参加resys活动,ibm的推荐团队作了三场演讲,由于我是刚入门,只是听个大概,整个来了近80人 各方牛人都来了,阿里云,douban,amazon,taobao,hulu ==,还有一些清华,北邮的同学, 会后和coreseek,文栋,阿稳,超群等人一起聚餐,闲扯了很多it,推荐相关的事,很有意思。 周末一如既往的参加thoss的活动,这个组织去年我参加过一回,今年是一次也没遗漏,组织者fr... 阅读全文
posted @ 2010-03-29 09:43 lexus 阅读(213) 评论(0) 推荐(0) 编辑

摘要:ls -l *.txt | grep -c .txt 阅读全文
posted @ 2010-03-29 09:42 lexus 阅读(218) 评论(0) 推荐(0) 编辑

摘要:tar -cf all.tar *.txt 阅读全文
posted @ 2010-03-29 09:14 lexus 阅读(198) 评论(0) 推荐(0) 编辑

摘要:key不能有空格在使用redis的hash type时,如果传入的是int,取回的会是str类型i.e. if r1.hexists("wordcounts",keyword): count=r1.hget("wordcounts",keyword) print "====" print type(count) print count r1.hset("wordcounts",keyword,in... 阅读全文
posted @ 2010-03-28 11:35 lexus 阅读(200) 评论(0) 推荐(0) 编辑

摘要:key不能有空格在使用redis的hash type时,如果传入的是int,取回的会是str类型i.e. if r1.hexists("wordcounts",keyword): count=r1.hget("wordcounts",keyword) print "====" print type(count) print count r1.hset("wordcounts",keyword,in... 阅读全文
posted @ 2010-03-28 11:30 lexus 阅读(191) 评论(0) 推荐(0) 编辑

摘要:http://pynotes.appspot.com/static/bottle/docs.htm 阅读全文
posted @ 2010-03-28 09:54 lexus 阅读(347) 评论(0) 推荐(0) 编辑

摘要:key不能有空格在使用redis的hash type时,如果传入的是int,取回的会是str类型i.e. if r1.hexists("wordcounts",keyword): count=r1.hget("wordcounts",keyword) print "====" print type(count) print count r1.hset("wordcounts",keyword,in... 阅读全文
posted @ 2010-03-28 09:37 lexus 阅读(188) 评论(0) 推荐(0) 编辑

摘要:~~发现51cto,webtech.com.cn也不适合我,可能再去国外的站找找归属 阅读全文
posted @ 2010-03-27 11:11 lexus 阅读(374) 评论(0) 推荐(0) 编辑

摘要:~~ 阅读全文
posted @ 2010-03-27 10:50 lexus 阅读(395) 评论(0) 推荐(0) 编辑

摘要:首先要下载freetds stable版进行手动的编译安装(不要使用sudo apt-get)1、使用命令行,切换到解压后freetds的目录下面,执行以下命令 ./configure \--prefix=/etc/freetds \--with-tdsver=8.0 \--enable-msdblib \--enable-dbmfix \--with-gnu-ld \--enable-share... 阅读全文
posted @ 2010-03-27 08:13 lexus 阅读(2314) 评论(0) 推荐(0) 编辑

摘要:http://zhidao.baidu.com/question/100981749.html 阅读全文
posted @ 2010-03-26 21:15 lexus 阅读(256) 评论(0) 推荐(0) 编辑

摘要:http://zhidao.baidu.com/question/100981749.html 阅读全文
posted @ 2010-03-26 09:22 lexus 阅读(204) 评论(0) 推荐(0) 编辑

摘要:http://zhidao.baidu.com/question/100981749.html 阅读全文
posted @ 2010-03-26 09:21 lexus 阅读(231) 评论(0) 推荐(0) 编辑

摘要:http://zhidao.baidu.com/question/100981749.html 阅读全文
posted @ 2010-03-26 07:58 lexus 阅读(252) 评论(0) 推荐(0) 编辑

摘要:http://zhidao.baidu.com/question/100981749.html 阅读全文
posted @ 2010-03-26 07:58 lexus 阅读(158) 评论(0) 推荐(0) 编辑

摘要:真它妈的是几经波折把这厮给搞定了。由于原先的库文件有使用上的限制,你必须重新去下载下来编译使用。另外很多配置文件的编码格式都不对,都要在linux下重新储存成gb2312格式,另外,Configuration.xml文件第一行缺空格,需要进行处理过才能在ff中正常显示 阅读全文
posted @ 2010-03-26 07:48 lexus 阅读(397) 评论(2) 推荐(0) 编辑

摘要:http://code.google.com/p/python-ictclas2009/这个的编译还是有点难度的,我费了还是挺大的kongfu如果直接使用sudo apt-get install libboost-dev libboost-python-dev不行,得在新立得软件安装中,找到1.4的版本进行安装,会自动删除旧的版本,再按照googlecode的上的说明make成功 阅读全文
posted @ 2010-03-25 20:26 lexus 阅读(202) 评论(0) 推荐(0) 编辑

摘要:http://www.cnitblog.com/seeyeah/archive/2009/03/15/55440.html这样用还是有点问题,比如当你getpwd()的时候出候还行,当你getpwd()yi wf e hko 问题了,出现的是.., 阅读全文
posted @ 2010-03-25 17:10 lexus 阅读(148) 评论(0) 推荐(0) 编辑

摘要:这个库还是不太好,分词有点问题,还会有乱码#! /usr/bin/env python#coding=utf-8#import sys#print sys.pathfrom pymmseg import mmsegmmseg.dict_load_defaults()import chardetimport redisr=redis.Redis(host='10.3.11.178',port=637... 阅读全文
posted @ 2010-03-25 17:04 lexus 阅读(492) 评论(0) 推荐(0) 编辑

摘要:还有一个visual sniffer,这个我没有用过 阅读全文
posted @ 2010-03-25 12:39 lexus 阅读(223) 评论(0) 推荐(0) 编辑

摘要:http://os.51cto.com/art/200805/72750.htm 阅读全文
posted @ 2010-03-25 12:31 lexus 阅读(327) 评论(0) 推荐(0) 编辑

摘要:之前一段时间在.net上用memcached,使用beitmemcached这个库,其中有诸多坎坷,内置了一个链接死亡的加权轮询机制。害得我在本地测的时候没问题这,在真实环境中测了,就有问题,花了断续花了近一个星期的时间,啊呜另外,python-memcached有链接泄漏的问题 阅读全文
posted @ 2010-03-25 10:48 lexus 阅读(165) 评论(0) 推荐(0) 编辑

摘要:之前一段时间在.net上用memcached,使用beitmemcached这个库,其中有诸多坎坷,内置了一个链接死亡的加权轮询机制。害得我在本地测的时候没问题这,在真实环境中测了,就有问题,花了断续花了近一个星期的时间,啊呜 阅读全文
posted @ 2010-03-25 10:46 lexus 阅读(154) 评论(0) 推荐(0) 编辑

摘要:之前装了好多库,就是不成,这会细心高校,o了参看http://wiki.woodpecker.org.cn/moin/SphinxIntroduction 默认生成的是htmlsphinx-build docs _build_build是生成的目录,docs是rst格式的文档,一般在docs目录要有一个conf.py的关于sphinx的配置文件 阅读全文
posted @ 2010-03-24 08:28 lexus 阅读(437) 评论(0) 推荐(0) 编辑

摘要:之前装了好多库,就是不成,这会细心高校,o了参看http://wiki.woodpecker.org.cn/moin/SphinxIntroduction 阅读全文
posted @ 2010-03-24 08:27 lexus 阅读(178) 评论(0) 推荐(0) 编辑

摘要:http://winscp.net/eng/docs/lang:chs 阅读全文
posted @ 2010-03-23 15:23 lexus 阅读(219) 评论(0) 推荐(0) 编辑

摘要:ubuntu server安装openssh serversudo apt-get install build-essential我在py中经常犯的一个错误是,将模块的名称命名成和原来的要用的模块同名比如redis.py,导致找不到相关的模块,在改名后又由于没有删除同名的redis.pyc文件而造成错误 阅读全文
posted @ 2010-03-22 16:19 lexus 阅读(387) 评论(0) 推荐(0) 编辑

摘要:ubuntu server安装openssh serversudo apt-get install build-essential 阅读全文
posted @ 2010-03-22 15:48 lexus 阅读(361) 评论(0) 推荐(0) 编辑

摘要:不懂别老提这个词,跟敏捷,soa一样被用烂了, 阅读全文
posted @ 2010-03-22 10:31 lexus 阅读(185) 评论(0) 推荐(0) 编辑

摘要:地址c:\windows\system32\drivers\etc\hosts 阅读全文
posted @ 2010-03-19 21:01 lexus 阅读(156) 评论(0) 推荐(0) 编辑

摘要:服务器从win切换到linux上,之前上线测都没有问题,结果上线之后出了问题,当时就紧张了,很是慌乱,之前拿 py写的脚本报错了,于是东查西查也没查出个原因来,加上领导在一旁问情况,心里更是毛了,之后又写了一个py脚本,在本地测,不行又在服务器上测,还是没测出原因来,怀疑写的py脚本有问题,于是拿java写了个脚本测,还是报错,怀疑是socketIO用完了,之后和运维的同学将一部分流量来分到别的虚... 阅读全文
posted @ 2010-03-19 20:42 lexus 阅读(145) 评论(0) 推荐(0) 编辑

摘要:服务器从win切换到linux上,之前上线测都没有问题,结果上线之后出了问题,当时就紧张了,很是慌乱,之前拿 py写的脚本报错了,于是东查西查也没查出个原因来,加上领导在一旁问情况,心里更是毛了,之后又写了一个py脚本,在本地测,不行又在服务器上测,还是没测出原因来,怀疑写的py脚本有问题,于是拿java写了个脚本测,还是报错,怀疑是socketIO用完了,之后和运维的同学将一部分流量来分到别的虚... 阅读全文
posted @ 2010-03-19 20:40 lexus 阅读(163) 评论(0) 推荐(0) 编辑

摘要:#151 FUZZ stresser with data model binary PASSED#152 FUZZ stresser with data model alpha PASSED#153 FUZZ stresser with data model compr PASSED#154 BGSAVE Waiting for background save to finish... PASSE... 阅读全文
posted @ 2010-03-17 15:30 lexus 阅读(190) 评论(0) 推荐(0) 编辑

摘要:$ tar xvzf redis-1.02.tar.gz 阅读全文
posted @ 2010-03-17 15:24 lexus 阅读(111) 评论(0) 推荐(0) 编辑

摘要:Python代码 defrun(name,age,sex):print'name:',name,'age:',age,'sex:',sex>>>run('xiaoming',name='xiaoming',sex='boy')SyntaxError:non-keywordargafterkeywordarg 函数调用的时候,如果第一个参数使用了关键字绑定,后面的参数也必须使用关键... 阅读全文
posted @ 2010-03-16 20:25 lexus 阅读(225) 评论(0) 推荐(0) 编辑

摘要:Python代码 defrun(name,age,sex):print'name:',name,'age:',age,'sex:',sex>>>run('xiaoming',name='xiaoming',sex='boy')SyntaxError:non-keywordargafterkeywordarg 函数调用的时候,如果第一个参数使用了关键字绑定,后面的参数也必须使用关键... 阅读全文
posted @ 2010-03-16 11:43 lexus 阅读(278) 评论(0) 推荐(0) 编辑

摘要:Python代码 defrun(name,age,sex):print'name:',name,'age:',age,'sex:',sex>>>run('xiaoming',name='xiaoming',sex='boy')SyntaxError:non-keywordargafterkeywordarg 函数调用的时候,如果第一个参数使用了关键字绑定,后面的参数也必须使用关键... 阅读全文
posted @ 2010-03-16 11:38 lexus 阅读(233) 评论(0) 推荐(0) 编辑

摘要:后来我下了一个深度deepin的精简版xp装了一下就搞定了,virtualbox有一个混合模式,一开始我以为是parrenalls的特有的,没想到是众人皆知的秘密,虚拟技术发展真是快啊 阅读全文
posted @ 2010-03-16 11:34 lexus 阅读(484) 评论(0) 推荐(0) 编辑

摘要:http://www.verycd.com/topics/2805662/ 阅读全文
posted @ 2010-03-16 09:28 lexus 阅读(149) 评论(0) 推荐(0) 编辑

摘要:http://www.verycd.com/topics/2805808/我没用过 阅读全文
posted @ 2010-03-16 09:24 lexus 阅读(230) 评论(0) 推荐(0) 编辑

摘要:http://www.meijumi.com/article.asp?id=4932 阅读全文
posted @ 2010-03-15 21:01 lexus 阅读(174) 评论(0) 推荐(0) 编辑

摘要:http://www.infoq.com/cn/news/2010/03/isolated-work-vs-collaboration我反对文中的观点,结合自身的角度,有时间写 阅读全文
posted @ 2010-03-15 20:38 lexus 阅读(172) 评论(0) 推荐(0) 编辑

摘要:http://code.google.com/p/templatemaker/还不错的项目 阅读全文
posted @ 2010-03-15 20:22 lexus 阅读(184) 评论(0) 推荐(0) 编辑

摘要:http://www.ubuntu-inside.me/2009/02/how-to-open-7zip-files-under.html原装的打电话问了要350,已经过了保修期了,之前换过一次,这回又坏了,于在淘宝上找到一个店家,正好下午去perl聚会,取道中关村,因此50块钱,自己动手换了一个,风扇可能是二手的,成色 不新,不过 还算好用,比较惊人的是,我在换风扇的过程中没有关机,原因是忘了关... 阅读全文
posted @ 2010-03-15 19:50 lexus 阅读(223) 评论(0) 推荐(0) 编辑

摘要:这个做法,我没有找到,同事无意间找到的,<resource uri="file://~beitmemcached.xml" /> 阅读全文
posted @ 2010-03-13 10:51 lexus 阅读(275) 评论(0) 推荐(0) 编辑

摘要:国际邮箱好像都没问题,类似gmail,就是国内的邮箱有一些问题,比如 mail.139.com因此还是得进行一下处理参看这个链接 http://suzhouclark.itpub.net/post/7184/484998主要是如下的一段msgText = MIMEText(plainText, 'plain','gb2312') msgHtml = MIMEText(htmlText, 'html... 阅读全文
posted @ 2010-03-13 10:49 lexus 阅读(457) 评论(0) 推荐(0) 编辑

摘要:def 你好(): pass 阅读全文
posted @ 2010-03-11 17:53 lexus 阅读(253) 评论(0) 推荐(0) 编辑

摘要:>>> class Template(): def ___haha(): pass >>> t=Template()>>> dir(t)['_Template___haha', '__doc__', '__myodule__']当方法以__开头后,会认为它是一个私有的方法,外部不能调用,其实是因为python帮我们改名了,如上所式的___ha... 阅读全文
posted @ 2010-03-11 16:25 lexus 阅读(1132) 评论(0) 推荐(0) 编辑

摘要:easy_installsudo apt-get install python-setuptools或是http://blog.163.com/htc3000@126/blog/static/131770222200911111238890/gccsudo apt-get installl build-essentiallxmlsudo apt-get install python-lxmlpyq... 阅读全文
posted @ 2010-03-10 20:44 lexus 阅读(227) 评论(0) 推荐(0) 编辑

摘要:我花了10分钟在virtualbox中装了一个xp,我发现xp的成功,很大的程度在于这些功臣门的带动,现在win7虽然炫,但我觉得一键ghost省了我好多事,装机就得用一键ghost,一个字省事 阅读全文
posted @ 2010-03-10 16:52 lexus 阅读(205) 评论(0) 推荐(0) 编辑

摘要:http://code.google.com/p/iptux/wiki/installiptuxsudo apt-get install iptux 阅读全文
posted @ 2010-03-10 14:11 lexus 阅读(193) 评论(0) 推荐(0) 编辑

摘要:easy_installsudo apt-get python-setuptoolsgccsudo apt-get installl build-enssentialpyquerysudo easy_install pyqueryeventletsudo easy_install eventlet 阅读全文
posted @ 2010-03-10 09:24 lexus 阅读(235) 评论(0) 推荐(0) 编辑

摘要:http://pypi.python.org/pypi/setuptools#windowseasy_install你可以认为是ruby中的gem,mac中的portsubuntu中的apt-get不过它是针对python的 阅读全文
posted @ 2010-03-10 08:20 lexus 阅读(277) 评论(0) 推荐(0) 编辑

摘要:def haha(li=None): a=li or []dict(a=1,b=2,c=3) 阅读全文
posted @ 2010-03-09 09:17 lexus 阅读(122) 评论(0) 推荐(0) 编辑

摘要:如下一个场景def a(): count=0 def _a(): global count count+=1 _a() _a() return _count如上的一个函数,在实际执行时是报错的,因为没有global的变量 count,我想问的是像这样一个场景,用怎么样的实现来做好一些呢?是否有在函数内部保留状态的机制,yield是有,不过这里好像是用不到,请达人请点哈。我自己试验了下是采用这样的方... 阅读全文
posted @ 2010-03-09 09:16 lexus 阅读(198) 评论(0) 推荐(0) 编辑

摘要:KISS原則是英語KeepItSimple,Stupid的首字母縮略字。KISS原則是指在設計當中應當注重簡約的原則。同時這原則亦有應用在商業書信[1]、設計電腦軟件、動畫、工程上。原文當中有很多其他版本,包括:"KeepItSimple&Stupid"(在西歐文學中最常使用)、"KeepItSweet&Simple"、"KeepItShort&Simple"、"Keepi... 阅读全文
posted @ 2010-03-05 11:20 lexus 阅读(191) 评论(0) 推荐(0) 编辑

摘要:import mathmath.log1p(x)¶Return the natural logarithm of 1+x (base e). The result is calculated in a way which is accurate for x near zero.就是我们所说的ln 阅读全文
posted @ 2010-03-04 11:08 lexus 阅读(358) 评论(0) 推荐(0) 编辑

摘要:http://www.dslreports.com/forum/r20368916-maximum-number-of-open-sockets-files-threads-etchttp://stackoverflow.com/questions/2185834/maximum-number-of-socket-in-javaSend Eventletdev mailing list submi... 阅读全文
posted @ 2010-03-03 09:31 lexus 阅读(389) 评论(0) 推荐(0) 编辑

摘要:我发现一个有意思的问题,cygwin是依赖于windows下的python配置的,我的windows下配有两个python,2.5,2.6,当我的环境变量默认指向2.5时,它出的就是2.5的解释器,如果是2.6出的就是2.6的解释器,另附在cygwin下的安装setuptools的方法参见http://pypi.python.org/pypi/setuptools#cygwin-mac-os-x-... 阅读全文
posted @ 2010-03-02 09:51 lexus 阅读(2673) 评论(0) 推荐(0) 编辑

摘要:just curious, it would make writing to a filea bit easier? ww <mrwwli <at> gmail.com> writes: > > just curious, it would make writing to a filea bit easier? Because readline() ret... 阅读全文
posted @ 2010-03-01 15:22 lexus 阅读(645) 评论(1) 推荐(0) 编辑

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