HNHacker News
TopNewBestAskShowJobs

hsiung

47 karma · joined April 16, 2007

submissionscomments
hsiung··on TheSixtyOne (YC W09) Is Building a Digg For Indie Music
I think you're on the home page. For an example, you can see my personal tag playlist named 'mellow':

http://www.thesixtyone.com/tags/song/show/sam/mellow/

Or go to your profile and click on the tags that appear to your right.

hsiung··on How FriendFeed uses MySQL to store schema-less data
If the site isn't taken down during an update, some parts of it will always be broken during a schema migration since our ORM expects each table corresponding to a data model to be in sync after a code update. I guess you could always version your data models and handle the pre-upgrade and post-upgrade cases, but that seems like a lot of work in our situation.
hsiung··on How FriendFeed uses MySQL to store schema-less data
Actually we're on postgres... It just makes me nervous when the migration is taking upwards of 10 minutes to complete since some of our tables have millions of rows and lots of concurrent read/writes are happening.
hsiung··on How FriendFeed uses MySQL to store schema-less data
That's reassuring, I thought I was the only crazy fool who was storing json objects in database columns =). We do something similar for some of our data models at thesixtyone.com. It's really nice for not having to bring down the site for schema upgrades.
hsiung··on Is TheSixtyOne a YC Startup?
If you have an account, you can access your recently played history by going to your profile and then hitting the music tab. We're also working on an easier way to access your play history from the mini-player at the bottom left.
hsiung··on Where Google AppEngine beats AWS
One killer for me is that GAE doesn't support running scripts outside of web requests. Webapps need cronjobs to do things like sync or cleanup data, populate news feeds, perform analytics etc.
hsiung··on Why you shoud never use your favorite password on News.YCombinator.com
You store the password hashed with a salt in the database (just keep track of the salt you used). The server can send the salt to the client, in addition to the random number. So the client is performing two hashes: md5(md5(password+salt)+random_token).
hsiung··on Why you shoud never use your favorite password on News.YCombinator.com
There are still ways to add a little extra security for non-ssl logins. One way is by hashing the password via javascript with a random number provided by the server before posting it via HTTP. (see http://pajhome.org.uk/crypt/md5/auth.html)
hsiung··on EC2 now offering "High-CPU" VM (2-8 core) instances
As a web app developer, I've found memory to be the greatest bottleneck for both web and database servers. But this will no doubt be useful for sites like animoto that need to do a lot of offline processing.
hsiung··on JavaScript lib to make IE behave like a standards-compliant browser
Seems like this script does a top level document search for nodes to apply it's PNG fix. This can really hurt performance for sites that have complicated layouts. Sometimes it's best just manually code your own png fix solutions (fix exactly the image and div nodes you need for each page, rather than conducting a document.getElementsByTagName.. sweep)
hsiung··on Rails and Django comparison whitepaper
Let me get this straight. So you would choose the framework with slightly better plugin support and larger community even if it meant it was three times slower and consumed twice as much memory? If you have deep pockets and have no adversion to unnecessarily managing huge server farms, then go ahead.

I've presided over two rails websites in the past and topping out at around 15req/s on average was not fun. Rewriting to Django and getting 45req/s and less memory usage was definitely worth it. (I'd rate my development experience in other areas to be about equal)

hsiung··on Rails and Django comparison whitepaper
Haven't read the whole thing over, but they make no mention of performance comparisons in the conclusion. How could you miss that!
hsiung··on Discover New Music - MMOG Written In Django
This issue should be fixed now (I was able to reproduce the bug after installing the debugging libraries that come with flex.)
hsiung··on Discover New Music - MMOG Written In Django
The sound doesn't play in Ubuntu for some reason. That's something we're trying to fix. You should be able to watch videos however.
hsiung··on Discover New Music - MMOG Written In Django
Hi. Thanks for finding our startup :)
hsiung··on Rails vs. Django
jesusphreak has a pretty good writeup that's worth reading on the pros of using django: http://jesusphreak.infogami.com/blog/why_django

Having come from a rails background and later switching to django I think it comes down to a matter of preference. Django's ORM gets the job done but leaves something to be desired (ugly syntax, no multiple database support, also watch out for implicit cascading deletes!). Conversion to using SQLAlchemy was supposed to address the gaps, but the branch for the upgrade seems pretty dead... But overall I'm pretty happy due to the transparency of django's framework code. I've implemented some customizations that would have been a lot harder to pull off in rails.

If you had to choose a python web framework, I'd suggest taking a look at pylons which is more flexible (also, by default it uses mako templating which > django's templating and supports SQLAlchemy).

hsiung··on YC startup launches: Project Wedding
Well, ProjectWedding.com was designed by women and it is steadily growing (it currently receives 10,000 page views a day from northern california bride-to-bes).

It's assumptions like yours about theknot.com's monopoly which make this "project" (pun intended) particularly enticing :)