Archive for May, 2008

How to back-up Bookmarks in Firefox and IE7

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 3 out of 10)
Loading ... Loading ...

User always bookmarks their favorite website. These bookmark URLs are important to anyone. Here i will show how to back-up bookmark URLs in Firefox and IE.

How to back-up bookmarks in Firefox

1) Open Firefox, click Bookmarks —> Organize Bookmarks…

backup-bookmark-firefox-1

2) It will Open Bookmarks Manager

backup-bookmark-firefox-2

3) Click File –> Export…

backup-bookmark-firefox-3

4) It will exports all firefox bookmark URLs to a html file bookmarks.html

backup-bookmark-firefox-4

5) Backup exported bookmarks.html. All firefox bookmark URLs will listed in bookmarks.html.

How to back-up bookmarks in IE7

1) Open Internet Explorer - Click Add to bookmark icon (icon with plus and star)
and click Import and Export…

backup-bookmark-IE-1

2)It will Open a Import/Export Wizard dialog, click next

backup-bookmark-IE-2

3) Select Export Favorites and click next

backup-bookmark-IE-3

4)Select back-up bookmark URLs and click next

backup-bookmark-IE-4

5)Select Export destination and click next

backup-bookmark-IE-5

6)Click finish to export all bookmark URLs to a html file.

backup-bookmark-IE-6

Check duplicated value in array

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 4 out of 10)
Loading ... Loading ...

Here i attached a java example to show how to check duplicated value in an array. I show two methods to implement this.

1) Using two for loop to compare each values in array - Line 21

2)Using HashSet to detect duplicated value. - Line 40

Hope help, if you know any other method to compare duplicated value in array, please share it to me.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 
package com.mkyong;
 
import java.util.Set;
import java.util.HashSet;
 
public class CheckDuplicate
{
	public static void main(String args[])
	{
		String [] sValue = new String[]{"a","b","c","d","","","e","a"};
 
		if(checkDuplicated_withNormal(sValue))
			System.out.println("Check Normal : Value duplicated! \n");
		if(checkDuplicated_withSet(sValue))
			System.out.println("Check Set : Value duplicated! \n");
 
	}
 
	//check duplicated value
	private static boolean checkDuplicated_withNormal(String[] sValueTemp)
	{
		for (int i = 0; i < sValueTemp.length; i++) {
			String sValueToCheck = sValueTemp[i];
			if(sValueToCheck==null || sValueToCheck.equals(""))continue; //empty ignore
			for (int j = 0; j < sValueTemp.length; j++) {
					if(i==j)continue; //same line ignore
					String sValueToCompare = sValueTemp[j];
					if (sValueToCheck.equals(sValueToCompare)){
							return true;
					}
			}
 
		}
		return false;
 
	}
 
	//check duplicated value
	private static boolean checkDuplicated_withSet(String[] sValueTemp)
	{
		Set<String> sValueSet = new HashSet<String>();
		for(String tempValueSet : sValueTemp)
		{
			if (sValueSet.contains(tempValueSet))
				return true;
			else
				if(!tempValueSet.equals(""))
					sValueSet.add(tempValueSet);
		}
		return false;
	}
 
 
}

Top 5 Strongest Password

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 5 out of 10)
Loading ... Loading ...

After i seen so many users had been cracked because of poor password, here i summarize 5 of the strongest password that i know. Hope this help.

No 5 - Combine partial 2 or 3 or even 4 unrelated words together (mix uppercase and lowercase)
User can combine 2 words together like “Diamond”, “Blog”,”Security” to become “DiamBloSecu”

No 4 - Combine word with number and (mix uppercase and lowercase)

User can combine your name and your handphone number together, like your name “Scotfield”, handphone is “01255447689″, then your password will become “Scotfield01255447689″, this is my favourite password to use also, because it is consider strong and easy to remember password.

No 3 Replace Word with number and symbol randomly. (mix uppercase and lowercase)
Good example is microsoft suggest strongest password P@ssw0rd, it replace a with @ symbol and o with 0 (Zero), This will need some creative to think of it.

No 2 Mix Word and number together randomly. (mix uppercase and lowercase)
Let said, “Scotfield” and “01255447689″, if we mix randomly to become “S012cot5544fie76ld89″, frankly… i do not think is it possible to crack it..but it very hard to remember also.

No1 Mix meanless Word, number and symbol randomly, and at least 15 length.
(mix uppercase and lowercase)
Strongest password equals to hardest remember password, for example

E7r9t8@Q#h%Hy+M

er…. if possible please do not create above strongest password, because this is really very hard to remember.

