Tag Archives: python

Intro to Blather: Speech Recognition for Linux

Posted in GNU/Linux, Science and technologies | Tagged , | 1 Comment

sympy – continuity test of functions

All functions I used here from Chapter 1 Exercises on Calculus and Analytic Geometry (9th Edition) by George B. Thomas, Ross L. Finney. It has discontinuity at 2 of x. Smooth graph of a function means it has continuity in … Continue reading

Posted in Python, Science and technologies | Tagged , , , , , , | Leave a comment

sympy plot function examples

Running environment is IPython Notebook in Debian Wheezy.

Posted in Python | Tagged , , , , , , | Leave a comment

IPython notebook installation in Debian Wheezy

$ sudo apt-get install ipython-notebook python-matplotlib Reading package lists… Done Building dependency tree Reading state information… Done python-matplotlib is already the newest version. python-matplotlib set to manually installed. The following extra packages will be installed: ipython-notebook-common libjs-mathjax libpgm-5.1-0 libzmq1 python-mysqldb … Continue reading

Posted in GNU/Linux | Tagged , , , | 1 Comment

Some notes about parallel computing in Python

I spent two days to study parallel computing by using Python’s multiprocessing module. My Debian box has AMD 6-core 64bit processor. Python version is 2.7.5. Interesting things I’ve found so far is using the multiprocessing module does produce 3 to … Continue reading

Posted in GNU/Linux, Python | Tagged , , , | Leave a comment

IPython and matplotlib

OS: Debian Wheezy The explanation is here. $ ipython -pylab WARNING: `-pylab` flag has been deprecated. Use `–pylab` instead, or `–pylab=foo` to specify a backend.Python 2.7.3 (default, Sep 9 2012, 17:41:34) Type “copyright”, “credits” or “license” for more information. IPython … Continue reading

Posted in GNU/Linux | Tagged , , , , , , , | Leave a comment

VPython segmentation fault error after Wheezy upgrade

My Linux workstation uses fglrx graphic driver for Xorg. I experienced ‘Segmentation fault’ run-time error when I ran VPython codes today afternoon. In Squeeze it worked fine. Hmm… I forgot the old box was using open-source Radeon driver in Squeeze. … Continue reading

Posted in GNU/Linux, Python | Tagged , , , , , | Leave a comment

Python resources

The author of The Python Standard Library By Example Doug Hellmann’s website has Python Module of the Week. It has many examples how to use standard modules. http://www.doughellmann.com/PyMOTW/about.html Working with Python subprocess – Shells, Processes, Streams, Pipes, Redirects and More … Continue reading

Posted in Python | Tagged , , , , | Leave a comment

IOError: [Errno 32] Broken pipe

Python version I use is 2.7.3 in Debian Wheezy. The subprocess example code from here creates annoying error: Traceback (most recent call last): File “process_example4.py”, line 8, in sys.stdout.flush() IOError: [Errno 32] Broken pipe process_example4.py import sys while True: input … Continue reading

Posted in GNU/Linux, Python | Tagged , , , , | 2 Comments

Bash – Turning on and off wildcard expansion

I’m dealing with the same problem for a small python script that uses ‘ls’ as sub process. How to prevent wildcard expansion in bash? $ set -f $ /path/to/globme.sh $ set+f $ YourFirstArgument YourSecondArgument … For detail, follow this link. … Continue reading

Posted in GNU/Linux, Python | Tagged , , , , , , , | Leave a comment