Better HN
topnewbestaskshowjobs
Log inSign up

willarson

287 karma · joined May 1, 2007 (19y ago) · 163 submissions

Interests: Scala (Lift), Python (PyObjC, Django), Java (Swing), Cocoa, Flow theory, Economics, Languages (Japanese, Spanish, French), Desktop Apps, Common Lisp (SBCL, Ltk).

Blog: www.lethain.com (handrolled in Django on a virtual server, sometimes it even works)

Email: lethain@gmail.com

Submissions

comment 19y ago · link · parent

EC2 could help avoid the cost of having dedicated servers to handle the potentially massive (and more likely extremely small) traffic from FaceBook. This wouldn't be too hard, just have one dedicated server and a box running a load balancer which would automatically spawn EC2 instances if the average load got too high (and kill them if they got too low).

Although its easy to outline this solution, I do think it would be difficult for a lone individual to develop their application along with maintaining the scaling aspects of it. Worse, I think that the Facebook platform is not a very rewarding venue to pursue for a small company, especially one that would be risking a meaningful portion of their funding on it.

comment 19y ago · link · parent

This doesn't have anything to do with Lisp. Depending on what they view as fulfilling, some people veer away from difficult problems regardless of the language they are writing in. Working in a "more fun" language like Lisp doesn't make you more likely to avoid doing hard work, nor does writing in a "less fun" language like Java increase your propensity to actually deal with the difficult segments. Its a matter of self-control, and is, unfortunately, an issue for programmers in every language.

comment 19y ago · link · parent

Web development requires small slices of dozens of skills. You need to be able to design web-pages (CSS, HTML, a personal design aesthetic). You need to be able to interface between your pages and your server (web frameworks ease the pain of this: Django (Python), Ruby On Rails (Ruby), Seaside (Squeak), Lift (Scala), and others in Scheme, Common Lisp, Java, etc). You (will probably) need to be able to add interactivity to your projects: javascript/ajax or Flash (or, theoretically, Silverlight). You will need to interact with databases to create persistent data (PostgreSQL, MySQL, SQLite), or at least learn how to use an ORM (object-relational mapping, used to create a simpler interface to interact with databases without using Structured Query Language).

If you are seriously devoted to developing a web applications, I would consider trying Django. It is a full development stack (it will help you with templates for your html, views to populate the templates, an ORM to control your database, etc), and I found it more intuitive than Ruby-on-Rails.

However, given the wide number of skills involved in web programming, I would strongly consider focusing on one aspect and becoming proficient at that. Specializing means you can more quickly become an asset (to a team), but will also develop skills you would need to develop anyway to develop quality web applications.

Although many web applications seem stupidly simple, there is still a huge amount of time and effort being spent invisibly: testing for cross-browser compliance, designing and building a system that scales horizontally, designing your website to appeal to customers, setting up your production hosting, cleaning and escaping all incoming data to prevent various security exploits, creating a caching framework to avoid hitting your database if possible (slow), designing your overall system to perform quickly, and the list never ends: there is always something else.

This is the joy of web programming, and also the reason that it is hard to do well. Don't be discouraged, just realize that it isn't simple, and get to work. :)

comment 19y ago · link · parent

Pretty disheartening story to read. One of the greatest frustrations with open source is that it, like all other human enterprises, eventually becomes a matter of politics.

Reading the article it seems like the requirements of desktops and servers are sufficiently different to deserve separate kernels. It certainly wasn't worth his time to keep working with the kernel developers if they refused to fairly examine his contributions.

comment 19y ago · link · parent

I am a slightly uncomfortable about all my data automatically being backed up over the internet, and also being accessible to me anywhere I go via the internet. This seems like a real potential security hole.

Its great that they are focusing on creating an environmentally sound computer, but its unfortunate that part of their strategy is buying carbon offsets.

comment 19y ago · link · parent

