>>> import rlcompleter >>> import readline >>> readline.parse_and_bind("tab: complete")
Tuesday, March 6, 2012
How to enable tab completion in the Python interpreter
Vim: how to force syntax highlighting to parse from start of file
Simply do the following:
:syn sync fromstart
:syn sync fromstart
Monday, March 5, 2012
How to setup an FTP server on Windows using Python

- First download Python. (2.7 because I'm not sure 3.x works with pyftpdlib)
- Next download pyftpdlib
- Install Python 2.7 from first step. This will usually install to C:\Python27
- Install pyftpdlib from the command prompt using Python from C:\Python27\python.exe as follows:
- Un-tar and uncompress the pyftpdlib-x.y.z.tar.gz using 7zip. (Don't have 7zip? Either download it and install it. Or use something else. :)
- From the command line, cd into the pyftpdlib.
- Run the setup script as follows:
c:\Python27\python.exe setup.py
- Note that you might have to give the full path because I'm not sure python.exe will be in the environment PATH. Just easier that way.
- Write the pyftp.py script. See the tutorial here (or leave a comment if you want me to post a simple one). Change the hostname to your host IP address. (Don't know it? Get it using the ipconfig command.)
- Run the pyftp.py script as follows from the command line:
c:\Python27\python.exe pyftp.py
- This should print out the port that your FTP server is running on.
- Enjoy the FTP-goodness fun.
Subscribe to:
Posts (Atom)