HNHacker News
TopNewBestAskShowJobs

xhuang

12 karma · joined August 6, 2009

My name is vito - http://www.vitohuang.com http://hnofficehours.com/profile/xhuang/
submissionscomments
xhuang··on Vim-powerline: The ultimate vim statusline utility
How did you do that? the doc said there is a $branch variable, how do you add it?
xhuang··on NASA finds water reservoir equivalent to 140 trillion times the world's oceans
isn't it also means there was that much water xx billion light years ago, it could be all gone now!
xhuang··on JavaScript Visualization of Sorting Algorithms
nice one, the bogo is amazing :)
xhuang··on Which one will execute faster, if(flag==0) or if(0==flag)?
I think PHP allow assignment in 'if'
xhuang··on Google's library for dealing with phone numbers (Java/JavaScript)
someone need to invent a html tag for that :)
xhuang··on How to hide thinking at work so that the non-programmers don't suspect slacking
There is a JAVA version of reddit at http://www.codereddit.com Normally I use eclipse's internal browser to read it along side my normal code, no one ever notices it

I wish there is a version for HN.

xhuang··on Let's Make a JavaScript Framework: Free eBook
great resources
xhuang··on Some powerful commands for Linux
the command go with pushd is popd,which pop the last path you pushed into the queue.
xhuang··on ⌘Q is too damn close to ⌘W
why not use sessioin buddy[0] plugin, which save your tabs, so you don't have to open 20+ all at once

[0] https://chrome.google.com/extensions/detail/edacconmaakjimmf...

xhuang··on JQuery Blueprint - a js templating framework in just 30 lines of code.
gist: replace
xhuang··on Ask HN: How does Mint.com work?
ironically you can just grep it:)

curl -d "username=foo&password=bar" https://yourbank.com | grep balance

xhuang··on Calculating Color Contrast for Legible Text in Ruby
This is ugly, but it should do the job:

"#000000" if sum([int(i,16) for i in re.findall("..",myColour)]) > 382.5 else "#ffffff"

xhuang··on Nginx directly to mysql. 3 - 4 times as fast as php + libmysql
removing high level language in the middle is good, if you need performance, why not just use redis to server json directly, in the case you need scale up your db why not use crunchDB.
xhuang··on How many lines of code does it take to create the Android OS
i think it should be a phpinfo() <?php phpinfo(); ?>
xhuang··on Play PacMan at google.com Now.
thanks, just wondering what tools did you use to reformat it?
xhuang··on Our solar system - A Webkit Animation using CSS3
i think you can change the border radius to get different shape out of your element box(top-left, top-right, bottom-left, bottom-right corners).

http://www.css3.info/preview/rounded-border/

xhuang··on TryClojure - Browser based Clojure REPL
this is very good idea, but the design of the page make me want to close the window - it hurt my eyes.
xhuang··on Functional Programming with Python – Part 1
quality post!
xhuang··on Google Interview Questions
just wondering for this question("how strong is an egg"), i think binary search will be the minimum tries, so its quite useful.
xhuang··on Choosing The Best CSS Framework: A Complete Guide
blueprint is awesome, it comes with bulit-in typography and you can also have plugins
xhuang··on Tell HN: My side project, Startup Wiki
nice and clean UI, i have used kohana php framework before, its very clean and easy to use, idea for side projects.

one thing i noticed is that you haven't have a customized 404 page(maybe you need to put your app in production mode:(.

xhuang··on Tips for a new Django developer
thanks for this, i just started django development couple days ago, and this is very useful.

another thing worth mention is that use generic view, it will save lots typing:)

xhuang··on How would you serve 100,000 simultaneous comet requests with Node.js?
if you not using comet, strophe.js is very good JS client library for xmpp.
xhuang··on I Have No Talent
great post, i thought i was the only one like that, sometimes i feel really stupid that i can't come up with a good solution for the problem, and in the end fail to do anything.

this really remind me: "Genius is one percent inspiration, ninety-nine percent perspiration" - Thomas Edison

xhuang··on Web Sockets in Tornado
good work, can't wait all mainstream browsers support websocket, polling sucks!
xhuang··on HackerPolls: my mini project for visualizing HN Polls
i think the update link on the status line can be use to get poll result at the moment
xhuang··on Ejabberd 2.1.0 released.
i new to this field, but i was thinking the same as well, since ejabberd support BOSH, then what's the point of having Punjab in there. (does anybody have an extensive documentation on how to implement it? from speeqe's setup instruction, it doesn't seems explain how to connect to a xmpp server)
xhuang··on Tell HN: The 2 best things I love about HN
people in here give motivation start my own startup
xhuang··on Poll: YC Startups, do you use Django, Rails, PHP or Other?
kohana, from my 3 weeks epxeriences, its pretty lightweight and provide most of the features that django provide.
xhuang··on For Today’s Graduate, Just One Word: Statistics
this article make statustics really cool, i want to learn it now, anyone know how hard could it be?