Wednesday, June 29, 2011

This is most advanced profile swithcer for #webOS device, truly powerful :) All you have to do is install Preware in your device, then search for Mode Switcher in it and install it. For Mode Switcher 2.x, you can add additional patches like:

Tuesday, June 21, 2011

This is just notes taken for personal use on which options used in tcpdump command:

# sudo tcpdump -i en0 -vvv -K -n -s 0 -w ~/Desktop/DumpFile.dmp

or without -K option:

# sudo tcpdump -i en0 -vvv -n -s 0 -w ~/Desktop/DumpFile.dmp

If you want to stop it from capturing, just press control-c. And to view the file:

# sudo tcpdump -s 0 -n -e -x -vvv -r ~/Desktop/DumpFile.dmp

Here's options explanation using in command above:
-i interface
-vvv even more verbose output
-K don't attempt to verify TCP, UDP and IP checksums
-n don't convert addressed to names
-s snaplen settings. setting snaplen to 0 means use the required length to catch whole packets
-w write the raw packets to file rather than parsing and printing them out
-x when parsing and printing, in addition to printing header of each packet, print the data of each packet (minus its link level header) in hex
-r read packets from file

Monday, June 20, 2011

When I'm using Windows Mobile (now Windows Phone), one of the software I used a lot is PIMBackup since I often testing ROMs, so I need to backup and restore my Contacts, Calendar and Messaging data. Once I have a need to view my backup data on PC, and there is a little workaround to do, so the backup files can be opened and view using spreadsheet application (Microsoft Excel, OpenOffice.org, LibreOffice, Numbers or anything else). Here's what you have to do:

1. When doing a backup, make sure "Binary Backup (faster)" option is uncheck
2. Do the backup, and you'll get .pib file
3. Move that .pib file to PC, open it using WinZip or any other extractor applications
4. There are several files in it (depends on which data you choose to backup: contact, calendar, sms, etc.)
5. Choose one files, e.g.: contacts_[backupdate].csc, rename it to .csv
6. Launch your spreadsheet application (I'm using Microsoft Excel), then open that contacts_[backupdate].csv file
7. There'll be popup Text Import Wizard window, choose "Delimited" for Original data type, press NEXT

8. And put semicolon (;) in Other for Delimiters, press FINISH

9. Your backup files will be presented neatly, separated in each column. Now you can edit or view it as you need.
10. Done! :)

If you already own a domain (or if you haven't), you can get free email features from Google Apps, and the steps if very simple.

1. Go to this link, input your domain name and click on Get Started
2. Follow the steps
3. When you finished, you'll be directed to your Google Apps dashboard
4. You can also get back there through: http://www.google.com/hosted/[your-domain]
5. See here for configuring your domain to route incoming message to Google email servers
6. Change your domain MX record from your domain control panel (according to your domain provider setting), you can also contact your domain provider if you have any difficulties.
7. And if you already done with all of those steps above, you can continue to create email address, email list, etc. from your Google Apps dashboard. And now you can have all features from Google free email.

Friday, June 17, 2011

You can see the complete version of this tutorial here, I've tried and using this on my Tiger (when I'm still using PowerBook G4, back then) and it works well. If you are using Snow Leopard, the option already available in both iCal and Address Book to sync automatically to Google Account. Since this tutorial is a lot and in detail, so I just copy-paste and put it here. Credits goes to all the guys at GCALDaemon team. Cheers! :)

3) Unzip this archive under the '/usr/local/sbin' directory. If the '/usr/local/sbin' directory does not exists (for example you get a 'No such file or directory' message), there are two alternative ways; you can create this via 'sudo mkdir -p /usr/local/sbin' command, or unzip GCALDaemon into the '/Applications' folder. The '/usr/local/sbin' directory is recommended but not obligatory, so you can deploy GCALDaemon into any optional folder. If you would like to allow every users to use GCALDaemon, you may type 'sudo chmod 777 /usr/local/sbin/GCALDaemon'. First change the group ownership and set the rights.

cd /usr/local/sbin/GCALDaemon/bin./password-encoder.sh5) If you see something similar to the line above, your installation has succeeded.

Your Google password: _

6) Press ENTER to quit from the encoder. Then you should read the setup guides about the synchronization. If you use Apple iCal or an iCal-compatible PDA/Mobile synchronizer read the guide about the file-based synchronization. If you use Kontact, Mozilla Calendar, Sunbird or Lightning read the guide about the HTTP-based synchronization. Some calendar applications ignore time-zone properties. When your local time-zone settings are incorrect your events may be off by one or more hours. To resolve this effect, please verify that thetime-zones in your Google Calendar settings and in the OS / local calendar application are the same. If you have trouble with running, please read the next ('Install GCALDaemon into an arbitrary directory') chapter hereinafter, and verify the file paths in the config files.

cd /Applications/GCALDaemon/bin./password-encoder.sh4) If you see something similar to the line above, your installation has succeeded (go to point 9). If you have trouble with running, you must edit and replace some absolute file paths in the starter scripts (go to point 5).

8) Test the application with 'password-encoder.sh' script. If you see something similar to the messages above, your installation has succeeded.