It seems like the biggest problem is that entered the financing company without a clear relationship defined, and that lack of definition seems like it created an abysmal working environment. I have to admit I am confused how the two developers are maintaining control over the web applications they developed for the company. Something seems a bit off there (they got paid for developing stuff, and then left taking the stuff with them?).

Bonus: The name of their company is "Paper-Rock-Scissors" in Japanese.

comment 19y ago · link · parent

I agree that seems kind of stiff, especially for a smaller company that is developing for the web. Getting Real is a quick (and free to read online) book by 37signals that helps focus on a very light development process http://getreal.37signals.com/ . Reading it might give you some material for suggesting ways to improve your company's workflow (and coming from a fairly credible source).

Many web startups have come to resemble the open source development pattern: release early, release often, don't plan too far into the future (your assumptions will probably change by then). I think these are all good ideas: you get feedback sooner from real users, which allows you to focus on providing functionality that your users actually want (or at least think they want).

In general I think the extreme programming propaganda has a lot of good advice, but I don't know if any large companies have successfully applied them to teams of more than 10-20 people.

comment 19y ago · link · parent

Solving that test is indeed pretty simple, I think its O(n^2) give or take. Even if it was n^3 the value of n is so low it isn't restrictive. The benefit is that it is relatively uncommon (not being targeted), and it is more difficult than the average captcha (less likely to be targeted). It is also resistant to brute force (many captchas have the answer to them included in the question, this one requires some parsing and solving, not simply trying words near the captcha randomly). This captcha is not perfect, but I think it is better than most current captchas, and it is deliver neutral (doesn't penalize the impaired). Thus it seems like a step in the right direction, but is not a final destination by any means.

By non-consistent UI I mean breaking the "Name, Email, Webpage, Body" paradigm. I think a good (although certainly harder to implement) example of this is http://www.djangobook.com/en/beta/chapter01/ . If you click on the little tabs/indexes on the side of the page a little comment box pops up that is relevant to the specific position. This UI is sufficiently different from a standard commenting system that a standard form filling spambot would be clueless. This is only an example, but perhaps it helps explain my idea of diversifying a bit. Other types of spam bots would not be affected, but perhaps similar changes would make them less effective as well (your example of using Ajax is a good possible example).

comment 19y ago · link · parent

Personally I was waiting out for Enron-Healthcare. Oh wait. Maybe both systems can fail catastrophically. ;)

comment 19y ago · link · parent

Good point. I think even in America that most people are uncomfortable when they say the free market will lead to the best/optimal/most efficient solutions. Its just they are even more uncomfortable to say that a big government will.

Then again, it looks like universal healthcare will be at least an interesting side-story in the upcoming US presidential race. Perhaps socialism is finding some roots in US politics.

comment 19y ago · link · parent

Interesting, and good, ideas. I think they could be defeated by a well designed spam bot, but most (if not all) currently used techniques could as well.

I haven't used a screen reader, nor have I looked at their source code, but it did make me wonder if such a setup (with user invisible fields) might still be read by the screen readers (depending on how they convert the raw html into content for the listener).

