Jim Cheung

Friday, October 17, 2014

docker just released v1.3, which docker exec allows to spawn a process inside a running container, for easier debugging. no need to nsenter anymore.

Wednesday, October 29, 2014

I was starting using emacs, but I really hate the c-x prefix (I tried switching cap and ctrl key, my keyboard has a switch lock, that made things even worse), my finger hurts too.

I used a lots of esc key as a long time vim user. I mapped esc key as c-x (and f2 as m-x), now it's much more easier.

Emacs rocks is a very good serie of videos: http://emacsrocks.com/

I also creating notes on my emacs page

Friday, October 31, 2014

totally in love with emacs now, still need to figure out which key to replace c-x on the left hand side, since esc key has same keycode as alt under console mode.

TIL, in PHP, you can create function inside a function:

function foo() {
    function bar() {
    }
}

both are global, but bar() only be available after foo() is called. I'm thinking some interesting things about this.

another is from this post. use hash_equals in PHP 5.6 for hash comparison, and the symfony way to handle this if the function not exists.

Blog Archive