Your Google password: _

9) Then you should read the setup guides about the synchronization. If you use Apple iCal or an iCal-compatible PDA/Mobile synchronizer read the guide about the file-basedsynchronization. If you use Kontact, Mozilla Calendar, Sunbird or Lightning read the guide about the HTTP-based synchronization. Some calendar applications ignore time-zone properties. When your local time-zone settings are incorrect your events may be off by one or more hours. To resolve this effect, please verify that the time-zones in your Google Calendar settings and in the OS / local calendar application are the same. GCALDaemon is designed to run as an 'invisible' Java service. Ideally it started with your OS each system boot (or user login), so you should configure your environment to launch GCALDaemon automatically using Lingon (see also in iCal guide). If you have trouble with the working, try to switch the application's log level to DEBUG, in 'GCALDaemon/conf/logger-config.cfg':

# Valid log levels: DEBUG, INFO, WARN, ERROR or FATALlog4j.category.org.gcaldaemon=DEBUGThen open 'log/gcal-daemon.log' file with your text editor. This log file helps you to identify bugs and configuration problems (e.g. 'Invalid credentials' error message means that the username/password you entered were invalid). If you still have trouble with installation, move on to http://sourceforge.net/forum/?group_id=184382 and please share your experiences with the rest of us. If you have feedback about current releases, this forum is the place to share them. Thank you!

Tuesday, June 14, 2011

My everyday work are sometime using winbox to configure and manage routerboard device which running MikroTik OS, while using MacBook Pro, I need to prepare the environment since winbox are meant to be run on Windows environment. I can use either Darwine or wine package from macports, and I chose to use macports, since I'm more used to CLI environment.

All you need to do is:
1. choose the package according to Mac OS X version, download and install from here
2. for snow leopard (64-bit), you should install wine-devel instead of wine package, and add +universal
# sudo port -v install wine-devel +universal

3. then you should be able to run winbox.exe from terminal
# /opt/local/bin/wine winbox.exe

4. you can also download this package, put it in your Applications and just double-click to run it

Thursday, June 9, 2011

Using Ubuntu Server 10.04 (Lucid Lynx), I install an X Server then use fluxbox as my Window Manager. For web browser, I tend to use Chrome browser from Google (chromium-browser package in Ubuntu). Here's what I do:

1. Install Chromium-browser
# apt-get install chromium-browser

Since I can't change proxy preferences in chromium-browser running on ubuntu server, so I have to do it on launch by creating shortcut file

2. Create the file
# vim chrome (of course you can choose any file name you want)

Wednesday, June 8, 2011

In webOS, you can find and use a lot of patches to improve the usability of your device. One of the patch I use on my Pre with webOS 1.4.5 is "Add Shortcut Keys" patch (you can find it by searching the keywords on webOS-Patches Web Portal

This is related to my other post about how you can improve Google Maps on webOS, where you need to create new launcher shortcut that directly launch new Google Maps on webOS browser. Here is how it looks:

1. You must have google/ gmail acount
2. Open http://maps.google.com in your PC's internet browser
3. Find some place, I choose this:

4. Click "Save to Map", create a new map then save it
5. Click "Link" at top corner to show the link and you can send it to your webOS device. You can use email or IM from PC, but I'm using neato!)
6. Paste the link into webOS browser (you have already login into your gmail account)
7. Create a launcher shortcut, which I will write in another blog post
8. And here's a screenshot:

The situation is like this, I have a bunch of download movie (in .avi format) and .srt (subtitles) files along with all of those movie files. Since I don't have much time to watch the movies in my Mac/ PC or player, I want to keep it in my Palm Pre, so I can play it any moment I have some times (while waiting, perhaps). But since video player in Palm Pre doesn't support displaying .srt file while playing the video files, I have to convert it and hardcoded the .srt file so it could "attach" to the converted video files (.mp4 or .m4v, the same format that can be played in iPhone's or Palm Pre's video player).

And here's what you've got to do:
1. Install Perian
2. Go to System Preferences, open up the Perian and make sure you check "Load External Subtitles" on Subtitle Options section
3. Launch Quick Time and open up .avi file
4. If it plays well and your subtitle can show up then Perian works well
5. File - Save as.. and you can choose the directory where to save the file and file format

Monday, June 6, 2011

In order to be able to open Microsoft Office 2007 and above (.docx, .xlsx, .pptx, etc), Microsft Office 2003 and XP (2002) running on Windows XP must do several upgrade and install additional software.

For Microsoft Office XP,
1. You have to make sure that Service Pack 3 is installed, you can download it here
2. Start - Run, then copy - paste this: %programfiles%\Microsoft Office\Office10 and press ENTER
3. Find winword.exe, excel.exe and powerpnt.exe (for Standard version and above), right click on it - properties and click on Version tab
4. Upgrade your Microsoft Word (winword.exe) version to minimum of version 10.0.6804.0, from here
5. Upgrade your Microsoft Excel (excel.exe) version to minimum of version 10.0.6809.0, from here
6. Upgrade your Microsoft PowerPoint (powerpnt.exe) version to minimum of version 10.0.6804.0, from here
7. Download and install Compatibility Pack from here