Posts

Showing posts from November, 2010

Something I just know about MBP.

Aha, I bought MBP since April, But I don't know much about key pad sign on manual. Now something warn me that control key -> ^ option -> something not same as command key "force quit" menu -> option + command + esc Thank, This knowledge from Mac people of Internet.

Issue about django latest()

If u need to use latest() function when get something from db. First use need to aware of latest( field_name ) of model._meta = 'field_name' in your model to make it clear what your latest out from your db.

Django combine 2 Queryset

Do you know that we can combine 2 Querysets by >> q1 = q1 | q2 # get another queryset so you can use .order_by() or something behind note: don't know about side effect.

Change default python on debian ubuntu

Ubuntu automatically installs python 2.5 and uses it as the default python … I have crashed my system 2 times to solve this .. I wanted to make the default python to version 2.4. This is the way before begaining Thanks to (Luiz Rocha (lsdr) ) http://ubuntuforums.org/showthread.php?t=440358 and http://www.gossamer-threads.com/lists/python/python/685071 First, edit the /usr/share/python/debian_defaults, changing the default version arg to python2.4 2nd, $ sudo mv /usr/bin/python /usr/bin/python25 $ sudo ln -s /usr/bin/python2.4 /usr/bin/python reference( http://tareqalam.wordpress.com/2008/11/28/change-the-default-python-version-in-ubuntu/ )