自組一台黑蘋果 Mac Pro 我的 iMac 是 2014 年 5k iMac,雖然還能動,但用 Xcode 還是常常彩虹球。其實一直也想自組一台黑蘋果,目標是 8 Core 以上的工作站。經過上次的組裝後自信可以自行完成,可以計劃一下了。 為何不買 iMac 、 iMac Pro或未來的組合式 Mac Pro? 單以價錢而論,如果買一個 5K 顯示器再組一台 PC 其實不會便宜過買 iMac。但是因為是一體式電腦,想要更新的話必需整台機器換掉,
try! Swift 2018 第一天筆記 (1) Swift Secret Tour Yuka Ezura 一些有關 Swift 的 type 和 closure 的你不知道的小知識 用 AST 在這些情況了解 Swift 運作的秘訣 Slide SIL for first time learners Yusuke Kita 基本上就是說 swiftc -emit-sil -O ... 可以看到 swift 的 Swift
pc 2018 砌機:Ryzen 3 HTPC+遊戲組合 後久沒有砌機了,這次想組一台 HTPC 所以趁機練習一下。硬件: CPU:Ryzen 3 2200G 底板:ASRocks Fatal1ty AB350 Gaming-ITX/ac (有 Wifi 和 USB-C) 機箱:Jonsbo UMX1 Plus (鋁鎂外殼 + 鋼化玻璃) 電源:Corsair SF450 (雖然機箱可以用ATX,但店員建議用 SFX 電源讓走線方便一點) 記憶體:
移除 Audible 有聲書的 DRM 之所以想把 Audible 收藏備份,是早前在推上看到這篇 xkcd : 有些好書你真的只能在有 DRM 的市場找到,而我們當然也想支持作者和出版社,所以只好先買書再用麻煩的方法解除 DRM 了。要留意以下的方法並不是破解 Audible DRM ,只是用和 Audible app 一樣的方法下載和解碼,再轉換檔案而已。 下載 Audible 有聲書 要移除 DRM ,首先當然要下載有 DRM 的檔案。Audible 除了由 app 播放外,也支援下載有聲書到
Demo: P2P collaborative text editor Recently I've been researching on P2P collaborative text editor. I've a demo to show - its not much beyond a technical demo, but it is interesting. Go ahead to try it out! Open
Mastodon 我很喜歡 Twitter 這個平台。在 2007 年時,在上面說中文的多是 Blogger 圈的人。我記得拉了好幾位同事朋友進去。那時 Twitter 還常常鯨魚,那時還有許多內地的高質推文。。。 都是許久之前的事了。 Twitter 最大的問題是 Twitter 這公司,他們的策略和方向基本上是跟用戶作對的。記得他們移除了超強的 Twitter iPad app 換成現在的統一的垃圾、他們的 Dick Bar 、他們的 100000 個 auth token
ios My WWDC 2016 Wishlist Its about time to WWDC. It’s always like Christmas for Apple developers. Provided Phil Schiller release huge App Store changes a week before WWDC, we can expect there will be lots of
Making of Peerflix for iOS, or how to embed any nodejs app in iOS app. This is about building Peerflix for iOS. What is Peerflix? In case you don't know, peerflix is a JavaScript app that stream video torrents without fully downloading them. It's like Netflix, but P2P,
ios 我看 WWDC 2015 說說今年 WWDC 比較重要的東西吧: Swift 2.0 蘋果自己埋頭苦幹做了 Swift 幾年,在上年突然推出把全世界嚇了一跳。雖然贏得了開發者的掌聲,但是它的不穩定和一些語法古怪的部份讓很多開發者都停留在 Objective-C。今年蘋果就是要跟大家說他是認真的,也解決了一些重要問題: 解決了大部份的 compiler bug ,也把許多謎一樣的 compiler error/warning 改成有用的建議 在 Objective-C 中加入了 nullability 和 generics 。這讓 Swift 使用 Obj-C
objective-c Effectively implementing delegate pattern in your custom classes Delegate is one of the simplest and flexible patterns in Cocoa. A delegate is an object that acts on behalf of, or in coordination with, another object when that object encounters an event
tag Building a iOS Ruby REPL and Opal for iOS I'm happy to tell you I just finished the first version of IGJavaScriptConsole, a JavaScript/Ruby REPL for your Objective-C apps! REPL stands for Read-Eval-Print-Loop. See it in live below: Why? Since iOS
ios Debugging JavaScriptCore using Safari Web Inspector With new JavaScriptCore in iOS, we have the ability to add dynamic scripting to mobile apps. If you've been working on embedded JavaScript for iOS projects, you know the pain: you have to
ios 讀書:iOS 6 Programming - Pushing the Limits 這本是我讀過最好的 iOS 開發者書本之一!不要被名字誤導,它的內容遠不只 iOS 6。它內容大致分成以下幾部份: **iOS 6 的新功能。**包括 XCode 4、LLVM、IB等。 **日常工具進階介紹。**包括 Objective-C (你未必知道) 的常識、Cocoa 的 Design Pattern、記憶體管理、Table Views、Collection Views、Auto Layout、繪圖、
book 讀書:Microinteractions 作為開發者我們開發時很容易把功能 (features) 當成是價值的指標。然而在 App Store 或網站這類市場上,有能力做到同樣功能的人隨時成千上萬。能夠給人印像深刻的軟件,其成功之處往往就是在無數個沒有標明的細節上。 何謂「細節」? Microinteractions: Designing with Details 一書就嘗試系統化地分析互動設計上的細節。這超越了設計的潮流 (擬真 vs 平面)、技術和平台,聚焦在日常互動的亮點,那些讓人滿足和愉快的設計。 這書十分精練、有趣和清晰。每一章往往都是由生活化的故事說起,一路讀下去你會看到有趣的題目,不同的例子和執行上的考慮。我特別喜歡正文之間夾雜的由成功軟件抽出來的 "microinteractions"
wwdc 2013 三藩市之旅 (1) WWDC 是 Apple 系開發者最重要的活動,2013 年,全職開發 iOS 軟件三年後終於有機會參與其中,所以我想總要寫下點甚麼記錄吧。 Day 1 到步的時間是大清早,這次選了坐 BART,只要 8.5 元便去到 Powell St. Station 。這時也只是上午九時許。 下車第一時間當然是買 Sim 卡上網,這次用的也是 T-Mobile。雖然據說這年 T-Mobile 在灣區建設了 4G 的網路,
wwdc 2013 三藩市之旅 (3) - 矽谷遊 Day 8 這天跟 @dlackty 和 @itszero 去 Computer History Museum,那裡記錄著電腦科技的歷史(包括好些黑歷史),是業界人士必去的景點啊! 午餐在 The Cheesecake Factory,美式食品和 Cheese Cake 也十分美味!! 之後我們走了去 Stanford University,見識一下老牌大學的樣子。 晚餐在 Himawari ,是日式餐館!抱著挑戰的心態走去吃。。。結果拉面還可以,但小食還是免了。 Day 9
wwdc 2013 三藩市之旅 (2) - WWDC Day 3 WWDC 第一天,這天沒有真正的 Talk。重點是傳說中的 Key Note。之前一天晚飯的時侯,Playmore 的 Andy 和 Alex 說著「要是八時去到鐵定要去overflow room 看電視直播」。雖然不大相信,但千里迢迢過來總不能灰到看電視轉播的吧?所以我和同房便六點走過去了。。。 六時的 Moscone West 已經打了一個蛇餅了,晨早的三藩市格外寒冷。不過因為在這裡排隊的都是跟我們一樣的開發者,熱熱鬧鬧的,還有蘋果供應的咖啡,兩小時很快過過去了。 Key Note
ruby TOKYO Rails #19 During our trip in Tokyo last month, I and my wife attended TOKYO Rails #19 at COOKPAD, and that is fantastic. While I don't actually coding Rails lately, I'm lucky to met a
ruby RubyMotion gotchas (1) When using RubyMotion, just like many other new technologies or frameworks, I found gotchas and scratch my head over them. I'm writing them down in case I might forget them. I hope this
ruby Error Decoding msgpack data: invalid byte sequence in UTF-8 My new app use msgpack to encode data before sending to server. On server side, its a Sinatra app that decode and store the data to database. The app works fine until I
git Search your git history Wonder how to search your entire git repo using grep? This command will work: git grep <regexp> $(git rev-list --all) It search and returns every file contains that regular expression in
ruby Using DTrace with RubyMotion Want to profile or analyze your RubyMotion application? How to use Instrument with motion is not yet known, but you can always use powerful DTrace to do that. Turns out running DTrace in
ruby Create gems for RubyMotion While RubyMotion featured using rubygems to extend projects, the actual steps to do so is not documented until motion-redgreen gems demonstrate it. Define A Gem Making gem for Motion is not unlike that
it [REPOST] 登記成為「資訊科技界」功能組別選民 作為 IT 界一員,你是否常感到 IT 界功能組別的代表未能 反映 你的 觀點呢?為了不讓悲劇重演,你可以登記做選民,為自己和業界投重要的一票。 據「立法會條例 20Z 資訊科技界功能界別的組成」,選民必需是指定學會和團體的會員。 根據我的調查其中 BCS 和 IEEE 手續較簡便。以下是我的筆記: 注冊成為 IEEE 會員以及登記做選民 開啟 IEEE 網站,選擇 “Join IEEE&
ruby Using 3rd party ruby library in RubyMotion Update: Check the post Create gems for RubyMotion on example to create a gem for rubymotion. These few days I have been playing with RubyMotion. They have documents on using Objective-C libraries. So