skysight-inc/HackerNews huggingface dataset:
Ask HN: Which Richard Stevens book to follow?
Unix Network Programming - W Richard Stevens comes in 2 avatars - the first edition, and a newer version split into 3 volumes. It might seem stupid to ask this since the newer volumes would obviously have updated and more comprehensive material - but I had to, after reading some reviews on Amazon.

This is the first edition -
http://www.amazon.com/UNIX-Network-Programming-Richard-Stevens/dp/0139498761/ref=cm_cr_pr_product_top

To give some background, I'm getting back to network programming in C after a long (long) time. A lot of people recommend Ricard Stevens' books so my question is based on that. Any other book suggestions would also be welcome.

Can anybody guide me in this?
First public release of the Gosu programming language for the JVM
A Web Server in Awk
I would have tested the cases for you, but fortunately, I have deleted my FB account. I dont trust them with anything.
I've heard that Los Alamos and/or Huntsville have the most PhDs per capita, which makes a lot of sense, but may not actually be true.
I've noticed a nasty trend where people use the word "Impossible" as another word for difficult, time consuming or hard.

In order to prove something impossible you have to do two things, a) have a complete mastery over every property and tool that can exist and b) attempt to apply or implement every tool or property to the problem in every sequence.
I have reached: "learning everyday".
LAND sailing. I don't think you could do this on water.
Apparently sailboats do this all the time. Who knew? I can only assume they somehow use tacking techniques to travel against the (relative) wind. Though it's not clear to me how they accelerate past the wind speed in the first place.
It was a train trip, my point was that the UK authorities see much more threat in a knife than in a sword.
increasing the likeliness of a "Positive Black Swan"
Chrome Asks You to Select Default Search Engine on First Run
In the UK, the iPhone is only £10 cheaper. Probably they set the prices to meet the US magical prices that end in 99 but translate for foreign markets before rounding.

I meant to put the actual (small) difference in my original post, but forgot to back and edit it, so it actually seems like I'm arguing the opposite of what I intended.
I just installed Chrome 7 stable on a new install of Ubuntu 10.10, and the first time I ran it I was presented with this screen asking me to select a default search engine. Very nice Google's asking it so directly, though I have to assume this is because of antitrust concerns...
Was it not? Or do you allude to its Konqueror/KHTML roots?
From zero to pre-launch in one hour (NSS)
It's a balance. With overly simplistic languages, one ends up with too much code and repetition. However, when languages get more, well, 'advanced', it just gets harder to hire people who can work with it. Sure you need fewer people, but they're harder to find.
if the AP and the gateway are separate devices, couldn't I just ARP-spoof the gateway and get all traffic on the wireless network sent over to me, regardless of encryption?
Care to clarify, or do you prefer just telling people they're wrong? The linked article is on the surface convincing, but I have never touched Haskell
You could combine encfs with Dropbox. Should work quite well as it uses one encrypted file per real file.
Actually if you know about the experiment, chances are that you won't comply.
Hurl is back: http://hurl.it/
http://hurl.it/
True, as long as the site isn't doing referer checks, which most of them probably aren't. This is yet another argument for why the entire web should be secured with SSL.
Google Nexus One Getting Gingerbread (Android 2.3) In A Few Days
I think you both make good points. I'm more in agreement with you than the author, but I voted up the article for this line which is a gem:

> Any client will have grand dreams of his product. He will constantly ask for new things, and think those were naturally implied from his vague sketches. If you have quoted a fixed price, and you were smart enough to have a detailed contract, you will need to fight him on every step, saying "we didn't spec that". Whereas, with an hourly rate, you can say "sure, let me estimate how much will this be". The client can then decide if it's worth the money.

Perhaps his method is better for projects with unclear scopes or first time buyers, and yours for clear scopes and veteran buyers? I see merit and potential uses for doing it either way, depending on the circumstances.
New 3d features for flash
Get a deep dive on recent announcements regarding the future 3D APIs in Adobe Flash Player. In this exclusive session, team members from both Alternativa3D and Away3D explore how these new capabilities will transform the potential for 3D graphics in Flash Player. The presentation will include some never-before-seen demos showcasing the next step in the evolution of 3D in Flash technology — something you won't want to miss.
OK, I'll give that a go too, thanks!

