Copying your ssh key

Since I’m frequently trying out new OSes courtesy of VirtualBox, my ssh key changes a fair bit. So I keep forgetting the xclip command, and I got tired of Google-ing “git xclip” so I’ve decided to repost snippets of this article here: $ sudo apt-get install xclip $ xclip -sel clip < ~/.ssh/id_rsa.pub Now use […]

Read More Copying your ssh key

*updated* Take care when using CakePHP Model->id, Model->del(), Model->find()

Fixed a bug recently in our code base that had happened intermittently enough for me to ignore until recently, when the problem occurred twice in a week. There was this habit of using the ‘id’ attribute of the corresponding model; e.g. $options = array(); // method params $this->Foo->id = ‘bar’; $this->Foo->baz($options); Now this is a […]

Read More *updated* Take care when using CakePHP Model->id, Model->del(), Model->find()