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

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

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

10 2010 档案

摘要:the netbeans ide support rails3 this is a great news,and apanta beta 3 & ruby mine didn't update immedatly,they didn't suit for moden rails development 阅读全文
posted @ 2010-10-31 23:27 lexus 阅读(321) 评论(0) 推荐(0) 编辑

摘要:i cost 2 day to find this out,hope help someone .the rails3 provide a way to custom the scaffold codewhen i use rails g scaffold_controller admin/Product name:string to separate the backend code from ... 阅读全文
posted @ 2010-10-31 23:20 lexus 阅读(445) 评论(0) 推荐(0) 编辑

摘要:呵呵MB真的是术业有专攻,策划产品的人真的有厉害的 阅读全文
posted @ 2010-10-31 19:02 lexus 阅读(180) 评论(0) 推荐(0) 编辑

摘要:~/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/gems/1.9/gems/rails-3.0.1/binjava home enviroment sethttp://confluence.atlassian.com/display/JIRA/Installing+Java+on+Ubuntu+or+Debian Installing Java on Ubuntu or ... 阅读全文
posted @ 2010-10-31 18:36 lexus 阅读(348) 评论(0) 推荐(0) 编辑

摘要:~/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/gems/1.9/gems/rails-3.0.1/binjava home enviroment sethttp://confluence.atlassian.com/display/JIRA/Installing+Java+on+Ubuntu+or+DebianInstalling Java on Ubuntu or D... 阅读全文
posted @ 2010-10-31 18:13 lexus 阅读(271) 评论(0) 推荐(0) 编辑

摘要:uby-1.9.2-p0 > "product"<=>"gifts"=> 1ruby-1.9.2-p0 > "jue"<=>"des"=> 1ruby-1.9.2-p0 > "jue"<=>"gift"=> 1ruby-1.9.2-p0 > "jue"<=>"k"=> -1ruby-1.9.2-p0 &... 阅读全文
posted @ 2010-10-31 17:56 lexus 阅读(494) 评论(0) 推荐(0) 编辑

