<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Flyingdogz&#039;s Weblog</title>
	<atom:link href="http://flyingdogz.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://flyingdogz.wordpress.com</link>
	<description>Me Myself and My way</description>
	<lastBuildDate>Sun, 16 Aug 2009 09:44:40 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='flyingdogz.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/fe8948f776c7bb020c81267bb6258866?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Flyingdogz&#039;s Weblog</title>
		<link>http://flyingdogz.wordpress.com</link>
	</image>
			<item>
		<title>How to configure Avira Antivir with MSN</title>
		<link>http://flyingdogz.wordpress.com/2009/08/16/how-to-configure-avira-antivir-with-msn/</link>
		<comments>http://flyingdogz.wordpress.com/2009/08/16/how-to-configure-avira-antivir-with-msn/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 09:42:23 +0000</pubDate>
		<dc:creator>flyingdogz</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[msn configuration antivirus avira]]></category>

		<guid isPermaLink="false">http://flyingdogz.wordpress.com/2009/08/16/how-to-configure-avira-antivir-with-msn/</guid>
		<description><![CDATA[Regarding to Radu’s post at: http://forum.avira.com/wbb/index.php?page=Thread&#38;postID=208662
Since it’s still not clear enough for many end-user that is not familiar with Avira settings (like me) and after some reading in related topic in Avira’s forum, I’ll sum up what you have to do step by step to use Avira with MSN file transferring !
First, you have to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=82&subd=flyingdogz&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Regarding to Radu’s post at: <a title="http://forum.avira.com/wbb/index.php?page=Thread&amp;postID=208662" href="http://forum.avira.com/wbb/index.php?page=Thread&amp;postID=208662">http://forum.avira.com/wbb/index.php?page=Thread&amp;postID=208662</a></p>
<p>Since it’s still not clear enough for many end-user that is not familiar with Avira settings (like me) and after some reading in related topic in Avira’s forum, I’ll sum up what you have to do step by step to use Avira with MSN file transferring !</p>
<p>First, you have to Open a File Transfer tab in your MSN (or Windows Live Messenger)</p>
<p><img style="display:block;float:none;margin-left:auto;margin-right:auto;border-width:0;" title="msn_files_option" border="0" alt="msn_files_option" src="http://flyingdogz.files.wordpress.com/2009/08/msn_files_option.png?w=419&#038;h=480" width="419" height="480" /></p>
<p>Then tick the ‘Scan files for viruses using:’ checkbox.</p>
<p>Click Browse and go to your installed Avira Antivir directory and select the avscan.exe.&#160; <em>e.g. C:\Program Files\Avira\AntiVir Desktop\avscan.exe</em> </p>
<p>&#160;</p>
<p>Now append the options text after the avscan.exe path like.</p>
<blockquote><p>/CFG=&quot;D:\aviracfg\single_scanner.cfg&quot; /PATH=%file%</p>
</blockquote>
<p>Now the value in the textbox should looks like <em>&quot;C:\Program Files\Avira\AntiVir Desktop\avscan.exe&quot; /CFG=&quot;D:\aviracfg\single_scanner.cfg&quot; /PATH=%file%</em></p>
<p>Where D:\aviracfg\single_scanner.cfg is the location of your Avira’s configuration file which you will now creating it.</p>
<p>The content of D:\aviracfg\single_scanner.cfg file is.</p>
<blockquote><p>[CFG]      <br />GuiMode=3       <br />ExitMode=3 </p>
<p>[SEARCH]      <br />Parameter=0&#215;00000002       <br />Parameter=0&#215;00000020       <br />Parameter=0&#215;00000100       <br />Parameter=0&#215;00000400       <br />Parameter=0&#215;00010000       <br />Parameter=0&#215;00000080 </p>
<p>[SCANNER]      <br />BootsektorStart=0       <br />Memory=0       <br />ScanRootkits=0</p>
</blockquote>
<p>Feel free to save it as your own filename and directory, all you need is just to specify its path correctly e.g. <em>/CFG=&quot;X:\yourpath\yourname.cfg&quot;</em></p>
<p>Now your MSN File Transfer setting should look like</p>
<p><img style="display:inline;border-width:0;" title="msng_files_after" border="0" alt="msng_files_after" src="http://flyingdogz.files.wordpress.com/2009/08/msng_files_after.png?w=419&#038;h=480" width="419" height="480" /> </p>
<p>Click Ok and you’re finished !!</p>
<p>Below is my testing to ensure that it’s working.</p>
<p><img style="display:inline;border-width:0;" title="msn_files_rcv" border="0" alt="msn_files_rcv" src="http://flyingdogz.files.wordpress.com/2009/08/msn_files_rcv1.png?w=434&#038;h=435" width="434" height="435" /></p>
<p><img style="display:inline;border-width:0;" title="msn_files_avr" border="0" alt="msn_files_avr" src="http://flyingdogz.files.wordpress.com/2009/08/msn_files_avr1.png?w=432&#038;h=304" width="432" height="304" /> </p>
<p><img style="display:inline;border-width:0;" title="msn_files_avr_scanned" border="0" alt="msn_files_avr_scanned" src="http://flyingdogz.files.wordpress.com/2009/08/msn_files_avr_scanned.png?w=363&#038;h=484" width="363" height="484" /></p>
<p>Hope this helps! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flyingdogz.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flyingdogz.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flyingdogz.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flyingdogz.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flyingdogz.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flyingdogz.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flyingdogz.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flyingdogz.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flyingdogz.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flyingdogz.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=82&subd=flyingdogz&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flyingdogz.wordpress.com/2009/08/16/how-to-configure-avira-antivir-with-msn/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5fe720d1b5e7055c62cc16969e8829b3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">flyingdogz</media:title>
		</media:content>

		<media:content url="http://flyingdogz.files.wordpress.com/2009/08/msn_files_option.png" medium="image">
			<media:title type="html">msn_files_option</media:title>
		</media:content>

		<media:content url="http://flyingdogz.files.wordpress.com/2009/08/msng_files_after.png" medium="image">
			<media:title type="html">msng_files_after</media:title>
		</media:content>

		<media:content url="http://flyingdogz.files.wordpress.com/2009/08/msn_files_rcv1.png" medium="image">
			<media:title type="html">msn_files_rcv</media:title>
		</media:content>

		<media:content url="http://flyingdogz.files.wordpress.com/2009/08/msn_files_avr1.png" medium="image">
			<media:title type="html">msn_files_avr</media:title>
		</media:content>

		<media:content url="http://flyingdogz.files.wordpress.com/2009/08/msn_files_avr_scanned.png" medium="image">
			<media:title type="html">msn_files_avr_scanned</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows 7</title>
		<link>http://flyingdogz.wordpress.com/2009/08/01/windows-7/</link>
		<comments>http://flyingdogz.wordpress.com/2009/08/01/windows-7/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 19:10:11 +0000</pubDate>
		<dc:creator>flyingdogz</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://flyingdogz.wordpress.com/2009/08/01/windows-7/</guid>
		<description><![CDATA[ในที่สุดก็ได้ลงจนได้… (ยังไม่ได้ลอง activate เลย)
 
รู้สึกว่าช้าลงกว่า XP นิดหน่อย (ใหนใครมันบอกว่าเร็วขึ้น ?) ส่วนเรื่อง driver นี่… ไม่ได้เรื่องเลย หาอะไรไม่เจอสักอย่าง ( nforce chipset , ati radeon hd4770) กว่าจะต่อเนทได้ก็ด้วยการจับ driver ของ XP ยัดลงไปดื้อๆ (ดันใช้ได้แฮะ ?) แต่ก็ดี เพราะไม่งั้นคงยุ่งยากตาย (และคงเป็น First Impression ที่ห่วยน่าดู ?)..
ไหนๆก็ไหนๆ มาดู Mem Usage กันหน่อยดีกว่า ตอนนี้เปิด MSN , Firefox , Writer ,Snagit , uTorrent
 
1.08g… อืมม ใครว่ามันน้อยกว่า XP ไหมเนี่ย ? รู้สึกเหมือนพอๆกันเลยนะ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=67&subd=flyingdogz&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>ในที่สุดก็ได้ลงจนได้… (ยังไม่ได้ลอง activate เลย)</p>
<p><img style="border-bottom:0;border-left:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;" title="7-desktop" border="0" alt="7-desktop" src="http://flyingdogz.files.wordpress.com/2009/08/7desktop.png?w=450&#038;h=375" width="450" height="375" /> </p>
<p>รู้สึกว่าช้าลงกว่า XP นิดหน่อย (ใหนใครมันบอกว่าเร็วขึ้น ?) ส่วนเรื่อง driver นี่… ไม่ได้เรื่องเลย <strong>หาอะไรไม่เจอสักอย่าง</strong> ( nforce chipset , ati radeon hd4770) กว่าจะต่อเนทได้ก็ด้วยการจับ driver ของ XP ยัดลงไปดื้อๆ (ดันใช้ได้แฮะ ?) แต่ก็ดี เพราะไม่งั้นคงยุ่งยากตาย (และคงเป็น First Impression ที่ห่วยน่าดู ?)..</p>
<p>ไหนๆก็ไหนๆ มาดู Mem Usage กันหน่อยดีกว่า ตอนนี้เปิด MSN , Firefox , Writer ,Snagit , uTorrent</p>
<p><img style="display:block;float:none;margin-left:auto;margin-right:auto;" title="7-taskmgr" alt="7-taskmgr" src="http://flyingdogz.files.wordpress.com/2009/08/7taskmgr1.png?w=412&#038;h=459" width="412" height="459" /> </p>
<p>1.08g… อืมม ใครว่ามันน้อยกว่า XP ไหมเนี่ย ? รู้สึกเหมือนพอๆกันเลยนะ -*-</p>
<p>อ่า.. ก่อนจะหมดกำลังใจกันมากกว่านี้ มาดูข้อดีมันบ้างดีกว่าเนอะ..</p>
<ul>
<li>ลงเร็วมาก (เร็วจริงๆ เปิดทิ้งไว้ เล่น pokemon สู้ไปแค่สองสามตา เสร็จแล้ว..)</li>
<li>สวย… เย้ -*-</li>
<li>เท่าที่ลอง.. software ส่วนใหญ่ จาก xp <strong>เอามาใช้ได้เลย</strong>… (SnagIt , uTorrent , FileZilla, Firefox , Ventrilo แล้วก็ driver chipset)</li>
<li>World of Warcraft ที่ลากไว้สมัยลงใน XP ก็เปิดเล่นได้เลย ไม่มีปัญหา –_-b</li>
<li>วินนิ่ง กะ สตรีท ยังไมได้ลอง..</li>
<li>ยังไม่เจอ Popup ถามเวลาพยายามจะทำอะไรเลย ตั้งแต่ใช้งานมา เรียบๆ ลื่นๆ</li>
<li>ระบบจัดการ Documents เจ๋งมาก เลือกได้ว่าจะให้รวม folder ไหนได้บ้าง อย่างเช่น ปกติมันอยู่ที่ C:/User/username แต่เราอยากให้มันโชว์เอกสารใน folder D:/XXX ด้วยก็ทำได้ (ดูฉลาดขึ้นกว่าระบบ My Docs สมัย XP)</li>
<li>ยังคงเซทให้เปลี่ยนภาษาด้วย grave accent ได้เหมือนเดิม ( Windows จงเจริญ! )</li>
<li>New MS Paint เจ๋งโคตร !</li>
</ul>
<p>
<ul><img style="display:block;float:none;margin-left:auto;margin-right:auto;" title="7-paint" alt="7-paint" src="http://flyingdogz.files.wordpress.com/2009/08/7paint2.png?w=450&#038;h=256" width="450" height="256" /> </ul>
</p>
<ul>
<li>ระบบ Home Network ที่แชร์ printer และไฟล์อื่นๆได้ แนวคิดดีโคตร แต่ยังไม่ได้ลองว่าเวิร์คไหม (เพราะ notebook&#160; แก่เกินกว่าจะลง 7 ได้…)</li>
</ul>
<p>ส่วนไอ้ที่รู้สึกว่ายังไม่ค่อยดี</p>
<ul>
<li>ภาษาไทย ยังมีแปลกๆ ไม่เนียนเหมือน XP</li>
<li>มันช้ากว่า XP จริงๆนะ –*- (เครื่องผมแรม 3G.. ไม่ใช่ iPhone นะ)</li>
<li>หาอะไรไม่ค่อยเจอ ทำอะไรไม่ค่อยถูก (แต่เดี๋ยวพอชินก็คงดีเอง)</li>
<li>ลงโปรแกรมสองโปรแกรมพร้อมกันไม่ได้ ! มันจะไม่ยอม และก็โง่พอที่จะทำให้เจ๊งไปทั้งคู่เลย.. (ทำไมเมิงไม่หยุดไอ้ตัวทีหลังไว้ก่อนฟะ เซ็งเป็ด…)</li>
<li>Windows Live Writer ม่ามช้าและกระตุกเหมือนเดิม (ไม่เกี่ยวกะ Windows 7 +_+ )</li>
</ul>
<p>ปิดท้ายด้วย Information..</p>
<p><img style="display:inline;" title="7-sysinfo" alt="7-sysinfo" src="http://flyingdogz.files.wordpress.com/2009/08/7sysinfo1.png?w=450&#038;h=302" width="450" height="302" /> </p>
<p>Using Windows 7 Ultimate : 7600.16385.090713-1255 คร้าบ..</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flyingdogz.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flyingdogz.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flyingdogz.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flyingdogz.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flyingdogz.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flyingdogz.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flyingdogz.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flyingdogz.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flyingdogz.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flyingdogz.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=67&subd=flyingdogz&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flyingdogz.wordpress.com/2009/08/01/windows-7/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5fe720d1b5e7055c62cc16969e8829b3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">flyingdogz</media:title>
		</media:content>

		<media:content url="http://flyingdogz.files.wordpress.com/2009/08/7desktop.png" medium="image">
			<media:title type="html">7-desktop</media:title>
		</media:content>

		<media:content url="http://flyingdogz.files.wordpress.com/2009/08/7taskmgr1.png" medium="image">
			<media:title type="html">7-taskmgr</media:title>
		</media:content>

		<media:content url="http://flyingdogz.files.wordpress.com/2009/08/7paint2.png" medium="image">
			<media:title type="html">7-paint</media:title>
		</media:content>

		<media:content url="http://flyingdogz.files.wordpress.com/2009/08/7sysinfo1.png" medium="image">
			<media:title type="html">7-sysinfo</media:title>
		</media:content>
	</item>
		<item>
		<title>ขอบใจนะ</title>
		<link>http://flyingdogz.wordpress.com/2008/04/10/%e0%b8%82%e0%b8%ad%e0%b8%9a%e0%b9%83%e0%b8%88%e0%b8%99%e0%b8%b0/</link>
		<comments>http://flyingdogz.wordpress.com/2008/04/10/%e0%b8%82%e0%b8%ad%e0%b8%9a%e0%b9%83%e0%b8%88%e0%b8%99%e0%b8%b0/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 17:31:23 +0000</pubDate>
		<dc:creator>flyingdogz</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Movies / Music / Lyrics]]></category>
		<category><![CDATA[ขอบใจนะ]]></category>
		<category><![CDATA[เนื้อเพลง]]></category>
		<category><![CDATA[DIY]]></category>

		<guid isPermaLink="false">http://flyingdogz.wordpress.com/?p=61</guid>
		<description><![CDATA[
เพลง : ขอบใจนะ
ศิลปิน : แพรว คณิตกุล
อัลบั้ม : DIY by Narongvit
ข้อความที่เธอเคยส่ง อะไรที่ทำให้ฉัน
แสดงถึงความเป็นห่วงและสนใจ
เพิ่งรู้ว่ามันลำบาก ไม่เป็นตัวเธอใช่ไหม
เหนื่อยไหม ต้องทำอะไรอย่างนี้
อย่ายื้อ&#8230;ให้เหนื่อยใจ หากเธอไม่เป็นตัวเอง
อย่าฝืน&#8230;ทำต่อไป อีกเลย เพื่อให้เรารักกัน
ขอบใจนะ ที่ครั้งนึงเธอเคยยอมฝืนใจตัวเอง
ขอบใจนะ ฉันรู้ว่าเธอทำดีที่สุดแล้ว
อย่างน้อย ครั้งหนึ่ง ที่พยายามทุ่มเท
อดทนให้กัน แค่นั้นก็ดีมากมาย
อย่าโทษว่าตัวเธอผิด อย่าคิดว่าเป็นเรื่องร้าย
อย่ากลัวถ้าเธอจะปล่อยมือฉันไป
กลับไปเป็นเธอคนเก่า เก็บความทรงจำนี้ไว้
ได้ไหม&#8230;ฉันขอให้เป็นอย่างนั้น
อย่ายื้อ&#8230;ให้เหนื่อยใจ หากเธอไม่เป็นตัวเอง
 อย่าฝืน&#8230;ทำต่อไป อีกเลย เพื่อให้เรารักกัน

ขอบใจนะ ที่ครั้งนึงเธอเคยยอมฝืนใจตัวเอง
 ขอบใจนะ ฉันรู้ว่าเธอทำดีที่สุดแล้ว
 อย่างน้อย ครั้งหนึ่ง ที่พยายามทุ่มเท
อดทนให้กัน แค่นั้นก็ดีมากมาย
&#8230;
ขอบใจนะ  
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=61&subd=flyingdogz&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="text-align:center; display: block;"><a href="http://flyingdogz.wordpress.com/2008/04/10/%e0%b8%82%e0%b8%ad%e0%b8%9a%e0%b9%83%e0%b8%88%e0%b8%99%e0%b8%b0/"><img src="http://img.youtube.com/vi/V4ySKFoOYvw/2.jpg" alt="" /></a></span></p>
<p><span style="color:#800000;"><span><span><strong><span>เพลง : ขอบใจนะ<br />
ศิลปิน : แพรว คณิตกุล<br />
อัลบั้ม : DIY by Narongvit</span></strong></span></span></span></p>
<p><span style="color:#008080;">ข้อความที่เธอเคยส่ง อะไรที่ทำให้ฉัน<br />
แสดงถึงความเป็นห่วงและสนใจ<br />
เพิ่งรู้ว่ามันลำบาก ไม่เป็นตัวเธอใช่ไหม<br />
เหนื่อยไหม ต้องทำอะไรอย่างนี้</span></p>
<p><span style="color:#008080;">อย่ายื้อ&#8230;ให้เหนื่อยใจ หากเธอไม่เป็นตัวเอง<br />
อย่าฝืน&#8230;ทำต่อไป อีกเลย เพื่อให้เรารักกัน</span></p>
<p><span style="color:#008080;">ขอบใจนะ ที่ครั้งนึงเธอเคยยอมฝืนใจตัวเอง<br />
ขอบใจนะ ฉันรู้ว่าเธอทำดีที่สุดแล้ว<br />
อย่างน้อย ครั้งหนึ่ง ที่พยายามทุ่มเท<br />
อดทนให้กัน แค่นั้นก็ดีมากมาย</span></p>
<p><span style="color:#008080;"><em>อย่าโทษว่าตัวเธอผิด อย่าคิดว่าเป็นเรื่องร้าย</em><br />
อย่ากลัวถ้าเธอจะปล่อยมือฉันไป<br />
กลับไปเป็นเธอคนเก่า เก็บความทรงจำนี้ไว้<br />
ได้ไหม&#8230;ฉันขอให้เป็นอย่างนั้น</span></p>
<p><span style="color:#008080;"><em>อย่ายื้อ&#8230;ให้เหนื่อยใจ หากเธอไม่เป็นตัวเอง<br />
</em> อย่าฝืน&#8230;ทำต่อไป อีกเลย เพื่อให้เรารักกัน<em><br />
</em><br />
ขอบใจนะ ที่ครั้งนึงเธอเคยยอมฝืนใจตัวเอง<br />
<em> ขอบใจนะ ฉันรู้ว่าเธอทำดีที่สุดแล้ว</em><br />
<em> อย่างน้อย ครั้งหนึ่ง ที่พยายามทุ่มเท<br />
อดทนให้กัน แค่นั้นก็ดีมากมาย</em></span></p>
<p>&#8230;</p>
<p>ขอบใจนะ <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flyingdogz.wordpress.com/61/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flyingdogz.wordpress.com/61/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flyingdogz.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flyingdogz.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flyingdogz.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flyingdogz.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flyingdogz.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flyingdogz.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flyingdogz.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flyingdogz.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flyingdogz.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flyingdogz.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=61&subd=flyingdogz&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flyingdogz.wordpress.com/2008/04/10/%e0%b8%82%e0%b8%ad%e0%b8%9a%e0%b9%83%e0%b8%88%e0%b8%99%e0%b8%b0/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5fe720d1b5e7055c62cc16969e8829b3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">flyingdogz</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/V4ySKFoOYvw/2.jpg" medium="image" />
	</item>
		<item>
		<title>World.sanook</title>
		<link>http://flyingdogz.wordpress.com/2008/02/17/worldsanook/</link>
		<comments>http://flyingdogz.wordpress.com/2008/02/17/worldsanook/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 23:06:49 +0000</pubDate>
		<dc:creator>flyingdogz</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[sanook.com world chat]]></category>

		<guid isPermaLink="false">http://flyingdogz.wordpress.com/2008/02/17/worldsanook/</guid>
		<description><![CDATA[http://world.sanook.com
idea เจ๋งดี แต่ยังไม่ว่างลอง
เพิ่งไปเจอ เลยเอามาแปะไ้ว้ก่อน หุหุ
ไว้ไปลองแล้วจะมาเล่าให้ฟัง..
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=60&subd=flyingdogz&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://world.sanook.com" target="_blank">http://world.sanook.com</a></p>
<p>idea เจ๋งดี แต่ยังไม่ว่างลอง</p>
<p>เพิ่งไปเจอ เลยเอามาแปะไ้ว้ก่อน หุหุ</p>
<p>ไว้ไปลองแล้วจะมาเล่าให้ฟัง..</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flyingdogz.wordpress.com/60/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flyingdogz.wordpress.com/60/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flyingdogz.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flyingdogz.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flyingdogz.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flyingdogz.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flyingdogz.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flyingdogz.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flyingdogz.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flyingdogz.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flyingdogz.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flyingdogz.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=60&subd=flyingdogz&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flyingdogz.wordpress.com/2008/02/17/worldsanook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5fe720d1b5e7055c62cc16969e8829b3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">flyingdogz</media:title>
		</media:content>
	</item>
		<item>
		<title>Image Rotate in Java #2 : easier to use</title>
		<link>http://flyingdogz.wordpress.com/2008/02/11/image-rotate-in-java-2-easier-to-use/</link>
		<comments>http://flyingdogz.wordpress.com/2008/02/11/image-rotate-in-java-2-easier-to-use/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 19:37:38 +0000</pubDate>
		<dc:creator>flyingdogz</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[rotate]]></category>

		<guid isPermaLink="false">http://flyingdogz.wordpress.com/?p=49</guid>
		<description><![CDATA[I&#8217;ve combine the source I provided in the first article , which receive and return BufferedImage object , with the Image to a BufferedImage code that I&#8217;ve found from  http://www.exampledepot.com/egs/java.awt.image/Image2Buf.html.
The result is the Class ImageUtils with the rotateImage() method that receive 2 parameters , img &#8211; an Image object to rotate and degree &#8211; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=49&subd=flyingdogz&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve combine the source I provided in <a href="http://flyingdogz.wordpress.com/2008/02/09/image-rotate-in-java/">the first article</a> , which receive and return BufferedImage object , with the Image to a BufferedImage code that I&#8217;ve found from  <a href="http://www.exampledepot.com/egs/java.awt.image/Image2Buf.html" target="_blank">http://www.exampledepot.com/egs/java.awt.image/Image2Buf.html</a>.</p>
<p>The result is the Class ImageUtils with the rotateImage() method that receive 2 parameters , img &#8211; an Image object to rotate and degree &#8211; the integer value of the degree that img will be rotated, the code is all shown below <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>** please note that I&#8217;m ONLY just combine these code to make it easier to use and I DIDN&#8217;T wrote it all myself.</p>
<p>ImageUtils.java</p>
<pre>
package mystic.utils;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.HeadlessException;
import java.awt.Image;
import java.awt.Transparency;
import java.awt.image.BufferedImage;
import java.awt.image.ColorModel;
import java.awt.image.PixelGrabber;
import javax.swing.ImageIcon;

public class ImageUtils {

    public static Image rotateImage(Image img,double degree){
        BufferedImage bufImg = toBufferedImage(img);
        double angle = Math.toRadians(degree);

        return tilt(bufImg,angle);
    }

    public static BufferedImage tilt(BufferedImage image, double angle) {
        double sin = Math.abs(Math.sin(angle)), cos = Math.abs(Math.cos(angle));
        int w = image.getWidth(), h = image.getHeight();
        int neww = (int)Math.floor(w*cos+h*sin), newh = (int)Math.floor(h*cos+w*sin);
        GraphicsConfiguration gc = getDefaultConfiguration();
        BufferedImage result = gc.createCompatibleImage(neww, newh, Transparency.TRANSLUCENT);
        Graphics2D g = result.createGraphics();
        g.translate((neww-w)/2, (newh-h)/2);
        g.rotate(angle, w/2, h/2);
        g.drawRenderedImage(image, null);
        g.dispose();
        return result;
    }

    public static GraphicsConfiguration getDefaultConfiguration() {
        GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
        GraphicsDevice gd = ge.getDefaultScreenDevice();
        return gd.getDefaultConfiguration();
    }

    // http://www.exampledepot.com/egs/java.awt.image/Image2Buf.html
    // An Image object cannot be converted to a BufferedImage object.
    // The closest equivalent is to create a buffered image and then draw the image on the buffered image.
    // This example defines a method that does this.

    // This method returns a buffered image with the contents of an image
    public static BufferedImage toBufferedImage(Image image) {
        if (image instanceof BufferedImage) {
            return (BufferedImage)image;
        }

        // This code ensures that all the pixels in the image are loaded
        image = new ImageIcon(image).getImage();

        // Determine if the image has transparent pixels; for this method's
        // implementation, see e661 Determining If an Image Has Transparent Pixels
        boolean hasAlpha = hasAlpha(image);

        // Create a buffered image with a format that's compatible with the screen
        BufferedImage bimage = null;
        GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
        try {
            // Determine the type of transparency of the new buffered image
            int transparency = Transparency.OPAQUE;
            if (hasAlpha) {
                transparency = Transparency.BITMASK;
            }

            // Create the buffered image
            GraphicsDevice gs = ge.getDefaultScreenDevice();
            GraphicsConfiguration gc = gs.getDefaultConfiguration();
            bimage = gc.createCompatibleImage(
                image.getWidth(null), image.getHeight(null), transparency);
        } catch (HeadlessException e) {
            // The system does not have a screen
        }

        if (bimage == null) {
            // Create a buffered image using the default color model
            int type = BufferedImage.TYPE_INT_RGB;
            if (hasAlpha) {
                type = BufferedImage.TYPE_INT_ARGB;
            }
            bimage = new BufferedImage(image.getWidth(null), image.getHeight(null), type);
        }

        // Copy image to buffered image
        Graphics g = bimage.createGraphics();

        // Paint the image onto the buffered image
        g.drawImage(image, 0, 0, null);
        g.dispose();

        return bimage;
    }

    // http://www.exampledepot.com/egs/java.awt.image/HasAlpha.html
    // This method returns true if the specified image has transparent pixels
    public static boolean hasAlpha(Image image) {
        // If buffered image, the color model is readily available
        if (image instanceof BufferedImage) {
            BufferedImage bimage = (BufferedImage)image;
            return bimage.getColorModel().hasAlpha();
        }

        // Use a pixel grabber to retrieve the image's color model;
        // grabbing a single pixel is usually sufficient
         PixelGrabber pg = new PixelGrabber(image, 0, 0, 1, 1, false);
        try {
            pg.grabPixels();
        } catch (InterruptedException e) {
        }

        // Get the image's color model
        ColorModel cm = pg.getColorModel();
        return cm.hasAlpha();
    }
}</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flyingdogz.wordpress.com/49/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flyingdogz.wordpress.com/49/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flyingdogz.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flyingdogz.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flyingdogz.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flyingdogz.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flyingdogz.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flyingdogz.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flyingdogz.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flyingdogz.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flyingdogz.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flyingdogz.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=49&subd=flyingdogz&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flyingdogz.wordpress.com/2008/02/11/image-rotate-in-java-2-easier-to-use/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5fe720d1b5e7055c62cc16969e8829b3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">flyingdogz</media:title>
		</media:content>
	</item>
		<item>
		<title>Using the Desktop API in Java SE 6</title>
		<link>http://flyingdogz.wordpress.com/2008/02/10/using-the-desktop-api-in-java-se-6/</link>
		<comments>http://flyingdogz.wordpress.com/2008/02/10/using-the-desktop-api-in-java-se-6/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 23:10:49 +0000</pubDate>
		<dc:creator>flyingdogz</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[desktop api]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://flyingdogz.wordpress.com/?p=48</guid>
		<description><![CDATA[Author : John O&#8217;Conner,
Source :  http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/
Conclude by : ME
More info : http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html
&#8211;
Desktop Overview







This new functionality is provided by the java.awt.Desktop class. The API is adopted from the JDesktop Integration Components (JDIC) project. The goal of that project is to make &#8220;Java technology-based applications first-class citizens&#8221; of the desktop, enabling seamless integration. Specifically, the new [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=48&subd=flyingdogz&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Author : <i><a href="http://java.sun.com/features/authors.html#oconner">John O&#8217;Conner</a>,</i></p>
<p>Source :  http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/</p>
<p>Conclude by : ME</p>
<p>More info : http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html</p>
<p>&#8211;</p>
<div><b>Desktop Overview</b></div>
<div class="contentdivider">
<table class="grey4" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><img src="http://java.sun.com/im/a.gif" alt=" " border="0" height="4" width="1" /></td>
</tr>
</table>
</div>
<p>This new functionality is provided by the <code>java.awt.Desktop</code> class. The API is adopted from the <a href="http://jdic.dev.java.net/" target="_blank">JDesktop Integration Components (JDIC)</a> project. The goal of that project is to make &#8220;Java technology-based applications first-class citizens&#8221; of the desktop, enabling seamless integration. Specifically, the new Desktop API allows your Java applications to do the following:</p>
<ul>
<li>Launch the host system&#8217;s default browser with a specific Uniform Resource Identifier (URI)</li>
<li>Launch the host system&#8217;s default email client</li>
<li>Launch applications to open, edit, or print files associated with those applications</li>
</ul>
<p>The Desktop API uses your host operating system&#8217;s file associations to launch applications associated with specific file types. For example, if OpenDocument text (<code>.odt</code>) file extensions are associated with the <a href="http://www.openoffice.org/" target="_blank">OpenOffice</a> Writer application, your Java application could launch OpenOffice Writer to open, edit, or even print files with that association. Depending on your host system, different applications may be associated with each different action.</p>
<div><b>Opening the Browser</b></div>
<div class="contentdivider">
<table class="grey4" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><img src="http://java.sun.com/im/a.gif" alt=" " border="0" height="4" width="1" /></td>
</tr>
</table>
</div>
<p>Calling the following instance method will open your host&#8217;s default browser:</p>
<p><!-- BEGIN VCD7 CODE SAMPLE COMPONENT  --></p>
<pre>
    public void browse(URI uri) throws IOException
</pre>
<p>ex.</p>
<pre>
    private void onLaunchBrowser(java.awt.event.ActionEvent evt) {
        URI uri = null;
        try {
            uri = new URI(txtBrowserURI.getText());
            desktop.browse(uri);
        }
        catch(IOException ioe) {
            ioe.printStackTrace();
        }
        catch(URISyntaxException use) {
            use.printStackTrace();

        }
        ...
    }</pre>
<div><b>Sending Email</b></div>
<div class="contentdivider">
<table class="grey4" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><img src="http://java.sun.com/im/a.gif" alt=" " border="0" height="4" width="1" /></td>
</tr>
</table>
</div>
<p>Applications can launch the host&#8217;s default email client, if that action is supported, by calling this <code>Desktop</code> instance method:</p>
<p><!-- BEGIN VCD7 CODE SAMPLE COMPONENT  --></p>
<pre>    public void mail(URI uri) throws IOException</pre>
<p>ex.</p>
<pre>
     private void onLaunchMail(java.awt.event.ActionEvent evt) {
        String mailTo = txtMailTo.getText();
        URI uriMailTo = null;
        try {
            if (mailTo.length() &gt; 0) {
                uriMailTo = new URI("mailto", mailTo, null);
                desktop.mail(uriMailTo);
            } else {
                desktop.mail();
            }
        }
        catch(IOException ioe) {
            ioe.printStackTrace();
        }
        catch(URISyntaxException use) {
            use.printStackTrace();
        }
        ...
    }</pre>
<div><b>Opening, Editing, and Printing a File</b></div>
<div class="contentdivider">
<table class="grey4" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><img src="http://java.sun.com/im/a.gif" alt=" " border="0" height="4" width="1" /></td>
</tr>
</table>
</div>
<p>Java applications can open, edit, and print files from their associated application using a <code>Desktop</code> object&#8217;s <code>open()</code>, <code>edit()</code>, and <code>print()</code> methods, respectively (see Figure 8). Again, DesktopDemo allows these actions only if the <code>Desktop</code> instance supports them, so in this application scenario, it is not necessary to check for support again.</p>
<pre>    private void onLaunchDefaultApplication(java.awt.event.ActionEvent evt) {
        String fileName = txtFile.getText();
        File file = new File(fileName);

        try {
            switch(action) {
                case OPEN:
                    desktop.open(file);
                    break;
                case EDIT:
                    desktop.edit(file);
                    break;
                case PRINT:
                    desktop.print(file);
                    break;
            }
        }
        catch (IOException ioe) {
            ioe.printStackTrace();
        }
        ...
    }</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flyingdogz.wordpress.com/48/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flyingdogz.wordpress.com/48/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flyingdogz.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flyingdogz.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flyingdogz.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flyingdogz.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flyingdogz.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flyingdogz.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flyingdogz.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flyingdogz.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flyingdogz.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flyingdogz.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=48&subd=flyingdogz&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flyingdogz.wordpress.com/2008/02/10/using-the-desktop-api-in-java-se-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5fe720d1b5e7055c62cc16969e8829b3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">flyingdogz</media:title>
		</media:content>

		<media:content url="http://java.sun.com/im/a.gif" medium="image">
			<media:title type="html"> </media:title>
		</media:content>

		<media:content url="http://java.sun.com/im/a.gif" medium="image">
			<media:title type="html"> </media:title>
		</media:content>

		<media:content url="http://java.sun.com/im/a.gif" medium="image">
			<media:title type="html"> </media:title>
		</media:content>

		<media:content url="http://java.sun.com/im/a.gif" medium="image">
			<media:title type="html"> </media:title>
		</media:content>
	</item>
		<item>
		<title>Image Rotate in Java</title>
		<link>http://flyingdogz.wordpress.com/2008/02/09/image-rotate-in-java/</link>
		<comments>http://flyingdogz.wordpress.com/2008/02/09/image-rotate-in-java/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 22:49:40 +0000</pubDate>
		<dc:creator>flyingdogz</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[rotate]]></category>

		<guid isPermaLink="false">http://flyingdogz.wordpress.com/?p=36</guid>
		<description><![CDATA[Source : http://forum.java.sun.com/thread.jspa?threadID=487900&#38;messageID=2286191


import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.io.*;
import java.net.*;
import javax.imageio.*;
import javax.swing.*;

public class Tilt {
    public static void main(String[] args) throws IOException {
        URL url = new URL("http://weblogs.java.net/jag/Image1-large.jpeg");
        final BufferedImage image = ImageIO.read(url);
        [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=36&subd=flyingdogz&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div class="pad5x10">Source : http://forum.java.sun.com/thread.jspa?threadID=487900&amp;messageID=2286191</div>
<div class="pad5x10"></div>
<div class="pad5x10">
<pre><code><font color="navy"><b>import</b></font> java.awt.*;
<font color="navy"><b>import</b></font> java.awt.event.*;
<font color="navy"><b>import</b></font> java.awt.image.*;
<font color="navy"><b>import</b></font> java.io.*;
<font color="navy"><b>import</b></font> java.net.*;
<font color="navy"><b>import</b></font> javax.imageio.*;
<font color="navy"><b>import</b></font> javax.swing.*;

<font color="navy"><b>public</b></font> <font color="navy"><b>class</b></font> Tilt <font color="navy">{</font>
    <font color="navy"><b>public</b></font> <font color="navy"><b>static</b></font> <font color="navy"><b>void</b></font> main(String[] args) <font color="navy"><b>throws</b></font> IOException <font color="navy">{</font>
        URL url = <font color="navy"><b>new</b></font> URL(<font color="red">"http://weblogs.java.net/jag/Image1-large.jpeg"</font>);
        <font color="navy"><b>final</b></font> BufferedImage image = ImageIO.read(url);
        <font color="navy"><b>final</b></font> JLabel label = <font color="navy"><b>new</b></font> JLabel(<font color="navy"><b>new</b></font> ImageIcon(image));
        <font color="navy"><b>new</b></font> Timer(100, <font color="navy"><b>new</b></font> ActionListener()<font color="navy">{</font>
            <font color="navy"><b>double</b></font> angle = 0;
            <font color="navy"><b>public</b></font> <font color="navy"><b>void</b></font> actionPerformed(ActionEvent evt) <font color="navy">{</font>
                angle += Math.PI/50;
                label.setIcon(<font color="navy"><b>new</b></font> ImageIcon(tilt(image, angle)));
            <font color="navy">}</font>
        <font color="navy">}</font>).start();
        JFrame f = <font color="navy"><b>new</b></font> JFrame(<font color="red">"TILT"</font>);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(label);
        f.setSize(400,400);
        f.setLocationRelativeTo(<font color="navy"><b>null</b></font>);
        f.setVisible(<font color="navy"><b>true</b></font>);
    <font color="navy">}</font>

    <font color="navy"><b>public</b></font> <font color="navy"><b>static</b></font> BufferedImage tilt(BufferedImage image, <font color="navy"><b>double</b></font> angle) <font color="navy">{</font>
        <font color="navy"><b>double</b></font> sin = Math.abs(Math.sin(angle)), cos = Math.abs(Math.cos(angle));
        <font color="navy"><b>int</b></font> w = image.getWidth(), h = image.getHeight();
        <font color="navy"><b>int</b></font> neww = (<font color="navy"><b>int</b></font>)Math.floor(w*cos+h*sin), newh = (<font color="navy"><b>int</b></font>)Math.floor(h*cos+w*sin);
        GraphicsConfiguration gc = getDefaultConfiguration();
        BufferedImage result = gc.createCompatibleImage(neww, newh, Transparency.TRANSLUCENT);
        Graphics2D g = result.createGraphics();
        g.translate((neww-w)/2, (newh-h)/2);
        g.rotate(angle, w/2, h/2);
        g.drawRenderedImage(image, <font color="navy"><b>null</b></font>);
        g.dispose();
        <font color="navy"><b>return</b></font> result;
    <font color="navy">}</font>

    <font color="navy"><b>public</b></font> <font color="navy"><b>static</b></font> GraphicsConfiguration getDefaultConfiguration() <font color="navy">{</font>
        GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
        GraphicsDevice gd = ge.getDefaultScreenDevice();
        <font color="navy"><b>return</b></font> gd.getDefaultConfiguration();
    <font color="navy">}</font>
<font color="navy">}</font> </code></pre>
</div>
<div class="pad5x10"></div>
<div class="pad5x10">you can also try a getRotateInstance (double, int, int) too. (from comment in that thread)</div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flyingdogz.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flyingdogz.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flyingdogz.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flyingdogz.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flyingdogz.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flyingdogz.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flyingdogz.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flyingdogz.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flyingdogz.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flyingdogz.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flyingdogz.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flyingdogz.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=36&subd=flyingdogz&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flyingdogz.wordpress.com/2008/02/09/image-rotate-in-java/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5fe720d1b5e7055c62cc16969e8829b3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">flyingdogz</media:title>
		</media:content>
	</item>
		<item>
		<title>การปรับแต่ง vim ใน Ubuntu 7.10</title>
		<link>http://flyingdogz.wordpress.com/2008/02/06/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%87-vim-%e0%b9%83%e0%b8%99-ubuntu-710/</link>
		<comments>http://flyingdogz.wordpress.com/2008/02/06/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%87-vim-%e0%b9%83%e0%b8%99-ubuntu-710/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 10:29:20 +0000</pubDate>
		<dc:creator>flyingdogz</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vimrc]]></category>

		<guid isPermaLink="false">http://flyingdogz.wordpress.com/2008/02/06/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%87-vim-%e0%b9%83%e0%b8%99-ubuntu-710/</guid>
		<description><![CDATA[เนื่องจากใน Ubuntu 7.10 vim ได้ปิดการใช้งาน syntax hilight และ auto indent ไว้ทำให้เวลาเขียน shell script ด้วย vim ใน ubuntu จะไม่มีการ hilight สีและ tab ให้(แบบในห้อง lab 303) เราจึงต้องมีการแก้อะไรสักหน่อยเพื่อให้มันใช้งานได้
ในขั้นแรกเราก็ต้อง install vim version ที่ใหม่กว่าที่มากับ ubuntu ซะก่อนด้วยคำสั่ง




sudo apt-get install vim




หรือจะใช้




sudo apt-get install gvim




ก็ได้ ตัวหลังจะเป็น vim ในแบบ application ที่ใช้ gui ของ GNOME แต่การ install จะลง library ของ vim ที่ต้องใช้ทั้งหมดเหมือนกันพอลงเสร็จแล้วก็เข้าไปแก้ไขใน file /etc/vim/vimrc โดยจะต้องมี [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=35&subd=flyingdogz&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div class="content">เนื่องจากใน Ubuntu 7.10 vim ได้ปิดการใช้งาน syntax hilight และ auto indent ไว้ทำให้เวลาเขียน shell script ด้วย vim ใน ubuntu จะไม่มีการ hilight สีและ tab ให้(แบบในห้อง lab 303) เราจึงต้องมีการแก้อะไรสักหน่อยเพื่อให้มันใช้งานได้</p>
<p>ในขั้นแรกเราก็ต้อง install vim version ที่ใหม่กว่าที่มากับ ubuntu ซะก่อนด้วยคำสั่ง</p>
<div class="geshifilter">
<div class="geshifilter-bash" style="font-family:monospace;">
<ol>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;"><span style="color:#c20cb9;font-weight:bold;">sudo</span> apt-get <span style="color:#c20cb9;font-weight:bold;">install</span> vim</div>
</li>
</ol>
</div>
</div>
<p>หรือจะใช้</p>
<div class="geshifilter">
<div class="geshifilter-bash" style="font-family:monospace;">
<ol>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;"><span style="color:#c20cb9;font-weight:bold;">sudo</span> apt-get <span style="color:#c20cb9;font-weight:bold;">install</span> gvim</div>
</li>
</ol>
</div>
</div>
<p>ก็ได้ ตัวหลังจะเป็น vim ในแบบ application ที่ใช้ gui ของ GNOME แต่การ install จะลง library ของ vim ที่ต้องใช้ทั้งหมดเหมือนกันพอลงเสร็จแล้วก็เข้าไปแก้ไขใน file /etc/vim/vimrc โดยจะต้องมี permission เป็น su ด้วยถึงจะแก้ไขไฟล์นี้ได้ ใน ubuntu ใช้คำสั่ง</p>
<div class="geshifilter">
<div class="geshifilter-bash" style="font-family:monospace;">
<ol>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;"><span style="color:#c20cb9;font-weight:bold;">sudo</span> vim /etc/vim/vimrc</div>
</li>
</ol>
</div>
</div>
<p>หาบรรทัดที่เขียนว่า</p>
<div class="geshifilter">
<div class="geshifilter-text" style="font-family:monospace;">
<ol>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; Vim5 and later versions support syntax highlighting. Uncommenting the next</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; line enables syntax highlighting by default.</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; syntax on</div>
</li>
</ol>
</div>
</div>
<p>เอา comment (&#8220;) ของบรรทัดสุดท้าย (syntax on) ออก ให้เป็นแบบนี้</p>
<div class="geshifilter">
<div class="geshifilter-text" style="font-family:monospace;">
<ol>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; Vim5 and later versions support syntax highlighting. Uncommenting the next</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; line enables syntax highlighting by default.</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">syntax on</div>
</li>
</ol>
</div>
</div>
<p>จะเป็นการเปิดใช้งาน syntax hilight ของ vimจากนั้นหาบรรทัด</p>
<div class="geshifilter">
<div class="geshifilter-text" style="font-family:monospace;">
<ol>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; Uncomment the following to have Vim load indentation rules according to the</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; detected filetype. Per default Debian Vim only load filetype specific</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; plugins.</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; if has(&#8220;autocmd&#8221;)</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221;  filetype indent on</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; endif</div>
</li>
</ol>
</div>
</div>
<p>เอา comment ตั้งแต่ if จนถึง endif ออกจะเป็นการเปิดใช้งาน autoindent ของ vimตัวอย่างไฟล์ /etc/vim/vimrc ที่ใช้งานได้.. (ถ้าไม่คิดอะไรมากก็ก๊อปไปแปะทับได้เลย)</p>
<div class="geshifilter">
<div class="geshifilter-text" style="font-family:monospace;">
<ol>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; /usr/share/vim/vimcurrent/debian.vim) and sourced by the call to :runtime</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; you can find below.  If you wish to change any of those settings, you should</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; do it in this file (/etc/vim/vimrc), since debian.vim will be overwritten</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; everytime an upgrade of the vim packages is performed.  It is recommended to</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; make changes after sourcing debian.vim since it alters the value of the</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; &#8216;compatible&#8217; option.</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;"></div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; This line should not be removed as it ensures that various options are</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; properly set to work with the Vim-related packages available in Debian.</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">runtime! debian.vim</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;"></div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; Uncomment the next line to make Vim more Vi-compatible</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; NOTE: debian.vim sets &#8216;nocompatible&#8217;.  Setting &#8216;compatible&#8217; changes numerous</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; options, so any other options should be set AFTER setting &#8216;compatible&#8217;.</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8220;set compatible</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;"></div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; Vim5 and later versions support syntax highlighting. Uncommenting the next</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; line enables syntax highlighting by default.</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">syntax on</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;"></div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; If using a dark background within the editing area and syntax highlighting</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; turn on this option as well</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8220;set background=dark</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;"></div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; Uncomment the following to have Vim jump to the last position when</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; reopening a file</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8220;if has(&#8220;autocmd&#8221;)</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221;  au BufReadPost * if line(&#8220;&#8216;\&#8221;") &gt; 0 &amp;&amp; line(&#8220;&#8216;\&#8221;") &lt;= line(&#8220;$&#8221;)</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221;    \| exe &#8220;normal g&#8217;\&#8221;" | endif</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8220;endif</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;"></div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; Uncomment the following to have Vim load indentation rules according to the</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; detected filetype. Per default Debian Vim only load filetype specific</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; plugins.</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">if has(&#8220;autocmd&#8221;)</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">  filetype indent on</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">endif</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;"></div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; The following are commented out as they cause vim to behave a lot</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; differently from regular Vi. They are highly recommended though.</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8220;set showcmd            &#8221; Show (partial) command in status line.</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8220;set showmatch          &#8221; Show matching brackets.</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8220;set ignorecase         &#8221; Do case insensitive matching</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8220;set smartcase          &#8221; Do smart case matching</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8220;set incsearch          &#8221; Incremental search</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8220;set autowrite          &#8221; Automatically save before commands like :next and :make</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8220;set hidden             &#8221; Hide buffers when they are abandoned</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8220;set mouse=a            &#8221; Enable mouse usage (all modes) in terminals</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;"></div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; Source a global configuration file if available</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">&#8221; XXX Deprecated, please move your changes here in /etc/vim/vimrc</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">if filereadable(&#8220;/etc/vim/vimrc.local&#8221;)</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">  source /etc/vim/vimrc.local</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">endif</div>
</li>
</ol>
<div class="content">นอกจากไปแก้ใน /etc/vim/vimrc แล้วยังทำได้อีกวิธีคือ สร้างไฟล์ .vimrc ไว้ใน home directory แล้วก็ใส่สองบรรทัดนี้ลงไป</p>
<div class="geshifilter">
<div class="geshifilter-text" style="font-family:monospace;">
<ol>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">syntax on</div>
</li>
<li>
<div style="font-family:monospace;font-weight:normal;font-style:normal;">set autoindent</div>
</li>
</ol>
</div>
</div>
<p>แต่วิธีนี้ยังไม่ได้ลอง แต่ดูแ้ล้วเป็นวิธีที่เค้านิยมใช้กันมากกว่าแก้ vimrc  โดยตรงนะ</p>
<p>รายละเอียดเพิ่มเติมใน .vimrc ดูได้จาก <a href="http://www.csxix.com/?q=node/54" title="http://www.csxix.com/?q=node/54">http://www.csxix.com/?q=node/54</a></div>
</div>
</div>
</div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flyingdogz.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flyingdogz.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flyingdogz.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flyingdogz.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flyingdogz.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flyingdogz.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flyingdogz.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flyingdogz.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flyingdogz.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flyingdogz.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flyingdogz.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flyingdogz.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=35&subd=flyingdogz&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flyingdogz.wordpress.com/2008/02/06/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%87-vim-%e0%b9%83%e0%b8%99-ubuntu-710/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5fe720d1b5e7055c62cc16969e8829b3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">flyingdogz</media:title>
		</media:content>
	</item>
		<item>
		<title>How to restore Grub from a live Ubuntu cd.</title>
		<link>http://flyingdogz.wordpress.com/2008/02/06/how-to-restore-grub-from-a-live-ubuntu-cd/</link>
		<comments>http://flyingdogz.wordpress.com/2008/02/06/how-to-restore-grub-from-a-live-ubuntu-cd/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 05:54:39 +0000</pubDate>
		<dc:creator>flyingdogz</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[restore grub]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://flyingdogz.wordpress.com/?p=34</guid>
		<description><![CDATA[Author : catlett
Source :  http://ubuntuforums.org/showthread.php?t=224351
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
This will restore grub if you already had grub installed but lost it to a windows install or some other occurence that erased/changed your MBR so that grub no longer appears at start up or it returns an error.
(This how to is written for Ubuntu but should work on other [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=34&subd=flyingdogz&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Author : <a href="http://ubuntuforums.org/member.php?s=eaa6757494d3d9482e81d59b1fe8b023&amp;u=79105" class="bigusername">catlett</a></p>
<p>Source :  http://ubuntuforums.org/showthread.php?t=224351</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>This will restore grub if you already had grub installed but lost it to a windows install or some other occurence that erased/changed your MBR so that grub no longer appears at start up or it returns an error.</p>
<p>(This how to is written for Ubuntu but should work on other systems. The only thing to take note of, when you see &#8220;sudo&#8221; that will mean to you that the following command should be entered at a root terminal.)</p>
<p>Boot into the live Ubuntu cd. This can be the live installer cd or the older live session Ubuntu cds.</p>
<p>When you get to the desktop open a terminal and enter. (I am going to give you the commands and then I will explain them later)</p>
<div style="margin:5px 20px 20px;">
<div class="smallfont" style="margin-bottom:2px;">Code:</div>
<pre style="border:1px inset;overflow:auto;width:640px;height:34px;text-align:left;margin:0;padding:6px;">sudo grub</pre>
</div>
<p>This will get you a &#8220;grub&gt;&#8221; prompt (i.e. the grub shell). At grub&gt;. enter these commands</p>
<div style="margin:5px 20px 20px;">
<div class="smallfont" style="margin-bottom:2px;">Code:</div>
<pre style="border:1px inset;overflow:auto;width:640px;height:34px;text-align:left;margin:0;padding:6px;">find /boot/grub/stage1</pre>
</div>
<p>This will return a location. If you have more than one, select the installation that you want to provide the grub files.<br />
Next, THIS IS IMPORTANT, whatever was returned for the find command use it in the next line (you are still at grub&gt;. when you enter the next 3 commands)</p>
<div style="margin:5px 20px 20px;">
<div class="smallfont" style="margin-bottom:2px;">Code:</div>
<pre style="border:1px inset;overflow:auto;width:640px;height:34px;text-align:left;margin:0;padding:6px;">root (hd?,?)</pre>
</div>
<p>Again use the value from the find command i.e. if find returned (hd0,1) then you would enter root (hd0,1)</p>
<p>Next enter the command to install grub to the mbr</p>
<div style="margin:5px 20px 20px;">
<div class="smallfont" style="margin-bottom:2px;">Code:</div>
<pre style="border:1px inset;overflow:auto;width:640px;height:34px;text-align:left;margin:0;padding:6px;">setup (hd0)</pre>
</div>
<p>Finally exit the grub shell</p>
<div style="margin:5px 20px 20px;">
<div class="smallfont" style="margin-bottom:2px;">Code:</div>
<pre style="border:1px inset;overflow:auto;width:640px;height:34px;text-align:left;margin:0;padding:6px;">quit</pre>
</div>
<p>That is it. Grub will be installed to the mbr.<br />
When you reboot, you will have the grub menu at startup.</p>
<p>Now the explanation.<br />
Sudo grub gets you the grub shell.<br />
Find /boot/grub/stage1 has grub locate the file stage1. What this does is tell us where grub&#8217;s files are. Only a small part of grub is located on the mbr, the rest of grub is in your boot folder. Grub needs those files to run the setup. So you find the files and then you tell grub where to locate the files it will need for setup.<br />
So root (hd?,?) tells grub it&#8217;s files are on that partition.<br />
Finally setup (hd0) tells grub to setup on hd0. When you give grub the parameter hd0 with no following value for a partition, grub will use the mbr. hd0 is the grub label for the first drive&#8217;s mbr.<br />
Quit will exit you from the grub shell.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flyingdogz.wordpress.com/34/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flyingdogz.wordpress.com/34/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flyingdogz.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flyingdogz.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flyingdogz.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flyingdogz.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flyingdogz.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flyingdogz.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flyingdogz.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flyingdogz.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flyingdogz.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flyingdogz.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=34&subd=flyingdogz&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flyingdogz.wordpress.com/2008/02/06/how-to-restore-grub-from-a-live-ubuntu-cd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5fe720d1b5e7055c62cc16969e8829b3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">flyingdogz</media:title>
		</media:content>
	</item>
		<item>
		<title>Unix &amp; Shell Programming Project</title>
		<link>http://flyingdogz.wordpress.com/2008/02/03/unix-shell-programming-project/</link>
		<comments>http://flyingdogz.wordpress.com/2008/02/03/unix-shell-programming-project/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 12:45:47 +0000</pubDate>
		<dc:creator>flyingdogz</dc:creator>
				<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://flyingdogz.wordpress.com/?p=32</guid>
		<description><![CDATA[interesting :
- Command line file encryption :  http://murphymac.com/slib/interactive-shell-script-command-line-file-encryption.htm
- Copy modified files only : http://www.movingtofreedom.org/2007/04/15/bash-shell-script-copy-only-files-modifed-after-specified-date/
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=32&subd=flyingdogz&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><b>interesting :</b></p>
<p>- Command line file encryption :  <a href="http://murphymac.com/slib/interactive-shell-script-command-line-file-encryption.htm" target="_blank">http://murphymac.com/slib/interactive-shell-script-command-line-file-encryption.htm</a></p>
<p>- Copy modified files only : <a href="http://www.movingtofreedom.org/2007/04/15/bash-shell-script-copy-only-files-modifed-after-specified-date/" target="_blank">http://www.movingtofreedom.org/2007/04/15/bash-shell-script-copy-only-files-modifed-after-specified-date/</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flyingdogz.wordpress.com/32/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flyingdogz.wordpress.com/32/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flyingdogz.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flyingdogz.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flyingdogz.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flyingdogz.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flyingdogz.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flyingdogz.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flyingdogz.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flyingdogz.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flyingdogz.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flyingdogz.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flyingdogz.wordpress.com&blog=1783545&post=32&subd=flyingdogz&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flyingdogz.wordpress.com/2008/02/03/unix-shell-programming-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5fe720d1b5e7055c62cc16969e8829b3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">flyingdogz</media:title>
		</media:content>
	</item>
	</channel>
</rss>