I always telling my self to make this draft more blog-y. But doing so actually is only my reason to not publish stuff. So from now, please forgive the directness. I use this post as my own self reminder and maybe could be useful for somebody else.
– install sublime text 3
– add package control
3 all auto complete
4 TrailingSpaces –> edit key configuration, I normally switch command key with control
how about you guys, do you have any other plugin to recommend?
for more ways to do it checkout http://askubuntu.com/questions/192798/reading-the-output-from-any-process-using-its-pid
Today I was run a long process from crontab. But I forget to set the output of the command. Checking with ps aux | grep command_name shows me the pid. After that I can do the following command to actually shows the stdout of the process. really cool right?
Be careful with this value, or if you are not aware about this option. When set to true (which is default for selenium), you will not be able to get the element using method find, first, or all.
I spent like two hours questioning the website’s html haha. When it turns out that capybara have such configuration.
The normal installation of passenger usually require you to either do 1. passenger-install-nginx-module, or 2. go to nginx source and reinstall manually with extra –add-module /path-to-passenger-module
I am a bit reluctant to do option-1 because I already have some modules running with my nginx and option-2 is a bit troublesome because I install nginx with apt-get so I dont keep the source code.
Create a file /etc/apt/sources.list.d/passenger.list and insert one of the following lines, depending on your distribution.
##### !!!! Only add ONE of these lines, not all of them !!!! #####
# Ubuntu 13.10
deb https://oss-binaries.phusionpassenger.com/apt/passenger saucy main
# Ubuntu 12.04
deb https://oss-binaries.phusionpassenger.com/apt/passenger precise main
# Ubuntu 10.04
deb https://oss-binaries.phusionpassenger.com/apt/passenger lucid main
Inspired by my lovely wife‘s ritual of counting baby kicks during last trimester of pregnancy, me and colleague designer wrote this simple app. So, in brief, this apps helps you track the number of kicks / bump during a day. And we do that by using love messages, which can be customized of course. And lastly, it can tweet something like “My baby just kick me”, to help mommies brag about their babies :).
And oh, almost forgot that since my doctor said that we need to aim for at least 10 kicks a day. The app include some tips to help excite the baby during a slow day ;p.