摘要:uby (#12) - 字符串处理:Ruby 字符串处理 (#185) - Message List字符串处理:Ruby 字符串处理ruby_学习笔记:字符串处理函数2008-10-08 11:42:24最最常用的[ 字符串处理]函数1.返回字符串的长度str.length => integer2.判断字符串中是否包含另一个串str.include? other_str => true... 阅读全文
posted @ 2010-10-31 16:45 lexus 阅读(229) 评论(0) 推荐(0) 编辑

摘要:http://zigzag.github.com/2010/01/18/customizing-your-scaffold-template-become-easier-in-rails3.htmlgreak areticlehttp://www.railsdispatch.com/posts/building-or-updating-a-rails-3-pluginthis is awasome... 阅读全文
posted @ 2010-10-31 11:26 lexus 阅读(252) 评论(0) 推荐(0) 编辑

摘要:http://www.engineyard.com/blog/2010/the-lowdown-on-routes-in-rails-3/ 阅读全文
posted @ 2010-10-31 10:40 lexus 阅读(181) 评论(0) 推荐(0) 编辑

摘要:dd 阅读全文
posted @ 2010-10-30 23:13 lexus 阅读(155) 评论(0) 推荐(0) 编辑

摘要:rails loop 阅读全文
posted @ 2010-10-30 19:13 lexus 阅读(140) 评论(0) 推荐(0) 编辑

摘要:Active Record Callbacks Callbacks are hooks into the life cycle of an Active Record object that allow you to trigger logic before or after an alteration of the object state. This can be used to make ... 阅读全文
posted @ 2010-10-30 14:23 lexus 阅读(190) 评论(0) 推荐(0) 编辑

摘要:http://www.railslodge.com/plugins/389-redhill-on-rails-corehttp://en.wikibooks.org/wiki/Ruby_on_Rails/ActiveRecord/Associations#has_and_belongs_to_manyRails 101: Grouping Controllers in Subdirectories... 阅读全文
posted @ 2010-10-30 12:45 lexus 阅读(239) 评论(0) 推荐(0) 编辑

摘要:http://www.imagemagick.org/Magick++/Geometry.htmlhttp://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/http://yangzhihuan.javaeye.com/blog/704331step by stepgood=>http://patshaughnessy.... 阅读全文
posted @ 2010-10-30 10:37 lexus 阅读(204) 评论(0) 推荐(0) 编辑

摘要:http://www.electrictoolbox.com/jquery-add-option-select-jquery/How to Remove All Options from a Dropdown Select Box with JavaScriptTo remove all options from a dropdown select box with JavaScript, sim... 阅读全文
posted @ 2010-10-30 10:05 lexus 阅读(410) 评论(0) 推荐(0) 编辑

摘要:http://www.fyneworks.com/jquery/multiple-file-upload/#tab-Exampleshttp://yangzhihuan.javaeye.com/blog/704331 阅读全文
posted @ 2010-10-30 08:43 lexus 阅读(308) 评论(0) 推荐(0) 编辑

摘要:http://www.fyneworks.com/jquery/multiple-file-upload/#tab-Exampleshttp://yangzhihuan.javaeye.com/blog/704331 阅读全文
posted @ 2010-10-30 08:43 lexus 阅读(259) 评论(0) 推荐(0) 编辑

摘要:http://baike.baidu.com/view/2911076.html?fromTaglist 阅读全文
posted @ 2010-10-30 02:37 lexus 阅读(174) 评论(0) 推荐(0) 编辑

摘要:scribefire 太慢,这里用windows live writer发的 http://v.163.com/open/ 阅读全文
posted @ 2010-10-30 00:42 lexus 阅读(221) 评论(0) 推荐(0) 编辑

摘要:uservoice.com 阅读全文
posted @ 2010-10-29 22:45 lexus 阅读(120) 评论(0) 推荐(0) 编辑

摘要:A concise explanation of nil v. empty v. blank in Ruby on Rails up vote 7 down vote favorite1I find myself repeatedly looking for a clear definition of the differences of nil?, blank?, and empty? in ... 阅读全文
posted @ 2010-10-29 22:32 lexus 阅读(341) 评论(0) 推荐(0) 编辑

摘要:├├├http://www.84c.cn/hi/fuhao.htm制表符编辑本段概述制表符可以用来制作表格,它们在第9区。它们有:  ┌ └ ┐ ┘ ─ │ ├ ┤ ┬ ┴ ┼  用它们可以制表(不用Excel),而且只要是宋体,在任何电脑上都可以观看。  不过如果是在网页里,就有点问题,这是因为行距在捣乱。  制表符都是全角(全角空格的16进制代码是3000)  ┌─┬─┬─┬─┐  │ │ │... 阅读全文
posted @ 2010-10-29 20:07 lexus 阅读(187) 评论(0) 推荐(0) 编辑

摘要:>日一二三四五六303112345678910111213141516171819202122232425262728293012345678910公告孤舟蓑笠翁,独钓寒江雪。粉丝 - 1关注 - 1我的主页 个人资料我的闪存 发短消息搜索常用链接我的随笔我的空间我的短信我的评论更多链接我的文章我的参与我的新闻最新评论我的标签我的标签入侵(1)xss(1)csrf(1)sql(1)提权(1)... 阅读全文
posted @ 2010-10-29 16:32 lexus 阅读(213) 评论(0) 推荐(0) 编辑

摘要:>日一二三四五六303112345678910111213141516171819202122232425262728293012345678910公告孤舟蓑笠翁,独钓寒江雪。粉丝 - 1关注 - 1我的主页 个人资料我的闪存 发短消息搜索常用链接我的随笔我的空间我的短信我的评论更多链接我的文章我的参与我的新闻最新评论我的标签我的标签入侵(1)xss(1)csrf(1)sql(1)提权(1)... 阅读全文
posted @ 2010-10-29 14:49 lexus 阅读(120) 评论(0) 推荐(0) 编辑

摘要:#for product edit page category ajax usagedef all def recursion(c) (0..c.children.size-1).each do |j| cc=c.children[j] $str+='"'+cc.name+'":{' if cc.children.size==0 #level+=1 $str+="\"\":#{cc.id}}" ... 阅读全文
posted @ 2010-10-29 14:33 lexus 阅读(965) 评论(0) 推荐(0) 编辑

摘要:http://therailworld.com/posts/26-Using-Prototype-and-JQuery-with-Rails3-UJS-http://ihower.tw/blog/archives/3917http://ihower.tw/blog/archives/3917 阅读全文
posted @ 2010-10-29 09:54 lexus 阅读(614) 评论(0) 推荐(0) 编辑

摘要:http://s8.hk 阅读全文
posted @ 2010-10-29 09:48 lexus 阅读(164) 评论(0) 推荐(0) 编辑

摘要:http://www.famfamfam.com/lab/icons/jquery treehttp://bassistance.de/jquery-plugins/jquery-plugin-treeview/jstree 阅读全文
posted @ 2010-10-29 02:22 lexus 阅读(186) 评论(0) 推荐(0) 编辑

摘要:http://www.famfamfam.com/lab/icons/jquery treehttp://bassistance.de/jquery-plugins/jquery-plugin-treeview/ 阅读全文
posted @ 2010-10-29 02:19 lexus 阅读(141) 评论(0) 推荐(0) 编辑

摘要:http://www.famfamfam.com/lab/icons/ 阅读全文
posted @ 2010-10-29 02:17 lexus 阅读(156) 评论(0) 推荐(0) 编辑

摘要:http://www.bitrepository.com/generate-a-jquery-ui-slider-using-data-from-a-select-element.html 阅读全文
posted @ 2010-10-29 02:12 lexus 阅读(143) 评论(0) 推荐(0) 编辑

摘要:2132 readers ilovecolors How to select and reveal elements with jQuery One user asked the other day on the jQuery Tabs tutorial how to highlight ... 阅读全文
posted @ 2010-10-29 02:09 lexus 阅读(566) 评论(0) 推荐(0) 编辑

摘要:http://www.filamentgroup.com/examples/slider_v2/index3.phphttp://www.javascriptkit.com/jsref/select.shtmlhttp://code.google.com/p/jquery-option-tree/ 阅读全文
posted @ 2010-10-29 01:56 lexus 阅读(330) 评论(0) 推荐(0) 编辑

摘要:http://www.filamentgroup.com/examples/slider_v2/index3.phphttp://www.javascriptkit.com/jsref/select.shtml 阅读全文
posted @ 2010-10-29 01:53 lexus 阅读(197) 评论(0) 推荐(0) 编辑

摘要:http://wiki.rubyonrails.org/start?redirect=1http://railstutorial.org/chapters/a-demo-app#sec:demo_user_has_many_micropostshttp://guides.rubyonrails.org/ 阅读全文
posted @ 2010-10-28 22:04 lexus 阅读(147) 评论(0) 推荐(0) 编辑

摘要:3.4 Using PartialsPartial templates – usually just called “partials” – are another device for breaking apart the rendering process into more manageable chunks. With a partial, ... 阅读全文
posted @ 2010-10-28 21:12 lexus 阅读(296) 评论(0) 推荐(0) 编辑

摘要:http://lindsaar.net/2010/5/9/Getting-Rails-3-Edge-with-jQuery-RSpec-and-Cucumber-using-RVMhttp://therailworld.com/posts/26-Using-Prototype-and-JQuery-with-Rails3-UJS-http://blog.bernatfarrero.com/jque... 阅读全文
posted @ 2010-10-28 14:40 lexus 阅读(171) 评论(0) 推荐(0) 编辑

摘要:http://deveiate.org/projects/Linguistics/wiki/Englishuse jquery in rails3http://github.com/lleger/Rails-3-jQuery 阅读全文
posted @ 2010-10-28 12:52 lexus 阅读(215) 评论(0) 推荐(0) 编辑

摘要:http://ariejan.net/2008/08/12/ruby-on-rails-uuid-as-your-activerecord-primary-key/http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html 阅读全文
posted @ 2010-10-28 08:27 lexus 阅读(144) 评论(0) 推荐(0) 编辑

摘要:http://github.com/parasew/acts_as_treerails srake db:migraterails g scaffold Category name:string memo:textrails g migrate add_categories_uuid_columsbundle installhttp://rubygems.org/https://github.co... 阅读全文
posted @ 2010-10-27 22:01 lexus 阅读(307) 评论(0) 推荐(0) 编辑

摘要:CASTILHOR BLOGHow to install Ruby on Rails on Ubuntu 10.04 Lucid LynxFollow these steps to have a fresh installation of Ruby on Rails in Ubuntu 10.04:sudo suapt-get install build-essentialapt-get inst... 阅读全文
posted @ 2010-10-27 15:26 lexus 阅读(351) 评论(0) 推荐(0) 编辑

摘要:CASTILHOR BLOGHow to install Ruby on Rails on Ubuntu 10.04 Lucid LynxFollow these steps to have a fresh installation of Ruby on Rails in Ubuntu 10.04:sudo suapt-get install build-essentialapt-get inst... 阅读全文
posted @ 2010-10-27 15:19 lexus 阅读(489) 评论(0) 推荐(0) 编辑

摘要:bashrc 生效September 26th, 2009moonfox在配置bashrc文件后,如果想使其立即生效,可以不用采用登出的方法,而直接键入下列命令即可source ./.bashrc 阅读全文
posted @ 2010-10-27 09:39 lexus 阅读(370) 评论(0) 推荐(0) 编辑

摘要:韩国饰品批发、代销-www.xinshij.com-提供产品数据包,不屯货零风险每日更新,款式上万,欢迎代销 阅读全文
posted @ 2010-10-26 22:10 lexus 阅读(125) 评论(0) 推荐(0) 编辑

摘要:阿里巴巴也不应该叫电商公司,叫什么我没想到 阅读全文
posted @ 2010-10-26 10:10 lexus 阅读(247) 评论(0) 推荐(0) 编辑

摘要:。。。。 阅读全文
posted @ 2010-10-25 00:48 lexus 阅读(169) 评论(0) 推荐(0) 编辑

摘要:1)百度放出近300页数据,距离最近的是8天,大概是10.17号的数据google似乎有降权了,因为一次性外链太多,在缓慢的增长到230个 阅读全文
posted @ 2010-10-25 00:06 lexus 阅读(154) 评论(0) 推荐(0) 编辑