How to add facebook profile into blog (Solution)

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (2 votes, average: 3 out of 10)
Loading ... Loading ...

Facebook is my internet home, i like to play game like poker in facebook. Today, i decided to add facebook profile into blog.

1) Please log in your facebook account

2) Click profile.
facebook-badge-1

3) Scroll down to bottom and click “Create a Profile Badge” to create a facebook badge.
facebook-badge-2

4) Click create badge button
facebook-badge-3
5) Customize your facebook information that you want to display in blog and click save button to create a badge.
facebook-badge-4
6) Badge is just an image that can be added to web pages. Copy and paste the following HTML:
facebook-badge-5

7) PasteHTML image code to any position you want to display.

facebook-badge-6

NDS - Unable to load data (Solution) - How to update R4 kernel

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (3 votes, average: 9 out of 10)
Loading ... Loading ...

Recently i downloaded a lof of latest NDS games from internet , i hit the following error when start game.

“Unable to load data. Turn the power off and reinsert the game card”

This is because my NDS R4 kernal is outdated(v1.08), can not support latest game. After updated R4 kernel to latest version(v1.18), everything is fine now. Hi , some game shops may charge you expensive to just help update the R4 kernel, please do not stupid to pay for it. Update R4 kernel manually is just a piece of cake. I had provided following guideline to show How to update R4 kernel, hope help.

1) Take out your R4 card (small card) from NDS.

2) Plug your R4 card into USB pen drive which support micro SD, when you brought NDS, it come together (USB pen drive which you used to copy game). Your R4 file content should like something below

nds-unable-to-load-game-latest-R4-original

3) Go here http://www.r4ds.cn/download/r4.html to download latest R4kernal

4) R4 Kernal file is something like “English-1.18.rar”, you need winrar to unzip it. please go here to download if you do not have winrar installed http://www.rarsoft.com/download.htm

5) Unzip it, _DS_MENU.DAT and _DS_MSHL.NDS are core files for R4 kernel.  R4 latest kernel file should contains something like below

nds-unable-to-load-game-latest-R4

6) Copy all unzip kernel files above to your R4 card and REPLACE IT ALL. (Please remember backup , just in case).

7) Unplug your USB pen drive and reinsert your R4 card, enjoy your game.

Clear Browsing History In Firefox

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 2 out of 10)
Loading ... Loading ...

Firefox keeps browsing history of web pages you visited before. Sometime we need to clear browsing history in order to hide the webpages we visited before. This can be done easily in Firefox.

If you want to view your web page history , please do following
1) Hold down the CTRL key and press H.
2) Click History tab, and click Show in Sidebar.

3 ways to Clear Browsing History In Firefox

1) In Firefox , click CTRL+SHIFT+DEL, It’s will show “Clear Private Data” Pop up window, select what are the private data to clear and click “Clear Private Data Now” button to clear it.

clear-browser-history-firefox-privacy-data

2) In Firefox, Click Tools, select Clear Private Data and click it.

clear-browser-history-firefox-2-select

It’s will show “Clear Private Data” Pop up window, select what are the private data to clear and click “Clear Private Data Now” button to clear it.

clear-browser-history-firefox-privacy-data

3) In Firefox, Click Tools, select Options and click it.

clear-browser-history-firefox-3-select

It’s will pop up an options windows, press Privacy tab and display windows like below

clear-browser-history-firefox-3-1-select

Click “Clear Now” button, It’s will show “Clear Private Data” Pop up window, select what are the private data to clear and click “Clear Private Data Now” button to clear it.
clear-browser-history-firefox-privacy-data

Html Tutorial Hello World

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1 out of 10)
Loading ... Loading ...

This is the introduction of my first html tutorial. Let me explains some of the html basic.

1) HTML is stands for Hyper Text Markup Language
2) HTML is a text file which consists a set of markup tags like (<html><body></html></body>).
3) Almost all of the markup tag has start tag <html> and close tag </html>. Close tag is start with a “/”.
4) The markup tags is just like a command to tell web browser (Firefox or Internet Explorer) what should do.
5) HTML file must have htm or html as file extension.
6) HTML file is not case sensitive. <html>, <HTML> or <hTmL> are all same tag.
7) HTML file can be edit with any text editor like notepad or wordpad in windows , vi or emacs in unix or linux.

Ok, let start our’s first “Hello world” html file. Open your favorite text editor type the following text.

1
2
3
4
5
6
<html>
<header><title>This is title</title></header>
<body>
Hello world
</body>
</html>

html-tutorial-hello-world-notepad

Click File, Save it as “helloworld.html”

html-tutorial-hello-world-save-as

Double click to view it.

