Today I experienced corrupt zsh history file. Which simply kills my most favorite terminal command ever (j). After quick googling, the fix is simple too.
First edit ~/.zsh_history and remove line with a lot of @@@@. And that’s it! there is no second step.
On a normal day, I keep several console connected with ssh to my servers. Often, I encountered my ssh console frozen or
Write failed: Broken pipe
In order to avoid such issue, we can simply add these lines to ~/.ssh/config
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.
Instead I found the official instruction which show me how to upgrade nginx installation in ubuntu.
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 561F9B9CAC40B2F7
sudo apt-get install apt-transport-https
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
sudo chown root: /etc/apt/sources.list.d/passenger.list
sudo chmod 600 /etc/apt/sources.list.d/passenger.list
sudo apt-get update
sudo apt-get install nginx-extras passenger
Edit /etc/nginx/nginx.conf and uncomment passenger_root and passenger_ruby.
sudo service nginx restart
add config file to your site-available
if you don’t have nodejs already, install it with this command:
sudo apt-get install nodejs
I am starting to work fulltime on my new startup. Co-founding startup is not easy.. haha. Anyway, here is the link to it: http://www.sirclo.com
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.
I have been playing around with git flow. Then I ended up with several feature/xxx remote branch. So to tidy things up, I need to delete those branches. The syntax is a bit strange but here it goes
git push origin :branch_name
While away from wifi, your phone will be the only connection source. Unfortunately, I haven’t been able to make my phone wifi tethering stable. And what make it worse is that if the phone make a network traffic, than the wifi tethering is affected. I need to stop tethering and restart it again.
That was before I decided to go research how to do usb tethering on mac. Yes, I need to research it first, because unlike window, mac doesn’t support it right away. The first link that I see is http://dossy.org/2011/04/android-usb-tethering-on-mac-os-x/ . It’s good, but I dont remember my APN configuration. But the article points me to another page which is http://joshuawise.com/horndis horrendous. This tool is really cool, with zero configuration, I can connect with usb tethering. Yay…
During the last few months, icehouse was busy making apps for this cool movie. We have been told to keep it hush2, but now that it has been available to play store and AppStore here, I am helping to spread the word. Hehe
I was fortunate to be able to join development of both android and iOS app. For now it is only available for US and Canada. But please enjoy and give good rate if you like them.
I have a very interesting project to start of this year, and it is involving blackberry signing tool. I am using Eclipse plugin for Blackberry on Windows machine. And if I want to test my application on real device, the application has to be signed by using tool provided by RIM.
It turns out that the tool doesn’t work with Java 7, so I need to uninstall it, and install JDK 1.6 instead.
Today I encountered this strange error:
Couldn't register applicationXXX with the bootstrap server. Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger.
It happend after I accidentally re-run the application while XCode was still building the code. Normally it doesn’t cause any trouble but for some reason it did. To solve this issue, I tried restarting XCode, iMac but the problem remains. until I see this article: http://stackoverflow.com/questions/788277/iphone-strange-error-when-testing-on-simulator that suggested to restart simulator. So, since I am using device directly, I restarted the device.
And it fixed the problem! haha very strange but interesting at the same time.