<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Computer FAQs &#38; Tips</title>
	<atom:link href="http://www.computer-faqs.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.computer-faqs.com</link>
	<description>Answers to your Questions, Tips to enhance your Experience</description>
	<lastBuildDate>Sun, 16 Aug 2009 23:16:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Great Google Cheat Sheets</title>
		<link>http://www.computer-faqs.com/2009/03/01/great-google-cheat-sheets/</link>
		<comments>http://www.computer-faqs.com/2009/03/01/great-google-cheat-sheets/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 08:49:22 +0000</pubDate>
		<dc:creator>Manet Yim</dc:creator>
				<category><![CDATA[Reference]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://www.computer-faqs.com/?p=895</guid>
		<description><![CDATA[
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 [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-896 alignright" title="Google Cheatseet" src="http://www.computer-faqs.com/wp-content/uploads/2009/03/sc-googlecheatseet.png" alt="Google Cheatseet" width="188" height="62" /></p>
<p>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.</p>
<p>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.</p>
<p>Following this reference, you will advance your search query and possibly come with lots of new idea. (if you do, please let me know)<span id="more-895"></span></p>
<p>Out of all, I personally like the following</p>
<ul>
<li>List of basic Google Calculator operators</li>
<li>List of advanced Google Search operators</li>
<li>List of fun Google services and tools</li>
<li>Search by number examples</li>
</ul>
<p>To get your copy, follow the URL below</p>
<blockquote><p><a href="http://www.adelaider.com/google/?dl">http://www.adelaider.com/google/?dl</a></p></blockquote>
<p>Enjoy searching...</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computer-faqs.com/2009/03/01/great-google-cheat-sheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java: How to convert String to array?</title>
		<link>http://www.computer-faqs.com/2009/02/11/java-how-to-convert-string-to-array/</link>
		<comments>http://www.computer-faqs.com/2009/02/11/java-how-to-convert-string-to-array/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 04:39:13 +0000</pubDate>
		<dc:creator>Manet Yim</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.computer-faqs.com/?p=613</guid>
		<description><![CDATA[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 = &#34;one,two,three,four,five,six,seven,eight,nine&#34;;

will become

String&#91;&#93; words = &#123;one,two,three,four,five,six,seven,eight,nine&#125;;

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


/**
 * Computer-FAQS.com
 [...]]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<p>For example,</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #003399;">String</span> array <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;one,two,three,four,five,six,seven,eight,nine&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>will become</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> words <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>one,two,three,four,five,six,seven,eight,nine<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Below code is demonstrating how fixed format string can be broken down and stored into array.</p>
<p><strong>Class: <code>StringToArray.java</code></strong><br />
<span id="more-613"></span></p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #008000; font-style: italic; font-weight: bold;">/**
 * Computer-FAQS.com
 * @author Manet Yim (manet.yim at gmail dot com)
 * @license: GPL v3.0
 */</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> StringToArray <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Testing method
     * @param args
     */</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #666666; font-style: italic;">// your raw string in a fixed format</span>
        <span style="color: #003399;">String</span> array <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;one,two,three,four,five,six,seven,eight,nine&quot;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// converting raw string input array object and display it</span>
        <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> convertedArray <span style="color: #339933;">=</span> StringToArray.<span style="color: #006633;">convert</span><span style="color: #009900;">&#40;</span>array, <span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>convertedArray.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>convertedArray<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Convert a String s to an Array, where each element in string 
     * seperated by sep
     * 
     * @param str String to be converted
     * @param sep Element seperator
     * @return Array of strings
     */</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> convert<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> str, <span style="color: #003399;">String</span> sep<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #003399;">StringBuffer</span> sBuf <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">StringBuffer</span><span style="color: #009900;">&#40;</span>str<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// there is at least one element in the array</span>
        <span style="color: #000066; font-weight: bold;">int</span> aSize <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// Counting how many separator in the string</span>
        <span style="color: #666666; font-style: italic;">// result will be the size of new array</span>
        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> sBuf.<span style="color: #006633;">length</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>sep.<span style="color: #006633;">indexOf</span><span style="color: #009900;">&#40;</span>sBuf.<span style="color: #006633;">charAt</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>
                aSize<span style="color: #339933;">++;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// create new array object with predefined size</span>
        <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> elements <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span>aSize<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000066; font-weight: bold;">int</span> x, y <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>sBuf.<span style="color: #006633;">indexOf</span><span style="color: #009900;">&#40;</span>sep<span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>sBuf.<span style="color: #006633;">length</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>sBuf.<span style="color: #006633;">indexOf</span><span style="color: #009900;">&#40;</span>sep<span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    x <span style="color: #339933;">=</span> sBuf.<span style="color: #006633;">indexOf</span><span style="color: #009900;">&#40;</span>sep<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>x <span style="color: #339933;">!=</span> sBuf.<span style="color: #006633;">lastIndexOf</span><span style="color: #009900;">&#40;</span>sep<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                        elements<span style="color: #009900;">&#91;</span>y<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> sBuf.<span style="color: #006633;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span>, x<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        y<span style="color: #339933;">++;</span>
                        sBuf.<span style="color: #006633;">delete</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span>, x <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                    <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>sBuf.<span style="color: #006633;">lastIndexOf</span><span style="color: #009900;">&#40;</span>sep<span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> x<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                        elements<span style="color: #009900;">&#91;</span>y<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> sBuf.<span style="color: #006633;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span>, sBuf.<span style="color: #006633;">indexOf</span><span style="color: #009900;">&#40;</span>sep<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        y<span style="color: #339933;">++;</span>
                        sBuf.<span style="color: #006633;">delete</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span>, sBuf.<span style="color: #006633;">indexOf</span><span style="color: #009900;">&#40;</span>sep<span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        elements<span style="color: #009900;">&#91;</span>y<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> sBuf.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        y<span style="color: #339933;">++;</span>
                        sBuf.<span style="color: #006633;">delete</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span>, sBuf.<span style="color: #006633;">length</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                    <span style="color: #009900;">&#125;</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
            elements<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> sBuf.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        sBuf <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">return</span> elements<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.computer-faqs.com/2009/02/11/java-how-to-convert-string-to-array/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Configure Boot Loader on Ubuntu</title>
		<link>http://www.computer-faqs.com/2009/02/07/configure-boot-loader-on-ubuntu/</link>
		<comments>http://www.computer-faqs.com/2009/02/07/configure-boot-loader-on-ubuntu/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 06:22:17 +0000</pubDate>
		<dc:creator>Manet Yim</dc:creator>
				<category><![CDATA[FAQ & Tip]]></category>
		<category><![CDATA[Boot Loader]]></category>
		<category><![CDATA[GRUB]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.computer-faqs.com/?p=865</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_880" class="wp-caption alignright" style="width: 267px"><img class="size-full wp-image-880" title="Default Boot Loader" src="http://www.computer-faqs.com/wp-content/uploads/2009/02/screenshot-default-bootloader.png" alt="Configure default Boot Loader" width="257" height="98" /><p class="wp-caption-text">Configure default Boot Loader</p></div>
<p>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.</p>
<p>This post is showing you how to configure the default Boot Loader on Ubuntu.</p>
<p>The file which you need to modify is <code>/boot/grub/menu.lst</code></p>
<p>Now use the following command to edit</p>
<blockquote class="codefunction"><p>sudo vi /boot/grub/menu.lst</p></blockquote>
<p>Scroll to (almost) end of file, you will see a list similar to example below<br />
<span id="more-865"></span></p>
<pre class="cmdterminal">title         Ubuntu 8.10, kernel 2.6.20-15-server (recovery mode)
root          (hd0,1)
kernel        /boot/vmlinuz-2.6.20-15-server root=UUID=40fae4a8-1d37-4506-99fa-6d9435e7e806 ro  single
initrd        /boot/initrd.img-2.6.20-15-server

title         Ubuntu 8.10, memtest86+
kernel        /boot/memtest86+.bin
quiet

title         Other operating systems:
root          

title         Microsoft Windows XP Professional
root          (hd0, 0)</pre>
<p>The first section has index = 0, second section has index = 1, and so on...</p>
<p>Note down which index you want to be default, and scroll up to top of file and change the line below. i.e replacing the index number with the one you noted down earlier.</p>
<pre class="cmdterminal">default         0</pre>
<p>From example list above, if I want to default to Windows XP I will change it to</p>
<pre class="cmdterminal">default         3</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.computer-faqs.com/2009/02/07/configure-boot-loader-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to copy text file in Java?</title>
		<link>http://www.computer-faqs.com/2009/01/30/how-to-copy-text-file-in-java/</link>
		<comments>http://www.computer-faqs.com/2009/01/30/how-to-copy-text-file-in-java/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 01:09:19 +0000</pubDate>
		<dc:creator>Manet Yim</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Java-FileReader]]></category>
		<category><![CDATA[Java-FileWriter]]></category>

		<guid isPermaLink="false">http://www.computer-faqs.com/?p=611</guid>
		<description><![CDATA[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&#40;String&#91;&#93; args&#41; &#123;
        FileCopier.copyFile&#40;new File&#40;&#34;D:/TEMP/test1.css&#34;&#41;, 
       [...]]]></description>
			<content:encoded><![CDATA[<p>Code below demonstrating how to copy data from one text file to another in Java.</p>
<p>This testing method, is calling <code>FileCopier.copyFile(File, File)</code> to copy content of file <code>test1.css</code> to file <code>test2.css</code></p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        FileCopier.<span style="color: #006633;">copyFile</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">File</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;D:/TEMP/test1.css&quot;</span><span style="color: #009900;">&#41;</span>, 
                            <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">File</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;D:/TEMP/test2.css&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>Class: <code>FileCopier.java</code></strong><br />
<span id="more-611"></span></p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.File</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.FileNotFoundException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.FileReader</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.FileWriter</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.IOException</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> FileCopier <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Testing Method
     * @param args
     */</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        FileCopier.<span style="color: #006633;">copyFile</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">File</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;D:/TEMP/test1.css&quot;</span><span style="color: #009900;">&#41;</span>, 
                            <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">File</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;D:/TEMP/test2.css&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Copy content of file f1 into file f2
     * @param f1
     * @param f2
     */</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> copyFile<span style="color: #009900;">&#40;</span><span style="color: #003399;">File</span> f1, <span style="color: #003399;">File</span> f2<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003399;">FileReader</span> in <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FileReader</span><span style="color: #009900;">&#40;</span>f1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003399;">FileWriter</span> out <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FileWriter</span><span style="color: #009900;">&#40;</span>f2<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">int</span> line<span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>line <span style="color: #339933;">=</span> in.<span style="color: #006633;">read</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #666666; font-style: italic;">// Read line fromtext file and write to destination file</span>
                out.<span style="color: #006633;">write</span><span style="color: #009900;">&#40;</span>line<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            in.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            out.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">FileNotFoundException</span> ffx<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            ffx.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">IOException</span> iox<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            iox.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.computer-faqs.com/2009/01/30/how-to-copy-text-file-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP References, Tutorials and Tools</title>
		<link>http://www.computer-faqs.com/2009/01/26/php-references-tutorials-and-tools/</link>
		<comments>http://www.computer-faqs.com/2009/01/26/php-references-tutorials-and-tools/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 11:58:37 +0000</pubDate>
		<dc:creator>Manet Yim</dc:creator>
				<category><![CDATA[Reference]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.computer-faqs.com/?p=799</guid>
		<description><![CDATA[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

First you need to download  latest version of php runtime and install it in your system
After installation, create a test [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 130px"><img title="PHP.net" src="http://static.php.net/www.php.net/images/php.gif" alt="PHP Programming Language" width="120" height="67" /><p class="wp-caption-text">PHP Programming Language</p></div>
<p>Wondering where to start to learn PHP?</p>
<p>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.</p>
<h3>Get started</h3>
<h4>PHP Officeial Website</h4>
<p><a href="http://www.php.net">http://www.php.net</a></p>
<ol>
<li>First you need to download  <a href="http://www.php.net/downloads.php">latest version</a> of php runtime and install it in your system</li>
<li>After installation, create a test file call <em>test.php</em> under your webroot directory and pate code below</li>
<li>On your browser, navigate to <a href="http://localhost/test.php">http://localhost/test.php</a></li>
<li>Get understanding the basic concept of the language with office <a href="http://www.php.net/manual/en/">english documentation</a> guide</li>
<li>Get yourself familiar with syntax and structure of the language. <a href="http://www.php.net/manual/en/tutorial.php">Sample tutorial</a> will clear your way to the beginner entrance.</li>
</ol>
<p><span id="more-799"></span></p>
<h4>Other great tutorials</h4>
<ul>
<li><a href=": http://www.w3schools.com/PHP/DEfaULT.asP">W3Schools PHP Tutorials</a>. It covers
<ul>
<li>Basic features</li>
<li>Advanced</li>
<li>XML</li>
<li>Database</li>
<li>Ajax</li>
<li>A few quizzes to test what you have learned</li>
</ul>
</li>
<li><a href="http://devzone.zend.com/node/view/id/627">PHP For the Absolute Beginner</a>. It covers
<ul>
<li>Variables, Operators</li>
<li>Functions, arguments passing</li>
<li>Database</li>
<li>Error handling</li>
<li>Examples</li>
</ul>
</li>
<li><a href="http://www.tizag.com/phpT/index.php">Tizag PHP Tutorial</a>. It covers
<ul>
<li>Installation</li>
<li>Loop, Switch statements</li>
<li>Form POST, GET</li>
<li>File IO and upload</li>
<li>Session, Cookies</li>
</ul>
</li>
</ul>
<h3>Explorer More</h3>
<ul>
<li><a href="http://www.goodphptutorials.com">Good PHP Toturials</a> has lots php tips and tricks</li>
<li><a href="http://www.phpclasses.org/browse">PHP Classes</a> has lots of pre-written scripts that is ready to use and deploy</li>
<li><a href="http://www.hotscripts.com/PHP/index.html">PHP at Host Scripts</a> has thousands of pre-written scripts for free (and some commercial)</li>
<li><a href="http://www.devshed.com/c/b/PHP/">PHP at Devshed</a> has lots of articles and tutorials from different authors</li>
<li><a href="http://www.phpfreaks.com">PHPFreak</a> sure you will find lots of "freak" there</li>
<li><a href="http://phpvideotutorials.com">PHP Video</a> when you don't like to read to learn</li>
</ul>
<h3>Developer Tools</h3>
<ul>
<li><a href="http://www.eclipse.org">Eclipse</a> + <a href="http://www.eclipse.org/pdt/">PDT Project</a> PHP Development Tools framework for the Eclipse platform</li>
<li><a href="http://www.phpeclipse.com">PHPEclipse</a> alternative to above, plus more added features<a href="http://www.phpeclipse.com"><br />
</a></li>
<li><a href="http://www.netbeans.org/features/php/">Netbeans PHP</a> dedicated PHP coding environment and complete integration with web standards</li>
<li><a href="http://www.aptana.com/php">Aptana PHP</a> free tool for your php development<a href="http://www.aptana.com/php"><br />
</a></li>
<li><a href="http://www.firephp.org">FirePHP</a> if you use Firefox and programming php, don't miss this</li>
</ul>
<div class="admedia">Advertisement » Great book for novice <a href="http://www.amazon.com/gp/product/032152599X?ie=UTF8&amp;tag=cofa-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=032152599X">PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.computer-faqs.com/2009/01/26/php-references-tutorials-and-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is vsmon.exe and why it uses much of my CPU?</title>
		<link>http://www.computer-faqs.com/2009/01/25/what-is-vsmonexe-and-why-it-uses-much-of-my-cpu/</link>
		<comments>http://www.computer-faqs.com/2009/01/25/what-is-vsmonexe-and-why-it-uses-much-of-my-cpu/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 06:27:18 +0000</pubDate>
		<dc:creator>Manet Yim</dc:creator>
				<category><![CDATA[FAQ & Tip]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Process-Explorer]]></category>

		<guid isPermaLink="false">http://www.computer-faqs.com/?p=767</guid>
		<description><![CDATA[I am sure a lot of people have similar question.
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 [...]]]></description>
			<content:encoded><![CDATA[<p>I am sure a lot of people have similar question.</p>
<div id="attachment_779" class="wp-caption alignright" style="width: 232px"><img class="size-full wp-image-779" title="screenshot-vsmon-00" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-vsmon-00.png" alt="What is vsmon.exe?" width="222" height="100" /><p class="wp-caption-text">What is vsmon.exe?</p></div>
<p>My computer start to get very slow after I started to download 1.7GB file using <em>DownThemAll</em> (Firefox addon), I was wondering what was happening in the background. So I open up Task Manager (<em>Ctrl + Shift + Esc</em>) to see what's going on.</p>
<p>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?</p>
<p>I did a few google searches and found that <strong>vsmon.exe belong to ZoneAlarm personal firewall, it is used to monitor your internet traffic</strong>.</p>
<p>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.</p>
<p>You can use Process Explorer tool to identify it. The rest of this article is showing you how to do it.</p>
<p><span id="more-767"></span></p>
<p><span class="media-download"><a href="http://download.sysinternals.com/Files/ProcessExplorer.zip">Download Process Explorer</a></span> or visit <a href="http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx">Microsoft TechNet</a> for more information before you download.</p>
<h4>How to locate and identify the process</h4>
<ul>
<li>Start up Process Explorer
<p><div id="attachment_770" class="wp-caption alignnone" style="width: 310px"><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-vsmon-01.png" rel="lightbox[767]"><img class="size-medium wp-image-770" title="screenshot-vsmon-01" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-vsmon-01-300x171.png" alt="Process Explorer Window" width="300" height="171" /></a><p class="wp-caption-text">Process Explorer Window</p></div></li>
<li>Sort process by name and find <em>vsmon.exe</em></li>
<li>On the same line as process name, look at Company Name column you will find who created this process</li>
</ul>
<p>If Company Name is not verified, you can</p>
<ul>
<li>Double click on vsmon.exe
<p><div id="attachment_771" class="wp-caption alignnone" style="width: 310px"><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-vsmon-02.png" rel="lightbox[767]"><img class="size-medium wp-image-771" title="screenshot-vsmon-02" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-vsmon-02-300x348.png" alt="Process Properties Window" width="300" height="348" /></a><p class="wp-caption-text">Process Properties Window</p></div></li>
<li>Click on Verify button</li>
<li>If this process is genuine, it will be verified</li>
</ul>
<p>If company name is not verified, you'd better do a virus scan on this file or put it into your AntiVirus Chest so it will be isolated and not access or activated in any way.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computer-faqs.com/2009/01/25/what-is-vsmonexe-and-why-it-uses-much-of-my-cpu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zune Theme for Windows XP Desktop</title>
		<link>http://www.computer-faqs.com/2009/01/24/zune-theme-for-windows-xp-desktop/</link>
		<comments>http://www.computer-faqs.com/2009/01/24/zune-theme-for-windows-xp-desktop/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 07:25:15 +0000</pubDate>
		<dc:creator>Manet Yim</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Windows-XP]]></category>
		<category><![CDATA[Zune-theme]]></category>

		<guid isPermaLink="false">http://www.computer-faqs.com/?p=742</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft has released the dark stunning theme for Windows XP Desktop call "Zune" which named after the Zune Media (MP3) Player.</p>
<p>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.</p>
<p>You can get a copy for your desktop with link below</p>
<p><span class="media-download"><a href="http://go.microsoft.com/fwlink/?LinkID=75078">Download Zune Theme</a></span></p>
<h4><span class="mediaDoanload">Screenshots of Zune Theme on my Desktop<br />
</span></h4>
<div id="attachment_761" class="wp-caption alignnone" style="width: 310px"><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-zunetheme-03.jpg" rel="lightbox[742]"><img class="size-medium wp-image-761" title="screenshot-zunetheme-03" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-zunetheme-03-300x187.jpg" alt="Zune Theme - Desktop by default" width="300" height="187" /></a><p class="wp-caption-text">Zune Theme - Desktop by default</p></div>
<p><span id="more-742"></span></p>
<h5><span class="mediaDoanload">Desktop Properties Windows</span></h5>
<div id="attachment_743" class="wp-caption alignnone" style="width: 310px"><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-zunetheme-01.png" rel="lightbox[742]"><img class="size-medium wp-image-743" title="screenshot-zunetheme-01" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-zunetheme-01-300x334.png" alt="Zune Theme - Display Properties Windows" width="300" height="334" /></a><p class="wp-caption-text">Zune Theme - Display Properties Windows</p></div>
<h5>Start Menu</h5>
<div id="attachment_747" class="wp-caption alignnone" style="width: 310px"><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-zunetheme-02.jpg" rel="lightbox[742]"><img class="size-medium wp-image-747" title="screenshot-zunetheme-02" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-zunetheme-02-300x312.jpg" alt="Zune Theme - Start Menu" width="300" height="312" /></a><p class="wp-caption-text">Zune Theme - Start Menu</p></div>
<div id="attachment_748" class="wp-caption alignnone" style="width: 260px"><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-zunetheme-03.png" rel="lightbox[742]"><img class="size-full wp-image-748" title="screenshot-zunetheme-03" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-zunetheme-03.png" alt="Inactive Start Button" width="250" height="38" /></a><p class="wp-caption-text">Inactive Start Button</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.computer-faqs.com/2009/01/24/zune-theme-for-windows-xp-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer 8 Beta Showcase</title>
		<link>http://www.computer-faqs.com/2009/01/24/internet-explorer-8-beta-showcase/</link>
		<comments>http://www.computer-faqs.com/2009/01/24/internet-explorer-8-beta-showcase/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 03:41:23 +0000</pubDate>
		<dc:creator>Manet Yim</dc:creator>
				<category><![CDATA[Showcase]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Free-Software]]></category>
		<category><![CDATA[Internet-Explorer]]></category>
		<category><![CDATA[Web-Browser]]></category>

		<guid isPermaLink="false">http://www.computer-faqs.com/?p=700</guid>
		<description><![CDATA[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.
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 [...]]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<div id="attachment_701" class="wp-caption alignright" style="width: 243px"><img class="size-full wp-image-701" title="screenshot-ie8-01" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8-01.png" alt="screenshot-ie8-01" width="233" height="107" /><p class="wp-caption-text">IE 8 Beta</p></div>
<p>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.</p>
<p>I <a href="http://www.microsoft.com/windows/Internet-explorer/beta/default.aspx">download</a> and install IE8 on my Windows XP Professional Desktop.</p>
<p>One thing that I keep waitting for is, <em>I don't have to restart my PC when installing new version of Internet Explorer</em>. In fact, I have to restart my PC or I still see IE7 starting up. But that's ok, it was expected already.<span id="more-700"></span></p>
<p>Now I get to startup IE8 Beta for the first time and it took me through the wizard...</p>
<p><span style="color: #ff0000;">New!</span> I started to see a new feature "Suggested Sites", I enabled it</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-02.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-704" title="screenshot-ie8b-02" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-02-300x221.png" alt="screenshot-ie8b-02" width="300" height="221" /></a></p>
<p>I chose custom settings to see what's available</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-03.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-705" title="screenshot-ie8b-03" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-03-300x221.png" alt="screenshot-ie8b-03" width="300" height="221" /></a></p>
<p>I kept my existing search provider</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-04.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-706" title="screenshot-ie8b-04" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-04-300x221.png" alt="screenshot-ie8b-04" width="300" height="221" /></a></p>
<p><span style="color: #ff0000;">New!</span> Accelerator providers. I'd like to be more personalize, so I chose "Show me a web pages after setup..."</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-05.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-707" title="screenshot-ie8b-05" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-05-300x221.png" alt="screenshot-ie8b-05" width="300" height="221" /></a></p>
<p><span style="color: #ff0000;">New!</span> What is SmartScreen filter? let's turn it on and see what it's all about</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-06.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-708" title="screenshot-ie8b-06" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-06-300x221.png" alt="screenshot-ie8b-06" width="300" height="221" /></a></p>
<p>At this point, I still love Firefox</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-07.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-709" title="screenshot-ie8b-07" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-07-300x221.png" alt="screenshot-ie8b-07" width="300" height="221" /></a></p>
<p>First thing I see after completed the wizard</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-09.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-711" title="screenshot-ie8b-09" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-09-300x200.png" alt="screenshot-ie8b-09" width="300" height="200" /></a></p>
<p>Ops.. I cannot close inactive tab with one click!</p>
<p>I am wondering what else not convenience... let's explore it.</p>
<h3>Exploring</h3>
<h4>Find as you type</h4>
<p>This feature should have been included since version 7. I have been in peace with Firefox for along time, now I know there is alternative.</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-10.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-712" title="screenshot-ie8b-10" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-10-300x188.png" alt="screenshot-ie8b-10" width="300" height="188" /></a></p>
<h4>Page Zoom</h4>
<p>You can use <span style="color: #0000ff;"><strong>Ctrl +</strong></span> to zoom in, <span style="color: #0000ff;"><strong>Ctrl -</strong></span> to zoom out and <strong><span style="color: #0000ff;">Ctrl 0</span></strong> (not shown in the option menu) to reset.</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-11.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-717" title="screenshot-ie8b-11" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-11-300x220.png" alt="screenshot-ie8b-11" width="300" height="220" /></a></p>
<h4>View Source Code</h4>
<p>Attention Software Developer! you can now view source code in IE with Colorized Syntax. Finally your eyes get to relax.</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-12.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-719" title="screenshot-ie8b-12" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-12-300x181.png" alt="screenshot-ie8b-12" width="300" height="181" /></a></p>
<h4>Know how you get here</h4>
<p>Whenever you click on Link (open with new Tab) from another web pages, you will see both tabs  (or more) painted with the same color. So you know where you came from, and you can easily go back to it if needed.</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-13.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-721" title="screenshot-ie8b-13" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-13-300x129.png" alt="screenshot-ie8b-13" width="300" height="129" /></a></p>
<h4>Address Bar Shortcuts</h4>
<p>You can use the following shortcut keys</p>
<ul>
<li><span style="color: #0000ff;"><strong>Shift + Enter</strong></span> : go to auto-completed address from your history</li>
<li><span style="color: #0000ff;"><strong>Enter</strong> </span>: go to current typed url</li>
<li><span style="color: #0000ff;"><strong>Ctrl + Enter</strong></span> : go to current typed domain name with auto complete<br />
<strong>http://</strong>[what you type here]<strong>.com</strong> on both end. eg, if you type <strong>google</strong> it will take you to <strong>http://google.com</strong></li>
<li><span style="color: #0000ff;"><strong>Alt + Enter</strong></span> : go to current typed url in a new Tab</li>
<li><span style="color: #0000ff;"><strong>Alt + Shift + Enter</strong></span> : go to current typed url in a new Tab in the background</li>
</ul>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-14.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-722" title="screenshot-ie8b-14" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-14-300x131.png" alt="screenshot-ie8b-14" width="300" height="131" /></a></p>
<h4>SmartScreen Filter</h4>
<p>I get now get to know what SmartScreen filter is. It is a feature which tells you what is safe, what is not safe with your file downloads and website you are broswing.</p>
<p>This file was downloaded with <strong>safe </strong>report</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-15.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-727" title="screenshot-ie8b-15" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-15-300x264.png" alt="screenshot-ie8b-15" width="300" height="264" /></a></p>
<p>Open <em>google.com.au</em> and click on <em>Tools &gt; SmartScreen Filter &gt; Check this website</em>, I get a safe report message like this</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-15-1.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-734" title="screenshot-ie8b-15-1" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-15-1-300x120.png" alt="screenshot-ie8b-15-1" width="300" height="120" /></a></p>
<h4>Private Browsing</h4>
<p>You can chose to browse web pages without keeping any history if your current session. Use InPrivate feature</p>
<blockquote><p><em>Prevents Internet Explorer from storing data about your browsing session. This includes cookies, temporary Internet files, history, and other data.</em></p></blockquote>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-16.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-729" title="screenshot-ie8b-16" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-16-300x134.png" alt="screenshot-ie8b-16" width="300" height="134" /></a></p>
<h4>Suggested Sites</h4>
<p>Find out how efficient this feature give you, I open <em>google.com.au</em> as current website then I click on Suggested Site button, it gives me this</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-17.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-732" title="screenshot-ie8b-17" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-17-300x212.png" alt="screenshot-ie8b-17" width="300" height="212" /></a></p>
<p>I open <em>yahoo.com.au</em> in a new tab, it gives me this</p>
<p><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-18.png" rel="lightbox[700]"><img class="alignnone size-medium wp-image-731" title="screenshot-ie8b-18" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-ie8b-18-300x258.png" alt="screenshot-ie8b-18" width="300" height="258" /></a></p>
<p>Now I come back to <em>google.com.au</em> tab and click on suggested website, it gives me the suggested sites base on <em>yahoo.com.au</em> ?!</p>
<p>Again I go to <em>microsoft.com</em> it gives me suggested sites base on <em>microsoft.com</em>, but when I come back to <em>yahoo.com.au</em> and <em>google.com.au</em>, it still gives me suggested site base on <em>microsoft.com</em> even if I close microsoft.com tab.</p>
<p>I can say that, this feature only work base on the latest website in the current session, not current tab.</p>
<h4>Message from Author</h4>
<p>For Firefox lover, it's time to give Internet Explorer a try and see how comfortable you feel toward it. I'd love to share any comment you have, please post them here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computer-faqs.com/2009/01/24/internet-explorer-8-beta-showcase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understand Java break and continue Statements</title>
		<link>http://www.computer-faqs.com/2009/01/19/understand-java-break-and-continue-statements/</link>
		<comments>http://www.computer-faqs.com/2009/01/19/understand-java-break-and-continue-statements/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 00:14:57 +0000</pubDate>
		<dc:creator>Manet Yim</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Java-Statement]]></category>

		<guid isPermaLink="false">http://www.computer-faqs.com/?p=560</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>Let's get it right and understand on usage of break and continue Statements in Java Programming Language.</p>
<h4><code>break</code> Statement</h4>
<p>This statement causes iteration to stop/exit immediately, any line remained after this statement will be ignored by the JVM.</p>
<p>It is used in the following loop</p>
<ul>
<li>for</li>
<li>while</li>
<li>do...while</li>
<li>switch</li>
</ul>
<h4><code>continue</code> Statement</h4>
<p>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.<br />
<span id="more-560"></span><br />
It is used in the following loop</p>
<ul>
<li>for</li>
<li>while</li>
<li>do...while</li>
</ul>
<p>Example code below demonstrating how break and continue statement work</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> BreakContinueStm <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
        <span style="color: #000066; font-weight: bold;">int</span> aBreak <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">int</span> bContinue <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;=</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>i <span style="color: #339933;">==</span> <span style="color: #cc66cc;">6</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                <span style="color: #666666; font-style: italic;">// that's enough, exit this for loop here</span>
                <span style="color: #000000; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            aBreak <span style="color: #339933;">=</span> i<span style="color: #339933;">;</span>
            <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;aBreak: &quot;</span> <span style="color: #339933;">+</span> aBreak<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;=</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>i <span style="color: #339933;">&lt;=</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                <span style="color: #666666; font-style: italic;">// not satisfied yet, keep going</span>
                <span style="color: #000000; font-weight: bold;">continue</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            bContinue <span style="color: #339933;">=</span> i<span style="color: #339933;">;</span>
            <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;bContinue: &quot;</span> <span style="color: #339933;">+</span> bContinue<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Result of this program, <code>aBreak</code> stops when <code>i = 6</code> and <code>bContinue</code> starts when <code>i = 6</code> until end of the loop</p>
<pre class="cmdterminal">
aBreak: 1
aBreak: 2
aBreak: 3
aBreak: 4
aBreak: 5
bContinue: 6
bContinue: 7
bContinue: 8
bContinue: 9
bContinue: 10
</pre>
<div class="admedia">
AD » Recommended Java book <a href="http://www.amazon.com/gp/product/0132222205?ie=UTF8&amp;tag=cofa-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0132222205">Java How to Program, 7th Edition</a> ( by Harvey M. Deitel, Paul J. Deitel )</div>
]]></content:encoded>
			<wfw:commentRss>http://www.computer-faqs.com/2009/01/19/understand-java-break-and-continue-statements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add or display favicon on a webpage?</title>
		<link>http://www.computer-faqs.com/2009/01/17/how-to-add-display-favicon-on-a-webpage/</link>
		<comments>http://www.computer-faqs.com/2009/01/17/how-to-add-display-favicon-on-a-webpage/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 00:09:49 +0000</pubDate>
		<dc:creator>Manet Yim</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[favicon]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.computer-faqs.com/?p=641</guid>
		<description><![CDATA[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.
Add favicon
You required to have an image of 16x16 pixels, either PNG, ICO or GIF format
To [...]]]></description>
			<content:encoded><![CDATA[<h4>What is favicon?</h4>
<p><strong>Favicon</strong> is shortcut of favorites icon, also known as website icon, shortcut icon, url icon, or bookmark icon.</p>
<p>On the graphical web browser, this icon locates on the Address bar and Tabs bar as seen in the screenshot below.</p>
<div id="attachment_643" class="wp-caption alignnone" style="width: 310px"><a href="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-favicon-demo.png" rel="lightbox[641]"><img class="size-medium wp-image-643" title="screenshot-favicon-demo" src="http://www.computer-faqs.com/wp-content/uploads/2009/01/screenshot-favicon-demo-300x82.png" alt="Screenshot of favicon" width="300" height="82" /></a><p class="wp-caption-text">Screenshot of favicon</p></div>
<h4>Add favicon</h4>
<p>You required to have an image of <strong><em>16x16</em></strong> pixels, either <strong><em>PNG, ICO </em></strong>or<strong><em> GIF</em></strong> format</p>
<p>To display favicon to your webpage, add <strong>one</strong> of the following html code inside <code>&lt;head&gt;</code> depends on which image format you have.</p>
<blockquote class="codehtml"><p>&lt;head&gt;<br />
&lt;link rel="icon" type="image/x-icon" href="path/myicon.ico"&gt;<br />
&lt;/head&gt;</p></blockquote>
<blockquote class="codehtml"><p>&lt;head&gt;<br />
&lt;link rel="icon" type="image/png" href="path/myicon.png"&gt;<br />
&lt;/head&gt;</p></blockquote>
<blockquote class="codehtml"><p>&lt;head&gt;<br />
&lt;link rel="icon" type="image/gif" href="path/myicon.gif"&gt;<br />
&lt;/head&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.computer-faqs.com/2009/01/17/how-to-add-display-favicon-on-a-webpage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
