2008-11-01

ExifTool: It really saved my day

Problem 1: My Coolpix has the year set to 2009, and we took close to a hundred pictures before we realized the error.

Problem 2: This is really a Canon vs Nikon thing. I like my Nikon camera but I like the Canon software better which creates folders according to the picture creation date. If the Canon software would just download data from a Nikon camera, this wouldn't be problem.

So today I discovered ExifTool, installed in on MacBook and voila! Windows users have to install Perl first.

Of course, first you have to navigate to the folder containing the pictures.

To solve problem #1, give this command.


exiftool "-AllDates-=1:: 0" *.jpg


To solve problem 2, give this command:

exiftool -d %Y_%m_%d "-directory<datetimeoriginal" jpg="">

2008-08-09

My Predictions for Nikon D80 Replacement

If D80 is the little brother of D200, then D90 should be the little sister D300. The D90 should take the best features of D300 and placed in a cheaper and smaller package. Let's see if my predictions come true...

If the D80 sensor come from the D200, it follows that the D90 should use the D300's sensor.













NameD300D80D90
Sensor12.3 MP CMOS10 MP CCD12.3 MP CMOS
Self-cleaning sensorYesNoYes
Movie modeNoNoYes
MicrophoneYesNoYes
Focus Points519
9
Live ViewYesNoYes
StorageCFSDSD
HDMI outYesNoYes

2008-03-25

Master's Project Proposal Evaluation

Just evaluated 3 students this morning. As usual, this is the time to learn a few things.
  • Shashiteren with "Traffic Congestion Monitoring Base on Automated Vision System". Proposal for a C++ PC-based system to give a grade of light, medium or heavy traffic congestion. Camera faces the traffic junction. Includes counting of vehicles but may not work if vehicles are occluded by a big truck. Recommend that he place the camera at the back of the junction instead.
  • Muhammad Amir As'ari with "Cyclist Dearly Detection Using Automated Vision System". Uses night vision camera to detect illegal biker and give a warning if the number of bikers gathering at a location exceeds 5. First of all, the term "cyclist" means "a person who rides a bicycle". Next, the type of camera makes a difference. An infra-red camera will cause a bike to give a different shape than from an visible light camera.
  • Yew Foong Ching with "Real-Time PC-Based 2D Barcode Reader". Uses a camera to decode PDF417 2D barcode. She has a few barcode image which needs to be rotated, done manually with IrfanView. So far, the rotated barcode cannot be decoded with the available decoding software. If manual doesn't work, automatic is harder.

2008-02-25

68HC000 Based Board

Wichit Sirichote have designed a board using 68HC000 and runs embedded Linux. It uses Atmel 29C040 1MB flash, HM62851 1M SRAM and Xilinx XC9536 for glue logic.



Links:

2008-02-17

First Couple of Weeks of CocoaRuby

or Ruby-Cocoa for that matter.

Cocoa is the default framework for writing applications for Mac OS X, and the default language for Mac OS X development is Objective-C. Ruby is the latest programming language that is taking the programming community by storm. On one hand, Objective-C offers the best performance for Mac applications. On the other hand, Ruby wins in terms of programming productivity hands down. Just look at the number of blog posts on Ruby-on-Rails.

The Cocoa-Ruby bridge offers programmers who are comfortable - not necessarily very fluent - in both Objective-C and Ruby the productivity gains of using Ruby for creating Mac applications. Yes, you do have to know the Cocoa API, too.

It turns out Cocoa-Ruby is preinstalled in the Xcode3 that comes Developer Tools for Leopard. The default Xcode2 in Tiger does not support Ruby. I had the impression a Leopard migration was necessary to do Ruby coding. Happily, I found out that I just had to download Xcode version 2.5 to perform Ruby coding under Tiger. I've downloaded and built a few Ruby Mac sample apps so far.

Now, to build my first "original" Ruby app...

2008-02-12

Verbose Mac Startup

URL: http://www.oreillynet.com/pub/h/348

Verbose booting shows you the actual process of Mac OS X's startup. You'll see drivers get loaded and services launch. You can get it by holding Command - V at boot time, which brings up the familiar white on black console.

If you'd prefer to always see the system messages on boot, you can adjust the firmware from the Terminal with the nvram command.

To turn on Verbose booting, at the Terminal type the following:

sudo nvram boot-args="-v"

Disabling Verbose mode:

sudo nvram boot-args=

And to see the current firmware nvram settings:

nvram -p

More info on the boot process here: http://www.kernelthread.com/mac/osx/arch_boot.html
and here: http://developer.apple.com/documentation/MacOSX/Conceptual/BPSystemStartup/Articles/BootProcess.html

