Block Selecting, The Killer Feature of Vim

Without any doubts Vim is one of the best and most efficient text editors, which comes with a lot of features.

The block selecting feature of Vim is one of the many features Vim has to offer that you cannot find in most GUI based text editors as far as I know. You can use Ctrl+v to select ...read more

Published on: Dec. 26, 2010 --- Number of Comments: 2

How to Make a Quick Django Website For Mobile

I was really bored at the Christmas night, so I decided to create the mobile version of my Django based weblog real quick.

First I added a mobile detector middleware to the list of my middlewares on settings. I grabbed a nice middle ware from here.

Then I created new templates for the mobile ...read more

Published on: Dec. 25, 2010 --- Number of Comments: 0

Using Custom Fonts in CSS

There are many browsers under different platforms that one can use to connect to the Internet. In order to make a web application compatible with all platforms, one is limited to only use common techniques that are supported by all clients.

Fonts are one of the properties that vary in different operating systems. In order to dictate ...read more

Published on: Dec. 7, 2010 --- Number of Comments: 2

Serializing Foreign Key in Django Model

Django comes with a powerful serialization mechanism to convert your models to XML, JSON, YAML, and even python objects. However, the default serializer won't serialize the entire fields of another model if a foreign key field is pointing to it.

Django 1.2 introduced natural keys to address this issue, but if you cannot change your foreign ...read more

Published on: Aug. 1, 2010 --- Number of Comments: 0

How to test Android apps on your phone on Arch Linux

In order to test/run your android apps using your phone on your Arch Linux machine you need to do the following:

  1. Download Android SDK
  2. Unpack it somewhere.
  3. Create the following file as root: vim /etc/udev/rules.d/51-android.rules
  4. Paste the following code in it(Change user to your name):
    SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct} =="0c01", MODE="0666", OWNER="user"
    SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct} =="0c02", ...read more

    Published on: July 15, 2010 --- Number of Comments: 9

How to work with tabs in vim

As you may know, vim is one of the most powerful text editors. It's been around for a long time and most advanced UNIX administrators do all their tasks with it. I had tried working with vim a few times, but I always ended up using eclipse and quanta plus for developing my web application. Lately, I noticed that both ...read more

Published on: July 8, 2009 --- Number of Comments: 2

All Rights Reserved
Powered By Mohammad Mohtasham