<?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>Just My Life &#187; firefox</title>
	<atom:link href="http://imrgill.com/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://imrgill.com</link>
	<description>I&#039;m mrGilL, I&#039;m Newbie Admin</description>
	<lastBuildDate>Thu, 02 Sep 2010 08:25:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Script ต่อ True Wi-Fi อัตโนมัติ(Truewifi Auto Login V2.04)</title>
		<link>http://imrgill.com/2009/12/18/script-truewifi-auto-login-v2-04.html</link>
		<comments>http://imrgill.com/2009/12/18/script-truewifi-auto-login-v2-04.html#comments</comments>
		<pubDate>Fri, 18 Dec 2009 04:48:14 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[90 นาที]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[logout]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[true]]></category>
		<category><![CDATA[truewifi]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=500</guid>
		<description><![CDATA[หลายคนคงเคยใช้กันแล้วนะครับ สำหรับ version นี้ความสามารถก็ไม่มีอะไรเพิ่มครับ ผมแค่เปลี่ยน // @include * เป็น // @include http*://portal.trueinternet.co.th/* เพื่อลดภาระของ Firefox ที่จากเมื่อก่อนต้องทำงานบนทุกหน้าแล้วจึงไปเช็ค if ข้างในอีกที แต่ตอนนี้แค่เช็คว่าถ้าไม่ตรงกับ portal.trueinternet.co.th ก็จะไม่ทำงานแล้ว และแก้ไขหน่วยเวลาตรงตัวแปร tosec เป็น minutes โดยตอนนี้สามารถใส่เวลาเป็นหน่วยนาทีไปได้เลยครับ ตัวอย่าง หากต้องการให้สริปทำงานทุก 85 นาทีก็ใส่เป็น 85 ไปได้เลย หากใครใช้ Green Bangkok ก็เปลี่ยนเป็น 55 ได้เลย // timer var minutes = 85; //@truehisp ใส่เป็น 85 สำหรับ green bangkok @truewifi ใส่เป็น 55 แล้วก็ตัดตัวแปร onesec ออกแล้วไปกำหนดค่าใน [...]]]></description>
			<content:encoded><![CDATA[<p>หลายคนคงเคยใช้กันแล้วนะครับ สำหรับ version นี้ความสามารถก็ไม่มีอะไรเพิ่มครับ ผมแค่เปลี่ยน</p>
<pre>
<div class="codesnip-container" >// @include        *

เป็น

// @include        http*://portal.trueinternet.co.th/*</div>
</pre>
<p>เพื่อลดภาระของ Firefox ที่จากเมื่อก่อนต้องทำงานบนทุกหน้าแล้วจึงไปเช็ค if ข้างในอีกที แต่ตอนนี้แค่เช็คว่าถ้าไม่ตรงกับ portal.trueinternet.co.th ก็จะไม่ทำงานแล้ว</p>
<p>และแก้ไขหน่วยเวลาตรงตัวแปร tosec เป็น minutes โดยตอนนี้สามารถใส่เวลาเป็นหน่วยนาทีไปได้เลยครับ ตัวอย่าง หากต้องการให้สริปทำงานทุก 85 นาทีก็ใส่เป็น 85 ไปได้เลย หากใครใช้ Green Bangkok ก็เปลี่ยนเป็น 55 ได้เลย</p>
<pre>
<div class="codesnip-container" >// timer
var minutes = 85;  //@truehisp ใส่เป็น 85 สำหรับ green bangkok @truewifi ใส่เป็น 55</div>
</pre>
<p>แล้วก็ตัดตัวแปร onesec ออกแล้วไปกำหนดค่าใน function ตรงๆ เลย</p>
<p>สำหรับขั้นตอนการติดตั้งก็คล้ายกับตัวเดิมครับ คือ</p>
<p>1. เครื่องคุณต้องมี Mozilla Firefox ก่อนครับ โดยสามารถดาวน์โหลดได้ที่ <a href="http://www.mozilla.com/en-US/firefox/" target="_blank">http://www.mozilla.com/en-US/firefox/</a> เมื่อดาวน์โหลดมาแล้วก็ติดตั้งเลยครับใช้ Step Next and Next</p>
<p>2. ติดตั้ง Addon ของ Firefox ที่ชื่อ <a href="https://addons.mozilla.org/en-US/firefox/addon/748" target="_blank">Greasemonkey</a> &lt;&lt; คลิกลิงค์นี้ใน Firefox เข้าหน้า Greasemonkey แล้วก็คลิกที่ปุ่ม Add to Firefox เมื่อติดตั้งเสร็จแล้ว Firefox จะให้เรา Restart ตัวมันเองก็กด Restart Firefox ไปครับ โปรแกรมจะ Restart ตัวเองจากนั้นเมื่อมันเปิดขึ้นมาอีกครั้งเราจะเป็นรูปลิงน้อยที่มุมขวาล่าง ของ Status bar ของ Firefox</p>
<p style="text-align: center;"><img src="http://learners.in.th/file/gillclub/greasemonkey.jpg" border="0" alt="" /></p>
<p style="text-align: center;">รูปไอคอนของ Greasemonkey ที่ Status bar ของ Firefox</p>
<p>3. ดาวน์โหลด <a href="http://www.ziddu.com/download/8656138/truewifi_auto_login_v2.04.zip.html" target="_blank">truewifi_auto_login_v2.04.zip</a></p>
<p style="text-align: left;">แล้วแตกไฟล์ออกจะได้ไฟล์ truewifi_auto_login_v2.04.user.js จากนั้นคลิกขวาที่ไฟล์แล้วเลือก Edit ให้ทำการแก้ค่าต่าง ดังนี้</p>
<pre>
<div class="codesnip-container" >// user password and domain
var user="user"; // ใส่ username ของท่าน ลงไปแทน user
var password="passwd"; // ใส่ password ของท่าน ลงไปแทน passwd
var domainIndex= "3"; // ใส่ลำดับของ domain ลงไป เริ่มนับจาก 0 1 2 .... เช่น truewifi ใส่ 0 หรือถ้าเป็น truehisp ใส่เป็น 3 ครับ

// url
var redirect = "http://portal.trueinternet.co.th/wifiauthen/login.do?VLAN=851&amp;MAC=00:23:69:XX:XX:XX&amp;VERSION=V2";

// timer
var minutes = 85;  //@truehisp ใส่เป็น 85 สำหรับ green bangkok @truewifi ใส่เป็น 55</div>
</pre>
<p style="text-align: left;">หลายคนอาจสงสัยว่าค่าของ redirect เอามาจากไหน มีทิปมาแนะนำครับ วิธีที่ง่ายที่สุดก็คือเปิด firefox ขึ้นมาแล้วในช่อง Address ให้เรากรอกคำว่า portal จากนั้นโปรแกรมจะมี list รายการ history มาให้เลือกก็ให้เราเลือก</p>
<p style="text-align: left;">http://portal.trueinternet.co.th/wifiauthen/login.do?VLAN=851&amp;MAC=00:23:69:xx:xx:xx&amp;VERSION=V2</p>
<p style="text-align: left;">มาเลยครับ MAC=00:23:69:xx:xx:xx จะเป็น MAC ของเราอยู่แล้ว</p>
<p style="text-align: left;">สำหรับใครที่ยังไม่มี URL ดังกล่าวให้ลองใช้ firefox เรียกเว็บไซต์อะไรก่อนก็ได้ firefox จะ redirect ให้ไป URL ดังกล่าวให้เองแล้วก็ลองกรอกคำว่า portal ลงในช่อง Address อีกครั้งก็จะเห็น URL ดังกล่าว</p>
<p style="text-align: left;">เมื่อแก้ script เสร็จแล้วก็ save แล้วปิด notepad เลยครับ จากนั้นลากไฟล์ที่แก้ไขเสร็จแล้วใส่ Firefox เลยครับ มันจะถามให้ install ก็เลือก install เหมือนเคยครับ</p>
<p style="text-align: left;">4. คงมาถึงขึ้นตอนสุดท้ายกันแล้วครับ หลังจากติดตั้ง Truewifi Script แล้วก็มาดูวิธีการใช้งานกัน หากคุณ logon truewifi อยู่ก็ให้ logout ออกได้เลยครับโดยเรียก <a href="http://logout./" target="_blank">http://logout./</a> จากนั้นสังเกตได้เลยว่า script จะทำการ login truewifi ให้คุณเอง หากคุณไม่ได้ logon truewifi อยู่ก็ให้ลองเข้าเว็บอะไรก็ได้ครับ หลังจากนั้นมันจะ redirect แล้ว script ก็จะทำการ login ให้คุณเอง</p>
<p style="text-align: left;">หลังจาก login ไว้ 1 ชม. 25 นาที (85 นาที) Script จะทำการ logout ให้คุณเองอัตโนมัติแล้วก็ login ให้คุณใหม่ทันที</p>
<p style="text-align: left;"><span style="background-color: #ffff00;"><span style="color: #ff0000;"><strong>แต่มีข้อแม้ว่าคุณจะต้องเปิดหน้าจอหลังจากที่ logon truewifi ทิ้งไว้</strong></span></span>นะครับซึ่งก็คือหน้า https://portal.trueinternet.co.th/wifiauthen/login_result.php ซึ่งจะมีข้อความแสดงว่า</p>
<p style="text-align: left;"><img src="http://portal.trueinternet.co.th/wifiauthen/images/t_successfully.gif" border="0" alt="" width="207" height="49" /></p>
<p>Welcome to Wi-Fi Internet<br />
The Ultimate Wireless Services will be yours.</p>
<p><strong>Enjoy Surfing!</strong></p>
  
<div class="wp_license">
<p><a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/th/"><img src="http://i.creativecommons.org/l/by-nc-sa/3.0/th/88x31.png" alt="Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Thailand" class="alignleft" style="margin-top:4px;" />
</a>This work  is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/th/">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Thailand</a>.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/12/18/script-truewifi-auto-login-v2-04.html/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>วิธีติดตั้ง Adobe Air บน Ubuntu</title>
		<link>http://imrgill.com/2009/10/28/how-to-install-adobe-air-on-ubuntu.html</link>
		<comments>http://imrgill.com/2009/10/28/how-to-install-adobe-air-on-ubuntu.html#comments</comments>
		<pubDate>Tue, 27 Oct 2009 19:35:27 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[adobe air]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=242</guid>
		<description><![CDATA[วันก่อนรุ่นน้องถามผมว่า ubuntu ลง adobe air ได้หรือเปล่า ตอนนั้นก็ไม่สนใจอะไรกับคำถามนี้สักเท่าไหร่ วันนี้มี direct messege จาก twitter จาก @JerryTunin ก็ตามลิงค์เข้าไปดู blog ของเขาก็เห็นบทความเรื่องการติดตั้ง adobe air บน ubuntu ของเขาเลยเอามาลองติดตั้งบ้าง ผมจำได้ว่ารู้จักเจ้า adobe air ครั้งแรกจากเจ้า Twitter client ที่ชื่อ Seesmic แต่น่าเสียดายหลังจากที่ผมติดตั้ง adobe air แล้วลองติดตั้ง seesmic ปรากฏว่ามันแสดงภาษาไทยเป็นสี่เหลี่ยมหมดเลย(เศร้า) ลองไป search เรื่อง adobe air สำหรับ ubuntu อีกรอบก็ไปเจอบทความของ @gumara แห่ง ubuntuclub วิธีการติดตั้งก็เหมือนๆ กันครับพี่ @gumara แนะนำโปรแกรม Spaz ซึ่งเป็น Twitter client [...]]]></description>
			<content:encoded><![CDATA[<p>วันก่อนรุ่นน้องถามผมว่า ubuntu ลง adobe air ได้หรือเปล่า ตอนนั้นก็ไม่สนใจอะไรกับคำถามนี้สักเท่าไหร่ วันนี้มี direct messege จาก twitter จาก <a href="http://twitter.com/JerryTunin" target="_blank">@JerryTunin</a> ก็ตามลิงค์เข้าไปดู <a href="http://www.jerrytunin.com/" target="_blank">blog ของเขา</a>ก็เห็นบทความเรื่องการติดตั้ง adobe air บน ubuntu ของเขาเลยเอามาลองติดตั้งบ้าง ผมจำได้ว่ารู้จักเจ้า adobe air ครั้งแรกจากเจ้า Twitter client ที่ชื่อ <a href="http://seesmic.com/" target="_blank">Seesmic</a> แต่น่าเสียดายหลังจากที่ผมติดตั้ง adobe air แล้วลองติดตั้ง seesmic ปรากฏว่ามันแสดงภาษาไทยเป็นสี่เหลี่ยมหมดเลย(เศร้า) ลองไป search เรื่อง adobe air สำหรับ ubuntu อีกรอบก็ไปเจอบทความของ <a href="http://twitter.com/gumara" target="_blank">@gumara</a> แห่ง <a href="http://www.ubuntuclub.com">ubuntuclub</a> วิธีการติดตั้งก็เหมือนๆ กันครับพี่ <a href="http://twitter.com/gumara" target="_blank">@gumara</a> แนะนำโปรแกรม <a href="http://getspaz.com/" target="_blank">Spaz</a> ซึ่งเป็น Twitter client เหมือนกันลองลงแล้วปรากฏว่าใช้งานภาษาไทยได้ดีเยี่ยมครับ</p>
<p>มาดูวิธีการติดตั้ง Adobe Air บน Ubuntu กันเลยครับ</p>
<p>1. เข้าเว็บ <a href="http://get.adobe.com/air/" target="_blank">http://get.adobe.com/air/</a> แล้วคลิกที่ Download ได้เลยครับ(Adobe ฉลาดครับมัน Detect Version สำหรับ Linux ให้เลย เวอร์ชันปัจจุบันคือ 1.5.2) ผม save ไว้ที่ Desktop</p>
<p>2. เปิด Terminal ขึ้นมาครับ ใครเข้าไม่ถูกก็คลิกที่ Applications &gt;&gt; Accessories &gt;&gt; Terminal ครับ</p>
<p>3. ใช้คำสั่ง cd เปลี่ยนตำแหน่งไดเร็กทอรีไปยัง Desktop (ตอนนี้เราอยู่ที่ ~)</p>
<pre>
<div class="codesnip-container" >$ cd Desktop</div>
</pre>
<p>4. กำหนดสิทธิ์ให้กับไฟล์ install</p>
<pre>
<div class="codesnip-container" >$ chmod +x <a href="http://airdownload.adobe.com/air/lin/download/latest/AdobeAIRInstaller.bin">AdobeAIRInstaller.bin</a></div>
</pre>
<p>5. มาติดตั้งกันเลยโดยใช้คำสั่ง</p>
<pre>
<div class="codesnip-container" >$ sudo ./AdobeAIRInstaller.bin</div>
</pre>
<div style="text-align: right;"><span id="more-242"></span></div>
<p>6. โปรแกรมจะมี Agreement มาให้อ่านและยอมรับก็กด I Agree ไปเลยครับ<br />
<!-- wp_ad_camp_2 --></p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm4.static.flickr.com/3527/4050688310_e68c2881b5_o.png" alt="" width="480" height="413" />Adobe Air Agreement</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm3.static.flickr.com/2731/4050688312_be6bb63c47_o.png" alt="" width="480" height="231" />Installing</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm3.static.flickr.com/2631/4050688314_e03eb64931_o.png" alt="" width="480" height="232" />Installation completed</p>
<p style="text-align: left;">สำหรับการติดตั้ง Adobe Air ก็เสร็จเรียบร้อยแล้วครับ สามารถเรียกใช้งาน Adobe Air ได้จากเมนู Applications &gt;&gt; Accessories &gt;&gt; Adobe Air Application Installer</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm4.static.flickr.com/3532/4050848076_e58f0701bd_o.png" alt="" width="515" height="358" />Adobe Air Application Installer</p>
<p style="text-align: left;">ลองทดลองติดตั้ง Spaz กันดูครับ</p>
<p style="text-align: left;">1. โดยเปิด Firefox แล้วเข้าไปที่หน้า <a href="http://getspaz.com/#desktop-download" target="_blank">http://getspaz.com/#desktop-download</a> ตรง Manual Install คลิก <a href="http://funkatron.com/getspaz">Download Spaz</a> จากนั้น Firefox จะถามว่าจะให้เรา save หรือเปิดโดยโปรแกรม Adobe Air ก็ให้ Open with Adobe Air Application Installer แล้วกด OK ไปเลยครับ</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm3.static.flickr.com/2566/4050145881_760cfd3af0_o.png" alt="" width="456" height="330" />Firefox Opening SpazAIR.air</p>
<p style="text-align: left;">จากนั้นทำตาม Wizard ไปเรื่อยๆ</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm3.static.flickr.com/2501/4050177205_781e659460_o.png" alt="" width="276" height="529" /><br />
หน้าตาของ Spaz</p>
<p style="text-align: left;">การถอนโปรแกรมที่ติดตั้งบน Adobe Air ทำได้โดยตรวจสอบโปรแกรมนั้นผ่าน dpkg &#8211;list | grep -i packagename ว่าโปรแกรมที่ติดตั้งลงไปนั้นมีชื่อว่าอะไร จากนั้นก็ถอนการติดตั้งด้วยคำสั่ง dpkg -r ตามด้วยชื่อที่ได้จากคำสั่งแรก</p>
<p style="text-align: left;">ตัวอย่าง</p>
<pre>
<div class="codesnip-container" >$ sudo dpkg --list | grep -i spaz
ii  spaz.air.16cb261d461b1ca2027f7c39946115fa2dc8cd7f.1                   0.8.2                                      A Twitter client
$ sudo dpkg -r spaz.air.16cb261d461b1ca2027f7c39946115fa2dc8cd7f.1
(Reading database ... 161525 files and directories currently installed.)
Removing spaz.air.16cb261d461b1ca2027f7c39946115fa2dc8cd7f.1 ...
Processing triggers for software-center ...</div>
</pre>
<p style="text-align: left;">และหากต้องการถอนการติดตั้ง Adobe Air ก็สามารถเข้าไปที่เมนู Applications &gt;&gt; Accessories &gt;&gt; Adobe Air Uninstaller ได้เลยครับ</p>
<p style="text-align: center;"><img class="aligncenter" style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;" src="http://farm3.static.flickr.com/2531/4050108473_1a379f154c_o.png" alt="" width="479" height="322" />Adobe Air Uninstaller</p>
<p style="text-align: left;">ลองนำไปใช้กันดู</p>
<p style="text-align: left;"><!-- wp_ad_camp_1 --></p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2009/10/28/how-to-install-adobe-air-on-ubuntu.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