More hints here: http://nosheep.net/story/mac-os-x-start-up-keys/ and here: http://docs.info.apple.com/article.html?artnum=106482

2008-02-03

Learning the ARM Processor

On the way back from Intel, Penang after conducting the second lecture in ARM processors.

The students presented their first assignment. All were successful in their attempt to make the LED blink on their ARM boards. To close the project, they are to upload to YouTube the steps taken in the assignment.

Five groups used the Olimex LPC2103 board sold by SparkFun of Hong Kong. One group used the LPC2149 board made in Thailand and sold by a company in Melaka. Four groups used the GNU toolchain and programmed their boards using USB-to-serial converters. These groups seems to have the least problems. Two groups used the Keil toolchain. No problems when presenting but they could not the same stack frame as the GNU toolchain. Two groups tried to used the JTAG port.

I covered ARM assembly language and stack frames. For the second assignment, they are to interface the ARM board with a passive circuit (LED, 7-seg display, pot, etc) and write the device driver in ARM assembler.

There was a Ruby Brigade meet on Friday but couldn't attend it. ;(

2008-01-22

Using wget to download a whole site

Found the following notes and I thought I want to try it.

Recursive options for wget.

wget -r -p -l 2 http://website.com


-r = wget recursively
-p = download all files (incl. images) necessary to render the html pages
-l 2 = descend maximum 2 levels (default is 5)

Another useful option is "-np" or "--no-parent". This will prevent wget from ascending to the parent directory, such as when you want to download

http://website.com/subdirectory
but not everything on

http://website.com

So here goes my attempt to download the whole Quran recited by Muhammad Ayyoub:

wget -r -p -l 2 http://www.versebyversequran.com/data/Muhammad_Ayyoub_128kbps/

The above method downloads everything! To keep just the MP3 files:

wget -r -l1 --no-parent -A.mp3 http://www.versebyversequran.com/data/Muhammad_Ayyoub_128kbps/

Seems to work. It's takes 24 hours just to get to Surah 26 on an 800 MHz G4 on static IP.

Vintage Comic Covers

curl -O "http://blog.wired.com/comiccovers/[1-13].jpg"

2008-01-21

Don't You Just Love This?

Error: Database connection failed.

It is possible that the database is overloaded or otherwise not running properly.

The site administrator should also check that the database details have been correctly specified in config.php



Never thought this would happen outside of Moodle but with ELGG it did! I couldn't get MySQL back up after restarting MacMini.

I'm still stuck. One possible solution is here:

http://diymacserver.com/2007/10/31/mysql-has-some-issues-with-leopard/

but it didn't solve the problem. Other people working on the problem:

http://bugs.mysql.com/bug.php?id=31889
http://www.robbyonrails.com/articles/2007/10/27/starting-mysql-after-upgrading-to-os-x-leopard

2008-01-18

Some Web 2.0 Links

For now, this blog is for listing links I find interesting.

MacBook Air

More articles appear on the Air. Anandtech describes the specially built Intel CPU. It's what you get when you enter a pact with the devil. Another article compares the Air with the Asus EEE PC.

2008-01-17

Managed to Install TikiWiki

Just for the fun of it, I installed a Wiki on my home server. After evaluating MediaWiki, DekiWiki, DokuWiki and TikiWiki, I settled on TikiWiki for the supposedly able to support blogging and collaboration. We'll wait and see.

But to get to the point of geting it working wasted a few hours of my time. MySQL and PHP was broken with Leopard. So I reinstalled MySQL with version 5.0.45 from mysql.com. The MySQL Preferences Pane doesn't work anymore in Leopard. Next, the PHP socket is different. Time to edit the /etc/php.ini file. Bah!

Let's see if TikiWiki works for me. I may try DokuWiki next. RefBase sure didn't work in Leopard.

Here is the comparison that made me just to TikiWiki: http://www.siteground.com/compare_best_wiki.htm

2008-01-14

Using the Canon S5 IS camera


IMG_1652, originally uploaded by PentiumSlayer.

Best picture I took so far.
Need to work on the bokeh.

2008-01-13

The Untold Story of the iPhone

Wired magazine has just posted a story on the iPhone.

Learning about Learning 2.0

Currently, I am in JW Marriott KL attending eLearning 2.0 (Web 2.0) conducted by Stephen Downes. It's always refreshing to get different viewpoints on things we think we already know.

The highlights:
  • Thou shalt blog.
  • Web 2.0 is the bomb.
Wow, a bombardment of new links:
Old links. Fresh view.

Steve's presence on the net