摘要: 使用拨号上网的话,一般都有一个本地ip和一个外网ip,使用python可以很容易的得到这两个ip 阅读全文
posted @ 2009-10-10 14:32 xxd 阅读(5725) 评论(0) 推荐(0) 编辑
摘要: DNA24 写道 "Linux默认可以通过USB连接iPod,但要在iPhone和iPod Touch上实现,你需要安装iFuse。iFuse允许用户按照一般的USB盘那样浏览和编辑iPhone和iPod Touch内的文件,你可以访问储存的jpg图片,还可以联合gtkpod添加删除音乐。" 阅读全文
posted @ 2009-10-10 10:01 xxd 阅读(2057) 评论(0) 推荐(0) 编辑
摘要: # NOTE: depending on your version of MySQL ## This example is for mysql 5.4Shell> for x in var=`cat mysql.log |grep Connect |awk '{print $2}' |cut -d: -f3`; do echo ${var:2:50} >> out.txt; doneI now have all of the connection ids for the database I want to benchmark. From here I nee 阅读全文
posted @ 2009-10-09 17:14 xxd 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 比如一个字符串的存储为 qa,we,er,rt 我们要取这个字符串中的qa ,使用一个函数即可达到目的:select substring_index('qa,we,er,rt',',',1); 阅读全文
posted @ 2009-10-09 16:54 xxd 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 共享文件的web server 把文件放到一个目录中,使用终 端进入这个目录,输入python -m SimpleHTTPServer 8888。然后访问ip:8888。这个也 可以不过麻烦些:python -c "import SimpleHTTPServer ; SimpleHTTPServer.test()" 阅读全文
posted @ 2009-10-09 14:47 xxd 阅读(450) 评论(0) 推荐(0) 编辑
摘要: C:\Documents and Settings\Administrator>tracert sites.google.comTracing route to www3-china.l.google.com [64.233.189.100]over a maximum of 30 hops: 1 1 ms 1 ms 1 ms bogon [10.0.0.1] 2 <1 ms 2 ms... 阅读全文
posted @ 2009-09-29 13:45 xxd 阅读(357) 评论(0) 推荐(0) 编辑
摘要: @echo offecho 正在清除......del /f /s /q %systemdrive%\*.tmpdel /f /s /q %systemdrive%\*._mpdel /f /s /q %systemdrive%\*.logdel /f /s /q %systemdrive%\*.giddel /f /s /q %systemdrive%\*.chkdel /f /s /q %sy... 阅读全文
posted @ 2009-09-28 14:15 xxd 阅读(173) 评论(0) 推荐(0) 编辑
摘要: ref: http://support.microsoft.com/kb/834798/zh-cn功能:可以在sql server tempdb数据库清除、启动之后在初始化网络库要添加跟踪标记 3614 作为 SQL Server 启动参数,请按下列步骤操作: 1. 启动 SQL Server 企业管理器。 2. 展开 SQL Server 组 ,然后单击您 SQL Server 名称。 3. 右... 阅读全文
posted @ 2009-09-27 15:42 xxd 阅读(777) 评论(0) 推荐(0) 编辑
摘要: ref: http://fendou.org/2009/01/14/ubuntu-pdf-encode/刚刚用PDF查看了一下别人windows上共享的文件,发现左边的书签是正常的中文,内容居然是乱码,想了一下,大概是缺少CJK字符集支持,于是apt-cache search CJK fonts找到一个poppler-data,接着sudo apt-get install poppler-data... 阅读全文
posted @ 2009-07-27 14:35 xxd 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 1. Top n + group by <http://topic.csdn.net/u/20091013/11/077e5e03-24d2-4aa2-9771-4034f2c66084.html>数据库里边有表t(time, loction, index)数据形式为2009-01-01 01:00:00 1 102009-01-01 01:00:00 2 32009-01-01 01:00:00 3 12009-01-01 01:00:00 4 1012009-01-01 01:00:00 5 1022009-01-02 01:00:00 1 32009-01-02 01:00: 阅读全文
posted @ 2008-12-26 16:32 xxd 阅读(983) 评论(0) 推荐(0) 编辑
摘要: 2008年乱七八糟,先是去年辞了工作新加坡的工作,去年9月底到了深秋的巴黎,然后学法语,开始工作,今年9月份回国一堆工作面试,最后选了一个,继续生活。 --Python/Django记得去年这个时候开始上手Django在巴黎巴士底狱的办公室里给thefrenchtailer做中文版,和Roger两个加班,中午请我吃了一顿有名的但是很难吃的牛肉馅。然后觉得自己的理想是做系统/数据库管理,而且也在数据... 阅读全文
posted @ 2008-12-23 15:03 xxd 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Ref:http://thebackroomtech.com/2008/04/09/howto-remotely-disconnect-a-terminal-services-session/c:\ mstsc /v:Server IP /admin --on localc:\ tsadmin.exe --on target server, to kill some session, then r... 阅读全文
posted @ 2008-12-03 15:43 xxd 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1. $ rmmod pcspkr --or write it ot /etc/rc.local2. $ e /etc/inputrc --uncomment: set bell-style none, then reboot3. setterm -blength 0 阅读全文
posted @ 2008-12-02 15:42 xxd 阅读(197) 评论(0) 推荐(0) 编辑
摘要: Labels: Django get TinyMCE running inside Django's Admin1. craete /usr/lib/python2.5/site-packages/django/contrib/admin/media/tiny_mce (for linux)2. download TinyMCE (should be like thi... 阅读全文
posted @ 2007-12-26 16:26 xxd 阅读(564) 评论(0) 推荐(0) 编辑
摘要: Refexample: djangoproject tutorial 1-4 http://blog.chinaunix.net/u/15586/showart_1226813.html 10 mins a blog http://blog.ericsk.org/archives/815 MTV frameworkIn the MTV development pattern,“M” sta... 阅读全文
posted @ 2007-11-25 13:33 xxd 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1. If exist2. Import Excel3. Oracle SQL Server============================================================ 1. If exist:------------1.1 Oracle: Oracle check a table if exist:SQL> select count(... 阅读全文
posted @ 2007-11-25 13:22 xxd 阅读(1579) 评论(0) 推荐(0) 编辑
摘要: apt-get:——————$ sudo apt-get install python-psycopg2 python-psycopg postgresql-8.2 postgresql-client-8.2 apache2 libapache2-mod-python subversion pgadmin3 pgadmin3-data openssh-server Django:—————— Fi... 阅读全文
posted @ 2007-11-25 13:21 xxd 阅读(365) 评论(0) 推荐(0) 编辑
摘要: In templates directory, create email.txt as below: Dear {{ name }},Thank you for signing up with {{ product_name }}. Your new username is {{ username }}, and you can login at {{ login_url... 阅读全文
posted @ 2007-11-25 13:20 xxd 阅读(423) 评论(0) 推荐(0) 编辑
摘要: Labels: Python, Study_Notes, Study_Notes_Python http://blog.csdn.net/lanphaday/archive/2008/08/31/2857813.aspx 27: xml1. import:/>>>from xml.dom import minidom –import an package xml wi... 阅读全文
posted @ 2007-11-24 16:25 xxd 阅读(260) 评论(0) 推荐(0) 编辑
摘要: Labels: miscellaneous Firefox’s keyboard shortcuts, Extensions, Referenceskeyboard shortcuts: Ctrl+N : Open a new window Ctrl+T ... 阅读全文
posted @ 2007-11-24 16:24 xxd 阅读(200) 评论(0) 推荐(0) 编辑
摘要: select * from table where id in (select in from othertable)出现:collation是SQL_Latin1_General_CP1_CI_AS,而SQL Server的默认是Chinese_PRC_CI_AS。解决方法:修改othertable的collation 后边有更详细的reference我就决定去修改原来aspn... 阅读全文
posted @ 2006-11-26 14:30 xxd 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 高级->配置->编辑器显示->语法加亮-> 修改文件D:\Program Files\IDM Computer Solutions\UltraEdit-32\WORDFILE.TXT 搜索 UltraEdit python highlight搜索 UltraEdit PL/SQL highlight 阅读全文
posted @ 2006-04-17 15:28 xxd 阅读(295) 评论(0) 推荐(0) 编辑