Skip to main content

Posts

Vim vs. Emacs

Using both Vim and Emacs for quite a bit of time I have finally made a decision what editor to stick to. I started with Emacs, but gave Vim a try and it really satisfied me. And here are the points relevant for me: - It is deliciously easy to make key mappings in Vim. - Vim color schemes work both in GUI and console. - Vim config works almost identically for both GUI and console. - Sessions in Vim are much better stored than in Emacs (I mean, even tabs and windows are saved along with whole the environment, not only buffers). - By default Emacs lacks modality and this is the biggest disadvantage. Default keybindings on Emacs are just horrible (even physically painful, to be honest), I really see no reason for this complexity over simplicity given by modality. - Even on my MacBook Pro with 8 GB RAM Emacs happens to be slow somehow. - Vim has tabs out of box. A small number of tabs is not evil, when you have kind of 50 buffers open :) However, there are things I definitely l...

How to fix 'ImportError: cannot import name QtCore' on Debian Linux

What to do if such import error occurs? >>> import PySide >>> from PySide import QtCore Traceback (most recent call last):   File "<stdin>", line 1, in <module> ImportError: cannot import name QtCore 1. Try to locate where your pyside is installed: $ locate PySide ... /usr/lib/python2.7/dist-packages/PySide /usr/lib/python2.7/dist-packages/PySide/__init__.py /usr/lib/python2.7/dist-packages/PySide/__init__.pyc /usr/lib/python2.7/dist-packages/PySide/phonon.so /usr/lib/python2.7/dist-packages/PySide/QtCore.so /usr/lib/python2.7/dist-packages/PySide/QtDeclarative.so /usr/lib/python2.7/dist-packages/PySide/QtGui.so /usr/lib/python2.7/dist-packages/PySide/QtHelp.so ... Hint: use this to update your file index: $ sudo updatedb 2. The solution is easy: add this to your ~/.bashrc (or ~/.<shell>rc you actually have). export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/python2.7/dist-packages/PySide

How to solve: This Terminal Emulator is not functional because no 'bash' shell could be found in Aptana Studio 3

This Terminal Emulator is not functional because no 'bash' shell could be found. Please correct the problem and restart the IDE. Info Let's see the Aptana's Studio 3 log file. java.io.IOException: Cannot run program "/opt/Aptana Studio 3/plugins/com.aptana.terminal_3.0.0.1310755723/os/linux/x86/redtty" Solution chmod +x "/opt/Aptana Studio 3/plugins/com.aptana.terminal_3.0.0.1310755723/os/linux/x86/redtty" Then File -> Restart

How to install pysqlite (python sqlite binding interface) on Ubuntu Linux

First you need development libraries: $ sudo apt-get install libsqlite3-dev Then you have to download pysqlite files from http://code.google.com/p/pysqlite/ Next steps are usual: unpack and change dir After that run (you should have gcc - GNU C compiler - of course): $ python setup.py build After compilation runs successfully you are able to install pysqlite with: $ sudo python setup.py install That's all

Weird a bit