html-tutorial-hello-world-view-it

Done, first hello world html file is finished.

Example Explanation

1) <html></html> tag is tell internet browser this file is a start and end of the html file document.
2) Text between <header></header> tag is for html header information, which is not display in internet browser. I will explains it detail in future tutorial.
3) Text between <title></title> will display in left-up corner in internet browser.
4) Text between <body></body> will display as content in internet browser.

Only great minds can read this

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1 out of 10)
Loading ... Loading ...

This is weird, but interesting! Please try to read below word.

fi yuo cna raed tihs, yuo hvae a sgtrane mnid too
Cna yuo raed tihs? Olny 55 plepoe out of 100 can.

i cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno’t mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!

Now i only know our mind just remember first and last letter in word. It’s amazing!

Why always wake up with tired (Self-help Solution)

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (2 votes, average: 4 out of 10)
Loading ... Loading ...

Below is base on my own experience, hope help.

I always feel tired after wake up from more than an 8 hours sleep. I started to think is this because I slept too much? I though 8 hours sleep am an average sleep time for human being? I tried to sleep 5-6 hours a day, however after wake up, it still same - tired.

I am realizing how long I sleep is not the real reason I get tired after wake up. I started to research online on topic “Wake up and get tire” in google. However I find a lot of people have same problem with me, it make me feel I’m not a abnormal people .

I find a few useful solutions provided by some of the bloggers and websites, please take it a look , it may be will work with you.

1)Vincent Cheung suggested a dual alarm solution to get rid of tire after wake up.

2) Altmedicine.about.com suggested meditation and yoga as a solution .

Above solution I had tried and sometime it work sometime not, it may be not so suitable for me, however it no harm to try. You still can find a lot of solution by search “Why Wake Up Get Tired” in google.

After time goes by, I finally found out and tested out what is the real reason for me to wake up and feel tired always. It consists of two aspects, Physically and mentally

Mentally

Problem
Pressure and stress like marriage problem, meet project death line, relationship problem, tax issue etc, as Chinese we always said “do not think so much, get a well sleep , tomorrow will be better. Ya , this is a good practice and nice try, however carry up a burden to sleep will always cause you unable to sleep well and wake up in tire always.

Solution
Try always thinking positive and facing your problem directly. Face it and solve it before you go to sleep, do not think I can solve it tomorrow. Health mental will get you in a good sleep and started a good day tomorrow.

Physically

Problem
Unhealthy life and lazy to do exercise.

Solution
Early morning please go jogging in your house nearest garden, do more exercise to improve your health. I find out this is the main reason I can’t sleep well and always wake up tired. With a healthy life, I guarantee most of the people can wake up with refresh every day. However this is the hardest part to do it, after all a lot of lazy people just like me~

Problem
Sleep on a no quality bed. May be some of you may not agreed with me, but this is the second main reason wake up tired for me. I tested with my brother bed always, my brother’s bed is expensive and quality well (according to sales man haha), I always wake up refresh with my brother’s bed, while my cheap bed is suck, wake up tire and painful …. (i going to change soon).

Solution
Please go to buy a affordable quality bed , it worth. Please remember we have 1/3 time sleep on our bed.

Now I almost get sleep well and wake up with refresh every day, living a healthy life, mentally free and have a quality bed are the main reason to make us get sleep well and wake up refresh. It may not work with you, but above solutions are perfectly work well with me. Hope help.

If possible please share your own experience also.

MUSE- StarLight

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1 out of 10)
Loading ... Loading ...

I like Muse’s StarLight very much, especially the staring keyboard music..~ Muse are an English rock band formed in Teignmouth, Devon in 1994. More information about Muse band, please visit wiki.

StarLight Lyrics


Far away
This ship is taking me far away
Far away from the memories
Of the people who care if I live or die

Starlight
I will be chasing the starlight
Until the end of my life
I don’t know if it’s worth it anymore

Hold you in my arms
I just wanted to hold
You in my arms

My life
You electrify my life
Let’s conspire to re-ignite
All the souls that would die just to feel alive

But I’ll never let you go
If you promised not to fade away
Never fade away

Our hopes and expectations
Black holes and revelations
Our hopes and expectations
Black holes and revelations

Hold you in my arms
I just wanted to hold
You in my arms

Far away
This ship is taking me far away
Far away from the memories
Of the people who care if I live or die

And I’ll never let you go
If you promise not to fade away
Never fade away

Our hopes and expectations
Black holes and revelations
Our hopes and expectations
Black holes and revelations

Hold you in my arms
I just wanted to hold
You in my arms
I just wanted to hold

Please enjoy Muse StarLight music video from youtube