skysight-inc/HackerNews huggingface dataset:
This isn't a good solution. I pip install mysql-python several times a week on my mac ( I use different venv's for different branches and we have several different services that I work on in a given week, thus I'm installing packages via pip A LOT) and we always install it in a venv. Sure it can be a bit of a pain but it's well worth it IMO.

Our steps to always get it working: make sure mysql_config is in your path env variable, make sure the xcode command line tools are probably installed, and make sure the mysql command line client is setup and working correctly locally. Past that is just works for us on Mac OS X 10.7+. I think 10.6 and earlier also work but I'm not sure.
We're using this on a large'ish project at the moment and thrilled with the productivity gains. Right now we're using Rails 4.1RC2 + Opal and thrilled with the readability that we now have across the board. This is good sized project for several thousand concurrent users and was to test the waters before using for something larger on our plate.
Many cuisines involve insects, but they are all traditional. It's just not more widespread because, unfortunately, cattle replaced all other protein sources in most places, specially in the west, where we apparently created a beef addiction.

Here in Brazil there's a dish that involves flour and fried ants. It's delicious, tastes like shrimp, but I only tasted once since it's rare. Ant-eating is an influence from native americans. In Cambodia there's also deep fried tarantula. I never ate it, but apparently it's also delicious, tastes like crab.

Basically, most insects once deep fried will taste like shrimp or crab, so not bad.

There should be more available, since they are apparently way more efficient (and clean) to produce than cattle. Cutting down the forest to raise beef on grass, or cramming a bunch of mammals in a warehouse then wasting money on antibiotics doesn't make any sense.
Heartily seconded.
Why 'don't take it personally' is bs
This is tru ! But actually... not if you have already understood courage as being a problem of your personality, and honesty a consequence of it.

In this case you may find people who impose themselves to be honest / with courage to level them up (which is good) !
SEO-driven businesses are super fun to work on and run -- I have a few sites that rank for informational queries and thus get a decent amount of search traffic and ad revenue because of it. At scale, it can quickly become highly lucrative.

HOWEVER, and perhaps call me a giant wuss, but when you're at the mercy of not only an algorithm but also a savvy business, it's a pretty dangerous bet to hedge it all on search traffic.

Coupon codes are one of those things I could easily see appearing at the top of SERPs in no time courtesy of Google.

"Credit card comparisons" and other searches like it are a massively profitable keyword to rank for. But take a peek now and you'll see Google threw their hat into the ring, flipped one switch and magically appear above all organic rankings. They're doing the same thing with travel, weather, you name it. I can't sit here and argue it's unfair, it's their yard, they make the rules.

And truthfully, as a user, I completely applaud Google for providing these services, I love the one stop shop and trustworthy nature of their results.

As a marketer, I'm very, very wary to place any huge bets on any sort of long term business model relying on rankings. Should it be a tactic in your strategy? Absolutely. But diversification here is sure going to save a lot of headaches down the road.

But at the end of the day, as far as RetailMeNot goes, get it while it's good I suppose.
No, they cannot actually be compelled to work.

They can be offered the choice, "Do it, or suffer the legal ramifications.", but if they choose "suffer the legal ramifications" standard legal ramifications are the extent of what happens. You can't actually legally force them to do the work, they can choose to not do the work and accept the consequences instead.
> For example, you could add an alternative page called item2, and it would happily reuse all the resources of item just via relative URL resolution.

I don't understand. If you wanted, for some odd reason (you hate search engines?) for the same resource to have two URLs, you could simply do:

app.get('/items/:itemID', itemController);

app.get('/item2/:itemID', itemController);

Though that seems like a very strange thing to want.

> What does that buy us in practical terms?

I can crawl it, and expect to find different resources at different URLs, like every other news website.
Here's the original solution - http://www.mathpuzzle.com/7cylinders.gif
Imagine if you could put on these futuristic goggles that immerse you into a virtual reality world where you could do things like cultivate a virtual farm with your virtual friends. Facebook already has this (Farmville), but Oculus would take this to the next level.
More NSA revelations are yet to come, says author
@adam maybe you can give us a tutorial on doing this properly? Opal is amazing and being able to wrap things like ImpactJS and other js libs is enormously powerful.
Where do you draw the line though? Ultimately it's arbitrary and I think vegans realize the only solution is to avoid the issue entirely.
Something tells me this won't be very "3008."
You think that downvoting is cyberbullying, and leaped to the assumption that I was the one that was doing it to you only because you disagree with me.