EDIT: I guess one disadvantage of this approach is that the file system structure is exposed. Convenient though.
this is not new.
Surely, this is how you know Facebook has lost all it's youth appeal. When the establishment joins in, all the kids are long gone elsewhere.

This can only bring ridicule, what were they thinking of?
That is danish law btw. I can get a court order demanding that my picture be removed from facebook, if somebody uploads it against my will, and I can sue that person under Danish law.
Yeah, but they were all branded around the .ly/.us, not the .com. I was assuming he was going with just the .com. But looks like the .ly is available, so if he's serious, he should get it before someone else does.
The business of innovation
Amusingly "not lisp" is a feature on their comparison matrix.
Britain, France, Denmark...
http://www.popsci.com/cars/article/2010-06/wind-powered-car-...

The comments of this article have a great debate between skeptics who are particularly insulting/rude who then later admit being wrong.
nice service. You should add some formatting for JSON like the JSONView extension does, and the ability to view the response content only

Also, short URLs FTW. eg:

hurl.it/s5gJ#h5 would link to a particular request and highlight the fifth header line.

hurl.it/s5gJ#c12 would highlight the 12th line in the content.
Yeah, I'm not surprised. Still, it was the first time I've seen it, and I figured many others that haven't setup a fresh install in a while might be interested to see it.

Do you know when it was added to Chrome?
It's also one of the only languages out there to let you inspect functions' source code

Got any pointers on this? I've been searching a little and unable to find this and haven't heard of this level of introspection before.
A brilliant video on this issue is Under the ruler faster than the ruler:
http://www.youtube.com/watch?v=k-trDF8Yldc

(and its follow-up videos if you liked it)
I think the real danger here to Apple is that due to devices like this, Android could decisively unseat the iPhone as "the smartphone" in the public consciousness. Right now, when you say "smartphone with apps", I suspect that most people will mentally jump to the iPhone. If these sorts of low-end, low-cost device/plan packages go big (and they will), it'll rapidly erode the iPhone's carefully-curated image as "the smartphone platform". Android has been chipping away at it for a while now, but if you capture the low-income-but-tired-of-the-RAZR market (hi, high school and college market), then you more or less have captured the entire direction of the market.

Apple will continue to sell iPhones, and will continue to be successful at it, but it won't be the market-dominating behemoth it's been in the past couple of years.
"Also, it's been my experience that clients care about the price before the project begins, but never after."

I agree, and from both sides of the table. I've provided added services to projects where the total value of the added services were a multiple of the initial cost, without getting any complaints or requests to lower the budget. I've also paid many extra hours for additional work and never felt bad about paying for any of it; and I'm very cost conscious and drive a hard bargainer when I get an initial offer.

I think it's a trust thing, after the other person has shown that they're capable of providing high quality services, cost is not so important any more, while if you're just getting quotes from people, you have no way to find out the true qualities of the people you're asking (usually). Even references from people you know personally sometimes end up blowing up in your face, a guy may be having a bad day when he's working on your project, screw up and refuse to fix it. Relationship-breaker right there, while he may have done an (objectively) great job at your brother in law's project last year.
It's very much in Apple's interest to have users tethered to a 2-year contract with an upgrade option. It's a lot harder to upgrade people to the latest and greatest when they have to shell out $600 every 18 months for a new model.
Oh please no.

Taking this to its logical conclusion, we'll end up with a facebook browser, a youtube browser, a wikipedia browser and so on.

The great thing about the web is that one program can access the whole thing.

Now you're suggesting it would be cool if I had a browser for every website I visit? No thanks! Not at all! Go away!

It would be a horrifically detrimental trend if websites started producing their own browsers.

It would also be a sign that there's something wrong with the web - that the current standards fail in some major way.

