Category Archives: Software

Percona 把 Galera Cluster 標為 General Availability 了…

前幾天讓人吃驚的新聞,Galera Cluster 離第一次 Percona alpha 測試 (Percona Server 5.1 with Galera replication) 才九個月就進入 GA 了 (相當於九個月內就過完 Beta + RC 階段):「Announcement of Percona XtraDB Cluster 5.5.20 GA release」。 大家最大的問題還是「這能用嗎」… 不過既然進入 GA 狀態,加上是 Percona,好像可以期待?

Posted in Computer, Database, Murmuring, MySQL, Network, Software | Tagged , , , , , , | Leave a comment

在 FreeBSD 上練習 Objective C…

一樣用 gcc 就可以練習了,首先要先裝 lang/gnustep-base: cd /usr/ports/lang/gnustep-base; sudo make install clean 裝好後 compile 的兩個階段要對 gcc 加上不同的參數: -I/usr/local/GNUstep/System/Library/Headers 以及: -L/usr/local/GNUstep/System/Library/Libraries -lgnustep-base -lobjc 把這些參數整合到 Makefile 裡面就可以練習了。

Posted in Computer, Murmuring, Programming, Software | Tagged , , , | Leave a comment

在 Mac OSX 上安裝 GCC

參考「Xcode, GCC, and Homebrew」這篇文章整理的… 先前是裝上面那篇文章作者所整理的 OSX GCC Installer,但在新的 MBA 上面發現 homebrew 會抱怨 Xcode 版本太舊? 後來還是改裝 Apple 提供的 Command Line Tools for Xcode (需要 Apple ID) 就沒問題了。 Update:在 Twitter 被 bcse 提醒標題不對,因為實際上 gcc 指令被 alias 到 llvm-gcc-4.2,這並不是 GCC (只是相容介面,骨子裡還是 llvm),這篇只是講 Mac … Continue reading

Posted in Computer, Murmuring, Programming, Software | Tagged , , , , | 1 Comment

Fabric Engine

Fabric Engine 號稱可以把 JavaScript 與 Python 跑到接近 C++ 速度的實力,而且強調支援 Threading… 投影片裡可以看到底層的技術包括 LLVM。 在 Python 的範例程式可以看到 import 後用專屬的 Handler 包起來:https://github.com/fabric-engine/PublicStable/blob/master/Examples/Python/Tutorial/trivialHTTPServer.py。而 NodeJS 的範例也是類似的架構:https://github.com/fabric-engine/PublicStable/blob/master/Examples/Node/Tutorial/trivialHTTPServer.js。看起來比較像是把常用的 module 寫成 C++ code 而已?這並不是什麼神奇的技術… 另外 license 是 AGPL 3 or later 這個麻煩的 license,再加上使用 GitHub 的方式超怪 (把 stable 版本與 … Continue reading

Posted in Computer, Murmuring, Programming, Software | Tagged , , , | Leave a comment

Mozilla Firefox 與 Google Chrome…

我家裡與公司的 Mozilla Firefox 與 Google Chrome 都是在 Ubuntu 上面跑,至於家裡的 Mac Mini 就沒換了,還是跑 Chrome。來講一下我對這兩個瀏覽器的的感覺。 從安裝開始,在 Ubuntu 下面我是透過 ppa 裝 release 前一個 channel (兩個都叫做 beta)。安裝的方式很簡單,設好 ppa 後 apt-get update; apt-get dist-upgrade 就會把系統的 Firefox 與 Chrome 升級到新版。 對於套件的相容性,Firefox 有很明顯的改善,現在從 Release 升級到 Beta 的時候不會直接把所有的套件標成不相容,會有一些機制處理,這方面算是跟 … Continue reading

Posted in Browser, Computer, Firefox, GoogleChrome, Murmuring, Network, Software, WWW | Tagged , , , , | 1 Comment

用 hjkl 表示左下右上,以及 ~ 表示 home 的原因…

在 OSNews 上面看到:「Why vim uses the hjkl keys as arrow keys」,引用了「Here is why vim uses the hjkl keys as arrow keys」這篇文章,提到為什麼 vi 使用 hjkl 表示左下右上四個方向,以及用 ~ 表示 home directory 的原因。 首先是 Bill Joy 發明 vi 時所使用的 ADM-3A terminal 鍵盤的樣子: 再來是 … Continue reading

Posted in Computer, Hardware, Murmuring, Recreation, Software | Tagged , , , , , | 2 Comments

AMD CPU bug 問題…

去年年底時 Matthew Dillon 在 DragonFly BSD mailing list 上的說明:「Buildworld loop seg-fault update — I believe it is hardware」,以及今年三月從 AMD 確認問題「AMD cpu bug update — AMD confirms! (additional info)」。 可以從 mailing list 上看到他想辦法重製問題的方法 (從兩天才能重製,到小於 60 秒就能重製),讓他覺得最棘手的原因是無法引入工具: Debugging the issue in userland … Continue reading

Posted in Computer, Hardware, Murmuring, OS, Software | Tagged , , | Leave a comment

AWS EC2 全面支援 64bits,並補上產品線…

之前用 AWS EC2 的人常遇到的狀況是,t1.micro 記憶體太小會常常 out of memory (用 EBS 硬撐當 swap 效能不好),但 m1.small 只能跑 32bits,為他做完整的 32bits image 維護成本實在不划算,因為等到之後變大後又得改做一份 64bits 的 image,如果從 t1.micro 改用 m1.large 又嫌太大台… 現在這個問題總算是解決了:「Announcing three new Amazon EC2 features」,EC2 這次提供新功能包括: 推出新的 instance 種類 m1.medium,收費是 m1.small 的兩倍,所以規格大致上也是 m1.small … Continue reading

Posted in AWS, Cloud, Computer, Linux, Murmuring, Network, OS, Software | Tagged , , , , , | 2 Comments

jQuery 成立基金會

正式的聲明在這:「ANNOUNCING THE JQUERY FOUNDATION」,算是在 John Resig 淡出後,組織架構上比較大的改變… 基金會正式的網站在 jquery.org。

Posted in Computer, Murmuring, Software | Tagged , | Leave a comment

PHP 5.4

PHP 5.4 前幾天正式釋出了:「PHP 5.4.0 released!」,新增與改變了很多東西。 有些蠻值得注意的地方: safe mode 與 magic quote 都消失了,升級後需要重新檢查 php.ini。 array_combine(array(), array()) 不再傳回 FALSE 了,總算是傳回 array()。 可以用 [] 表示 array() 了。 function 傳回 array 後可以直接對 array 取值,也就是 foo()[0] 變合法語法了。 new 完後可以直接 call function 了,也就是 (new Foo)->bar() 變合法語法了。 … Continue reading

Posted in Computer, Murmuring, Programming, Software | Tagged , , | Leave a comment