Wednesday, January 31, 2007

Print Unix File Timestamp Accurate Down to Seconds

As most of us know and need, ls -l shows us detailed information about files in a directory.

someone@somewhere:/opt/mozilla/icons $ ls -l
total 32
-rw-r--r-- 1 bin bin 1668 Mar 5 2004 mozicon16.xpm
-rw-r--r-- 1 bin bin 2944 Mar 5 2004 mozicon50.xpm

Here is a single perl command that can print the timestamp of files with full date and time, accurate down to the seconds:

perl -e 'foreach(@ARGV){$t =localtime ( ( ( stat ( $_ ) ) [9] ) ); printf("%-20s %s\n",$_,$t);}' *

Replace the asterisk at the end of the command with any filename or wildcard expression you require.

Technorati Tags: , , , , , ,

Wednesday, January 24, 2007

Tattoo RFID

Bill Ray reported on The Register in January 2007 that a Saint Louis company known as Somark Innovations has successfully tested a new kind of radio frequency identification (RFID) medium. An identification number can be stored in a tattoo that is injected from an array of needles onto animals such as cows, mice and rats.

The RFID's number can then be read from more than a meter away using a proprietary high frequency reader.

Existing tags are either expensive or can be torn out from animals.

Somark's next market after animals will be to identify military personnel, meaning the tattoo also works on humans.

Again as evidenced, the last days are truly here.

"And it puts under compulsion all persons, the small and the great, and the rich and the poor, and the free and the slaves, that they should give these a mark in their right hand or upon their forehead, and that nobody might be able to buy or sell except a person having the mark, the name of the wild beast or the number of its name. Here is where wisdom comes in: Let the one that has intelligence calculate the number of the wild beast, for it is a man’s number; and its number is six hundred and sixty-six." - Revelation 13:16-18, New World Translation of the Holy Scriptures

Links:

The Register - Cattle branding comes to the 21st Century: High-tech tattoo more than a pretty picture
<URL:http://www.theregister.co.uk/2007/01/16/rfid_tattoo/>

Tuesday, January 23, 2007

Movie Review: The Illusionist

Set in the Victorian era and based on the Austrian royal monarchy, The Illusionist is a love story with a magical spine.

Eisenheim and Sophie are childhood romantics who meet much later in years in Vienna from when they were seperated. Eisenheim has since travelled much and learnt much magic. Sophie herself, being locked in high society, is destined to be married to the Crown Prince Leopold, who is a cunning and proud man.

When the young lovers meet once more, they desire to elope, despite the growing pressure to stop them from being together by the jealous Leopold and his power-hungry and relentless Chief Inspector Uhl.

Eisenheim prepares for his ultimate illusion which causes tongues to wag and heads to roll. Will the Inspector be able to expose him for his crowd-pulling tricks, or will the Crown Prince successfully destroy the lovers' plans?

The Illusionist will be scrutinized as he attempts to shock his audience one last time.

Keeping in mind magic is about illusion, watch the movie with an open mind and I recommend not to spend effort trying to explain the tricks like what the Crown Prince did. Watch the details and the not-so-subtle one liners which make up for a highly-excusable ending.

Paul Giamatti who plays the Chief Inspector has impressed me with his ability to veer away from his trademark stuttering and introverted speech manner and delivered a credible performance as a stressed-out and suspicious investigator. The magician is played by Edward Norton, is not in unfamiliar acting requirements as he continues his stern and smirk countenance. True to the character though, but he did forgot his English accent in one line when Sophie in the horse carriage.

Edward Norton, Paul Giamatti and Jessica Biel star in this understated but adequately entertaining movie. I haven't seen "the other magician movie" yet, but I think it should be better for my tastes.

Links:

IMDb - The Illusionist (2006)
<URL:http://www.imdb.com/title/tt0443543/>

Technorati Tags: , , , , , , ,

Thursday, January 11, 2007

Roomba Dance Repair and Bumper Upgrade

Two significant news of my trusty vacuum assistant, Roomba. Nevertheless, he still serves me well and faithfully. The battery runtime seems to have shortened, but that is a post for another day.

Bumper Upgrade

I have two pieces of furniture which have just the height for Roomba to wedge itself under them. The clearance is not low enough for Roomba to knock into and avoid going in, but it is high enough to make me squirm as my Roomba grinds a bit to get out.

Broken plastic bracket
Broken plastic bracket for rubber wheels

This is the possible cause of a broken plastic bracket that holds the axle of one rubber wheel in place. There are also black scratch marks on the white shell of the machine, caused by the regular confrontation with my furniture.

Bumper upgrade
Bumper upgrade with rubber pads

The simple but aesthetically-deprived upgrade is to add square rubber pads around the bumper.

I used masking tape to hold the rubber pads in place, which I reckon will hold for a few months before they tear off. I guess rubber or sponge tape lining the same place will also work, but they should be at least 5mm thick. I wouldn't recommend placing more pads at the vertical face of the bumper which increases the clearance between the machine and the edge of walls and furniture.