If I ever get around to fixing my comment system on my blog (I don't really like comments... and thats probably why my current commenting system is passive-aggressive), I'll try implementing these ideas. Good link.

comment 19y ago · link · parent

Although often not considered, the greatest flaw of captchas is they make some functionality unavailable for disabled web users (audio captcha for the deaf, standard distortion captchas for those with poor eyesight, flash captchas will also be impervious to screen readers).

I have played with captchas a bit and I think its important to make captchas which rely on thinking and comprehending, not on some facet where human senses are still more acute than electronic sensors (this is a deadend, as computer cycles get cheaper and algorithms improve I don't really believe that human senses will be superior to dedicated electronic ones in well... anything).

My favorite captcha (perhaps my own idea, not quite sure though) is to have something like this "Please enter the missing item: 532 533 534 535 536". This satisfies my requires for a 'fair' captcha: 1. it is delivery neutral (a screen reader, a blind individual, or a fully healthy individual can all understand this captcha), and 2. It is relatively resistant to brute force because the question doesn't contain the answer.

As is stands, the vast majority of captcha implementations are discriminatory (you need to, at minimum, have a choice between an audio and a visual captcha, or use a captcha that is delivery neutral).

The best way to avoid needing a captcha is to build a non-consistent UI (which is to say, to differentiate yourself, hopefully by making it better) that the existing spam algorithms won't recognize. Much like diverse genetics give species resistance to disease, diverse design and UIs give the internet resistance to spam.

comment 19y ago · link · parent

Allow me to introduce you to my corollary to Greenspun's Tenth Rule: "Any sufficiently complicated Scheme or Lisp program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of object orientation."

comment 19y ago · link · parent

Well, server optimization has been my primary hobby for the past month, and I'd like to make some clarifications about a few things the article says.

Saying that Lighttpd supports "CGI scripts, Ruby on Rails, Pylons, TurboGears, Django, Quixote, webpy, Mongrel, Catalyst, Mason, Joomla, AWStats, and so much more" is kind of misleading. Lighttpd can do a few things: it does fast cgi (fcgi support explains about 75% of the examples in that list), it can serve static files, and it can proxy requests to other servers. Lighttpd doesn't "support Mongrel", because Mongrel is another server. What Lighttpd does is use something akin to mod_proxy to send certain requests somewhere else, that somewhere else might be a Mongrel cluster that is running on port 8080 (hence it "supports" Mongrel).

That proxying service is where the majority of Lighttpd usage has been. A typical efficient setup these days (YouTube does along these lines) is to have lighttpd accept incoming requests and if the request is for a static file then it serves the request (because it is very lightweight (i.e. minimal) it is more efficient than Apache at serving static media), and if it is for dynamic content the request is passed to Apache, which then passes it back to Lighttpd, which passes it back to the requester (this means that "heavy" Apache threads will be dedicated to a request for a shorter period of time since it only has to communicate/wait for Lighttpd instead of the actual requester).

Lighttpd on its own isn't necessarily the best solution (an example from my experience is that mod_python and Apache become more efficient at serving dynamic content than fcgi and Lighttpd as the numbers of requester per second get very high). Usually a combination of a light frontend server and Apache in the backend can provide the best performance (again this is at high numbers, at lower numbers lighttpd is probablly equally or more efficient).

As a final note, I'd really recommend Nginx over Lighttpd if you are looking for a light http server to serve static content, support fcgi, and/or proxy to other servers. The biggest reason? Lighttpd leaks memory and has to be restarted occasionally because every couple of days (under heavy usage) it dies. Not a great feature in a production server.

comment 19y ago · link · parent

The Muslims would be the ones religiously discriminating against Google. Allowing dogs at the workplace is a secular decision, viewing them as profane is a religious ones.

This argument is without legal grounds. Restaurants serve food that is not kosher, they are not being shut down for discriminating against Jews. Restaurants serve beef, despite offending those of the Hindu faith. Legally these are not grounds for religious discrimination. Neither is allow dogs in the workplace... and other companies have done the same for decades.

comment 19y ago · link · parent

First, just because most Muslims don't like being around dogs doesn't automatically indicate that there is a problem with Google's policy.

People that don't like being around dogs will place a lower value upon working at Google. People who do like dogs will place a higher value upon working at Google.

If more people like dogs than don't like dogs, Google will benefit from their policy, and those who dislike dogs will suffer for their intolerance. If the opposite is true then they will suffer from their policy and people who dislike dogs will benefit.

Regardless of your policy someone is being discriminated against, so moral arguments will be irresolute. As such, economic reasoning seems as good as standard to judge by as any other. The claims of discrimination by allowing dogs in the workplace suffer from assuming that the status quo is some how more just than an alternative: don't worry, someone gets screwed no matter what.

comment 19y ago · link · parent

Your argument is based your intuitive view on the comparable reliability of dogs and people. It is your personal opinion that dogs are less predictable than people. Personally I find your opinion to be troubling, how can a much simpler creature be more complex and less predictable?

There have been between 17 and 26 dog related deaths per year for the past two decades in the US. There were 28874 gun related deaths in 1999 in the US. These numbers don't tell a very complete story, but I think they are sufficient to raise doubts about your premise that dogs are less predictable or more dangerous than armed humans.

comment 19y ago · link · parent

Religious acceptance is a two-way street. Demanding that other religions accept your religious tenants is bigotry. As a world with diverse conflicting religions we have to remember that our relationship with a higher power (or lack thereof) is a personal issue: we ought to apply our standards to ourselves, attempts to force them on others end with catastrophe.

The typical response to my statement is "What if their religion supports eating babies?" This is what secular government is for, it formulates these things called laws which trump religious preference.

The response to that response is "there is no truly secular government." Imperfection is one of the few realities we can count on, condemning a solution for its lack of perfection is insincere. Remember that we're all using operating systems built the Wrong Way.

comment 19y ago · link · parent

Normally when you try to make a point using reduction to absurdity you jump straight to nuclear missiles: i.e. "How is this different from allowing people to bring nuclear missiles to work that they may point at you occasionally?"

Unfortunately this is a contrived comparison. People who are bringing dogs into work are not bringing them as weapons that they then deliberately threaten their coworkers with. The key differences here is intentionality: bringing a dog to work is not intrinsically threatening, point a gun at someone is.

Your comparison only becomes valid if the individuals brought their dogs into work and threatened to assault coworkers with them. This is likely not part of Google's acceptable policies.

comment 19y ago · link · parent

Well, thank you for keeping the comment neutral, I can go salvage my pride somewhere now. :)

comment 19y ago · link · parent

I think your statement implies that you don't know what function pointers are. :/

comment 19y ago · link · parent

Sounds like you have a fun opportunity lined up. I would personally try to broaden your message some. Kids get told what they should do all the time.

I would tell them that one of life's true joys is to find something you love and to spend your life working on it. Then you could segue into a discussion of how hacking has been a personal source of meaning for you. Talk about the points you mention above, and then bring it full circle by telling them that any road they walk down can be equally fulfilling if they find something they truly care for: life's value derives from what we do, not what we have.

Hope your talk goes well, and keep in mind there is probably a reason you are being asked to give a talk and not me. ;)

