For me, they are awesome!
I know the Secret Garden almost ten years ago. I'm really being attractive by their music for long period.
And I couldn't image I can ever get a chance to enjoy their music in live.
As Sherry said, even we are speaking in different language, but tonight we communicate with music.
Last Saturday, I spend several hours having a quick practice the Django, which is a web framework wrote in Python.
The documents in the home site it good. It didn't take me much time to set up the environment.
As I already have Apache and MySQL installed, I just need the related python mod.
Then downloaded the latest DJango stable package, installed and started the embed server. That's it.
Also I tried the simple sample in the "get start" document.
But till now, I can't see any benefits by using Django and Python to build a web app.
Comparing with Java, it turns out to be much simpler, but not with Groovy and PHP.
As for keeping learning the Python, I probably want to take a look into the CMS project PyLucid.
Sunday, April 27, 2008
Thursday, April 17, 2008
Quotes from Pragmatic Programming
Tip4: Don't live with Broken Windows
"....You may be thinking that no one has the time to go around cleaning up all the broken glass of a project. If you continue to think like that, then you'd better plan on getting a dumpster, or moving to another neighborhood. Don't let entropy win."
Tip5: Be a catalyst for Change
[The stone soup story]
Basically I think I experience the negative thing which is described in the Tip4.
Looks like interesting and I need to think about doing better thing.
"....You may be thinking that no one has the time to go around cleaning up all the broken glass of a project. If you continue to think like that, then you'd better plan on getting a dumpster, or moving to another neighborhood. Don't let entropy win."
Tip5: Be a catalyst for Change
[The stone soup story]
Basically I think I experience the negative thing which is described in the Tip4.
Looks like interesting and I need to think about doing better thing.
Wednesday, April 16, 2008
Install Taglist Vim plugin
Home Page: http://vim-taglist.sourceforge.net/
Installation: http://vim-taglist.sourceforge.net/installation.html
The _vimrc setting for taglist:
filetype on
let Tlist_Ctags_Cmd = 'C:\MyWorkplace\ctags57\ctags.exe'
let Tlist_Exit_OnlyWindow = 1
let Tlist_Sort_Type = "name"
nnoremap <silent> <F8> :TlistToggle<CR>
" Shortcut for switch between split windows quickly
nnoremap H <C-W><C-H>
nnoremap L <C-W><C-L>
Installation: http://vim-taglist.sourceforge.net/installation.html
The _vimrc setting for taglist:
filetype on
let Tlist_Ctags_Cmd = 'C:\MyWorkplace\ctags57\ctags.exe'
let Tlist_Exit_OnlyWindow = 1
let Tlist_Sort_Type = "name"
nnoremap <silent> <F8> :TlistToggle<CR>
" Shortcut for switch between split windows quickly
nnoremap H <C-W><C-H>
nnoremap L <C-W><C-L>
Monday, April 14, 2008
Virtual Community
It's even interesting to myself why I got a idea to start to experience those sites.
The Douban is ok and it's all about sharing informations on books, music and movies.
And several other sections, like blog and 'Channels' provide many things as well.
The Facebook turns out to be COOL! I met several colleagues and looks like there will be more interesting things.
My Facebook Profile: Simon Wu
My Douban: 海生
Email: freizl@gmail.com
Thursday, April 03, 2008
map, iterate function list, time in python
from __future__ import division
def prime1(y):
if y <= 1:
print y, 'not prime'
else:
x = y // 2
while x > 1:
if y % x == 0:
retValue = y, 'has factor', x
break
x -= 1
else:
retValue = y, 'is prime'
def timer(reps, func, *args):
import time
start = time.clock()
for i in xrange(reps):
map(func, args)
return time.clock() - start
for func in (prime1,):
print timer(10000, func, 12,15,18,20,22,30)
download file
Subscribe to:
Posts (Atom)