The pads are positioned on the bumper such that they face 45 degrees upwards. After the first few runs, I can see pressure marks where the bottom edge of my furniture hit Roomba. Feels so good...

The result is no more hard bumping into these furniture and heart-wrenching grinding to navigate at the edges.



Roomba Dance Repair

The Roomba Dance (RD), or Circle Dance, is a common problem for Roombas more than a year old or used in very dirty environments. The basic cause is dirt that affects sensors at the bumper or the rubber wheels which results in a "dance" sequence. The machine would jerk as it moves forward and rotates 180 degrees continuously.

Insides of the Roomba
Insides of the Roomba, bumper and shell removed

Referring to the well-presented guide to fix this problem, I managed to open up and examine the insides of my Roomba. Of course, doing this is not easy and may void the product warranty. If you want to try this, I recommend that you clean the sensors under the bumper that detects cliffs and see if this solves your RD.

In addition to the instructions at the above site, I recommend to print the image of the type of screws at every location so that it is easier for you to put them back in. Prepare the following items as well:
  1. Vacuum cleaner with a half-inch wide mouth to reach narrow gaps of the Roomba
  2. Damp cloth to wipe off fine dust from the surface
  3. Small pliers or flat tip screwdriver to disconnect two ribbon cable connectors between the chassis, bumper and shell
The places which I find the most amount of dirt and dust are inside the two brushes, in the corner where the power socket is located and the opposite corner. This is also a good opportunity to apply lubricating oil to the internal gears of the two rubber wheels, wheel motors, and brush motor.

Bumper interior
The side of the bumper where the side sensors are needs cleaning

All three motors have holes cut on their sides. It's obvious dirt will accumulate inside the motor via these holes, but I'm not sure if it is acceptable to cover them with some tape. Perhaps they may overheat if we do that. Comment here if you have good info on this.

Top view of rubber wheel
Top view of rubber wheel

Motor for main brushes
Motor for main brushes

Electronics and battery area
Electronics and battery area is particularly dirty

Links:

mysteryroad.blogs.com - FixCircleDanceImproved
<URL:http://mysteryroad.blogs.com/photos/fixthecircledance/xintroroomba_3549.html>

Technorati Tags: , , , ,

Friday, January 05, 2007

Five Search Engines Old Timers Should Know

In the years before Google was anything but a simple colourful page, there were several legacy search engines still crawling the young and delicate Internet (or ARPANET). For those of you who first got online with a dial-up modem more than ten years ago, you should know these five common search engines back then.

1. Altavista

Old Timer Search Engine Altavista

Has always been so minimalistic in design and returns useful results consistently. One nifty app that I still use for fun and research is the Babelfish (a nod to Douglas Adams fans).

2. WebCrawler

Old Timer Search Engine WebCrawler

My second favourite search engine after Altavista. Its results are presented in a pleasant format.

3. Lycos

Old Timer Search Engine Lycos

Lycos was probably the first search engine with lots of news links and little applications that Google is so well known for now.

4. Excite

Old Timer Search Engine Excite

Excite's design hasn't changed much since the beginning: just as messy. The results are quite accurate though.

5. Netscape

Old Timer Search Engine Netscape

The darling of the early Web. Old timers were surfing using Netscape betas, cool! Back then, nobody heard of Internet Explorer, just Mozilla and mostly lynx (ahh beauty).

In another year, Google would be ten years old anyway.

Links:

Wikipedia - Advanced Research Projects Agency Network
<URL:http://en.wikipedia.org/wiki/ARPANET>

Search Engine Watch - Where Are They Now? Search Engines We've Known & Loved
<URL:http://searchenginewatch.com/showPage.html?page=2175241>

Technorati Tags: , , , , ,

BorderWare MXtreme: E-mail Firewall Antispam Product

Sponsored Post

Sample image spam

Is this a familiar sight in your mailbox these days?

A relatively new breed of e-mail spam is becoming prevalent where the e-mail contains an image with the advertisement text and graphics inside. Traditional text-based anti-spam software is useless against such spam because the e-mail will not contain any searchable text at all. It is estimated that image spam now accounts for 35% of all spam.

BorderWare, a messaging security solutions provider, has a product called BorderWare MXtreme, which is an advanced anti image spam system. Check out the product information here.

In addition to the usual optical character recognition technology that can be used on the image spam, MXtreme has a patent-pending technology called Intercept Image Analysis. This performs image classification and more than thirty image attribute processing, such as word salads, random speckling, image manupilation, animated GIF, various colouration and fonts.

As a result, BorderWare's anti-spam solution can detect 98% of all spam on the e-mail servers. If you are in the IS department and looking for a better anti-spam product, check out BorderWare MXtreme today.


Technorati Tags: , , , ,

New Tech News Blog: The Tech Planet

Being a techie/geeky guy who still enjoys toys for big boys and the latest technological advancements, I'm always on the lookout for technology news on the web. Recently, I've come across a blog-style site that covers technology, trends, software and web services. Check out The Tech Planet.

The posts are concise and just the right size for quick digestion, so it's worth adding to your RSS reader. Posts also contain photos of the subject, making it easier to browse topics of interest.

