HNHacker News
TopNewBestAskShowJobs

dongsheng

184 karma · joined July 12, 2009

submissionscomments
dongsheng··on Git Tips
Another tip is adding all this to .gitconfig:

  [alias]
    b = branch
    co = checkout
    ci = commit
    st = status -sb
    diff = diff --word-diff
    l = log --graph --pretty=oneline --abbrev-commit --decorate
dongsheng··on Bash Shortcuts For Maximum Productivity
Thanks for pointing out that
dongsheng··on Bash Shortcuts For Maximum Productivity
I use `..` to go upper directory, `...` to go up two levels, I added this to bashrc:

  str='..'
  level='./../'
  for i in `seq 1 10`;
  do
      eval "alias '$str=cd $level'"
      level=$level'../'
    str=$str'.'
  done
Note, seq is not available in Mac, should use jot instead.
dongsheng··on A look at the inner workings of the Great Firewall of China
DNS Cache Poisoning is one method to perform censorship, however people could bypass it by distributing customized /etc/hosts file, when youtube and twitter were first blocked, it's widely used. Then ppl behind GFW realized that, they deployed keyword detection and IP blocking. Nowadays, to access "outside world" Chinese ppl have to use VPN or encrypted proxies.
dongsheng··on Show HN: Smozzy (for Android/T-Mobile) - browse the web without a data plan
This is punishing mobile carriers instead of enjoying surfing web :-)
dongsheng··on Vim Cheat Sheet - For Programmers By Programmers
Very well made cheat sheet, but will it scare the new VIMers? I was using http://www.viemu.com/vi-vim-dvorak-cheat-sheet.gif when I started.
dongsheng··on Google to announce "new programming language for structured web programming"
Go is to compete with cpp/c#, it slowly growing, lately it's available on google app engine
dongsheng··on Git Is Simpler Than You Think
There true, it's hard to transform the concept in SVN/CVS to git world.

I remember when I was migrating from CVS to git, it's ok to understand cvs update is git fetch & git merge now, committing is the same, additionally I need to push the commits to share with co-workers. The hardest part to understand rebasing and branch management. But it worth to learn all these concepts, it make version control more flexible. It's pretty cool to use git reset and git push -f to modify the commits history (make sure you know what you are doing).

dongsheng··on Introducing Spaces - A Micro-chat platform.
It would be interesting to have a chat room called /nearby/, so can easily bored people to chat with.
dongsheng··on If this then that
I really like the idea of ifttt, it's like the pipeline for web, the problem of this service is the latency is unbearable. I created a few tasks to notify me the rss updates, it may takes more than 30 mins to send me the notification through jabber, I use notify.me as well, it always comes first.
dongsheng··on Baidu forks Android to introduce its own mobile OS for China
I reckon it's not fair to compare Xiao Mi with Baidu, baidu is an evil company with evil history, they sort the search results based on how much clients would like to pay, similar with AdSense, but the ad supported results are blended with normal search results without indication. A year back they even publish fake medicines in search results.

This is one of the story: http://www.forbes.com/sites/ericsavitz/2011/08/16/baidu-slid...

Baidu no longer a startup company, they control the search engine market in china, ordinary people don't have the concept of search engine, baidu it is...

dongsheng··on Poll: Your preferred method for coding on a remote server?
Similar here, I set up a git hook to detect commit message, if 'deploy' appears, then push the branch to live server.
dongsheng··on Poll: Do you use Google Reader on a daily basis?
Woo, it looks awesome
dongsheng··on Test whether any website is blocked in China in real-time
That page triggered keyword filter, it's intrusion detection system
dongsheng··on Test whether any website is blocked in China in real-time
plus.google.com is blocked already! That's quick
dongsheng··on DotCloud Pricing Announced
Woo, thanks for the candy :-)
dongsheng··on Most Australians will have their web access censored as of next month
I moved to Australia 4 years ago from China, uncensored internet is one of the best thing I have here, in China, government monitor everything on internet, and block plenty websites regarding politics and free speech etc, basically, government block anything they don't like, even the websites they not sure about. I wish the internet won't be that bad in Australia.
dongsheng··on “Stop Spam, Draw Shapes”
Excellent work! reCAPTCHA is rather unfriendly to non-English users.
dongsheng··on How i became a developer from coal miner?
Off topic but in Australia coal miner is not a too bad job, miners earn much more than software dev, and of course, it's a much tougher job.
dongsheng··on Mac OS X Lion: Coming In July For $29
Oh come on apple now we have to do everything through your stores?
dongsheng··on Apple to unveil iCloud Monday, June 6
Is there any chance to have the free email account?
dongsheng··on "The Best of edw519" is now free. Reverse Happy Birthday
Thanks! Reading this book at the moment, seems I missed a lot of good stuff since I signed up :-)
← PreviousPage 2 of 2