You say that:

> The bigger picture though is that Facebook needs to have a desktop presence that it controls.

Why? You don't say what advantage this would have. You talk about "Facebook to become a part of your browsing experience rather than a just a destination online."

What do you mean by that? Doesn't deep integration between websites and facebook via the like button do that? Isn't that a better way forward for facebook?

Open is the new closed.
Thanks! That was far more readable than the original article. I had dismissed the idea for exactly the same reasons as the author, and now understand how I was wrong about it. Glad to have learned something today.
I've seen an explanation [1] that in water it depends on having two aerofoils — one in the air and one in the water (they should be called fluidfoils. I guess the one in the water, the keel, is acting as a hydrofoil.) At any rate, in theory, with two fluidfoils and fluids with any different velocities you can go at any velocity (i.e. in any direction, at any speed.)

[1] http://terrytao.wordpress.com/2009/03/23/sailing-into-the-wi...
>like those who don't work support higher taxes.

Warren Buffet doesn't work?

>any politician that mentions disbanding the TSA is going to be slammed by opponents for being soft on terrorism.

Has the TSA ever stopped even a single real threat? Ever? If they haven't [1] then how could disbanding them be seen as being soft on terrorism. Nothing they do appears to actually be related to terrorism.

[1] I can't remember anything. All the bombings I've heard about got past them. And I hope no one starts this nonsensical "oh they stop hundreds, we just never hear about because they're so good!" nonsense. These are clearly "bottom of the barrel" workers.
With only three times as much memory, it runs on average 17% slower than
explicit memory management. However, with only twice as much memory,
garbage collection degrades performance by nearly 70%. When physical
memory is scarce, paging causes garbage collection to run an order of
magnitude slower than explicit memory management.

I don't see how this article is helping your point; that's a pretty
massive hit. Even worse, this is a GC-style program modified to
use explicit malloc/free. Programming with manual memory management
encourages a very different style of programming where you try to use
malloc/free as little as possible, and you try keep memory for various
things in contiguous chunks of memory.

EDIT:

This comment is interesting: http://lambda-the-ultimate.org/node/2552#comment-38915
A monad is simply a monoid in the category of Haskell endofunctors.
I started using ZeroMQ for async messaging for my Django project (with pyzmq) a couple of days back. I use it for pulling data from third party apps and sending emails from my app. Enhanced user experience greatly because of non-blocking calls. The APIs abstract the nitty-gritty networking details so well, that it feels like child's play to build async messaging for WSGI apps.

Great project indeed.
In all fairness, it's much easier to hurt someone with a knife than with a sword, if only for the fact that they'll see it coming.
Sophomore year, that's 2nd year of high school, right? What age was that? You had spend 2 years at a Belgian 'high school' (in the sense of 'secundair onderwijs', not 'hogeschool' :) ) ? Do you mind telling what program you followed in Belgium (I assume 'ASO', was it Latin-Mathematics, Latin-Greek, Economics, ...) ? Did you go to a public or private high school in the US? In a city or more rural?

(Sorry for the questioning, I have a strange abstract interest in comparing educational systems across borders :) )
For Facebook Apps. You don't think Facebook would just stand by while FarmVille etc. started being sold in the Chrome App Store and the Safari App Store, would you?

I never said it would be cool, I just think it's where I think we're headed.
bhahaha. came to post that. I laughed out loud.
"These loonies were pursuing a pointless goal, doomed to failure, but there was genuine merit in the myth and their enthusiasm."
If you like that, you'll like this:

http://news.ycombinator.com/item?id=1877022

http://news.ycombinator.com/item?id=1874846
Saying that two groups are homomorphic doesn't tell me much more than there exists a group homomorphism... As far as I know, isomorphism implies one can be transformed into the other through renaming.

I don't know anything about topology, so I'll take your word for it.
It's not only OK to record people committing offences, it's an obligation in a modern society where all citizens should be encouraged to take an interest in the safety of their communities (without issuing summary judgments or punishments, of course). We do not deserve to be constantly "monitored" but once you break the laws and rules of a community, you waive a little of your liberty.

