xhuang
Re:Vim-powerline: The ultimate vim statusline utility
on Thursday January 12, 2012 @05:56PM (#3458347)
How did you do that? the doc said there is a $branch variable, how do you add it?
Re:NASA finds water reservoir equivalent to 140 trillion times the wor...
on Saturday July 23, 2011 @06:21PM (#2797994)
isn't it also means there was that much water xx billion light years ago, it could be all gone now!
Re:JavaScript Visualization of Sorting Algorithms
on Thursday March 10, 2011 @06:54PM (#2311338)
nice one, the bogo is amazing :)
Re:Which one will execute faster, if(flag==0) or if(0==flag)?
on Saturday January 08, 2011 @05:53AM (#2082826)
I think PHP allow assignment in 'if'
Re:Google's library for dealing with phone numbers (Java/JavaScript)
on Wednesday January 05, 2011 @07:32PM (#2073259)
someone need to invent a html tag for that :)
Re:How to hide thinking at work so that the non-programmers don't susp...
on Tuesday December 28, 2010 @09:53AM (#2045587)
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.
Re:Let's Make a JavaScript Framework: Free eBook
on Thursday December 02, 2010 @06:50PM (#1964184)
great resources
Re:Some powerful commands for Linux
on Sunday November 28, 2010 @04:50AM (#1947080)
the command go with pushd is popd,which pop the last path you pushed into the queue.
Re:⌘Q is too damn close to ⌘W
on Tuesday November 09, 2010 @05:57AM (#1886064)
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...
Re:JQuery Blueprint - a js templating framework in just 30 lines of code.
on Monday September 20, 2010 @10:58AM (#1709037)
gist: replace
Re:Ask HN: How does Mint.com work?
on Thursday July 22, 2010 @10:04AM (#1538118)
ironically you can just grep it:)
curl -d "username=foo&password=bar" https://yourbank.com | grep balance
Re:Calculating Color Contrast for Legible Text in Ruby
on Monday July 19, 2010 @06:08AM (#1528131)
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"
Re:Nginx directly to mysql. 3 - 4 times as fast as php + libmysql
on Monday June 21, 2010 @06:59PM (#1450364)
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.
Re:How many lines of code does it take to create the Android OS
on Monday May 24, 2010 @06:19AM (#1374256)
i think it should be a phpinfo()
<?php
phpinfo();
?>
Re:Play PacMan at google.com Now.
on Friday May 21, 2010 @11:42AM (#1367664)
thanks, just wondering what tools did you use to reformat it?
Re:Our solar system - A Webkit Animation using CSS3
on Friday May 21, 2010 @09:24AM (#1367231)
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).
Re:TryClojure - Browser based Clojure REPL
on Tuesday May 11, 2010 @07:15AM (#1337472)
this is very good idea, but the design of the page make me want to close the window - it hurt my eyes.
Re:Functional Programming with Python – Part 1
on Tuesday February 23, 2010 @07:11PM (#1146859)
quality post!
Re:Google Interview Questions
on Wednesday February 17, 2010 @07:24AM (#1131368)
just wondering for this question("how strong is an egg"), i think binary search will be the minimum tries, so its quite useful.
Re:Choosing The Best CSS Framework: A Complete Guide
on Monday February 08, 2010 @11:48AM (#1110050)
blueprint is awesome, it comes with bulit-in typography and you can also have plugins
Re:Tell HN: My side project, Startup Wiki
on Wednesday February 03, 2010 @03:43PM (#1098810)
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:(.
Re:Tips for a new Django developer
on Friday January 29, 2010 @06:12AM (#1086219)
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:)
Re:How would you serve 100,000 simultaneous comet requests with Node.js?
on Thursday January 21, 2010 @05:10AM (#1066995)
if you not using comet, strophe.js is very good JS client library for xmpp.
Re:I Have No Talent
on Tuesday January 12, 2010 @03:57PM (#1048508)
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
Re:Web Sockets in Tornado
on Thursday December 31, 2009 @04:11PM (#1024985)
good work, can't wait all mainstream browsers support websocket, polling sucks!
Re:HackerPolls: my mini project for visualizing HN Polls
on Tuesday December 29, 2009 @08:20PM (#1021712)
i think the update link on the status line can be use to get poll result at the moment
Re:Ejabberd 2.1.0 released.
on Friday November 13, 2009 @06:53PM (#941115)
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)
Re:Tell HN: The 2 best things I love about HN
on Sunday August 16, 2009 @05:55AM (#765926)
people in here give motivation start my own startup
Re:Poll: YC Startups, do you use Django, Rails, PHP or Other?
on Sunday August 09, 2009 @05:27AM (#750568)
kohana, from my 3 weeks epxeriences, its pretty lightweight and provide most of the features that django provide.
Re:For Today’s Graduate, Just One Word: Statistics
on Thursday August 06, 2009 @11:13AM (#745634)
this article make statustics really cool, i want to learn it now, anyone know how hard could it be?