Posts

Showing posts from September, 2014

如何更改iTunes的備份位置

如何更改iTunes的備份位置 How to change the Backup location of iTunes? 原由 - 因為windows 預設的路徑都是在 c 槽下的 "%APPDATA%\Apple Computer\MobileSync\Backup",  這實在不是很明智的做法,不止 c 槽很快就滿了,  還要擔心中毒後舊不回來,所以放在其他磁區比較妥當。加上現在動輒備份10G以上的資料,由於主磁碟區空間不足,容易讓電腦變慢說。 The vast majority of Windows applications park their backups and bulky data directories right on the primary partition. This means the precious space on your SSD is chewed up by backups, a less than ideal situation. Read on as we show you how to move your backups to a data disk. Many ppl have switched to using a speedy solid state disk(SSD) as their primary drive. These drives are known for their snappy response time, not their expansive storage capacities. There's no sense in storing bulky and infrequently accessed data like your iPhone and iPad backup files on your SSD. Furthermore, in many instances, application functions will outright fail because primary disk isn't large enough. The last time we went to do a complete backup of our

關於 SSH 的二三事

記得多年前一直搞不清楚 ssh 時 public key, private key 的差別,生成,以及目錄,  今天開了個 Linode 伺服,特別復習一下。 Q1.  ssh 的目錄放哪裡? A1.  一般是 ~/.ssh 的目錄下 若是無此目錄, 可以在 cmd line 下輸入 >>ssh-keygen   就會自動生成目錄以及 key-pair (id_rsa, id_rsa.pub) Q2. public/private key 的差別 A2. public key 簡言之就是公開鎖匙,  給與權限使用該帳號,  存在 client/user  端. private key 則是用來生成 public key 的密鎖, 放置 server 端, 需謹慎儲存. Q3. 如何生成 public key A3. >> ssh-keygen -y -f private_key.rsa > public_key.pub Q4. Server 端如何保存 client 提供的 public_key A4. 透過 scp + ssh 是個不錯的方式 >> scp  [YOUR_PUBLIC_KEY].pub  [JACK]@reomteserver.com:~/.ssh/[JACK]_id_rsa.pub >> ssh [JACK]@remoteserver.com echo echo " `cat ~/.ssh/[JACK]_is_rsa.pub >> ~/.ssh/authorized_keys" Q5. 我們可能在很多不同的 servers 上使用, 要如何管理? A6. 其實用同一組 public_key.pub 真的很方便, 不過遺失 private_key 就頭大了.  另外可以注意到 >> ls ~/.ssh/known_hosts   保存了連線過的 server 他們所提供的 public keys  先這樣,想到再繼續補充。

隨手記事 09/06

Image
Logophile         又好一陣子沒有寫東西了,其實都有做記錄,只是尚未能抽出時間整理發佈。看看能否16號投晚搞後再來整理了。         話說剛學到一個不錯的字眼,主要是在 dictionary.com  查閱一個單字 panopticon 時留意到一個  ad 寫著 "Are you a logophile?" 不知道是什麼意思於是就查了一下。 Logophile, logo-phile, 這是一個組合字, 主要是指 a lover of words, 或說是文字的愛慕者?!(亂翻). -phile 這字尾表示 “ a lover of ", 不過字首 logo- 是指“word", "speech"有關的綜合字, 這叫 logography. grapheme - a smallest unit of a writing system. 這是文字系統裡面最小單位. logograph, logogram - a letter, symbol, or sign used to represent an entire word.  這是指一個可用來表示整體意思的符號或文字, 像是「$」(dollar)或「&」(ampersand). ideogram /i-deo-gram/  - a picture or symbol used in writing system.  這似乎是指象形字 morpheme  - a word or a part of a word that has a meaning.  這是意向字         所以總得來說, 中文系統是由 ideogram 與 morpheme 兩種組成。而英文則是 morpheme 。不過 grapheme 感覺就是指 a character 的文言文啊哈哈哈。回到原先的單詞 panopticon [pan-op-ti-kon], 英文釋義是 a building, as a prison, hospital, library, or the like, so arranged that all parts of the interior are visible from a single point.   原