People who dig their heads in the sand and ignore minor crime while "leaving to the police" are screwing over their communities with their indifference. And teenagers? That's especially when people should get involved - kids who never learn what the boundaries are become shitty adults.
Update on my GAGA-1 (High Altitude Balloon) project
On a serious note, I'm not sure it has enough of an advantage over Scala to take a look at. Though if the type system is a bit more intuitive, that alone may propel it to the forefront of JVM languages...
I remember when Facebook's valuation was supposed to be $15B, and I thought that's outlandish. Right now it's supposed to be $33B, and new employees are supposedly told that it could go as high as $100B when they IPO.

So, careful.
So your theory is:

Facebook make money from apps.

If apps are sold in browser web stores, that's money Facebook are missing out on.

Therefore Facebook need their own browser.

I would say:

Facebook make money from apps.

If apps are sold in browser web stores, that's money Facebook are missing out on.

Therefore Facebook need their own App Development API
which pushes out to all browsers.
You don't need 'em. You have the mandatory strip-search-scanner right?
No, I don't think that applies to people working in security.

But I know that it applies to a large number of people working in the government.
I chose "graduated high school" as I left secondary school (increasingly being called "high school" in the UK, I notice) at 16 as that was the end of my mandatory education and no British person in their right mind would say I "dropped out of high school" since leaving at 16 is quite normal (even if only to go to "college" to do A levels which is not "high school").
its always funny when I try to explain to global warming fanatics that in order to grow plants faster you have to increase CO2 levels from 300ppm to 1200ppm, they usually can't wrap their minds around it. Plants are currently suffocating on planet earth due to the low CO2 levels.
[EDIT: I started typing this up before smanek's post. It's essentially the same argument, but I intentionally left out the formulae.]

