<?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>$i-&#62;php(); &#187; Uncategorized</title>
	<atom:link href="http://i-php.net/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://i-php.net</link>
	<description>Hãy tiết kiệm điện và sử dụng opensource để bảo vệ môi trường</description>
	<lastBuildDate>Fri, 26 Feb 2010 07:29:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Note Config Apache</title>
		<link>http://i-php.net/2009/08/note-config-apache/</link>
		<comments>http://i-php.net/2009/08/note-config-apache/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 03:43:36 +0000</pubDate>
		<dc:creator>chaubl</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://i-php.net/?p=498</guid>
		<description><![CDATA[Cấu hình cho Apache hiển thị file Gzip .
- Cài module mod_defalte.so vào thư mục &#8230;/apache2.2/modules
- Sửa file &#8230;/apache2/conf/httpd.conf enable mod_deflate.so
LoadModule deflate_module modules/mod_deflate.so
- Add MultiViews to Options:
Options Indexes FollowSymLinks MultiViews
- Uncomment AddEncoding:
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
- Comment AddType:
#AddType application/x-compress .Z
#AddType application/x-gzip .gz .tgz
- Để hiển thị file Gzip dưới dạng xml thêm dòng :
AddType [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Cấu hình cho Apache hiển thị file Gzip .</strong></p>
<p>- Cài module mod_defalte.so vào thư mục &#8230;/apache2.2/modules</p>
<p>- Sửa file &#8230;/apache2/conf/httpd.conf enable mod_deflate.so<br />
LoadModule deflate_module modules/mod_deflate.so</p>
<p>- Add MultiViews to Options:<br />
Options Indexes FollowSymLinks MultiViews</p>
<p>- Uncomment AddEncoding:<br />
AddEncoding x-compress .Z<br />
AddEncoding x-gzip .gz .tgz<br />
- Comment AddType:<br />
#AddType application/x-compress .Z<br />
#AddType application/x-gzip .gz .tgz</p>
<p>- Để hiển thị file Gzip dưới dạng xml thêm dòng :<br />
AddType text/xml .gz .tgz</p>
<p>- Khởi động lại Apache:<br />
&#8230;/httpd restart</p>
]]></content:encoded>
			<wfw:commentRss>http://i-php.net/2009/08/note-config-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Actionscript 3 coding conventions and best practices</title>
		<link>http://i-php.net/2009/07/actionscript-3-coding-conventions-and-best-practices/</link>
		<comments>http://i-php.net/2009/07/actionscript-3-coding-conventions-and-best-practices/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 09:02:34 +0000</pubDate>
		<dc:creator>ngocbd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[coding conventions]]></category>

		<guid isPermaLink="false">http://i-php.net/2009/07/actionscript-3-coding-conventions-and-best-practices/</guid>
		<description><![CDATA[http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions
]]></description>
			<content:encoded><![CDATA[<p>http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions</p>
]]></content:encoded>
			<wfw:commentRss>http://i-php.net/2009/07/actionscript-3-coding-conventions-and-best-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MỘT NGÀY PHẢI KHÁC MỌI NGÀY</title>
		<link>http://i-php.net/2009/06/m%e1%bb%99t-ngay-ph%e1%ba%a3i-khac-m%e1%bb%8di-ngay/</link>
		<comments>http://i-php.net/2009/06/m%e1%bb%99t-ngay-ph%e1%ba%a3i-khac-m%e1%bb%8di-ngay/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 13:14:31 +0000</pubDate>
		<dc:creator>ngocbd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://i-php.net/2009/06/m%e1%bb%99t-ngay-ph%e1%ba%a3i-khac-m%e1%bb%8di-ngay/</guid>
		<description><![CDATA[MỘT NGÀY PHẢI KHÁC MỌI NGÀY
(Sau một ngày thống kê một cách khách quan những bi hài kịch thời sự nóng hổi)
Chào một ngày giống hệt mọi ngày
Sóng truyền hình phủ toàn phim Trung Quốc
Từ HTV, VTV, BTV, Đồng Nai, Long An, Bà Rịa Vũng Tàu, Cà Mau… cho đến “cáp”
Hết “Triều Đại Mãn Thanh” [...]]]></description>
			<content:encoded><![CDATA[<p>MỘT NGÀY PHẢI KHÁC MỌI NGÀY</p>
<p>(Sau một ngày thống kê một cách khách quan những bi hài kịch thời sự nóng hổi)</p>
<p>Chào một ngày giống hệt mọi ngày</p>
<p>Sóng truyền hình phủ toàn phim Trung Quốc</p>
<p>Từ HTV, VTV, BTV, Đồng Nai, Long An, Bà Rịa Vũng Tàu, Cà Mau… cho đến “cáp”</p>
<p>Hết “Triều Đại Mãn Thanh” đến “Đại Tống Truyền Kỳ”</p>
<p>Chào một ngày giống hệt mọi ngày</p>
<p>Đọc báo thấy cha ông mất hút</p>
<p>Thấy thiên hạ quỳ mọp dưới tượng đài Binh Pháp Mặc Công, Ngọa Hổ Tàng Long, Họa Bì, Xích Bích…</p>
<p>Con nít thuộc lòng Hoắc Nguyên Giáp, Hoàng Phi Hồng, Diệp Vấn, Diệp tùm lum hơn thuộc sử Tiên Rồng</p>
<p>Chào một ngày đất nước tự lưu vong</p>
<p>Cội rễ văn hiến 4000 năm trốc gốc</p>
<p>Tuổi teen gối đầu giường Lý An, Ngô Vũ Sâm, Trương Nghệ Mưu, Trần Khải Ca lạ hoắc</p>
<p>Pano giăng khắp nơi hình ảnh Củng Lợi, Chương Tử Di, Thành Long phơi phới toét miệng cười</p>
<p>Chào một ngày phát triển giống đười ươi</p>
<p>Đi trên xã tắc thấy người thua xa khỉ</p>
<p>Thấy lô cốt ngáng đường, thấy nước ngập tận mông, thấy thánh hiền sợ quỷ</p>
<p>Thấy truyền thống chống ngoại xâm co rúm lại vì… tiền</p>
<p>Chào một ngày vong bản vì… hèn</p>
<p>Sống chết mặc bây, túi thầy vô cảm</p>
<p>Ải Nam Quan nằm ngoài ranh giới Việt Nam, xưa rồi Diễm…</p>
<p>Nước mắt Nguyễn Trãi khóc Nguyễn Phi Khanh rơi ở tận… nước Tàu</p>
<p>Chào một ngày bãi biển hóa nương dâu</p>
<p>Thác Bản Giốc rời Cao Bằng như có cánh</p>
<p>Thắng cảnh để lại của tiền nhân bị cháu con ghẻ lạnh</p>
<p>Các di tích, kỳ quan cứ mất tích đều đều</p>
<p>Chào một ngày hình chữ S tong teo</p>
<p>Tài nguyên bôxit bị bới đào như… bọ xít</p>
<p>Nhôm và đô la chẳng thấy đâu, chỉ thấy đất Tây Nguyên rên xiết</p>
<p>Ô nhiễm mạch ngầm, nước sông làm nghẹt thở Chín Con Rồng</p>
<p>Chào một ngày long mạch bị xới tung</p>
<p>Máu bầm đất đỏ bazan, máu tràn ra hải đảo</p>
<p>Ai cho phép Hoàng Sa Trường Sa thành Tam Sa lếu láo</p>
<p>Tội nghiệp rừng cọc nhọn của Hưng Đạo Đại Vương trên sóng Bạch Đằng</p>
<p>Chào một ngày giống hệt cõi âm</p>
<p>Những xác chết anh hùng bật dậy</p>
<p>Máu trả máu, đầu trả đầu. Nhớ đấy</p>
<p>Mãi quốc cầu vinh tất quả báo nhãn tiền</p>
<p>Chào một ngày soi rõ mặt anh em!</p>
<p>21 – 4 – 2009</p>
<p>BÙI CHÍ VINH</p>
]]></content:encoded>
			<wfw:commentRss>http://i-php.net/2009/06/m%e1%bb%99t-ngay-ph%e1%ba%a3i-khac-m%e1%bb%8di-ngay/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Giải thử vài câu đề thi tốt nghiệp ptth môn toán</title>
		<link>http://i-php.net/2009/05/giai_thu_de_thi_tot_nghiep_ptth_mon_toan/</link>
		<comments>http://i-php.net/2009/05/giai_thu_de_thi_tot_nghiep_ptth_mon_toan/#comments</comments>
		<pubDate>Fri, 29 May 2009 18:03:22 +0000</pubDate>
		<dc:creator>ngocbd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://i-php.net/2009/05/gi%e1%ba%a3i-th%e1%bb%ad-vai-cau-d%e1%bb%81-thi-t%e1%bb%91t-nghi%e1%bb%87p-ptth-mon-toan/</guid>
		<description><![CDATA[Xem đề thị tại đây : http://www.thanhnien.com.vn/News/Documents/GiaoDuc/PTTH/2009/Dapan/DeToan_GDTHPT.pdf
Tất nhiên là giải theo cách thông thường thì các bạn xem trong đáp án  
Ở đây là phương pháp  giải &#8220;khác&#8221;   .
Câu 1:
1.
Khảo sát và vẽ đồ thị hàm số :
http://www57.wolframalpha.com/input/?i=(2x%2B1)%2Fx-2
Câu 2
2.1.
Giải phương trình :
 http://www57.wolframalpha.com/input/?i=25^x-6*5^x%2B5%3D0
2.2.
Tính tích phân :
http://www57.wolframalpha.com/input/?i=integral+[x(1%2Bcos(x))%2C0%2Cpi]
2.3.
Tìm max &#8211; min trên một đoạn [...]]]></description>
			<content:encoded><![CDATA[<p>Xem đề thị tại đây :<a href="http://www.thanhnien.com.vn/News/Documents/GiaoDuc/PTTH/2009/Dapan/DeToan_GDTHPT.pdf"> http://www.thanhnien.com.vn/News/Documents/GiaoDuc/PTTH/2009/Dapan/DeToan_GDTHPT.pdf</a></p>
<p>Tất nhiên là giải theo cách thông thường thì các bạn xem trong đáp án <img src='http://i-php.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Ở đây là phương pháp  giải &#8220;khác&#8221; <img src='http://i-php.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  .</p>
<p>Câu 1:<br />
1.</p>
<p>Khảo sát và vẽ đồ thị hàm số :<br />
<a href="http://www57.wolframalpha.com/input/?i=(2x%2B1)%2Fx-2">http://www57.wolframalpha.com/input/?i=(2x%2B1)%2Fx-2</a><br />
Câu 2<br />
2.1.</p>
<p>Giải phương trình :<br />
<a href="http://www57.wolframalpha.com/input/?i=(2x%2B1)%2Fx-2"> http://www57.wolframalpha.com/input/?i=25^x-6*5^x%2B5%3D0</a><br />
2.2.</p>
<p>Tính tích phân :</p>
<p><a href="http://www57.wolframalpha.com/input/?i=integral+[x(1%2Bcos(x))%2C0%2Cpi]">http://www57.wolframalpha.com/input/?i=integral+[x(1%2Bcos(x))%2C0%2Cpi]</a><br />
2.3.</p>
<p>Tìm max &#8211; min trên một đoạn .<br />
min :</p>
<p><a href="http://www57.wolframalpha.com/input/?i=minimize+x^2-ln(1-2x)+over+[-2%2C0]"> http://www57.wolframalpha.com/input/?i=minimize+x^2-ln(1-2x)+over+[-2%2C0]</a><br />
max :<br />
<a href="http://www57.wolframalpha.com/input/?i=maximize+x^2-ln(1-2x)+over+[-2%2C0]"> http://www57.wolframalpha.com/input/?i=maximize+x^2-ln(1-2x)+over+[-2%2C0]</a></p>
<p>Câu 4</p>
<p>4.a.1</p>
<p>Tính toạn độ tâm và bán kính của hình cầu</p>
<pre>(x-1)^2+(y-2)^2+(z-2)^2 = 36</pre>
<p><a href="http://www61.wolframalpha.com/input/?i=(x-1)^2%2B+(y-2)^2%2B(z-2)^2%3D36">http://www61.wolframalpha.com/input/?i=(x-1)^2%2B+(y-2)^2%2B(z-2)^2%3D36</a></p>
<p>vậy</p>
<pre>tâm S(T) : (1,2,2)
bán kính :6</pre>
<p>Câu 5<br />
5.a.</p>
<p>Giải phương trình trên tập số phức<br />
<a href="http://www57.wolframalpha.com/input/?i=8x^2+-4x+%2B1+%3D0"> http://www57.wolframalpha.com/input/?i=8x^2+-4x+%2B1+%3D0</a><br />
5.b.<br />
Giải phương trình trên tập số phức</p>
<p><a href="http://www57.wolframalpha.com/input/?i=2x^2+-+i+x+%2B++1+%3D0"> http://www57.wolframalpha.com/input/?i=2x^2+-+i+x+%2B++1+%3D0</a></p>
<p>Tạm vậy đã các , các câu khác ai có cách  giải thì commnet nhé  !</p>
<p><a href="http://www57.wolframalpha.com/input/?i=8x^2+-4x+%2B1+%3D0"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://i-php.net/2009/05/giai_thu_de_thi_tot_nghiep_ptth_mon_toan/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Funny web2.0</title>
		<link>http://i-php.net/2009/05/funny-web20/</link>
		<comments>http://i-php.net/2009/05/funny-web20/#comments</comments>
		<pubDate>Thu, 28 May 2009 01:50:05 +0000</pubDate>
		<dc:creator>hoangnd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://i-php.net/?p=419</guid>
		<description><![CDATA[Web20comics
View more OpenOffice presentations from ryanbretag.

]]></description>
			<content:encoded><![CDATA[<div style="width:425px;text-align:left" id="__ss_134511"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/ryanbretag/web20comics?type=powerpoint" title="Web20comics">Web20comics</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=web20comics3998&#038;stripped_title=web20comics" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=web20comics3998&#038;stripped_title=web20comics" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">OpenOffice presentations</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/ryanbretag">ryanbretag</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://i-php.net/2009/05/funny-web20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE webrender &#8211; Công cụ kiểm tra web design trên IE</title>
		<link>http://i-php.net/2009/05/ie-webrender-cong-c%e1%bb%a5-ki%e1%bb%83m-tra-web-design-tren-ie/</link>
		<comments>http://i-php.net/2009/05/ie-webrender-cong-c%e1%bb%a5-ki%e1%bb%83m-tra-web-design-tren-ie/#comments</comments>
		<pubDate>Tue, 26 May 2009 08:08:05 +0000</pubDate>
		<dc:creator>ngocbd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://i-php.net/2009/05/ie-webrender-cong-c%e1%bb%a5-ki%e1%bb%83m-tra-web-design-tren-ie/</guid>
		<description><![CDATA[http://ipinfo.info/netrenderer/
Với công cụ trên không những kiểm tra đựoc thiết kế , mà còn có thể xem trực tiếp sự sai khác giữa các phiên bản IE (6-7)
Công cụ khủng hơn  
http://browsershots.org
Demo
http://browsershots.org/http://khuvuc.com/
hay http://www.browsercam.com
]]></description>
			<content:encoded><![CDATA[<p>http://ipinfo.info/netrenderer/</p>
<p>Với công cụ trên không những kiểm tra đựoc thiết kế , mà còn có thể xem trực tiếp sự sai khác giữa các phiên bản IE (6-7)</p>
<p>Công cụ khủng hơn <img src='http://i-php.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>http://browsershots.org</p>
<p>Demo</p>
<p>http://browsershots.org/http://khuvuc.com/</p>
<p>hay http://www.browsercam.com</p>
]]></content:encoded>
			<wfw:commentRss>http://i-php.net/2009/05/ie-webrender-cong-c%e1%bb%a5-ki%e1%bb%83m-tra-web-design-tren-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skype and Facebook plugin for Pidgin</title>
		<link>http://i-php.net/2009/05/skype-and-facebook-plugin-for-pidgin/</link>
		<comments>http://i-php.net/2009/05/skype-and-facebook-plugin-for-pidgin/#comments</comments>
		<pubDate>Tue, 26 May 2009 06:03:17 +0000</pubDate>
		<dc:creator>ngocbd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[facebookchat]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[skype]]></category>

		<guid isPermaLink="false">http://i-php.net/?p=414</guid>
		<description><![CDATA[http://code.google.com/p/skype4pidgin/
http://code.google.com/p/pidgin-facebookchat/
]]></description>
			<content:encoded><![CDATA[<p>http://code.google.com/p/skype4pidgin/</p>
<p>http://code.google.com/p/pidgin-facebookchat/</p>
]]></content:encoded>
			<wfw:commentRss>http://i-php.net/2009/05/skype-and-facebook-plugin-for-pidgin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Note] Sinh lại RSA Key cho ssh client</title>
		<link>http://i-php.net/2009/05/note-sinh-l%e1%ba%a1i-rsa-key-cho-ssh-client/</link>
		<comments>http://i-php.net/2009/05/note-sinh-l%e1%ba%a1i-rsa-key-cho-ssh-client/#comments</comments>
		<pubDate>Tue, 19 May 2009 06:39:16 +0000</pubDate>
		<dc:creator>ngocbd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[rsa]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://i-php.net/2009/05/note-sinh-l%e1%ba%a1i-rsa-key-cho-ssh-client/</guid>
		<description><![CDATA[Hôm nay cài lại server ssh lên không thiêng .
Lỗi là tại RSA key ở client đã cũ (do ssh server được cài lại).
gõ lệnh sau để gen lại ssh key cho client
&#8220;ssh-keygen -R ip_addressInConflict&#8221;
]]></description>
			<content:encoded><![CDATA[<p>Hôm nay cài lại server ssh lên không thiêng .<br />
Lỗi là tại RSA key ở client đã cũ (do ssh server được cài lại).<br />
gõ lệnh sau để gen lại ssh key cho client</p>
<p>&#8220;ssh-keygen -R ip_addressInConflict&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://i-php.net/2009/05/note-sinh-l%e1%ba%a1i-rsa-key-cho-ssh-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TUT Làm bản đồ đại lý</title>
		<link>http://i-php.net/2009/05/tut-lam-ban-do-dai-ly/</link>
		<comments>http://i-php.net/2009/05/tut-lam-ban-do-dai-ly/#comments</comments>
		<pubDate>Sun, 17 May 2009 18:13:05 +0000</pubDate>
		<dc:creator>habogay</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://i-php.net/?p=409</guid>
		<description><![CDATA[Công việc này có thể làm bạn nghĩ đến giải pháp google maps nhưng theo tôi   dùng google map và maker api của nó là quá phức tạp . Thôi thì tự làm một cái vậy .
Yêu cầu của bài toán là vẽ một bàn đồ nước việt nam , trên đó vị trí các [...]]]></description>
			<content:encoded><![CDATA[<p>Công việc này có thể làm bạn nghĩ đến giải pháp google maps nhưng theo tôi   dùng google map và maker api của nó là quá phức tạp . Thôi thì tự làm một cái vậy .</p>
<p>Yêu cầu của bài toán là vẽ một bàn đồ nước việt nam , trên đó vị trí các tỉnh thành phố có đại lý của công ty XYZ thì xuất hiện maker (Dùng hình ngôi sao hoặc chấm tròn) và tên tỉnh thành pố có đại lý đo .</p>
<p>Nếu người dùng click vào tỉnh thành phố nào thì xuất hiện chi tiết danh sách các đại lý trực thuộc tỉnh thành phố đó .</p>
<p>Các đồ nghề cần sài : Flash IDE  (CS2) , PHP 5 , Mysql 5 , GIMP (Hoặc PS)</p>
<p>Đầu tiên là làm một cái flash có hiển thị tên các tỉnh thành .</p>
<p>B1 Kiếm một cái bản đồ việt nam (dạng khung) :</p>
<p><a title="google thôi " href="http://images.google.com.vn/images?hl=vi&amp;rlz=1B3GGGL_enVN262VN262&amp;um=1&amp;sa=1&amp;q=vietnam&amp;btnG=T%C3%ACm+ki%E1%BA%BFm+H%C3%ACnh+%E1%BA%A3nh&amp;aq=f&amp;oq=">google nào </a></p>
<p>Tôi chọn cái ảnh thứ 2 :</p>
<p><img class="alignnone" src="http://www.saga.vn/Saga_Gallery/MemberUploadImage/vietnam.gif" alt="" width="321" height="677" /></p>
<p>Giờ là lúc dùng đến GIMP để sửa sang nó</p>
<p>Kết quả <img src='http://i-php.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><img class="alignnone" src="http://miss-u.biz/flex/vietnamedited.gif" alt="" width="321" height="677" /></p>
<p>Cũng không tệ lắm</p>
<p>B2. Tạo flash document có kích thước lớn hơn bức anh một chút : 325&#215;680</p>
<p>Import bản đồ vào .Kéo bản đồ từ lib vào stage nếu bạn import nó vào lib . Đặt tên cho instance là map .</p>
<p>Xong .</p>
<p>B3. Vẽ hình ngôi sao <img src='http://i-php.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Convert ngôi sao thành Moviclip (nhớ chọn option Export for Actionscript) . Đặt tên cho Class là &#8221; Star&#8221;  .</p>
<p>B4. Tạo file chứa tên tỉnh thành và tọa độ của chúng . Tất nhiên cái này phải lấy từ  csdl nhưng trước mắt cứ lấy đại một cái file tĩnh đã , sau này chỉ cần sửa lại url trỏ vào file php là xong .</p>
<p>tạo một file data.txt để giả lập dữ liệu lấy ta từ  csdl . giả sử file này đặt ở http://localhost:81/data.txt</p>
<pre>data.txt:</pre>
<pre>Hanoi=30-20&amp;Saigon=40-50</pre>
<p>Tôi lưu file theo cấu trúc : &#8220;tên tinht thành=tọa độ x- tọa độ y&#8221;</p>
<p>tiếp theo mở actionscript code thẳng vào frame 1 .</p>
<blockquote><p>import flash.net.*;<br />
var myLoader:URLLoader = new URLLoader()<br />
//the data will come as URL-encoded variables<br />
myLoader.dataFormat = URLLoaderDataFormat.VARIABLES;<br />
//Load using an URLRequest, even beeing local<br />
myLoader.load(new URLRequest(&#8220;http://localhost:81/data.txt&#8221;));<br />
//add a listener for the complete event<br />
myLoader.addEventListener(Event.COMPLETE, onLoadHandle);<br />
function onLoadHandle(ev:Event):void{</p>
<p>for (var name in myLoader.data){<br />
trace(name+&#8221;:&#8221;+myLoader.data[name]);</p>
<p>}<br />
}</p></blockquote>
<p>Chạy thử đoạn code trên :</p>
<p>kq:</p>
<p>Hanoi<br />
30-20<br />
Saigon<br />
40-50</p>
<p>Tiếp theo là thay vì trace ta sẽ add các ngôi sao lên các vị trí tương tứng :</p>
<blockquote><p>var mc:Star = new Star();<br />
var valuePair:String=String(myLoader.data[name]);<br />
var arr=         valuePair.split(&#8220;-&#8221;);<br />
mc.name=name;<br />
mc.x=arr[0];<br />
mc.y=arr[1];<br />
addChild(mc);</p></blockquote>
<p>Thay đoạn code này vào trong vòng for .</p>
<p>Ta sẽ thấy xuất hiện 2 ngôi sao ở vị trí 30-20 và 40-50 .</p>
<p>Giờ là lúc tìm vị trí chính xác cho 2 ngôi sao này (Dùng GIMP đo tọa độ trên ảnh )</p>
<p>Đây là kết quả của tôi <img src='http://i-php.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  (chắc chắn là chưa chính xác vì tôi áng khoảng thôi , bạn phải khớp với bản đồ thật)</p>
<p>Hanoi=137-108&amp;Saigon=179-570</p>
<p>Chạy lại : Hai ngôi sao đã phù hợp với vị trí các tinht thành , nếu muốn có thêm các tỉnh thành khác bạn chỉ việc thêm vào file data.txt .</p>
<p>B5. Xử lý tên tỉnh thành nằm cạnh ngôi sao :</p>
<blockquote>
<p>import flash.net.*;<br />
import flash.text.TextField;<br />
var myLoader:URLLoader = new URLLoader()<br />
//the data will come as URL-encoded variables<br />
myLoader.dataFormat = URLLoaderDataFormat.VARIABLES;<br />
//Load using an URLRequest, even beeing local<br />
myLoader.load(new URLRequest(&#8220;http://localhost:81/data.txt&#8221;));<br />
//add a listener for the complete event<br />
myLoader.addEventListener(Event.COMPLETE, onLoadHandle);<br />
function onLoadHandle(ev:Event):void{</p>
<p>for (var name:String in myLoader.data){</p>
<p>var mc:Star = new Star();</p>
<p>var valuePair:String=String(myLoader.data[name]);<br />
var arr=         valuePair.split(&#8220;-&#8221;);<br />
mc.name=name;<br />
var txt:TextField = new TextField();<br />
txt.text=mc.name;</p>
<p>mc.x=arr[0];<br />
mc.y=arr[1];<br />
mc.addChild(txt);<br />
addChild(mc);</p>
<p>}<br />
}</p></blockquote>
<p>Tạm thế đã . <img src='http://i-php.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://i-php.net/2009/05/tut-lam-ban-do-dai-ly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy and paste Programming VIA Copy and paste Writing</title>
		<link>http://i-php.net/2009/03/copy-and-paste-programming-via-copy-and-paste-writing/</link>
		<comments>http://i-php.net/2009/03/copy-and-paste-programming-via-copy-and-paste-writing/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 07:31:56 +0000</pubDate>
		<dc:creator>ngocbd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[paste]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://i-php.net/?p=386</guid>
		<description><![CDATA[
I was always against Copy and Paste programming. I condemned people who use this practice as discrediting the honorable profession of The Programmer. This evil activity inflates application code without adding anything useful. This shameful practice causes various complications &#8211; more code, more things to remember, needless complexity, and difficulty to manage and synchronize related [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://softwarecreation.org/images/2007/i-robot.jpg" alt="" /></p>
<p>I was always against <a id="ozzc" title="Copy and Paste programming" href="http://en.wikipedia.org/wiki/Copy_and_paste_programming">Copy and Paste programming</a>. I condemned people who use this practice as discrediting the honorable profession of The Programmer. This evil activity inflates application code without adding anything useful. This shameful practice causes various complications &#8211; more code, more things to remember, needless complexity, and difficulty to manage and synchronize related changes in the future. But at some point, I admitted to myself &#8211; things are not so black and white. I do <em>Copy and Paste</em> in my code, it is difficult to resist this seductive activity.</p>
<p>The only indulgence is that I’m very keen <strong>to eliminate bad effects of Copy and Paste before finishing my task</strong>.</p>
<p>I use two main approaches for writing new code. The first is <strong>Top-Down</strong> &#8211; I have clear design ideas how I should program and I know what classes and components to use. I go ahead and write code from scratch using my memory and power of intellect <img src='http://i-php.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . There are few problems with this approach. Unfortunately, my memory is not so great and knowledge is not so vast. Regularly I have new tasks that I don’t know or don’t remember how to program. Sometimes I don’t get immediately what other people programmed without debugging. And often I want to save time and avoid re-implementing the same idea again. And that is why I also use the second approach &#8211; <strong>Bottom-Up</strong>. I copy and paste code first. And after I figure out how this code works, how to use, fit and improve it.</p>
<h3>When is Copy and Paste approach useful?</h3>
<p>Shamelessly, I can come up with few cases:<br />
1. <strong>Work by example</strong> &#8211; you found new code through <a id="tbnb" title="search" href="http://softwarecreation.org/2008/how-to-use-search-skills-to-become-effective-programmer/">search</a> and want to  use it immediately to solve your problems.<br />
2. <strong>Quick start</strong> &#8211; you copy code (including your old code) to save time.<br />
3. <strong>Test in the new context</strong> &#8211; you want to quickly assess if code will be correctly running in the context of your application<br />
4. <strong>Too hard to reuse</strong> &#8211; if you cannot reuse, just copy code. For example, you don’t have time to build common framework with separate application or another team owns code and don’t want you to touch and spoil it.<br />
5. <strong>Series of experiment</strong>s &#8211; you try to find the best way to solve a problem and copy code to try if it solves a problem well.</p>
<h3>How to eliminate bad effects of Copy and Paste</h3>
<p>Now I’m going to return to canonical view on evilness of <em>Copy and Paste</em>. Even if you have legitimate reason to use <em>Copy and Paste</em>, it is acceptable only on temporary basis before you commit your code or your team granted absolution (probably for very short time) <img src='http://i-php.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .<br />
Therefore, after committing <em>Copy and Paste</em> scandalous act, do following:<br />
1. <strong>Understand what have you done </strong>- any code that you don’t understand is ineffective for future use, and potentially excessive, wasteful and dangerous.<br />
2. <strong>Clean, minimize and shape</strong> &#8211; remove all useless, over-engineered and questionable pieces; consider yourself as a jeweler, who is converting rough crystals in beautiful diamonds that fit well into solid code and concepts in your program.<br />
3. <strong>Refactor and Integrate</strong> &#8211; use refactoring techniques to integrate new cleaned code into existing application: improve design, simplify and increase power of your code.<br />
4. <strong>Learn </strong>- the best outcome of this sinful activity is <a id="vfiy" title="gained knowledge and experience" href="http://softwarecreation.org/2008/how-to-use-search-skills-to-become-effective-programmer/">gained knowledge and experience</a> that will make <em>Copy and Paste</em> unnecessary next time.</p>
<p>With age and experience of harsh programming reality, I’m becoming less purist and more pragmatic. I have started to accept everything what makes me effective. The only rule &#8211; I shouldn’t be ashamed of my code after the finish… even if I did <em>Copy and Paste</em> couple times <img src='http://i-php.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>What do you think?</p>
<p>source  : http://softwarecreation.org/2008/a-few-words-in-defense-of-copy-and-paste-programming/</p>
]]></content:encoded>
			<wfw:commentRss>http://i-php.net/2009/03/copy-and-paste-programming-via-copy-and-paste-writing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
