Posts

Showing posts from July, 2012

Mac Outlook 2011 - Export Mac Outlook to Windows Outlook

Image
I was trying to export my Mac Outlook mailbox, and to my disappointment, it can only export to a olm file. In the other hand, Windows Outlook only understand pst file. For some reason, Microsoft does not allow export Mac Outlook and import to Windows Outlook.

So, here is the work around. The idea is create an intermediate IMAP mail client to transfer Mac Outlook email to Windows Outlook email.
Setup IMAP mail account
1. Apply or use an existing IMAP mail account. GMail is one of them and this guide will use GMail as an example. 2. Just follow the wizard to create an GMail account. Log into the account after successful account creation
3. After log in, go to setting page
4. At setting page, go to Forward and POP/IMAP tab, enable IMAP. Then save the configuration
5. Also, near the configuration, click on Configure Instruction link to see how to set up IMAP on outlook. Here is the link. Follow Outlook 2007/2010 to setup IMAP at your Mac Outlook 
Setup Mac Outlook with IMAP mail account
1.…

Samsung Galaxy S3 - Connecting to hidden SSID

Image
For security reason, we hide our WIFI SSID so that other people had a tougher time to find it.

The usual step to connect a hidden SSID is

1. Broadcast the WIFI SSID
2. Let the device scan for WIFI and find the desire SSID
3. Select the discovered SSID, configure the setting and connect to it
4. Go to router admin and hide the SSID

For some reason, Samsung Galaxy S3 won't work this way. If you set up your WIFI setting with auto scanning, it will only work with broadcast SSID. This is true even if you only hide your SSID after you had setup your WIFI with auto scanning.

So, to use hidden SSID with Samsung Galaxy S3, do the following

1. Go to your router admin and hide the SSID
2. On WIFI for Samsung Galaxy S3
3. Remove/forget any WIFI setting that has the same SSID of your hidden one
4. At your WIFI network setting, scroll to the bottom and click on Add Network
5. Type in your hidden SSID and configure security. After all is done, save the setting.

After the above setting, you will…

C3P0 - Managing Connection Pool

C3P0 is an open source database connection pool library. By using the ComboPooledDataSource and reading the document, you can easily set up a database connection pool for your application.

I will talk a bit more about managing database connection pool. A database connection pool is simply just a group of persistent database socket.

Why do we want a connection pool? Mainly for performance. A pool allow you to reuse the same set of established persistent connections over and over again. This will greatly reduce the wait time due to connection establishment.

For example, a naive new connection usually require the following time

1. network connection setup + database connection initialization
2. database transaction and commit
3. database connection close + network socket close

This is fine if we are only performing a single database transaction. Imagine if we are performing hundreds of transaction per minute. Time used for step 1 and 3 will hinder the application performance.

If you are…