skysight-inc/HackerNews huggingface dataset:
Given two developers, one proficient in Ruby and one in Go there would be probably no difference in implementation time for such a trivial problem.
This is the real solution and is required for solving the second large.
you can buy paracetamol in packs of 200? jeez. isn't this one of the main killers, though overdoses (many accidental)? i'm pretty sure size for otc sale is regulated in other countries.

paracetamol is nasty stuff - dying from it is not pleasant, and it's surprisingly easy to do.
NASA has funded SBIR topics on automating EVA scheduling; TRACLabs (based in Clear Lake) has done some of this work, see http://traclabs.com/research/our-thought-leaders/ and particularly work by Debra Schreckenghost, Pete Bonasso, and Scott Bell.
So NASA is developing automated scheduling tools and prototypes exist, they're just taking some time to reach your desk.
Coding time was actually not precious here. They gave about a day to do the qualification round but only eight minutes to run your program once you downloaded the input data, so the round was optimized for writing highly performant code at your leisure and then downloading the data when you are all set to go.
I like the idea of embedding n - 1 squares in each face, it is quite intuitive...but not fully satisfying. It would be nice if exactly six n - 1 squares would fit into the surface...but no, there are two additional uncovered cubelets. Two is again unintuitive to me - 6, 8 or 12 and I would be happy. On the other hand unintuitve results make me redo the work to find the mistake and so unintuitve results are less likely wrong and that in the end is a good thing.

After spending some more time thinking about my initial reasoning it became a bit more intuitive. I thought there are O(n^2) cubelets on each face and the error with the edges is only O(n) so the error should become negligible and it does - the linear error becomes a constant error of less than 1. I just expected it would approach 0 and this is not true.

And now I will stop bothering - my intuition is not the best in this area and I will just have to calculate everything. I just realize that I can not even easily say if the approximation over- or underestimates...we use some cubelets twice, so we under...over...underestimate the area of a face...no, over?...under!...
I feel that she was a child-genius like Ramanujan, but was unfortunate to be not "discovered" by a mentor like G.H.Hardy. She had great memorization skills and logical thinking, so obviously excelled at writing puzzles' books. It's a pity that her contributions to modern mathematics is zilch. I still wonder why didn't she take up number theory. She went into astrology (yea, not astronomy), which is still debated as a pseudo-science. She could've done so much, but alas it's too late now. But well, each person to his own, each -ology to itself. RIP.
Shakuntala Devi had also inspired an entire generation to read and understand her books about recreational mathematics. Her books like 'Puzzles to Puzzle You' were used to prepare for interviews in IT companies which used to have several rounds of puzzle solving.

She would probably be the last human (that I am aware of) who could beat a computer in arithmetic.
Haunting photos from the 2013 Pulitzer Prize Winners
I'm not a rubyist but it appears the OP was doing something like this:

for each range (start to sqr(end))

for each number in the range

check if the number is fair and square

If you do this you're checking the same numbers many times (total count of numbers checked is over 3 hundred million calls...)

The right approach is to first compute all fair and square numbers between 0-10^14, store the result, and then simply check how many are found in each range.

It turns out there are only 39 fair and square numbers between 0 and 10^14.

I participated in Code Jam 2013 and passed the qualification round using Python; after precomputing the fair and square numbers, checking ranges was pretty much instantaneous (for large input 1).
yes exactly, this is how a friend did it in jruby (he got a perfect score)
confused old people die from paracetamol overdoses. this helps reduce that, afaik (no evidence to hand, but read up on painkillers not long ago as i needed to take them over a fairly long period). and given that you could work around it easily, it seems that the cost to others is not so high...
He is entitled to his own opinion. I am glad for the four children I have, who I expect will be net contributors to the well-being of humanity.

AFTER EDIT:

