HNHacker News
TopNewBestAskShowJobs

shuzchen

1,391 karma · joined October 24, 2009

Entreprenurial minded developer, heavily invested in social good projects and current working in open source.
submissionscomments
shuzchen··on Breaking Hacker News's CSRF Protections
More specifically, it's protecting your site from other sites taking advantage of the fact that you're already logged in. For example, in the absence of CSRF, if you're logged into HN, any other site could just embed a form element using the right input IDs, and make submissions on your behalf (clicked on this link? just made a post on your behalf. moved your mouse a little to the left? just upvoted this post).

The "hack" outlined in the article requires knowing the username and password of the person you want to "hack". Of course CSRF tokens don't protect you when your credentials are lost.

shuzchen··on Loom (YC W12) Launching Cloud Storage for Photos and Videos
Looks interesting, but I'm already a customer of smugmug, and they're claiming they're launching something innovative at the end of the month. That said, I wouldn't be adverse to jumping ship if this offering ends up being better.
shuzchen··on Poll: What do you use for Unix process management/monitoring?
Update the supervisor config file and reread/update? Not as nice as doing it from the library though.
shuzchen··on Poll: What do you use for Unix process management/monitoring?
Circus is still pretty new and rough around the edges, so I haven't totally moved away from supervisord yet. My foray there is mostly exploratory, trying to get used to it and its quirks before really diving into a comparison between the two.

That said, the ability to manage sockets sounds very interesting, hopefully simplifying my stack even more (my current use case is in getting the most performance out of a small VPS, so removing things from the stack would hopefully clear up RAM for actual web workers). I've been running a small site using nginx->circus->chaussette->django and it's faster (and was simpler to configure) than my standard nginx->supervisord->uwsgi->django deployment.

Also, supervisord isn't without its issues, and one of them is managing processes at scale (see https://github.com/Supervisor/supervisor/issues/26, that bug is 2 years in the making). Circus at least claims they intend to support thousands (via http://circus.readthedocs.org/en/0.9.2/rationale/) so I'd be interested in seeing what they bring to the table on that front.

shuzchen··on Poll: What do you use for Unix process management/monitoring?
I've been using supervisord for most everything (doesn't hurt that I'm primarily a python guy), but I'm slowly testing out Mozilla's circus (https://github.com/mozilla-services/circus) and it's been going great so far.
shuzchen··on Cloud server showdown: Amazon AWS EC2 vs. Linode vs. DigitalOcean
I've used Rackspace cloud both when it used to be called Slicehost and after the full transition to the Rackspace brand. In my experience past and present, you get a better deal dollar for dollar with Linode (better disk, network, and cpu performance). Personally, the only reason I'd use Rackspace cloud would be as a part of their hybrid offering.
shuzchen··on On Medium
Bit.ly is also useful in that you can use the same link across the web and have analytics all in one place. Otherwise you'd need to check medium to track links you posted there, and some other site for links from there etc.
shuzchen··on Perl::Critic - Automatically review your code
Inspired by this I wrote https://bitbucket.org/sirpengi/php.critic
shuzchen··on #CancelNetflix: It's time to fight DRM with your wallet
The DRM is meant to prevent you from (easily) capturing the stream in order to make copies and give to all your friends who haven't paid and aren't logged in.
shuzchen··on #CancelNetflix: It's time to fight DRM with your wallet
I accept Netflix and Steam over cable/movie theaters/gamestop the same way I accept nuclear power (over burning fossil fuels). They are really the only solutions that have any non-zero chance of succeeding in our present day economic/political environment.

Sure, they have their downsides and there are way better solutions that one can envision, and they are light years better than the things they are meant to replace and our world isn't ready yet for the better alternatives.

shuzchen··on My Song Got Played On Pandora 1 Million Times and All I Got Was $16.89
My argument is trying to judge Pandora in the same way as radio, in that the number of plays as counted on Pandora reaches far less people than the number of plays as counted on radio. What the artist wants is to be paid for every person that listens to their song right?

So when you say "Only if you claim every radio has an average of one listener by this methodology as well", I think you misunderstand the core problem, which is that the article compares stats that aren't equivalent.

