Blogs

Change mail check interval for Google Notifier for Mac

in

After my wife has switched from Hotmail to Gmail, she asked me to find a way to get notified new mail without opening the browser. Hotmail had a notification feature through Messenger application for Mac.

For Gmail, Google Notifier for Mac is the solution.

Solution to sharing Windows 7 Folder to XP

Sharing Windows 7 folder is such a pain because Microsoft has changed a lot of default setting, mainly for the security reason, I think. But that made it so difficult to share a folder on Windows 7.

Windows 7 to Windows 7

Usually, Windows 7 to Windows 7 sharing is straightforward.

Configuration

The following is the base configuration.

Java Memorandum - How to make javac to reference user library BEFORE built-in library (rt.jar)

Here's the situation. I have a jar file, which is a library I need to use for an embedded Java application. Even though the embedded device only support Java 1.4, the library implements some 5.0 methods in org.w3c.dom.DOMImplementation. Because the same class is already in rt.jar for 1.4, just compiling a normal way doesn't work.

Java Memorandum - Modifying format (style) of Java code using Eclipse

Coding style is very much personal, and using your favorite style improves the coding productivity.

Say, for example, someone (many Java programmer, apparently) likes the following style.

class test(){
    public
main(args[]){
        if(
a == b){
           
System.out.println("Hello World!");
        }
    }
}

Java Memorandum - Using SSL Socket

in

I wrote a pair of code (server/client) to see how SSL on Java can be implemented.

In this sample, only the server certificate is used. The client validates the server certificate, but the server doesn't care the client's authenticity. That is OK because the most web server behave like that.

Client side of the code - SSLClient.java

import java.io.*;
import java.security.KeyStore;

Java Memorandom - How to create Eclipse Java project from NetBeans project

in

Sometimes you find a good reference Java code, or an open source project you want to use, but the project is written as a NetBeans project. To use the project in Eclipse, follow the steps below.

Modify NetBeans project

First, you need to modify the NetBeans project file to suit in Eclipse. Open nbproject\project.properties.

Replace the following 2 lines

Java Memorandom- Graphics.drawImage

In paint(Graphics g) call back, use drawImage() to draw an image. It is crucial to specify ImageObserver parameter.

I mistakenly passed a null to the parameter, and the drawing was not done properly. It renders only when any other event forces to repaint. When the parameter was properly set, the rendering happens correctly so that the image shows up from the beginning.

Disappointed Sony's decision

Sony has decided not to support the model of my laptop.

http://esupport.sony.com/US/perl/os7upgrade.pl?stage1=24&stage2=492&stag...

ReadyBoost Windows 7 vs. Vista

I use a laptop at work, and one at home (this is my own). Both have 2GB of memory, but I use many heavy applications at the same time, so I tried Windows ReadyBoost feature.

ReadyBoost on Vista

File naming problem with Mac and Windows

Problem

I encountered a little problem today. We are using a Windows shared folder from Mac. On Mac, a space character at the beginning of a folder name is allowed, but not on Windows. When such a folder name is given to a shared windows folder from Mac, it was accepted, but never be renamed, nor deleted.

Syndicate content