The one reply to my comment here asks a pertinent question, which I hope I have given an adequate answer in a new reply. Meanwhile I will revise this comment to note that, as a subsequent comment has pointed out, there are already many countries in the world with negative population growth and a likely trend that the entire world will reach a peak population and then begin to have declining population while my children are middle-aged (and when I may, perhaps, still be alive). So, yes, RMS is certainly welcome not to have children if he is concerned about what bearing children might do to his family life or to the world as a whole, but I hope HN participants will be open to the possibility that some people choose to have children with their eyes open, knowing the trade-offs, and have a channel through having children to help you, me, and the whole world.
What is sys time? The amount of time it's actually run on the processor?
Once the old substances patent expires, any drug company can produce generics. There is no incentive to ignore patents and produce generics if the patent is expired because other companies will likely be producing generics, assuming there is actually a market for the drug.
I like the idea of building a bridge to other DNS providers - it seems like less work in the long run, for a much more reliable service.

Using CloudFormation to manage your Route 53 records will achieve most of the goals of this solution, although editing CloudFormation stack templates has a little more overhead than managing zone files.
To clarify, the Go program (which took under a second to run) was doing the same processing as the full Ruby program that took 50 minutes to run.
Atari 2600, too. AtariAge.com runs a store that produces and sells cartridges of homebrew development efforts. http://atariage.com/store/index.php?l=product_list&c=21

If you think the Apple II is a challenge, try programming for the Atari 2600. 128 bytes RAM, 4K ROM, two hardware sprites. And no frame buffer; "video memory" consists of a couple dozen registers. The graphics chip is one-dimensional; to draw a picture you must refresh its registers after the electron beam draws each scanline. It literally uses the phosphor on the TV screen as the frame buffer.

You can do "racing the beam" tricks with midframe graphics changes on many machines, Apple II and C64 and Amiga and even a DOS PC, but it's required to even display a picture with the 2600.
Bullshit. My iPhone 4S is unusable in anything less than cloudy daylight.
More importantly, thats something I should have thought to do before running this script for 8 hours. Would have eliminated about an hour of requests :)
“New from Apple, the HyperCard IIGS Developer's Kit consists of two 800K disks.”

I bet it’s way better than the old one!

http://store.16sector.com/index.php?main_page=product_info&#...
Note that it is Ubuntu etc certifying the laptops. You can't buy the laptops with the certified version of Linux on them, and for the model I own (T430s) the only version they list (11.10) is end of lifed in ~3 weeks. However Linux is likely to just work on Lenovo Thinkpads, although binary drivers may be problem if you pick an Nvidia GPU.

I'm also a member of the Thinkpad faithful. Other than screen resolution (grrr) and bezel size, they are delightful machines. It is trivial to change/update much of the hardware - they don't solder memory down, nor SSD drives. And Linux works perfectly - the only thing it doesn't support is the fingerprint reader which ironically is made by a company Apple bought not too long ago.
While I agree that people didn't buy applications, they definitely bought games. Not just in store either as can be seen by the success of Steam.
.. and indicate there are multiple people interested.
How is CipherCloud doing homomorphic encryption?
> So how do you measure $productivity_cost accurately?

With great difficulty :)

You're right, and I think your question helps strengthen my point - the cost of office space is just one factor.
Oh look, they're basically dissing this community to hell in the irc logs. For instance,

"10:10:24 <RodgerTheGreat> another HN gem: "I must say, that the syntax and semantics are not intuitive at all. I've spent half an hour trying to learn how does this thing work, and have not been able to.""

It's horrible to watch when a language community has this sort of a elitistic attitude, especially when it's doubtful that the language has any future.

Source: http://bespin.org/~nef/logs/concatenative/13.04.21
The real experiment is to run the script again and find out how many people are parking the good ones now that i've distributed this list
Thinkpads are amazing with Linux.
I am ready to swap for a macbook pro. All I want is a change of my dev machine. Thanks
I like this gem on the website:

“…while at present I'm not encountering any shipping delays, orders can take some time to ship. If you have a need to get an order processed quickly, please say so in your order comments!”

Just say so in the comments? I’m not sure I’ve ever seen that before online anywhere! :D
Your first sentence honestly makes no sense to me.