The issue is in how these listens are counted. So yes, you can pretty much claim every Pandora device has an average of one listener. Users of Pandora have their own personalized streams, and every time a song is played on a person's stream, it's counted as 1 play, and is heard by 1 person.

In contrast, radio stations have one stream that many many people listen to. When a radio station broadcasts a song once it's counted as 1 play even though that song is received by X radio-receivers and heard by X people (where X is the reach that station has, for example, 150k).

The issue is the article compares plays on Pandora (where each play as counted reaches 1 listener on average) to plays on radio (where each play as counted reaches upwards of 150k listeners).

shuzchen··on Pandora Paid Over $1,300 for 1 Million Plays
That's not an analogous situation. When you buy a Honda Fit, you selected it specifically at the dealership (down to choosing the color and possibly extra add-ons like GPS, smart-key, etc), agreed on a sum of money to exchange and then took ownership of it and drove it home. When you listen to a song on Pandora, it's likely that you've never heard of that song (or even the artist) before. Combine this with the feature that lets you purchase the song (or album it came from), and it's not a far stretch to view of plays on Pandora as advertisement to the benefit of the artists.
shuzchen··on My Song Got Played On Pandora 1 Million Times and All I Got Was $16.89
If you follow the links he provides they have actual market data on how many listeners any given radio station has, so his numbers have that behind it. Also, it's not that 1% of people listen to a popular radio station 24 hours a day, it's that at any given point in time, an average of 1% of the population are tuned in to that station.

I'd say the Pandora 1 track per customer is a safe assumption. Sure, I've known cafes and dinner parties where Pandora was streaming to multiple people at once, but I've also known lots of friends who have Pandora playing on their headphones even when their headphones aren't on their heads. Nobody I know who uses Pandora actively pauses it every time they leave their computers, so I expect it washes out in the end.

shuzchen··on Celery - Distributed Task Queue
You definitely can use celery with sqlite via the sqlalchemy backend, but since rdbms' aren't very good task queues there are drawbacks: see http://docs.celeryproject.org/en/latest/getting-started/brok...
shuzchen··on Mobile app startups are failing like it’s 1999 (2012)
Considering you have to go through the app store approval process every time you push an update out (so sitting in queue for a week even for bug fixes), building for web or android first gives you much more agility.
shuzchen··on Poll: What Language would/do you use to build a web application
There are a ton of large web apps done in python. Youtube, disqus, bitbucket, The Onion, some mozilla properties, instagram are the examples that come to my mind. A simple google search would probably result in surfacing many more - see http://stackoverflow.com/questions/886221/does-django-scale
shuzchen··on "Microsoft engineer" on Xbox1
While I don't love that Steam has DRM, I don't hate their version of it either. What MS says they'll do (and what they'll probably end up doing) is nowhere close to what Valve has done. Valve has a history of listening to its customers about legitimate pain points with their DRM. Case in point: military personnel stationed abroad don't have the internet connection available to phone home every time they want to play a game, so Valve introduces an offline mode - authorize once before you deploy and freely play on that machine without an internet connection. Combine that with the fact that their DRM servers are pretty rock solid (I'm sure people have had problems with it but I've never encountered them in the years I've used steam) and the Gabe promise to unlock DRM if anything happens to Steam, and you get a lot of people comfortable trusting their game library to Steam.
shuzchen··on Snapchat, You've Made a Huge Mistake
Someone could write a horde of snapchat bots that'll spam you when you follow them (and a local client to chatter back), thus pushing your real "bestfriends" off the top list.
shuzchen··on Facebook is just fine
First of all, everything on FB is as public as the poster decides to make it. If you put in a tiny amount of effort, you can separate your friends into groups and have your posts by default only visible by a selected group of friends. (Funny thing is that when Google came out with circles for G+, the people who raved about it never realized the same feature was available at FB for ages. Granted, the circle metaphor and UI made the feature easier to use in G+, but the functionality was always there at FB). Really, the only privacy issue with FB is controlling what other people post about you (i.e., your friend takes a picture of you and posts it to their friends).

