快速在Linux上下載Oracle JDK7
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u75-b13/jdk-7u75-linux-x64.tar.gz
Show & Tell
YOU ARE THE REASON
cherry valley forever
Game of Thrones Daily

oozey mess

Product Placement

titsay
untitled

Jar Jar Binks Fan Club
todays bird
★

bliss lane
Misplaced Lens Cap

❣ Chile in a Photography ❣

roma★
Cookie Run:Kingdom Official!
Noah Kahan
tumblr dot com

seen from Netherlands
seen from Malaysia

seen from Germany

seen from United States

seen from United States
seen from United States
seen from Italy
seen from United States
seen from United States

seen from Poland

seen from United States
seen from Italy
seen from Italy
seen from United States

seen from Italy

seen from United States
seen from Algeria
seen from Australia

seen from Italy
seen from Italy
@mbp-r
快速在Linux上下載Oracle JDK7
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u75-b13/jdk-7u75-linux-x64.tar.gz

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
For iOS8 only
If you encounter the daemon “locationd” keeping using 100% CPU and draining your battery quickly. This is the simple way to get around it.
1. Prepare two files, one is .plist for launchctl, another one is a shellscript which just killall locationd.
2. The .plist file contains...
And now I wrote a new script it will kill process only if the cpu usage higher then specific number.
Here is the script
#!/bin/bash
declare -i app_pid
declare -i app_cpu
declare -i cpu_limit
app_name="locationd"
cpu_limit="90"
app_pid=`ps aux | grep $app_name | grep -v grep | awk {'print $2'}`
app_cpu_str=`ps aux | grep $app_name | grep -v grep | awk {'print $3'}`
app_cpu=$(( ${app_cpu_str%.*} ))
if [[ $app_cpu -gt $cpu_limit ]]; then
echo "[`date`] $app_name cpu usage: $app_cpu, kill it.” kill -9 ${app_pid}
else
echo "[`date`] $app_name cpu usage: $app_cpu, good."
fi
[iOS Jailbreak] Kill locationd with fixed interval.
For iOS8 only
If you encounter the daemon “locationd” keeping using 100% CPU and draining your battery quickly. This is the simple way to get around it.
1. Prepare two files, one is .plist for launchctl, another one is a shellscript which just killall locationd.
2. The .plist file contains following text:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.1jmy.keepKillLocationd</string> <key>ProgramArguments</key> <array> <string>/usr/bin/killLocationd.sh</string> <string>parameter1</string> <string>parameter2</string> </array> <key>Nice</key> <integer>20</integer> <key>StartInterval</key> <integer>300</integer> </dict> </plist>
Save the file as “com.1jmy.keepKillLocationd.plist” under /Library/LaunchDaemons/
If you using a different label, the file name must be change to your new label name (with extension .plist)
The StartInterval is the trick, it tell iOS to keep launch our script every 300 seconds. (of course, you can change the interval)
3. Now we need killLocationd.sh, save it under /usr/bin
#!/bin/bash killall locationd
be sure it has the execution permission (chmod 775 /usr/bin/killLocationd.sh)
That’s it. Now tell launchd to load it
launchctl load /Library/LaunchDaemons/com.1jmy.keepKillLocationd.plist
從 Android 換到 iPhone6+ 之後
本來 Geek 如我對 iOS 是頗排斥的(現在看來的確是有點井底之蛙)
自從換上 iPhone6 plus 之後,基本上幾乎沒什麼好挑剔的(硬體部分)。大手機的電量真的就是爽。如果沒忌諱的使用一天大概還撐的住。
軟體就有點難過了,用 Android 習慣了的一些東西例如 Tasker
根據地理位置自動開關 3G / Wifi(這個我在 JB 之前基本放棄)
根據 Calender 忙碌自動靜音(後來找到了 Auto Silence 勉強堪用,但常常失效不知怎麼回事)
光是這兩個就有差別了,更不用說 Control Center 無法自訂按鈕。Notification Center 還不是很完善。
最讓我覺得有差的是打電話這件事情竟然無法多工(就是假設有人撥電話進來,你沒有掛斷他之前無法切換任何其他 APP)
於是自然而然的我就走向了 JB 之路(這我在 Android 2.x 系列的時候經常在做的事情),沒想到 iOS 吸收 JB tweaks 的速度如此慢到現在還是有些東西得 JB 才能用到的。
CallBar (就是打電話功能的多工神器,這個有跟我一樣困擾的可以直接裝了,沒有更好,也沒有其他)
FlipControlCenter 這個選擇就很多了,目的是能改善 ControlCenter。選擇很多,我選他的原因是我喜歡有 SSH Toggle。
QuickDo 這個老中的軟體,基本也不在 Cydia 的預設裡頭,要另外買另外加入 repo。你知道老中軟件人才濟濟,無論現在 JB 或者多合一這種集成多種功能於一身這是老中的專門科啊,快要打遍天下無敵手了。
其他就都是小東西了 Homescreen Designer / BetterFiveIcon / StopAlarm ….
AccessMenuBarApps
曾經因為 Menubar 上的 Apps 被原 App 的 Menu 遮住而覺得很惱火嗎?下面這個 free 的 app 一整個就解決了這個問題。搭配 Bartender 更是完美無缺。
http://www.ortisoft.de/en/accessmenubarapps/

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
如何關閉 OS X 警告特定應用程式是從網路下載的?
借用一下網路上的圖,因為我已經關閉了才想到沒抓圖,這個很煩啊。他會一直警告,又不是警告一次而已(不知道為何?是 Bug?)
作法是找到該應用程式的路徑(例如 /Application/XXXXXX.app)
然後用 xattr -d -r com.apple.quarantine /Application/XXXXXX.app 這樣的指令(可能前頭要加上 sudo)
OpenCV on OS X + JAVA + Eclipse
也許很多人不知道 homebrew 已經強大到 OS X 必裝的東西,OpenCV 也可以用 homebrew 安裝。
首先先下載 science 套件清單
brew tap homebrew/science
等下載完以後,就可以執行
brew install opencv --with-java
當然後面的那個 --with-java 是必要的,不然就無法透過 java 呼叫 opencv。安裝完以後,參考 http://docs.opencv.org/trunk/doc/tutorials/introduction/java_eclipse/java_eclipse.html 就可以設定好 Eclipse + OpenCV。而 OS X 上的路徑在 /usr/local/Cellar/opencv/X.X.X/share/OpenCV/java 當中(包含 native library 也是設定到這個路徑)
OpenVPN 加上使用憑證搭配不需 Unix 帳戶的 Google Authenticator
網路上 OpenVPN 搭配 Google Authenticator 的文章有一些,寫的大多都沒問題。
但本人的環境是直接使用憑證認證。現在希望加上 Google Authenticator 進行認證。可是龜毛如我又不希望在我的 Ubuntu 上替每個人開個帳號(如果你有看過其他教學文章,幾乎使用 Google Authenticator 都是要使用每個人的帳戶去執行並產生認證碼)
其實 Google Authenticator 的程式都有想到,只是設定沒人特別教過。如果仔細看 README 就可以知道。這裡簡單說明如下
設定 pam.d/openvpn 時(我假設你是複製 common-account 設定過來的)一般最後一行就是加上
auth required pam_google_authenticator.so
這樣可以強迫啟用 google authenticator。而如果神祕的就是改用下面這行
auth required pam_google_authenticator.so secret=/etc/openvpn/google_authenticator/${USER}_google_authenticator user=gauser
意思是讀取使用者的 secret 檔不是讀取各自 home 目錄的檔案。而是改用/etc/openvpn/google_authenticator/ 下 XXXX_google_authenticator 的檔案(XXXX 是指用戶名稱)。因為這個檔案有權限限制(必須是 600)。所以後面又必須加上 user=gauser 這樣一串文字,意思是統一使用 gauser 這個 Unix 帳戶來讀取設定檔。否則他會試著找 XXXX 這個帳戶,結果找不到就無法登入。
當然因此你必須備好
/etc/openvpn/google_authenticator/ 目錄
gauser 這個 Unix 帳戶
之後要產生 secret 檔時,使用 google-authenticator -s /etc/openvpn/google_authenticator/XXXX_google_authenticator 來產生
概念大致上是這樣。如果本來給使用者的 OpenVPN 設定是指需要憑證且不需帳密就可登入的。現在可能原本 OpenVPN 的設定檔也得改,最前面得加上一行 auth-user-pass 。這樣才能強迫跳出輸入帳號密碼的視窗。
[Ubuntu] mvn 錯誤
用 apt-get install maven 之後,執行 mvn 竟然有錯
ls: error initializing month strings 錯誤: 找不到或無法載入主要類別 org.codehaus.plexus.classworlds.launcher.Launcher
我這台 Ubuntu 也還算乾淨,日前升級到 13.10,查了一下跟 locale 有關,解法如下,編輯 /etc/default/locale 檔案,內容大致如下:
LANG="zh_TW.UTF-8" LANGUAGE="zh_TW:zh" LC_NUMERIC="zh_TW" LC_TIME="zh_TW" LC_MONETARY="zh_TW" LC_PAPER="zh_TW" LC_NAME="zh_TW" LC_ADDRESS="zh_TW" LC_TELEPHONE="zh_TW" LC_MEASUREMENT="zh_TW" LC_IDENTIFICATION="zh_TW"
神祕的就是把粗體的那行改成 TC_TIME="zh_TW.UTF-8" ,然後存檔,重新登入。
嘿!搞定
multitail UTF-8 support on OS X / Ubuntu
以前不知道有這個好東西,今天猛然發現就愛上了偏偏又讓我發現他 UTF8 支援度的問題,首先是 Ubuntu apt-get 安裝的是 5.x 版。而 Multitail "似乎" 要 6.0+ 才支援 UTF8
Ubuntu 上自行下載 Multtail source 回來,安裝步驟是說只需要 make install 就可以了。不過卻發現什麼 ncurses 找不到。
亂試了一堆什麼 apt-get install libncursesXXX 之類的通通行不通。最後用了 apt-get install lib32ncursesw5-dev 搞定(不確定需不需要 apt-get install lib32ncurses5)
而 OS X 上就真的很 OX 了... homebrew 可以直接安裝 multitail,而且是 6.2.1 最新版。但是悲劇的是一樣中文失敗...
原因好像大概也是 ncurses 的問題,總之我的解法如下:
brew install ncurses (這個會安裝最新版的 ncurses,寫此文件的時候是 5.9,系統內建的是 5.4)
然後下載解開 multitail 原始檔,編輯 Makefile。在 LDFLAGS 加上 -L/usr/local/opt/ncurses/lib。另外在 CPPFLAGS 加上 -I/usr/local/opt/ncurses/include
make install(如果之前有 make 過可以 make clean 一下)
記得不要用 homebrew 的,因為他會用 make -f makefile.macosx 去跑,那個看起來是為了相容於 os x 內建的 ncurses。

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
25 posts! 肝! 原來 Tumblr 也有成就系統啊??!! 這哪招?
Best Mail App on OS X
測試過下列幾個 Mail app
內建 Mail.app
Outlook
Thunderbird
Postbox
Unibox
Airmail
因為我本身是使用 Gmail 帳號,所以與 Gmail 整合度對我選擇哪個 app 會有決定性的影響
基本上能夠與 Gmail 的標籤及整個會話串整合運作良好的只有 1. 內建 Mail.app / 2. Airmail。其餘的都有很多奇奇怪怪的現象。
如 Postbox 我滿喜歡他的整個邏輯及呈現。但他對於會話串的邏輯非常詭異,例如假設某個會話串有貼上 A & B 兩個標籤。當你在 A標籤回覆時,B標籤的會話串看不到你的那則回覆。但A標籤當中或者「全部郵件」當中又看的到。
而 Thunderbird 加上 ThreadVis 的 AddOn 後整個會話串看起來非常的視覺化,是個超棒的 AddOn。但 Thunderbird 對於會話串的排序無法把最新的排在前頭,點選會話串的時候預設也不會打開第一則會話(或者最新的會話)。整體操作順暢度就降低了。有時甚至非常不方便(對於較長的會話串時)。
Unibox 的設計邏輯其實相當的不錯,但他有個極大的缺點是對於工作的時候,有時候對於來信我們會第一時間用是「被cc」還是這封信是直接「To Me」來判斷是否要優先閱讀。而 Unibox 要「看到」完整的 To / Cc / Bcc 必須經過好幾次點擊,因此非常的麻煩而大幅降低了我使用他的意願。這一點在內建的 Mail.app 上做的非常的好,在郵件清單上就會清楚的標明我是出現在哪一個收件區塊(是 To / Cc 還是 Bcc)
Airmail 是我目前持續一直在使用的。Airmail 很便宜但功能算是非常的實用。第一是他對於Gmail的標籤及會話串運作正常。幾種不同的 Layout 應該可以滿足一些對「清單」部分呈現資訊有不同需求的人。整體介面風格做的不錯。但很奇怪的是 Beta 版不用錢,而正式版要錢,偏偏 Beta 版目前功能總是比正式版「強大且好用不少」(舉例來說預設載入信件內容的圖片功能如果關閉,那麼就應該要有個很方便就手的選項讓我們針對單一郵件去載入,而以前這個要點開很難選擇的小小箭頭才能找到選項,而 Beta版直接就有個大大的按鈕可以用)。因此變成就算我付了錢,還是得乖乖的去用 Beta版。
整體來說我對 Airmail 的評價(Beta版)算是比較高的,其次是內建 Mail.app。我對內建 Mail.app 最大的詬病是他使用mbox格式,這超級佔空間。如果內建的 Mail.app 能夠改用其他格式,做一些壓縮優化處理的話。內建的幾乎目前也是最佳選擇之一。如果硬碟空間很大或者郵件很少的人應該不會很在乎,那麼內建的就非常好用了。Airmail也是目前提到幾個收費app當中最便宜的。但目前來說用Beta版比較好用,付費純粹是真的很便宜而且鼓勵的意味較大。
Best Clipboard Manager on OS X
用過 PTHPasteboard Pro、iClip、Clips、CopyLess,這些都是要錢的!結論是竟然完全比不上不要錢的 ClipMenu
ClipMenu 我認為很強大的優點
圖跟文都能處理
歷史紀錄有編號,相信我,沒編號差很多
顯示字體可以調整,不傷我老人眼
可自訂script(甚至可以用 javascript)在貼上前前處理
可編輯 Snippets(基本就是 Favorites)
貼上是正常(別以為這不是基本的嗎,很多同類工具是幫你複製到剪貼簿,你自己再按一次貼上)
唯一遺憾的是他沒有辦法搜尋,否則幾乎是徹底打槍所有的 clipboard manager...
XtraFinder v0.18 終於在 OS X 10.9 上正常運作了
Folder 置頂正常
啟動時沒有錯誤
設置功能又正常了
升級到 OS X 10.9 Mavericks
原本一切都好,除了 XtraFinder 可以跑但是有些功能不能運行(例如 folder 置頂)
但陸續發現了一些其他的問題
1. Homebrew 有些套件怪怪的,例如 svn,乾脆移除用系統原本的
2. git svn 也很詭異,所以用 /usr/bin/git svn 才正常
3. MS Office 2011 在三螢幕的狀態下無法正確啟用「簡報者模式」(妙的是雙螢幕正常)
4. 不知道是否是我的錯覺,iterm 下使用 powerline 有點 lag...

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
舊版的 Ubuntu APT-GET 遇到 404 Not Found
雖然勤更新是好習慣,但總是會時候你接手機器的時候已經是老系統了。過了 EOL 連 apt-get 的更新 server 都連不上了。
這時候記得打開 /etc/apt/sources.list,把當中所有 xx.archive.ubuntu.com 改成 old-releases.ubuntu.com 即可。
CentOS yum 安裝開發工具 (ex. gcc) 有 dependency 錯誤
主要是因為安裝的 CentOS 預設不安裝 kernel 相關的 packages 修正方式如下: 1. sudo vi /etc/yum.conf 2. 把下列這行前面加上 # #exclude=kernel* 3. 然後執行: sudo yum install kernel-headers