摘要:http://ilehuo.com/ 阅读全文
posted @ 2010-10-24 09:19 lexus 阅读(217) 评论(0) 推荐(0) 编辑

摘要:ECFA「两岸经济合作架构协议」,是规范两岸之间经济合作活动之基本协议,正式的中、英文名称需等要未来两岸双方协商后才能确定,台湾称之为“海峡两岸经济合作架构协议”,大陆方面称之为“海峡两岸经济合作框架协议”,目前暂时的英文名字为ECFA(Economic Cooperation Framework Agreement )。 「架构协议」是指签署正式协议之前所拟订的纲要,仅先定架构及目标,具体内... 阅读全文
posted @ 2010-10-24 09:12 lexus 阅读(520) 评论(0) 推荐(0) 编辑

摘要:上线海外版,今天部署应该是最糟糕的一次,因为更新内容较多,所以有很多遗忘1.由于更新了schema,只上传了索引数据导致,不能访问2.更新了uwsgi_test2.py的内容,但是由于是一个一个实例切换,结果在式,为什么有时候结果正常,有时候报500,是因为新老的代码在交叉运行。完整切过去就没事了。后面更新的频率会下降,主要的功能大概是这些。 阅读全文
posted @ 2010-10-22 10:56 lexus 阅读(139) 评论(0) 推荐(0) 编辑

摘要:#!/usr/bin/env python#encoding=utf-8"""2010.10.19v0.1获取图片"""import socket as original_socketoriginal_socket.setdefaulttimeout(10)import sysreload(sys)sys.setdefaultencoding(sys.stdout.encoding)import ... 阅读全文
posted @ 2010-10-19 22:04 lexus 阅读(335) 评论(0) 推荐(0) 编辑

摘要:新增网商《考奇》,索引网商达到24家更新修复万客商城数据 阅读全文
posted @ 2010-10-19 20:04 lexus 阅读(137) 评论(0) 推荐(0) 编辑

摘要:#!/usr/bin/env python#encoding=utf-8from sqlalchemy.ext.sqlsoup import SqlSoupfrom sqlalchemy import *import datetimefrom elixir import *db = create_engine("mysql://root:1111t@localhost:3306/search?ch... 阅读全文
posted @ 2010-10-19 11:12 lexus 阅读(750) 评论(0) 推荐(0) 编辑

摘要:#!/usr/bin/env python#encoding=utf-8from sqlalchemy.ext.sqlsoup import SqlSoupfrom sqlalchemy import *import datetimefrom elixir import *db = create_engine("mysql://root:1111t@localhost:3306/search?ch... 阅读全文
posted @ 2010-10-19 11:05 lexus 阅读(282) 评论(0) 推荐(0) 编辑

摘要:#!/usr/bin/env python#encoding=utf-8from sqlalchemy.ext.sqlsoup import SqlSoupfrom sqlalchemy import *import datetimefrom elixir import *db = create_engine("mysql://root:1111t@localhost:3306/search?ch... 阅读全文
posted @ 2010-10-19 10:37 lexus 阅读(473) 评论(0) 推荐(0) 编辑

摘要:[CPyUG] SQLAlchemy对多条数据批量更新的问题byGaicitadieApr 12, 2010; 11:50pm:: Rate this Message:- Use ratings to moderate (?)Reply|Print|View Threaded|Show Only this Message假设有一个表 News,有一个字段tid,部分记录的tid为0,我想把tid为... 阅读全文
posted @ 2010-10-19 08:22 lexus 阅读(4346) 评论(0) 推荐(0) 编辑

摘要:http://www.fansp.net/ 阅读全文
posted @ 2010-10-18 22:30 lexus 阅读(194) 评论(0) 推荐(0) 编辑

摘要:MySQL Forums::General:: Max columns per TableNew TopicAdvanced SearchMax columns per TablePosted by:Kan Kumar()Date: September 29, 2006 11:40AMHi,I am trying to create a table with more than 2000 colu... 阅读全文
posted @ 2010-10-18 12:07 lexus 阅读(486) 评论(0) 推荐(0) 编辑

摘要:http://blog.reybango.com/2010/07/09/not-using-jquery-javascript-templates-youre-really-missing-out/ 阅读全文
posted @ 2010-10-18 00:07 lexus 阅读(203) 评论(0) 推荐(0) 编辑

摘要:今天要下载很多张图片,手动麻烦,于是写了个小程序。期间遇到不少问题。最主要的一个是,访问某些网页会返回403 Forbidden,后来在加入了header信息之后得到解决。记录下。这里用到了正则,urllib网页编程等知识。好久没用了,算是复习。代码 阅读全文
posted @ 2010-10-17 23:42 lexus 阅读(336) 评论(0) 推荐(0) 编辑

摘要:15.1 gzipgzip(1) 是GNU的压缩程序。它只对单个文件进行压缩。基本用法如下:$ gzip filename程序执行以后,文件名会变成filename.gz,而且一般情况下大小会比原文件要小。注意,程序并不新建一个新的文件filename.gz, 而是将filename变成filename.gz。一般来说,文本文件压缩率会比较高。而那些jpeg图像,mp3等类似文件的压缩率就没有那么... 阅读全文
posted @ 2010-10-17 23:00 lexus 阅读(1346) 评论(0) 推荐(0) 编辑

摘要:#!/usr/bin/env python#encoding=utf-8import redef find_tag_idx(html,tag,count=1,use_re=False): """ 查找特征值的位置 -1,表示没有找到 html="abcabc" print find_tag_idx(html,'e') """ r=(-1,0) current_count=0 idx=-1 if n... 阅读全文
posted @ 2010-10-17 21:19 lexus 阅读(351) 评论(0) 推荐(0) 编辑

