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.
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.
Installing:
- 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.
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.
- Download Prism for Linux from here.
- Extract it to where you want.
- Then double click and run the prism executable or run it through your favourite shell.
- Fill the details according to the screen shot.
- Enter the Google account and password and tick remember this account if you want. It will load the reader.
- 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.
- http://www2.cs.uidaho.edu/~rinker/ed03.pdf
- http://tnerual.eriogerg.free.fr/vimqrc.pdf
- http://bullium.com/support/vim.pdf
Happy editing!
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]
Labels: linux, memory management, swap
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.
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.
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
- 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
- The JavaScript Programming Language - Part 1
- The JavaScript Programming Language - Part 2
- The JavaScript Programming Language - Part 3
- The JavaScript Programming Language - Part 4
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.
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.
Read more about it in this blog post.
Labels: news
- Introducing Python
- Advance Python or Understanding Python
- Python for Programmer
- Python Design Patterns (Part 1)
- Python Design Patterns (Part 2)
- Better, faster, smarter: Python yesterday, today and tomorrow
- Developing A product in Python
- Some Python IDEs
- Python 3000
Here is the release note,
You can download this release from:
http://ws.apache.org/axis2/c
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
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!
Listphile is free web site which will enable you to create collaborative lists, maps and databases about anything from funny stuff to professional stuffs.
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.
- Python Cheat Sheet - This will contain brief details input handling, Text file processing, lists, dictionaries and basic language.[html]
- Python 101 Cheat Sheet - This cheat sheet from IBM contains details from running python to exception handling.[html]
- Python 2.2 Quick Reference - Quick Reference which every Python developer must have.[html]
- Djanjo Cheat Sheet - Python Web development framework cheat sheet.[html]
This site containing cheat sheets for most of the programming language found. This is one stop shop for cheat sheets you want.
Labels: education
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
- Creating a GUI Using PyGTK and Glade
- Building an Application with PyGTK and Glade
- PyGTK with Glade
- More Tutorials from learningpython.com
Labels: gtk, linux, programming, pygtk, python
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.
- As the first task you must download the JavaScript Library from http://code.google.com/p/syntaxhighlighter/ site.
- 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)
- 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.
- And you have to modify the following code part mention in previously mentioned link:
to this: - 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;'.
Labels: blogger, blogging, syntax highilighting