It's fairly new (from December 2006), but I think it suits techie people like myself and complements the topics on my own blog. For example, the post on "Honda readys fuel-cell car for 2018" talks about when Honda plans to offer a hydrogen fuel-cell powered car in ten years' time. Author Michael Paul says that the timeline and sale price are off the mark and I agree with him. With rising fuel costs and world climate, we need alternative fuel vehicles within the next few years.

Go visit The Tech Planet today to get a quick dose of technology news that makes you stand out from the general population. :)

Technorati Tags: , , , , , ,

Thursday, January 04, 2007

Google Reader Trends

Google Reader (GR), a web-based RSS reader, which I use to read my subscription feeds from various sources, has added the ability to view your reading trends. As you browse through your feeds and view pages, Google Reader tracks your usage and counts the readership rates.

Explore Google Reader by signing up for a Google account, if you haven't already done so. Then, go to GR and click on the "Trends" link in the middle of the page. The GR team hasn't yet added a link on the left sidebar to the "Trends" page, so click on the "Home" link if you can't find it.

The page is organized into five sections: a summary, graphs, reading trends, subscription trends, and a tags cloud.


Google Reader Trends page

At the top left side, you will find a summary of what you have been reading in your subscriptions. A rough indication of how scholarly you are. :)


Summary of my usage. Yes, quite a bit of reading.

The next three screenshots show my usage patterns over 30 days, a week, and hours of a day. Like most white-collar lemmings, I'm not particularly active online during the weekends, especially over the recent year-end holidays (5 days!).

On a typical 24-hour period, I tend to read mostly during mid-afternoon and quite a bit around midnight.


Last 30 days graph


Day of the week graph


Time of day graph

I don't actually read all posts, especially Bloggingstocks.com and Digg. More than half of them I skim over the title and just that bit of information is digested.

The reading and subscription trends show how complete I go through each subscription. Most of them are 100%, because my style of reading is to decide on-the-stop whether the post is worth reading or I should mark it as read immediately. Therefore, what I have left unmarked are all unread.

Go try out GR Trends and see how well fed you are on the web. Or is it watch what and how you eat?

Links:

Google Reader
<URL:http://www.google.com/reader>

Technorati Tags: , , , ,

Site Traffic Analysis for Q4 2006

lokety.com

My personal website, lokety.com, typically has an average of 83 pageviews per day for Q4 2006. I track and analyze my sites using Google Analytics, which has pretty cool and useful statistics. There are two spikes over this period:




DatePageviewsUnique Visitors
6 November 200671336
2 January 200717448

Date range: 1 Nov 2006 to 3 Jan 2007
Date range: 1 Nov 2006 to 3 Jan 2007

The first spike is probably when I was testing a http-refresh page which shows random funny/witty quotes. More than 600 hits were to this page. It is meant to be displayed at the bottom of the splash page. Click here to view it. Since then, I've reduced the refresh frequency.

Date range: 4 Dec 2006 to 3 Jan 2007
Date range: 4 Dec 2006 to 3 Jan 2007

The second spike shows how visitors like to come back to surfing my site after a long holiday period. As usual, the MechWarrior 2 Infopage came out tops, contributing to 44% of the 174 hits that day. The Myst and Riven Infopage placed second with about 13% share.

Date: 2 Jan 2007
Date: 2 Jan 2007

Based on 337 search keywords used in December 2006, the following are the top three:
  1. mechwarrior
  2. singapore
  3. t28
In the same month, Mozilla Firefox accounts for 26.4% of the browsers surfers use, while Microsoft Internet Explorer has 61.1%.

glob.lokety.com

The ultra-hip blog site has had 3 significant moments in the past quarter. The record 36 pageviews occurred on 13 December 2006.

Date range: 1 Oct 2006 to 3 Jan 2007
Date range: 1 Oct 2006 to 3 Jan 2007

I think they have something to do with the top 3 posts and search keywords:
  1. Google Finance Website Revamped
  2. Cell Therapeutics To Submit New XYOTAX Drug Trial to FDA
  3. Secure and Convenient Keyless Door Locks
  1. malaysia
  2. medklinn
  3. ctic
Much thanks go out to the PayPerPost forum and WebProNews for their links. They helped my blog to reach almost 6 pageviews per day for Q4. Yay.

Gabriel's Journal

My son's blog has not seen more visitors, especially after the migration from the old domain name to gabriel-loke.blogspot.com. The average pageviews per day is 2.95.

Date range: 1 Oct 2006 to 3 Jan 2007
Date range: 1 Oct 2006 to 3 Jan 2007

I appreciate the distant visitor from Hawaii, who must have made extra effort to find my boy's blog. Please do come again. :)

Date range: 1 Oct 2006 to 3 Jan 2007
Date range: 1 Oct 2006 to 3 Jan 2007

Of the 266 pageviews, 187 of them or 70.3% landed on the index page. It will be a challenge to encourage these surfers to be interested to read more than the first two posts.

Technorati Tags: , , , , , ,