<?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>@dtinth&#039;s Blog &#187; Random Stuff</title>
	<atom:link href="http://blog.dt.in.th/category/random-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dt.in.th</link>
	<description>Personal Weblog of Thai Pangsakulyanont</description>
	<lastBuildDate>Wed, 30 Nov 2011 07:53:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Random Post: Changing Theme</title>
		<link>http://blog.dt.in.th/2011/06/random-post-changing-theme/</link>
		<comments>http://blog.dt.in.th/2011/06/random-post-changing-theme/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 17:35:42 +0000</pubDate>
		<dc:creator>the DtTvB</dc:creator>
				<category><![CDATA[Random Stuff]]></category>

		<guid isPermaLink="false">http://blog.dt.in.th/?p=575</guid>
		<description><![CDATA[So I installed another WordPress installation on another site and then suddenly I like their default theme, TwentyTen. It&#8217;s well made, has beautiful typography, and stuff, so I&#8217;m making a new theme based on it (see how easy!). It&#8217;s not &#8230; <a href="http://blog.dt.in.th/2011/06/random-post-changing-theme/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So I installed another WordPress installation on another site and then suddenly I like their default theme, TwentyTen. It&#8217;s well made, has beautiful typography, and stuff, so I&#8217;m making a new theme based on it (<a href="http://blog.dt.in.th/wp-content/themes/dtinth/style.css">see how easy!</a>). It&#8217;s not quite finished yet (as of writing) so you may see some changes.</p>

<p>Actually I got nothing (better) to do today so I just post this random blog post. Actually, I blogged less in the past two months (well, I didn&#8217;t blog at all in the past two months!), because during that time, I felt more like coding than blogging (spent most of my time with <a href="https://github.com/dtinth/">stuff on GitHub</a> or <a href="https://code.google.com/p/sm-ssc/">StepMania 5</a>).</p>

<p>And also I feel like I should put up more random blog posts, like this one! ^^</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dt.in.th/2011/06/random-post-changing-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I Put Stuff On GitHub</title>
		<link>http://blog.dt.in.th/2011/03/github-stuff/</link>
		<comments>http://blog.dt.in.th/2011/03/github-stuff/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 09:08:22 +0000</pubDate>
		<dc:creator>the DtTvB</dc:creator>
				<category><![CDATA[Random Stuff]]></category>

		<guid isPermaLink="false">http://blog.dt.in.th/?p=559</guid>
		<description><![CDATA[I put some stuff on my GitHub profile, but did not mention it on this blog. You can take a look: https://github.com/dtinth I also moved several old projects to GitHub: oauthdamnit DtBMS This month, I&#8217;m staying at a computer camp, &#8230; <a href="http://blog.dt.in.th/2011/03/github-stuff/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I put some stuff on my GitHub profile, but did not mention it on this blog.</p>

<p>You can take a look: <a href="https://github.com/dtinth">https://github.com/dtinth</a></p>

<p>I also moved several old projects to GitHub:</p>

<ul>
<li><a href="https://github.com/dtinth/oauthdamnit">oauthdamnit</a></li>
<li><a href="https://github.com/dtinth/DtBMS">DtBMS</a></li>
</ul>

<p>This month, I&#8217;m staying at a computer camp, so I might not blog much.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dt.in.th/2011/03/github-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell Script: Testing Gzip</title>
		<link>http://blog.dt.in.th/2011/02/httpgztest/</link>
		<comments>http://blog.dt.in.th/2011/02/httpgztest/#comments</comments>
		<pubDate>Sat, 26 Feb 2011 18:01:38 +0000</pubDate>
		<dc:creator>the DtTvB</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Random Stuff]]></category>

		<guid isPermaLink="false">http://blog.dt.in.th/?p=552</guid>
		<description><![CDATA[I found this old shell script I have written long time ago. I called it httpgztest. #!/bin/bash NOGZ=`wget "$1" -q -O- &#124; wc -c` echo "Without gzip: $NOGZ" YESGZ=`wget --header="Accept-Encoding: gzip, deflate" "$1" -q -O- &#124; wc -c` echo "With &#8230; <a href="http://blog.dt.in.th/2011/02/httpgztest/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I found this old shell script I have written long time ago. I called it <code>httpgztest</code>.</p>

<pre><code>#!/bin/bash
NOGZ=`wget "$1" -q -O- | wc -c`
echo "Without gzip:       $NOGZ"
YESGZ=`wget --header="Accept-Encoding: gzip, deflate" "$1" -q -O- | wc -c`
echo "With gzip:          $YESGZ"
RATIO=`echo "scale=3;$YESGZ/$NOGZ" | bc`
echo "Compression ratio:  $RATIO"
if [ $YESGZ -ge $NOGZ ]; then
    echo "Gzip is not enabled for this URL. Go check."
fi
</code></pre>

<p>To use it, run it, passing URL as the argument</p>

<pre><code>httpgztest http://dev.tw.dt.in.th/thaiWitter/js.js
</code></pre>

<p>and it shows the compression ratio.</p>

<pre><code>Without gzip:       79851
With gzip:          20839
Compression ratio:  .260
</code></pre>

<p>And if the first and the second number are the same, i.e., the compression ratio is 1, then your gzip is not working.</p>

<pre><code>Without gzip:       1820
With gzip:          1820
Compression ratio:  1.000
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.dt.in.th/2011/02/httpgztest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting StepMania Stepcharts to Tap Studio</title>
		<link>http://blog.dt.in.th/2011/02/sm2tap/</link>
		<comments>http://blog.dt.in.th/2011/02/sm2tap/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 16:19:46 +0000</pubDate>
		<dc:creator>the DtTvB</dc:creator>
				<category><![CDATA[iPad]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Random Stuff]]></category>

		<guid isPermaLink="false">http://blog.dt.in.th/?p=498</guid>
		<description><![CDATA[Tap Studio 3 is a nice game, but is full of off-synced tapcharts. This is mainly because of the way the tapcharts are made: It plays the song, the user records the tapchart as the song plays. When the song &#8230; <a href="http://blog.dt.in.th/2011/02/sm2tap/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://itunes.apple.com/us/app/tap-studio-3/id393451834?mt=8"><strong>Tap Studio 3</strong></a> is a nice game, but is full of off-synced tapcharts.</p>

<p>This is mainly because of the way the tapcharts are made: It plays the song, the user records the tapchart as the song plays. When the song finishes, you get a tapchart ready to play. In Tap Studio 3, it has a basic UI for editing taps, but you can&#8217;t be sure that it syncs well with the song, and it fells unresponsive too.</p>

<p>Few days ago, I tried making my own taps, but each song took me a lot of time, because when I record, there will be an error in some point in the song (missing taps, extra taps, offbeat taps).</p>

<h2>StepMania is Much Better At Making Notecharts!</h2>

<p>Making stepcharts in StepMania is much more fun. You can record notes into your stepchart, or you can choose to add notes one by one. It has a lot of tools that you can use to fine-tune and sync your stepchart.</p>

<p>Also, most of the already available simfiles on the Internet are pretty time-accurate.</p>

<p>So I made a small Python script to convert my <code>.sm</code> files to be playable on Tap Studio, so I can play them anywhere.</p>

<h2>Prerequisites</h2>

<p>To be able to convert <code>.sm</code> files for playing in Tap Studio, you need:</p>

<ul>
<li>A Mac.</li>
<li>A jailbroken iDevice, with an SSH server installed.</li>
<li>Tap Studio (either version 2 or version 3 will do).</li>
<li><a href="https://github.com/dtinth/sm2tap">sm2tap</a>.</li>
</ul>

<h2>Converting Stepcharts</h2>

<h3>Song Initialization</h3>

<p>First, you need to have the song you want to convert in your device.</p>

<p>Then, you need to initialize a song. Open Tap Studio, then go to your song library and pick a song you want. After that, press <strong>Record</strong>. After the song starts, record <strong>only one note</strong> and <strong>save it</strong>.</p>

<h3>Copying the Song to Your Mac</h3>

<p>Then, SSH to your device, or run a terminal on your device <strong>as <code>mobile</code> user</strong>, and then issue this command:</p>

<pre><code>find Applications -name '*.tapd'
</code></pre>

<p>This should list all the tapfiles you have and the locations where they reside in. Copy the tap file you just created (the one with the song name) to your Mac.</p>

<h3>Converting StepMania Notes to Tap Studio Notes</h3>

<p>On your Mac, you need to convert the <code>.tapd</code> file into an XML file.</p>

<p>Open a Terminal, and then type in</p>

<pre><code>plutil -convert xml1
</code></pre>

<p>then press space, then drag the <code>.tapd</code> file into the terminal window, and then press Enter. You will see that the <code>.tapd</code> file will be slightly bigger.</p>

<p>After that, type in:</p>

<pre><code>python
</code></pre>

<p>Press space, and drag these files into the terminal window <strong>in order</strong>:</p>

<ol>
<li>My <code>convert.py</code> file.</li>
<li>The <code>.sm</code> file.</li>
<li>The <code>.tapd</code> file.</li>
</ol>

<p>Then go back to terminal and press enter. You should see a list of available step types that can be converted. Type in the name of the step type and press enter. Your <code>.tapd</code> file should be a lot bigger by now.</p>

<p>Finally, to convert it back into binary format,</p>

<pre><code>plutil -convert binary1
</code></pre>

<p>then press space, then drag the <code>.tapd</code> file into the terminal window, and then press Enter. The size of the <code>.tapd</code> file will be reduced.</p>

<h3>Copying the Modified Notes Back to Device</h3>

<p>Copy this file back into your device. You can now play your simfile on your device!</p>

<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dt.in.th/2011/02/sm2tap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Facebook Account Was Blocked</title>
		<link>http://blog.dt.in.th/2010/06/facebook-account-blocked/</link>
		<comments>http://blog.dt.in.th/2010/06/facebook-account-blocked/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 15:21:49 +0000</pubDate>
		<dc:creator>the DtTvB</dc:creator>
				<category><![CDATA[Random Stuff]]></category>

		<guid isPermaLink="false">http://blog.dt.in.th/.html</guid>
		<description><![CDATA[I am at school and I want to sign in to Facebook chat from my mobile phone. It is a Nokia 5630. I downloaded eBuddy Mobile from the Ovi Store, but as soon as I sign in to Facebook, it &#8230; <a href="http://blog.dt.in.th/2010/06/facebook-account-blocked/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am at school and I want to sign in to Facebook chat from my mobile phone. It is a Nokia 5630. I downloaded <strong>eBuddy Mobile</strong> from the Ovi Store, but as soon as I sign in to Facebook, it says &#8220;wrong username/password.&#8221;</p>

<p class="center">So I opened up Opera Mobile to sign in to Facebook, but it says:</p>

<div class="content-image" style="padding-bottom: 1em; text-align: center">
    <span class="corner1" style="width: 290px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/2010-06/18-1243.png" style="border: 0; display: block; margin: 0 auto;" width="240" height="320" alt=""></span></span></span></span></span>
</div>

<p>So maybe it&#8217;s eBuddy&#8217;s server accessing my Facebook account, so I just continue. The next step is pretty easy: confirm using my mobile phone.</p>

<div class="content-image" style="padding-bottom: 1em; text-align: center">
    <span class="corner1" style="width: 290px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/2010-06/18-1246.png" style="border: 0; display: block; margin: 0 auto;" width="240" height="320" alt=""></span></span></span></span></span>
</div>

<p class="center">I waited for more than 10 minutes, and no single SMS, so I left the fields blank and confirm the code. I tried this several times, but no SMS sent. I kept retrying.</p>

<div class="content-image" style="padding-bottom: 1em; text-align: center">
    <span class="corner1" style="width: 290px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/2010-06/18-1248.png" style="border: 0; display: block; margin: 0 auto;" width="240" height="320" alt=""></span></span></span></span></span>
</div>

<p class="center">&#8230;until Facebook sends me to this screen:</p>

<div class="content-image" style="padding-bottom: 1em; text-align: center">
    <span class="corner1" style="width: 290px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/2010-06/18-1250.png" style="border: 0; display: block; margin: 0 auto;" width="240" height="320" alt=""></span></span></span></span></span>
</div>

<p>That looks very fun and exciting. I mean, it is just like a game. If I can remember people&#8217;s face correctly then I can get my account back. So I pressed Start and then Facebook starts showing me pictures of my friends:</p>

<div class="content-image" style="padding-bottom: 1em; text-align: center">
    <span class="corner1" style="width: 290px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/2010-06/18-1252.png" style="border: 0; display: block; margin: 0 auto;" width="240" height="320" alt=""></span></span></span></span></span>
</div>

<p>Well, A Technika screen? I never have a friend as a Technika screen. I have seen many Technika screens before and they all look the same. I don&#8217;t even know their name, so who could this be? I have no other choices. I need to skip this question to get my Facebook account back.</p>

<div class="content-image" style="padding-bottom: 1em; text-align: center">
    <span class="corner1" style="width: 290px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/2010-06/18-2010.png" style="border: 0; display: block; margin: 0 auto;" width="240" height="320" alt=""></span></span></span></span></span>
</div>

<p class="center">Now a Facebook logo? Seriously what the fuck is this? I only have 2 skips, and again, I need to use it.</p>

<p class="center">Then I see a photo where I can recognize the face, but&#8230;</p>

<div class="content-image" style="padding-bottom: 1em; text-align: center">
    <span class="corner1" style="width: 290px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/2010-06/18-2104.png" style="border: 0; display: block; margin: 0 auto;" width="240" height="320" alt=""></span></span></span></span></span>
</div>

<p class="center">&#8230;.but look at these names! How can I know which name to choose? I also run out of skips. So I failed the tests, however, it&#8217;s good that I have unlimited retries. Just sign out and sign in again.</p>

<p>I keep retrying until I can get pass through it. It appears that eBuddy&#8217;s server accessed my account and Facebook never see me using eBuddy, so Facebook locked my account.</p>

<p>Now that my account was unlocked, I tried again, and then access to my account is blocked again and I have to through all the steps again. I forgot that eBuddy have many servers around the world. When I sign in the second time, it is from another server. I will never try it again. I will just stick with Nimbuzz. <img src='http://blog.dt.in.th/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>

<p>Total time wasted: <strong>around 2 hours</strong>.</p>

<p>From my experience with Facebook, combined with what happened to me today, <strong>I see these things very annoying on Facebook</strong>:</p>

<h2>Tagging People Who Has Nothing To Do With A Photo</h2>

<p>I <strong>always</strong> remove my tag from photos that I am not in. I recommend that you do it too.</p>

<p>Usually when people want to share a photo with their friends, they tag their friends in this photo. To me it seems not right. I think that it&#8217;s best to tag people in a photo if he/she is <strong>actually in the photo.</strong></p>

<p>So how to share your photo with your friends? I think that the best way to use the share feature in Facebook. To share it with all your friends, just click &#8220;share&#8221; on the sidebar and post it to profile.</p>

<p>Want to share it with only a number of friends? Click &#8220;share&#8221; on the sidebar, and then click on &#8220;send as a message instead.&#8221; You can then choose who to send to.</p>

<h2>Using An Alias For Their Name On Facebook</h2>

<p>Most of the time I will <strong>never</strong> accept friend requests from people who don&#8217;t use a real name. This is just my personal opinion. I am just annoyed.</p>

<p>On Windows Live Messenger, I can assign a personal alias to their contacts on their contact list, so I will know who is who. However on Facebook I can&#8217;t.</p>

<p>To me, Facebook is different from other social networks. Unlike Twitter or Windows Live Messenger, I think that Facebook is where I can get in touch with people I already know and I will only be friends with people I already know. For Twitter and Windows Live Messenger that I use to chat and meet random people.</p>

<p>So&#8230; that&#8217;s all for this blog post.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dt.in.th/2010/06/facebook-account-blocked/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Poem Remembering WIN</title>
		<link>http://blog.dt.in.th/2010/06/poemwin/</link>
		<comments>http://blog.dt.in.th/2010/06/poemwin/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 14:09:09 +0000</pubDate>
		<dc:creator>the DtTvB</dc:creator>
				<category><![CDATA[Random Stuff]]></category>

		<guid isPermaLink="false">http://blog.dt.in.th/.html</guid>
		<description><![CDATA[&#160; Sometimes the most dangerous place is the safest place! บางที ที่ที่อันตรายที่สุดก็อาจจะเป็นที่ที่ปลอดภัยที่สุด&#8230; Explaination: The picture above is of Thai language class, where everyone needs to remember a 20-line poem, and say it aloud to the teacher without reading it (or &#8230; <a href="http://blog.dt.in.th/2010/06/poemwin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>

<p class="center">Sometimes the most dangerous place is the safest place!</p>

<div class="content-image" style="padding-bottom: 1em; text-align: center">
    <a href="http://tnk.dt.in.th/blog-data/2010-06/04-2102.jpg"><span class="corner1" style="width: 770px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/720x540/2010-06/04-2102.jpg" style="border: 0; display: block; margin: 0 auto;" width="720" height="540" alt=""><span class="image-caption">บางที ที่ที่อันตรายที่สุดก็อาจจะเป็นที่ที่ปลอดภัยที่สุด&#8230;</span></span></span></span></span></span></a>
</div>

<p>Explaination: The picture above is of Thai language class, where everyone needs to remember a 20-line poem, and say it aloud to the teacher without reading it (or let the teacher see that you are reading it).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dt.in.th/2010/06/poemwin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>You don&#8217;t need to know the victim&#8217;s IP address to hack their PC.</title>
		<link>http://blog.dt.in.th/2010/06/hack-wtf/</link>
		<comments>http://blog.dt.in.th/2010/06/hack-wtf/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 12:12:51 +0000</pubDate>
		<dc:creator>the DtTvB</dc:creator>
				<category><![CDATA[Random Stuff]]></category>

		<guid isPermaLink="false">http://blog.dt.in.th/.html</guid>
		<description><![CDATA[I have been chatting with a random guy, in Thai language. The following chat transcription is translated (and is slightly modified). First, it was a normal chat. And then he starts out: I am a hacker, white hat hacker. I &#8230; <a href="http://blog.dt.in.th/2010/06/hack-wtf/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have been chatting with a random guy, in Thai language. The following chat transcription is translated (and is slightly modified).</p>

<p>First, it was a normal chat. And then he starts out: I am a hacker, white hat hacker. I use my skill to fix others&#8217; computer problems without letting them know. I think like&#8230; really? Let me check if you are really one.</p>

<p>So first, let me ask you some basic question first.</p>

<pre><code>&gt; What Windows are you using?
&lt; No, not Windows. It's a specialized system for hacking.
</code></pre>

<p>So I guess he must be a Linux user. What else could it be? Mac? Specialized for hacking? No way.</p>

<pre><code>&gt; So do you know what version of Windows I'm using?
&lt; Either Windows XP or Windows 7
</code></pre>

<p>Obviously, if one does not use Windows XP, they will probably use Windows 7. Vista sucks.</p>

<pre><code>&lt; So do you use XP?
&gt; No.
</code></pre>

<p>Again, it&#8217;s 50% chance, and he has failed.</p>

<pre><code>&lt; So it must be Windows 7.
&gt; Obviously, but why can't you get it right at the first place?
&lt; It's really hard to see. I have to dig through millions of number.
  However, I can get the right answer if I want it.
  But hey, Windows 7 is a very good operating system.
  It offers good protection.
</code></pre>

<p>I already knew about the protection thing of Windows 7, but millions of number? Windows XP is 5.1, and Windows 7 is 6.1. Just look at this damn string, is it so hard to figure out?</p>

<pre><code>&gt; Do you know my IP?
&lt; It will take a long time. There are billions of IP.....
</code></pre>

<p>While I chat with that guy, I made a page that just redirects the viewer to a Wikipedia article about TCP/IP, and gave that link to him, shortened using bit.ly.</p>

<pre><code>&gt; Well, I suggest that you read about this: http://bit.ly/.....
</code></pre>

<p>He clicked on it. His IP address and user agent string is recorded on the server&#8217;s log. It shows that he is using Windows XP, and not any kind of a specialized operating system.</p>

<p>We continued chatting for a while, then I decided to surprise him a bit.</p>

<pre><code>&gt; I will tell you something. Your IP is 124.122.___.___.
</code></pre>

<p>But that guy keeps <span style="cursor:help;border-bottom:1px dotted #aaa" title="แถ">&#8220;tae&#8221;</span>ing.</p>

<pre><code>&lt; Hahaha, that was my fake IP.
&gt; Yeah, but I can tell your "fake IP" in seconds.
  So what's your real IP?
</code></pre>

<p>I think that the IP I found is already a real IP. If it&#8217;s not then he must be using a proxy server.</p>

<p>But the next thing shocked me.</p>

<pre><code>&lt; I'm not gonna tell you my real IP. But here's a hint:
  My IP starts with 192.16
</code></pre>

<p>What the fuck.</p>

<pre><code>&lt; And that IP address was the IP address of my server. I put it at Korea.
</code></pre>

<p>That IP address comes from Thailand. Everyone knows it.</p>

<pre><code>&gt; Let me tell you something. 124.122.___.___ is a Thailand IP address and not Korea.
  And you are using (tells him his ISP).
&lt; But the server is really located at Korea.
</code></pre>

<p>I then completely ignored this guy.</p>

<p>That was just for fun. I hope that he didn&#8217;t take it too seriously. Heheh.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dt.in.th/2010/06/hack-wtf/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My Review on Web Based Collaborative Editors</title>
		<link>http://blog.dt.in.th/2010/05/my-review-on-web-based-collaborative-editors/</link>
		<comments>http://blog.dt.in.th/2010/05/my-review-on-web-based-collaborative-editors/#comments</comments>
		<pubDate>Fri, 21 May 2010 11:00:41 +0000</pubDate>
		<dc:creator>the DtTvB</dc:creator>
				<category><![CDATA[Random Stuff]]></category>

		<guid isPermaLink="false">http://blog.dt.in.th/.html</guid>
		<description><![CDATA[Zone-IT.com has plans to add banner advertisement as a part a plan to have a dedicated server for Zone-IT. We have to make a document that describes the process of placing an ads on Zone-IT.com. First we use a forum, &#8230; <a href="http://blog.dt.in.th/2010/05/my-review-on-web-based-collaborative-editors/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.zone-it.com/">Zone-IT.com</a> has plans to add banner advertisement as a part a plan to have a dedicated server for Zone-IT.</p>

<p>We have to make a document that describes the process of placing an ads on Zone-IT.com. First we use a forum, but then I think that we should use a kind of <strong><a href="http://en.wikipedia.org/wiki/Collaborative_real-time_editor">collaborative text editors</a></strong>.</p>

<p>I have seen the <a href="http://docs.google.com/support/bin/answer.py?answer=176442&amp;hl=en">new version of Google Documents</a>. It looks very nice, so I gave it a try first.</p>

<p>What I see is through it offers a lot of new features, it has a problem with line spacing, especially when working with Thai text, and it has a bug where moving the cursor does not move past floating / hanging Thai vowels. It is also buggy where it sometimes does not save.</p>

<p>The next thing I tried is <a href="http://www.etherpad.com/">Etherpad</a>. I tried using Piratenpad, but it also has the problem with moving cursor. The text on the screen is too hard to read.</p>

<p>I end up with the older version Google Documents. Well, it&#8217;s perfect. Through it does not synchronize text in really real time, but it does not have the cursor movement problem and it&#8217;s easy to make text readable by changing fonts.</p>

<p>So that&#8217;s about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dt.in.th/2010/05/my-review-on-web-based-collaborative-editors/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I Bought an In-Ear Earphone From Japan.</title>
		<link>http://blog.dt.in.th/2010/04/in-ear/</link>
		<comments>http://blog.dt.in.th/2010/04/in-ear/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 02:47:00 +0000</pubDate>
		<dc:creator>the DtTvB</dc:creator>
				<category><![CDATA[Random Stuff]]></category>

		<guid isPermaLink="false">http://blog.dt.in.th/.html</guid>
		<description><![CDATA[I came back from Japan 3 days ago. While I was at the airport I decided to buy some good earphones. So here&#8217;s my new earphone. And when I open it&#8230; Look closely&#8230;. Ah. But it sounds very nice anyway.]]></description>
			<content:encoded><![CDATA[<p class="center">I came back from Japan 3 days ago.</p>

<p class="center">While I was at the airport I decided to buy some good earphones. So here&#8217;s my new earphone.</p>

<div class="content-image" style="padding-bottom: 1em; text-align: center">
    <a href="http://tnk.dt.in.th/blog-data/2010-04/29-0940.jpg"><span class="corner1" style="width: 562px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/512x341/2010-04/29-0940.jpg" style="border: 0; display: block; margin: 0 auto;" width="512" height="341" alt=""></span></span></span></span></span></a>
</div>

<p class="center">And when I open it&#8230;</p>

<div class="content-image" style="padding-bottom: 1em; text-align: center">
    <a href="http://tnk.dt.in.th/blog-data/2010-04/29-0944.jpg"><span class="corner1" style="width: 562px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/512x341/2010-04/29-0944.jpg" style="border: 0; display: block; margin: 0 auto;" width="512" height="341" alt=""></span></span></span></span></span></a>
</div>

<p class="center">Look closely&#8230;.</p>

<div class="content-image" style="padding-bottom: 1em; text-align: center">
    <span class="corner1" style="width: 560px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/2010-04/29-0945.jpg" style="border: 0; display: block; margin: 0 auto;" width="510" height="159" alt=""></span></span></span></span></span>
</div>

<p class="center">Ah.</p>

<p class="center">But it sounds very nice anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dt.in.th/2010/04/in-ear/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Color Tester</title>
		<link>http://blog.dt.in.th/2010/04/colortester/</link>
		<comments>http://blog.dt.in.th/2010/04/colortester/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 15:49:44 +0000</pubDate>
		<dc:creator>the DtTvB</dc:creator>
				<category><![CDATA[Random Stuff]]></category>

		<guid isPermaLink="false">http://blog.dt.in.th/.html</guid>
		<description><![CDATA[I&#8217;m customizing my text editor&#8217;s syntax highlighter. Usually I start by opening the text editor&#8217;s option, pick a syntax item and then pick a random color. Apply and see if it looks nice. But then I realize that it doesn&#8217;t &#8230; <a href="http://blog.dt.in.th/2010/04/colortester/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m customizing my text editor&#8217;s syntax highlighter.</p>

<p>Usually I start by opening the text editor&#8217;s option, pick a syntax item and then pick a random color. Apply and see if it looks nice. But then I realize that it doesn&#8217;t work very well.</p>

<p>Why? Because there are no plans for what part of a syntax (number, strings, statements) belongs to what color.</p>

<p>So I need to plan all the color first before I can actually use it in a text editor. So I came up with this.</p>

<p class="center"><strong><a href="http://blog.dt.in.th/stuff/colortester.html">My Color Tester</a></strong></p>

<p>So to use it, type in some color codes. The first color will be displayed as a background, and the rest will be displayed as text. Still don&#8217;t get it? Here&#8217;s a sample. If I typed</p>

<pre><code>#ffffff
#10a520
#aab512
#984151
</code></pre>

<p class="center">The result will look like this:</p>

<div class="content-image" style="padding-bottom: 1em; text-align: center">
    <span class="corner1" style="width: 267px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/2010-04/27-2226.png" style="border: 0; display: block; margin: 0 auto;" width="217" height="154" alt=""></span></span></span></span></span>
</div>

<p class="center">You can also include some text too to describe the color. So here is my color scheme.</p>

<pre><code>#232323
#dadada for normal text
#80ceff for preprocessors
#80ef50 for comments
#d0f979 for characters
#f9f979 for strings
#ecb760 for keywords
#f08686 for numbers
</code></pre>

<p class="center">And here&#8217;s how it looks like.</p>

<div class="content-image" style="padding-bottom: 1em; text-align: center">
    <span class="corner1" style="width: 376px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/2010-04/27-2233.png" style="border: 0; display: block; margin: 0 auto;" width="326" height="301" alt=""></span></span></span></span></span>
</div>

<p class="center">Putting it in my favorite text editor, it now looks like this.</p>

<div class="content-image" style="padding-bottom: 1em; text-align: center">
    <span class="corner1" style="width: 566px"><span class="corner2"><span class="corner3"><span class="corner4"><span class="corner5"><img src="http://tnk.dt.in.th/blog-data/2010-04/27-2237.png" style="border: 0; display: block; margin: 0 auto;" width="516" height="360" alt=""></span></span></span></span></span>
</div>

<p>Maybe I will use this scheme for all other codes that I may post on this blog too.</p>

<p>And oh, I came up with this color scheme because I have bought a black (in fact, it&#8217;s dark gray) notebook from Japan. All the pages are in dark gray and they need special pens to write on it. So I played with these colored pens and black papers and came up with this color scheme.</p>

<p>With this color scheme, codes will have hot colors, so yellow for strings, red for numbers and orange for keywords. Comments and pre&shy;processors have colder colors so they stand out.</p>

<p>So that&#8217;s it, hope you like it.</p>

<p>By the way I&#8217;m going to a computer olympics camp tomorrow, so I may post some C stuff here lol.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dt.in.th/2010/04/colortester/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

