1 comments Thursday, December 27, 2007

19 comments Thursday, December 20, 2007

For a seasonal offer Sri Lanka Telecom (SLT) is given away free ADSL USB Modem ZTE ZXDSL 852 for customers who byuing ADSL Connections. This package contains ZTE ZXDSL 852 (SGS Thomson Microelectronic chipset) ADSL USB Modem, Driver CD for Window and ADSL Splitter. But there are no drivers for Linux. This simple guide will help you to install this modem in Ubuntu Gutsy (I believe this will also work with Feisty).

First you have to download this nice piece of Software from http://ubudsl.ubuntu.pl.
You can download UbuDSL 0.5(i386) from here.
You can download UbuDSL o.5(amd64/Ubuntu 7.10 only) from here.

You can install the package using follwing commands:

wget http://ubudsl.ubuntu.pl/debs/ubudsl_0.5-1_i386.deb
sudo dpkg -i ubudsl_0.5-1_i386.deb

After successfully installing the package, you have to configure the connection. Before condigure the connection you must have Ubuntu Installation CD with you.
To configure the UbuDSL goto Applications->Internet->UbuDSL - configuration.
Then you will get a window like following.Click Next button and select your country from the list and enter your username and password and click start.
Then it will display the following screen and ask for the Ubuntu Installation disk .
After finishing the configuration process it will display the following window.
Then press quit. Before you reboot SLT customers have some thing to do.
Use following command open the options file in /etc/modprobe.d/

gksudo gedit /etc/modprobe.d/options

Find a line that starts from "options unicorn_usb_eth" and replace in this line PROTOCOL=pppoatm ENCAPS=vc-encaps by PROTOCOL=pppoe ENCAPS=llc-encaps. Save the file, quit the editor and reboot your computer.

After rebooting your connection will appear on your gnome panel, and display connected message. If you doesn't enable autostart option, you have to manually open the UbuDSL - connection monitor and press connect button. Connection monitor can found in the Applications->internet menu.

Special thanks goes to
Adrian Łubik who is the founder and programmer of this tool.

2 comments Tuesday, December 18, 2007

