Better HN
topnewbestaskshowjobs
Log inSign up

xhuang

12 karma · joined Aug 6, 2009 (17y ago) · 30 submissions

My name is vito - http://www.vitohuang.com http://hnofficehours.com/profile/xhuang/
Submissions

comment 14y ago · link · parent

How did you do that? the doc said there is a $branch variable, how do you add it?

comment 15y ago · link · parent

isn't it also means there was that much water xx billion light years ago, it could be all gone now!

comment 15y ago · link · parent

nice one, the bogo is amazing :)

comment 15y ago · link · parent

I think PHP allow assignment in 'if'

comment 15y ago · link · parent

someone need to invent a html tag for that :)

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

great resources

comment 16y ago · link · parent

the command go with pushd is popd,which pop the last path you pushed into the queue.

comment 16y ago · link · parent

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...

comment 16y ago · link · parent

gist: replace

comment 16y ago · link · parent

ironically you can just grep it:)

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

comment 16y ago · link · parent

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"

comment 16y ago · link · parent

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.

comment 16y ago · link · parent

i think it should be a phpinfo() <?php phpinfo(); ?>

comment 16y ago · link · parent

thanks, just wondering what tools did you use to reformat it?

comment 16y ago · link · parent

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/

comment 16y ago · link · parent

this is very good idea, but the design of the page make me want to close the window - it hurt my eyes.

comment 16y ago · link · parent

quality post!

comment 16y ago · link · parent

just wondering for this question("how strong is an egg"), i think binary search will be the minimum tries, so its quite useful.

comment 16y ago · link · parent

blueprint is awesome, it comes with bulit-in typography and you can also have plugins

comment 16y ago · link · parent

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:(.

comment 16y ago · link · parent

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:)

comment 16y ago · link · parent

if you not using comet, strophe.js is very good JS client library for xmpp.

comment 16y ago · link · parent

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

comment 16y ago · link · parent

good work, can't wait all mainstream browsers support websocket, polling sucks!

comment 16y ago · link · parent

i think the update link on the status line can be use to get poll result at the moment

comment 17y ago · link · parent

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)

comment 17y ago · link · parent

people in here give motivation start my own startup

comment 17y ago · link · parent

kohana, from my 3 weeks epxeriences, its pretty lightweight and provide most of the features that django provide.

comment 17y ago · link · parent

this article make statustics really cool, i want to learn it now, anyone know how hard could it be?