Google
 

Monday, September 03, 2007

Free Linux E-books

Want to upgrade your Linux skills, but you don't want to spend tons of $$$. Of course, you can surf the Net and read the different web sites and knowledge bases about Linux. But nothing beats a good (e-) book to give you a systematic treatment on a specific topic.

I found a web site, http://freebooks.homelinux.org/ that lists free e-books on Linux. There are quite a few gems on this list, albeit some are a little out-dated. The web site has become so popular that the site administrator had to put a limit on it: you can only download at most 10 e-books per day.

For example, you can download this free e-book published by O'Reilly, http://freebooks.homelinux.org/download.php?OS.Linux.Server.Hacks.OReilly.pdf.pdf. It contains 100 hacks/tips for Linux system administrators. Just last week, I started reading Volume 2 of this book (not free) and found it to be very helpful. I was overjoyed when I discovered that Volume 1 is being offered as a free book. It did not disappoint me.

Saturday, September 09, 2006

Reversing of I.T. Outsourcing ??

I reviewed a book earlier titled "My Job Went to India." The premise is basically I.T. jobs in the West are being outsourced to the more cost-effective regions of the world such as India. According to the book, all is not LOST for the Western developers because there are certain inherent core values and competencies that our brothers in the East don't share.


Two weeks later, this BBC news article talked about the reverse phenomenon: "India attracts Western tech talent." A certain I.T. company in Bangalore, India has been hiring hundreds of Americans (& Britons) to work in India.


The article claimed that some Indian companies are now "not afraid to poach the best talent from their international competitors, matching their salaries and perks in India." In addition, "the competition is good for Indian companies and workers. .... Indians will only benefit by interacting with foreign skills."


I wonder what the author of "My Job Went to India" would say in response to this early sign of a reverse "trend". Can we still depend on our inherent core values and competencies in the West to keep our jobs safe?


We should keep an eye out while this all unfolds.





Tuesday, September 05, 2006

I'm Digging it.