摘要:新增义乌网商《意尚家居》《正惠商城》《创典商城》,总索引店家至23家1)使用fabric完成整个将采集远程部署,远程执行,远程处理,结果回收本地,入库,入索引,打包,部署,回滚的整个业务流程新热销日用百货阳光罐拼图海洋相机太阳能留言板洗发帽阳光罐卡册压缩袋海龟乌龟时尚墙贴韩国文具创意家居开关贴维康竹炭驱蚊手环创意家居收纳箱冰枕侨丰挂袋抽屉收纳盒真空压缩袋数字油画驱蚊贴 阅读全文
posted @ 2010-10-17 19:41 lexus 阅读(177) 评论(0) 推荐(0) 编辑

摘要:see thehttp://code.activestate.com/recipes/576890-python-wrapper-for-google-ajax-language-api/really cool isn't it?A Python Wrapper for Google AJAX Language API, Uses Google Language Detection, in cas... 阅读全文
posted @ 2010-10-17 19:36 lexus 阅读(200) 评论(0) 推荐(0) 编辑

摘要:爬行垫近来是热销的一个产品,昨天去工商学院和同学交流了一下,对整个淘宝班及淘宝开店有了一个了解。1.昨天和今天对网站的抓取脚本进行了大幅的改动,新增一家网商 发发批发,至此索引本地网商达到20家,2.开始使用fabric进行网站的更新部署,还有很多细节需要去逐步的改进,人性化。热烈祝贺,自动化更新索引功能首次使用成功。3万客商城网站不稳定,这几天影响使用,各位店家请留意。今天是重阳你有登高吗? 阅读全文
posted @ 2010-10-16 21:39 lexus 阅读(162) 评论(0) 推荐(0) 编辑

摘要:爬行垫近来是热销的一个产品,昨天去工商学院和同学交流了一下,对整个淘宝班及淘宝开店有了一个了解。1.昨天和今天对网站的抓取脚本进行了大幅的改动,新增一家网商 发发批发,至此索引本地网商达到20家,2.开始使用fabric进行网站的更新部署,还有很多细节需要去逐步的改进,人性化。3万客商城网站不稳定,这几天影响使用,各位店家请留意。今天是重阳你有登高吗? 阅读全文
posted @ 2010-10-16 21:16 lexus 阅读(158) 评论(0) 推荐(0) 编辑

摘要:http://fly5.com.cn/p/p-work/%E8%B0%B7%E6%AD%8C%E7%BD%91%E9%A1%B5%E7%9B%AE%E5%BD%95%E6%95%B0%E6%8D%AE%E6%8A%93%E5%8F%96.html谷歌网页目录数据抓取Qign/ 四月 12th, 2010 /1 Comment / Tags:python,spider,抓取,谷歌网页目录/ Pos... 阅读全文
posted @ 2010-10-16 16:50 lexus 阅读(257) 评论(0) 推荐(0) 编辑

