Subscribe to Selinap.com feed right now!  Get Updates by Email

Archive for July, 2008

Generate Fibonacci numbers with Python

Thursday, July 31st, 2008

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:

1, 2, 3, 5, 8, 13, 21, 34, 55, 89, …

Mathematically, we write it as:
F(n) = F(n) + F(n-1)

This can easily be done in Python, using generators.

Read the rest of this entry »

Nuffnang down time

Monday, July 14th, 2008

This morning, Nuffnang server seems to be down.

Read the rest of this entry »

Komodo Edit save and run python macro

Monday, July 14th, 2008

Komodo Edit is a good editor for many programming language. However, since it is free as compared to its brother Komodo IDE, there is lack of debugging function.

Read the rest of this entry »

Wordpress: Display posts by categories

Thursday, July 10th, 2008

This function could be used to display all categories and their posts. One example of its usage is for the Archive page.

Read the rest of this entry »

LaTeX special characters

Wednesday, July 9th, 2008

Special symbols

Character Command Description
§ \S section sign
\dag dagger
\ddag double dagger
\P pilcrow sign (paragraph)
© \copyright copyright sign
£ \pounds Pound sign

Read the rest of this entry »

Executing Python Code Within Komodo Edit

Monday, July 7th, 2008

Komodo Edit is a good free editor for Python development. However, there is no debugging feature in Komodo Edit. Therefore, it is a cumbersome process to execute Python scripts. Fortunately, there is a feature called Run command to satisfy this job.

Read the rest of this entry »

Wordpress 2.6 beta 2 problem

Wednesday, July 2nd, 2008

Yesterday, Ryan Boren had announced the release of Wordpress 2.6 beta 2.

Read the rest of this entry »

Recent Readers: