Posts

The LISP-end of the computing

LISP never introduced until very late in school and that too in the form of ONE slide (yes true) one slide. So what is it in LISP that deserves so little concern. Looking at MIT OCW lectures it seems to be THE language of choice. So whats lisp infact? LISP (LISt Processing) is a language where the primary data structure is list and modus operandi is list operations. Step 1:  Installation Installation of lisp on aptitude based package manager (like Debian/ Ubuntu) can be achieved by the following command.  $ sudo apt-get  install clisp Alongside this its recommended to install the HTML version of the book  Common Lisp the language, 2nd Edition by Guy L. Steele Jr. $ sudo apt-get install cltl The book is installed in the /usr/share/doc/cltl/clm/index.html. Step 2: Testing LISP functionality Soon after installation clisp can be tested for functionality. The following sequence of commands test the lisp environment.  To start clisp $ clisp Try out the lisp-...

Why hibernating Linux might be a great idea

Why hibernating Linux might be a great idea? What supports the idea? There are basically two reasons that support this idea. One Linux has traditionally lived up to the billing as premium server class operating system.  Secondly it might strange but Windows has performed much better on Laptop using hibernate option than desktops. The former is a direct evidence support the convention while latter is circumstantial evidence. Since Windows is performing better in spite of it’s not so glorious record otherwise. So Linux can be expected to perform better than Windows because of its better history. The conjecture that server’s better performance can be attributed to the lesser frequent restarts needs to be further investigated but for now we could assume it to be true. Therefore its important to start setting up the hibernate option in the Operating System (be it Windows or Linux on laptop or a desktop). Its very good for the battery life too. Steps for initiating hibernate inUbuntu L...

The Evolution that is Linux

The availability of huge number of Linux distributions is amazing. The primordial soup developed by  Dennis Ritchie and Ken Thompson named UNIX had in it genesis the most amazing OS Multics. The primordial soup gave birth to a phenomenon which resulted in evolution of one beautiful species after another. The rise of Lisa led to Mac. Even the great evil empire acknowledged its superiority by first trying to develop Xenix and when it failed in its attempt to usurp started slowly building in features into its own Windows. A mutation took place in 1991 when Linux Travolds gave birth to Linux. This led to the never ending stream of species. Each and every species had its strengths and weaknesses but every species showed the brilliance and resilience that was present in its initial genes. The Linux of today cannot be compared directly to the MULTICS or even the first UNIX but the design is same providing solid and unbeatable performance. Not only is Linux and FreeBSD holding on to the se...

Linux Newbie : Why I cannot use Latex like those gurus?

Image
Latex is another brilliant Linux / Unix specialty hidden behind the geek facade.  Interesting introduction here {warning PDF file} talks in detail about why and how document processing improves with increase in document complexity. In the words of the author "It is very hard to write unstructured and disorganized documents" . I like the approach but feel that this might attract power users but for newbies its more of the same old school of Linux is for geeks. The purpose is not to criticize the authors. He / she did a great job and deserves credit for this article as well. Now the primary question is how and where to start, following tutorials almost always leads to temporary use. Even students writing thesis in latex only a few would later use it for submitting assignments or other work. The problem is two fold one the students or users are not introduced to latex in a friendly manner rather they use it as if trying to live up to the 'lofty standards' setup by ad...

How to automatically change proxy setting in Firefox ?

Proxy setting for office LAN / WLAN and home LAN / WLAN are often different. Firefox provides an easy method of changing proxies without having to do anything. The file proxy.pac provides an easy method of automatically changing proxy setting in Firefox from one network to another. There are elaborate methods of changing proxy settings given here . However the easiest method is described below. Step 1: Edit the file proxy.pac (preferably save it at a convenient location) and add the following line. function FindProxyForURL ( url , host )   {   return "PROXY proxy.example.com:8080; DIRECT" ;   } Where proxy.example.com  is simply the address of proxy and could be replaced by the IP Address of the proxy server. 8080 is the port address for http in most networks but could be different in some networks. Step 2: Go to Firefox Menu--> Tools --> Options --> Network Tab --> Click Setting Button --> Check the automatic proxy configuration url and ...

Linux Newbie : Why grep almost never yields something productive

Getting Started Level 0 Every Linux newbie hears about power of grep sooner or later. But no sooner does newbie try to use the grep command the experiment ends badly. The reason grep almost never yields anything productive is because of a couple of issues. The basic problem is lack of knowledge of regular expressions and secondly knowledge of switches of grep. This realization should not deter a new user from using grep. A very nice detailed tutorial of regular expression (regex) is available here . The migrating user having used dir and similar commands in DOS and using windows search box almost never expects (nor can fathom) the power provided by grep. Firstly grep means "global regular expression print". Now this means that knowledge of regex is required to be able to use grep effectively . Now what should a newbie do? Wait till user's regex knowledge improves? NO NOT AT ALL. That would scare away the user and never to use grep. Here is the first simple command that ...

The VNC Alternative of using Linux over Windows

A popular method of connecting to Linux Machine is via SSH (Secure Shell). This protocol of exchanging data over secure channel [1]. The beauty of this channel is that it could easily be extended to provide other facilities like SFTP (Secure File Transfer Protocol) or SCP (Secure Copy). One could get hold to a host of small applications from www.ssh.com [2]. Another method to use is VNC (Virtual Network Computing) [3]. Its a desktop sharing method and uses remote frame buffer protocol. The VNC alternative to using Linux over Windows can be used to enjoy Linux while still using Windows distribution. The only constraint is that one has to use an extra machine for Linux but the fact that we don't need to use any monitor, keyboard or mouse with it helps in both ease of use as well as house keeping (tuck away the Linux box under any table in your office and no one will know it exists).  The key to this idea are two simple commands on the two operating systems. Linux Box Step 1: Run ...

Two easy steps to installing Firefox 3.6 in Ubuntu 9.10

Browsing through google results for installing the latest release of Firefox 3.6 and Ubuntu 9.10 seems to be a headache. While it is extremely simple to install. Just go to the www.firefox.com and click install. Go through the motions of downloading and clicking the downloaded archive tar.  Simple is not it !

Two steps to using Assembly in Linux (ubuntu 9.10)

  ⚠️ Update (2026) This article was originally written several years ago and uses older 32-bit Linux assembly methods. While the concepts are still useful for learning, modern Linux systems now use 64-bit architecture by default, and some commands shown below may no longer work as expected.  ✅ Recommended Modern Approach * Use **64-bit assembly (`elf64`)** * Use **`syscall` instead of `int 0x80`**I * Use registers like `rax`, `rdi`, `rsi`, `rdx` 🔧 Quick Working Example (64-bit) ``` section .data     msg db "Hello, world!", 10     len equ $ - msg section .text     global _start _start:     mov rax, 1     mov rdi, 1     mov rsi, msg     mov rdx, len     syscall     mov rax, 60     xor rdi, rdi     syscall ``` 🛠 Compile & Run ``` nasm -f elf64 hello.asm -o hello.o ld hello.o -o hello ./hello ``` --- 📌 Note The original content below is kept unchanged for reference ...

Trial of Ruby in Ubuntu 9.10

 Ruby the pinnacle of OOP a language described as more object oriented than Python and more powerful than Perl by its creator Yukihiro Maksumoto. I set out to test it on my Ubuntu 9.10. Given ubuntu's excellent support and repositiories no wonder not only ruby but also ruby on rails was available in the respositories. I just had to shoot out the following commands. Installation $ sudo apt-get install ruby-full build-essentials $ sudo apt-get install rails $ sudo apt-get install vim-ruby $ sudo apt-get install vim-rails The same could be accomplished via the synaptic package manager in a more graphical environment by selecting System->Administration->Synaptic Package Manager. Then searching for the packages ruby and rails and selecting both and clicking "Apply". Soon after installation I went ahead and wrote the following program to test the ruby language.  The benefit of installing vim-ruby and vim-rails is that it helps in using vi with syntax highligh...

