- 8月 03 週二 201011:30
西恩的故事....
- 6月 27 週日 201010:44
對論文,很無力,對同學,很無奈,對人生......
- 4月 28 週二 200914:49
HTMLCleaner
import org.htmlcleaner.*; import java.util.*; import java.io.*; /** * Vladimir Nikic * Date: Apr 13, 2007 * modified by Sam 2009 */ public class Test { public static void clean(String input)throws Exception{ HtmlCleaner cleaner = new HtmlCleaner(); String fileFull = "", fileName=""; File file = null; try{ file = new File(input); fileFull = file.getCanonicalPath().toString(); }catch(ArrayIndexOutOfBoundsException e){ System.out.println("using: java fileposition"); } CleanerProperties props = cleaner.getProperties(); props.setUseCdataForScriptAndStyle(true); //Optional props.setRecognizeUnicodeChars(true); props.setUseEmptyElementTags(true); props.setAdvancedXmlEscape(true); props.setTranslateSpecialEntities(true); props.setBooleanAttributeValues("empty"); TagNode node = cleaner.clean(file); //Read the file from external file system //System.out.println( new PrettyXmlSerializer(props).getXmlAsString(node) ); //Show the processed html content new PrettyXmlSerializer(props).writeXmlToFile(node, fileFull); //Write back to original file //new ConfigFileTagProvider(new File("//Applications//eclipse//workspace//Ungroup//src//geektu//default.xml")); //Can define the custom tag in configure file fileName = file.getName(); System.out.println("\"" + fileName + "\" processed!"); } }
- 3月 06 週五 200909:35
以天下國家為己任,置他人死生於度外
以前會常常看社會新聞,看看最近發生了什麼事情,
這好像是從大學以來就有的習慣。
到了研究所以後,這樣的情形更明顯,或許是因為無聊,也或許是因為還是想花點時間了解社會上發生的重大事件。
但是看到了現在,真的有幾種感覺......
1.有時候事情不要揭露,大家往往過的安逸自在,但媒體卻自己攬上了「民眾有知的權力」這樣高尚的包袱,到處揭人隱私,
以八卦頭條、小道消息為己任,把當事人的死生置之於度外。然後有人因為這樣跳樓、割腕,當然要繼續追更大條的新聞,
接著在開始假意的檢討自己,檢討新聞自由跟人權之間的衝突!.......哪來的衝突!這一切都運作的很好不是嗎?你犯錯,我八卦,天經地義不是嗎?
「要刮別人的鬍子之前,先把自己的刮乾淨」!要拿石頭丟做錯事的女孩前,先想想自己是不是沒有做錯事。
2.某派某黨的媒體,會選擇性的報導新聞,如果我們只看某幾家特定的電視台或是報紙,就會落入資訊沒有完全揭露的窘境,因為相信了特定的媒體,所以連帶的影響了我們的心智,也慢慢的被他們的思想所強化了他們所要安排給「民眾」的角色。
盡信書不如無書,盡信媒體那不如無媒體,
看到的東西,都要經過我們理性的判斷,不然很容易就跳到別人先給我們的陷阱之中,只怕我們還拍手幫他們叫好呢。
- 12月 15 週一 200820:23
雪上加霜的經濟"奇蹟"
- 12月 08 週一 200818:12
第四十五屆金馬獎頒獎典禮
- 11月 12 週三 200816:20
MIS Quarterly...
- 5月 01 週二 200721:38
看來要習慣ls -al(Permission denied)
- 4月 17 週二 200721:37
維吉尼亞理工學院槍擊32人死傷(Student Slaughtered)
- 4月 16 週一 200721:36
1/24(畢業的倒數)