Here is why I say that. We all have the ability to drive, and are in fact licensed to do so by the government, yet far more people die by automobile then by firearms. More people die by falling down stairs then by firearms. More people participate in hunting in this country then any other activity, and it has the lowest number of injuries.
That being said it appears to me that you are seeking to deny people the ability to bare arms for the illusion of safety when there are many other things out there that are far more dangerous.
This wasn't news then, why is it news now?

Less is demanded of our voting system than of our ATM system. The irony is that it is the same system. People vote with their money every day. Western democracy is realized through the market system on a national level. Locally it is still in tact as a function of voting ballots and money.

Governance is largely about the use of limited resources and less about civil liberties. Civil liberties are largely a function of popular majority and politicians just reflect the popular opinion of the day.
Suhagra help in case of ED
Pakistani startup launches Kaptaan Shoes for Imran Khan,like Airbnb did Obama's
I don't agree with this. While you might not need a DSLR, you can easily do better than the camera in your phone.

I recently completed a family trip and left my Canon 5D mark III at home. Instead I took the pocketable Sony RX100. It created some beautiful images and didn't get in the way on the family trip. It also did worlds better than the camera built in to my or my wife's phone.

Here is an image direct from the camera: http://bedafamily.smugmug.com/Other/public/i-SmCN6Hf/0/X3/DS...
No, it is the amount of time your program spent in system calls: http://stackoverflow.com/questions/556405/what-do-real-user-...
That's not the case at all. We are anything but elitist...
This is a problem which is CPU-bound rather than IO-bound. Ruby, Python and the like won't typically show a great difference in speed when the majority of time is spent in IO operations (like web crawling, or text processing, running web apps, querying databases, etc), because the bottleneck on performance comes mostly from the slow reading of files and network sockets. In this case, though, the operations are mostly dependent on just doing computation, so a high-level interpreted language like Ruby really shows its limitations.

This is one of the (many) reasons why although languages like Ruby and Python are great for rapid development, on-the-fly updates and other reasons, it can pay dividends to be fluent in a high-performance language. It wouldn't even need to be C (although this wouldn't be hard to do in C) -- a language like D would give you excellent performance and nearly as easy development as Ruby.
Correct, I meant that FirefoxOS would be the open-source mainstream OS, not the linux mainstream OS. And I don't think that Ubuntu will be mainstream, because they don't have any partners while Mozilla have tons of partners and a schedule.
The Golden Gate Bridge shot is not level, a common problem when shooting off an LCD at arms length. And to me it ruins it.

A wonder that it wasn't corrected in-phone, simple post-processing is one of the great features of phone-based photography.
Laws are usually a compromise. I would say that preventing some suicides at the expense of forcing you to spend ten minutes to buy a year’s worth of painkillers is a very decent compromise.
I've met Pete. Unfortunately their solutions don't handle the parallel nature of what we're doing. They have essentially written an Eclipse plug-in if I recall correctly.
I'd recommend you do a Custom Search starting from 2/18/13, the date Posthaven was announced, in order to do a fair apples-to-apples comparison. The results are much different. :)
So in essence, financial security beats doing "the right thing", is that what you're saying?
> It seems disingenuous to say that facial recognition failed. As far as I can tell, all the images we had of these suspects were either very low-resolution, taken from angles, or both. Seems plausible that law enforcement didn't have any good candidate images from which to run a facial recognition search.

"Failed" might be too strong, but I'd definitely say it's not yet ready for deployment.

My impression is that the Boston marathon was extremely well-photographed from a variety of angles, by everything from nearby security cameras to folks in the crowd. This seems like the best kind of data set you'd reasonably expect outside a controlled environment (i.e., a lab or security checkpoint). If it's not yet good enough to at least flag possible matches based on this data, I'm not sure I believe it's ready for widespread use.
I don't know about businesses, but a lot of people go to Thailand for dental care or boob implants.
Yep, in a competition you want a language that had as little magic as possible. Languages like Ruby (not necessarily dynamic languages!) are just not really suitable for it
The game looks really fun. I'm going to get it now.

