Wednesday, June 29, 2011

Mode Switcher for your webOS

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:

  1. Advanced System Menu - Mode Menu
  2. Advanced System Prefs Patches


Complete reference can be seen here or in the wiki. Below is matrix for profile I've been created:


Tuesday, June 21, 2011

Using tcpdump in Mac OS X

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

PIMBackup and How To View Backup Data On PC

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! :)

Setting Up Free Email @YourDomain From Google

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

Google Calendar Sync With iCal in Mac OS X Tiger

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! :)


Installation on Mac OS X
  Install GCALDaemon into the '/usr/local/sbin' directory
1) GCALDaemon supporting a Java Virtual Machine (VM) such as found in Sun's JDK or JRE, version 1.5 or higher. Check your java version:

java -version

java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing) 


2) Download the latest Linux-compatible ZIP file from SourceForge.net into your '/downloads' directory (or into your accustomed download directory).

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
sudo unzip /downloads/gcaldaemon-linux-1.x.zip

sudo chgrp -R admin /usr/local/sbin/GCALDaemon
sudo chmod -R g+w /usr/local/sbin/GCALDaemon
sudo chmod 755 /usr/local/sbin/GCALDaemon/bin/*.sh

Note: if you saved this ZIP to your Desktop, you should use 'sudo unzip /Users//Desktop/gcaldaemon-linux-1.x.zip' instead of 'sudo unzip /downloads/...' command.

4) Test your configuration with the 'password-encoder.sh' script.

cd /usr/local/sbin/GCALDaemon/bin
./password-encoder.sh

5) 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.


  Install GCALDaemon into an arbitrary directory
1) Download the latest Linux-compatible ZIP file from SourceForge.net into your '/downloads' directory (or into your accustomed download directory).

2) Unzip the archive to your directory (for example '/Applications'). Change the group ownership and set the rights.

cd /Applications
sudo unzip /downloads/gcaldaemon-linux-1.x.zip

sudo chgrp -R admin /Applications/GCALDaemon
sudo chmod -R g+w /Applications/GCALDaemon
sudo chmod 755 /Applications/GCALDaemon/bin/*.sh

Note: if you saved this ZIP to your Desktop, you should use 'sudo unzip /Users//Desktop/gcaldaemon-linux-1.x.zip' instead of 'sudo unzip /downloads/...' command.

3) Setup finished - test your configuration.

cd /Applications/GCALDaemon/bin
./password-encoder.sh

4) 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).

Your Google password: _
5) Edit 'GCALDaemon/bin/password-encoder.sh' script. Replace '`dirname "$0"`/..' to '/Applications/GCALDaemon'.

#!/bin/sh
#
# Run the password encoder
#

GCALDIR=/Applications/GCALDaemon

java -cp $GCALDIR/lib/gcal-daemon.jar org.gcaldaemon.core.PasswordEncoder 


6) Set the GCALDIR variable in the 'GCALDaemon/bin/standalone-start.sh' service starter script.

#!/bin/sh
#
# Run GCALDaemon
#

GCALDIR=/Applications/GCALDaemon

java -cp
$GCALDIR/lib/commons-codec.jar:
$GCALDIR/lib/commons-lang.jar:
...
$GCALDIR/lib/jdom.jar org.gcaldaemon.standalone.Main
$GCALDIR/conf/gcal-daemon.cfg 


7) Set the GCALDIR variable in the 'GCALDaemon/bin/sync-now.sh' synchronizer script.

#!/bin/sh
#
# Run GCALDaemon once then quit
#

GCALDIR=/Applications/GCALDaemon

java -cp
$GCALDIR/lib/commons-codec.jar:
$GCALDIR/lib/commons-lang.jar:
...
$GCALDIR/lib/jdom.jar org.gcaldaemon.standalone.Main
$GCALDIR/conf/gcal-daemon.cfg
runonce 


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 FATAL
log4j.category.org.gcaldaemon=DEBUG

Then 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

Running Winbox in Snow Leopard

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

For complete references on other Mac OS X version, see here

Thursday, June 9, 2011

Setting Chromium-browser's Proxy on Ubuntu Server

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)

3. Input command to the file (choose one based on your proxy configuration)
# chromium-browser --proxy-pac-url=http://link.to/proxy.pac --enable-plugins
# chromium-browser --proxy-server="http://proxy.url:port/" --enable-plugins
# chromium-browser --proxy-server="socks://proxy.url:port/" --enable-plugins

3. Save the file and quit
4. Give execute permission to that file you've just created
# chmod +x chrome

5. You're done! :)

note:
- you can show another option to add another command on the file you created by executing this:
# man chromium-browser

- just found out in Debian, the command is 'google-chrome' instead of 'chromium-browser' :)

Wednesday, June 8, 2011

"Add Shortcut Keys" Patch On webOS Browser

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:


Improved Google Maps on webOS

Credit goes to rmausser who shares this steps in precentral forum, you can view it here

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:





Hardcoded .srt Subtitle Into A Video Files in Mac OS X

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).

Here's what you need:
1. Perian (go here to download and install if you haven't already installed it)
2. Quick Time (already installed in any Mac OS X)
3. .avi and .srt files (of course! :D )

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



6. I choose iPhone format, so it saved as .m4v file
7. Done :)

Monday, June 6, 2011

How To Make Microsoft Office XP & 2003 able to open Microsoft Office 2007 and above File Formats

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

For Microsoft Office 2003
1. Upgrade to Service Pack 3, download from here
2. Download and install Compatibility Pack from here

That's all you have to do on Windows XP. For any detail information, you can refer here