摘要:suffix['sʌfiks] 添加生词改进词条[ 自动跳转自: suffixing ]n. 后缀vt. 添后缀 阅读全文
posted @ 2010-10-16 16:04 lexus 阅读(139) 评论(0) 推荐(0) 编辑

摘要:#rr=httppool[getdomain(url)[0]].urlopen("get",getdomain(url)[1],retries=1,headers=headers).data def do(url): try: return httppool[getdomain(url)[0]].get_url(getdomain(url)[1],retries=1,headers=headers... 阅读全文
posted @ 2010-10-16 08:48 lexus 阅读(332) 评论(0) 推荐(0) 编辑

摘要:正则表达式 预搜索,不匹配;反向预搜索,不匹配周四, 12/06/2007 - 06:13 — admin文章分类: 随笔记录 前面的章节中,我讲到了几个代表抽象意义的特殊符号:"^","$","\b"。它们都有一个共同点,那就是:它们本身不匹配任何字符,只是对 "字符串的两头" 或者 "字符之间的缝隙" 附加了一个条件。理解到这个概念以后,本节将继续介绍另外一种对 "两头" 或者... 阅读全文
posted @ 2010-10-15 23:33 lexus 阅读(267) 评论(0) 推荐(0) 编辑

摘要:Per-taskargumentsThe options given inCommand-line optionsapply to the invocation offabas a whole; even if the order is mixed around, options still apply to all given tasks equally. Additionally, since... 阅读全文
posted @ 2010-10-15 21:53 lexus 阅读(972) 评论(0) 推荐(0) 编辑

摘要:http://xiaowang.net/bgb-cn/niu ren bloghttp://www.betterprogramming.com/ 阅读全文
posted @ 2010-10-15 18:59 lexus 阅读(145) 评论(0) 推荐(0) 编辑

摘要:1.新增义乌网商《f9696》,《魔登女孩》,全网目前共索引19家本土网商2.昨天在外部新增了一些外链,同时在自己的博客做了一些导向性链接,结果google只收录了新的链接,把我原先的收录都去了,很奇怪,也可能是一次导入太多,从原先的近800降到130了,3.sogou收录减少了几页,在150几页附近4.soso收录缓慢的增加了一些 阅读全文
posted @ 2010-10-15 09:30 lexus 阅读(123) 评论(0) 推荐(0) 编辑

摘要:import socket as original_socketoriginal_socket.setdefaulttimeout(10)from eventlet.timeout import with_timeoutfrom eventlet.green import urllib2def login(): import urllib import cookielib cj=cookielib... 阅读全文
posted @ 2010-10-15 07:07 lexus 阅读(465) 评论(0) 推荐(0) 编辑

摘要:http://code.google.com/p/pyv8/http://wwwsearch.sourceforge.net/mechanize/http://code.google.com/p/multi-mechanize/http://xiudaima.appspot.com/code/detail/14001"""urllib2是个非常好用的http客户端库,但是用来写爬虫可能会遇到一些问... 阅读全文
posted @ 2010-10-14 20:37 lexus 阅读(976) 评论(0) 推荐(0) 编辑

摘要:2010-07-09python模拟登录及表单提交文章分类:Python编程 本文将实现从CSDN博客获取内容发布至百度博客,分别实践抓取博客内容、模拟登录、表单提交。在下文代码中间逐一阐述。Python代码#-*-coding:utf-8-*-importreimporturllibimporturllib2importcookielib#获取CSDN博客标题和正文url="http://blo... 阅读全文
posted @ 2010-10-14 19:32 lexus 阅读(451) 评论(0) 推荐(0) 编辑

摘要:生活老妈内衣收纳日式家居开馨宝泡泡堂拖鞋礼品盒风扇压缩袋鞋架宜品打地鼠冰垫驱蚊衣架牙刷金皇冠数字油画储物箱密码锁创意家居竹炭系列毛球修剪器防尘罩开关贴电筒环保购物袋内衣收纳盒隔热手套益智玩具墙贴空调被擦地拖鞋收纳桶修剪器DIY吹风机海绵宝宝收纳盒雨伞按摩鞋盒睫毛夹存钱罐冰垫防尘罩收纳箱钥匙扣投影仪钟表压缩袋药盒散热器驱蚊手环卡册计算器收纳袋益智玩具压缩袋数字油画储蓄罐投影灯充气凳手机挂件牙签盒空调... 阅读全文
posted @ 2010-10-14 12:34 lexus 阅读(137) 评论(0) 推荐(0) 编辑

摘要:真丝相册笔记本创意家居时尚包包粉扑方巾长卷发购物袋银饰花卉头箍发带手机包手机挂件发爪钥匙包肩带假睫毛拖鞋粉饼三角巾首饰盒相框头花LV戒指睫毛夹手机座BB夹面膜香薰杯子香水唇彩计算器长巾皮筋手套闹钟镜子眼影围脖音乐盒化妆包手表手镯头扎热水袋耳钉短发项链唇膏顶夹锆石耳环鼠标垫洗脸扑胸针帽子袖套储蓄罐吊坠眼镜雨伞笔筒腰带梳子耳环眼镜盒瓶钱包香蕉夹一字夹 阅读全文
posted @ 2010-10-14 12:02 lexus 阅读(161) 评论(0) 推荐(0) 编辑

摘要:os.path.normpath normilize a path such as double slashhttp://gehrcke.de/2010/02/python-backupsnapshot-script-with-compression-bz2-7zip/Python backup/snapshot script with compression (BZ2, 7zip)Februar... 阅读全文
posted @ 2010-10-14 08:31 lexus 阅读(960) 评论(0) 推荐(0) 编辑

摘要:1.新增网商女生在线 阅读全文
posted @ 2010-10-13 23:25 lexus 阅读(143) 评论(0) 推荐(0) 编辑

摘要:查看数据库的版本信息mysqladmin -uroot -p123 version#csv2dbmysqlimport -u root --password='123' -L -v --columns='name,price,productid,site,link,smallImage,bigImage,description,createdOn,modifiedOn,size,weight,wr... 阅读全文
posted @ 2010-10-13 08:17 lexus 阅读(174) 评论(0) 推荐(0) 编辑

摘要:http://valentinewebsystems.com/en/blog/ecommerce-comparison 阅读全文
posted @ 2010-10-13 01:25 lexus 阅读(187) 评论(0) 推荐(0) 编辑

摘要:1.更新首页js,改善一点UE,将购物搜索变更为货源搜索2.新增三家网店,三三网货,火星,妙趣,总索引义乌网商达到16家,依次为全部红货(1179)紫薇(4580)远发(1214)俏货(2396)博源(564)妙趣(5872)雅领(20529)中国饰品批发网(7559)百思特(3339)义乌小商品批发(25212)七彩义乌(37533)万客(7721)三三网货(1877)火星(1363)心叶(51... 阅读全文
posted @ 2010-10-12 21:06 lexus 阅读(240) 评论(0) 推荐(0) 编辑

摘要:2009-05-21 如何在Linux下创建与解压zip, tar, tar.gz和tar.bz2文件 January 2nd, 2009 at 10:31 pm Linux 解压, Linux, tar, tar.bz2, tar.gz, tgz, zip, 压缩, 打包, 文档 这么多年来,数据压缩对我们来说是非常有用的。无论是在邮件中发送的图片用的zip文件还是在服务器压缩数据文件,... 阅读全文
posted @ 2010-10-12 20:58 lexus 阅读(184) 评论(0) 推荐(0) 编辑

摘要:http://www.codewrapper.com/Snippets/View/40/jquery-insert-text-at-the-current-cursor-position-in-textbox 阅读全文
posted @ 2010-10-12 20:04 lexus 阅读(283) 评论(0) 推荐(0) 编辑

摘要:October 05, 2005How are newlines represented in anHTMLtextarea ?Writing about web pagehttp://www.w3.org/TR/REC-html40/interact/forms.html#h-17.13.4OK, this is just a blatant attempt at stuffing a resu... 阅读全文
posted @ 2010-10-12 18:14 lexus 阅读(397) 评论(0) 推荐(0) 编辑

摘要:~~~ 阅读全文
posted @ 2010-10-12 12:59 lexus 阅读(128) 评论(0) 推荐(0) 编辑

摘要:Friday, October 10, 2008Pumping Out Warnings When Using Load Data From the Command LineI’m currently writing a SQL Server SSIS package that leverages the Load data infile command of mysql, to im... 阅读全文
posted @ 2010-10-12 09:29 lexus 阅读(1356) 评论(0) 推荐(0) 编辑

摘要:文件首gg文件末GG定位行linenumberG or :line number 阅读全文
posted @ 2010-10-12 08:57 lexus 阅读(155) 评论(0) 推荐(0) 编辑

摘要:OTOH添加生词改进词条n. On the Other Hand(另一方面), phr. 另一方面(首字母缩略语,一种计算机缩写词,只用于书写), On the other hand 另一方面Google提供的广告:dict.cn/OTOH,金山词霸不好记,这个域名和rest风格都很好 阅读全文
posted @ 2010-10-12 08:34 lexus 阅读(5867) 评论(0) 推荐(0) 编辑

摘要:1.新增4个行业批发站,分别是百思特,雅领,七彩义乌,中国饰品批发网,将行业扩展到饰品行业,索引数量达到13万欢迎联系独立网店推荐,来多少我们照单收多少。采集系统也在网站的更新下正在不断的完善,希望再经过一定量的网站抓取达到稳定态2.搜狗放出160页面,将近多了一倍一天的时间原先是80页左右,不知道他是怎么想的 阅读全文
posted @ 2010-10-12 00:21 lexus 阅读(131) 评论(0) 推荐(0) 编辑

摘要:Re: [sqlalchemy] Simple example of a GROUP BYLance EdgarMon, 05 Jul 2010 21:24:08 -0700session.query(Order.user_id,func.count(Order.user_id)).group_by(Order.user_id)[sqlalchemy] Simple example of a GR... 阅读全文
posted @ 2010-10-11 21:57 lexus 阅读(730) 评论(0) 推荐(0) 编辑

摘要:http://pleac.sourceforge.net/pleac_python/directories.htmlPLEAC - Programming Language Examples Alike CookbookSummaryFollowing the greatPerl Cookbook(by Tom Christiansen & Nathan Torkington, publi... 阅读全文
posted @ 2010-10-11 19:11 lexus 阅读(293) 评论(0) 推荐(0) 编辑

摘要:压缩文件:import osimport zipfileimport time# 压缩目录source_dir = r'F:\web'# 按时间生成文件名称target_file = time.strftime('%Y%m%d%H%M%S') + '.zip'myZipFile = zipfile.ZipFile(target_file, 'w' )# 压缩所有文件,包含子目录for root,d... 阅读全文
posted @ 2010-10-11 18:41 lexus 阅读(281) 评论(0) 推荐(0) 编辑

摘要:}</script><script language=javascript>ati('#', 'http://www.cnblogs.com/../UpLoadFile/Product/20101010162153846.jpg', '加厚青色围脖');要匹配换行符使用如下<script language=javascript>\s\sati这里使用\s两个应该... 阅读全文
posted @ 2010-10-11 12:40 lexus 阅读(184) 评论(0) 推荐(0) 编辑

摘要:http://api.jquery.com/click/ Re: Creating a toggle (show and hide) for hyperlink click 作者: agarwasa2008 在 01-Sep-2009 06:56 AM. 在Using jQuery Hi,I wish to use Jquery. I am a newbie. I have a hyperlin... 阅读全文
posted @ 2010-10-11 09:30 lexus 阅读(288) 评论(0) 推荐(0) 编辑

摘要:http://api.jquery.com/click/ Re: Creating a toggle (show and hide) for hyperlink click 作者: agarwasa2008 在 01-Sep-2009 06:56 AM. 在Using jQuery Hi,I wish to use Jquery. I am a newbie. I have a hyperlin... 阅读全文
posted @ 2010-10-11 09:10 lexus 阅读(180) 评论(0) 推荐(0) 编辑

摘要:http://api.jquery.com/click/ 阅读全文
posted @ 2010-10-11 09:07 lexus 阅读(129) 评论(0) 推荐(0) 编辑

摘要:网站数据对我们对站长来说都是最宝贵的,我们平时应该养成良好的备份数据的习惯。常有新手问我该怎么备份数据库,下面介绍3种备份数据库的方法:(1)备份数据库文件MySQL中的每一个数据库和数据表分别对应文件系统中的目录和其下的文件。在Linux下数据库文件的存放目录一般为/var/lib/mysql。在Windows下这个目录视MySQL的安装路径而定,DiaHosting的技术员一般为客户安装在D:... 阅读全文
posted @ 2010-10-10 18:40 lexus 阅读(195) 评论(0) 推荐(0) 编辑

摘要:1.sogou放出2页收录,相比于昨天,达到80页2.索引数据更新,增加了博源,紫薇,红货,小商品批发网,总共达到9家欢迎想收录的朋友与我联系3.今天有一个流量来自百度,太开心了,是第一个百度来得来量,泪奔本次更新是应用了上9.13至今开发的一套,web版的网络爬虫生成器而成,中间几度想放弃,原因是,过程太复杂,怕实际做出来,完全是个废物,也是在最后快完成了一两天,通过不停的改进脚本功能,才看到一... 阅读全文
posted @ 2010-10-10 18:27 lexus 阅读(146) 评论(0) 推荐(0) 编辑

摘要:1.sogou放出2页收录,相比于昨天,达到80页2.索引数据更新,增加了博源,紫薇,红货,小商品批发网,总共达到9家欢迎想收录的朋友与我联系 阅读全文
posted @ 2010-10-10 15:13 lexus 阅读(107) 评论(0) 推荐(0) 编辑

摘要:#!/usr/bin/env python#encoding=utf-8"""2010.10.09v0.1获取图片真实的URL,之前做了Referer和302跳转"""import socket as original_socketoriginal_socket.setdefaulttimeout(10)import sysreload(sys)sys.setdefaultencoding(sys... 阅读全文
posted @ 2010-10-09 13:38 lexus 阅读(261) 评论(0) 推荐(0) 编辑

摘要:1.今日搜狗收录至78页,较之前放出23页,原先是54页,似乎有点规律 阅读全文
posted @ 2010-10-09 13:02 lexus 阅读(97) 评论(0) 推荐(0) 编辑

摘要:Python:minidom 解析 GBK 编码的 XML 字符串Posted on2009年09月29日by黑孩儿Python 语言里 minidom 只能解析 UTF-8 编码的XML文件或串,我解析其它的编码的方法修改 XML 标记的 encoding 属性,转换编码。这样就可以 minidom 正确解析了。Over!#!/usr/bin/env python#encoding=utf-8i... 阅读全文
posted @ 2010-10-09 10:27 lexus 阅读(481) 评论(0) 推荐(0) 编辑

摘要:Definitely I have to try and write some more Python code when I finish with my school exams. It’s just fucking amazing how nice and fast you get productivity for things that in other languages i... 阅读全文
posted @ 2010-10-09 09:54 lexus 阅读(249) 评论(0) 推荐(0) 编辑

摘要:如果记录已经存在,则不会更新它,它只会导入,数据库中没有的记录 阅读全文
posted @ 2010-10-08 18:45 lexus 阅读(242) 评论(0) 推荐(0) 编辑

摘要:2009-04-09聊聊网页正文提取文章分类:Java编程从网页中提取的正文一般来说模板是最好最准确的方式,在专业术语中就是wrapper,对web归纳总结出提取规则创建包装器wrapper。但由于在大多数条件下制作模板是个很烦人的工作,而且如果抓取的种子站过多,人工难以满足需求。于是自动生成模板就成为一个折衷的替代方案,但实际上自动生成的模板还是需要模板编辑确定具体的对应项,以保证其正确性。如果... 阅读全文
posted @ 2010-10-08 14:38 lexus 阅读(379) 评论(0) 推荐(0) 编辑

摘要:从HTML文件中抽取正文的简单方案收藏The Easy Way to Extract Useful Text from Arbitrary HTML从HTML文件中抽取正文的简单方案作者:alexjc译者:恋花蝶(http://blog.csdn.net/lanphaday)原文地址:http://ai-depot.com/articles/the-easy-way-to-extract-usef... 阅读全文
posted @ 2010-10-08 14:25 lexus 阅读(2958) 评论(0) 推荐(0) 编辑

摘要:web-classify用于网页分类的python工具包ProjectHomeDownloadsWikiIssuesSourceSummary|Updates|PeopleStar this projectActivity:MediumCode license:Apache License 2.0Labels:gearman,knn,web-classifyFeeds:Project feedsO... 阅读全文
posted @ 2010-10-08 14:24 lexus 阅读(706) 评论(0) 推荐(0) 编辑

摘要:http://liluo.org/2010/06/python-%E7%88%AC%E8%99%AB%E5%9F%BA%E6%9C%AC%E7%9F%A5%E8%AF%86/浪费了一上午总算搞定了,主要是脑子湖,没有对应的好文章,上面这篇不错 SimpleCD作者有把电驴给山寨了,作者博客http://obmem.com上有一些爬虫介绍,转载来。1.最基本的抓站 import urlli... 阅读全文
posted @ 2010-10-08 14:00 lexus 阅读(862) 评论(0) 推荐(0) 编辑

摘要:http://liluo.org/2010/06/python-%E7%88%AC%E8%99%AB%E5%9F%BA%E6%9C%AC%E7%9F%A5%E8%AF%86/浪费了一上午总算搞定了,主要是脑子湖,没有对应的好文章,上面这篇不错 SimpleCD作者有把电驴给山寨了,作者博客http://obmem.com上有一些爬虫介绍,转载来。1.最基本的抓站 import urlli... 阅读全文
posted @ 2010-10-08 13:58 lexus 阅读(2196) 评论(0) 推荐(0) 编辑

摘要:http://codefork.com/blog/index.php/2007/12/05/pimping-pythons-property/ubuntu gb2312 gbk 编码安装2010-07-14Ubuntu中安装GBK locale文章分类:操作系统Ubuntu默认安装的中文环境为zh_CN.utf8,然后很多windows 的文档还是以GB2312或GBK编码保存的,因此十分有必要 ... 阅读全文
posted @ 2010-10-07 23:30 lexus 阅读(302) 评论(0) 推荐(0) 编辑

摘要:pysqlite插入UTF-8的bytestring 2010-05-19 Python 查看评论报错ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str).... 阅读全文
posted @ 2010-10-07 23:20 lexus 阅读(3536) 评论(0) 推荐(0) 编辑

摘要:http://stefaanlippens.net/redirect_python_printredirecting python's "print" statements to a file7 October, 2005 - 12:05Categories: programmingpythonSomething I find annoying about writing a program/s... 阅读全文
posted @ 2010-10-07 22:48 lexus 阅读(570) 评论(0) 推荐(0) 编辑

摘要:对Python了解太有限了,如果有时间重构的话,我会在下面几处进行重构。1、用Python内置函数替换os.system调用。我写了一个功能函数,判断一个目录是否为空。第一个版本使用os.system来实现(可能是shell程序员开始写Python程序的通病吧,喜欢大量使用os.system调用shell程序),对目录ls下,通过commands.getoutput获得输出,如果结果为空,那么就是... 阅读全文
posted @ 2010-10-07 17:43 lexus 阅读(190) 评论(0) 推荐(0) 编辑

摘要:内存映射文件,是由一个文件到一块内存的映射。Win32提供了允许应用程序把文件映射到一个进程的函数 (CreateFileMapping)。内存映射文件与虚拟内存有些类似,通过内存映射文件可以保留一个地址空间的区域,同时将物理存储器提交给此区域,内存文件映射的物理存储器来自一个已经存在于磁盘上的文件,而且在对该文件进行操作之前必须首先对文件进行映射。使用内存映射文件处理存储于磁盘上的文件时,将不必... 阅读全文
posted @ 2010-10-07 16:55 lexus 阅读(1007) 评论(0) 推荐(0) 编辑

摘要:[原创]&[旧贴] 零敲碎打 --- Python新手不完全FAQ2008-12-08 12:11:34 阅读全文
posted @ 2010-10-07 13:52 lexus 阅读(255) 评论(0) 推荐(0) 编辑

摘要:http://code.google.com/p/h5py/ 阅读全文
posted @ 2010-10-07 13:05 lexus 阅读(170) 评论(0) 推荐(0) 编辑

摘要:这三天google的收录一直在690徘徊,其它的搜索引擎也是基本没有动劲。百度自从收录了902个页面以后,要搜索本站的内容就是搜索不出来。 阅读全文
posted @ 2010-10-07 07:44 lexus 阅读(137) 评论(0) 推荐(0) 编辑

摘要:http://dev.mysql.com/tech-resources/articles/xml-in-mysql5.1-6.0.htmlhttp://dev.mysql.com/doc/refman/5.1/en/load-data.htmlMySQL的批插入 BULK INSERT和load data的速度差不多,并且可靠。语法如下假设有表test (ID NUMBER,NAME VARCHA... 阅读全文
posted @ 2010-10-06 23:35 lexus 阅读(644) 评论(0) 推荐(0) 编辑

摘要:erlang:敌法,大后期haskell:剑圣,河道男,又称河蟹go:新出的英雄,蛙人,后期lisp:双头龙,古老的龙族,很少有出场的机会了c:老牛,前期棍子,中期跳大很重要c++ 暗夜魔王,也很少有出场机会了php 强大的前期,就是砸石头人那个Ruby 风行者,只有一个技能比较牛Perl 狼人,很难杀,除非被围攻ASP:光法,看起来很强大,其实只能是路人战java:人族,圣骑士,看起来很神圣,其... 阅读全文
posted @ 2010-10-06 20:45 lexus 阅读(284) 评论(0) 推荐(0) 编辑

摘要:def xml2db(file): s=pq(open(file,"r").read()) dict={} for field in g_fields: dict[field]=s("field[@name='%s']"%field).text() p=Product() for k,v in dict.iteritems(): if v is None or v.strip()=="": pas... 阅读全文
posted @ 2010-10-06 20:33 lexus 阅读(191) 评论(0) 推荐(0) 编辑

摘要:Some Notes on Tim Bray's Wide FinderBenchmarkFredrik Lundh | Updated October 12, 2007 | Originally posted October 6, 2007The Problem#Tim Bray recently posted about his experiences from using Erlang to... 阅读全文
posted @ 2010-10-06 14:26 lexus 阅读(567) 评论(0) 推荐(0) 编辑

摘要:并发编程利器EventletEventlet是由第二人生(Secondlife)开源的高度伸缩性的Python网络编程库. 根据官方介绍大致特性如下: 非阻塞I/O模型协程(Coroutines)使得开发者可以采用阻塞式的开发风格,却能够实现非阻塞I/O的效果隐式事件调度,使得可以在Python解释器或者应用程序的某一部分去使用Eventlet 关于协程,大致可以理解成允许子程序可以多次暂停和恢... 阅读全文
posted @ 2010-10-06 13:48 lexus 阅读(368) 评论(0) 推荐(0) 编辑

摘要:Routes is a Python re-implementation of the Rails routes system for mapping URLs to application actions, and conversely to generate URLs. Routes makes it easy to create pretty and concise URLs that ar... 阅读全文
posted @ 2010-10-06 13:43 lexus 阅读(400) 评论(0) 推荐(0) 编辑

摘要:未理解http://www.ibm.com/developerworks/cn/linux/l-cpyiter/index.html Python标准库参考笔记- itertools 收藏 Python标准库参考笔记- itertools10.7 itertools地址:http://docs.python.org/library/itertools.htmlPyMOTW:ht... 阅读全文
posted @ 2010-10-06 12:55 lexus 阅读(491) 评论(0) 推荐(0) 编辑

摘要:到意识,明星们将陨落,平民和普通民众会被大众掏掏掏拥抱,近年来大众选秀节目就是一个例子,明星不再高高在上,传统的明星,要落幕了,他们不再nb和高贵,这很好.再也没有所谓的偶像了,诚如90后所言,不要代表,只要表达 阅读全文
posted @ 2010-10-06 09:42 lexus 阅读(145) 评论(0) 推荐(0) 编辑

摘要:Use the-aswitch:to show process command line arguments. 阅读全文
posted @ 2010-10-06 09:03 lexus 阅读(167) 评论(0) 推荐(0) 编辑

摘要:sql 的 top 和 mysql中的limit文章分类:Java编程同一个功能但是在两个数据库中的不同用法 这个是sql中的语句 select top 5 cid,workid from agents 这个是mysql中的语句 SELECT * FROM lnaccumulation.callslog limit 5select * from model_product limit 5 o... 阅读全文
posted @ 2010-10-06 01:59 lexus 阅读(216) 评论(0) 推荐(0) 编辑

摘要:http://stackoverflow.com/questions/3865254/about-python-doc-docstring/3865321#3865321functools.wraps(wrapped[, assigned][, updated])¶ This is a convenience function for invoking partial(update_wr... 阅读全文
posted @ 2010-10-06 00:02 lexus 阅读(174) 评论(0) 推荐(0) 编辑

摘要:Stack OverflowQuestionsTagsUsersBadgesUnanswered Ask Question Python: Passing a function name as an argument in a function up vote 3 down vote favoriteI am trying to pass the name of a function into ... 阅读全文
posted @ 2010-10-05 19:14 lexus 阅读(319) 评论(0) 推荐(0) 编辑

摘要:In [37]: for i in xrange(10): ....: print i ....: if i>4: ....: break ....: else: ....: print i ....: print hh ....: ....: 012345 阅读全文
posted @ 2010-10-05 11:33 lexus 阅读(320) 评论(0) 推荐(0) 编辑

摘要:September 28, 2010Installing PostgreSQL 9.0 onUbuntuFiled under: HowTo,ubuntu — devdude @ 8:49 am Tags: install, ubuntu, postgresql, lucidThanks to Martin Pitt , who maintains the packages for ... 阅读全文
posted @ 2010-10-05 07:14 lexus 阅读(507) 评论(0) 推荐(0) 编辑

摘要:http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/types.html 阅读全文
posted @ 2010-10-04 23:15 lexus 阅读(172) 评论(0) 推荐(0) 编辑

摘要:1.再对title进行调整2.修正一个当索引中的数据没有价格时至noresult.tpl时,无法正确显示的问题,主要是由于之前在做标题调整时(20100917)没有考虑到没有结果时的显示情况3.今日查看gg收录连续两天稳在695另附上线检查表,便于下次自己记住1 本地部分1.1 打包源码tar -zcvf search.tar.gz.20101004 ./search1.2 准备nginx.con... 阅读全文
posted @ 2010-10-04 19:44 lexus 阅读(171) 评论(0) 推荐(0) 编辑

摘要:Linux中,选中复制,鼠标中键粘贴2008-11-16 15:53===========================作者:吉庆(qingfang0515@sina.com)主页:http://hi.baidu.com/jiqing0925================================应该会有不少新接触linux的朋友问Linux下面复制粘贴的问题。就像我一开始怎么也不知道如... 阅读全文
posted @ 2010-10-04 10:34 lexus 阅读(227) 评论(0) 推荐(0) 编辑

摘要:A PHP library for working with XML and HTML. 阅读全文
posted @ 2010-10-04 10:08 lexus 阅读(130) 评论(0) 推荐(0) 编辑

摘要:http://code.google.com/p/lazycms/source/browse/other/collect.py 阅读全文
posted @ 2010-10-04 07:20 lexus 阅读(172) 评论(0) 推荐(0) 编辑

摘要:http://www.seoconsultants.com/meta-tags/language 阅读全文
posted @ 2010-10-03 20:47 lexus 阅读(216) 评论(0) 推荐(0) 编辑

摘要:蔡文胜:电子商务创业三个方向,不包括传统企业转型或只兴趣开小店。 1淘宝是大平台,你做小平台,做行业类专业类平台,卖水比淘金稳赚。 2做地区性或垂直化的电子商务媒体,但这个需要你有传统优势资源。 3直接创立一个新品牌做直销。从生活消费品入手,但必须做标准化商品。要试用目前不可行。 . 5月7日 01:15 来自新浪微博转发(194) | 收藏 | 评论(82) 阅读全文
posted @ 2010-10-03 19:42 lexus 阅读(108) 评论(0) 推荐(0) 编辑

摘要:在Python 中获得当前路径先要装载 os模块:import osprint os.getcwd()或者print os.path.abspath(os.curdir)print os.path.abspath('.')就可以了。(.代表当前的路径,..代表当前路径的上一级路径。这在UNIX和Windows系统意义是类似的。例如:以Winodws系统为例:当前路径是F:\Temp, 则.的绝对路... 阅读全文
posted @ 2010-10-03 16:49 lexus 阅读(308) 评论(0) 推荐(0) 编辑

摘要:Python中的SET集合操作2009-07-11 16:07python的set和其他语言类似, 是一个无序不重复元素集,基本功能包括关系测试和消除重复元素. 集合对象还支持union(联合), intersection(交), difference(差)和sysmmetric difference(对称差集)等数学运算.sets支持x in set,len(set),和for x in set... 阅读全文
posted @ 2010-10-03 16:44 lexus 阅读(7807) 评论(0) 推荐(0) 编辑

摘要:Monkeypatching the Standard Library¶The other way of greening an application is simply to monkeypatch the standard library. This has the disadvantage of appearing quite magical, but the advantag... 阅读全文
posted @ 2010-10-03 10:36 lexus 阅读(468) 评论(0) 推荐(0) 编辑

摘要:sudo apt-get install mysql-server-5.1Install MySQL Server 5.1 On Ubuntu 10.04 Lucid Lynxhttp://www.jonathanmoeller.com/screed/?p=1781http://forum.ubuntu.org.cn/viewtopic.php?p=157127mysql配置记录重启mysql服务... 阅读全文
posted @ 2010-10-02 21:03 lexus 阅读(339) 评论(0) 推荐(0) 编辑

摘要:http://rabbitvcs.org/ 阅读全文
posted @ 2010-10-02 07:46 lexus 阅读(148) 评论(0) 推荐(0) 编辑

摘要:本来是要写程序的,结果更新新闻,申请外链,忙了一天,把好友时友朋逮到的朋友,都请他们加链接了,另外也申请了一些,估计不是熟识的朋友,不会理新站的呵呵另外发现google的收录,有时134,,有时404,到 底哪个是准的呢,究竟是404->134,还是134->404很纠结中.另外,中秋节,国庆节快乐另,本个诚征外链和友链,请以各种方式me我Bottle 项目推介:义乌小额批发搜索引擎h... 阅读全文
posted @ 2010-10-01 14:53 lexus 阅读(125) 评论(0) 推荐(0) 编辑

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