You plainly do have a persecution complex. The first step to correcting that is admitting it.
Exercise in Weak Random Seed Exploitation Against a CTF Webapp
I think my previous posts already cover what I'm trying to say. I don't really want to engage into a confrontational rhetoric.
you couldn't argue with that
Use opal-browser (https://github.com/opal/opal-browser). Great stuff.
I'm always astounded at what some SEO positions can generate. Coupons.com is also worth around $1.5 billion. Or take Demand Media for example. They've been less prominent since the first Panda update hit them, specifically eHow took a beating. Their stock has languished, but their sales have continued to climb (almost $400m over the last four quarters).

Does anyone compile an estimate for how much revenue Google is directly responsible for generating for other sites via referrals off their search engine? I'd be curious to know how that compares to their take via AdWords and AdSense.
We have an employee whose last name is Null.
Ask HN: Are all mail clients inherently vulnerable?
I've noticed an increase in Virus/Worms getting onto my machine (macbook air, osx 10.8.5).

I've noticed they are always via an unread email through my gmail account.

I wonder would I be safer to always accessing Gmail via the web versus my email client (in this case Apple Mail and PostBox).

I always thought I actually had to click on/read an email to have it 'execute' and get onto my system? Has something changed recently?

Is there anyway to harden the mail client so it's not allowing these files to even reach my system? Perhaps that's an IMAP setting on GMail I can configure/alter?

Thanks!
Do we know if IRNSS will be backwards compatible with GPS (like the Galileo system that the Europeans are launching)?
Facebook open sources their A/B testing framework
I have a microcontroller, a tiny DC motor, a pair of wheels, and a handful of thermistors. From these I build a robot, autonomous to the limit of its battery charge, which senses the temperature of its surroundings and acts on this information to move itself toward temperatures within a range its programming defines as preferable. The speed with which it does so is determined, to the limit of the motor's capability, by the difference between the temperature it's moving away from, and the temperature it's moving toward.

If I use a cigarette lighter or a lit match to apply an open flame to one of this robot's thermistors, it will flinch away from the stimulus as fast as it can. This is closely analogous to "what we humans know to be a typical reaction to pain"; if you applied the same stimulus to one of my fingers, after all, I would initially react in much the same fashion.

From this behavioral observation, do you conclude that my robot's subjective experience a) exists at all, and b) encompasses the experience of pain? Does this behavioral observation inform your concept of the morality surrounding how this robot is treated by humans? Why, or why not?
There are many puzzles, games, and obsessions that require the creation of new mathematics to understand properly, and then which eventually prove to be useful.

Sometimes solving these sorts of problems requires pushing the boundaries of existing techniques, sometimes the techniques required are completely new and are invented specifically for the question at hand.

I'm not sure about this specific instance with regards payment, but sometimes people are paid to play with these sorts of things simply because you don't know what will come from it.

People constantly, constantly ask this question - "What's the point of pure research?" The question has been discussed many, many times over, and there are eloquent and robust defences for pure research to be found in many places. There's no way I could do better than some of the things already out there, so I won't try. However, many of the things you use today and take for granted for first created by people "playing," sometimes in their spare time, sometimes in time paid for by companies (and in some cases individuals) who were willing to let people play and see what came of it.

If we knew what we were doing, it wouldn't be called "Research."
I'm from the south and we call our meals breakfast, dinner, and supper. For the morning, midday, and evening meal respectively. But the timing was apparently the typical American times. 8am, noon, and 5-6pm.
Throw in a catch block with no exception argument preserves stack-trace.

That is

catch(Exception ex) {throw;}

Rethrows without meddling with ex.
You're assuming the people he briefly led and who worked with Eich for years thought of him this way. I'm hugely anti Prop 8, but "reprehensible bigot" is not a coat of paint I would use on all of its supporters.
He supported that campaign based upon his religious beliefs.
"We take no stance on RetailMeNot’s business model. (We like getting coupon codes too!) We also have no idea how the company achieved its SEO dominance. The company has no doubt put a lot of work into conquering Google."

The answer could be simple. As far as I know, RetailMeNot was one of the original coupon aggregators. (The domain was created in 2006.) It also seems to concentrate on natural SEO and does not seem to be cheating. Combine that with good quality content and you have solid SERPs.
I believe this result has important applications in cylindrical stack encryption; it's very difficult to produce a solution, but very easy to verify a given solution.
The temperatures there are very similar to Minneapolis. I guess distance from the ocean makes up for a lot of the difference in latitude.
I linked to another related puzzle elsewhere in this discussion: there appears to be a solution for 9 cylinders of infinite length but different radii. It's not clear what's known about the case of 10 cylinders.

So there are known solutions for 5 coins, 7 identical infinite cylinders, 7 identical finite cylinders (maybe more), and 9 different infinite cylinders.
Linux can not be completely understood by one man or even a team of them, and by the time you do figure out what you need to edit, the whole thing will have churned.

Linux is a complex operating system, and it takes a genius to understand the complexity.
Wow, he really comes of as obnoxious.

Yes what was done in Xerox Parc was really amazing and cool, but can you please contain your ego atleast a little?

This talk sounds basically like him explaining to everybody in detail how awesome his achievements are.

EDIT: The best point is where he explains with charts that 80% of people are basically sheeple...
If you ask some professional mathematicians, individually, why it is they're researching what they're researching, I think the most common answer will be "because I think it's interesting". There are areas of math without direct application to the real world. And so what? The idea that we should only do that which has some immediate gain is intellectually toxic. It stifles curiosity.
Playing the piano is easier than playing a violin. I would argue that a world-class pianist is about as skilled as a world-class violinist.

If you could allocate skill points like an MMO, the violinist is spending 3 points on instrument mastery, and 7 points on musical mastery, while the pianist spends 1 and 9.

I hate spending my limited skill points on "browser mastery," so I mostly do lower level things.
Very thoughtful post, and I wish it weren't buried so deeply. I agree with you, and that's what makes me feel so uncomfortable with this past week's events, as much as I disagree with Prop 8 on both moral and political grounds.
I'm not sure what you mean by "real world problems". Most mathematicians do mathematics because they find it beautiful, rewarding, fun, and for various other reasons that have little to do with creating things in the physical world. Mathematics is extremely interconnected and some minor discovery in a certain field can later become extremely important in some seemingly unrelated field, similarly - real world applications often arise unexpectedly out of things which at first seem completely theoretical (famous example: public key cryptography), and we cannot foresee in advanced what will lead to what.

Timothy Gowers - 1998 Fields medalist - gave a lecture in 2000 titled "The Importance of Mathematics". I advice everyone to watch/read it:

Video:
https://www.youtube.com/view_play_list?p=3641A12A6ADDB4B1

PDF:
https://www.dpmms.cam.ac.uk/~wtg10/importance.pdf

Edit: more philosophically, this question always seems puzzling to me, because we can always ask: whats so important about "real world applications" anyway? We can start from any activity and ask "why is it important?", and then ask the same about the answer, etc'. This chain of "why"s eventually comes to an end: we can still ask the question, but there is no meaningful answer other than the realization that the things which are important are the things people find important - whether it is to get faster from point A to point B, have a baby, go to a party, or to solve mathematical problems. Something isn't more important because it's in the "real world".
Plants, as mentioned elsewhere in this thread, are also capable of nociception. In advance of further discussion, my preliminary conclusion is that the vegan line is just as arbitrary as any other, but drawn so as to more tightly circumscribe those species on which the infliction of pain is acceptable, presumably out of a desire to inflict the least possible harm -- an honorable intent, but I think not honorable enough to satisfy at least some vegans, who insist upon seeing themselves as taking the only moral option, rather than merely the least practicable immoral option.

(I have to admit I don't really understand any of this dietary hair-splitting from the inside. My species has gone to a lot of effort in becoming this planet's undisputed apex predator, and as far as I'm concerned, I may as well get the benefit.)
This is very relevant to something I'm trying to build right now, thank you for sharing!
While I appreciate the effort, I think this primer is lacking what most other shader tutorials also lack: any information on how to actually do something useful. Shaders are used because they are faster than the cpu. So why isn't everything done with shaders? Because of limitations. So what are those? Most GPU tutorials only include examples of the form

FragColor = <some algebraic expression containing x & y>

That's nice, but hardly useful. To do anything of worth, I would need data from the CPU. How do I do that? What are the most common bottlenecks? What are some ways around the limitation of working with one fragment at a time? Those are the sort of questions I would like to see answered in a primer. A sort of "GPU introduction for competent CPU devs" - any recommendations?
Computational solution to quantum foundational problems
I think nowadays you have even more possibilities to play around then 20 years ago. You can use a Raspberry Pi for example and do some even more impressing things with just a few lines code of your own - building on a lot of open source software!

I have about four RasPis lying around doing doing things which where very much unaccessible for a hobbyist then. Just look at my current blog at http://µc.net to see a few (it's in german alas, maybe google translate can help here too..).
A good University will teach you things you would almost never come into contact with on your own.

I will give you some random examples from my own degree. Some concepts are quite practical and others are theoretical, but all of the examples below taught me -- as someone who had started programming when he was 12, back in the DOS era -- something new.

- Data structures. I had played around with them myself before I went to university, but being formally introduced to the concept of data structures: lists (Queues, Linked Lists, Stacks); trees (Binary, B-Trees, Heaps, etc.) and the performance characteristics of each and how you would apply them. In my university it was first taught with mathematical notation followed by practical implementations in Pascal.

- Learning Prolog in my first year. An entirely procedural language that uses back tracking to 'solve' relations based on rules and facts. I loved this class. Prolog's not terribly practical but it taught me a lot about abstract data types and 'recursion'. The idea that a list is defined as a head (the item in a list) and the tail (the rest of the list) which can be iterated over recursively was a major eye-opener to me, an until then hobbyist coder.

- Haskell. A stark contrast to Prolog and Pascal, I learnt the power of composability and the ability to capture complex ideas with very powerful constructs and a very strong type system. The language is lazy so you can operate on infinite 'streams' of items which is another interesting way of thinking about the theory of computation.

- We were taught how to specify a PDP-11 (RAM banks, CPU, I/O) using an academic language that uses "rewriting logic". It was a very theoretical yet practical way of specifying a computer using only mathematical principles. The idea that the number 0 and the successor function is all you need to define the natural numbers and, combined with recursion, basic arithmetic was again the sort of thing you never ever do outside University.

- Compilers. I wrote compilers using lex and yacc. I have used that theory -- and the theory of regular languages -- to great effect since then to formally construct grammars and parsers for tasks I needed later on in life. And I could do it effectively and efficiently without reinventing the wheel or coding myself into a corner -- which is easy to do with compilers.

- Computer graphics. Basic convolution filters; image processing and the general theory of 3d graphics.

- Graph theory. When I first took it it seemed utterly "useless" but it has since then been one of the most useful things I know. I grasped the concept of Git right away thanks to that knowledge.

- Operating systems. Networking. Basic security. Complexity theory (the study of algorithm complexity) -- and the list goes on.

I remember maybe 30% of what I learnt but I can quickly jog my memory or pick up where I left off. I consider my degree invaluable from an academic sense...

... but it did nothing to make me a better developer. That, unfortunately, is something you have to work hard at. I got lucky: I had already been programming for 10 years by the time I graduated.
This one is great. How do I get a copy of this one?
Be Glad That Corporate Liability Is Limited
Happened to me twice, songs that i created all by myself,without any samples or whatever were blocked on youtube because a third party claimed some copyrights on this,and there is nothing I could do.

Youtube has serious issues with abusive take downs.
About "just cool" thing: that discussion has been done a zillion times. On the one hand, it's just one of those funny problems: easy to describe, but far from simple to solve. On the other hand, I would say that mathematicians have earned the right to work on such silly problems, given that, if hey hadn't worked on similar silly problems before, our technology would be quite a bit less advanced. Half the world is built on the hobbies of mathematicians.

What surprised me is that http://arxiv.org/abs/1312.6207 (which gives solutions with 8 and 9 cylinders, if one let's go of the constraint that all cylinders must be of equal radius) claims a connection with physics.

(BTW, I found that link via http://www.mathpuzzle.com. Infrequently updated, but never has uninteresting new items (at least, to my taste))
Great read actually and definitely on topic - thanks for posting :)
No. IRNSS is not compatible with GPS.

https://www.quora.com/Indian-Space-Research-Organisation-ISR...
> So why does one persons definition of marriage take precedence over someone else's?

Democracy.

> I don't think you've properly thought anything through, as evidenced by your childish gambit of "You can't call me a homophobe because I said you can't".

Do you genuinely think I said that, or an equivalent, are you trolling, or are you just so angry you want to lash out at someone, like Heilmann mentioned in the article?

I cannot imagine how anyone would call someone in favour of gay marriage a homophobe simply because they can see the other side of the argument. So no, I don't really feel much need to 'defend myself', anybody attacking me from that point of view would obviously not be thinking rationally.

I think you're so angry you didn't even realise I share your stand on the matter.
Anyone ever try this with an analog synth?
Is this the unintended outcome of some kind of automated/algorithmic recognition process?
I'd love to know the nuts and bolts details of how they do it. I dug up some paid blog posts[1], but the links are rel=nofollow, so it doesn't seem like a link spam thing.

Anyone know any more details about their success in this area?

[1] http://www.frugalcouponliving.com/2014/02/11/retailmenot-com...
A practical suggestion Kay makes is that one way to brainstorm start-ups is to think of technological amplifiers for human universals [1]

[1] http://en.wikipedia.org/wiki/Human_Universals
Yes, if the radius is infinite. But I think this is not the case.
Pretty risky but I like it - if smart-watches are actually something people want, they should replace phones for people who want them at least to some extent. If they're just for gadget people, then they're not the big-deal that we're making them out to be and Samsung is doing it right.

Worth taking the risk I say. I don't believe in the smart-watch market AT ALL, but if it's a game-changer this form of smart-watch is it.
This is like a worst-case scenario for YouTube's compression algorithms, so it's hard to say how this would actually look on your screen. Rather than seeing the noise you just see the macroblocks even at highest resolution.
Train With Purpose: Are you wasting your time?
The big difference, and the reason most find low level harder, is that you can do a pretty bad job on front end code and still produce something of value. Whereas low level code tends to need to be more solid.
Depends on the laws of the specific country; this job seems to be located in India.

It also depends on the requirements of the job. If the job was to model women's clothing or to play a male role in a film, it would probably be legal in the U.S. For the job being advertised, it would probably be illegal in the U.S.