One thing I looked for and didn't see was additional tiers of contribution a la Kickstarter. The post-game credits tier, the t-shirt tier, the poster tier, etc. The art and game looks so fun I would've tossed in an extra $20 to support you guys and get a shirt.
>Rated as one in 58 million for her stupendous mathematical feats by one of the fastest super-computers ever invented —the Univac — 1108 —, Ms. Devi believed in using grey cells to silicon chips.

This is somewhat unclear. Wikipedia clears up what's probably meant here:

>In 1977 in Dallas she competed with a computer to see who give the cube root of 188138517 faster. She won. At an American university she was asked to give the 23rd root of 91674867692003915809866092758538016248310668014430862240712651642793465704086709659 3279205767480806790022783016354924852380335745316935111903596577547340075681688305 620821016129132845564805780158806771. She answered in 50 seconds. Her answer of 546372891 took a UNIVAC 1108 computer a full minute (10 seconds more) to confirm that she was right after it was fed with 13000 instructions.
Sure, I knew Ruby wasn’t going to be zomg fast, but I always assumed that if I chose the right solution and wrote in an efficient manner (memoizing, storing values/lookups that would be used later, limiting search spaces, etc), my ability to write code quickly and concisely mattered more than sheer processing speed.

I was wrong.

Sure, the author is wrong, but not because Ruby is slow (it is, though). He's wrong, because he did not find the right solution for the problem. Instead, he wrote a brute-force solution with a simple optimization, and did not realize that this is the real cause of his code under-performing, blaming the Ruby's slowness for it, when he really should have blamed the Dunning-Kruger effect.
That makes sense. Apologies if I was being flippant.
with so many distributed cameras, why not use them to make a composite, hi-def image, like we do with radio telescopes?
HDR is, in effect, like Auto-Tune. Used as it was intended, it can improve your results, but with the correction turned up beyond a natural degree, can give a highly artificial effect of its own (which has been overused).
Bitcoin exchange Mt. Gox taken down for hours by ‘another strong DDoS attack’
I believe there isn't currently any mechanism for the U.S. FDA to restrict number of pills sold of OTC medication, only the contents of each individual pill and the dosage instructions. The assumption is that OTC means purchase itself is unregulated, so you can order a truck-load if you really want to stock up.

The only cases I'm aware of where purchase numbers are limited for OTC drugs is when separate laws targeting drug precursors impact them, which is why you can't buy large numbers of pseudoephedrine tablets at once (they can be used to manufacture meth).

The FDA does seem to be reducing the maximum dosage of each tablet, though: from 2014 the maximum will be 325mg, so the 500mg tablets linked above will be phased out. But that change seems aimed at reducing accidental liver damage from excessive "normal" use, rather than aimed at reducing suicides from deliberate overdoses.
The presentation of data here seems misleading. The red-green glow around each point seems like it's showing some sort of range of toxicity or something, that anything in the glow is affected somehow. But it's actually just a highlight around the icon. If you zoom in, the glow stays the same relative to the icon, but the range on the map is greatly reduced. If you zoom all the way out, it looks like the whole place in in a red zone, but it's not that way if you zoom in.
> The number of amateurs walking around with a DSLR shooting in auto, is staggering. Why burden yourself with such a bulky device, not to mention the cost of it

Fashion.

DSLR's can be constituted as part of the hipster/nerd/geek/preppy fashion trend of today. So a lot of people striving for this look will plump the money and put up with the inconvenience to make their look complete.
>>Yeah I don't understand Apple - why still put old and slow 500GB 5400rpm drives

I can think of one reason - people who buy Apple products buy it anyway.

>>2012 13" Air and it's a perfect tool for a developer

Having been a user for last 6 months(after switched from Dell+Ubuntu) I can't agree more.
Pownce, Convore, Grove, all shared similar fates, I think its more indicative of the founder not the business.
Don't trust computers for voting. Bits are easy to tamper with, specially when the populace doesn't know shit about computers (and rightfully so).

