Echoing

現在你們是新生代,但是不久的將來,你們也會逐漸變老,被送出人生的舞台。抱歉講得這麼戲劇化,但是這是真的。 你們的時間有限,所以不要浪費時間活在別人的生活裡。不要被教條所侷限-- 盲從教條就是活在別人思考結果裡。不要讓別人的意見淹沒了你內在的心聲。最重要的,擁有追隨自己內心與直覺的勇氣,你的內心與直覺多少已經知道你真正想要成為什麼樣的人,任何其他事物都是次要的。 http://birdchan.com/home/2011/10/06/stay-hungry-stay-foolish/

February 12, 2013 · 1 min · birdchan

Wells Fargo foreign currency exchange sucks

Being a longer than 10 years loyal wells fargo customer, I decided to do a currency exchange there, believing I would get a pretty good rate. Well… here is what I got. table.my_table { border-collapse:collapse; border: 1px solid black; margin: 10px auto; } th.my_th, td.my_td{ border: 1px solid black; padding: 2px 5px; text-align: center; } CurrencyUSDWF Foreign AmountReal AmountDeltaDelta %RMB100057606232.5472.57.58HKD100073407755.4415.45.36 See the numbers? During the transaction I lost 7.58% in RMB and 5.36% in HKD. If you even the two out, that’s a total 6.47% loss. Yea, so if you give Wells Fargo $1000, in exchange you will lose $64.7, all completed silently. ...

February 8, 2013 · 1 min · birdchan

Excel to JSON

Here is my little side project to convert excel files to json objects. I mainly used the Google App Engine and the Python xlrd module. Feel free to try it out at http://excel2json.appspot.com/. curl -F f=@my_file.xls http://excel2json.appspot.com/2json All you need is just one line of code!

February 7, 2013 · 1 min · birdchan

Working with Excel files in Python

The libraries needed are: xlutils, xlrd and xlwt. They are all under the package called xlutils. So just issue the following command. sudo pip install xlutils To verify: localhost:~ birdchan$ python Python 2.7.2 (default, Jun 16 2012, 12:38:40) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import xlutils >>> Should have no error messages.

February 6, 2013 · 1 min · birdchan

The 5 rules of happy employees

Excerpt from Secrets Of America’s Happiest Companies. Happy employees don’t stay in one role for too long. Movement and the perception of improvement create satisfaction. Status quo, on the other hand, creates burnout. There is a strong correlation between happiness and meaning; having a meaningful impact on the world around you is actually a better predictor of happiness than many other things you think will make you happy. A workplace is far likelier to be a happy place when policies are in place to ensure that people regularly get acknowledgement and praise for a job well done. ...

February 1, 2013 · 1 min · birdchan

Slow wake up time on osx

My macbook pro has been slow on waking up. I noticed because it sometimes “hibernated” (borrowed from window). After a little googling I found out that the time-to-hibernate time on my system was only 70 mins. So if I close my lid for longer than 70 mins, the deep sleep will occur. To verify, issue the following command on a terminal. pmset -g You will see something like the following ...

January 31, 2013 · 1 min · birdchan

Need a quick text editor?

Just learned this trick from here. If you want to quickly get a text editor on any system, just type data:text/html, in your browser’s url bar. Click the following link to get a bare text editor in your browser, and start typing! ;) Open a text editor document.getElementById(‘my_text_editor_link’).href = ‘data:text/html, ‘; It’s pretty much like a rich-text editor, with the usual copy&paste. And in the end, you can even save the file as an html file. ...

January 30, 2013 · 1 min · birdchan

Comcast down?

This happened to me last night. All of a sudden I lost internet connection. After checking everything possible on my laptop, I moved onto checking up on my router. And after checking everything on my dd-wrt, I ran out of things to check. Then I realized maybe comcast was down. I then quickly grabbed my phone (thanks to 4G) and checked, sure enough it was comcast. Here is the page to check for your comcast status. You will need to login using your comcast user/pass. ...

January 30, 2013 · 1 min · birdchan

iPhone 5 vs Galaxy S3

Now that I have used both, my feeling is mixed. I recommend to watch these two videos so you will have a good idea what are the major differences between the iphone5 and the S3. It’s true that some of those reasons illustrated in the videos may not concern you, but I bet you will find a few features that are directly related to how you use your smart phone. Have an open mind and enjoy the show! ;) ...

January 30, 2013 · 1 min · birdchan

Transfering your contacts from iphone to android

I found this method with my osx and gmail. Keep reading if this applies to you. 1. Sync all your contacts from your iphone to osx’s Contact. You can do so by using iTunes or iCloud. 2. Export your contacts to vCards. Open up your Contacts application on osx, then scroll and make sure you got all your contacts. Then do a select-all, then file->export->export vCard. This vCard file will contain all your contacts. 3. Import to your gmail. Now log into your gmail account. Then click on the Gmail dropdown on the top left hand corner to get to Contacts. Then click on “More”, then “import”. Then you should have all your contacts there after importing. 4. Clean up. Now you may end up with lots of duplicates. Now click on “More”, then “find and merge duplicates”. This will help you merge most of the duplicates. 5. Now, go to your android phone and sync with your google account. You will then see your contact list there. ...

January 28, 2013 · 1 min · birdchan