Cyber merdeka by
Software Freedom Day will be started in KL real soon. This year, we try to do something different. We will try to get unused but usable PC, then install Free Software on it. And give the pc to those in need.
The main event of SFD KL will be training, and install-a-thon.
I still can’t decide the date yet. Because 19 September is the day before Hari Raya. Which will be a long holiday for a lot of people, so SFD will not be held like others. I hope to do it either by 5/6 Sept or 12/13 Sept.
So what do we need.
1) Old, Unused, but usable PC, or PC part. We promised a few, already.
2) Volunteer that is available.
The first meeting is Sunday 30 August 2009, at 6-7pm, in Burger King, Mid Valley KL.
for i in range(10):
for i in even():
Sometime it is actually nice that automate interactive script, aka the one that need user to input something to continue. Such as django manage.py script
For example to use with reset the database in django:
Actually you can use it to run programs. Without the expect methods or sendline. The program will just runs
#just run the command
commands = pexpect.spawn(“ls -a”)
BTW, do check expect, it is the one that runs without python. Which is what pexpect based on. Either way, it should be available to any linux distro. On ubuntu find expect and pexpect on synation, it is there.
I just finish a job in django, and I use it for some ajax part of the project. So I generate json for this. Below is a snippet sanitize from the code my job use…
from django.contrib.auth.decorators import login_required
from django.shortcuts import render_to_response
So there it is…
p.s I need a way to display source code properly on my blog, idea?