Hank to hanker - Learning Note
一個成功的拳擊手, 就是在眾多的打擊和跌倒後爬起來。人生亦如是。
網頁
首頁
文章列表
Sublime Text
iOS Dev
Python
Linux
JavaScript
dotfiles
2012年4月25日 星期三
[Mac] 使用Automator合併PDF檔案 - Use Automator combine PDF files
Step 1. 在Applications中執行Automator.app, 圖示如下
Step 2. 選擇新增一個Application, 然後拖拉以下三個Action到右邊,
如圖所示
Sort Finder Items (可以選擇按照檔案名稱排序pdf)
Combine PDF Pages
Move Finder Items
Step 3. 將要合併的PDFs框起然後拖拉到 combinePDFs.app
Step 4. 完成後會產生一個亂數名字的PDF檔案, 打開後就可以看到已經合併的PDF
2012年4月3日 星期二
[iOS Dev] Parsing JSON data from file.
Source code:
2012年4月2日 星期一
[iOS Dev] 偵測目前網路狀態 WIFI, 3G, Edge - Reachability
一年前寫過一個範例 :
[iOS Dev] 簡單的網路連結測試 Simple Internet Connection test
主要是透過NSURL去實際request一個網頁, 然後偵測是否可以連結
今天發現使用Apple有提供一個Sample Code - Reachability, 直接透過C語言的Library來偵測網路狀態
並可以偵測使用者是否使用WIFI, 3G, Edge網路 直接import Reachability.h就可以沿用, 非常方便
注意: 使用Reachability時, 要記得在專案link
SystemConfiguration.framework
詳細請看官方範例:
:
http://developer.apple.com/library/ios/#samplecode/Reachability/Introduction/Intro.html
2012年3月28日 星期三
[jQuery] Animation Progress Bar base on bootstrap progress bar
Source Code:
2012年3月15日 星期四
[iOS Dev] 實作Open in Safari
2012年3月14日 星期三
[OS X Lion] 修正localhost上DNS查詢緩慢 Fixing Slow DNS Queries in OS X Lion
使用OS X Lion上的Apache時, refresh page時常常會發現Apache怎麼那麼久回應
所以就在懷疑是不是因為Apache載太多模組了
查一下資料才知道原來OS X Lion會先遠端DNS Server查詢IPv6, 然後再返回本地找IPv4
所以解決方法就是把127.0.0.1的IPv6 IP加到 /etc/hosts
把以下這行加入 /etc/hosts
fe80::1%lo0 domain.local
就會發現速度變超快! 原來不是Apache的問題
Reference:
http://clauswitt.com//fixing-slow-dns-queries-in-os-x-lion.html
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)