You can envision a system as complicated as you want, but it'll always have some sort of flaw because, well, bits are bits. I've had this discussion with many people and the same solutions arise again and again... but most are useless.

You could get the source code for the voting program... what if your compiler is backdoored? You could compile the compiler yourself, with which compiler? The backdoored one?

And even﻿ if the compiler is trustworthy... who's guaranteeing that the real binary is installed in the machine? You could download it in an USB drive and check yourself or get a hash from the machine but... how can you be sure the machine is reporting the binary that's actually running and not just a fake reply? Could you trust the reported MD5/downloaded binary from the machine?

Easy! - you say - You could upload the binary yourself﻿ to the machine! But how would you be sure you're running the uploaded binary and not a fake one?

And what if any of the machines inbetween are rigged?

Then cryptoguys come in: you could digitally sign your vote (forget secrecy) with a state-issued certificate﻿ (we have those in Spain with our NID). Maybe encrypt it so that only the far end could read it. You'd then check if your vote's been cast fine online. But how'd you be sure you got the real result?

Once the data left the machine you have to trust that everything's fine on the receiving end. What if the vote count just ignores votes and just does whatever it wants?

And the worst of all... how's your granny supposed to check it herself?

There are some advanced cryptographic techniques relevant to e-vote (some are quite clever) but even the best cryptographers will tell you: do not trust electronic voting!

My advice is: keep with pen and paper! It's easy to tamper with too, but more people know how it works and it's easy to see the inner workings compared to bits over the wire.
Rather similar to VHEMT's reasoning:

http://www.vhemt.org/biobreed.htm#schopenquote

though RMS states his goal is simply less humans, not no humans.
My mom has Alzheimer's, and recently started hallucinating. After several (!) trips to the ER and doctor, someone finally thought to do a blood test, and found that she had a severe sodium|potassium deficiency (now I don't remember which). Turns out she was thirsty due to the dry climate and it being winter, and she kept drinking water, forgetting that she had just finished a glass, which led to the mineral deficiency, which caused the hallucinations.

I can't imagine how hard it would to control be if she was taking painkillers on an as-needed basis for a long time. People with dementia are often surprisingly clever and resourceful, considering the disease.
I believe this is the kind of request that's usually delivered verbally only.
Infinite HTML table by Simple
An Analysis of Linux Scalability to Many Cores (2010) [pdf]
If you want to have children so that they will help humanity (just about the only unselfish justification for having children), why not adopt instead?
A "source for this definition"? It follows logically from the fact that science is about replication and specificity. You're asking for an authority to tell you something when it would have made more sense to ask "why do you say that" or "why would that be true".

And I do know people who would use this definition: every single person I know who is a scientist.

I think it's a rather pithy distillation of the process of gaining scientific consensus. The source would be: "learn what the process of science is about, how it works and about the philosophy of science and this quote becomes a rather obvious truism"

A single study is to science what a single TDD test case is to software engineering. Despite what crappy news outlets tell you.

All that said, lutusp is being pretty negative about this study for no obvious reason. Someone needs to do the exploratory work at the beginning and this is interesting work, whether you call it science or the start of science. The rest seems like complaining about the press being the press.
The amount of time spent in system calls (i.e. the kernel).
You would have thought they would own the .com domain for their own trademark! Ask them if they want to buy it to stop others trying it.
I am not sure what I'd do, given I had a family to take care of and a house to pay-up-or-else, and I hope I will never be faced with such a decision.
For most photos taken by most people, a cellphone camera is fine - mostly because, as noted, it's the camera you have when you need one.

The pictures shown are indeed a testament to how good such cameras are. Such cameras are not, however, (relatively) large frame high color depth imagers with quality lenses - and it shows to those who know what they're looking at.

Yes you can get nice looking photos with a cheap camera. Framing & leveling the subject is a great place to start.