-
Recent Posts
Recent Comments
sassygirl on DB2 index design articles Victor on Automated HTTP GET (with cooki… Victor on Automated HTTP GET (with cooki… Asian Chick on Automated HTTP GET (with cooki… Victor on Automated HTTP GET (with cooki… Archives
- September 2016
- August 2016
- July 2016
- June 2015
- May 2015
- February 2015
- December 2014
- November 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- April 2012
- March 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- January 2011
- December 2010
- November 2010
- October 2010
- August 2010
- March 2010
- January 2010
- December 2009
- April 2009
- March 2009
- February 2009
- January 2009
- May 2008
- June 2007
- November 2005
- October 2005
- July 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
Categories
- alfresco
- android
- apache2
- apt-get
- archive
- boot
- centos
- chkconfig
- chrome
- cifs
- cpio
- csv
- curl
- DB2
- dd
- dig
- diskmon
- dns
- dnsmasq
- drupal
- ec2
- eclipse
- Entertainment
- erlang
- eventlet
- ffmpeg
- firewall
- generator
- gevent
- gpg
- hdiutil
- ICMP
- iptables
- iso
- java
- json
- jython
- k8s
- kerberos
- kivy
- lamp
- ldap
- libpcap
- linux
- lookit
- lsof
- mod_jk
- mongodb
- monit
- mount
- mssql
- mtr
- multimedia
- Music
- mysql
- netcat
- netstat
- network
- nfs
- nginx
- nmcli
- ntpd
- oracle
- osx
- pelican
- ping
- plone
- postfix
- postgres
- programmer
- pydev
- pymssql
- python
- python wsgi
- QA tools
- rsync
- ruby
- sensu
- smb
- smtp
- snmp
- socat
- solaris
- sproutcore
- sqsh
- ssh
- sshfs
- ssl
- sso
- strace
- stunnel
- sublime
- svn
- sybase
- system
- TCP
- tivoli
- tmux
- traceroute
- ubuntu
- ucm
- Uncategorized
- UNIX
- upstart
- urlrewrite
- visualvm
- weblogic
- websphere
- winpcap
- wireshark
- wowza
- xml
Meta
Category Archives: python
high performance python tips
http://www.jeffknupp.com/blog/2013/06/30/pythons-hardest-problem-revisited/ Quoted from http://ict.swisscom.ch/2015/02/pyperformance/ I/O bound problems can make good use of multi-threading (where the GIL is released during I/O) or asynchronous programming. CPU-bound problems can be addressed by better algorithms (nothing beats an algorithm with less computational complexity), using … Continue reading
how to install pymssql
You need to install the FreeTDS development package (freetds-dev) before trying to install pymssql with pip: $ sudo apt-get install freetds-dev and then download and install the latest version of pymssql (don’t use pip install as the version in PyPi … Continue reading
Posted in mssql, pymssql, python, Uncategorized
Leave a comment
python_path SublimeRope
Please add the following lines on a project base. .rope/config.py prefs.add(‘python_path’, ‘/home/myhome/.virtualenvs/py27/lib/python2.7/site-packages’) prefs.add(‘python_path’,’/usr/lib/python2.7′)
Posted in python, sublime
Leave a comment
python for loop, iterator, iterable, generator
For Loop When Python executes the for loop, it first invokes the __iter__() method of the container to get the iterator of the container. It then repeatedly calls the next() method (__next__() method in Python 3.x) of the iterator until the iterator raises a StopIteration exception. Once the … Continue reading
Posted in python
Leave a comment
osx python set up
Install Python from homebrew install homebrew: ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) install latest Xcode ‘s command line tool from developer.apple.com. /usr/local/bin/pip install virtualenv virtualenvwapper brew install python python3 .bashrc export WORKON_HOME=$HOME/.virtualenvs source /usr/local/bin/virtualenvwrapper.sh mkvirtualenv -a /Users/vyang/src/app -r /Users/vyang/src/app/requirements.txt app
Posted in osx, python
Leave a comment
concurrency model with Actor
Actor model everything is a Actor, natively concurrent. Support in programming language Erlang: language level. Erlang is the best platform for concurrency and distributed application so far. Python eventlet why gevent Gevent: good, bad and ugly gevent tutorial Java: library level. Akka
Set up Python for Android development
Python Android adb cmd example Install android-sdk: tools:android platform-tools:adb Create an AVD (“android avd”) test1. “emulator avd test1” sudo apt-get install ia32-libs While the above is running, “platform-tools/adb install sl4a_r4.apk” While the above is running, “platform-tools/adb install PythonForAndroid_r4.apk” Use adb … Continue reading
Posted in android, python
Leave a comment
Python study notes
python overview abstraction: type: dynamic binding, strong type(for catching bugs) object is first class:objects can be freely passed around, inspected, and placed in various data structures (e.g., lists or dictionaries) at run-time. organizing code: package, module, class,method, function. flow control: … Continue reading
Posted in python
Leave a comment
cpython source code study note
http://www.python.org/dev/peps/pep-0339/ http://eli.thegreenplace.net/articles/ Python compiler Python 2.7.2 source code main():Modules/python.c Py_Main():Modules/main.c Py_Initialize(): Python/pythonrun.c PyRun_SimpleFileExFlags PyRun_FileExFlags PyParser_ASTFromFile returns AST module Parser build CST: PyParser_ParseFileFlagsEx: Parser/parsetok.c Transform CST to AST: PyAST_FromNode(): Python/ast.c run_mod(mod) PyAST_Compile(mod) compile AST into byte code PyEval_EvalCode runs the byte … Continue reading
Posted in python
Leave a comment