摘要:view-source:http://www.sina.com.cn
阅读全文
浙江省高等学校教师教育理论培训微信搜索“毛凌志岗前心得”小程序 |
|
09 2010 档案
摘要:view-source:http://www.sina.com.cn
阅读全文
摘要:Python当前的默认编码设置setdefaultencoding2007年08月07日 星期二 下午 09:25在Python开发过程中,常常会遇到这样的问题,很让人头疼:......print s......Traceback (most recent call last): File "<stdin>", line 1, in ?UnicodeDecodeError: 'asci...
阅读全文
摘要:1.增加了几条新闻2.google从最低的137收录反弹至430,不知什么原因,怎么还跟股票似的,触底反弹,http://www.google.com/webmasters/晚上上看又到142这个是什么啊,玩我呢
阅读全文
摘要:single_pattern一般元素,使用前缀single,数据库中对应single_pattern字段single_template约定为代码模板single_startNum_,后面以_结尾的为模板参数,字段不存在
阅读全文
摘要:当你写程序时,应当倾向于清晰和可读性,而不是紧凑和精炼——选择简单,而不是精巧。只要你坚持这么做,你常常会发现你的代码跑得更快,而且也更强健,更易于维护。在真实世界中,对于99.9%的应用而言,遵循这个原则要比获得一点速度提升重要的多。
阅读全文
摘要:def post2locals(dict=locals(),func=None): for k,v in request.POST.iterallitems(): dict["_"+k]=v if func is not None and callable(func): dict["_"+k]=func(v)
阅读全文
摘要:加入传真电话今天sogou在原来26页面的基础上收录了27页,在慢慢放出前来天抓的数据另外链接靠左上的好像是优先放出的
阅读全文
摘要:in my option,currently the best ide for py is apanta,becasue it provide a standalone package contains all want you wathnt,it's base on elipse,and do some extension & integaion,it's good for ror,bu...
阅读全文
摘要:http://json.bloople.net/#_outputjquery ui use his tab pluginhttp://gskinner.com/RegExr/online web regex tool
阅读全文
摘要:http://json.bloople.net/#_output jquery ajaxformhttp://bbs.blueidea.com/thread-2915478-1-1.html web正则
阅读全文
摘要:http://json.bloople.net/#_outputjquery ui use his tab plugin
阅读全文
摘要:http://www.phpletter.com/form_builder/http://www.phpletter.com/form_builder/demo.html
阅读全文
摘要:http://arlen-yeh.javaeye.com/blog/396102zeroclipboardhttp://www.cssbaby.com/archives/129在线正则re-try,for pythonhttp://re-try.appspot.com/?a=1
阅读全文
摘要:http://fromvega.com/wordpress/2007/07/14/easydrag-jquery-plugin/http://arlen-yeh.javaeye.com/blog/396102
阅读全文
摘要:http://lloydsheng.com/2010/06/how-install-django-flup-nginx-in-unbuntu.htmlUbuntu搭建Django+Flup+Nginx环境http://wiki.nginx.org/NginxNgxWSGIModuleConclusionflupisslightly faster thanuWSGIat this pointbutt...
阅读全文
摘要:Hey everyone. I tried to use os.chown() in the following manner: os.chown('filename', 'username', 'groupname') I got an error, and when I googled for this function I realized that I must pass the ...
阅读全文
摘要:http://docs.python.org/library/__future__http://stackoverflow.com/questions/3791903/which-python-version-need-from-future-import-with-statement/3792223#3792223up vote0down votefavoriteCurrently i'm us...
阅读全文
摘要:今天快夜里12点查找百度收录,发现有836篇,其中有9-4,9-10,9-11号的收录的数据很多由于标题重复只显示了两面内容
阅读全文
摘要:http://elixir.ematia.de/trac/wiki/Recipes/SQLAlchemySchemaMigrationhttp://code.google.com/p/sqlalchemy-migrate/http://caneypuggies.alwaysreformed.com/wiki/DevelopingWithMigrationsdocument:http://packa...
阅读全文
摘要:This is a maintenance release for Python 0.13.0, fixing a number of issues. Read the changelog for details: http://www.gevent.org/changelog.html Get it from PyPI: http://pypi.python.org/pypi/gevent ...
阅读全文
摘要:Mondrian has been ported to Google App Engine:Rietveld. It's open source (Apache license), you can deploy it on your app-engine account, or port to vanilla Django and deploy on your own server.videoht...
阅读全文
摘要:-- Package Index BrowsepackagesPackagesubmissionListtroveclassifiersListpackagesRSS(last40updates)Python 3 packagesTutorialGet helpBug reportsCommentsDevelopersAbout News Documentation Download Commu...
阅读全文
摘要:sudo easy_install dict4iniConfigParser模块是python自带的读取配置文件的模块.通过他可以方便的读取配置文件. 这篇文章简单介绍一下读取配置文件的方法.配置文件.顾名思议就是存放配置的文件.下面是个例子[info]age = 21name = chensex = male其中[ ] 中的info是这段配置的名字下面age,name都是属性下面的代码演示了如何...
阅读全文
摘要:http://djangopeople.net/http://www.quarkbase.com/web-sites这个看着也清爽
阅读全文
摘要:http://nowhiring.com.au/242552+resume+Supervisord+cleaner+VIC+Other.aspxSupervisord cleaner• Able to handle a variety of jobs at once • Flexibility • Attention to detail • Have a f...
阅读全文
摘要:http://supervisord.org/api.htmlxmprpc inovke api document byteflow/django supervisord nginx = WINhttp://just-another.net/byteflowdjango-supervisord-nginx-win urllib2 - The Missing ManualHOWTO Fetch In...
阅读全文
摘要:RubyRubyRuby CoreJRubyIronRubyRailsRailsRails DeploymentRails I18NRails EnginesMiscRForumFerret Search EngineRadiant CMSMongrelGnome 2FXRubywxRubyNon-EnglishItalian Ruby GroupFrench Rails GroupSpanish...
阅读全文
摘要:BlogContactExisting ClientsAgile web development for businesses and creative firms Exceptional applications built using the Django web frameworkWe're Hiring!We’re looking for a Django developer ...
阅读全文
摘要:http://semetricmedia.com/our-teamvery IMPORTANT article reference:http://blog.crowproductions.de/2009/09/11/controlling-solr-with-supervisord/Controlling Solr withsupervisordA while ago I found a solu...
阅读全文
摘要:sudo easy_install supervisor它的配置文件使用;做为注释符另外有点类似于nginx使用supervisord -c supervisord.conf这样的方式在后台执行使用supervisorctl进行命令行的控制,这个有点像redis看了pycon上的视频,发现自已水平好菜,老外好牛,差距大,还没想到什么方法,只有多写代码来着。以下reference:http://li...
阅读全文
摘要:PyBlosxom is a lightweight file-based weblog system. The project started as a Python clone ofBlosxombut has since evolved into a beast of its own. PyBlosxom focuses on three things: simplicity, extens...
阅读全文
摘要:sudo easy_install supervisor它的配置文件使用;做为注释符另外有点类似于nginx使用supervisord -c supervisord.conf这样的方式在后台执行使用supervisorctl进行命令行的控制,这个有点像redis看了pycon上的视频,发现自已水平好菜,老外好牛,差距大,还没想到什么方法,只有多写代码来着。以下reference:http://li...
阅读全文
摘要:supervisor 管理后台进程文章分类:Python编程参考这篇文章加上一些notes:1 生成默认conf文件: echo_supervisord_conf > ...2 启动:superviserd -c 配置文件path eg:supervised -c t.ini 配置文件ini格式3 控制:supervisorctrl -i 进入交互模式用Supervisor管理后台守护进程2...
阅读全文
摘要:ff,实在是不能忍了,有scribefile插件chrome,+firebug lite+switch proxy基本上能用用了,日常的工作,复杂一些的工作还会启ffhttp://longfeiwu696.blog.chinabyte.com/2010/09/01/180/linux中的重定向2010-07-27 16:50以下内容来自:《joyfire 笔记》http://joyfire.net...
阅读全文
摘要:前台(foreground)组合键将挂起终端中正在运行的程序,然后您就可以用 bg 命令将其放到后台去执行。请注意,在后台运行图形应用程序有时候是有用处的,这样可以在终端下显示这个程序的出错信息,虽然这对您可能没有直接的帮助,当如果碰到了麻烦,向别人询问时,这些出错提示就有用武之地了。一些图形程序,很可能还处在测试期(Beta),尽管在后台执行,也会在终端中输出一些信息。如果您对此不满,可以用下面...
阅读全文
摘要:前台(foreground)组合键将挂起终端中正在运行的程序,然后您就可以用 bg 命令将其放到后台去执行。请注意,在后台运行图形应用程序有时候是有用处的,这样可以在终端下显示这个程序的出错信息,虽然这对您可能没有直接的帮助,当如果碰到了麻烦,向别人询问时,这些出错提示就有用武之地了。一些图形程序,很可能还处在测试期(Beta),尽管在后台执行,也会在终端中输出一些信息。如果您对此不满,可以用下面...
阅读全文
摘要:http://www.linuxquestions.org/questions/linux-general-1/at-warning-commands-will-be-executed-using-bin-s-491520/ #1RGummiMemberRegistered: Nov 2005Posts: 90Rep: at - warning: commands will be e...
阅读全文
摘要:rebootshutdown -r nowinit 6以上为重启haltshutdown -h nowpoweroffinit 0以上为关机
阅读全文
摘要:http://www.4pang.com/2010/09/21/%E7%94%A8python%E7%BC%96%E5%86%99linux%E5%AE%88%E6%8A%A4%E8%BF%9B%E7%A8%8B.htmlgood good article linux shell简介,especially 第三章输入输出的重定向http://www.linuxsir.org/main/?q=nod...
阅读全文
摘要:abbr. (信末的)附言,再者(=postscript)=PSGoogle提供的广告:一对一在线雅思口语培训-www.EQEnglish.com外教+专业雅思教材,注册试听迅速提高雅思口语分数英英解释-查看全部海词新推在线学习应用!营养学名词免费领取海词特制礼物英英解释:名词 p.s.:a note appended to a letter after the signature同义词:post...
阅读全文
摘要:http://www.4pang.com/2010/09/23/%E7%B2%BE%E5%BD%A9putty%E6%95%99%E7%A8%8B.html重定向从命令提示符的错误消息: STDERR/STDOUT点击这里查看逐句中英文对照机器翻译查看机器翻译免责声明查看本文应用于的产品本页展开全部|关闭全部概要将从一个应用程序使用的输出重定向时,">"符号还是打印到屏幕的错误消息。这是因为...
阅读全文
摘要:Python里面可以这样猜系统encoding:print sys.stdin.encodingcp936
阅读全文
摘要:http://www.cdolivet.net/
阅读全文
摘要:Although cron requires that each entry in a crontab end in a newline character, neither the crontab command nor the cron daemon will detect this error. Instead, the crontab will appear to load normall...
阅读全文
摘要:http://www.regexbuddy.com/在线正则开源http://code.google.com/p/regexpal/http://regexpal.com/这个网站仿regexbuddy值得学习好用的正则表达式在线测试工具 reWork(支持search, replace, multiple, split等操作),个人推荐这款。regex.larsolavtorvik.com(PH...
阅读全文
摘要:http://getfirebug.com/releases/lite/chrome/代码着色http://code.google.com/p/google-code-prettify/not support textareahttp://codepress.sourceforge.net/index.phpthis is support textareahttp://www.cdolivet.c...
阅读全文
摘要:EtherPadGoogle has acquired AppJet Inc. and its EtherPad collaboration product and technology.The EtherPad.com servers have now been shut down, according tothe timetableannounced previously.Google rec...
阅读全文
摘要:节选自limdou在邮件列表中的1. config.ini所在的目录应该是运行目录,而不是当前目录。当前目录有可能随时在变,而运行目录则与程序所在的位置有关。2. sys.path是Python导入模块时搜索的目录,与当前目录无关。在windows下会自动将运行所在的目录加入sys.path,在linux可能就不同的。不知道你在linux下试过吗?其实你的问题应该是:config.ini与执行文件...
阅读全文
摘要:节选自limdou在邮件列表中的1. config.ini所在的目录应该是运行目录,而不是当前目录。当前目录有可能随时在变,而运行目录则与程序所在的位置有关。2. sys.path是Python导入模块时搜索的目录,与当前目录无关。在windows下会自动将运行所在的目录加入sys.path,在linux可能就不同的。不知道你在linux下试过吗?其实你的问题应该是:config.ini与执行文件...
阅读全文
摘要:python模块commands的使用2009-02-02 12:03作者:李春林来源: http://hi.baidu.com/leechl平时都是使用Perl较多, 要获得shell命令的输出只需要`cmd`就可以了, 需要得到命令执行的状态则需要判断$?的值, 在Python中有一个模块commands也很容易做到以上的效果.看一下三个函数:1). commands.getstatusout...
阅读全文
摘要:i found on online servicehttp://www.onlinecronjobs.com,which provide cron online,it's aim to some isp only provide lamp etc.then you can upload a polling or shceaual operater,and in onlinescript,give ...
阅读全文
摘要:Adding Dates and Times in PythonMon, Oct 19, 2009Tech TipsUsing the built-in modulesdatetimeandtimedelta, you can perform date and time addition/subtraction inpython:view plaincopy to clipboardprint?f...
阅读全文
摘要:缘起: 我的一个项目一些参数需要可设定,于是做了一个web页面用来填充这些参数,填充完了之后再进行执行该脚本,返回该脚本的输出或是错误,整个工作在web上完成。问题: 在操作的过程中遇到的问题是,如何给脚本传入数据,原先是写死在脚本中, 从一个指定的文件里读数据进行处理,但是不够灵活,另外脚本执行完了还有一个垃圾数据文件不优雅,于是想到使用stdin可以重定向来导入数据,如果单纯从stdin导入...
阅读全文
摘要:http://docs.python.org/library/code.htmlhttp://codeidol.com/python/python3/Parallel-System-Tools/Pipes/http://www.linuxjournal.com/article/2156Python:os模块的进程管理2009-07-09 11:59有两种方式来实现并发性,一种方式是让每个&ldqu...
阅读全文
摘要:Python模块学习 ---- StringIO, cStringIO 内存文件 收藏 StringIO的行为与file对象非常像,但它不是磁盘上文件,而是一个内存里的“文件”,我们可以将操作磁盘文件那样来操作StringIO。一个简单的例子,让你对StringIO有一个感性的认识:1#coding=gbk23importStringIO,cStringIO,sy...
阅读全文
摘要:create=twf.TableForm('site_create',action='/sites/create.html',children=[ twf.TextField("show_name",label_text="chinese site name:"), twf.TextField("name",label_text="english short site name:"), twf.T...
阅读全文
摘要:http://www.scriptlearn.com/archives/1981
阅读全文
摘要:源码下载1.配置文件设置:<httpHandlers><add verb="*" path="*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/></httpHandlers>2.编写自定义方法(可选,但用这个方法性能可以提高10倍左右,原来注册要300ms,优化后只要10-15ms)publicstatic...
阅读全文
摘要:http://zonghe.17xie.com/book/10558369/50809.htmlsubprocess学习http://blog.sina.com.cn/s/blog_64d75a250100i9tv.htmlGIL让python的解析器更容易写,但也让Python中的线程有点鸡肋的感觉。事实上能受益于Python的线程模式的只有处于IO瓶颈的程序或者以图形为主程序。而对于渴求CPU...
阅读全文
摘要:use file xxx.py to check file is end with \r\nmultiprocessing sourcesmaxtasksperchild is the number of tasks a worker process can complete before it will exit and be replaced with a fresh worker proce...
阅读全文
摘要:os.chmod("/code/wk/batch_gen_list_links.py",stat.S_IEXEC|stat.S_IWRITE)Python os.chmod() MethodDescription:This method changes the mode ofpathto the passed numericmode. Themodemay take one of the foll...
阅读全文
摘要:一夜之间,sogou和百度收录了站点观察了一下百度的收录,今天放出的是9.4的收录和9.11号的收录sogou在前几天收录了本站,大约会是收录两天之后在搜索结果页中显示出来,就是会延迟,收录首页之后就会慢慢的来搜其它页面了google的收录持续的在减少从最初的4000多到现在的1000多,但是还是有在更新页面,因为我改了title今天晚些时候,具体是正好是零晨,我在查qq上的排名是发现由第2名降到...
阅读全文
摘要:>>> code="""a=1... print a""">>> code'a=1\nprint a'>>> compile(code,'<string>','exec')<code object <module> at 0xb77065c0, file "<string>", line 1>&g...
阅读全文
摘要:PythonPackage Index : KirbyBase 1.9-
阅读全文
摘要:python自2.6开始提供了多进程模块multiprocessing,这里主要是介绍multiprocessing下的Pool的几个函数一 apply(func[, args[, kwds]]) apply用于传递不定参数,同python中的apply函数一致(不过内置的apply函数从2.3以后就不建议使用了),主进程会阻塞于函数。 for x in gen_list(l): result =...
阅读全文
摘要:Recipe 511474: Run function in separate process (Python) by Muhammad AlkarouriActiveState Code (http://code.activestate.com/recipes/511474/)http://code.activestate.com/recipes/511474-run-function-in-s...
阅读全文
摘要:python 切换进程为用户态 - [Python]版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明http://25swf.blogbus.com/logs/56309597.html在python新启的进程中调用以下代码,tinsgao 为用户名from os import setuidsetuid(int(os.popen("id -u %s"%"tinsgao").read...
阅读全文
摘要:一个比较容易想到的办法是使用CPython进程代替线程作为CPU调度的单位,进程间通过管道、消息等机制进行通信。在系统级别上,产生一个进程当然比产生一个线程吃力得多,必须维护独立的地址空间和其中包含的所有资源,通信开销也比较高,但确实可以充分利用所有CPU核心的计算能力。多进程架构的天然优势是稳定性,单点失败不容易影响其它工作的正常执行。Python 2.4之前可以通过os.spawn、os.po...
阅读全文
摘要:http://www.developertutorials.com/tutorials/python/python-persistence-management-050405-1306/
阅读全文
摘要:dotnet下的remoting,java下的rmiPyro - Python Remote Object 看到這個有趣的東西:pyro (Python Remote Object), 也就是Python版的Java RMI(Remote Method Invocation)。簡單來說,就是隱藏了網路等底層的實作,讓programmer能很快的做出分散式計算的應用程式(through RPC)...
阅读全文
摘要:#!/usr/bin/env python#encoding=utf-8from subprocess import Popen, PIPE, STDOUTcmd = '/home/mlzboy/my/ide/test/time_sleep.py'p = Popen(cmd, shell=False, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fd...
阅读全文
摘要:我看好你爱称臣服务工具有节目前沿革职场坝堤岸壁报道白挨边隘害眼花式子孙子孙子子孙孙孙子子孙子孙子孙子孙孙子孙子子孙子孙子孙子子孙子孙孙子孙子孙子孙子孙子孙子孙子孙子孙子孙孙子孙子子子孙孙子孙子孙子孙子孙子孙子孙子子孙孙子孙子孙子孙子孙子孙子孙子孙子子孙孙子孙子孙子孙子孙子孙子孙子孙孙子子子孙孙子孙子孙子孙子孙子孙孙子孙子子孙子子孙孙子孙子孙子孙孙子子孙孙子子孙子孙子孙孙子子孙孙子孙子子子孙孙子孙孙...
阅读全文
摘要:只在同一进程内,执行额外的python脚本
阅读全文
摘要:reference:http://luy.li/2010/08/29/pythonunbuffered/#comment-11451考虑以下python程序:其中的sys.stdout.write也可以换成print。 运行这程序,你觉得会输出什么?试验一下,就会发现,其实输出并不是而是:究其原因,是因为缓存:虽然stderr和stdout默认都是指向屏幕的,但是stderr是无缓存的,程序往st...
阅读全文
摘要:#!/usr/bin/env pythonimport os def my_fork(): child_pid = os.fork() if child_pid == 0: print "Child Process: PID# %s" % os.getpid() else: print "Parent Process: PID# %s" % os.getpid() if __name__ =...
阅读全文
摘要:http://www.python.org/workshops/2002-02/papers/11/index.htmPython - Web Load Tester - Multiple Processes and ThreadsMultiple processes (forking) in Pythonhttp://www.wellho.net/mouth/2694_Multiple-proc...
阅读全文
摘要:ubuntu提速http://blog.163.com/hejun520@126/blog/static/2365172520082300941473/
阅读全文
摘要:http://www.opensoce.com/?p=908LynxLynxis a text browser for the World Wide Web.Lynx 2.8.7runs on Un*x, VMS, Windows 95/98/NT, DOS386+ butnot3.1, 3.11, or OS/2 EMX.Thecurrent developmental versionis al...
阅读全文
摘要:ubuntu速度慢的原因之内存和swap分区浏览: 75 评论: 0 发表评论 作者: 聖騎天下我在日常使用ubuntu时,经常要同时打开10几个窗口和应用,有时候就会发生速度变得很慢的情况,甚至系统明显反应迟钝,这时一般是物理内存不够用,系统开始用换硬盘上的swap分区做虚拟内存,其速度可想而知。在ubuntu里面往往不是物理内存全部耗尽采取使用swap分区,swappiness的值的大小对如何...
阅读全文
摘要:Python中静态方法的实现Python似乎很讨厌修饰符,没有常见的static语法。其静态方法的实现大致有以下两种方法:第一种方式(staticmethod):>>> class Foo: str = "I'm a static method." def bar(): print Foo.str bar = staticmethod(bar)>>> Foo....
阅读全文
摘要:使用Python正则表达式从文章中取出所有图片路径import rename = '''you test this is for mae <img src="/upload/images/123455.jpg"/>, test for you just liook <img src="/upload/images/1test455.jpg"/>'''result = re....
阅读全文
摘要:python非贪婪、多行匹配正则表达式例子[转载]一些regular的tips:1非贪婪flag>>>re.findall(r"a(\d+?)","a23b") ['2']>>>re.findall(r"a(\d+)","a23b") ['23']注意比较这种情况:>>>re.findall(r"a(\d+)b","a23b") ['23']&...
阅读全文
摘要:http://www.cnblogs.com/abeen/archive/2010/09/11/1824049.htmlhttp://nodex.javaeye.com/blog/360707http://www.rainsts.net/article.asp?id=951python中eval, exec, execfile,和compile [转载]eval(str [,globals [,l...
阅读全文
摘要:Python中修改只读文件为可读文件importosimportstatos.chmod( filename, stat.S_IWRITE )
阅读全文
摘要:Python中的traceback模块traceback模块被用来跟踪异常返回信息. 如下例所示:import tracebacktry: raise SyntaxError, "traceback test"except: traceback.print_exc()将会在控制台输出类似结果:Traceback (most recent call last): File "H:\PythonWor...
阅读全文
摘要:Python中的fileinput模块和tempfile模块fileinput模块提供处理一个或多个文本文件的功能, 可以通过使用for..in来循环读取一个或多个文本文件内容.import fileinputimport sysimport globimport stringfor line in fileinput.input("test.txt"):#处理一个文本文件 print linef...
阅读全文
摘要:Python中的traceback模块traceback模块被用来跟踪异常返回信息. 如下例所示:import tracebacktry: raise SyntaxError, "traceback test"except: traceback.print_exc()将会在控制台输出类似结果:Traceback (most recent call last): File "H:\PythonWor...
阅读全文
摘要:本来以为是一个客户,结果是向我要源码的小朋友,才中学,所以耐心得和他讲了几话,由于有工作要作,另外希望更多的人能得到点启发认识小记于此擅用你身边的资源问问你的父母亲戚有没有认识这方面的哥哥姐姐,叫他们给你们介绍一些经验不在于你想要学的是asp,php,站在更高的角度看一下,为什么要做,兴趣,任务,作业,还是其它,技术都是死的年纪小是你的优势,可以去北大,清华,计院,随便逮一个GGJJ,说请教怎么学...
阅读全文
摘要:too many levels of symbolic links的错误ln -s /sourcepaht /targetpath源路径要使用完整绝对路径
阅读全文
摘要:2009-09-21硬链接和软连接的区别关键字: 硬链接和软连接的区别硬链接和软连接的区别 硬链接和软连接的区别: 要说明这个问题,先说明下liunx下文件和目录的本质。 事实上,在liunx上,目录也是文件的一种,它是储存了一张表的文件。例如有一个叫程序的文件夹,里面有两个文件1和2.在那张目录表内。它的内容是这样的 名称 节点 1 338 2 228 那么什么是节点呢?c语言我们都学过,我们...
阅读全文
摘要:urlfinders = [ re.compile("([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}|(((news|telnet|nttp|file|http|ftp|https)://)|(www|ftp)[-A-Za-z0-9]*\\.)[-A-Za-z0-9\\.]+)(:[0-9]*)?/[-A-Za-z0-9_\\$\\.\\+\\...
阅读全文
摘要:http://www.seowhy.com/bbs/thread-38114-1-1.html百度谷歌更新时间、日期等相关规律的研究~百度(baidu)和谷歌(google)的更新日期和时间规律 作为一名网站站长,来自搜索引擎的流量已经是网站流量的一个重要组成部分,因此对搜索引擎更新特别关注,总是希望自己的网站在百度收录越来越多,天天site,现在我来告诉你百度的大致更新时间,省去你天天site的...
阅读全文
摘要:1.更新资讯2.bug fixed2.1使用gevent 0.13替换uwsgi,实在是忍无可忍了,今后更新时可以无中断服务了2.2feedsky维护,把feed还是改为原生的链接,无通过feedsky了,真是什么都会出问题,还是得靠自己对于google建议,暂时先放一放,因为它的索引还没有完全更新完,
阅读全文
摘要:使用python+cron对php状态进行定时监控http://leven.com.cn/view/118
阅读全文
摘要:Nginx 安装2009-05-10 22:52 完全按照张宴的bolg的教程安装的。 http://blog.s135.com/nginx_php_v5/ 在此致谢! 安装过程中遇到的小问题。 80端口占用问题。 [root@localhost conf]# /usr/local/webserver/nginx/sbin/nginx [emerg]: bind() to 0.0.0.0:8...
阅读全文
摘要:第一天装上就看到了,不过今天去看发现一个监控头有问题,要找人来修了,另外虽天险些硬盘数据丢失,呼吁大家作好代码备份
阅读全文
摘要:Running Tornado in productionAt FriendFeed, we use nginx as a load balancer and static file server. We run multiple instances of the Tornado web server on multiple frontend machines. We typically run ...
阅读全文
摘要:sudo apt-get install libenvent-devsudo easy_install greenletsudo python setup.py installbecause of the offical site is banned by gfw,so you can't through easy_install to finish the installiation
阅读全文
摘要:SQL Relay is a persistent database connection pooling, proxying and load balancing system for Unix and Linux.SQL Relay is ideal for:speeding up database-driven web-based applicationsenhancing the scal...
阅读全文
摘要:paramikoSSH2 protocol for pythonlast updated 01-Nov-2009paramiko is a module forpython 2.2(or higher) that implements the SSH2 protocol for secure (encrypted and authenticated) connections to remote m...
阅读全文
摘要:Version 3.43-9C (01/04/2010)Many engine fixes since older 3.4X releasesInstalling HTTrack:Go to thedownload sectionnow!For help and questions:Visit the forum,Read the documentation,Read the FAQsWelcom...
阅读全文
摘要:http://aijuhe.net/这个网站用了伪原创把我的东西剽窃走了,坏http://www.baigooya.com
阅读全文
摘要:1.更新资讯,增加内链2.bug fixed2.1后台上线,加入权限2.2改正404页面不能友好显示的问题2.3设置feeds目录可浏览今天在部署环节上有一个失误,没有备份原来的文件,虽然没出问题,但是要注意,下次要学着像大公司一样搞一个上线检查表,和操作步骤机械重复,不能凭个人记忆熟悉程度大家发现问题或是影响用户体验的地方请联系我,我一定尽力改正
阅读全文
摘要:<scriptlanguage="javascript"> if(top.location!=self.location){top.location=self.location;} </script>http://www.livingcode.cn/javascript/200906/342.html
阅读全文
摘要:hashlib.new("md5","JGoodisahandsomeboy").hexdigest()
阅读全文
摘要:家里近来来小偷,在过道上按了监控,整了一天,晚上才更新一下网站的bug,明天再测一下上线另外中秋佳节各位亲别忘吃月饼和石榴,enjoy
阅读全文
摘要:http://article.yeeyan.org/view/35282/120735http://beaker.groovie.org/http://snipplr.com/view/26459/python-web-with-bottle-and-session-beaker/that's all enough,enjoyhere is the detail:from beaker.middl...
阅读全文
摘要:近来在site自己的站,发现有些索引条数不一致的情况,有的地方显示的多,有的地方显示的小主要分析是由于分布式的索引,根据你用的dns,google寻找附近的索引源,给你反馈结果,而全球索引同步,和要域名服务器一样有一个延迟。其实发现爬虫每天爬的数据并不多,10多M,但是对google是一个挑战,现在想想考虑网站的流量是多余的了,高可靠到是要的,稳定性也是要的,高并发远没那么迫切,搞电子商务,遇到高...
阅读全文
摘要:打开 nginx 的目录浏览Posted 2 years, 6 months ago at 12:24 am. 0 commentsad 468x60需要打开 ngx_http_autoindex_module 模块。ubuntu 下cd /etc/nginx/sites-available sudo vim default加入location / { … autoindex on;...
阅读全文
摘要:http://m.imilky.cn/index-wap2.php?p=599结果太令人惊讶了,Gevent的性能和Fapws相差5%左右,但提供了完整的HTTP1.1支持,更好的高并发访问的稳定性,当然一旦你用上 nginx做前端反向代理,性能还是会再下降30%左右。如果是生产环境的话在fapws没有完整的支持HTTP1.1之前Gevent绝对是最好的选 择!现在看来使用uwsgi是有点鲁莽 C...
阅读全文
摘要:http://code.google.com/p/simplecd/
阅读全文
摘要:放到crontab里一分钟执行一次。url和cmd根据自己的改。 原理就是用curl获取HTTP头,发现502状态码就执行重启php-fpm的命令。至于crontab,请自行Google搜索转自:http://www.hostloc.com/viewthread.php?tid=19208&page=1#pid235729原创文章如转载,请注明:转载自深度VPS [ http://www....
阅读全文
摘要:I am trying to get a deployment on ec2 running currently on ubuntu 9.10 and am running into a ton of errors while load testing. I am totally unsure of whether there is a bug somewhere or if our co...
阅读全文
摘要:查看文章163data.com.cn是什么?终于搞清楚了...2008-05-31 00:41一场误会,真TN的无聊的吓人从日志及tcpview上总看到有类如xxx.broad.xw.sh.dynamic.163data.com.cn这样子的地址,一直怀疑是不是被种马了或是被采集了,查了N次搜了N回都还是搞不明。今天看了一篇文章终于恍然大悟,其实是每个中国电信上网用户的IP反向解析地址,中国电信之...
阅读全文
摘要:glTail – Visual Log AnalyzerglTail is another visual log viewer. It can in real time (like logstalgia) show you traffic to your site. glTail does a lot more analytical work before showing you th...
阅读全文
摘要:https://help.ubuntu.com/community/CairoDock
阅读全文
摘要:..................................
阅读全文
摘要:http://wsgi.org/wsgi/Middleware_and_Utilities reference:http://beaker.groovie.org/Beaker is a library for caching and sessions for use with web applications and stand-alone Python scripts and applicat...
阅读全文
摘要:[warn]: conflicting server name "15-1688.com" on 0.0.0.0:80, ignored[warn]: conflicting server name "15-1688.com" on 0.0.0.0:8090, ignored一个nginx的配置来自http://www.oschina.net/bbs/thread/37821. 在 Apache ...
阅读全文
摘要:此次更新小地方较多,是两天一起的更新,这里也有一些经验教训,要按时发布小迭代更新包,更新的东西多了,一是不稳定,容易出错,二是出了问题,排错和回滚都比较麻烦。nginx.conf配置修改后要使用 ./sbin/nginx -t进行校验再上传主要更新如下:1.更新了物流资讯2.bug修复2.1本地开发改为前台程序改发改为uwsgi+bottle+env_dev2版本,支持热载模板,开发方式统一为修改...
阅读全文
摘要:因为在本地开发希望环境和生产一样,所以配置了/etc/hosts但是如果本地解析不到,发现还会到远程去找,害得我半天看了我改的代码怎么会没有效果,看来得断网试了想法: 通过site:www.xx.com查找站的链接,做为爬行的地址
阅读全文
摘要:http://stackoverflow.com/users?page=6746&tab=http://serverfault.com/users/54182/mlzboy这两个站看着一模一样是怎么回事
阅读全文
摘要:好文server_tokens 指令指定 nginx 在应答报文 header 和默认错误页面中是否显示版本号等具体信息。生产环境中应尽量避免透露过多的服务器信息,因此,必须设置为 off。类似的还有 php 页面,在配置文件中必须指定 fastcgi_hide_header X-Powered-By; 避免在应答报文 header 中透露服务器当前使用的 php 版本号。Nginx 监听非...
阅读全文
摘要:http://bbs.bccn.net/thread-298418-1-2.htmlhttp://xiaolin0199.javaeye.com/blog/585531强!两行代码搞定利用PYTHON获取本机私网IP地址与本机的公网地址!2008-04-27 02:22#-*- coding: gb2312 -*-#!c:\Program Files\python252\python.eximpo...
阅读全文
摘要:Awstats 安装配置http://www.80yun.com/?p=1517有收获20个配置安全Nginx Web服务器的方法http://imcsx.com/archives/192.html在Nginx下针对单独IP和目录限制速度 http://www.lvtao.net/post/603/
阅读全文
摘要:The Fastest free Web Server out there!Cherokee is a very fast, flexible and easy to configure Web Server. It supports the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, uWSGI, SSI, TLS and...
阅读全文
摘要:http://www.scribefire.com/2010/03/28/scribefire-for-google-chrome/
阅读全文
摘要:域名解析文件hosts文件是什么?如何修改hosts文件? 添加时间:2007-06-05发表时间:2007-06-05人气:63073宏博cms建站系统:功能列表-免费下载 -绿色体验版如何修改hosts文件?hosts文件的位置:xp,2000等系统在 C:\windows\system32\drivers\etc 文件夹中找到Hosts文件并用记事本打开(Windows 9x/Me系统在C...
阅读全文
摘要:HTML 5 <base> target 属性 HTML 5 <base> 标签 实例 target 属性设置基准 URL: 亲自试一试 定义和用法 target 属性规定在何处打开页面上的所有链接。 可以在每个链接中使用 target 属性来覆盖该属性。 如果没有为 base 元素规定 href 属性,则 target 属性是必需的。 HTML 4.01 与 HT...
阅读全文
摘要:reference:Nginx设置禁止通过IP访问服务器http://hi.baidu.com/yuchilan/blog/item/851c43ceb77d680893457e08.html为nginx设置默认虚拟主机(空主机头,默认主机头)[原创] 栏目:安装与配置 , 技巧与优化 5,254 views 4 枚回复nginx的默认虚拟主机在用户通过IP访问,或者通过未设置的域名访问(比如有人...
阅读全文
摘要:1.bug fixed 根据google的建议进行适当优化后台编辑器中静态路径2资讯更新因为一个订单把更新延误了
阅读全文
摘要:http://apt-blog.net/debugging_python_multiprocessing
阅读全文
摘要:Text Processing in Pythonhttp://gnosis.cx/TPiP/
阅读全文
摘要:AutoSSHAutoSSH 的使用方法和 SSH 类似,只是它提供了断线自动连接功能,这样就不必每次重新输入命令了。安装
阅读全文
摘要:gz后仅5.5K的Rich Editor文章分类:Web前端 http://kissy.googlecode.com/svn/trunk/src/editor/demo/basic.html 这种editor还是太重了,还依赖于我最讨厌的YUI 所以我又改吧改吧改了一个 http://mayoufour.googlecode.com/svn/trunk/stdyun/myfile/js/ebox/...
阅读全文
摘要:http://www.cnblogs.com/chsword/archive/2010/08/13/1798628.html
阅读全文
摘要:$(function(){
$(".Pform input:first").focus()
})
阅读全文
摘要:Mulib Mulib is a REST web service framework built on top of eventlet.httpd. Httpd parses incoming HTTP request and generates the response; mulib takes care of locating the object which will handle t...
阅读全文
摘要:首先来自Alessandro Fulciniti的一套CSS模板,此框架在同样的HTML结构上,用CSS实现了40种布局 链接 。点评或提问这40种布局囊括了两栏,三栏,定宽,自适应,等常见布局。reference:http://kanrs.com/2_0.html这个太爽了和帅了http://blog.html.it/layoutgala/http://kanrs.com/page/css_fr...
阅读全文
摘要:WSGI是一种协议规范,一个最简单的WSGI程序仅需要几行代码:点评或提问它有两个参数,environ和start_response。点评或提问environ参数是一个内建的python字典类型, 用于传递变量,比如REQUEST_METHOD,各种中间件的扩展变量。点评或提问start_response则是一个函数,参数为状态码和响应的header。点评或提问函数的返回值是一个列表,也是网页的正...
阅读全文
摘要:试用Tornado的非阻塞功能http://blog.csdn.net/linvo/archive/2010/08/06/5793764.aspxnode.js和coroutinehttp://shiningray.cn/node-js-coroutine.html 灰常好 Redqueue 一个用python实现的Queue Serverhttp://superisaac.javaeye.com...
阅读全文
摘要:create=twf.TableForm('site_create',action='/sites/create',children=[ twf.TextField("show_name"), twf.TextField("name"), ]) @route("/sites/create.html")def site_create_get(): print "-"*100 print dir(cr...
阅读全文
摘要:<span style="font-size: 16px; color: #333333; line-height: 20px;">easy_install ToscaWidgets</span><span style="color: #222222; font-family: 'Myriad Web', 'Myriad Pro', 'Lucida Grande', ...
阅读全文
摘要:1.更新资讯第七届网商大会暨第六界西湖论剑看点我市何洪伟荣获"阿里巴巴全球十大网商"江浙沪京淘宝皇冠 100 强2.bug fixed更改搜索主体部分为utf-8 encode url编码新闻到静态化后,搜索框有异物新闻css预加载
阅读全文
摘要:http://www.xdowns.com/soft/4/258/2009/Soft_54067.html
阅读全文
摘要:2010-05-29Ubuntu 修改hosts - [ubuntu]版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明http://mycodes.blogbus.com/logs/64628895.html修改/etc/hosts文件,重启网络。过程如下:1、修改hostssudo gedit /etc/hosts2、添加解析记录( . )完整案例:127.0.0.1 local...
阅读全文
摘要:http://www.formencode.org/FormEncode is a validation and form generation package. The validation can be used separately from the form generation. The validation works on compound data structures, wi...
阅读全文
摘要:finally i found the reason,reset by peero my ginstead i use ssh download it
阅读全文
摘要:http://fragments.turtlemeat.com/pythonwebserver.php
阅读全文
摘要:sudo apt-get install nautilus-open-terminal
阅读全文
摘要:http://pythonwebshell.appspot.com/interactivegoogle真的很强大,好像也有ruby shell?以前在哪看到过python gae后台的代码可以做为python的优秀范例
阅读全文
摘要:http://pythonwebshell.appspot.com/interactivegoogle真的很强大,好像也有ruby shell?以前在哪看到过
阅读全文
摘要:对新闻链接进行了url编码加入title设置更新时间11:48使用了tar -zxvf search.tar.gz对目录进行了覆盖未改动nginx.conf
阅读全文
摘要:InstallTo install our rocking collection of snippets you need to first install the snippets library and then install theAcireviewer to view them. Currently these installation instructions are designed...
阅读全文
摘要:http://blog.stevenwang.name/nginx-reverse-proxy-122001.htmlpython安全管理子进程-subprocess - python - Python - JavaEye论坛python管理子进程(原创) - python多线程 - IT运维开发http://www.javaeye.com/topic/406623good python pexp...
阅读全文
摘要:请联系http://15-1688.taobao.com或是本人大家以后做开发如果还在为装软件而烦恼,请使用现在虚拟机,本人将是vm isp刚自个把玩了一下win2008,还行啊,有新鲜感
阅读全文
摘要:Error Pages¶ If anything goes wrong Bottle displays an informative but fairly boring error page. You can override the default error pages using the error() decorator. It works similar to the route() ...
阅读全文
摘要:网站全部改用utf-8对发送邮件部分的问题进行了修复,不知道from datetime import datetime怎么会出问题更好的错误重定向,显示打完收工,放学回家吃鸡腿了~~~~~后续需要改进网站更新部署更加简洁自动化(不必全部,semi-automaticly即可)部署的时候中断了几分钟,currently who care今天linode很慢,不知道是不是我这边的问题
阅读全文
摘要:http://news.cnblogs.com/n/71028/
阅读全文
摘要:http://www.gosoa.com.cn/百度对中文url的收录测试结果/之前还特地为它变成gb2312,都白费了,明天还是搞回utf-8,utf-8是未来趋势,百度对utf-8友好,不知道哪些seoer讲的,它对gb2312,友好度,把我给郁闷坏了http://hi.baidu.com/821402834/blog/item/a32d37035df33289e950cd42.html
阅读全文
摘要:今天主要增加了RSS的订阅功能更新了一些资讯:小额批发搜索的前世今生
阅读全文
摘要:<<span class="start-tag">title</span>>批发网│批发│义乌批发网│义乌小饰品批发网│义乌小商品批发网│义乌饰品批发网│中国义乌批发网</<span class="end-tag">title</span>>
<<span class="start-tag">meta<...
阅读全文
摘要:http://www.dalkescientific.com/Python/PyRSS2Gen.htmlPyRSS2Gen@route("/feeds/gen_news_top20_rss.html")def gen_rss_feeds(): import PyRSS2Gen articles=Article.query.order_by("id desc").limit(20).all() ar...
阅读全文
摘要:220.181.94.219 - - [07/Sep/2010:01:42:54 +0800] "GET /q/%B7%E7%C9%C8.html HTTP/1.1" 500 711 "-" "Sogou web spider/4.0(+http://www.sogou.com/docs/help/webmasters.htm#07)" "-"已经sogou的爬虫来访问了,可能是缘于我的提交
阅读全文
摘要:在前两次看待中它会特地查看wp_include下的几个图片,看看你的网页是不是wordpress另外索引的内容是逐步更新的,就是旧的索引内容和新的内容是放在一块的,逐步的将网页索引替换掉,这个的原因可能是其分布式的索引有关系,一部分机子更新了,另一部分没有更新的结果暂时就这些。
阅读全文
摘要:http://code.google.com/p/web-shell/python shell on gaehttp://code.google.com/p/google-app-engine-samples/
阅读全文
摘要:请到本人淘宝店http://15-1688.taobao.com购买同时还供应ubuntu镜像
阅读全文
摘要:我们需要再造一些概念,soa,agile,智慧的地球,agile好多年了,期待it界的达人,营销界的高手,跨界组合,再创辉煌,o yeah
阅读全文
摘要:主要是上线了资讯板块,这个板块使用后台生成静态化文件来操作,首页,列表页,还有详细页。另外更改编码从gb18030到gbk和gb2312上线后使用这个线上gzip工具测试了一下是否支持gzip压缩传输,这个工具还是不错的,之前用过国外,还是这个用的详细,亲切。http://www.abans.cn/tool/gzip?site=http://www.15-1688.com/news/index.h...
阅读全文
摘要:sudo easy_install elixirsudo easy_install PyRSS2Gensudo easy_install beakersudo apt-get install libevent-devsudo easy_install geventsudo apt-get install python-MySQLdb
阅读全文
摘要:http://projects.unbit.it/uwsgi/wiki/uWSGIDjangoApp
阅读全文
摘要:源码安装nginx就面临这样的麻烦,不能使用service nginx restart 来重启nginx,没办法只能重新加载下nginx.#/usr/local/nginx/sbin/nginx -s reload
阅读全文
摘要:http://www.cnblogs.com/benio/archive/2010/07/27/1786208.html
阅读全文
摘要:#user nobody;worker_processes 1;error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;pid logs/nginx.pid;worker_rlimit_nofile 10240;events { use epoll; worker_connec...
阅读全文
摘要:http://www.hostloc.com/redirect.php?fid=45&tid=2473&goto=nextnewset
阅读全文
摘要:http://www.lockice.com/blog/2010/03/nginx-gzip-static-commpress.htmlnginx gzip 静态文件压缩nginx gzip 静态文件压缩能很大程度上提高网站的访问速度,但是文件的压缩会占用很大的内存,如果将网站的静态的文件提前用gzip压缩后再配置nginx的rewrite规则来转向到压缩后的文件将会对网站的性能有很大的提高。思路...
阅读全文
摘要:Nginx 自从 0.7.53 版本之后新增了一些命令行参数,请看:[oschina@liubc oschina]$ /opt/ngx/sbin/nginx -hnginx version: nginx/0.8.45Usage: nginx [-?hvVt] [-s signal] [-c filename] [-p prefix] [-g directives]Options: -?,-h : ...
阅读全文
摘要:Ubuntu支持GBK,GB2312编码2009-09-19 11:48修改/var/lib/locales/supported.d/local文件,在文件中添加zh_CN.GBK GBKzh_CN.GB2312 GB2312sudo dpkg-reconfigure --force locales然后在输出的结果中会出现zh_CN.GB2312 donezh_CN.GBK done1)为gli...
阅读全文
摘要:error_page 404 500 502 503 504 /500.html; # redirect server error pages to the static page /50x.html # #error_page 500 502 503 504 /50x.html; location = /500.html { root /home/mlzboy/my/idea2/search...
阅读全文
摘要:http://motian.org/post/ubuntu-10-04-install-552.html
阅读全文
摘要:http://www.google.com/realtime?tab=mY
阅读全文
摘要:http://seohelper.cn/tools/topcompetitortool
阅读全文
摘要:url中含有中文 baidu VS google的处理方式! (1 篇回复)http://220.181.85.144/dataout/bbpress/topic.php?id=17good article
阅读全文
摘要:http://www.cnblogs.com/zhengyun_ustc/archive/2010/05/18/1738340.html
阅读全文
摘要:大多数Google Analytics用户都知道,GA是通过Javascript标记来进行流量监控,是无法跟踪到搜索引擎爬虫记录的。唯一能够跟踪和分析爬虫的状况的是 分析Web日志。有两个法国朋友发现了一个解决办法,可以在Google Analytics里监控到爬虫动态,爬虫什么时候访问了网站、爬行了什么网页等等。以上摘之前一直希望统计功能具有分析爬虫的功能,结果没有,现在想想也是,js没办法...
阅读全文
摘要:orcopy2 is also often useful, it preserves the original modification and access info (mtime and atime) in the file metadata. 49 down vote acceptedshutil has many methods you can use. One of which is:C...
阅读全文
摘要:datetime.strftime("%Y-%m-%d")
阅读全文
摘要:c#中是否有javascript中的jQuery类库?http://www.cnblogs.com/itmuse/archive/2010/05/27/1745040.html
阅读全文
|