Filed Under (Python) by Marcin Kuźmiński on September-13-2009

I moved the blog to a new server. I think I’m going to move permanently from slicehost to hosteurope.de for the same price i have 1gb ram compared to 256 and 25 50 times the traffic. Also i compiled php 5.3 with php-fpm for this server, and updated mysql to newest available. I hope I’ll gain some performance with this as well. So enjoy a new theme and the server whitch i hope will be faster.



Filed Under (Editors, Python) by Marcin Kuźmiński on June-25-2009

Today is Eclipse Galileo release day. So i made my new PyDev + eclipse compilation with some customizations.

I remove all the unnecessary stuff for java IDE since we program in python we don’t need java stuff in there( and it loads faster to :D )
replaced splash screen with the one from pyDev site, and throw some nice (Python) window icons.

Here’s the main window:
Screenshot-Pydev - Eclipse

Here’s what you have to do to have my setup:

  • Get the newest version of eclipse for java IDE (not the EE) use this direct link if you want download eclipse
  • extract folder eclipse to you hard drive and rename it to let’s say PyDev ;]
  • DON’T RUN ECLIPSE !! please
  • Ok here’s what you have to remove to get rid of all the java stuff
    (i have nothing against java, but we’re talking python here)
  • from folder features remove org.eclipse.jdt_3.5.0.v20090527-2000-7r88FEeFJePyvYeA33DjZ_c1
  • from folder plugins remove
    org.eclipse.jdt.debug_3.5.0.v20090526
    org.eclipse.jdt.apt.core_3.3.200.v20090528-1135.jar
    org.eclipse.jdt.apt.pluggable.core_1.0.200.v20090526-2130.jar
    org.eclipse.jdt.apt.ui_3.3.200.v20090528-1135.jar
    org.eclipse.jdt.compiler.apt_1.0.200.v20090528-1135.jar
    org.eclipse.jdt.compiler.tool_1.0.100.v_963.jar
    org.eclipse.jdt.core.manipulation_1.3.0.v20090603.jar
    org.eclipse.jdt.core_3.5.0.v_963.jar
    org.eclipse.jdt.debug.ui_3.4.0.v20090527.jar
    org.eclipse.jdt.doc.user_3.5.0.v20090603-1530.jar
    org.eclipse.jdt.junit.runtime_3.4.100.v20090513-2000.jar
    org.eclipse.jdt.junit4.runtime_1.1.0.v20090513-2000.jar
    org.eclipse.jdt.junit_3.5.0.v20090526-2000.jar
    org.eclipse.jdt.launching_3.5.0.v20090527.jar
    org.eclipse.jdt.ui_3.5.0.v20090604.jar
    org.eclipse.jdt_3.5.0.v200906111540.jar
  • Firstly i decided to remove epp.package.java but this really screws up eclipse and the icons so don’t do it
  • Now download this pydev icons  package pydev_icons and extract it somewhere
    if you don’t need the eclipse icon replacement you can skip this.
  • Copy and replace splash.bmp to folder plugins/org.eclipse.platform_3.3.200.v200906111540
    and paste rest of images to folder in plugins/org.eclipse.epp.package.java_1.2.0.20090619-0620
  • In case of newer eclipse builds (3.5.2) just copy everything to plugins/org.eclipse.platform_*.*(version number) and remove the gifs, so eclipse will load png
  • Your done !

Now run eclipse save you workspace and setup pydev as in this post:

http://www.python-blog.com/index.php/2009/06/20/python-ide-pydev-best-choice/

Enjoy lighter version of newest eclipse galileo with Pydev and some nice icons :)

UPDATE: I changed the splash screen in pydev icons to be the same size as original one.



Filed Under (Editors, Python) by Marcin Kuźmiński on June-20-2009

I was looking something to replace Gedit / Scite text editor, since  i work with large files (1+ mln lines) opening those files in gedit was a nightmare i took 5-8 minutes to open a file with almost 100% cpu load, and searching through the files was almost as slow as opening.

Before gedit i used scite the scintilla base text editor i was extremely fast it almost perfectly suited my needs except two things. Lack of other types of encoding than UTF-8 and in my opinion stupid options file that had to be edited manually since it doesn’t save options when you change it in scite. I looked for something to replace scite as well.

So i started looking for a scintilla based text editors, and i found one. Geany 0.17.

“Geany is a small and lightweight Integrated Development Environment. It was developed to provide a small and fast IDE, which has only a few dependencies from other packages. Another goal was to be as independent as possible from a special Desktop Environment like KDE or GNOME – Geany only requires the GTK2 runtime libraries.”

Some basic features of Geany:

  • Syntax highlighting
  • Code folding
  • Symbol name auto-completion
  • Construct completion/snippets
  • Auto-closing of XML and HTML tags
  • Call tips
  • Many supported filetypes including C, Java, PHP, HTML, Python, Perl, Pascal (full list)
  • Symbol lists
  • Code navigation
  • Build system to compile and execute your code
  • Simple project management
  • Plugin interface (see Plugins)
  • Built in console
  • Opens file in choosen encoding
  • Replaces EOF for WIN UNIX MAC formats

So now opening a file is taking 20 seconds :) It’s extremely fast, and have powerful search options. This is THE text editor I’ve been looking for…
A good replacement for gedit which is slow, and scite whitch is fast but week in configuration.
Highly recommended you can download a source /  win exe from this location download geany



Filed Under (Nginx, Pylons, Python) by Marcin Kuźmiński on June-19-2009

Hi welcome to python blog !

We are up and running. Some technical information about our site:

  • Nginx 0.7.59
  • SliceHost 256MB slice
  • PHP 5.2.9 patched with php-fpm
  • Debian 5.0 + grsec & selinux
  • Python 2.6.2

Soon I’ll post the setups i made for this site as well as some useful links for custom building php with php-fm .

Regards Marcin Kuzminski site Administrator