Posts

Showing posts from May, 2010

sftp's stuff

sftp for download multiple files >> mget gaga/* part

Installation tip for django nose

easy_install nose easy_install nosedjango (very thank PPam)

Linux, change fonts for qt4 application

1. alt-f2 for call run app dialog 2. sudo qtconfig-qt4 3. lets change what u want 3. don't forget to save

Django modify request.POST

I found an error about trying to change request.POST['xxxx']. After googling i get an answer... # copy queryset to q for mutatable purpose q = request.POST.copy() q.update({'xxxx': you value}) # then use q instead request.POST :) i'm not sure but it should give a correct result 99% (thk wrong (demigod))

Django's Contenttype

from django.contrib.contenttypes.models import ContentType from mission.objects import Mission -> cmission = ContentType.objects.get(model='mission',app_label='mission') and -> cmission = ContentType.objects.get_for_model(Mission) You will get same object.

Jquery, Ajax and Django

Last working day, I have problem about $('#xxxxxxx').onclick(foo()) that not catch the EVENT with chrome but its work with firefox. So Wrong (demi-god) told me to replace onclick with onchange,gizzzzz its work :) Thank Demi-God Wrong. ps. not quite has a detail about ajax, django,(- -) may be next time

Resize Icon in Ubuntu Linux

Hi there :), If u need to resize desktop icon, U gotta do something like me. press ALT+F2 to bring "Run Application" Dialog up. type "/usr/bin/nautilus" click Edit>Preference and from View tab change Default Zoom Level under Icon View Default catagery. thk , www.addictivetips.com/ubuntu-linux-tips/how-to-resize-desktop-icons-in-ubuntu-linux/

tip's daily

about firebug: if use console.log BUT when u start test without ACTIVATE firebug , Will cause a very damn bug in javascript thank wrong(proteusian) for help