<?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>聰明的生活2</title>
	<atom:link href="http://blog.yslifes.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.yslifes.com</link>
	<description>自己寫java程式的一些筆記</description>
	<lastBuildDate>Tue, 02 Feb 2010 15:12:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://blog.yslifes.com/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
jQuery.ajax({type:'GET',url:'http://blog.yslifes.com/wp-content/plugins/wp-postviews-plus/postviews_plus.php',data:'todowppvp=add&type=/feed&id=1',cache:false,dataType:'script'});
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>網頁post自動產生iframe</title>
		<link>http://blog.yslifes.com/archives/516</link>
		<comments>http://blog.yslifes.com/archives/516#comments</comments>
		<pubDate>Tue, 02 Feb 2010 15:12:37 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/?p=516</guid>
		<description><![CDATA[大部份在寫網頁要上傳檔案時都需要使用到iframe做一個中繼，
可是如果response一個錯誤訊息時，前一個iframe資料就會變成history，
在控制上，像重新整理等時，就會遇到暫存資料的問題，以下有一個方法，
可以在檢查完所有form條件時才自動createiFrame做post動作，
而重新整理時（或第一次進入此畫面時）又不會真實存在，來解決暫存的問題。





function createIFrame(){
 if(!document.getElementById(&#8220;_hiddenframe&#8221;))
 {
 var frame = document.createElement(&#8220;iframe&#8221;);
 frame.setAttribute(&#8220;name&#8221;,&#8220;_hiddenframe1&#8243;);
 frame.setAttribute(&#8220;src&#8221;,&#8220;about:blank&#8221;);
 frame.setAttribute(&#8220;frameborder&#8221;,&#8220;0&#8243;);
 frame.setAttribute(&#8220;height&#8221;,&#8220;0&#8243;);
 frame.setAttribute(&#8220;width&#8221;,&#8220;0&#8243;);
 frame.setAttribute(&#8220;id&#8221;,&#8220;_hiddenframe&#8221;);
 frame.name = &#8220;_hiddenframe&#8221;; 
 document.body.appendChild(frame); 
 window.frames._hiddenframe.name = &#8220;_hiddenframe&#8221;; 
 document.getElementsByTagName(&#8220;body&#8221;)[0].appendChild(frame);
 
 
 }
}




]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/516/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Source Compression Obfuscators</title>
		<link>http://blog.yslifes.com/archives/515</link>
		<comments>http://blog.yslifes.com/archives/515#comments</comments>
		<pubDate>Tue, 05 Jan 2010 14:00:49 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[google]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[yahoo]]></category>
		<category><![CDATA[軟體介紹]]></category>
		<category><![CDATA[Obfuscators]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/515</guid>
		<description><![CDATA[Google Closure Complier
Google提供API讓用戶端可以直接撰寫自己的程式來壓縮及擾亂JavaScript Source，而以下是它提供UI介面，可以直接Add a URL，就可以輸出Complier後的Script Code，畫面如下：
Labs網址：http://code.google.com/intl/zh-TW/closure/compiler/docs/gettingstarted_ui.html
UI網址: http://closure-compiler.appspot.com/home

Yahoo YUI Compressor
Yahoo在很早以前就提供JavaScript及css的Compressor及Obfuscators，而它本身並沒有UI介面，只能直接使用java command來執行java –jar yuicompressor-x-y-z.jar 。
官方網站：http://developer.yahoo.com/yui/compressor/
測試
實際用prototype.js這個script來壓縮，結果如下：
原始檔大小約124,136位元組
Google Closure Complier執行過後約71,280位元組
Yahoo YUI Compressor執行過後約72,612位元組
以上的設定值均為一般設定
每萬次展示節省成本約50Mb(以Google Cosure Complier為例)
]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/515/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[javascript]特效accordion</title>
		<link>http://blog.yslifes.com/archives/511</link>
		<comments>http://blog.yslifes.com/archives/511#comments</comments>
		<pubDate>Mon, 07 Dec 2009 01:22:25 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[rico]]></category>
		<category><![CDATA[scriptaculous]]></category>
		<category><![CDATA[特效]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/511</guid>
		<description><![CDATA[這裡介紹幾個Accordion特效
1. jquery版本
網址
裡面有很詳細的說明及修改方法，很順暢，不過css有點小多，比較不好改

2. prototype 版本 
網址

3.prototype 版本 scriptaculous
網址
說明網址

4.rico 版本
網址

]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/511/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(教學)在Ubuntu裡建立Apache with Tomcat 服務-3</title>
		<link>http://blog.yslifes.com/archives/496</link>
		<comments>http://blog.yslifes.com/archives/496#comments</comments>
		<pubDate>Mon, 16 Nov 2009 12:43:00 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[影像處理]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[架站]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Imagemagick]]></category>
		<category><![CDATA[Jmagick]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/496</guid>
		<description><![CDATA[前二篇資料(教學)在Ubuntu裡建立Apache with Tomcat 服務-2&#160;&#160;&#160; (教學)在Ubuntu裡建立Apache with Tomcat 服務-1
讓Apache Server與Tomcat Server做溝通
使Apache支援JSP及測試ImageMagick及JMagick是否可用
 1.設定apache使用apj與tomcat做溝通,把所有內容向tomcat送
#sudo vi /etc/apache2/sites-available/default      在&#60;VirtualHost *:80&#62;&#60;/VirtualHost&#62;tag內增加 
&#160;&#160;&#160;&#160;&#160;&#160;&#160; LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so       &#160;&#160;&#160;&#160;&#160;&#160;&#160; LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so       &#160;&#160;&#160;&#160;&#160;&#160;&#160; LoadModule proxy_connect_module /usr/lib/apache2/modules/mod_proxy_conn$       &#160;&#160;&#160;&#160;&#160;&#160;&#160; LoadModule proxy_ajp_module /usr/lib/apache2/modules/mod_proxy_ajp.so  [...]]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/496/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(教學)在Ubuntu裡建立Apache with Tomcat 服務-2</title>
		<link>http://blog.yslifes.com/archives/495</link>
		<comments>http://blog.yslifes.com/archives/495#comments</comments>
		<pubDate>Fri, 13 Nov 2009 12:16:00 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[影像處理]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[架站]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[Imagemagick]]></category>
		<category><![CDATA[Jmagick]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/495</guid>
		<description><![CDATA[前一篇資料(教學)在Ubuntu裡建立Apache with Tomcat 服務-1
再來要介紹JMagick及ImageMagick的安裝 in Ubuntu 9.10(Linux)
包含jpeg及png支援
1.安裝zlib -&#62;jpeg需使用
#cd /opt/     #sudo wget http://www.zlib.net/zlib-1.2.3.tar.gz      #sudo tar zxvf zlib-1.2.3.tar.gz      #cd /opt/zlib-1.2.3      #sudo ./configure      #sudo make      #sudo make install
&#160;

2.安裝jpeg lib [...]]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/495/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(教學)在Ubuntu裡建立Apache with Tomcat 服務-1</title>
		<link>http://blog.yslifes.com/archives/494</link>
		<comments>http://blog.yslifes.com/archives/494#comments</comments>
		<pubDate>Thu, 12 Nov 2009 12:08:00 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/494</guid>
		<description><![CDATA[這裡會有一系列Apache 在前而Tomcat在後的JSP Service 
包含MySQL及JMagick及ImageMagick的安裝 
這裡先介紹安裝Apache MySQL及JDK 6跟tomcat 5
環境是Ubuntu 9.10 (Linux)
1.安裝apache
#sudo apt-get install apache2

2.安裝mysql
#sudo get-get install mysql-server

這裡需要設定MySQL的root密碼
3.安裝java jdk
#sudo apt-get install sun-java6-jdk
#sudo vi /etc/profile
加如以下(放到最後一行的前一行)      export JAVA_HOME=/usr/lib/jvm/java-6-sun

4.安裝tomcat
 

#cd etc      #sudo wget http://ftp.tcc.edu.tw/pub/Apache/tomcat/tomcat-5/v5.5.28/bin/apache-tomcat-5.5.28.tar.gz       #sudo tar -zxvf apache-tomat-5.5.28.tar.gz       [...]]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/494/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Board討論區(1)</title>
		<link>http://blog.yslifes.com/archives/493</link>
		<comments>http://blog.yslifes.com/archives/493#comments</comments>
		<pubDate>Sun, 08 Nov 2009 06:56:12 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[board]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jsql]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/493</guid>
		<description><![CDATA[規畫會以下面幾個重點完成
概念   1.資料展示    包含    留言者名稱-有提供網站連結時，使用link    留言內容-remove Html Tag    留言時間 
2.資料新增   包含    留言者名稱-必填    部落格連結-有連結時，必須包含.    留言者Mail-有填寫時，必須包含.及@    留言內容    認證碼-提供重新取得認證碼功能 
3.資料表格   包含    編號-autoEnCode  [...]]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/493/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTC Hero android推薦軟體</title>
		<link>http://blog.yslifes.com/archives/491</link>
		<comments>http://blog.yslifes.com/archives/491#comments</comments>
		<pubDate>Fri, 16 Oct 2009 14:02:54 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[軟體介紹]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[hero]]></category>
		<category><![CDATA[免費]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/491</guid>
		<description><![CDATA[程式名稱：Advanced Task killer Free
說明：可以刪除背景程式釋放記憶體

程式名稱：AK Notepad
說明：記事軟體，可以新增記事內容並設定提醒時間
&#160; 
 
&#160;
 
程式名稱： Compass
說明：指南針軟體，可以知道目前的方位為何
 
程式名稱： AndAndo
說明：軌跡紀錄軟體，可以記錄走過的路線
 
程式名稱： AppManager
說明：裝了太多的軟體？而重灌時怎麼辦呢？AppManager可以備份所有app到記憶卡裡
 
程式名稱： Astrid
說明：工作清單，記錄工作清單，有提醒功能。
 
 
程式名稱： ES檔案瀏覽器
說明：檔案總管工具，還可以直接連入區域網路分享的資料夾，
在使用wify時很方便傳送檔案
 
程式名稱： Google Sky Map
說明：晚上看夜景時被光害害的看不到幾顆星星嘛？
和女朋友約會時看不出來天上的星座嘛？
Google Sky Map直接對著天空看就能知道天上的星座狀況了
 
程式名稱： Hi Msn
說明：好用的Msn軟體，不支援離線訊息
 
程式名稱： K9Mail
說明：接收pop3的mail client有點像android 的google mail
 
 
程式名稱： Pic Say
說明：直接對拍好的或現有的照片進行簡單的編輯，可以馬上利用mms或網路
傳送給好朋友或家人
 
程式名稱： Places directory
說明：使用GPS來幫你找尋週邊的商家、地址、地圖等，
使用Google Map，還可以知道要走那個方向及距離多遠。
ps.商家數不多。
 
程式名稱： Pocket Sketchbook
說明：隨意圖鴨軟體
 
程式名稱： Sticky Memo Lite
說明：簡單的Memo軟體，不支援手畫，只能輸入文字
 
 
程式名稱： 台灣天氣圖
說明：查詢目前台灣的所有天氣圖及未來幾天天氣狀況
 
程式名稱： 條碼掃描器
說明：可以Scan QR-Code、或一般條碼
 

]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/491/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Android]如何發佈開發好的程式至手機</title>
		<link>http://blog.yslifes.com/archives/447</link>
		<comments>http://blog.yslifes.com/archives/447#comments</comments>
		<pubDate>Thu, 15 Oct 2009 14:47:00 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[程式]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[hero]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/447</guid>
		<description><![CDATA[自己寫好了一隻程式，在模擬器上Emulator的方式可以參考
 [教學]Android的第一個程式
如果要在實際的手機上執行要怎麼做呢？
1.設定手機USB Debug mode 啟動，並連接usb至手機
按Menu鍵進入”設定”畫面－＞應用程式－＞開發（未知的來源要打勾）－＞USB除錯中 打勾





2.設定Eclipse Run Configurtions
 
&#160;
 
在左側找到Android Application-&#62;New configurtions
輸入名稱（自己想一個）及選擇要執行的專案為何
 
切換到Target頁籤，選擇Automatic，並把ADV設備全數取消選取，按Apply，然後選擇Run
 
就可以在手機上看到程式安裝好了
]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/447/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Android]使用DDMS ScreetShot</title>
		<link>http://blog.yslifes.com/archives/436</link>
		<comments>http://blog.yslifes.com/archives/436#comments</comments>
		<pubDate>Tue, 13 Oct 2009 14:25:10 +0000</pubDate>
		<dc:creator>yku</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[Capture]]></category>
		<category><![CDATA[ddms]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[printScreen]]></category>

		<guid isPermaLink="false">http://blog.yslifes.com/archives/436</guid>
		<description><![CDATA[Htc Hero等android系統的手機，目前系乎沒法子直接使用app來printscreen畫面，
並不是沒有軟體，而是需要有root權限，在保固期內的機子倒不太建議這麼玩，
那還有什麼法子可以screetShot畫面呢？
有的，利用Developer SDK的工具DDMS(Dalvik Debug Monitor Service)來取得手機上的畫面，
方法如下：
1.首先需要下載Htc sync軟體並安裝app及Driver，
官網下載
2.再來是安裝SDK及Eclipse（可選擇要不要裝）
可以參考 [安裝教學]使用Eclipse開發Android程式
3.設定手機傳輸時使用Debug mode，並插上USB連接線
按Menu鍵進入”設定”畫面－＞應用程式－＞開發（未知的來源要打勾）－＞USB除錯中 打勾





4.啟動DDMS，有二種方式：利用Eclipse啟動、直接執行Application
A.Eclipse啟動
右上角有一個+的按鈕，加入DDMS模式

如果USB有連接的話在Devices可以看到設備，如果沒有連接USB時這裡會是虛擬器

選擇Devices Tab右上角的Screen Capture按鈕

就可以看到ScreenShot的畫面了，可以選擇要Save存檔或Refresh重新取得

B.直接使用SDK的DDMS工具
在SDK安裝目錄\tools目錄裡，執行ddms.bat

畫面跟Eclipse裡的很像

Screen capture可以用Ctrl+S或是在Device-&#62;Screen capture

]]></description>
		<wfw:commentRss>http://blog.yslifes.com/archives/436/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