comment 19y ago · link · parent

Some interesting ideas here. Most of them I tried to implement in my blog when I redesigned it recently, but I had never considered having an optional third panel that disappears once the screen size decreases past a certain point.

Personally I think that focus on content is the most important aspect of design, so I'm glad that the article points it out, though I am loathe to refer to it as a 'trend'.

comment 19y ago · link · parent

I think the important question is "why are they using C++/Java?"

If they are using them for efficiency reasons, then this may be a case prematurely optimization, and they may not like the tools either, but feel trapped into using them.

On the other hand they may be using them because they are most comfortable and experienced using them. This is a pretty good reason to use a language, but eventually leads to stagnation.

comment 19y ago · link · parent

"Could be done in a handful of days" is the stock response to web applications these days. On one hand its mostly true (its easy to get the majority of functionality working), but its also a bit of bravado: raw functionality and a polished product are not really equivalent.

comment 19y ago · link · parent

Unfortunately it seems that Xinu's site is down at this point. I tried Popuri just now and they both seem like mashups of screenscraping/public api content. Not too hard to do, but still interesting.

Both of these sites seem somewhat parasitic: they exclusively use other people's content. Are these other sites really benefitting from their data being used like this?

Not really sure what those kanji mean together. Taking the characters' individual meanings I'd make up something like "inside the letter", but its probably idiomatic Chinese and means something completely different.

