World War II: The Battle of Bataan/Bataan Death March – United States forces surrender on the Bataan Peninsula. The Japanese Navy launches an air raid on Trincomalee in Ceylon (Sri Lanka); Royal Navy aircraft carrier HMS Hermes and Royal Australian Navy Destroyer HMAS Vampire are sunk off the island’s east coast.
Author Archives: Marvin
AirPrint service file
<?xml version="1.0" ?>
<!DOCTYPE service-group SYSTEM 'avahi-service.dtd'>
<service-group>
<name replace-wildcards="yes">AirPrint DESKJET-1220C @ %h</name>
<service>
<type>_ipp._tcp</type>
<subtype>_universal._sub._ipp._tcp</subtype>
<port>631</port>
<txt-record>txtvers=1</txt-record>
<txt-record>qtotal=1</txt-record>
<txt-record>Transparent=T</txt-record>
<txt-record>URF=none</txt-record>
<txt-record>rp=printers/DESKJET-1220C</txt-record>
<txt-record>note=HEWLETT-PACKARD DESKJET 1220C</txt-record>
<txt-record>product=(GPL Ghostscript)</txt-record>
<txt-record>printer-state=3</txt-record>
<txt-record>printer-type=0x80b01c</txt-record>
<txt-record>pdl=application/octet-stream,application/pdf,application/postscript,image/gif,image/jpeg,image/png,image/tiff,text/html,text/plain,application/openofficeps,application/vnd.cups-banner,application/vnd.cups-pdf,application/vnd.cups-postscript</txt-record>
</service>
</service-group>
The Best Picasa for iPhone so far
Finally, I found an app for Picasa on iPhone that saves the entire EXIF data on upload. And has the tabs for showing the map from your iPhone as well. Here’s the excerpt from the publisher.
Piconhand – Picasa Web Albums On Your Hand for iPhone
Enjoy your Picasa web albums and photos on your hand!
Multiple accounts
You can see the albums of multiple accounts in one list
Batch upload
You can add multiple photos in the upload queue and also can preview. The time and geo info (if available) of photos is also included while uploading.
Slide show
You can set the songs in your iPod library as the background music of the slide show. And also can set the transition effect and time as you want.
Passcode lock
You can lock the app with password to protect your privacy.
Features
Multiple Picasa accounts
Create and delete albums
Share album links via email
Create and delete photos
Batch upload
Slide show
Passcode lock
Tag editing and browsing
EXIF available
Send photos via email or save photos in your library
Favorite photos
Sort option for album & photo list (can be set in separate by album)
Search photos in cache
Quality set for photos to be dowloaded/uploaded
Account filter for albums
High-res options for iPhone4/iPod 4th gen
Map view based on photo’s geotag
Album and photo property editing
Video stream from your iPhone
Here’s how you can do video streaming without pain on iPhone.
What you need are:
- iPhone 4 (not tested on 3G or 3Gs but probably will work)
- Justin.tv Account
- WiFi network with Internet
And here’s what you do
- Download and install Justin.TV for iPhone
- Run it and login with your account (gear icon on the upper right of Justin.TV on your iPhone)
- Click the camera icon on the upper left, then press ‘record’ button
That’s it! You can view your stream on your Justin.TV badger page – http://www.justin.tv/username
You do not only stream videos actually, they’re recorded. Your channel will list the previous streams right below your current stream. Here’s a link of the first stream I did, or the recorded stream.
And there’s also a Justin.TV for Android of course!
Ruby on Rails on Ubuntu 10.04 Lucid Lynx
Just need to keep this for reference. Quite important when playing around with RoR. Thanks to the source
marvin@marvinmarcelo:~$ su
marvin@marvinmarcelo:~$ apt-get install build-essential
marvin@marvinmarcelo:~$ apt-get install ruby rdoc libopenssl-ruby
marvin@marvinmarcelo:~$ wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
marvin@marvinmarcelo:~$ tar zxvf rubygems-1.3.7.tgz
marvin@marvinmarcelo:~$ cd rubygems-1.3.7
marvin@marvinmarcelo:~$ ruby setup.rb
marvin@marvinmarcelo:~$ ln -s /usr/bin/gem1.8 /usr/local/bin/gem
marvin@marvinmarcelo:~$ gem install rails
20KM PMS done
Gameloft – my new employer
Playing around with jQuery – prefill search input field with description
It’s been long since I made changes to my wordpress blog site, this is what happens when you have free time as a programmer.
So, I just realized the submit button on the search form on the header is not really important, I hid it now by simply display: hidden;. Then, some text might help to indicate that that form above is used for search.
Here’s the code
var changed = false;
$('#searchform #s')
.addClass('quiet').val('Search...')
.bind('change', function(){ if ( !changed ) { changed = true; } } )
.bind('focus', function(){ $(this).removeClass('quiet'); if ( !changed ) { $(this).val(''); } } )
.bind('blur', function(){ if ( !changed ) { $(this).val('Search...'); $(this).addClass('quiet'); } }
);
In wordpress, the search input field name is ‘s’, in case you find this helpful and want to use it, just replace the #searchform #s with your own selector. I might make this a plugin someday.
Back-end vs Front-end Dev
So which one is better?