I have been a regular reader of slashdot (http://slashdot.org). Slashdot is arguably the premium web newscast for geeks. It features links to web page articles that are submitted by readers and hand-picked by the slashdot editors. "Being slashdotted" is a term coined to describe the effect of being featured on slashdot, specifically referring to the enormous and sudden web traffic attracted to your site. The extra web traffic can cripple the web server if you are not well prepared for it.


Lately, my interest in reading slashdot is waning. The bottom line is that I don't find that many articles on slashdot which are of interest to me. I now find the articles to be a little bit too "sensational", and not enough "bread-and-better", "hard-core" technology HOW-TOs.


So, I started to look for an alternative news source. I found digg.com


Digg.com has a different editorial policy than slashdot. On slashdot, a "handful" of editors decide which articles go on the web site. Digg is a more democratic system: all articles get on the web site, and the readers vote on how far up it will go (is it "front page" material?) You can digg it (vote for it), or bury it (vote against it).


Granted, hand-picked articles (aka slashdot) will streamline and keep the # of articles down. If you find your interests are similar to the editors, that is perfect. With digg, you have access to more articles, and if you don't want to spend that much time, you can always head to the "most popular" articles list on the front page.


For a more detailed analysis of the dynamics behind digging, click here.


From a publisher perspective (say, as the publisher of this weblog), will digg.com increase my readership?


You bet cha!


As an experiment, I put a Digg It button on my earlier blog entries which I think are still of value today. It increased the number of page impressions on my site about 100 times the first day, and about 30 times the second day. That is the dream of a blogger, isn't it? So, digging is here to stay for me.


And of course, if you like this article or any of my earlier ones, digg it.






Monday, September 04, 2006

Fond of Good-looking Fonts

I'd highly recommend this excellent article on Linux fonts. It is a rather comprehensive treatment on how to use fonts on Linux. Some history, some theory, and some good practical how-to advice on using the Linux fonts. Enjoy!

Thursday, August 31, 2006

My Job Went to India, and all I got was this .....


Now that I have your attention ....

Actually, my job did NOT go to India. I am still happily employed by Elastic Path Software. The company and I are both doing quite well, thank you very much.

The title is actually the name of a book I read recently, "My job went to India : and all I got was this lousy book. (52 ways to save your job)"

It is old news that I.T. jobs have been steadily outsourced to off-shore development centers, India being one of the biggest. As North-American developers, what does our future hold? Do we have a future? How can we compete with the lower-cost alternatives from a developing country?

This book offers some excellent observations and practical advice from the perspective of an American geek who spent a year in India to set up and staff a development center there.

This book is organized into 52 chapters, each a vocational tip. The overall theme is that our skills are like a product that we are selling to our employers. As a product, we need to know the market conditions such as the supply and demand for our product, and to constantly look out for signs of change and opportunities. What are our unique selling propositions that our Indian developers could not match?

I was captivated by the insights that the author had on the Indian I.T. industry, and its workers, especially in the early chapters. The later chapters I found to be street-smart common sense that is applicable to any I.T. career whether it is under outsourcing pressure or not.

You won't find in this book the answer to questions such as "Which specific programming language should I be learning?" or "Which operating system should I be mastering?". However, it will offer some general but practical principles. Say, if you have 10 hours of "play time" a week, how do you decide what to learn?

Simply put, this book offers some really good vocational advice for geeks.





Friday, March 17, 2006

I needed a better ftp client .....

For quite some time now, if I ever needed to copy files between 2 machines, I would use ssh. A recent work-related project required that I ftp a directory of finished web pages to a web site. I summarized my experience of choosing and using a ftp client more powerful than the standard ftp command in an article I submitted to linux.com. The ftp client I used was ncftp, and my experience report is here.



You can also glean from the feedback to the article some alternative tools to investigate.






Thursday, January 19, 2006

Say GoodBye to those browser Ads

If you hear yourselves swearing at those darn pop-up ads that always cover the part of the browser that you want to read, swear no more. The good news is that you can get rid of that ad once and for all. First, you need to be using Firefox (or Mozilla) as your browser.

Next, download this Firefox extension: AdBlock. It is a criticial part of my arsenal to fight the evil pop-up ads.

In a nutshell, AdBlock lets me specify what ads to filter out in a web page.

When you see an ad on a web page (or Flash plugin, say) that you don't want to ever see again, click the AdBlock tab along the top (or sometimes bottom) of the ad.

The URL for that offensive ad appears in the ensuing dialog box. You can use that as the filter, or replace it with a more general regular expression, e.g., "http://ad.ca.doubleclick.net/*".

Rest assured that Adblock is on your side in the war against unwanted ads !!




Tuesday, January 17, 2006

Mousing Around Cordlessly

Late last year, I was handed a gift - a Logitech Wireless USB mouse. Not quite sure why I would want to install it - I had a PS2 mouse, and was perfectly happy with that rodent.

Finally, today, I decided I had to do something with it (if nothing else, just to clear some more desk space). I would install the wireless mouse on my Debian Sarge machine. Of course, the box came with a install CD that supports only Windows and Mac OS X.

So, I googled around to see how I should install a cordless mouse under Linux (Debian).

It turned out to be rather easy. Essentially, you need to reconfigure your X-Window to use the new mouse.


  1. While the computer is powered down: disconnect the existing PS2 mouse, and connect the cordless mouse receiver to a USB port.

    Interesting how it claims to be cordless when I could see a nice long cord hanging from the receiver!!

  2. Power on your Debian Sarge computer. The X-Window Login screen appears.
  3. Hit the Cntrl-Alt-F1 to get a command login prompt. It would be a major inconvenience to have to login and operate in X without a mouse.
  4. Login as root.
  5. dpkg-reconfigure xserver-xfree86

    When prompted, select this USB mouse type: "/dev/input/mice"

  6. Restart X.

    What I did was hit Cntrl-Alt-F7 to go to the existing X login screen. Then, I hit Cntrl-Alt-Backspace to kill the X process and start a new one.

  7. The X login screen should re-appear.
  8. Don't forget to press the Connect button on both the receiver and the wireless mouse.

"Simple. Less Clutter. More freedom. Eliminate tangled mouse cords." So claimed the Logitech box.

Simple? Maybe.

Less Clutter? Do the math: 1 receiver + 1 mouse = 2. Can someone tell me how it could be less?

More freedom. Sure, but don't forget to replace the AA batteries when they run out.

Eliminate tangled mouse cords. Absolutely. But just don't tangle up the receiver cord which to me is just as long if not longer.




Saturday, January 14, 2006

Top 100 News feeds

More time on hand than you can kill?

Look no further.

Here is a list of the top 100 most-subscribed newsfeeds.

Click here

Friday, January 06, 2006

Better Safe Than Sorry

When it comes to protecting data on our hard drives, most of us do some sort of regular back up. What usually gets backed up? Perhaps, the important data on your disks that you can't afford to lose. That is a good starting point, but it is NOT enough. Besides the data itself, do you back up your primary partition table?

The partition table is located in the disk's very first sector, known as the Master Boot Record or MBR. The entries in the partition table specify (among other things) the starting and ending CHS (cylinder, head, sector) of the partition.

The MBR has a total length of 512 bytes. Within the MBR, the partition table consists of 4 entries of 16 bytes each, with a sum of 64 bytes.

Why is the partition table important enough to backup? If your MBR has a damaged partition table, your Windows system may not boot.

Believe me this: partition tables do get clobbered (seemingly more often if you run Windows according to my own experience). When it happens, you can try repairing it or simply restore it from a backup copy if you happen to take heed of my advice here.

To repair the partition table, you need to know its original configuration. If you are caught without a backup of your MBR, you can try using a program called gpart (available on Linux) to "guess" the proper configuration of the partition table.

You wish you had backed it up. I will explain how that is done below.

The Linux command to use is dd which basically makes disk images. If your system runs Windows , you can get a Linux Live CD (ubuntu, Knoppix are good choices) in order to run the exact same commands as below but save it to a floppy drive.

The command to save the MBR (including the partition table) is:

dd if=/dev/hda of=/some/location bs=512 count=1

Note: Substitute /dev/hda with the particular hard drive in your case. Also substitute /some/location to where you want to store the back up. The total size is 512 bytes, so it fits on a floppy disk.

To restore MBR:
dd if=/some/location of=/dev/hda bs=512 count=1

To restore primary partition table only (without overwriting entire MBR):
dd if=/some/location of=/dev/hda bs=1 count=64 skip=446 seek=446

It happens to all of us ... eventually. So, back it up before the next disaster strikes.




Wednesday, December 28, 2005

Skype Video

I have been using Skype 1 for quite some time for my Voice over IP requirements. Skype 1 is supposed to work on multiple platforms (Windows & Linux). However, I mainly used it on Windows. I tried to install it on Debian Sarge (Linux)and gave up. (Skype on Linux is an OSS application, and is not ALSA-compliant yet.)

I have a Skype story to tell. I was on a business trip to Manila, Phillipines earlier this year. I stayed in a nice hotel. I paid for the Internet surcharge, and was able to get on the Internet. I wanted to call home, and I did not want to incur the ridiculous hotel rate of making long distance overseas phone calls.

I tried to use skype, but my family members were not near the computer at the time. So, I tried to use skype out

Skype Out is a feature that lets you dial out to regular telephone numbers. So, if my wife was home (and she was), she would pick up. It is a PAID feature: you must buy on-line a fixed amount of pre-paid credit. So, I started the surprisingly ardouus on-line process of setup (or more accurately, pay-up). I was eager enough to talk to my wife that I even divulged my credit card number. But, near the end of the process, it asked me to fax in a cancelled cheque. That was the last straw. I did not have a cancelled cheque with me (who would bring a personal cheque with them on a business trip?).

My points are 2: Skype Out is a much cheaper alternative to hotel calling if you were wise enough to set it up while at home; and, why do they have to make it so difficult to set it up?

Now, a beta version of Skype 2 was released recently. It is Skype 1 with Video. It is Windows only. So, I tried to install it on my Win 2003 machine. I guess I did not pay enough attention: Skype 2 is supported on Windows XP only. So, I am out of luck here: not supported on my 2 current machines (Debian Sarge and W2K3).

If you have tried out Skype 2, please let me know what you think.

Tuesday, December 27, 2005

Firefox 1.5

If you haven't heard already, Firefox 1.5 is out.

So, I upgraded from 1.0 to 1.5. Overall, the upgrade was very smooth. But, you do have to be aware of the extensions. More specifically, not all 1.0 extensions will run on 1.5. In my own experience, I had 10 extensions on Firefox 1.0. Eight of them runs on 1.5 when I did the upgrade(the 2 that did not upgrade marked in Red).


  • DOM Inspector
  • Paste & Go
  • Ad Block
  • Linkification
  • In form Enter
  • IE View
  • Tab Browser Preferences
  • Tab Mix Plus
  • Nuke Anything Enhanced 0.51
  • LeechGet Mozilla Menu Extension 0.6.1


The upgrade program will actually warn you about the extensions that won't upgrade. It would just mark them but not delete them from the list. That is good because a couple of weeks later, I revisited the list, and noticed that an upgrade is available for LeechGet Mozillan Menu Extension (0.7.1), and lo and behold, it does support Firefox release 1.5.

9 out of 10 is pretty good. But if you absolutely cannot live without certain extension, just make sure that it supports 1.5 before you do the upgrade.

Monday, December 26, 2005

Red Hat Off

I have always used the Red Hat Linux distribution; the last Redhat version I used being RedHat Enterprise Linux release 2.

Recently, as my blog attests, I tried the ubuntu Linux LiveCD version. That was my first foray into non-RedHat Linux. The LiveCD system runs a little too slow for me to be useful in day-to-day operations. To be fair, it did warn me about performance, and my machine only had 256M memory at the time. But, I liked it enough that when it came time to build a Linux system, I chose Debian Sarge (ubuntu is based on Debian).

I installed Debian Sarge on a brand new system. I chose the floppy disk install medium due to necessity. No access to CD-burner at the time. The floppy disk method worked. If you had previously installed any Linux distribution, you probably would have no problem installing Debian Sarge.

I have an observation about Debian Sarge. The base install actually installed the very minimum packages. The Debian installer does not let you choose the packages that you want install. You will want to subsequently install any additional packages that you need after the base install. Contrast that with the RedHat I used(Release 6-9), where you can choose what modules to install during the install process. However, with RedHat, I normally would just install all any way.

To install additional packages on Sarge, you use the apt-get (command-line) or Synaptic (GUI). The Synaptic program is just EXCELLENT. It handles all dependencies for you. You can search for packages easily. It is so good that I may just have to write about it in future blog entries.

In fact, I would say that the Debian package manager system is one feature that would keep me from going back to use RedHat.

Wednesday, September 07, 2005

Clean Download Managers

Earlier, I discussed the download manager I use on Windows, namely LeechGet. Since then, I have been looking for a good Linux download manager.

In my research, I came across this web page that reviews the different software out there. Not all are freeware though; some shareware. The review was done with a strong emphasis on being clean: free of adware/spyware. After all, the review was done by the same people who gave you Spybot Search & Destroy, a very popular privacy software package.

If you are looking for a download manager you should definitely read this. If you already have one, you may still want to check it out to see if what you are using is clean.

What the article recommends is LeechGet, followed by Download Express. Unfortunately, both are Windows Only. I want one that runs on Linux.

Perhaps, I will use WGET which is a great command line tool that runs on both Linux/Windows.

Click here to see review.

Thursday, September 01, 2005

Still some More Google Hacks

In a previous blog entry, I introduced 2 Google advanced operators, (aka hacks) site:, and inurl:
I use those 2 hacks quite a bit to quickly find what I want via Google.

There are 2 more hacks that may come in handy. intitle: and filetype:

intitle: specifies keywords that you want included in the title of a web page.

filetype: defines the specific file extension, e.g., filetype:php will only return documents that have the file extension of php.

You can mix the hacks in a query, e.g.,

inurl:softwarejourney filetype:html

You can use boolean operators to narrow your search, e.g., use the not operator ("-"). E.g., -filetype:php

May you find what you are looking for.




Wednesday, August 31, 2005

Wireless Network Security Tips

I don't operate a wireless network. But, recently, I've taken some interest in wireless network security. After doing some research, I've compiled a list of TO-DOs for better securing a wi-fi network.


  • If you have not done it already, change the default SSID for the wireless base stations (Access Points).
  • Turn off auto SSID broadcast from your base stations.
  • Make sure that WEP encryption is turned on (many base stations leave it off to improve throughput)
  • Change the WEP key periodically, if feasible (not too many wireless devices)
  • Restrict access to wireless network using the network cards' MAC address. This means you need to manually enter the MAC address of each network card into your base station.
  • Change the default IP subnet that your base station is preset to (192.168.1.0).
  • Disable the DHCP IP address generation feature of your wireless base station.
  • Build a firewall between the wireless network and your trusted intranet.
  • Turn off administrative access over wireless if possible.
  • Upgrade your wireless network encryption to WPA/TKIP. This may require some geek help.

A portion of the above list comes from this article.

Tuesday, August 30, 2005

Flash Plugin Trouble at Ubuntu LiveCD

I've been booting my PC using the ubuntu LiveCD for the last couple of days. I'll spare you the pain of why, suffice to say I am experiencing a fallout from a Windows problem.

My experience with ubuntu during this trying time is that it did what I wanted to do. I used it check my webmail, and access the Web using Firefox. I was able to access my NTFS files (albeit read-only, but this is a more Linux issue rather than ubuntu-specific).

One problem was that I could not install the Flash plugin for the Firefox browser (1.02). The most obvious (easiest) way did not work: Clicking on the download plugin link on the web site which has flash movies on it.

Then, I started a rather long journey of finding out how. Along the way, I found 2 useful references for general information about ubuntu:


It looked to me that I needed to install some flashplugin-nonfree directly from some ubuntu universe repositary. To do that, I need to first add that repositary to the package manager. This I could not do after some effort of following instructions given in the above links.

At this time, I gave up, and decided to fix my original problem that led me to use the livecd.

Monday, August 29, 2005

Tabbed Browsing with Firefox

A highly touted feature of the Firefox browsing is tabbed browsing. Basically, tabs allow you to open multiple web pages, each in a different tab. All these web pages are live. You can achieve all this of course with multiple browser windows. But the effort to manage these windows can be painful.

If you are a novice Firefox user, you may wonder where you can find these tabs. When you have only one web page open (such as when you open the browser), no tab bar (or tab) is visible because there is only one tab open.

At this point, if you want to open another web page in a separate tab, you can do a File/New Tab. And then, open the web page, and drag and drop it onto the tab bar.

What I suggest you do is change the value of a Firefox parameter, which will make the tab bar visible all the time (even when only 1 tab is open).

Simply go to Preferences/Advanced/Tabbed Browsing and uncheck the Hide the tab bar when only one web site is open box. With the tab bar open at all times, you can drag & drop a web page onto the bar.

Another bonus of tabbed browsing is that it is now possible to have multiple home pages. To do that, go to the Preferences window (Tools/Options on Windows, Edit/Preferences on Linux), select the General panel, and type the URLs, each separated by a pipe character (|), in the Home Page box. For example, http://softwarejourney.blogspot.com|http://www.google.com/

If you are an IE 6 user, you will find this tab feature useful. but then of course, you can wait until Microsoft releases IE 7 for your platform (Win XP or Win 2003) which will also have the tab feature.

Saturday, August 27, 2005

Latest Buzzword: Podcasting

You probably won't find the word podcasting in your printed dictionary. It is a word made up of 2 words iPod and broadcasting (not that you can find IPod in your printed dictionary either).

It is simply the syndicated broadcasting of MP3 files over the web. Think of RSS feeds except substitute text with audio files. Instead of reading about say your commentator on Open Source Software, you will just hear an audio recording, assuming of course that the commentator provides the podcast.

By the way, you don't need to own an IPod to try podcasting. I don't for sure. Most podcasting clients can download directly to iPods. You can also play back those audio files on your computer.

What does it do for you and I? For me, not much. I generally prefer reading over listening for various reasons: it is faster, I can better scan and screen it, etc. I guess I am just a reading type of guy. I also find that again in general to write something requires more mental/cognitive organization than speaking, and so in theory, the result should be of higher quality. Of course, there are exceptions, but then I could screen them out much faster with newsfeeds, can't I?

I did try podcasting out, though. I was curious if and how well Bottomfeeder, my news aggregator supports podcast feeds. It should, because podcast is just another RSS feed with a MP3 file attached.

In fact, it does support it. You add the podcast to bottomfeeder just like you would add any news feed. To listen to the audio, just double click on the MP3 file link under Enclosures.

If you really want a more podcast-specific tool, I heard jPodder is good. It is cross-platform (Linux & Windows). It is a Java tool, so you need Java installed on your PC.

Friday, August 26, 2005

More Google Hacks

A few days ago, I mentioned an advanced Google search operator site: as in site:softwarejourney.blogspot.com. You use the site: operator to match against the domain and the host name. The site: operator does not support port numbers, e.g., www.somesite.com:8080. Also, it will not match the directory or the file name. For those kinds of searches, you need another operator/hack, inurl:.

The inurl: operator will try to match the thing you specify against the characters anywhere along the url, including the port #, the directory, and the filename. For example, if you enter inurl:blog, you may get these results back:


www.somedomain.org/blog/
www.blogger.com/
www.peterleung.com/somedir/blog.html

The inurl: operator comes in handy when you know a keyword is in the url (perhaps, even the filename), but the keyword may not be in the title or the body of the HTML document.

Google has become an indispensable tool in my live (and perhaps yours too), and getting more proficient at Google shouldn't hurt.