Better HN
topnewbestaskshowjobs
Log inSign up

mihasya

126 karma · joined Jun 21, 2008 (18y ago) · 50 submissions

Submissions

1.

Graceful stopping in Go(rcrowley.org ↗)

52 points · by mihasya · 13y ago · 2 comments

comment 15y ago · link · parent

The lady doth protest too much, no? The guy is using Redis as a buffer to what ultimately ends up just being a central log file. You know. rsyslog. None of the fancy things you have in mind. Which brings me to the same point someone's already made: using Redis buys you nothing, even if you had a more involved use case in mind.

Saying that he can do something by subscribing to an event in Redis is sorta silly, isn't it? You could just as easily tail the logs, as many systems actually built for this purpose do. Once again, there are already things in *nix for this.

The reality is, this is a janky, nubile solution to an already well-solved problem that is now getting thousands of views because of HN and antirez tweeting about it. Instead of learning the correct way of doing things, I bet a bunch of inexperienced developers are now going to say "BOY THIS IS SWELL" and cut themselves a nice fat chunk of technical debt for the not-that-far-off future.

comment 15y ago · link · parent

woot can't wait to play with this

Edit: err I should probably add more substance than that.. one less thing to keep track of and have to set up when getting into config management = win

comment 15y ago · link · parent

;)

comment 15y ago · link · parent

Do you have some benchmarks handy that indicate that CentOS or RHEL are more performant than Ubuntu?

comment 15y ago · link · parent

So Canonical, a distribution maker, is not to be trusted for their kernel suggestions, but Amazon is infallible? On what basis?

We asked the Amazon kernel team if we should try switching to one of their kernels/distros, and they said "No, just upgrade to Maverick and the accompanying kernel." It's been pointed out that Maverick has its own set of Xen bugs. I guess Amazon doesn't know everything.

The horse you're getting on about using the "proven" Amazon kernels is a bit high. Turns out this whole virtualization thing is somewhat new, and the kinks are still being worked out. Old kernel builds don't work particularly well because a lot of their assumptions are broken by virtualization; new kernels are what they are - new.

(Edit, forgot initially): Finally, we ran 10.04 - the Long Term Support release of Ubuntu from a year ago. There was no "because we can."

Frankly, I'm a bit amazed at your disdain for people sharing their findings from practical experience running into these issues in high-load production environments.

comment 15y ago · link · parent

What is your recommendation?

comment 15y ago · link · parent

You're neglecting the fact that which distro you choose has a large influence on the kernel version you get to run. With the amount of work going into stabilizing the kernel when running in a virtualized environment, chaining yourself to a slow-moving distro will cause the exact opposite of stability when running on Xen. See: this blog post.

comment 15y ago · link · parent

We ran into what we believe to be this very problem at SimpleGeo and spent a long time figuring out what the cause of the JVM locking up for tens of minutes at a time were; we believe this bug (or general class of bugs) to be responsible. Upgrading to 10.10 has caused the majority of the symptoms to disappear.

My personal hunch is that there are probably startups and developers that dumped Cassandra due to "stability issues," which were in reality symptoms of this bug. There's obviously no way of confirming or denying this, so I'll reiterate that it's just a hunch.

comment 15y ago · link · parent

think you're viewing my statement out of the necessary context..

comment 15y ago · link · parent

The implication is that the people for whom eventual consistency is not an option will never reach a data set size or availability requirement that'll require them to use replication and experience the lag (and eventual consistency) involved.

comment 16y ago · link · parent

I think any serious infrastructure is going to need a cross-language, cross package manager entity that just lines everything up. I've run into the problem with pip on ubuntu where it puts something in the requirements file, but that thing isn't actually in pypi but was installed by apt or worse, if I generated the requirements file on my mac, macports.

I think more examples of how proper config management tools make that sort of clusterfuck manageable would go a long way towards convincing people that if you're expecting your product to have any longevity, you have to pay attention to this stuff and do it right.

comment 17y ago · link · parent

That's in case the battery goes boom. The bend at the bottom is an absolute dealbreaker for me.

comment 17y ago · link · parent

a/s/l?

it's threads like these that will forever keep me from accumulating any karma on here.

comment 17y ago · link · parent

How is using hash passwords "a lot of extra work"? Seriously, what part of that is a lot of work? The password reset feature?

comment 17y ago · link · parent

Why of course. You can come stay in the closet of my studio apartment. I'll feed you and clothe you until we can find just the right opportunity for your brilliant mind!

I know we're supposed to be "nice," but this is absurd. Go back to school and NEVER say about yourself that you are "dashing" or "charming" - no matter how tongue-in-cheek you try to make it sound, you just come off sounding like the exact opposite.

Upon reading more of your responses, I'm further convinced that you should stay where you are. Nobody cares about your fancy "cross flights." Right now is certainly not the time to abandon everything and come to California.

comment 17y ago · link · parent

I like that... I'll have to see if there's a way to locate the stops short of just maintaining a database. I'll also need to be careful with browser detection - I don't want to be loading a Google map on an edge connection. I'm trying to walk a fine line with having a nice user experience and making it usable on ANY mobile device.

comment 17y ago · link · parent

Upon my moving to the US in 98, some kids at my middle school found out the hard way that that is certainly not a universal rule.

I certainly do think that hackers are more prone to being inept at social situations (and when I say "social" I don't mean social as in "social network," I mean real interpersonal contact). Since bullying is a kind of social situation, I could totally see how the aforementioned ineptitude could lead to not knowing how to deal with bullies. That's why it's important to have other stuff going on in your life beyond hackery. Sports, sex, parties, music - SOMETHING.

comment 17y ago · link · parent

Well, at least at this phase, I'm solving the very specific problem (dogfooding like crazy here, btw) of having a very set routine that can involve N number of busses where N > 1. Instead of having to look up departure times for each bus individually, you just set a bookmark. Now every morning, I just click "To Shuttle" and have everything I need to know.

Stuff like directions is already handled by Google Maps, though I realize that's not available on all phones.

comment 17y ago · link · parent

Hmmm I guess if you submit a link, the "text" field gets ignored.

It uses Django and the App Engine. Data is just a scrape of nextbus.com.

The write up is here: http://mihasya.com/blog/?p=203

Code is here: http://github.com/mihasya/yourmuni

comment 17y ago · link · parent

Yeah, but it works on most other phones its been tried on (limited audience so far, but I know it works well on the G1, as well as on some basic browser phones with small screens)

By the way: any feedback as to how it looks on non-smart phones + screenshots would be really appreciated.

22.

Critique My App: yourmuni for easier bus riding in SF and soon other places(yourmuni.appspot.com ↗)

1 points · by mihasya · 17y ago · 7 comments

comment 17y ago · link · parent

All of the big silicon valley companies claim to be "flat." When I started at Yahoo!, all I heard about was how flat the organization was. Doesn't mean it's true.

comment 17y ago · link · parent

GASP A JOB AT GOOGLE IS A JOB?!!!

comment 17y ago · link · parent

I'll download and play with it the moment I don't have to register to do so...

comment 17y ago · link · parent

I'm not entirely sure why the company is being so sheepish... nothing that was described sounds illegal or really that unethical... The CEO's statement is also clearly bullshit - they knew what they were doing, and are only back pedaling because they got caught.

comment 17y ago · link · parent

Dude needs a blog. Microblogging seems like the wrong medium to tell a full on story...

comment 17y ago · link · parent

Middle click FTW!

comment 17y ago · link · parent

It would be extra magical if you actually aggregated tweets by link, so that it only showed up as one "link", but you could see what everyone posted along with it.
12