<?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>JOMYUT.NET</title>
	<atom:link href="http://www.jomyut.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jomyut.net</link>
	<description>Just a normal guy in binary world</description>
	<lastBuildDate>Wed, 24 Apr 2013 10:34:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>uninitialized constant Draper::Base</title>
		<link>http://www.jomyut.net/2013/04/uninitialized-constant-draperbase.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=uninitialized-constant-draperbase</link>
		<comments>http://www.jomyut.net/2013/04/uninitialized-constant-draperbase.html#comments</comments>
		<pubDate>Wed, 24 Apr 2013 10:34:02 +0000</pubDate>
		<dc:creator>Scalopus+</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.jomyut.net/?p=282</guid>
		<description><![CDATA[ทำไม Line นี้ config.cache_classes = true จึงทำให้เกิด Error นี้ :/ . หา คำตอบไม่ได้ แต่ Comment แล้ว Appfog update ผ่าน. DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as [...]]]></description>
				<content:encoded><![CDATA[<p>ทำไม Line นี้</p>
<p>config.cache_classes = true</p>
<p>จึงทำให้เกิด Error นี้ :/ . หา คำตอบไม่ได้ แต่ Comment แล้ว Appfog update ผ่าน.</p>
<p>DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from &lt;top (required)&gt; at /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/<span style="color: #ff0000;">app/config/environment.rb:5</span>)<br />
/mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/app/decorators/goal_decorator.rb:1:in `&lt;top (required)&gt;': uninitialized constant Draper::Base (NameError)<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:438:in `each'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:438:in `block in eager_load!'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:436:in `each'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:436:in `eager_load!'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/finisher.rb:53:in `block in &lt;module:Finisher&gt;'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/config/environment.rb:5:in `&lt;top (required)&gt;'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/config.ru:3:in `block in &lt;main&gt;'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/config.ru:in `new'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/config.ru:in `&lt;main&gt;'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in &lt;top (required)&gt;'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'<br />
from /mnt/var/vcap.local/dea/apps/done-0-5f97e3776b2a3e76c4a89fbe4be1e836/app/rubygems/ruby/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in `&lt;top (required)&gt;'<br />
from script/rails:6:in `require'<br />
from script/rails:6:in `&lt;main&gt;'</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jomyut.net/2013/04/uninitialized-constant-draperbase.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Old Video DVD Recovery</title>
		<link>http://www.jomyut.net/2013/04/old-video-dvd-recovery.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=old-video-dvd-recovery</link>
		<comments>http://www.jomyut.net/2013/04/old-video-dvd-recovery.html#comments</comments>
		<pubDate>Sun, 07 Apr 2013 16:26:35 +0000</pubDate>
		<dc:creator>Scalopus+</dc:creator>
		
		<guid isPermaLink="false">http://www.jomyut.net/?p=274</guid>
		<description><![CDATA[Back to about 15 years ago, DVD introduce to the market with the benefits to store more data in the same size physical media. On that time, I have moved a lot of data and also camcorder video from CDs to DVDs. On that time I was in High school and worries less about the [...]]]></description>
				<content:encoded><![CDATA[<p>Back to about 15 years ago, DVD introduce to the market with the benefits to store more data in the same size physical media. On that time, I have moved a lot of data and also camcorder video from CDs to DVDs. On that time I was in High school and worries less about the lifetime of DVD media and there are no facts information about which DVD brand contains most quality that take longer lifetime of DVD. When have more knowledge I have move data from low quality DVD disc to higher one. Write on low speed for more important data, however, I haven't realize that there are some of first DVDs use the difference place to store. I found it later when it was like 15 years and DVD discs so damaged, hard to read by the most DVD drive.</p>
<p>However, I still keep those DVDs in case that one day, it may have good DVD drive enough to read those broken DVD data. and that day come. I just brought my new laptop, with the new DVD reader head, it be able to read some content of DVD data. Badly, it cannot read the whole disc, mostly it be able to read inner burned DVD section (like first 800MBs). After that, it always show message on checksum error. Something like "L-EC Uncorrectable Error" (From ImgBurn software).</p>
<p>Luckily, some investigation is corrected! I think that sometime it may be possible that DVD reader head is too hot (when it beam the READ laser from the crystal, if it too hot, the light wavelength may be also change which should impact to read quality). So, luckily, ImgBurn be able to Pause during make the disc image, so, when the drive working for 15 minutes, I make the manual pause for another 15 minutes to sure that drive is cool down enough, then resume the operation, .... and that is work!. It be able to read more data after resume the operation back after pause it.</p>
<p>Hope that this technical may help someone who have some old data on DVDs. note that it may not help to fully recovery your data from damaged DVD. but at least some data like Video DVD is prepared to be broken can continue to see the movie inside.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jomyut.net/2013/04/old-video-dvd-recovery.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Move to SSD from default HDD on Win8 with UEFI enabled GPT secure drive</title>
		<link>http://www.jomyut.net/2013/04/move-to-ssd-from-default-hdd-on-win8-with-uefi-enabled-gpt-secure-drive.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=move-to-ssd-from-default-hdd-on-win8-with-uefi-enabled-gpt-secure-drive</link>
		<comments>http://www.jomyut.net/2013/04/move-to-ssd-from-default-hdd-on-win8-with-uefi-enabled-gpt-secure-drive.html#comments</comments>
		<pubDate>Fri, 05 Apr 2013 08:44:59 +0000</pubDate>
		<dc:creator>Scalopus+</dc:creator>
				<category><![CDATA[gpt]]></category>
		<category><![CDATA[uefi]]></category>
		<category><![CDATA[win8]]></category>

		<guid isPermaLink="false">http://www.jomyut.net/?p=269</guid>
		<description><![CDATA[I just brought Dell 5521 with 1TB harddisk. However, I would like to replace it with SSD drive. The OEM OS version come with laptop without OS media. No serial number on the back of the laptop. After stuck when try to install Solid-state drive with the new laptop (Dell 15R 5521) finally, 24 hrs, [...]]]></description>
				<content:encoded><![CDATA[<p>I just brought Dell 5521 with 1TB harddisk. However, I would like to replace it with SSD drive. The OEM OS version come with laptop without OS media. No serial number on the back of the laptop.</p>
<p>After stuck when try to install Solid-state drive with the new laptop (Dell 15R 5521) finally, 24 hrs, I am be able  to change be on SSD drive. Usually it should take much longer like these, but by lack of resource about Win8 and new introduced technology UEFI and GPT, I am totally lost the way, until I said that if this round not working, I will be defeat and move back to Win7 instead. And then,.... it become working in this round.</p>
<div id="attachment_276" class="wp-caption alignnone" style="width: 410px"><a href="http://www.jomyut.net/2013/04/move-to-ssd-from-default-hdd-on-win8-with-uefi-enabled-gpt-secure-drive.html/2013-04-05-00-12-38" rel="attachment wp-att-276"><img class="size-thumbnail wp-image-276" alt="2013-04-05 00.12.38" src="http://www.jomyut.net/uploads/2013/04/2013-04-05-00.12.38-400x225.jpg" width="400" height="225" /></a><p class="wp-caption-text">Boot Error Screen - Winload.efi error. Your PC needs to be repaired. Error Code : 0xc0000225</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>To make it work, I don't have fully correct step-by-step but this blog may help in case that you experience the same problem.</p>
<p>First, open the command line and run `diskpart` .... Tool provided from Windows. select SSD drive, in a DISKPART prompt,</p>
<ul>
<li>list disk</li>
<li>select disk 2  #select your SSD drive</li>
<li>convert GPT # assume that you have unformatted SSD, this will convert your drive as GPT structure</li>
<li>hm, you may follow instruction from Microsoft link here.</li>
</ul>
<p>After that, use the Macrium Reflect (Cloning tool) to clone all partitions on your original harddisk to SSD drive</p>
<ul>
<li>use Win8 create recovery drive tool, to create your USB drive (At the time I created, it request for 16GB+ USB device)</li>
<li>swap the harddisk to SSD drive</li>
<li>remove Secure boot from your bios (may not require)</li>
<li>Boot by recovery USB drive</li>
<li>open the command line</li>
<li>run diskpart again</li>
<li>select disk 1 # your SSD drive</li>
<li>select part 1 # your EFI boot partition</li>
<li>detail part</li>
<li>assign letter=S # assign S:\ to your EFI boot partition</li>
<li>run bcdboot c:\windows /s S: /f UEFI</li>
<li>if you got the sucessful statement, you are luck! if not, go to check BIOS secure drive configuration</li>
<li>now, try to boot with your SSD harddisk</li>
<li>if you are lucky, you may got the Win8 back!.</li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jomyut.net/2013/04/move-to-ssd-from-default-hdd-on-win8-with-uefi-enabled-gpt-secure-drive.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crash Putty when make a SSH tunnel</title>
		<link>http://www.jomyut.net/2013/02/crash-putty-when-make-a-ssh-tunnel.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=crash-putty-when-make-a-ssh-tunnel</link>
		<comments>http://www.jomyut.net/2013/02/crash-putty-when-make-a-ssh-tunnel.html#comments</comments>
		<pubDate>Tue, 05 Feb 2013 12:35:47 +0000</pubDate>
		<dc:creator>Scalopus+</dc:creator>
				<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.jomyut.net/?p=264</guid>
		<description><![CDATA[Experience on Putty become crash when try to make a SSH tunnel. Found that I use Putty (Development Snapshot 2011-11-15:r9326). After change to Release 0.62, this problem gone. &#160;]]></description>
				<content:encoded><![CDATA[<p>Experience on Putty become crash when try to make a SSH tunnel. Found that I use Putty (Development Snapshot 2011-11-15:r9326). After change to Release 0.62, this problem gone.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jomyut.net/2013/02/crash-putty-when-make-a-ssh-tunnel.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resize RaspberryPi root partition is so simple</title>
		<link>http://www.jomyut.net/2013/01/resize-raspberrypi-root-partition-is-so-simple.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=resize-raspberrypi-root-partition-is-so-simple</link>
		<comments>http://www.jomyut.net/2013/01/resize-raspberrypi-root-partition-is-so-simple.html#comments</comments>
		<pubDate>Tue, 29 Jan 2013 07:16:32 +0000</pubDate>
		<dc:creator>Scalopus+</dc:creator>
				<category><![CDATA[raspberrypi]]></category>

		<guid isPermaLink="false">http://www.jomyut.net/?p=262</guid>
		<description><![CDATA[Using the Debian-Wheezy Beta image, there is a configuration utility built in that makes this easy: There is a utility called raspi-config. This runs on first boot if you're connected directly to the RPi. If you're over SSH you can run it manually using $ sudo raspi-config. (I think you can re-run the tool manually at any [...]]]></description>
				<content:encoded><![CDATA[<p>Using the Debian-Wheezy Beta image, there is a configuration utility built in that makes this easy:</p>
<p>There is a utility called <code>raspi-config</code>. This runs on first boot if you're connected directly to the RPi. If you're over SSH you can run it manually using <code>$ sudo raspi-config</code>. (I think you can re-run the tool manually at any time).</p>
<p>The second option on the blue dialog that follows is titled <code>expand_rootfs</code>, with the description "Expand root partition to fill SD card".</p>
<p>Selecting this will cause your root partition to be resized to fill the card the next time you boot your RPi.</p>
<p>(By <a href="http://raspberrypi.stackexchange.com/users/339/jon-egerton">Jon Egerton</a>)</p>
<p>source: http://raspberrypi.stackexchange.com/questions/499/how-can-i-resize-my-root-partition</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jomyut.net/2013/01/resize-raspberrypi-root-partition-is-so-simple.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reverse Tunnel</title>
		<link>http://www.jomyut.net/2013/01/reverse-tunnel.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=reverse-tunnel</link>
		<comments>http://www.jomyut.net/2013/01/reverse-tunnel.html#comments</comments>
		<pubDate>Wed, 16 Jan 2013 15:43:01 +0000</pubDate>
		<dc:creator>Scalopus+</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[raspberrypi]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.jomyut.net/?p=258</guid>
		<description><![CDATA[I'm plan to place my Raspberry Pi in my parent home, so, it will help me on mange my parent home devices when I have away from home in many month. Raspberry Pi is really cheap compare to another solution. just only 60$S, I can custom make everything available on my parent home. VoIP Gateway, [...]]]></description>
				<content:encoded><![CDATA[<p>I'm plan to place my Raspberry Pi in my parent home, so, it will help me on mange my parent home devices when I have away from home in many month. Raspberry Pi is really cheap compare to another solution. just only 60$S, I can custom make everything available on my parent home. VoIP Gateway, ADSL Router, Wireless Access Point, CCTV, NAS, Print server.</p>
<p>The way to manage is not much easy like connect to Raspberry Pi because the IP address is change as a daily by the ISP. I don't like to rely on ADSL router because it has a case that I lost of control of all devices in a house because the ADSL router have reset its state and nobody know how to configure it.</p>
<p>So, my way is that make the Reverse secure shell tunnel connect from Raspberry Pi inside a house to my EC2 instance. This way will ensure that even the ADSL router haven't forward any ports, I still can manage devices in a house.</p>
<p>Now, the way is not much hard. Just install <a href="http://www.harding.motd.ca/autossh/">AutoSSH</a> -- this application will help to restart a service if SSH connection is dead. and run a command as below on a Pi.</p>
<p>autossh -2 -N  -M 20000 -R $SERVER_PORT:localhost:22 $USERNAME@$SERVER</p>
<p>that's all. so, simple. Manageable. ^^</p>
<p>By this way, to connect to a Pi, I just SSH to $SERVER and the SSH on that server terminal to a Pi. or, just make tunnel from my machine direct to Pi!. Yeh!.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jomyut.net/2013/01/reverse-tunnel.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pi is alive</title>
		<link>http://www.jomyut.net/2013/01/pi-is-alive.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pi-is-alive</link>
		<comments>http://www.jomyut.net/2013/01/pi-is-alive.html#comments</comments>
		<pubDate>Wed, 16 Jan 2013 14:13:51 +0000</pubDate>
		<dc:creator>Scalopus+</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[raspberrypi]]></category>

		<guid isPermaLink="false">http://www.jomyut.net/?p=252</guid>
		<description><![CDATA[This is my first script which wrote on the raspberry Pi. The purpose is that I don't have HDMI monitor, so, what I needs is IP address which I can remote access though the secure shell. This simple script is so simple call by crontab every minutes and then revoke a destination URL to get [...]]]></description>
				<content:encoded><![CDATA[<p>This is my first script which wrote on the raspberry Pi. The purpose is that I don't have HDMI monitor, so, what I needs is IP address which I can remote access though the secure shell. This simple script is so simple call by crontab every minutes and then revoke a destination URL to get the IP address which send from rPi itself. Actually there are many ways to get the IP address of rPi device which will tell later on.</p>
<p>So, below is a script to retrieve IP address from `ifconfig` linux command then save in a file. After that, it will revoke remote URL and pass an IP as query string.</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Code on the Pi box</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw2">ifconfig</span> <span class="re5">-a</span> <span class="sy0">|</span> <span class="kw2">grep</span> inet <span class="sy0">|</span><span class="kw2">head</span> <span class="re5">-n1</span> <span class="sy0">&gt;</span> <span class="sy0">/</span>home<span class="sy0">/</span>pi<span class="sy0">/</span>ipaddress.txt<br />
<span class="re2">IP</span>=<span class="sy0">`</span><span class="kw2">cat</span> <span class="sy0">/</span>home<span class="sy0">/</span>pi<span class="sy0">/</span>ipaddress.txt<span class="sy0">`</span><br />
curl <span class="re5">--url</span> <span class="st0">&quot;http://&lt;remote_addr&gt;/detect_ipaddress.php&quot;</span> <span class="re5">-L</span> <span class="re5">-G</span> <span class="re5">--data-urlencode</span> <span class="st0">&quot;<span class="es2">$IP</span>&quot;</span> <span class="sy0">&gt;</span> <span class="sy0">/</span>dev<span class="sy0">/</span>null</div></div></div>

<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Code on the destination side</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><div class="php" style="font-family:monospace;"><span class="kw2">&lt;?php</span><br />
<br />
<span class="re0">$h</span> <span class="sy0">=</span> <a href="http://www.php.net/fopen"><span class="kw3">fopen</span></a><span class="br0">&#40;</span><span class="st_h">'ipaddress_of_pi_device.txt'</span><span class="sy0">,</span><span class="st_h">'w'</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<a href="http://www.php.net/fwrite"><span class="kw3">fwrite</span></a><span class="br0">&#40;</span><span class="re0">$h</span><span class="sy0">,</span><span class="st_h">'QUERY:'</span> <span class="sy0">.</span> <a href="http://www.php.net/urldecode"><span class="kw3">urldecode</span></a><span class="br0">&#40;</span><span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st_h">'QUERY_STRING'</span><span class="br0">&#93;</span><span class="br0">&#41;</span> <span class="sy0">.</span> <span class="st0">&quot;<span class="es1">\n</span>&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<a href="http://www.php.net/fwrite"><span class="kw3">fwrite</span></a><span class="br0">&#40;</span><span class="re0">$h</span><span class="sy0">,</span><span class="st_h">'Remote Addr:'</span> <span class="sy0">.</span> <span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st_h">'REMOTE_ADDR'</span><span class="br0">&#93;</span> <span class="sy0">.</span> <span class="st0">&quot;<span class="es1">\n</span>&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<a href="http://www.php.net/fwrite"><span class="kw3">fwrite</span></a><span class="br0">&#40;</span><span class="re0">$h</span><span class="sy0">,</span><span class="st_h">'X:'</span> <span class="sy0">.</span> <span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st_h">'HTTP_X_FORWARDED_FOR'</span><span class="br0">&#93;</span> <span class="sy0">.</span> <span class="st0">&quot;<span class="es1">\n</span>&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<a href="http://www.php.net/fwrite"><span class="kw3">fwrite</span></a><span class="br0">&#40;</span><span class="re0">$h</span><span class="sy0">,</span><span class="st_h">'Client IP:'</span> <span class="sy0">.</span> <span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st_h">'HTTP_CLIENT_IP'</span><span class="br0">&#93;</span> <span class="sy0">.</span> <span class="st0">&quot;<span class="es1">\n</span>&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<br />
<a href="http://www.php.net/fclose"><span class="kw3">fclose</span></a><span class="br0">&#40;</span><span class="re0">$h</span><span class="br0">&#41;</span><span class="sy0">;</span></div></div></div></pre>
<p>So, this script also simple. It got the query string and put into a file on a  server side which can access from anywhere. Right now, I can know the IP from REMOTE_ADDR and the internal IP address from QUERY_STRING.</p>
<p>What we can do for another way?</p>
<ul>
<li><span style="line-height: 13px;">If you are in the same network area, you may detect the IP address from ARP command</span></li>
<li>If you use DHCP server and you have access to DHCP table, you may look into a Pi IP address from the table</li>
<li>Static IP address to your Pi Mac address</li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jomyut.net/2013/01/pi-is-alive.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing Email gateway with local mail server</title>
		<link>http://www.jomyut.net/2012/11/testing-email-gateway-with-local-mail-server.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=testing-email-gateway-with-local-mail-server</link>
		<comments>http://www.jomyut.net/2012/11/testing-email-gateway-with-local-mail-server.html#comments</comments>
		<pubDate>Fri, 30 Nov 2012 04:11:30 +0000</pubDate>
		<dc:creator>Scalopus+</dc:creator>
		
		<guid isPermaLink="false">http://www.jomyut.net/?p=239</guid>
		<description><![CDATA[This is the method to redirect all emails by doesn't care what is the recipient list of emails that it send to. It will send to local email account in local mail server only. The purpose is for testing anything that related to email gateway. Software : hMailServer for Windows Create the local domain, domain.local [...]]]></description>
				<content:encoded><![CDATA[<p>This is the method to redirect all emails by doesn't care what is the recipient list of emails that it send to. It will send to local email account in local mail server only. The purpose is for testing anything that related to email gateway.</p>
<p>Software : hMailServer for Windows</p>
<ol>
<li>Create the local domain, domain.local</li>
<li>Create user account, test@domain.local</li>
<li>Create new Rules (in the root tree)
<ol>
<li>Criteria: Delivery attempts Greater than 0</li>
<li>Criteria: Recipient list not contains <span style="text-decoration: underline;">domail.local</span></li>
<li>Action: Forward email to test@domain.local</li>
<li>Action: Delete email</li>
</ol>
</li>
</ol>
<div>Some other link for solution</div>
<div>http://www.synet.sk/php/en/155-testing-php-mail-on-localhost-with-fake-smtp-server-hMailServer-and-outlook</div>
<div></div>
<div>Done.</div>
<div></div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jomyut.net/2012/11/testing-email-gateway-with-local-mail-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slow response when Copy-Cut-Paste in the Eclipse</title>
		<link>http://www.jomyut.net/2012/10/slow-response-when-copy-cut-paste-in-the-eclipse.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=slow-response-when-copy-cut-paste-in-the-eclipse</link>
		<comments>http://www.jomyut.net/2012/10/slow-response-when-copy-cut-paste-in-the-eclipse.html#comments</comments>
		<pubDate>Thu, 18 Oct 2012 16:38:50 +0000</pubDate>
		<dc:creator>Scalopus+</dc:creator>
				<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://www.jomyut.net/?p=233</guid>
		<description><![CDATA[I have experience the slowness problem in the Eclipse 4.2.1 and some early version. The function by short-keys such CTRL+C, CTRL+V, CTRL+X take long time before release the response back to the User. For me, I take about 30-120 seconds before I can get back to the Eclipse. I haven't deep investigate on the issue [...]]]></description>
				<content:encoded><![CDATA[<p>I have experience the slowness problem in the Eclipse 4.2.1 and some early version. The function by short-keys such CTRL+C, CTRL+V, CTRL+X take long time before release the response back to the User. For me, I take about 30-120 seconds before I can get back to the Eclipse. I haven't deep investigate on the issue but I think that there are some key event-hook in the Eclipse that take long respond which binding with the key CTRL+C.</p>
<p><a href="http://www.jomyut.net/uploads/2012/10/slow.png"><img class="alignnone size-full wp-image-234" title="Eclipse - Shortcut Key Mapping" src="http://www.jomyut.net/uploads/2012/10/slow.png" alt="" width="790" height="320" /></a></p>
<p>So, what I done here are</p>
<p>* Unbind the command which binding with CTRL+C, CTRL+V, CTRL+X</p>
<p>You will still use the shortcut key to Copy-Cut and Paste as the basic as the Windows can do without use the function from the Eclipse.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jomyut.net/2012/10/slow-response-when-copy-cut-paste-in-the-eclipse.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git Fetch and the Error Message from cat-file &#8216;Bad Object&#8217;</title>
		<link>http://www.jomyut.net/2012/10/git-fetch-and-the-error-message-from-cat-file-bad-object.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=git-fetch-and-the-error-message-from-cat-file-bad-object</link>
		<comments>http://www.jomyut.net/2012/10/git-fetch-and-the-error-message-from-cat-file-bad-object.html#comments</comments>
		<pubDate>Wed, 17 Oct 2012 02:49:22 +0000</pubDate>
		<dc:creator>Scalopus+</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[git-svn]]></category>

		<guid isPermaLink="false">http://www.jomyut.net/?p=230</guid>
		<description><![CDATA[I have experienced the problem when use `git svn fetch`. There are the message throw out as below user@WARUNLAPTOPPG /d/var/dd_dev (local/dd_dev) $ git svn fetch fatal: git cat-file bbecab29fb11d90e09dd53a59e13320a296bd632: bad file cat-file commit bbecab29fb11d90e09dd53a59e13320a296bd632: command returned error: 128 There are missing object in the repository. Luckily I am, that there are git-svn clone in the [...]]]></description>
				<content:encoded><![CDATA[<p>I have experienced the problem when use `git svn fetch`. There are the message throw out as below</p>
<blockquote><p>user@WARUNLAPTOPPG /d/var/dd_dev (local/dd_dev)<br />
$ git svn fetch<br />
fatal: git cat-file bbecab29fb11d90e09dd53a59e13320a296bd632: bad file<br />
cat-file commit bbecab29fb11d90e09dd53a59e13320a296bd632: command returned error: 128</p></blockquote>
<p>There are missing object in the repository. Luckily I am, that there are git-svn clone in the other machine, and I use the same command `git cat-file commit bbecab29fb11d90e09dd53a59e13320a296bd632` and found the contents inside.</p>
<p>So, to solve this problem, I just copied the content of the working machine to the corrupted repository machine by use the following command</p>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;">git cat-file commit bbecab29fb11d90e09dd53a59e13320a296bd632 <span class="sy0">&gt;</span> make_it_magic.txt</div></div></div>
<p>Then, copy the file to the machine which have the broken tree. Run the following command</p>
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table class="titleblock" border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/printer.png" /></a>&nbsp;<a href="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.jomyut.net/wp-content/plugins/wp-synhighlight/themes/jomyut/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><div class="bash" style="font-family:monospace;"><span class="kw2">cat</span> make_it_magic.txt <span class="sy0">|</span> git hash-object <span class="re5">-w</span> <span class="re5">-t</span> commit <span class="re5">--stdin</span></div></div></div>
<p>And after that, pray to have problem resolved.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jomyut.net/2012/10/git-fetch-and-the-error-message-from-cat-file-bad-object.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
