skysight-inc/HackerNews huggingface dataset:
I always use my own resolver, with powerdns recursor, because some ISPs resolvers are dog slow. If you have such a setup, it's really simple to set aside a tld for development.

On the powerdns recursor configuration, tell it to authoritatively serve a tld:

auth-zones=dev=/etc/powerdns/dev.zone

And then use a BIND style zone definition file. Something like:

@ 86400 IN SOA ns root 1 604800 86400 2419200 604800
86400 IN NS ns
86400 IN A 127.0.0.1
* 86400 IN A 127.0.0.1

Now, domains such as "newshiningapp.dev" or "imgonatakeovertheworld.dev" resolv to 127.0.0.1.
Go has beat the go lang for a few thousand years. Blame google.
A few years ago, I wrote a little crawler to run through the top 200k sites on Alexa, search for script references, and log them to a database, to get a sense for what the real usage of Google's jQuery CDN was in the wild[0]. IIRC, that took less than a day to run on the consumer broadband I was using at the time.

[0]: http://encosia.com/6953-reasons-why-i-still-let-google-host-...
Marc Andreessen's theory of the bubble in bubble-spotting
The ganglia graph was a nice touch.
The low sensor resolution means that nothing looks in focus. There's insufficient resolution (and maybe processing artifacts add to the issue?) for anything to look crisply focused.
now that's a resume in Github :)
Inharmonique 1: Risset's Arpeggio programmed with chucK
That does happen though. Apple could choose to not press charges and let him walk away free.
Yeah, they will. The problem is, that's going to result in seriously bad things when a genuine hostage situation arises, the police don't get involved, and a bunch of people die.

It certainly looks as if the situation was pretty well handled in this particular case.
Naming SASS variables
Did anyone else find the title font hard to read?
> our brain is the only organ, in all living beings on earth,as far as we know, that can wonder about itself

Obviously dogs won't write about their brains being sentient, but how do you know that they don't think about themselves?

Humans were sentient long before they knew how to write, or which part of the body is responsible for their thoughts. What makes us think we're so special?

I am quite sure dogs can predict future behaviour of simple systems and act on these systems to achieve their goals. Problem solving in dogs is widely documented and I think it suffices to assume at least some sentience.
I get a book, start a project with a goal, map out things that I know already to concepts in the new framework (Models to Models, etc...). I ask myself what is the same, what is different... I try to separate out language differences from framework differences.

I also try to understand the motivations behind making it, and what they were trying to accomplish as a goal. I have to try to make sure I don't force paradigms from another framework/language on this one.
depends on what you're trying to accomplish
What, from the police's perspective, is the alternative?

If they get a credible report of a dangerous situation, they have to take it seriously. The clock starts running the moment their phone rings, so they have limited time for countermeasures.

I surely hope they're doing their best to prevent obvious fakes from getting through. They have the incentive; getting pranked by a 16-year-old makes them look like idiots. And I really hope that their procedures and training mean that they're well prepared for situations where they caller was lying, confused, panicked, or just mistaken.

But I think mere anonymity shouldn't discourage them much. For a lot of people, calling the police is a complex calculus of risk. Are they safe from the police? Are they safe from retribution from criminals? Are they inviting too much trouble for others? [1] People being anonymous may not be a great sign of a false report.

[1] E.g.: http://tressiemc.com/2014/05/02/calling-the-white-mans-polic...
Anwar al-Awlaki could have had a trial anytime he wanted. He simply had to go to the American Embassy and turn himself in. As things stood when he was killed, it was impossible to bring him back for a trial without an unacceptably high risks to the people in the armed forces who would have had to capture him. If you wanted some insight on the complexities of operating within Yemen, I suggest The Black Banners by Ali Soufan. The subject of the book is the events leading up to 9/11 and Soufan was one of the FBI's top agents and strong critic enhanced interrogation. He invested the USS Cole bombing in Yemen and he covers the difficulty of working in country quite well.
The rights mentioned in the Constitution have been generally understood to apply to people in the US. Likewise, there was a time when rights did not apply to black people. It's certainly possible we could pass an amendment extending rights to all non-citizens, but it would have to be done in order for the distinction that irks you to be fixed. Probably the most realistic route for that to happen is that via the UN or other treaty talks, pressure is put on the President and Congress to pass such an amendment. But people who point to international law and then scoff at the US for breaking it really should focus their scorn on their own countries for shortcomings on foreign affairs politics with the US.
One thing that our application (processing real-estate data feeds) needs is the ability to figure out an approximate location if the address is a little vague.

For example, when we a vague address such as "Ichobod Crane Circle", we still want to get a position because that road is very short. However, if the address is something like "Sleepy Hollow Road" or "Murders Kill Road" (Coxsackie sure has some weird names), those are very long roads, and placing a marker anywhere on them would be meaningless.