When I start to reading Ubuntu packaging guide, I found this interesting things which can do using apt and dpkg.

  • apt-cache dump : lists every package in the cache. This command is especially helpful in combination with a grep pipe such as apt-cache dump | grep foo to search for packages whose names or dependencies include foo.
  • apt-cache policy : lists the repositories (main/restricted/universe/multiverse) in which a package exists.
  • apt-cache show : displays information about a binary package.
  • apt-cache showsrc : displays information about a source package.
  • apt-cache rdepends : shows reverse dependencies for a package (which packages require the queried one.
  • dpkg -S : lists the binary package to which a particular file belongs.
  • dpkg -l : lists currently installed packages. This is similar to apt-cache dump but for installed packages.
  • dpkg -c : lists the contents of a binary package. It is useful for ensuring that files are installed to the right places.
  • dpkg -f : shows the control file for a binary package. It is useful for ensuring that the dependencies are correct.
  • grep-dctrl : searches for specialized information in packages. It is a specific use of the grep package (but not installed by default).


Personas for Firefox is a extension that adds lightweight theming to your Firefox browser.


  • Click the install now link on this page.
  • Install the extension as you install any other extensions.
  • When you restart the browser you will see the Personas for Firefox icon on the lower left corner of your Firefox status bar.
  • Then just click on that icon and select themes from the available lists.
  • Here are some examples:


Thanks to Mozilla Labs Prism you can now split your web applications out of your browsers and run them directly on your desktop.
This is an example about how to run Google Reader directly on your Ubuntu desktop.

  1. Download Prism for Linux from here.
  2. Extract it to where you want.
  3. Then double click and run the prism executable or run it through your favourite shell.
  4. Fill the details according to the screen shot.
  5. Enter the Google account and password and tick remember this account if you want. It will load the reader.
  6. Then when you want to run the Google Reader you can simply click the icon on your desktop and run it.


First You have to install the vim-full package using following command.

sudo apt-get install vim-full

This command will install version of vim compiled with support for the GNOME2 GUI and scripting support for Perl, Python, Ruby, and TCL. After installation process when you open the vim editor it will not support syntax highlighting or any other features which must enabled using commands. To enable those basic features, you can use .vimrc file inside your home folder. You can find a sample .vimrc file inside /usr/share/vim/vim71 (or vim70) called vimrc_example.vim. Simply copy this file to your home directory using following command.

cp vimrc_example.vim ~/.vimrc

Now you are ready to explore the power of Vim.

Here are some links to download cheat sheet for Vim.

  1. http://www2.cs.uidaho.edu/~rinker/ed03.pdf
  2. http://tnerual.eriogerg.free.fr/vimqrc.pdf
  3. http://bullium.com/support/vim.pdf

Happy editing!

1 comments Thursday, December 6, 2007

When it comes to memory management in operating systems, the buzz words you hear are swapping and paging. You will learn why this swapping and paging is important in your OS introduction course, or may be you hear it from some friend or read about it in a article. When you become more mature in operating systems you will learn about algorithms and various approaches used in memory management. When it comes to installing Linux you will always have to create a swap partition (I think most of the Linux distribution need swap), or if you use guided partitioning installer will automatically create partitions for you. In the following article published in Linux.com you will found most of the details about Linux swap and purpose of the swap space.

All about Linux swap space [Linux.com]


Google has introduced new dynamic chart API for web application developers. You can find it here. There is also a very nice documentation available at above link. You can use this API inside JavaScript Also. Here are some examples.

2 comments Wednesday, December 5, 2007

Dell has introduce new editions of their XPS M1530 and XPS M1730 laptops specially for World of Warcraft. Here is the link.


When I browse trough the digg.com every day in my life and I used del.icio.us to manage my bookmarks, I got an idea to create human powered search engine using concepts of above two web applications. In this human powered search people can create tags and add there favorite links to those tags. People who browse through these tags can vote according to there preference for links which are related to that tag. I you think one link is very much related to that tag he can vote for that tag to bring it to the top.
Accidentally today I found a site that implement idea similar to above. Actually this is better than my idea. It's called eureksterswicki. You can find it at eurekster.com. It allow you to create your own custom social search portal on your own topic. People can vote for your links available in your swicki page and it also support web widgets.


This image is originally posted at here(xkcd.com).


2 comments Monday, November 5, 2007

Fist you have to use following command to bring up the configuration manager (It's a simple command line one).

sudo update-alternatives --config editor

From the displayed menu you can choose whatever the editor you prefer.

1 comments Thursday, October 18, 2007

  • Compiz Fusion : A Quick Demonstration

  • Getting Started with Compiz Fusion
  • Compiz Fusion: Ubuntu Gutsy 7.10 Cool Effects
  • Compiz Fusion Uses and Effects
  • Compiz Fusion Development

  • Compiz Fusion Plugins: Screensaver and Aquarium
  • Compiz Fusion Cocktail


2 comments Sunday, October 7, 2007

Here are some free tools for Web application designers. Using these tools you can generate tabs, stripes, tartans and image reflections to use in your web pages.These tools are created by
Alessandro La Rosa and Fabio Fidanza.

  1. Tabs Generator
  2. Stripe Generator
  3. Tartan Maker
  4. Reflection Maker

1 comments Tuesday, October 2, 2007

Paolo Ardoino has created a wizard game based on ajax/javascript using dojo gfx and SVG/VML. Actually this is a very nice idea and a nice game.


Yahoo has updated there search engine with new search assist feature.

Read more about it in this blog post.

3 comments Monday, October 1, 2007

2 comments Sunday, September 30, 2007

Here is the release note,

You can download this release from:

Major Changes Since Last Release

1. WS-Policy implementation
2. TCP Transport
3. Improvements to Guththila parser to improve performance
4. Improvements to Java tool, WSDL2C, that generates C code
5. Basic HTTP Authentication
6. Memory leak fixes
7. Many bug fixes

2 comments Friday, September 28, 2007

1 comments Monday, September 24, 2007

Zen of Python by Tim Peters

  • Beautiful is better than ugly.
  • Explicit is better than implicit.
  • Simple is better than complex.
  • Complex is better than complicated.
  • Flat is better than nested.
  • Sparse is better than dense.
  • Readability counts.
  • Special cases aren't special enough to break the rules.
  • Although practicality beats purity.
  • Errors should never pass silently.
  • Unless explicitly silenced.
  • In the face of ambiguity, refuse the temptation to guess.
  • There should be one-- and preferably only one --obvious way to do it.
  • Although that way may not be obvious at first unless you're Dutch.
  • Now is better than never.
  • Although never is often better than *right* now.
  • If the implementation is hard to explain, it's a bad idea.
  • If the implementation is easy to explain, it may be a good idea.
  • Namespaces are one honking great idea -- let's do more of those!

2 comments Sunday, September 23, 2007

Listphile is free web site which will enable you to create collaborative lists, maps and databases about anything from funny stuff to professional stuffs.

2 comments Tuesday, August 28, 2007

Here are some Cheat Sheets for Python. I think they will be help full for every one who start to learn Python programming and who involve in programming using Python.

1 comments Monday, August 27, 2007

This site containing cheat sheets for most of the programming language found. This is one stop shop for cheat sheets you want.


While searching through stumbleupon I found a really interesting site called Lecturefox. It contains video, audion and notes related to Computer Science, Physics, Mathematics and mix of other things. I think this site is really interesting and help students to find new areas of knowladge.
In the Computer Science section there are lot of interesting video lectures about operating systems, programming languages, web 2.0, semantic web and so many other videos about different areas available.
I think you should check this out.

2 comments Thursday, August 23, 2007

I started a new project to make fun in my free time and to learn python more deeply. So I start to develop TCP Monitor using Python for Linux platform. I was able to write simple fort forwarding program which will forward requests coming for a localhost port to remote port and I was able to make it multi threaded with the help of following code samples from ASPN.

After that I tried to create GUIs using PyGTK and Glade. After some time I felt some uneasiness using glade and PyGTK. It gave some errors while using notebook control in PyGTK. So I moved to use PyGTK without Glade with the help of PyGTK tutorial available in PyGTK project site.
I think PyGTK is cool solutions for those who have problems while making GUIs with GTK+ in C. Because writing GUIs using C is a pain. But PyGTK will make your life easier.

Some Tutorials for PyGTK with Glade

4 comments Friday, August 17, 2007

I first used blogger. I then moved to wordpress. But I felt that blogger is better than wordpress. So now I came back to blogger with new vision and new goals.
But I thought, what to write first in my new blog. I got an idea, which is a solution for problem I faced when I am trying to post code in my blog. These things are gathered by searching through google for better answers.
I first tried to use CodePress & CodeEdit which are better solutions for browser based code editors. But then I found this Syntaxhighlighter project in code.google.com. It's a very good solution for me. I have found several posts from blogs like gpowered.blogspot.com. But these posts are somewhat out dated. So, this is the updated guide use http://code.google.com/p/syntaxhighlighter/ to post code in your blog.

  1. As the first task you must download the JavaScript Library from http://code.google.com/p/syntaxhighlighter/ site.
  2. Because blogger doesn't allow us to upload files we have to find a solution. My solution is to create a web page in pages.google.com and when you create google page you get free 100 MB online storage. Upload syntaxhighlighter source files to this account. You must upload most of the files in the library.(clipbord.swf, SyntaxHighlighter.css, shCore.js and other required brushes. You need a google account to create google pages)
  3. Then you have to add the required Javascript files and css file mentioned in syntaxhighlighter site to your template file in blogger account. Remember to add these code into head section of your template.
  4. And you have to modify the following code part mention in previously mentioned link:

    to this:

  5. Then you have to follow instructions in this link to post code in to your blog. You can use pre tags in Edit Html mode directly without replace '<' characters with any code like '&alt;'.