Really cool. Here's my best explanation of how they achieve a stable speed faster than the wind; this isn't explained that well in the article. (Disclaimer: I'm not exactly a trained physicist/aerodynamics expert.)

They've built a lightweight vehicle with a huge propeller directly linked to the drive shaft ("directly linked" is important here!) With the vehicle at rest, the propeller catches wind and begins driving the shaft; the car itself also catches some wind. Obviously, the car speeds up.

Once the whole contraption is at or near wind speed, the wind obviously stops driving the propeller. It's clear that the vehicle can maintain this speed just by using itself as a sail.

Now, note that the wheels, directly linked to the propeller, are now driving the propeller. Running through stationary air (since the vehicle runs at wind speed, the air is stationary relative to the propeller), the propeller begins accelerating the vehicle!

Of course, as the whole contraption accelerates beyond wind speed, air and ground friction increases, etc. But all of these effects are gradual, and since we have already seen that it can, in fact, accelerate while traveling at wind speed, it will continue accelerating for a while beyond that, eventually reaching some maximum speed above the actual wind speed. Apparently, this is ~2.8x the wind speed for this particular vehicle, which is an impressive engineering feat.

The article says that this offers opportunities for power generation, but I'm not seeing those. Still, very cool.
It's been long since the sailors out there know that fact. Ships create their own wind when close hauled. Check out http://en.wikipedia.org/wiki/Hydropt%C3%A8re for a particularly striking evidence!
Colloquially, "impossible" = "I don't know how to do it", "trivial" = "I know how to do it". These two terms have very little relation to whether something is actually impossible or trivial, but are a pretty useful shorthand for "Get someone else to do this" vs. "I can do this". Most good managers understand this, and will push you to do impossible things anyway while padding your estimates for trivial things by a factor of 10 or so.

A corollary is that if you want to expand your skills, work on impossible problems. A second corollary is that more entrepreneurs should be working on impossible problems, because the small number that are actually impossible is outweighed by the heavy returns for the ones that aren't impossible but scare off competitors because they look that way.
Ask HN: color sorting algorithm?
Imagine a pallete with N colors. You need to display them in some order that suits human eye best.

I seem to have problems with definition of what I want. Ideally, I'd like to see some gradients, e.g.: blue gradient from lightest to darkest, yellow gradient from lightest to darkest, etc.

The problem is that sorting by [H,S,V/L] or [H,V/L,S] doesn't seem to work for non-ideal palletes. The biggest problems are with shades of gray or something similar to shade of gray (when [R,G,B] components are almost equal) that appear in between gradients. Also, it should allow some deviation on hue (which would be invisible for human eye but surely visible for simple sorting algorithm), but my simple tries of generating a keys consisting of weighed sum of components failed.

What I also tried: building a matrix of RGB distance and then trying to sort colors keeping distance between two neighbours minimal; using combination of HSL and YUV components; sorting by [R,G,B], [H,S,L] keys and all the possible transpositions of keys.

What I haven't tried yet: hilbert curves, from what I see on pictures it won't help.

Suggestions, anyone?
RSA Animation: Where good ideas come from: Steven Johnson [video]
Celebrities With No Make Up On
Without make up celebs ook just like everybody else or even worse, they look plain.
Which is the way it is right now.

But isn't it much more compelling for Facebook to have a development platform which they control and can make as uniform as possible? Big companies tend to want to control the core technology behind their businesses.

A quick and recent example: you can no longer play FarmVille out of the box on a new Macbook Air.
>but if you capture the low-income-but-tired-of-the-RAZR market (hi, high school and college market), then you more or less have captured the entire direction of the market.

See, apple tried that. when I was school in the 90s, apple owned the (primary school) campus computer lab market... and really, nothing else. As far as I can tell, it didn't help them much at all, other than to get a generation of people thinking of apple as slow, obsolete crap (which is as much a result of the school district keeping them around too long as anything else.)

edit: On the other hand, come to think of it, OS-x started getting real popular around the time most people my age started earning enough money to pay for a mac, so maybe I'm wrong and the policy was a resounding success? (I mean, I was born in '80, and as I've had a 'real job' since '97 or so because I skipped college to play in the .com boom, I sometimes forget that most people don't start earning money until their mid 20s.)
Yes, I was homeschooled and went on to get a PhD, so this simple poll does not seem to be able to represent that!
Regarding your question: IIRC, when you use tramp on emacs, commands executed on remote files are executed remotely as well (for example, a vc-checkin is not executed locally but on the origin-host of the file/buffer you're editing). Though I am sure that this worked on version control commands, I am not sure whether it works on compile commands per default, but a little emacs lisp surely solves this problem...
Yes, check this out: http://en.wikipedia.org/wiki/Hydropt%C3%A8re
You need to display them in some order that suits human eye best.

That sounds woefully ill-defined, if you ask me. My suggestion would be that you try to figure out better what it is you are looking for, and then start thinking about the algorithm to implement it.

I seem to have problems with definition of what I want.

Yep.
Inspired by Offer HN, Gratis Jobs lets you offer your skills for free (gratis)
On the compare page:
"Reified generics (check generic types at run time)"

Does anyone know how they've gotten around the issue of Type Erasure on the JVM?
As a bit of background, Gosu is based on the GScript language that Guidewire have been using for a number of years to build their Insurance application suite, so it has been proven in the development of non-trivial applications and the implementation should be more mature than a 0.7 version number might suggest.
You can prove impossibility. It's easy to see that you cannot sort any arbitrary sequence of N arbitrary items in less than N elementary operations, for instance.

That said, yes, it's use as a shorthand is misleading and annoying.
But then we can't server ads to signed in users which would be a large revenue cut for us.
We cant serve ads over HTTPS and we make most of our money from ads. So that would be very expensive!
Really like the app, I've been wanting something like this for a long time
I think it's the discussion that we're meant to read, not just the OP. Most of the comments are pointing out questionable assumptions in the study (e.g. even though they admit that actually changing the program to use manual memory management would be nearly intractable, they assume that essentially running an AOT garbage collector is equivalent).