Secondly, I don't think anyone has claimed that they maintain a deep relationship using FB only. Like I mention in a nearby reply, having the constant superficial connection through FB strengthens the actual time spent together.

shuzchen··on Facebook is just fine
I agree with this and the OP - but in my case Facebook has brought me closer to the friends I see every weekend. I mean, not only in the group messaging and event planning in preparation for our weekly gatherings, but it also improves our time spent together. We no longer need to talk about shallow details (restaurants we've tried, things that happened at work, what the weather is like on that side of town) but more quickly get into deeper conversations (or, you know, the drinks and board games).

It's also worth noting that hiding has improved dramatically since it was first introduced. Now, you have more control over what gets hidden. For example, you can remove a "friend" from your feed but still get notified when they have a major update or life event (e.g. get married, move away). That way, you can get rid of the noise that person creates but not throw out the signal at the same time.

shuzchen··on Bitbucket passes one million users
One major thing that bitbucket does better: giving you information about a commit. It has side-by-side diffs, and while you're looking at a diff, you can expand the context easier. See a few lines have been modified but can't tell what method was modified? Click the ellipses and bitbucket will ajax in more context. In github, your only option is to go to the file itself and match up the line numbers from the diff (even worse, there are ellipses to click on, but it just jumps you to some random point in the page).

The only thing I miss in bitbucket from the github world are gists.

shuzchen··on Bitbucket passes one million users
See http://pages.bitbucket.org/ and https://confluence.atlassian.com/display/BITBUCKET/Publishin...
shuzchen··on Bitbucket passes one million users
Being an active user of both git and hg, I also can't think of any features I make extensive use of in git (rebase, feature branches, etc) that I can't get with hg. My workflows in both are pretty much the same, just a saner interface on the hg side. If anything, git doesn't have revsets, a really powerful query language you can use to sift through your history - see http://www.selenic.com/hg/help/revsets
shuzchen··on UnQLite - An Embeddable NoSQL Database Engine
Following the thread of building upon sqlite, Yelp (along with the fabulous mrjob library) also open-sourced sqlite3dbm (http://pythonhosted.org/sqlite3dbm/), which is a document store on top of sqlite. Python only (meant to give random-access data to your EMR jobs running with mrjob), but the same approach could be applied to any other language.
shuzchen··on Skype with care – Microsoft is reading everything you write
The URLs are being pinged by computers within Microsoft, so even if the filtering was only occurring on the client side (which I doubt) it still makes its way back to MS servers.
shuzchen··on Alternatives To Git Submodule: Git Subtree
Does guestrepo support non-hg guestrepos (as subrepos does)? My beef with git submodules is it only allows git.
shuzchen··on We Need A Standard Layered Image Format
Could you elaborate on what specific benefits using Matroska would have? One downside I can think of is that there are no programming environments (that I can think of) that ship a Matroska parser, whereas sqlite readers/writers are found in many standard libraries.
shuzchen··on We Need A Standard Layered Image Format
The author is looking for a container format capable of storing multiple image layers, and one that is capable of storing both vector and raster images.

So you could possibly argue that XML (a la SVG) is the right format to represent the vector files within that container, but it wouldn't be appropriate for the container file itself since binary data really bloats XML.

shuzchen··on Chunk Host Offering Free Hosting
I remember some time ago when chunk host first launched. They advertised that the service was "free during beta", when what they really meant was "free beta test" (more accurately: "free 30 day trial"). Since that blatant act of false advertisement I've never spoken well of this company to people looking for hosting. I don't expect they'll be any less scuzzy with this current deal.
shuzchen··on Ask HN: What IRC channels does everyone find interesting?
In general any public channel that reaches a critical mass eventually gets overwhelmed with noise/trolls/elitists. It really just takes a few bad eggs to ruin the experience for everybody.

That's just the nature of things though, it's hard to keep a handle on huge channels unless the channel ops are eternally vigilant. I was in #python some time ago, and there were good moments but there were lots of bad moments.

← PreviousPage 6 of 13Next →