最近看到好萊塢明星因為密碼太簡單,導致 iCloud 照片被盜的新聞,想說來寫篇文章推薦大家使用 password manager。為什麼需要 password manager 呢? 因為我們記性很差,不可能記住 &aajYF*$#8WU7lwN 這種密碼 (這是用 LastPass 產生的,我記不住,我猜大多數人也不行),所以剩下兩個選擇,挑一個記得住的密碼,或是使用 password manager。
2014年9月8日 星期一
2014年8月21日 星期四
重新開張
上次寫 Blog 居然已經是五年前的事了,光陰似箭啊… 這幾年都用 Twitter/G+ 比較多,不過最近想寫一些比較長的文章,本來打算直接在 Google+ 寫就好,後來想想長文放 G+ 很容易就被淹沒,還是找個 Blog 來用。稍微做了一些功課,也看了 ingram 寫的自架 Blog 文章,後來決定還是用之前的 Blogger,只是過了這麼久沒用,舊的設定都壞掉了,花了一些時間重新設定,現在版面看起來還可以。
Blogger 沒辦法支援 markdown,所以我現在用 stackedit 來寫,可以隨時同步到 Google Drive (或是 Dropbox),最後再發佈到 Blogger 上就完成了。
至於留言系統有好多選擇,不知道哪一種比較好,Disqus 看起來還不錯,所以決定測試看看,過一陣子看成效和反應如何再來調整~~
2009年11月28日 星期六
Fixing a bug about using Eclipse 3.5 in Ubuntu 9.10
After upgrading to Ubuntu 9.10,
some buttons in Eclipse 3.5 failed to work using mouse click,
but it's fine using keyboard.
I googled for a while and found a workaround.
Just create a script and start your Eclipse using it.
And all the buttons should be working as usual.
#!/bin/bash
export GDK_NATIVE_WINDOWS=true
/path_to_your_eclipse/eclipse
Convert Ant projects to Maven
I have tried to convert some Ant projects to Maven.
Here's the steps using Eclipse and M2Eclipse:
- Right click on Project, choose Maven -> Enable Dependency Management
- Change project layout, add src/main/java, src/main/resources and src/test/java
- Set output folder to target/classes or target/test-classes in project properties
- Add pom.xml, and fix missing dependencies (You can use nexus or artifactory.)
- Run mvn install and see if everything works
2009年7月20日 星期一
cannot start Eclipse 3.4.2 on Ubuntu 8.10
Actually, it worked before but eclipse 3.4.2 suddenly failed to start this morning. I don't know what happened, so I just googled for the error message:
-------------------------------------------------------
org.eclipse.swt.SWTError: XPCOM error -2147467262
at org.eclipse.swt.browser.Mozilla.error(Mozilla.java:1638)
at org.eclipse.swt.browser.Mozilla.setText(Mozilla.java:1861)
at org.eclipse.swt.browser.Browser.setText(Browser.java:737)
...
-------------------------------------------------------
Then I found the solution on this blog
So I downloaded an older version of xulrunner (I use 1.9.0), unzip it to my local folder. I put the line below in my eclipse.ini file and my eclipse WORKS again~~
-Dorg.eclipse.swt.browser.XULRunnerPath=/path_to_your_xulrunner/xulrunner
-------------------------------------------------------
org.eclipse.swt.SWTError: XPCOM error -2147467262
at org.eclipse.swt.browser.Mozilla.error(Mozilla.java:1638)
at org.eclipse.swt.browser.Mozilla.setText(Mozilla.java:1861)
at org.eclipse.swt.browser.Browser.setText(Browser.java:737)
...
-------------------------------------------------------
Then I found the solution on this blog
So I downloaded an older version of xulrunner (I use 1.9.0), unzip it to my local folder. I put the line below in my eclipse.ini file and my eclipse WORKS again~~
-Dorg.eclipse.swt.browser.XULRunnerPath=/path_to_your_xulrunner/xulrunner
2009年3月30日 星期一
What's New in Eclipse 3.4 and MyEclipse 7.1
Here's a brief summary of what's new in Eclipse 3.4 and MyEclipse 7.1:
Eclipse 3.4
MyEclipse 7.1
Eclipse 3.4
- breadcrumb when editing Java files
- use multiple core to build - save at most 30% of time (this is what THEY said...)
- has built-in support for subversion (but you have to install svn connector manually)
MyEclipse 7.1
- enhanced javascript debugger
- highlight paired HTML tag
- better ap server deployment
2009年3月1日 星期日
爬郊山的戶外裝備購買建議
本來是寫給朋友的信,
後來想想稍微改一下可以貼在 blog 上 :P
請注意,這是針對爬郊山的建議而已,
如果要爬百岳或許就不合適,
而且我也只是個初學者,
要是有寫錯還請多指教~~
========================================
這是裝備購買的建議,
先從一些基本的推薦起 :P
前提:
褲子: 先買薄一點又排汗透氣的,這樣除了冬天之外,春夏秋三季都可以穿,Lafuma 算是蠻平價的品牌,我有買一件,目前為止很滿意
鞋子: Merrell 的不錯,不然其實一般運動鞋/慢跑鞋也可以
外套: 台灣賣的外套比國外貴不少。露天拍賣有個賣家不錯,價格比較便宜,但是貨色/款式/尺寸不是很齊,所以要碰碰運氣。這是他賣場裡的外套,買防風透氣的就夠了,不用買到太高檔的 :P
後來想想稍微改一下可以貼在 blog 上 :P
請注意,這是針對爬郊山的建議而已,
如果要爬百岳或許就不合適,
而且我也只是個初學者,
要是有寫錯還請多指教~~
========================================
這是裝備購買的建議,
先從一些基本的推薦起 :P
前提:
- 登山衣物價錢差異很大,根據品牌和材質不同,差好幾倍都很正常,建議先買比較平價就好,因為目前只是爬爬郊山而已
- 如果要去實體店家的話,中山北路和忠孝西路附近的台北山水和登山友這兩間店不錯,貨色齊全,價格合理(名牌當然還是很貴,但是不怕買到假貨,也不會被騙)。網路購物的話可以考慮高雄百岳,他們購物網站做的不錯。除非很有把握,否則儘量不要在拍賣上買,很多都是假的...
褲子: 先買薄一點又排汗透氣的,這樣除了冬天之外,春夏秋三季都可以穿,Lafuma 算是蠻平價的品牌,我有買一件,目前為止很滿意
鞋子: Merrell 的不錯,不然其實一般運動鞋/慢跑鞋也可以
外套: 台灣賣的外套比國外貴不少。露天拍賣有個賣家不錯,價格比較便宜,但是貨色/款式/尺寸不是很齊,所以要碰碰運氣。這是他賣場裡的外套,買防風透氣的就夠了,不用買到太高檔的 :P
2008年12月21日 星期日
firefox/eclipse 在 Ubuntu 8.10 上輸入框過長 bug
自從用了 Ubuntu 8.10 之後,
就發現一個很討厭的 bug,
那就是在 firefox/eclipse 裡面,
輸入框的長度會變得非常的長,
詳情可以參考這個討論串。
後來證實是 pango 的 bug 造成的問題,
bug fix 已經上傳到 pango 的 svn 了,
不過我不確定什麼時候 Ubuntu 才會更新,
所以我就參考這裡的作法,自己更新 pango:
sudo apt-get install build-essential
sudo apt-get install libgtk2.0-dev
sudo apt-get install gtk-doc-tools
svn co http://svn.gnome.org/svn/pango/trunk pango
cd pango
sh autogen.sh --prefix=/usr
make
sudo make install
更新之後就都正常了~~
就發現一個很討厭的 bug,
那就是在 firefox/eclipse 裡面,
輸入框的長度會變得非常的長,
詳情可以參考這個討論串。
後來證實是 pango 的 bug 造成的問題,
bug fix 已經上傳到 pango 的 svn 了,
不過我不確定什麼時候 Ubuntu 才會更新,
所以我就參考這裡的作法,自己更新 pango:
sudo apt-get install build-essential
sudo apt-get install libgtk2.0-dev
sudo apt-get install gtk-doc-tools
svn co http://svn.gnome.org/svn/pango/trunk pango
cd pango
sh autogen.sh --prefix=/usr
make
sudo make install
更新之後就都正常了~~
My favorite VIM color scheme
I use Eclipse to write java, but I use VIM for editing other files. My favorite VIM color scheme was murphy (it should be installed by default) before I found IR_black. You can download IR_black color scheme here.
訂閱:
文章 (Atom)