geeky · mobile

Chrome Mobile Emulation in Action

Get latest updates on chrome emulation Step 1 Open a regular website in Chrome. Step 2 Right click -> Inspect Element to bring up the develop tools. Step 3 Click on the settings Icon Verify the mobile emulation is turned on under Appearances Step 4 Either hit the ESC button or this little icon to… Continue reading Chrome Mobile Emulation in Action

geeky · javascript

Screen scraping census baby name data with nodeJs, cheerio(jQuery) and promises

—->My Soure Code<—- Goal Screen scrape census baby names data for the 51 states and produce a single CSV file. These data are in html table via sites such as http://www.ssa.gov/cgi-bin/namesbystate.cgi post {state: ‘AL’, year: 2012} http://www.ssa.gov/cgi-bin/namesbystate.cgi post {state: ‘AK’, year: 2012} http://www.ssa.gov/cgi-bin/namesbystate.cgi post {state: ‘CA’, year: 2012} …. Script must translate all of the… Continue reading Screen scraping census baby name data with nodeJs, cheerio(jQuery) and promises

personal · quotes

How to Help Others Without Compromising Yourself

1. You can’t help someone who is not taking responsibility for helping themselves. Sometimes, no matter how much you give, the other person doesn’t seem to meet you halfway. It seems like the more you try to help them, the more they stay the same, or worse, regress. Maybe they have become so used to… Continue reading How to Help Others Without Compromising Yourself

css · geeky · javascript

How I made tiny carousel swipeable

On parents.com, we previously used the jquery plugin tiny carousel to display various lists of links mostly used to track pregnancy month/week: For example: The concept is easy. You have a list of items that you want to scroll horizontally by using nav buttons. In our case, all of the content are lists of links.… Continue reading How I made tiny carousel swipeable

css · geeky

Making Semantic Elements Behave Like a Table

CSS has properties to make any element you wish behave as if it was a table element. You’ll need to structure them essentially as you would a table, and it will be subject to the same source-order-dependency as a table, but you can do it. I’m not crapping on it either, it’s genuinely useful sometimes.… Continue reading Making Semantic Elements Behave Like a Table

chinese · love n family · personal

再看《滚滚红尘》

第一次看《滚滚红尘》时很小,还不懂什么叫少女情怀。三十出头再看心中别是滋味。在美国这么多年,但少女时期的初恋还是用中文描述的。那时写了三年的可以叫作情书日记吧。每天对着比自己大十四岁的初恋情人写一篇日记。做梦的年代。叫做梦的年代因为那时随手写就是散文。万物一切都有感情。天天都有时间静下心来,倾听自己的心声。再看《滚滚红尘》唤醒了我的少女情怀。这种影片是不是美在它能捕捉并保存这种情怀呢?无论时代或历史都无法改变有诗的心灵。一种浪漫,一种幻想,一种美好,藏在心底无法抹杀。很多音乐都可以唤醒那种感觉。那种感觉能让时间停留。当我处在那种心境中,我觉得我从未长大。虽然我已经许多年没有碰琼瑶的书了,也不再看以前的日记。可有过的情怀没有丢弃。看琼瑶的时候,家长们都警告看这种书会中毒。看来这就是我的毒,一生的毒。