Upgrading Ubuntu from Hardy (8.04) to Karmic Koala (9.10) via Intrepid Ibex (8.10) and Jaunty Jackalope (9.04)

Realized my Hardy (8.04) on the desktop needs upgrading finally. Even though I had decided not to upgrade it until an LTS (Long Term Support) Ubuntu is released. Upgrading from Hardy (8.04)  to Karmic Koala (9.10) is not directly supported so the logical path is to do the following upgrades. Step 1. Hardy (8.04) to Intrepid Ibex (8.10) Step 2. Intrepid Ibex (8.10) to Jaunty Jackalope (9.04) Step 3. Jaunty Jackalope (9.04) to Karmic Koala (9.10) Each step follows similar pattern. $ sudo do-release-upgrade The same could be done via the graphical user interface (GUI) by selecting System ->Administration -> Software Sources , select Updates Tab and from release upgrade combo select  "Normal Releases". Then select System ->Administration -> Update Manager. This is followed by countless mega bytes of download and hope that net keeps connected all along.

Desirable features in a text editor in Linux or Windows

The selection of editor and choice of editors is something Windows users cannot imagine let alone comprehend. Windows comes with at most two text editors and one word processor. Notepad and Wordpad come under the heading of text editors. Wordpad is quite useful in this respect and notepad is very handy. However if one wishes to do any advanced word processing one has to shift to Microsoft Word. No doubt various text editors like TextPad, Emacs for Windows , Vi for windows are available to download. Linux flavors be it FreeBSD, Ubuntu, Solaris, Red Hat,Gentoo or countless others come with host of editors for text editing. What are the features one loves to have in a text editor F-01. EASE of use F-02. EASE of scrolling/ searching text F-03. EASE of editing text F-04 Language syntax highlighting / command menu F-01 EASE of use The best for satisfying F-01 is nano. The reason is that most of the command are very easy to remember moreover the commands mostly needed are continuousl...

Experiment :: FreeBSD on VMware Player on top of XP