Google solves this for us by providing, in the results, the bounding box of the result. When the match is not "street_address" but something else such as "route", "premise", "point_of_interest" or the like, what we do is take the bounding_box, calculate the area, and use the area if it's less than 500x500 meters. It's not optimal, but it's better than having no location at all.

Another thing that Google does semi-well is constrain the search to a specific area, like a country or a state. Unfortunately, Google doesn't let you pass in more than one state, but other than that, it works well. Some of the addresses we get are so vague that they would geocode to other countries (Oxford, England instead of Oxford, NY) if it were not for this filtering ability.
My strategy has been to fork a codebase that utilizes whatever framework or language I'm trying to learn and work backwards. It's often enough a feat in itself just to get the thing to run locally. Once I've got it running, I just start breaking things to learn how all of the pieces work. I've always liked employing a "top-down" approach, where I start with something complex and then figure out how it works.
Get the timezone (and related information: utc offset, local time, etc) from a lat, lng point or address
I don't mind the public knowing I am updating my resume, I too use moderncv and love how nice my resume looks with very little work.

What you mentioned about people liking the way the resume looks is absolutely true, but I still get a lot of people that ask for it in Word format, especially recruiters. I've in the past caught recruiters that have added/changed my resume to suite their requirements better, so having only a PDF actually helps stop that nonsense.

http://bertjwregeer.com/Resume-files/BertJWRegeer-Resume-Apr...

(Side note, I am looking for work, feel free to contact me!)
My advice for iOS in particular is to not fight the tools. I took a dislike to Interface Builder back when it was a separate program and only recently have I actually started using it to build interfaces and in retrospect it would have saved me a lot of time. The follies of youth!
Two options the way I see it:

* Offer unlimited access for more money (popular)
* Offer a cheap, simple way to batch requests of very large and/or unlimited sizes (e.g., CSV upload)

The latter is nice, because it's not worth it for me to upload a CSV file with 1 address in it -- I might as well use your regular API. And it's not worth it for just 25 addresses, either. There's some threshold where it becomes more useful for me to submit my addresses in bulk, and that's where the CSV files come in. It should be way cheaper for you to process a file with 1 million rows than it would be to process 1 million API requests, so if you were to do that, it would be a gold mine for businesses like mine that require geocoding capabilities for millions of addresses at a time.
The argument that we should send special operations forces every time to go grab people is a common one, but it falls short in several respects.

