ubuntu wine 安装 rtx

有的不用安装,这是我机器上.cache上所有的东西,下载过程有的软件找不到,google之。 {{{ sudo apt-get install wine winetricks baekmuk flash11 ie8 msxml6 unifont vcrun2008 win2ksp4 corefonts gdiplus msls31 takao vb6run vcrun6 dotnet40 ie6 msxml3 track_usage vcrun2005 wenquanyi }}}

安装 rtx regedit 下面的注册表,解决聊天记录乱码 {{{ REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] "Arial"="simsun" "Arial CE,238"="simsun" "Arial CYR ...

more ...

locale错误

重新设置。 {{{ rm /var/lib/locales/supported.d/en rm /var/lib/locales/supported.d/zh cp /usr/share/i18n/SUPPORTED /var/lib/locales/supported.d/local vi /var/lib/locales/supported.d/local #保留en zh开头的行

locale-gen --purge }}}

more ...

在这里详述 liugehao-工作-201212。

I. QQ、Rtx在ubuntu系统下稳定性测试

more ...

在这里详述 python/使用scrapyd来运行spider。

用scrapy写爬虫的时候都是通过crawl来执行,这样的运行方式是只执行一个爬虫,如果想同时运行多个爬虫可以考虑使用scrapyd的方式,也就是scrapy server。

= 运行scrapyd: = . {{{ scrapy server }}}

= 部署project: = . 查看project的deploy列表 进入到project目录后执行下面的命令 {{{ scrapy deploy -l }}} 如果有返回类似下面的内容的说明配置正确 {{{ scrapyd http://localhost:6800/ }}} 如果没有显示就编辑project的scrapy.cfg里面的deploy {{{ [deploy] url = http://localhost:6800/ project = pitayacd }}} 打包并上传 {{{ scrapy deploy default -p pitayacd }}} 返回信息如下 {{{#!highlight json {"status": "ok", "project": "pitayacd", "version": "1348817612", "spiders": 1} }}}

= 运行jobs = . 部署完成后使用curl提交信息到scrapyd就可以运行指定的spiders了 {{{ curl http://localhost ...

more ...

setting up Django with Scrapy

Setting up Django with Scrapy

This guide is about using Django, the most popular Python web framework, and Scrapy, the most popular Python scraping framework. Both of the frameworks are awesome, and they work very well standalone.

Before you continue reading, make sure you are already beyond “Getting Started” stage ...

more ...

执行django脚本

在django项目中有时候会需要写一些脚本来执行一些工作,比如初始化数据,测试等等

但是脚本中必须导入django项目,这时候就需要在脚本中添加如下代码:

{{{#!highlight python import os,sys sys.path.insert(0,os.path.abspath(os.curdir)) from django.core.management import setup_environ import settings setup_environ(settings) }}} 然后该干嘛干嘛

more ...

在这里详述 liugehao-工作-201211。

I. 1 i. 小组会议 i. 培训 i. Crm系统反馈讨论 I. 2 i. PM谈话,团队培训和管理问题 i. 过程改进周会 i. 周报 I. 5 i. 阅读hadoop I. 6 i. 帮王雪凯解决sap的webservice错误 I. 7 i. CMMI培训 i. 手机客户端测试协调 I. 8 i. 小组周会 i. sap测试讨论 I. 9 i. 周报 ,cmmi周会 I. 12 i. 帮王雪凯处理分析车辆系统问题 I. 13 i. 测试基础信息维护页面 ...

more ...

postgresql一站式收费脚本

Date 二 27 十一月 2012 By liugehao Category db.

不考虑其它条件,粗略计算。plpythonu 存储过程。 {{{#!highlight python -- Function: jisuan(date, integer)

-- DROP FUNCTION jisuan(date, integer);

CREATE OR REPLACE FUNCTION jisuan(dt date, pagesize integer) RETURNS text AS $BODY$

import pickle, datetime, math startdt = datetime.datetime.now() wd_citys = {}

for row in plpy.execute('select g.bm,cc."CityID",g.sjdw as ...

more ...

postgresql安装plphp语言

Date 二 27 十一月 2012 By liugehao Category db.

ubuntu 下postgresql用python写存储过程,直接安装 {{{ apt-get install postgresql-plpython-9.1 #python2 apt-get install postgresql-plpython3-9.1 #python3 }}} == 用php写存储过程 == php的话只能编译安装。

{{{#!highlight bash

php安装

wget http://cn2.php.net/get/php-5.4.9.tar.bz2/from/this/mirror tar jxf mirror cd php-5.4.9 ./configure --prefix=/usr/local/php5.4.9 --enable-embed #必须embed make -j ...

more ...

在PostgreSQL中如何删除重复记录

在PostgreSQL中删除重复记录其实很简单,不论有多少行重复,只要在要删除重复记录的表中table加一列rownum字段(id为table表中的主键),类型设置为serial类型即可,然后执行sql {{{#!highlight sql delete from table where rownum not in( select max(rownum) from table group by id ) }}}

最后删除列rownum即可

more ...