Installing FreeBSD on top of XP via VMware Player. The experience is pretty nice until now. Installation steps were pretty simple. 1. Downloaded FreeBSD ISO from the website (http://www.freebsd.org/where.html) 2. Then installed the ISO via VMware Player The first reboot led me to a prompt $ and ability to run various commands. The next step is to install KDE. Started off installing KDE by executing the following command (make install clean) on the command line in the directory (/usr/ports/x11/kde4/). this led to downloading the kde from internet. Then since no proxy was setup therefore an error was encountered. This was solved by setenv http_proxy http://myproxyaddress:8080 . The command line came up easily the only problem was that KDE failed to install and gave the error "undefined reference to vtable projectbuildermakefilegenerator". Trying to figure out what to do with this error. Tried to google, rebuild ports, reload ports and lets see what happens. But overall...

Why nano is still better than Vi? Pine or not ?

One of the classic debates amongst linux geeks is whether Vi is better than emacs and vice versa. I have used all three and personally I like nano. The reason is not functionality richness or any other performance metric but simply the fact that I had been using PICO (Pine Composer) for a long long time roughly five years. Pico was first developed in University of Washington and came along side the famous email program pine (Program for Internet News and Email). The skills developed while using pine to quickly check email and reply via pico have been instrumental in developing this skill set. I performed my data structures, operating systems and networking lab coding in the same pico editor and this lead to my constant hookup with pico. GNU's clone for pico is nano and this does not let me use vi and /or emacs. Even though vi is supremely more effective and productive than nano but history is on nano's side.

Operating Systems Books Review

Last Summer I taught Data Structures and found it to be hardest subject to teach. Before teaching data structures I had either come across freshmen or handled mature students of final year or second half of third year. That was the first time I encountered students of second year (of course I teach Discrete Maths to second year students but that's completely new course) and had to teach them a course which strongly relied on concepts built in the previous course. Artificial Intelligence and elective courses mostly have their own pace and agenda therefore not hard to teach. I am going to teach Operating Systems for the second time. Teaching Operating Systems from Tanenbaum's Modern Operating Systems looks like a cake walk for the teacher but a bed of thorns for the students. The question is how to make it further interesting? The alternate is to use Tanenbaum's book Operating Systems Design and Implementation. This would be complimented by MINIX OS developed by Tanenbaum. ...

VMware Player Gateway to Linux Experience

Recently I got a recommendation to use VMware Player to install linux. Ever since it has grown on me. I have install Ubuntu 9.10, edUbuntu, Ubuntu 7.10 and Gentoo. Especially the way it dynamically uses memory instead of reserving bulk of memory space. If i were to actually partition the hard disk and install all these OS I would have had to give up somewhere between 3GB ~ 30 GB. But now I am only using 11 GB of space. Apart from this benefit another amazing feature is that a separate IP address is available (even when connecting to a DHCP Server). This is not only keeps it clean and simple but also allows interaction with the guest OS via network interface. Another interesting feature is the automatic restoration of the virtual machine state. This feature comes especially handy when dealing with power failures or unintentional closing of the window. The installation steps are pretty much simple. 1. Install VMware Player from the website (http://www.vmware.com/products/player/). ...

GNOME Cool Effects and why I am enjoying it

Although the machine warned me that in order to use the special effects I would need a fast graphics card. I was amazed at how beautiful the effects were specially the one where the window drags like a sheet in water. The way the windows pop up and drop down or shake when settling down after being left alone is not only wonderful but also pleasing to the eye. The user experience enhancements made in these cool effects is remarkable. Ways to go GNOME

GCompris Education Game for kids 2-10 years old : Pilot Submarine Game

I had thought that I would be able to review the kids games in one go but I was in for a wonderful surprise. I started playing the first game which happened to be pilot-a-submarine activity. The main goal was to click on different active elements : engine, rudders and air tanks, in order to navigate to the required depth. There was a close gate on the right. Catch the jewel to open it, then pass through it to reach the next level. It took me alot of time to get familiar with the motion of the submarine but I was wondering the amazement a small kid would go through when playing this wonderful game. This game gives the kid basic ideas about physics and fluid mechanics without even mentioning a single scientific term. This sure is a great achievement. Happy cruising. Enjoy !

Experiences with LTSP eduBuntu

Frankly I was not looking to install LTSP but a series of events forced me to install LTSP. Well its not a long story but somehow I was convinced that if I have to replace my Ubuntu it has to be a Ubuntu. Since Ubuntu's support is the best right now. I tried Gentoo but aborted midway. I installed Mandriva but that too ended in my discomfort with the UI. In the end it was my hidden desire to check out the educational software that comes with edubuntu that motivated me to put that CD in. So that triggered a chain of events which led from one thing to another. So I put the eduBuntu Install CD 6.06 into my machine and let it install. When I had got it installed I came to know it came with LTSP. So I checked out my laptop's PXE capability (PXE = Pre-boot Execution Environment) and then using a switch I tried to get my laptop to boot with the LTSP. The result was that it was unable to get an IP Address. This meant that I have to tweek the /etc/dhcp3/dhcp.conf and get it to give IPs f...

Democracy is the best revenge

Asif Ali Zardari's tale continues, a man thought to have brought down the daughter of east twice, was elected the President of Pakistan by a huge majority of electorate. According to media people turned out in large numbers on the streets to celebrate. Yes Pakistanis are fortunate to have celebrated twice within 20 days. The first time it was Musharraf's departure and now Zardari's arrival. Democracy is sure a sweet revenge and at times sends you to the presidential palace. The following statement should be kept mind while looking at the future of democracy in Pakistan. But most Swazis see things entirely otherwise. As a local saying goes, "A king is a mouth that does not lie." The government is bad, people tend to conclude, but the king is good. - http://www.iht.com/articles/2008/09/05/africa/swaziland.php?pass=true