Milinda Pathirage’s Blog

Let the code talk for yourself!

Entries from August 2008

Ubuntu 8.04 Bug - After Playing Flash Videos in Firefox 3, No Sound in other Media Players

August 29th, 2008 · No Comments · linux tips, ubuntu

I came a cross this problem everyday when I watch some Flash Videos using Firefox 3 browser. After I watched flvs using Firefox 3, no other media player in Ubuntu giving any audio out. Most cases I can play the video without sound using most media players, but I think mplayer crashes when try to [...]

[Read more →]

Tags:

Terminator - Cross Platform GPL Terminal Emulator with Multiple Window Support

August 25th, 2008 · No Comments · linux, news

Terminator is a cross-platform terminal emulator which has support for multiple terminal windows. Users can split the terminator window vertically and horizontally to arrange terminal windows in their preferred manner. According to the creators, it is inspired by programs such as gnome-multi-term, quadkonsole, etc. in that the main focus is arranging terminals in grid.

Some of [...]

[Read more →]

Tags:

Dream to Reality

August 25th, 2008 · No Comments · personal

Image from apesara’s flickr photo stream.

Everyone love dreaming. Every one love to come up with new ideas, implement them and share ideas with others. Unfortunately most of the dreams never come true, because of human nature and other various factors. Following series of blog posts from lifedev.net will help you to make your dreams a [...]

[Read more →]

Tags:

Handwritten and Typewriter fonts

August 24th, 2008 · No Comments · asides

Typography plays major role in graphic design and most of you always search for creative fonts to use in your fonts.
10 Handwritten fonts you can’t miss and
10 Awesome typewriter fonts for web designers
contains some great fonts that you can use in your designs.
Sphere: Related Content

[Read more →]

Tags:

SEO for your Blog

August 21st, 2008 · No Comments · blogging

Everyone like see their blog on top of the search results relate to their niche. Most of us try various techniques to get our blog ranked at the top of the Search Engines. Search Engine News Journal has posted 10 tips to get your blog ranked at the top of the Search Engines. But keep [...]

[Read more →]

Tags:

Recursion, Non-Recursion and Tail Recursion Test using GCC -O2 optimization

August 20th, 2008 · 1 Comment · algorithms, c programming, programming

I got  very positive response for my previous post that published test results of Recursion algorithm efficiency testing.

Bluestorm and Alex has responsed to above post asking me to try gcc -O2 optimization level. I tried -O2 optimization and here is the results for factorial of 5 using different factorial algorithm implementations:

Here is the results for [...]

[Read more →]

Tags:

Recursion, Non-Recursion and Tail Recursion Test

August 20th, 2008 · 11 Comments · c programming, programming

Because of the responses I got from readers for previous post ‘Efficiency of Algorithms: Recursive vs Non-Recursive’, I did some test using RDTSC instruction available in Pentium class CPUs. I measure time taken to execute factorial function implemented in different ways 10000000 times. Factorial function is implemented in non-recursive, recusive and tail-recursive manner(Tail recursive version [...]

[Read more →]

Tags:

JavaScript __noSuchMethod__ feature

August 19th, 2008 · No Comments · JavaScript, programming

Today I found this document while reading the Ajaxian. This ‘__noSuchmethid__’ of JavaScript object is same as Ruby’s ‘method_missing’ feature.

Example from above document:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
wittyProjectName.log = function log (message, type) {
if (type == 0) {
// log an error
}
else if (type == 1) {
// [...]

[Read more →]

Tags:

WSO2 ESB v1.7.1 Released

August 19th, 2008 · No Comments · news, wso2-esb

WSO2 Enterprise Service Bus team announced the v 1.7.1 release recently. Release note is available under this link and you can download by visitng WSO2 ESB download page. Current release supports Firefox 3 and IE7.
Sphere: Related Content

[Read more →]

Tags:

Possible problems that can occur after installing WP Super Cache

August 18th, 2008 · No Comments · blogging, wordpress

I installed WP Super Cache plugin in second week of August 2008. After that some problems occur when I tried to do some chages to the widets in my blog sidebar. At one time even though I remove some widgets, they are shown in my blog. The most recent problem occur when I am trying [...]

[Read more →]

Tags: