Great Google Cheat Sheets

1 March 2009

Google Cheatseet

How do you use google on your daily search? Have you ever wish that you could do more with your search queries? I bet you you.

There is people who's kind enough to collect all the tricks and put them into 2 shot pages and publicly shared with the world.

Following this reference, you will advance your search query and possibly come with lots of new idea. (if you do, please let me know) Read more...

Author: Manet Yim Reference

Java: How to convert String to array?

11 February 2009

Sometime you get a string in a fixed format and you want individualise it and store them into array so you can manipulate it easier with your other functions.

For example,

String array = "one,two,three,four,five,six,seven,eight,nine";

will become

String[] words = {one,two,three,four,five,six,seven,eight,nine};

Below code is demonstrating how fixed format string can be broken down and stored into array.

Class: StringToArray.java
Read more...

Author: Manet Yim Programming

Configure Boot Loader on Ubuntu

7 February 2009
Configure default Boot Loader

Configure default Boot Loader

In most cases, users are installing Ubuntu as dual boots to their Windows. By default the system will boot to Ubuntu. Now they want to the default boot to Windows.

This post is showing you how to configure the default Boot Loader on Ubuntu.

The file which you need to modify is /boot/grub/menu.lst

Now use the following command to edit

sudo vi /boot/grub/menu.lst

Scroll to (almost) end of file, you will see a list similar to example below
Read more...

Author: Manet Yim FAQ & Tip

How to copy text file in Java?

30 January 2009

Code below demonstrating how to copy data from one text file to another in Java.

This testing method, is calling FileCopier.copyFile(File, File) to copy content of file test1.css to file test2.css

    public static void main(String[] args) {
        FileCopier.copyFile(new File("D:/TEMP/test1.css"), 
                            new File("D:/TEMP/test2.css"));
    }

Class: FileCopier.java
Read more...

Author: Manet Yim Programming

PHP References, Tutorials and Tools

26 January 2009

PHP Programming Language

PHP Programming Language

Wondering where to start to learn PHP?

The resources listed here are enough for you to get started. These are not only for beginner, it is suitable for intermediate and advanced developer as well.

Get started

PHP Officeial Website

http://www.php.net

  1. First you need to download  latest version of php runtime and install it in your system
  2. After installation, create a test file call test.php under your webroot directory and pate code below
    <html>
      <head>
      <title>PHP Test</title>
      </head>
      <body>
        < ?php phpinfo(); ?>
      </body>
    </html>
  3. On your browser, navigate to http://localhost/test.php
  4. Get understanding the basic concept of the language with office english documentation guide
  5. Get yourself familiar with syntax and structure of the language. Sample tutorial will clear your way to the beginner entrance.

Read more...

Author: Manet Yim Reference, Software

What is vsmon.exe and why it uses much of my CPU?

25 January 2009

I am sure a lot of people have similar question.

What is vsmon.exe?

What is vsmon.exe?

My computer start to get very slow after I started to download 1.7GB file using DownThemAll (Firefox addon), I was wondering what was happening in the background. So I open up Task Manager (Ctrl + Shift + Esc) to see what's going on.

Wow! vsmon.exe is taking approximately 40% of my CPU and Firefox 40% and svchost.exe 20%. I knew 2 processes firefox and svchost but what on earth is vsmon.exe?

I did a few google searches and found that vsmon.exe belong to ZoneAlarm personal firewall, it is used to monitor your internet traffic.

So this process sis quite safe, as soon as my download is finished everything came back to normal. But keep in mind that spyware or virus could be named anything, you need to know exactly where is this process located on your computer and who created it.

You can use Process Explorer tool to identify it. The rest of this article is showing you how to do it.

Read more...

Author: Manet Yim FAQ & Tip, Software

Zune Theme for Windows XP Desktop

24 January 2009

Microsoft has released the dark stunning theme for Windows XP Desktop call "Zune" which named after the Zune Media (MP3) Player.

This is my favorite theme so far, it is simple and clean. I could not find a second theme to replace it yet, not even other theme built with commercial tools.

You can get a copy for your desktop with link below

Download Zune Theme

Screenshots of Zune Theme on my Desktop

Zune Theme - Desktop by default

Zune Theme - Desktop by default

Read more...

Author: Manet Yim Software

Internet Explorer 8 Beta Showcase

24 January 2009

For those who use Internet Explorer 7 you would notice new features which modern web browser has, such as tab browsing, compatibility with modem web pages and technologies, security alert, plug-in support.

screenshot-ie8-01

IE 8 Beta

Now Internet Explorer 8 has release its beta version and this article will make a showcase and explorer on what's new in the next version.

I download and install IE8 on my Windows XP Professional Desktop.

One thing that I keep waitting for is, I don't have to restart my PC when installing new version of Internet Explorer. In fact, I have to restart my PC or I still see IE7 starting up. But that's ok, it was expected already. Read more...

Author: Manet Yim Showcase, Software

Understand Java break and continue Statements

19 January 2009

Let's get it right and understand on usage of break and continue Statements in Java Programming Language.

break Statement

This statement causes iteration to stop/exit immediately, any line remained after this statement will be ignored by the JVM.

It is used in the following loop

  • for
  • while
  • do...while
  • switch

continue Statement

This statement skips the current iteration of the loop, any line after this statement will not be executed by the JVM until the condition is met.
Read more...

Author: Manet Yim Programming

How to add or display favicon on a webpage?

17 January 2009

What is favicon?

Favicon is shortcut of favorites icon, also known as website icon, shortcut icon, url icon, or bookmark icon.

On the graphical web browser, this icon locates on the Address bar and Tabs bar as seen in the screenshot below.

Screenshot of favicon

Screenshot of favicon

Add favicon

You required to have an image of 16x16 pixels, either PNG, ICO or GIF format

To display favicon to your webpage, add one of the following html code inside <head> depends on which image format you have.

<head>
<link rel="icon" type="image/x-icon" href="path/myicon.ico">
</head>

<head>
<link rel="icon" type="image/png" href="path/myicon.png">
</head>

<head>
<link rel="icon" type="image/gif" href="path/myicon.gif">
</head>

Author: Manet Yim Programming