comment 19y ago · link · parent

You're ignoring what I am saying, seemingly because you are focused on mocking me. As such I'll make a final attempt to explain myself, but it seems likely that communication will be thwarted yet again.

There was solid and easily locatable evidence that supports the premise of the article in question. The article did not use that evidence, and instead based its premise upon an irrelevant quote that did not support its argument.

Thus the article is fundamentally flawed: it arrives at its conclusion by making a leap from one disconnected idea to a second; there is no chain of reasoning to follow. Worse than simply making a leap in its reasoning, it misinterprets a disjoint quote and passes it off as support for its argument.

This method of pseudo-analysis will occasionally render correct segments of analysis. That doesn't matter. The pseudo-analysis is still flawed, unreliable, and devoid of value.

comment 19y ago · link · parent

As for the blog it was having a brief issue with psycopg2, apache, and python eggs... mutter. I'm still learning the sys admin side of things (but it is fixed now). In general it has been stable... (Apache2, Lighttpd for serving media, memcached for caching...).

I think the way to look for the future is like this: find something that everyone uses, and think of what unexamined assumptions we are making about it.

For an example, look at how comments work in blogs, maybe we could make a more localized comment system (you can make your comment close to the context you want to commenta bout), or at least inserting comment footnotes.

Essentially, look for places where the "proper" shape and form for an idea have crystalized, and then find a way to do it differently. At this point I don't think that web innovation is bounded by technology (horizontal scaling to build massive and efficient systems is a reality, albeit a n occasionally unpleasant reality for the implementors), but more by ideas.

Development frameworks (Rails, Django, TurboGears, CakePHP, et al) continue to trivialize internet development, so I think we'll continue moving towards an era where (for internet applications) ideas and design are the limiting factors rather than technology.

comment 19y ago · link · parent

"The personal information you provide may be used for such purposes as responding to your requests for certain products and services, customizing the advertising and content you see, and communicating with you about specials, sales offers and new products."

The privacy policy clearly states that they will do what the article is insinuating. The article didn't even bother to quote this relevant segment, or to even mention that it exists. It instead makes it argument based on an irrelevant quote that doesn't support its insinuation. The article is poorly done, and fails to make a meaningful point because it builds a foundation on thin air, even though there was a solid foundation for it to rest upon in the first five paragraphs of the privacy policy.

That, rather than slandering Kevin Rose, is what quality journalism is based upon.

As for the personalized experience issue it seems more likely that anonymity services will impede assignment of cookies and thus the cookie framework used to maintain persistent user sessions will be rendered non-functioning. This is a protocol issue, not another mythical infringer of privacy to point fingers at while screaming hysterically.

The article uses bad evidence deceptively when good evidence is readily available, and could have been used to make the point cleanly and without making leaps of faith in the argument. Why would one waste time reading analysis performed by someone who clearly doesn't even care enough to perform analysis?

comment 19y ago · link · parent

As a quick preface, I usually think its much easier to have a coherent conversation when we actually reply to the comment we referring to, otherwise it won't be listed in the threads section and will easily go unseen.

"Moreover, they will "run some small advertisements in your list of notes" which sounds a lot like GMail., which crawls through emails to find keywords then uses those to display ads on your GMail pages."

That sentence insinuates that Pownce is--or will--use data context to increase ad relevancy. I don't believe I am inaccurately representing the article by saying so. I don't know the details of the Pownce private policy, but I do know that the excerpt I quoted (the only excerpt of the policy contained in the article) is meaningless in regards to using context to serve ads.

Sitting back and accepting this sort of speculative commentary is detrimental because it adds confusion and misinformation without bringing with it any merit to redeem itself. This article could have been done in a valid way, by an individual with an understanding of the American legal system, there may indeed be more than illusionary specters to the issue of Pownce's privacy policy, but we won't learn anything from the haphazard and speculative inquiry that this post embodies.

123456