The first is that most people do not realize how long and difficult the modern training pipeline is for SOF. Operators are extremely valuable and hard to come by and you do not want to risk them unnecessarily when you have other legal means of accomplishing the mission. For example, it takes 12 months to even qualify as a Navy SEAL, and then another 12-18 months of platoon training before a deployment. Only a tiny fraction of those who start the SEAL pipeline actually make it through due to the difficulty of the training. It is for this reason that the Navy offers $40,000 to anyone who can make it through the training (http://navyseals.com/files/ChallengeSEAL.pdf) and reenlistment bonuses for operators can approach $100,000. And never-mind the cost of the equipment used during the operation. How much do you think the stealth helicopter that got destroyed during the Osama Bin Laden raid cost?

The second is that there is some serious armchair quarterbacking going on. I think its crazy to assert what our armed forces should and shouldn't do without a full understanding of what you are asking of them. The complexities of planning a SOF operation that goes deep into a place like Yemen are quite involved. For more on this, I suggest the book The Black Banners by Ali Soufan. It possible (and even likely) that a capture operation for Anwar al-Awlaki was either impossible, or possible but likely to end in the death of al-Awlaki anyway.
I like Gmail for their IMAP service. I haven't touched the interface in months, and only then to access the configuration. I don't understand why people even use webmail to be honest. Either you're dealing with a company manipulating the interface to push some other product, or they're desperately trying to reimplement something that has been done in multiple IMAP/POP3 clients for years.
Happening to others in the Bay Area? The Birds: Saratoga Edition
It would be good to know if that is Obama's legal justification, wouldn't it?
I hesitate to make historical comparisons because many are melodramatic, but I think it's fair to relate this time to another dark period in U.S. history.

The word "terrorist" has become so powerful that it supersedes judicial processes. In early 2002, federal agents harassed many of my friends who belonged to a mosque in the Northeast. Some were detained and abused by police officers. Sadly, this behavior has continued, further evolving into a vehicle for racism and religious prejudice. I recall a story on HN several months ago about a startup investor who was detained in an airport all day because he was Muslim.

If you don't like your neighbors because of their names, their traditions, the color of their skin or the smell of their food, you can simply call them terrorists. That word, even when it is devoid of concrete evidence, has the power to ruin someone's life. In this specific sense, our modern fear of "terrorists" reminds me of the power of the word "communist" during the 1950s, in the McCarthy era.

Eventually, most Americans saw McCarthy's so-called Red Scare for what it was: an excuse to act based on personal prejudices and political agendas.
Interviewers
@barrkel made a small mistake, confusing rand() and random().

rand() is the earliest C random number generator. Its low-order bits (back in the day) went through a predictable sequence, so rand() & 0x1 was a bad source of random bits.

I don't think that rand() was specified so fully as to make this behavior required, but typical implementations exhibited it, so you could not use rand() for any serious work.

random() came after, does not use a LCG, and thus fixed this problem, so you would not see it if your code calls random(), whose man page says:

The difference [between random() and rand()] is that rand() produces a much less
random sequence -- in fact, the low dozen bits generated by rand go through a
cyclic pattern. All of the bits generated by random() are usable. For
example, `random()&01' will produce a random binary value.

Typically, because of this screwup, people use a third-party generator, like the "Mersenne twister".
http://www.theonion.com/video/hp-on-that-cloud-thing-that-ev...
Of course there are situations in mathematics where the tightest proven bound is 10^10^48 and the conjectured value is 7.
A lot of people don't really like the first few chapters of the first Harry Potter book when they first read it. It is not uncommon for people to stop reading the first book at a few chapters in. Perhaps you should try something different for your first novel. I like the Chronicles of Narnia series by CS Lewis, his writing is short and to the point, but very descriptive in its own way. That may not be your cup of tea, though. You may want to ask friends or family who know your tastes better what they would recommend. Or just read the next 5 chapters of harry Potter and see if it gets any better for you- I think for most people it does.
It's fun to laugh but coffee has pretty much nailed added value and price discrimination.
The death penalty is supported by the majority of Americans, but not a huge majority. Gallup had it at 60% in 2012.

(Furthermore, there are of course many people who think that the death penalty is acceptable in principle but take exception with how it is currently carried out; possibly believing that our justice system is insufficiently just to use the death penalty.)
Also, beware of places like Carmel-by-the-sea, CA, where there are no street addresses! None of the houses in downtown Carmel have mailboxes -- they all have P.O. boxes at the post office downtown. If you try and geocode these, you wind up with the post office lat/lng and not the house! Frustrating as hell...
Where did the US government provide proof that their targets were actively planning attacks on civilians?

They didn't. That is the issue.

Even a secret in-absentia trial with an appointed defender unable to communicate with the person they are defending would be better than the current system. It would still be a farce, but it would be vastly better.

The current system is state sanctioned murder. Nothing less.

That none of the people in the chain of command is on trial for murder says all we need to know about the callousness of the US government.
... Fundamentally rethinking assumptions (like operating frequency) is probably critical to a breakthrough in inverter design.

Works fine except for the output which by spec has to be 50 or 60hz. I believe even existing designs use a boost switcher to convert x DC to ~ 200V DC before shaping it into something that looks nominally like a 110V sine wave.

So if you break the problem in two (input to source DC) and (source DC to 110V AC sine wave) then I completely agree that advances in SMPS design components and techniques can really help the first part, but I think we're still searching for a low loss power amplifier for the second part.
To be fair, Bokeh on the Illum is pretty poor, too. The M8 bokeh looks fake. The Illum Bokeh looks noisy and pixelated (and the effective resolution looks far lower than 5MP to me). I wouldn't bother with either.
I build something small and work my way up.

For me it works well to solve the little problems like routing, templates, etc. on simple/dumb things and add complexity over time.

Like, build a blog or twitter type app that maybe does basic CRUD type things, and has some kind of data listing etc.
This is not actually true. The District Attorney can choose to ignore Apple's choice.
Executing someone without a trial -- no oversight, no opportunity to defend one's self -- that does less harm to the rule of law than acting in accordance with the principles of due process as set forth in the Constitution?
> If you're happy with Go's "everything is a unicode string" approach then you should be happy to just treat everything as unicode.

That's actually not really Go's approach. In Go, strings do not have encodings attached to them.

Source files are defined to be UTF-8 (by the compiler), so string literals are always unicode. That's not quite the same thing as saying that the "string" type in Go is always Unicode (it's not). And when you're dealing with a byte slice ([]byte), you cannot make any assumptions about the encoding.

It took a bit to wrap my head around this when I first read about it[0], but now that I think about it, I think it's the right way to go[1].

[0] http://blog.golang.org/strings

[1] And for what it's worth, Go and UTF-8 were designed by (some of) the same people, so one would hope they'd get it right!
For only one million web pages, the job would likely be quite cheap. The Common Crawl corpus is hundreds of millions of pages and, given the right setup, only takes $10 to $100 to process, especially for relatively light entity extraction. More expensive operations, such as parsing using NLP tools, will obviously be more expensive.
Great work! Any chance to see it extended to non-time-series events, like an HN over Roshi?

At a very superficial level it seems to me that you can't implement a reorder operation within the model, but perhaps you can circumvent the problem with some tricks...
I started in mainframe languages, and have moved across to modern languages. I have a set of things that I perform in any language to gain familiarity: loops, nested loops, lists, arrays, dictionaries and other data structures, control structures, etc. All of the basic things that you know you will need. Then I usually set about how to setup testing - at least unit tests. I use TDD, so this is vital.

It only takes a few hours to go through these basics and get a tour of the language. I try to sit next to someone who is using the language if possible - they often have tips and tricks that they have found through trial and error, and can cut time off your learning.

I can generally become productive in a few hours. That affords me time to learn the deeper structures of the framework as I go along. Having that initial core understanding really reduces issues down the road.
Cool, what's your database?
Heh. This is a bummer. I hope they bring the Wallet back insider the Order app or elsewhere. I've been using it all the time, with merchants that accept Walle, and love it.

Unfortunately, it seems that only "progressive" merchants are the ones who enable pay-by-phone.

There was actually a merchant who told me they've disconnected the feature, because "people who live nearby, would often appear on their screen, when they passed by." I thought this was pretty much retarded, given those same people were their regulars, but whatever.

It's just a little sad to see cool technology being dropped.
Javascript only website alert.
To what possible end do you think the US would be killing these people if not to eliminate a threat?
Agreed.

Now how should we make sure that they are indeed trying to kill American citizens before we punish them?
We're not discussing the actual rules yet; the ACLU is asking to see the memo where the argument was supposedly written.

If and when the memo is produced, we can discuss its content; until it is, we should simply ask for it.

The whole concept of "secret legal memos" is the most preposterous thing I can think of. Secret orders may be a necessary evil; but secret legal justifications? What could that even mean??
And yours might be a perfect use case for it. Small home, highly irregular schedule. No issues there.

My problem is that these things are being sold at my local Home Depot as some kind of magical device. This is a bedroom community of probably 100,000 to 200,000 homes. A huge number of them are two story homes of 2,000 square feet and above with three to five bedrooms. Nest is a waste of time for these people. I actually have data on this. I know six people with homes virtually equal to mine (planned community) who bought Nest to save money and could not tell you if they've saved a penny. If there's an impact it's that small.

Las summer I convinced one of those neighbors to buy a $200 fan and use it as I suggested. He immediately reported a savings of over $300 PER MONTH on his cooling bill. He saved over $1,000 last summer and expects to save over $2,000 this summer.

That's why I say it's a scam.
we have a long history in real estate, very familiar with exactly the problems you describe.
Career Management not Job Management
Agreed. It's difficult at times, but it's completely reasonable for the level of software.

I am going through a complex install at the moment, and I am sitting in IRC with openstack developers to help solve issues.

I've done that with many packages in my life, so I don't think that's odd, but to be fair.. I have no idea how I'd be progressing without asking individuals in IRC on specific points.
I've had a Word document as my resume, but these days while using LaTeX I just have a PDF.

This has had two good benefits.

1. Recruiters can no longer modify my resume easily to match their requirements. Yes, I've caught some recruiters modifying my resume they sent on to the company to include more keywords. (Which incidentally is also why I bring my resume to jobs with me)
2. I can have a more consistent formatting that is enforced. I've found that even with Microsoft Word different versions across platforms would display my resume differently.

Even if recruiters/companies require Word documents, most of them are more than willing to take a PDF instead. Most online forms that pull information out of a resume can pull information out of a PDF just as well as out of a Word document.
Doesn't the following quote from the article contradict the
title's assertion that kids are not reading as well?

"Despite the large percentage of children with below-basic reading skills, reading scores among young children have improved since the 1970s, according to one test that measures reading ability.

The reading scores among 17-year-olds, however, remained relatively unchanged since the 1970s."
I used to think this way. In fact, when applying for a job, I would only submit my resume in PDF. I've stopped this.

I know you think you're doing good to the world by telling people to shove it, by adhering to your standards. But what you're really doing is exactly what you claim they are doing to you. The world works in Microsoft Office. 9 out of 10 computers have Microsoft Windows installed. Gartner has estimated that 9 out of 10 Microsoft Windows installations have some version of Microsoft Office installed.

With the advent of online document, spreadsheet, and presentation software popularity, and the fact the Microsoft Office documents are natively supported, it's a losing battle. There are good strong technical arguments why proprietary formats should not be used, even including open binary formats. You won't win that argument.

It doesn't help your cause either, when the reply back to your refusal to open a .docx is "Well then, install it, or don't read it." By you trying to force work on others, you will simply just be missing out on what the content of the document is. Unless, of course, you install LibreOffice/OpenOffice.org.

If you want to send open standard document formats to your contacts, go for it. But by demanding that the sender do extra work curtailing to your needs, so you don't have to do extra work installing office software, is hypocritical.

Get over yourself. No one cares.