<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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/" version="2.0">

<channel>
	<title>pikopong</title>
	
	<link>http://www.pikopong.com/blog</link>
	<description>it's all about knowledge</description>
	<pubDate>Thu, 23 Oct 2008 01:28:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/pikopong" type="application/rss+xml" /><item>
		<title>My First Experience using Canon 40D</title>
		<link>http://www.pikopong.com/blog/2008/10/07/my-first-experience-using-canon-40d/</link>
		<comments>http://www.pikopong.com/blog/2008/10/07/my-first-experience-using-canon-40d/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 00:59:37 +0000</pubDate>
		<dc:creator>mree</dc:creator>
		
		<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://www.pikopong.com/blog/?p=134</guid>
		<description><![CDATA[On the 5th of September 2008, I bought my first DSLR gears during my trip to Kuala Lumpur. The items are Canon 40D, Canon Speedlite 580EX II, Canon 50mm f/1.8 and some other things for about RM 5,000 which I don&#8217;t think is a really good bargain, but definitely better than what I&#8217;ll get if [...]]]></description>
			<content:encoded><![CDATA[<p>On the 5th of September 2008, I bought my first DSLR gears during my trip to Kuala Lumpur. The items are Canon 40D, Canon Speedlite 580EX II, Canon 50mm f/1.8 and some other things for about RM 5,000 which I don&#8217;t think is a really good bargain, but definitely better than what I&#8217;ll get if I bought them in Kelantan.</p>
<p>Ever since that purchase, I&#8217;ve been reading the manual whenever I got free time as I thought how am I supposed to be a better photographer if I don&#8217;t know the full potential of my camera ? I also managed to get some <span style="text-decoration: line-through;">pirated</span> book about the camera such as <a href="http://www.amazon.com/Canon-EOS-Digital-Field-Guide/dp/0470260440/ref=sr_1_2?ie=UTF8&amp;s=books&amp;qid=1223300265&amp;sr=1-2">Canon EOS 40D Digital Field Guide</a>. I was actually preparing myself for my uncle&#8217;s engagement event on the 3rd day of Hari Raya Aidilfitri. However, another event added to my list which is my cousin&#8217;s wedding event. I&#8217;m pretty happy that I finally had the chance to try whatever I learnt to the real world since using the chair in my room as a model is getting boring.</p>
<p>So, fast forward to my cousin&#8217;s wedding day. The main event that day was &#8220;Akad Nikah&#8221; which took place at a mosque near her house. Sadly, on my first try out as a photographer using my new camera, I made a lot of mistakes, lots of them. These are the mistakes that I knew (there are definitely more):</p>
<ol>
<li>I didn&#8217;t identify the main characters for the event thus there are only a few photos of them.</li>
<li>Overuse of f/1.8 resulting a very bad group photos.</li>
<li>Always beware with the additional characters such as children playing around which spoiled my shot with their blur movement.</li>
<li>Wrong setting for shutter speed whenever I want to capture a candid moment such as hugging, shaking hands and so on.</li>
<li>I need to ask them to look at me whenever I want to take photos (yes, I forgot to ask them to do that every time there are other photographers around).</li>
<li>I need to know in advance the settings for the indoor and outdoor. Almost all of my outdoor shots after the event (which took place indoor) were overexposed as I didn&#8217;t have the time to test the correct settings.</li>
<li>Always test other flash exposures even though the initial setting is OK at the first try.</li>
<li>I should&#8217;ve known the limitation of my 50mm lens.</li>
<li>I should not feel shy whenever I want to get close the subject.</li>
</ol>
<p>So, what about the mistakes that I&#8217;ve done during my uncle&#8217;s engagement day ? This is the list:</p>
<ol>
<li>All the previous mistakes ;)</li>
</ol>
<p>However, one thing for sure, I really need to start saving and buy a wide angle lens. 50mm is great for portrait shots, but not for group shots or even two people at some distance in a cramp room. *Sigh*, there&#8217;re still so many things to learn.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pikopong.com/blog/2008/10/07/my-first-experience-using-canon-40d/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Printing to PDF Using CUPS</title>
		<link>http://www.pikopong.com/blog/2008/09/10/printing-to-pdf-using-cups/</link>
		<comments>http://www.pikopong.com/blog/2008/09/10/printing-to-pdf-using-cups/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 02:01:49 +0000</pubDate>
		<dc:creator>mree</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.pikopong.com/blog/?p=107</guid>
		<description><![CDATA[
Install CUPS-PDF based on your distro, you can download if from here.
Click this link http://localhost:631 or type it into your browser.
If the page requested a username and password, just enter your root username and password.
Go the &#8220;Administration&#8221; tab and select &#8220;Add Printer&#8221; in the Printer section.
For &#8220;Add Printer&#8221; page, put a name for your virtual [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>Install CUPS-PDF based on your distro, you can download if from <a title="CUPS-PDF" href="http://www.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/download.shtml" target="_blank">here</a>.</li>
<li>Click this link <a title="CUPS Administration" href="http://localhost:631" target="_blank">http://localhost:631</a> or type it into your browser.</li>
<li>If the page requested a username and password, just enter your root username and password.</li>
<li>Go the <strong>&#8220;Administration&#8221;</strong> tab and select <strong>&#8220;Add Printer&#8221;</strong> in the Printer section.</li>
<li>For <strong>&#8220;Add Printer&#8221;</strong> page, put a name for your virtual PDF printer, any name will do. Then click <strong>&#8220;Continue&#8221;</strong>.</li>
<li>For the second page, that is <strong>&#8220;Device for a&#8221;</strong>, you should select <strong>&#8220;CUPS-PDF (Virtual PDF Driver)&#8221;</strong>. If it&#8217;s not there, then you haven&#8217;t execute Step 1 successfully.</li>
<li>In the 3rd page, choose <strong>&#8220;Generic&#8221;</strong> as the Make and then click <strong>&#8220;Continue&#8221;</strong>.</li>
<li>4th page, choose <strong>&#8220;Generic CUPS-PDF Printer (en)&#8221;</strong> as the model and then click <strong>&#8220;Add Printer&#8221;</strong>. You&#8217;re done, but we need to customize where the file will be located when you printed it.</li>
<li>Edit <strong>/etc/cups/cups-pdf.conf</strong> in your favourite editor.</li>
<li>Put these lines at the end of the file and save it (both can be customized):</li>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="text text" style="font-family:monospace;">Out /home/${USER}/Desktop
Label 1</pre></td></tr></table></div>

</ol>
<ol start="11">
<li>The first line actually tell CUPS to print your file to the Desktop and the second line will make sure your file won&#8217;t be overwritten by the newer one.</li>
<li>Restart your CUPS, for Slackware users, you can type this command <strong>/etc/rc.d/rc.cups restart</strong></li>
<li>So, that&#8217;s all and good luck !</li>
</ol>
<p><strong>Tested on Slackware 12.1, CUPS 1.3.7</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pikopong.com/blog/2008/09/10/printing-to-pdf-using-cups/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Java Printing Fix for Linux with CUPS</title>
		<link>http://www.pikopong.com/blog/2008/09/09/java-printing-fix-for-linux-with-cups/</link>
		<comments>http://www.pikopong.com/blog/2008/09/09/java-printing-fix-for-linux-with-cups/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 02:08:46 +0000</pubDate>
		<dc:creator>mree</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.pikopong.com/blog/?p=103</guid>
		<description><![CDATA[Apparently, there&#8217;s a bug in Java where people using newer version of CUPS cannot print (can&#8217;t even display the print dialog) due to a null pointer exception and this is actually a known bug. So, how do we fix this? For people who use Gnome, you can refer to this page.
However, for people who uses [...]]]></description>
			<content:encoded><![CDATA[<p>Apparently, there&#8217;s a bug in Java where people using newer version of CUPS cannot print (can&#8217;t even display the print dialog) due to a null pointer exception and this is actually a known bug. So, how do we fix this? For people who use Gnome, you can refer to this <a href="https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/156191/comments/18" target="_blank">page</a>.</p>
<p>However, for people who uses non gui environment such as Fluxbox, Openbox and etc (Gnome and KDE user can use these steps too), you can fix it by editing your CUPS printers configuration file. You can get edit the file at <strong>/etc/cups/printers.conf</strong></p>

<div class="wp_syntax"><div class="code"><pre class="text text" style="font-family:monospace;">&lt;DefaultPrinter Printer&gt;
# Printer configuration file for CUPS v1.3.7
# Written by cupsd on 2008-09-08 11:24
.
.
.
Option orientation-requested 3
&lt;/Printer&gt;</pre></div></div>

<p>Make sure you <strong>add line 7</strong> to every configuration for every printer you&#8217;ve installed. If you cannot find the file, you probably haven&#8217;t configured any printer yet.</p>
<p>This fix is simply to make sure CUPS will provide a page orientation setting to Java.</p>
<p>The exception:</p>

<div class="wp_syntax"><div class="code"><pre class="java java" style="font-family:monospace;">Caused by<span style="color: #339933;">:</span> java.<span style="color: #006633;">lang</span>.<span style="color: #003399;">NullPointerException</span><span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">null</span> attribute
        at sun.<span style="color: #006633;">print</span>.<span style="color: #006633;">IPPPrintService</span>.<span style="color: #006633;">isAttributeValueSupported</span><span style="color: #009900;">&#40;</span>IPPPrintService.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">1147</span><span style="color: #009900;">&#41;</span>
        at sun.<span style="color: #006633;">print</span>.<span style="color: #006633;">ServiceDialog</span>$OrientationPanel.<span style="color: #006633;">updateInfo</span><span style="color: #009900;">&#40;</span>ServiceDialog.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">2121</span><span style="color: #009900;">&#41;</span>
        at sun.<span style="color: #006633;">print</span>.<span style="color: #006633;">ServiceDialog</span>$PageSetupPanel.<span style="color: #006633;">updateInfo</span><span style="color: #009900;">&#40;</span>ServiceDialog.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">1263</span><span style="color: #009900;">&#41;</span>
        at sun.<span style="color: #006633;">print</span>.<span style="color: #006633;">ServiceDialog</span>.<span style="color: #006633;">updatePanels</span><span style="color: #009900;">&#40;</span>ServiceDialog.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">437</span><span style="color: #009900;">&#41;</span>
        at sun.<span style="color: #006633;">print</span>.<span style="color: #006633;">ServiceDialog</span>.<span style="color: #006633;">initPrintDialog</span><span style="color: #009900;">&#40;</span>ServiceDialog.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">195</span><span style="color: #009900;">&#41;</span>
        at sun.<span style="color: #006633;">print</span>.<span style="color: #006633;">ServiceDialog</span>.<span style="color: #009900;">&#40;</span>ServiceDialog.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">124</span><span style="color: #009900;">&#41;</span>
        at javax.<span style="color: #006633;">print</span>.<span style="color: #006633;">ServiceUI</span>.<span style="color: #006633;">printDialog</span><span style="color: #009900;">&#40;</span>ServiceUI.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">188</span><span style="color: #009900;">&#41;</span>
        at sun.<span style="color: #006633;">print</span>.<span style="color: #006633;">RasterPrinterJob</span>.<span style="color: #006633;">printDialog</span><span style="color: #009900;">&#40;</span>RasterPrinterJob.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">855</span><span style="color: #009900;">&#41;</span>
        at sun.<span style="color: #006633;">print</span>.<span style="color: #006633;">PSPrinterJob</span>.<span style="color: #006633;">printDialog</span><span style="color: #009900;">&#40;</span>PSPrinterJob.<span style="color: #006633;">java</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">421</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>Refer to some of the discussions here:</p>
<ul>
<li><a href="https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/156191/">Ubuntu Bugs Report</a></li>
<li><a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6633656">Java Bugs Report</a></li>
</ul>
<p>UPDATE: I forgot to add, you need to restart your CUPS after editing the configuration (Thanks to Brandon Bell)</p>
<p><strong>Tested on Slackware 12.1, JDK 1.6 Update 7, CUPS 1.3.7</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pikopong.com/blog/2008/09/09/java-printing-fix-for-linux-with-cups/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Auto Resize JTable Column Width</title>
		<link>http://www.pikopong.com/blog/2008/08/13/auto-resize-jtable-column-width/</link>
		<comments>http://www.pikopong.com/blog/2008/08/13/auto-resize-jtable-column-width/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 06:49:59 +0000</pubDate>
		<dc:creator>mree</dc:creator>
		
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.pikopong.com/blog/?p=88</guid>
		<description><![CDATA[This code should resize your JTable column width based on the contents of the header and data.

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
    public JTable autoResizeColWidth&#40;JTable table, DefaultTableModel model&#41; &#123;
        table.setAutoResizeMode&#40;JTable.AUTO_RESIZE_OFF&#41;;
        table.setModel&#40;model&#41;;
&#160;
        int margin = 5;
&#160;
  [...]]]></description>
			<content:encoded><![CDATA[<p>This code should resize your JTable column width based on the contents of the header and data.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>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
</pre></td><td class="code"><pre class="java java" style="font-family:monospace;">    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">JTable</span> autoResizeColWidth<span style="color: #009900;">&#40;</span><span style="color: #003399;">JTable</span> table, <span style="color: #003399;">DefaultTableModel</span> model<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        table.<span style="color: #006633;">setAutoResizeMode</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">JTable</span>.<span style="color: #006633;">AUTO_RESIZE_OFF</span><span style="color: #009900;">&#41;</span>;
        table.<span style="color: #006633;">setModel</span><span style="color: #009900;">&#40;</span>model<span style="color: #009900;">&#41;</span>;
&nbsp;
        <span style="color: #000066; font-weight: bold;">int</span> margin <span style="color: #339933;">=</span> <span style="color: #cc66cc;">5</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> 0; i <span style="color: #339933;">&lt;</span> table.<span style="color: #006633;">getColumnCount</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000066; font-weight: bold;">int</span>                     vColIndex <span style="color: #339933;">=</span> i;
            <span style="color: #003399;">DefaultTableColumnModel</span> colModel  <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">DefaultTableColumnModel</span><span style="color: #009900;">&#41;</span> table.<span style="color: #006633;">getColumnModel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
            <span style="color: #003399;">TableColumn</span>             col       <span style="color: #339933;">=</span> colModel.<span style="color: #006633;">getColumn</span><span style="color: #009900;">&#40;</span>vColIndex<span style="color: #009900;">&#41;</span>;
            <span style="color: #000066; font-weight: bold;">int</span>                     width     <span style="color: #339933;">=</span> 0;
&nbsp;
            <span style="color: #666666; font-style: italic;">// Get width of column header</span>
            <span style="color: #003399;">TableCellRenderer</span> renderer <span style="color: #339933;">=</span> col.<span style="color: #006633;">getHeaderRenderer</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>renderer <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                renderer <span style="color: #339933;">=</span> table.<span style="color: #006633;">getTableHeader</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getDefaultRenderer</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
            <span style="color: #009900;">&#125;</span>
&nbsp;
            <span style="color: #003399;">Component</span> comp <span style="color: #339933;">=</span> renderer.<span style="color: #006633;">getTableCellRendererComponent</span><span style="color: #009900;">&#40;</span>table, col.<span style="color: #006633;">getHeaderValue</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>, <span style="color: #000066; font-weight: bold;">false</span>, <span style="color: #000066; font-weight: bold;">false</span>, 0, 0<span style="color: #009900;">&#41;</span>;
&nbsp;
            width <span style="color: #339933;">=</span> comp.<span style="color: #006633;">getPreferredSize</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">width</span>;
&nbsp;
            <span style="color: #666666; font-style: italic;">// Get maximum width of column data</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> r <span style="color: #339933;">=</span> 0; r <span style="color: #339933;">&lt;</span> table.<span style="color: #006633;">getRowCount</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; r<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                renderer <span style="color: #339933;">=</span> table.<span style="color: #006633;">getCellRenderer</span><span style="color: #009900;">&#40;</span>r, vColIndex<span style="color: #009900;">&#41;</span>;
                comp     <span style="color: #339933;">=</span> renderer.<span style="color: #006633;">getTableCellRendererComponent</span><span style="color: #009900;">&#40;</span>table, table.<span style="color: #006633;">getValueAt</span><span style="color: #009900;">&#40;</span>r, vColIndex<span style="color: #009900;">&#41;</span>, <span style="color: #000066; font-weight: bold;">false</span>, <span style="color: #000066; font-weight: bold;">false</span>,
                        r, vColIndex<span style="color: #009900;">&#41;</span>;
                width <span style="color: #339933;">=</span> <span style="color: #003399;">Math</span>.<span style="color: #006633;">max</span><span style="color: #009900;">&#40;</span>width, comp.<span style="color: #006633;">getPreferredSize</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">width</span><span style="color: #009900;">&#41;</span>;
            <span style="color: #009900;">&#125;</span>
&nbsp;
            <span style="color: #666666; font-style: italic;">// Add margin</span>
            width <span style="color: #339933;">+=</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">*</span> margin;
&nbsp;
            <span style="color: #666666; font-style: italic;">// Set the width</span>
            col.<span style="color: #006633;">setPreferredWidth</span><span style="color: #009900;">&#40;</span>width<span style="color: #009900;">&#41;</span>;
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">DefaultTableCellRenderer</span><span style="color: #009900;">&#41;</span> table.<span style="color: #006633;">getTableHeader</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getDefaultRenderer</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">setHorizontalAlignment</span><span style="color: #009900;">&#40;</span>
            <span style="color: #003399;">SwingConstants</span>.<span style="color: #006633;">LEFT</span><span style="color: #009900;">&#41;</span>;
&nbsp;
        <span style="color: #666666; font-style: italic;">// table.setAutoCreateRowSorter(true);</span>
        table.<span style="color: #006633;">getTableHeader</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">setReorderingAllowed</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">false</span><span style="color: #009900;">&#41;</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> 0; i <span style="color: #339933;">&lt;</span> table.<span style="color: #006633;">getColumnCount</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003399;">TableColumn</span> column <span style="color: #339933;">=</span> table.<span style="color: #006633;">getColumnModel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getColumn</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span>;
&nbsp;
            column.<span style="color: #006633;">setCellRenderer</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> DefaultTableColour<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">return</span> table;
    <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Example:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="java java" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Must pass the model</span>
<span style="color: #003399;">DefaultTableModel</span> model <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">DefaultTableModel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
jTable <span style="color: #339933;">=</span> autoResizeColWidth<span style="color: #009900;">&#40;</span>jTable, model<span style="color: #009900;">&#41;</span>;</pre></td></tr></table></div>

<p>Tested on JRE v5 and JRE v6</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pikopong.com/blog/2008/08/13/auto-resize-jtable-column-width/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Quick Look on the New Season of the Most Popular TV Series</title>
		<link>http://www.pikopong.com/blog/2008/07/19/quick-look-on-the-new-season-of-the-most-popular-tv-series/</link>
		<comments>http://www.pikopong.com/blog/2008/07/19/quick-look-on-the-new-season-of-the-most-popular-tv-series/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 16:13:17 +0000</pubDate>
		<dc:creator>mree</dc:creator>
		
		<category><![CDATA[vids]]></category>

		<guid isPermaLink="false">http://www.pikopong.com/blog/?p=80</guid>
		<description><![CDATA[Lets take a look what the next season of the most popular TV series got for us :)
CSI: Las Vegas
Season 6 Episode 1: For Warrick (Thursday October 9, 2008)
The ninth season begins with Nick discovering Warrick slumped over in his car after hearing the gunshots. The entire team grieves for their fallen friend while unknown [...]]]></description>
			<content:encoded><![CDATA[<p>Lets take a look what the next season of the most popular TV series got for us :)</p>
<p><span id="more-80"></span><a title="CSI: Las Vegas" href="http://www.imdb.com/title/tt0247082/" target="_blank">CSI: Las Vegas</a></p>
<p><em>Season 6 Episode 1: For Warrick (<span class="f-bold f-666">Thursday October 9, 2008)</span></em></p>
<blockquote><p>The ninth season begins with Nick discovering Warrick slumped over in his car after hearing the gunshots. The entire team grieves for their fallen friend while unknown to them the killer, the Undersheriff, investigates the murder. Also an old friend returns when they hear the news.</p></blockquote>
<p><a title="Desperate Housewives" href="http://www.imdb.com/title/tt0410975/" target="_blank">Desperate Housewives</a></p>
<p><em>Unknown</em></p>
<p><a title="Gossip Girl" href="http://www.imdb.com/title/tt0397442/" target="_blank">Gossip Girl</a></p>
<p><em>Season 2 Episode 1: Summer, Kind of Wonderful (<span class="f-333">September 19, 2007)</span></em></p>
<blockquote><p>Summer in the Hamptons!! In the second season premiere, our favourite Upper East Siders endure the Summer heat in the Hamptons. During the trip in the Hamptons, Blair meets a charming new boy hoping to make Chuck jealous, Nate gets involved in a steamy relationship and Serena questions her past relationship with Dan. Meanwhile on the other side of town, Dan gets a job at a local library. Though things don&#8217;t go according to plan.</p></blockquote>
<p><a title="Heroes" href="http://www.imdb.com/title/tt0813715/" target="_blank">Heroes</a></p>
<p><em><span class="f-bold f-666">Season 3 Episode 1: The Butterfly Effect (September 22, 2008)</span></em></p>
<p><a title="House M.D" href="http://www.imdb.com/title/tt0412142/" target="_blank">House M.D</a></p>
<p><em>Unknown</em></p>
<p><a title="Kyle XY" href="http://www.imdb.com/title/tt0756509/" target="_blank">Kyle XY</a></p>
<p><em>Season  3 Episode 1: It Happened&#8230; (</em><span class="f-bold f-666"><em>January 12, 2009)</em><br />
</span></p>
<blockquote><p>Restrained and weakened, Kyle awakens inside a Latnok building. Despite his predicament, Kyle must escape and rescue Amanda—who is being held in the same building.</p></blockquote>
<p><a title="Lost" href="http://www.imdb.com/title/tt0411008/" target="_blank">Lost</a></p>
<p><em>Unknown</em></p>
<p><a title="Prison Break" href="http://www.imdb.com/title/tt0455275/" target="_blank">Prison Break</a></p>
<p><em><span class="f-bold f-666">Season 4 Episode 1: (September 1, 2008)</span></em></p>
<blockquote><p>Sarah Wayne Callies is returning to Prison Break: &#8220;Prison Break is bringing back Dr. Sara Tancredi, Sarah Wayne Callies, as a regular character for season four. Olmstead makes it clear that isn&#8217;t Sara&#8217;s head after all, and she&#8217;s been alive, although not necessarily well, this whole time.&#8221;</p></blockquote>
<p><a title="Smallville" href="http://www.imdb.com/title/tt0279600/" target="_blank">Smallville</a></p>
<p><em>Season 8 Episode 1: Odyssey (<span class="f-bold f-666">September 18, 2008</span>)</em></p>
<blockquote><p>Green Arrow calls upon fellow heroes Black Canary, Aquaman, and the Martian Manhunter to locate the missing Clark Kent, last seen in the Arctic.</p></blockquote>
<p><a title="Supernatural" href="http://www.imdb.com/title/tt0460681/" target="_blank">Supernatural</a></p>
<p><em><span class="f-bold f-666">Season 4 Episode 1 (Thursday September 4, 2008)</span></em></p>
<blockquote><p>Sam and Bobby have an old friend of Bobby&#8217;s, a psychic, help them try and find the missing Dean.</p></blockquote>
<p>* Will update when I got more information</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pikopong.com/blog/2008/07/19/quick-look-on-the-new-season-of-the-most-popular-tv-series/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Japanese Drama: Kurosagi</title>
		<link>http://www.pikopong.com/blog/2008/06/04/japanese-drama-kurosagi/</link>
		<comments>http://www.pikopong.com/blog/2008/06/04/japanese-drama-kurosagi/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 18:07:01 +0000</pubDate>
		<dc:creator>mree</dc:creator>
		
		<category><![CDATA[vids]]></category>

		<guid isPermaLink="false">http://www.pikopong.com/blog/?p=72</guid>
		<description><![CDATA[
&#8220;In this word, there are three types of swindlers. Those who defraud other people&#8217;s money, Shirosagi. Those who deceive others by manipulating their feelings, Akasagi. And then, using the Shirosagi and Akasagi as his only source of food, is the ultimate swindler in history. His name is Kurosagi&#8221; Pretty cool eh ? That&#8217;s the opening [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Kurosagi" rel="lightbox[pics72]" href="http://www.pikopong.com/blog/wp-content/uploads/2008/06/kurosagi.jpg" rel="lightbox[72]"><img class="attachment wp-att-74 alignnone" src="http://www.pikopong.com/blog/wp-content/uploads/2008/06/kurosagi.jpg" alt="Kurosagi" width="203" height="281" /></a></p>
<p><em>&#8220;In this word, there are three types of swindlers. Those who defraud other people&#8217;s money, Shirosagi. Those who deceive others by manipulating their feelings, Akasagi. And then, using the Shirosagi and Akasagi as his only source of food, is the ultimate swindler in history. His name is Kurosagi&#8221;</em> Pretty cool eh ? That&#8217;s the opening text of this drama.</p>
<p><span id="more-72"></span><br />
Kurosagi is the latest JDrama I&#8217;ve watched. I&#8217;m actually not really a fan of JDrama since most of the stories are more about relationships. I haven&#8217;t known any drama that focuses more on action and stuffs, but maybe that&#8217;s because I&#8217;m just not exposed enough to the world of JDrama ;) I think the last time JDrama I watched was <a title="Friends" href="http://wiki.d-addicts.com/Friends_2002" target="_blank">Friends</a> (god damn <a title="Friends" href="http://wiki.d-addicts.com/Fukada_Kyoko" target="_blank">Kyoko Fukada</a> looks so cute in this drama).</p>
<p>Anyway, enough of Friends, I wanna talk about Kurosagi. The drama is about how a victim of a con case which in turns became a con artist himself. The main difference between him and other swindlers is that he only cons from bad swindlers. That storyline alone got me hooked to this 11 episodes drama. The story kinda like <a title="Matchstick Men" href="http://www.imdb.com/title/tt0325805/" target="_blank">Matchstick Men</a> by <a title="Nicholas Cage" href="http://www.imdb.com/name/nm0000115/" target="_blank">Nicholas Cage</a>. So, if you like this Comedy/Drama/Thriller/Crime/Romance (just a little bit), go grab the DVD, totally worth it, but of course, I just downloaded it from the net :) Oh yes, you can get more information about the actor and the actress from <a title="DramaWiki" href="http://wiki.d-addicts.com/Kurosagi" target="_blank">DramaWiki</a>. Enjoy the drama!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pikopong.com/blog/2008/06/04/japanese-drama-kurosagi/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Reading MyKad using Visual Basic</title>
		<link>http://www.pikopong.com/blog/2008/05/28/reading-mykad-using-visual-basic/</link>
		<comments>http://www.pikopong.com/blog/2008/05/28/reading-mykad-using-visual-basic/#comments</comments>
		<pubDate>Tue, 27 May 2008 16:32:38 +0000</pubDate>
		<dc:creator>mree</dc:creator>
		
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.pikopong.com/blog/?p=69</guid>
		<description><![CDATA[It seems that a lot of people asking how to read MyKad using Visual Basic, but since I don&#8217;t have the slightest idea on how to code in VB, I started to search around. To my surprise, Xenon (the one who reverse engineered MyKad to get the APDU) actually wrote a small application in VB [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that a lot of people asking how to read MyKad using Visual Basic, but since I don&#8217;t have the slightest idea on how to code in VB, I started to search around. To my surprise, <a title="Xenon's profile in Lowyat.NET" href="http://forum.lowyat.net/index.php?showuser=22825" target="_blank">Xenon</a> (the one who reverse engineered MyKad to get the APDU) actually wrote a small application in VB to read MyKad. So, for those who can&#8217;t afford to buy SDK from commercial company, you can download the code here for FREE !</p>
<p><a title="VB Application to read MyKad" rel="lightbox[pics69]" href="http://www.pikopong.com/blog/wp-content/uploads/2008/05/mykad-vb.jpg" rel="lightbox[69]"><img class="attachment wp-att-70" src="http://www.pikopong.com/blog/wp-content/uploads/2008/05/mykad-vb.thumbnail.jpg" alt="VB Application to read MyKad" width="200" height="184" /></a><br />
<br clear="all"><br />
<a title="View the discussion" href="http://forum.lowyat.net/topic/441431/+0" target="_blank">View the discussion</a><br />
<a title="Code download" href="http://forum.lowyat.net/index.php?s=b6af87093aa7ba9a66042af53c1ebb49&amp;act=Attach&amp;type=post&amp;id=220777" target="_blank">Download the code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pikopong.com/blog/2008/05/28/reading-mykad-using-visual-basic/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hospital Universiti Sains Malaysia at WCIT 2008</title>
		<link>http://www.pikopong.com/blog/2008/05/25/hospital-universiti-sains-malaysia-at-wcit-2008/</link>
		<comments>http://www.pikopong.com/blog/2008/05/25/hospital-universiti-sains-malaysia-at-wcit-2008/#comments</comments>
		<pubDate>Sun, 25 May 2008 10:37:25 +0000</pubDate>
		<dc:creator>mree</dc:creator>
		
		<category><![CDATA[husm]]></category>

		<guid isPermaLink="false">http://www.pikopong.com/blog/?p=56</guid>
		<description><![CDATA[
In case you didn&#8217;t know, HUSM stands for Hospital Universiti Sains Malaysia and I&#8217;m currently working there. Early this year, my head of the department got invited by MDeC to this event. The event took place at Kuala Lumpur Convention Center from 18/5/2008 to 22/5/2008. You can read all the information about WCIT here. Read [...]]]></description>
			<content:encoded><![CDATA[<div class="imageframe alignleft" style="width: 195px;"><a title="WCIT" rel="lightbox[pics56]" href="http://www.pikopong.com/blog/wp-content/uploads/2008/05/wcit.jpg" rel="lightbox[56]"><img class="alignleft" style="border: 0pt none ; float: left;" src="http://www.pikopong.com/blog/wp-content/uploads/2008/05/wcit.jpg" alt="WCIT 2008" width="195" height="116" /></a></div>
<p>In case you didn&#8217;t know, HUSM stands for Hospital Universiti Sains Malaysia and I&#8217;m currently working there. Early this year, my head of the department got invited by MDeC to this event. The event took place at Kuala Lumpur Convention Center from 18/5/2008 to 22/5/2008. You can read all the information about WCIT <a title="WCIT Official Website" href="http://www.wcit2008.org/" target="_blank">here</a>. Read more for further information about this event.</p>
<p><span id="more-56"></span></p>
<p>To my surprise, we were the only hospital that manages our development software all by ourselves. Even though Hospital Universiti Kebangsaan Malaysia started developing their own, they still rely on vendor in terms of the hardware and the database (they&#8217;re using Oracle). Other hospital didn&#8217;t actually bring their own IT Department people, instead they sent their vendors. However, they&#8217;re some from Kementerian Kesihatan Malaysia who brought their own IT people even though the application they brought was coded by the vendor (the only difference is that they own the code, not the vendor).</p>
<p>The event was a really an eye opener for me. I saw lots of new technologies that has been integrated into our daily lives. It&#8217;s pretty cool to see the advancement of IT industries in Malaysia. I managed to meet some interesting developers, managers and others who has a lot of experience in the industry itself. Not to forget, I also managed to come close to our Prime Minister and also Yang di Pertuan Agong. It was almost as I could actually slap their back, but of course I didn&#8217;t do it, hey, I still love my job :)</p>
<p>However, I&#8217;m a little bit disappointed with the technology used. Lots of people/developers/vendors in the government still rely on non-open source software. Why should you pay when you can get it free? That&#8217;s what HUSM is trying to say in the event. We&#8217;ve developed our own software and save millions of ringgit, but of course, other managements don&#8217;t care, they think as long as they have the money, they&#8217;ll just spend it the max. What they don&#8217;t realize is that the money that shouldn&#8217;t be spent in the first place could be used for other things. Now, imagine that mindset in each and every head of the department (including non-IT) in Malaysia. We could actually save billions and our IT people will gain knowledge more than ever.</p>
<p>I&#8217;m also surprised other IT Department didn&#8217;t bother to ask us much about the technology that is used in our applications. I mean, it&#8217;s not that weird if the end user didn&#8217;t ask what database that we use, but IT people ? Come on, it&#8217;s like a chef is not interested in asking about the recipe (ok, maybe bad analogy here, but you get my point, right ?).</p>
<p>Even though we just got small booth (read: very very small), I think we somehow manage to tell the people that HUSM is different. I&#8217;m looking forward to another event like this. Till then, enjoy the photos taken using Canon A710 at my <a title="WCIT 2008 Photos" href="http://picasaweb.google.com/aurorius/WCIT2008" target="_blank">Picasa Web Albums</a>.</p>
<p>p/s: Thanks to MDeC for the invitation, we really appreciate it :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pikopong.com/blog/2008/05/25/hospital-universiti-sains-malaysia-at-wcit-2008/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Printing to Zebra S4M Using Java and ZPL II</title>
		<link>http://www.pikopong.com/blog/2008/05/11/printing-to-zebra-s4m-using-java-and-zpl-ii/</link>
		<comments>http://www.pikopong.com/blog/2008/05/11/printing-to-zebra-s4m-using-java-and-zpl-ii/#comments</comments>
		<pubDate>Sun, 11 May 2008 01:44:34 +0000</pubDate>
		<dc:creator>mree</dc:creator>
		
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.pikopong.com/blog/?p=55</guid>
		<description><![CDATA[Apparently there&#8217;re some codes scattered on the net telling people that you can print to a Zebra printer by sending ZPL II codes using PrintService. But the problem is, it&#8217;s not working, I don&#8217;t know why, maybe because of a different version of printer or model but I&#8217;m pretty sure the thing that came out [...]]]></description>
			<content:encoded><![CDATA[<p>Apparently there&#8217;re some codes scattered on the net telling people that you can print to a Zebra printer by sending ZPL II codes using PrintService. But the problem is, it&#8217;s not working, I don&#8217;t know why, maybe because of a different version of printer or model but I&#8217;m pretty sure the thing that came out from the printer is just ordinary text not barcode which is what the code was supposed to output.</p>
<p><b>UPDATE: Problem solved and we know have 3 ways in printing using Zebra S4M</b><br />
<span id="more-55"></span></p>
<h3>New Version</h3>
<p>Thanks to <a href="#comment-206">Oleg</a> for pointing out on how to print using Zebra S4M connected either via USB or network.</p>
<p>The solution is pretty simple, all you have to do is do not install Zebra S4M as a Zebra S4M (sounds weird, I know), instead, just install it as a local raw printer (Linux) or generic text printer (Windows). </p>
<p>For CUPS user in Linux, this is the example for the correct configurations:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="text text" style="font-family:monospace;">#/etc/cups/printers.conf
&lt;Printer Zebra&gt;
Info
Location
DeviceURI socket://10.1.1.5:9100
State Idle
StateTime 1223445299
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
Option orientation-requested 3
&lt;/Printer&gt;</pre></td></tr></table></div>

<p>You can always add the printer using the web interface, just make sure you choose the <b>RAW as the Make/Manufacturer and Model/Driver</b>.</p>
<p>For Windows user, please take a look at <a href="#comment-206">Oleg</a> comment.</p>
<p>Test this Java code, it should print out a barcode:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>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
</pre></td><td class="code"><pre class="java java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.print.Doc</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.print.DocFlavor</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.print.DocPrintJob</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.print.PrintException</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.print.PrintService</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.print.PrintServiceLookup</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.print.SimpleDoc</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.print.attribute.PrintServiceAttribute</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.print.attribute.standard.PrinterName</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> SimplePrint <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: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
&nbsp;
            PrintService psZebra <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span>;
            <span style="color: #003399;">String</span> sPrinterName <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span>;
            PrintService<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> services <span style="color: #339933;">=</span> PrintServiceLookup.<span style="color: #006633;">lookupPrintServices</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">null</span>, <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</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> 0; i <span style="color: #339933;">&lt;</span> services.<span style="color: #006633;">length</span>; i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
                PrintServiceAttribute attr <span style="color: #339933;">=</span> services<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #006633;">getAttribute</span><span style="color: #009900;">&#40;</span>PrinterName.<span style="color: #000000; font-weight: bold;">class</span><span style="color: #009900;">&#41;</span>;
                sPrinterName <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>PrinterName<span style="color: #009900;">&#41;</span> attr<span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getValue</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>sPrinterName.<span style="color: #006633;">toLowerCase</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;zebra&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;=</span> 0<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    psZebra <span style="color: #339933;">=</span> services<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>;
                    <span style="color: #000000; font-weight: bold;">break</span>;
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
&nbsp;
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>psZebra <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">null</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><span style="color: #0000ff;">&quot;Zebra printer is not found.&quot;</span><span style="color: #009900;">&#41;</span>;
                <span style="color: #000000; font-weight: bold;">return</span>;
            <span style="color: #009900;">&#125;</span>
            DocPrintJob job <span style="color: #339933;">=</span> psZebra.<span style="color: #006633;">createPrintJob</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
            <span style="color: #003399;">String</span> s <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;^XA^FO100,40^BY3^B3,,30^FD123ABC^XZ&quot;</span>;
&nbsp;
            <span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> by <span style="color: #339933;">=</span> s.<span style="color: #006633;">getBytes</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
            DocFlavor flavor <span style="color: #339933;">=</span> DocFlavor.<span style="color: #006633;">BYTE_ARRAY</span>.<span style="color: #006633;">AUTOSENSE</span>;
            Doc doc <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> SimpleDoc<span style="color: #009900;">&#40;</span>by, flavor, <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>;
            job.<span style="color: #006633;">print</span><span style="color: #009900;">&#40;</span>doc, <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>;
&nbsp;
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span>PrintException e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            e.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #009900;">&#125;</span>      
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h3>Old Version</h3>
<p>So, I started looking around for other methods. I even tried posting on java&#8217;s forum and offered 10 duke points, but no one seems to answer my question. After googling around, I found out that I could upload a file containing the ZPL II to the printer, so, I tried and it did work. But another problem arise, Two people cannot ftp simultaneously due to the limited access set by the printer.</p>
<p>Printing using FTP (I&#8217;m using <a href="http://commons.apache.org/net/">Apache Commons Net</a> library)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>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
</pre></td><td class="code"><pre class="java java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.FileInputStream</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">org.apache.commons.net.ftp.FTP</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">org.apache.commons.net.ftp.FTPClient</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> FtpPrint <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: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
&nbsp;
            FTPClient f <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> FTPClient<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;            
&nbsp;
            f.<span style="color: #006633;">connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;10.1.127.3&quot;</span><span style="color: #009900;">&#41;</span>;
            f.<span style="color: #006633;">login</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;anonymous&quot;</span>, <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span>;
            f.<span style="color: #006633;">setFileType</span><span style="color: #009900;">&#40;</span>FTP.<span style="color: #006633;">ASCII_FILE_TYPE</span><span style="color: #009900;">&#41;</span>;                            
&nbsp;
            <span style="color: #003399;">FileInputStream</span> in <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FileInputStream</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/path/to/file&quot;</span><span style="color: #009900;">&#41;</span>;
            <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>f.<span style="color: #006633;">storeFile</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;filename&quot;</span>, in<span style="color: #009900;">&#41;</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><span style="color: #0000ff;">&quot;Upload ok&quot;</span><span style="color: #009900;">&#41;</span>;
            <span style="color: #009900;">&#125;</span>                
&nbsp;
            f.<span style="color: #006633;">logout</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
            f.<span style="color: #006633;">disconnect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</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;">Exception</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            e.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>In the end I had to find another solution. After 3 days of searching the internet up and down, I found out that Zebra&#8217;s website offered a piece of code in Java to print using ZPL II using socket programming which automatically solve all of my problems, I was like, what the.. Note to myself, always search for the manufacturer site before googling around. However, a few modifications needed for the given code such as the printer port and the language sent. You can get the codes below:</p>
<p>Printing using socket (Got it from <a href="https://support.zebra.com/OA_HTML/csksxvm.jsp?jttst0=6_50258%2C50258%2C-1%2C0%2C&amp;jtfm0=_0_0_-1_-1_f_nv_&amp;etfm1=&amp;jfn=ZG475CC1302579FD98DD20509BA1F018056DB25EA94BE43E64ABCEA4EE055CBFCBC070D460BF23576916A320D9C764FA1B97&amp;oas=PC1xz_mfEZMp2FfPr_jlfQ..&amp;nSetId=20410&amp;nBrowseCategoryId=10464&amp;cskViewSolSourcePage=cskmbasicsrch.jsp%3FcategoryId%3D10464%26fRange%3Dnull%26fStartRow%3D0%26fSortBy%3D2%26fSortByOrder%3D1">Zebra website</a>)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="java java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.DataOutputStream</span>;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.net.Socket</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> SocketPrint <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> argv<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">Exception</span> <span style="color: #009900;">&#123;</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> 0; i <span style="color: #339933;">&amp;</span>lt; <span style="color: #cc66cc;">10</span>; i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003399;">Socket</span> clientSocket <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Socket</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;10.1.127.3&quot;</span>, <span style="color: #cc66cc;">9100</span><span style="color: #009900;">&#41;</span>;
            <span style="color: #003399;">DataOutputStream</span> outToServer <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">DataOutputStream</span><span style="color: #009900;">&#40;</span>clientSocket.<span style="color: #006633;">getOutputStream</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;
            outToServer.<span style="color: #006633;">writeBytes</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;^XA^FO100,40^BY3^B3,,30^FD123ABC^XZ&quot;</span><span style="color: #009900;">&#41;</span>;
            clientSocket.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p><a href="http://www.zebra.com/id/zebra/na/en/index/products/printers/industrial_commercial/s4m.4.tabs.html">Download guide to ZPL II</a></p>
<p><strong>UPDATE: This only works on S4M with a PrintServer attached to it. I still don&#8217;t know how to print directly using USB cable. If anyone has an idea, please contact me or put your link in the comment box. Thanks :)</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pikopong.com/blog/2008/05/11/printing-to-zebra-s4m-using-java-and-zpl-ii/feed/</wfw:commentRss>
		</item>
		<item>
		<title>List of TV Series You Must Watch</title>
		<link>http://www.pikopong.com/blog/2008/05/08/list-of-tv-series-you-must-watch/</link>
		<comments>http://www.pikopong.com/blog/2008/05/08/list-of-tv-series-you-must-watch/#comments</comments>
		<pubDate>Wed, 07 May 2008 16:08:25 +0000</pubDate>
		<dc:creator>mree</dc:creator>
		
		<category><![CDATA[vids]]></category>

		<guid isPermaLink="false">http://www.pikopong.com/blog/?p=43</guid>
		<description><![CDATA[Since I got nothing to do on this boring weekend, I decided to share with you people my favorite TV Series. So here goes the list with some information about it, oh, by the way, it may contain a little bit spoiler for those who haven’t watch it, but I’ll try my best to keep [...]]]></description>
			<content:encoded><![CDATA[<p>Since I got nothing to do on this boring weekend, I decided to share with you people my favorite TV Series. So here goes the list with some information about it, oh, by the way, it may contain a little bit spoiler for those who haven’t watch it, but I’ll try my best to keep it to the minimum so that it won’t ruin your experience if you decided to watch it.<br />
<span id="more-43"></span><br />
<a title="CSI: Las Vegas" href="http://www.imdb.com/title/tt0247082/" target="_blank"><strong>CSI: Las Vegas</strong></a></p>
<p><a title="CSI: Las Vegas" rel="lightbox[pics43]" href="http://www.pikopong.com/blog/wp-content/uploads/2008/05/csi.jpg" rel="lightbox[43]"><img class="attachment wp-att-44 alignnone" src="http://www.pikopong.com/blog/wp-content/uploads/2008/05/csi.thumbnail.jpg" alt="" width="132" height="200" /></a></p>
<p>You may ask, why not CSI Miami or CSI New York ? Simply because it’s the first and the leader, <a href="http://www.imdb.com/name/nm0676973/" target="_blank">Gil Grissom</a>. is actually a scientist (in the show, not in real life) which to me is so freaking cool. Compared to other CSIs, others are not scientist. But don’t get me wrong, I do like CSI Miami (due to the coolness of <a href="http://www.imdb.com/name/nm0000325/" target="_blank">Lt. Horatio</a> Caine), it’s just that I like Las Vegas more. Cases presented are much more mysterious, weird, and complicated than the others. Remember last season criminal, the Miniature Killer ? The one who killed people and then send a miniature model of the crime scene to the CSI team, totally wicked.</p>
<p><a title="Desperate Housewives" href="http://www.imdb.com/title/tt0410975/" target="_blank"><strong>Desperate Housewives</strong></a></p>
<p><a title="Desperate Housewives" rel="lightbox[pics43]" href="http://www.pikopong.com/blog/wp-content/uploads/2008/05/desphouse.jpg" rel="lightbox[43]"><img class="attachment wp-att-45 alignnone" src="http://www.pikopong.com/blog/wp-content/uploads/2008/05/desphouse.thumbnail.jpg" alt="" width="152" height="200" /></a></p>
<p>I still remember the first time I heard about this TV Series, I was like, the only reason I would watch a TV Series displaying old housewives together is because <a href="http://www.imdb.com/name/nm0000159/" target="_blank">Teri Hatcher</a> is in it. I became one of her fan due to her act in <a href="http://www.imdb.com/title/tt0106057/" target="_blank">Lois &amp; Clark: The New Adventures of Superman</a>. So, I decided to watch the first episode and then, I’m totally hooked to the TV Series not just because of Teri Hatcher anymore, but also because of <a href="http://www.imdb.com/name/nm0519456/" target="_blank">Eva Longoria</a> and of course, the storyline which is also interesting. Who would have guessed, a beautiful neighborhood got so many secrets hidden inside their houses and that&#8217;s what make Desperate Housewives so interesting.</p>
<p><a title="Gossip Girl" href="http://www.imdb.com/title/tt0397442/" target="_blank"><strong>Gossip Girl</strong></a></p>
<p><a title="Gossip Girl" rel="lightbox[pics43]" href="http://www.pikopong.com/blog/wp-content/uploads/2008/05/gg.jpg" rel="lightbox[43]"><img class="attachment wp-att-46 alignnone" src="http://www.pikopong.com/blog/wp-content/uploads/2008/05/gg.thumbnail.jpg" alt="" width="133" height="200" /></a></p>
<p>I didn’t pay much attention at all when this TV Series was launched. I did read about its review on how <a href="http://www.imdb.com/title/tt0412253/" target="_blank">Kristen Bell</a> from <a href="http://www.imdb.com/title/tt0412253/" target="_blank">Veronica Mars</a> narrates the show as the &#8220;Gossip Girl&#8221; herself, the story which is somehow almost similar to <a href="http://www.imdb.com/title/tt0362359/" target="_blank">The O.C</a> (my favorite too). One day, my friend recommended me to watch it, so, I thought since I don’t have any teen drama to watch at that moment, I decided to give it a try, of course, I got hooked up to this one too. The first thing I noticed is one of the actor, the beautiful <a href="http://www.imdb.com/title/tt0362359/" target="_blank">Leighton Meester</a> which appeared before in House as one of her patient that fall in love with House just because she got disease that can fool her emotion. She definitely act very well for her character as a classy, beautiful, manipulative and rich. But, it&#8217;s not just about her, others act very well too.</p>
<p><a title="Heroes" href="http://www.imdb.com/title/tt0813715/" target="_blank"><strong>Heroes</strong></a></p>
<p><a title="Heroes" rel="lightbox[pics43]" href="http://www.pikopong.com/blog/wp-content/uploads/2008/05/heroes.jpg" rel="lightbox[43]"><img class="attachment wp-att-47 alignnone" src="http://www.pikopong.com/blog/wp-content/uploads/2008/05/heroes.thumbnail.jpg" alt="" width="134" height="200" /></a></p>
<p>I don’t think I need to introduce this one, one of the most popular TV Series at the moment. Even though, it’s more like <a href="http://www.imdb.com/title/tt0389564/" target="_blank">The 4400</a>, only it’s so much better. This show got everything, flying, mind reading, bending space and time, invisible, fast healing, nuclear bomb, you just name it. My favorite character is definitely Peter Petrelli, the one who can absorb any abilities, that ability is just so freaking cool.</p>
<p><a title="House M.D" href="http://www.imdb.com/title/tt0412142/" target="_blank"><strong>House M.D</strong></a></p>
<p><a title="House M.D" rel="lightbox[pics43]" href="http://www.pikopong.com/blog/wp-content/uploads/2008/05/house.jpg" rel="lightbox[43]"><img class="attachment wp-att-48 alignnone" src="http://www.pikopong.com/blog/wp-content/uploads/2008/05/house.thumbnail.jpg" alt="" width="135" height="200" /></a></p>
<p>I never like <a href="http://www.imdb.com/title/tt0108757/" target="_blank">E.R</a> much, House is the only medical show that interests me specifically because it deals with weird deseases and solve it like it&#8217;s a puzzle. Even though my friends from medical departments said that House is a stupid show since it shows how the doctor do all the work, from MRI, to X-Ray, to Lab Testing and others which is totally a lie since no doctors can do all that stuff alone. But, who cares ? I’m so glad I’m not in the medical field, coz, if I do, I won’t be able to enjoy this show. The most interesting part of this show is not about the medical itself, it’s about Dr House himself. The way he talks is just way too cool. I definitely like the way he being sarcastic to others around him. I also learned about a few weird deseases after watching this one.</p>
<p><a href="http://www.imdb.com/title/tt0805663/" target="_blank"><strong>Jericho</strong></a></p>
<p><a title="Jericho" rel="lightbox[pics43]" href="http://www.pikopong.com/blog/wp-content/uploads/2008/05/jericho.jpg" rel="lightbox[43]"><img class="attachment wp-att-49 alignnone" src="http://www.pikopong.com/blog/wp-content/uploads/2008/05/jericho.thumbnail.jpg" alt="" width="147" height="200" /></a></p>
<p>The storyline is indeed interesting. Some people said the show became worse at the end of Season 1. But seriously, you people just hold on and watch till the end of this TV Series. The ending is so well done that I felt I don’t care anymore if this show discontinued, simply because it has been ended very well. This is one of the show when it was cancelled, people got angry and started to send tons of nuts to the tv station just to show how many people are supporting this show.</p>
<p><a href="http://www.imdb.com/title/tt0756509/" target="_blank"><strong>Kyle XY</strong></a></p>
<p><a title="Kyle XY" rel="lightbox[pics43]" href="http://www.pikopong.com/blog/wp-content/uploads/2008/05/kyle-xy.jpg" rel="lightbox[43]"><img class="attachment wp-att-50 alignnone" src="http://www.pikopong.com/blog/wp-content/uploads/2008/05/kyle-xy.thumbnail.jpg" alt="" width="150" height="200" /></a></p>
<p>This is only show for people who likes to science fiction series. But of course, if you watch this series just because of the ‘cute’ main actor, <a href="http://www.imdb.com/name/nm1678720/" target="_blank">Kyle</a> himself, or maybe the heroin, the beautiful <a href="http://www.imdb.com/name/nm0698977/" target="_blank">Amanda</a>, I won’t blame you. The story got better when Kyle’s secret being exposed one by one. This is more like Heroes except there’s only one Hero where he can perform multiple extraordinary capabilities due to his powerful mind.</p>
<p><a title="Lost" href="http://www.imdb.com/title/tt0411008/" target="_blank"><strong>Lost</strong></a></p>
<p><a title="Lost" rel="lightbox[pics43]" href="http://www.pikopong.com/blog/wp-content/uploads/2008/05/lost.jpg" rel="lightbox[43]"><img class="attachment wp-att-51 alignnone" src="http://www.pikopong.com/blog/wp-content/uploads/2008/05/lost.thumbnail.jpg" alt="" width="152" height="200" /></a></p>
<p>I seriously don’t understand why people would watch a TV Series displaying a bunch of people living on a remote island. I mean, what story could they possibly make ? So, I tried the first episode, oh my, I was so wrong about this one. The mystery about the island itself is enough to get me hooked. But if you don’t like waiting for the answer of everything happening on that island, you should just skip this one. It’s a very torturing moment waiting for the answer :(</p>
<p><a href="http://www.imdb.com/title/tt0455275/" target="_blank"><strong>Prison Break</strong></a></p>
<p><a title="Prison Break" rel="lightbox[pics43]" href="http://www.pikopong.com/blog/wp-content/uploads/2008/05/pb.jpg" rel="lightbox[43]"><img class="attachment wp-att-52 alignnone" src="http://www.pikopong.com/blog/wp-content/uploads/2008/05/pb.thumbnail.jpg" alt="" width="135" height="200" /></a></p>
<p>The first season of this show is definitely the best. I was so addicted to this show, just to know what will happen in the next episode. Of course this is an interesting show, put a genius in a prison and watch him escape, that’s just so insanely cool. But it got worse in the second season, however, the third season became better, but still can’t beat the first season. By the way, every time I recommend Prison Break to anyone I know, they all seems can’t get enough of it, so, maybe you should try it if you just heard about this one for the first time :)</p>
<p><a title="Smallville" href="http://www.imdb.com/title/tt0279600/" target="_blank"><strong>Smallville</strong></a></p>
<p><a title="Smallville" rel="lightbox[pics43]" href="http://www.pikopong.com/blog/wp-content/uploads/2008/05/smallville.jpg" rel="lightbox[43]"><img class="attachment wp-att-53 alignnone" src="http://www.pikopong.com/blog/wp-content/uploads/2008/05/smallville.thumbnail.jpg" alt="" width="133" height="200" /></a></p>
<p>Who don’t like Superman ? If you like Superman, you’ll definitely like this one, at least for a while. Getting a little boring from time to time due to the storyline. The only reason I’m still watching this one is because the current season likes to talks about the Superman’s secret. Thank god the <a href="http://www.imdb.com/name/nm0471036/" target="_blank">heroin </a>is in the coma right now (in the show), if not, this one will suck more.</p>
<p><a title="Supernatural" href="http://www.imdb.com/title/tt0460681/" target="_blank"><strong>Supernatural</strong></a></p>
<p><a title="Supernatural" rel="lightbox[pics43]" href="http://www.pikopong.com/blog/wp-content/uploads/2008/05/supernatural.jpg" rel="lightbox[43]"><img class="attachment wp-att-54 alignnone" src="http://www.pikopong.com/blog/wp-content/uploads/2008/05/supernatural.thumbnail.jpg" alt="" width="137" height="200" /></a></p>
<p>Put ghosts, funny and cool guys, hot girls crying for help and black magic into a story, you got a good TV Series. Supernatural is more like a Ghostbusters except that it’s better and most of the ghosts are based on the real one from around the world. It’s always cool to watch <a href="http://www.imdb.com/name/nm0010075/" target="_blank">Dean</a> and <a href="http://www.imdb.com/name/nm0655585/" target="_blank">Sam</a> do some hocus pocus to destroy the ghosts, which usually boils to the same thing, either cremated the dead body or recite some weird words.</p>
<p>I guess that&#8217;s all, so, what about you, tell me a little bit your favorite show :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pikopong.com/blog/2008/05/08/list-of-tv-series-you-must-watch/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
