skysight-inc/HackerNews huggingface dataset:
The l (lowercase L) and the 1 (one) look really similar. Could that be the cause of some confusion? Of course, the function name helps, but most developers have learned not to trust function names to be an accurate description of what the function does, especially in tricky interview questions.

Still, I'd change this to something like:

def append_five(l=[]):

l.append(5)

return l

It tests the same thing (knowledge of how default parameters work), but without the confounding problem of similar-looking characters. Of course, syntax highlighting would help the applicant out.

All of that being said, I still don't doubt that many developers don't know what they should about default parameters.
SVG performance on Firefox is abysmal. Even MSIE10/11 handles it much better. Start a petition to get Firefox to handle SVG as well as all the other browsers.
The maps on the OP's posting only show the location of cell base stations, not the positions of mobile devices. There is more of them than you realise...
Snabb NFV is the main software being built on the Snabb Switch base right now: http://snabb.co/nfv.html
It is not just a few percent for applications where userspace needs to look at each packet. There are some performance comparisons on the netmap page for example http://info.iet.unipi.it/~luigi/netmap/
There are many use cases for graph databases and analytics
The article glosses over the fact that wards rounds are typically an exercise that requires vast amount of highly dimensional data. Hidden in the article is the requirement that the information - lab values, vitals, patient location / status, problem list - must be maintained electronically. This by itself is already very hard, especially as paper records never have downtime / network issues and do not talk back when invalid values are written.

Please be assured that the state-of-the-art is not as described. Sufficiently advanced hospitals would have means for healthcare workers to access vitals, lab values, patient location, current medications, current problem list / diagnoses, medical history from previous days and even previous visits, and even medical history from other institutions - all electronically. Staffs enter data into system directly and no transcribing is required. These are available as discrete data i.e. not freetext strings only decipherable by humans.

Also don't forget about electronic prescribing of drugs, glorified vending machines with pockets that only open when there is an order for that particular medication, and barcoded medication administration system.
A family member of mine has celiacs and we get this BS all the time. If her food is even prepared next to gluten, she gets sick. Often the waiter will say it is gluten free and then she begins to break out in a rash and has to go to the bathroom to throw it all up. This annoys her when we go out with friends who are "gluten free," ask all over the menu for gluten free options, don't like them, and then order beer and a burger instead.

Gluten free diet is a fad, much like many diets. I am grateful for the increased selection though, as I am not a celiac and the more gluten free food there is, the less often we need to buy two sets of groceries.
I think the main reason is the lambda syntax. List comprehensions also let you do filter and nested loops.
I think it could be a question of who he compares himself against. For example, if he's comparing himself to Field's medalists, then he might feel that he comes up short.
Having nude photos of oneself on a device that is easily stolen in an easily accessible, unprotected manner sounds pretty stupid to me.
that is a very interesting project. How does the 170ns latency compare to others? This isn't really my area of expertise :p
Amazon Stands Up To FTC Demands For More Parental Controls
a little bit yes. if you didn't make that knife they may have found another one... but that doesn't stop that they took your work and used it for harm.

i'm sorry that reality is harsh.
AMA: G. Greenwald on the Muslim-American leaders spied on by NSA and FBI
At Risk for Burnout? Here's How to Tell
Indeed - when you consider that the purpose of the US military machine is not to defend the US, but rather to be a vehicle for vast spending and dissemination of government funds to private contractors who lobby for their bread, it's fair to say that these uniforms work perfectly.
It's very haunting. I never realized the lyre could sound like this.
+1 Excellent, thanks for that link.

BTW, one of the things that I was the most pissed off about after watching the movie is the shameful targeted advertising to toddlers, young children, pre-teens, and teens. This targeted advertising at children is illegal in almost all of the developed world, except the USA.

The other big take away from the movie is to not eat sugar, which also means avoiding almost all processed foods. When food became low-fat, the food industrial complex started adding sugar, lots of it.

That said, if you like sugar and processed food, then enjoy :-)
Well there was that generation of web designers that believed the world was 1024x768 (or 800x600).
Is that whole gamification thing really over?
That's a pandas dataframe (idiomatically denoted df), not a list. It has funky slicing properties, and he's selecting columns of the dataframe in a perfectly valid way.
It's definitely a fair penalty, I'm not disputing that.
Starting Up: Deciding to Make the Leap
Proper title: We are Glenn Greenwald & Murtaza Hussain, who just revealed the Muslim-American leaders spied on by the NSA & FBI. Ask Us Anything.

I was forced to chop the title to conform to HN's 80 char limit.
>I'm happy that it works for you, but many people have complex infrastructures that aren't easily deployed with virtualenv+apt-get alone.

For your development environment? Seriously?

>I wish I could deploy our python apps with virtualenv alone

I thought this was about dev environments? For deployment (and testing deployment) I use a virtual machine too - vagrant/virtualbox + ansible. Yes, I wouldn't want to pollute my computer with that stuff either.

I wouldn't want to develop inside a virtual machine, though.
Sorry, I didn't ask "that no main stream media links get posted here." - I just didn't want to register.

In any case, I'm here for discovering non-mainstream-media news.
I know there is someone affiliated with the SAGE group who is a contributor to HN from previous comments, which I seem to be unable to find now. I wonder if they can share any details on how this was discovered, just something seeming fishy to an editor, or some kind of fraud detection algorithm?
>> Not a lawyer, let alone a Texas lawyer.

Are you insinuating that Texas lawyers as a mass are bad or good?
The way to go gluten free is to make your own food, mainly fresh vegetables, fruit, and some high quality meat. Maybe it is just my tastes, but getting carbohydrates from cauliflower, carrots, yams, etc. is just tastier.

But yes, I agree with you that the food industrial complex has jumped all over the gluten free trend.
http://webcache.googleusercontent.com/search?q=cache:U_pU17L...
It's more condensed horizontally, but has a greater line height. As a result, I can see less lines at a time with this font.
Yes. My 6 y/o son has celiac and this is by far the biggest issue now. The awareness of what gluten actually is is nice, but the default assumption is now that it's someone who's voluntarily dieting, which can create some bad situations. We always make it a point at restaurants to not simply inquire about GF, but emphasize that our son has celiac in the hopes that they think, "Oh, this isn't some lame fad dieter, I need to really ask the chef about this."
I think it's a general problem of large organizations disconnected to their output, of which the US Army is one. So are most large public universities. When there is a large gap between the payer and the user of activities, and an organization has a monopoly or competitive moat, then inefficiency and rot happens.
Native Advertising: The Adblocking Antidote?
Gluten free hasn't really hit Europe in the same way so I was really amazed when I tried a gluten free pizza for the first time a couple of weeks ago. Eating half a pizza and not having a dough-baby afterwards was quite a revelation. Can't say I'll be going gluten free but I can see how it would be a nice option to have on the menu.
Funny, why was this removed?
“Speaking up every. Fucking. Time”
Wired Hype List (1993)
In the comments, there are insults and insinuations and implications of a negative manner towards Texas and Texans. Engaging in such negativity does not enhance or otherwise bolster one's stand in the general pragmatic view of the world.
Did those $400BN go to the military? Or to the private contractors that designed and built the plane?
Odyssey.js – A JS framework for telling interactive stories with maps
Considering Russia just recently snached an Ukrainian soldier Nadezhda Savchenko from Ukraine (who had previously been taken hostage by Donbass separatists), they really have no higher ground to stand on.
You wasted a lot of time and money...
In the months since I was diagnosed with celiac disease, I have almost eliminated restaurant meals from my lifestyle. Regardless of whether the wait staff are visibly hostile toward my request for gluten-free food, I usually become sick after the rare occasion when I do eat out. I know that I should eliminate restaurants entirely but it's difficult to wholly pull away from the shared experience of food with friends.

Far more frustrating is the experience of shopping in the grocery store. Though I've been told by a dozen people that I have it so good since there are so many gluten-free foods, easily 4 out of every 5 foods labeled as gluten-free also mention in fine print that they are manufactured in a facility that processes wheat, which is unsafe for celiac sufferers. Even the upcoming FDA standard of <20 ppm may be enough to cause problems in those with celiac disease.

It is a wonderful thing that strictly avoiding gluten has mostly ended the constant migraines of the past 15 years that inspired my username here. Though it's a surprise whenever I get glutened and the migraine returns with a vengeance.
This is really interesting. Thank you for posting!
Really it's just celiac disease as those who claim a sensitivity to gluten may have some other food-related ailment.

http://guardianlv.com/2014/05/gluten-sensitivity-does-not-ex...

The above link is linked to in the article.
Someone Flew a Camera Enabled Drone into A Fireworks Display
Why on Earth is Russia upset about a credit card fraudster getting nicked? And "kidnapping", no less.

Surely this is a good thing for everyone? At worst it's neutral, if you believe in a competitive free market among thieves.
oh yeah, all military spending is just soooo stupid ... say people writing comments on something originally funded by the very same military-industrial complex, living in an area largely funded through said complex after ww2.

but we like drones and robots, right? boston dynamics, the darpa challenge, ... oh what a WASTE.

and the technology invented and developed for this plane will appear nowhere else, ever. that's how tech innovation works, all dead ends.
>> It would appear this nation's military is a fat, bloated welfare recipient

This can also be said in regards to a large populace of Democratic voters.
Ask HN: Bootstrap theme/template for documentation
I'm writing a user manual using the default bootstrap styling, similar to http://getbootstrap.com/getting-started/. It's just not that readable for me, but I've zero asthetic skills.

I prefer, say, the github styling - https://github.com/styleguide/css. Anyone have / know of any custom bootstrap styles with a modern, clean look for documentation?
Map and filter, of course; less syntactical noise, simple function semantics, and plenty of precedent and equivalents in all other languages.
I tried OCaml once. It was to figure out the algorithm Yaron Minsky (author of linked article) used for his orbital simulator, Planets. I only learned enough to port the code over to JS, and quickly forgot it. Coming from a procedural programming background, the learning curve was too steep for OCaml.

Here is Minsky's Planet's project, by the way: http://planets.homedns.org/
HubSpot's Dharmesh Creates Epic SlideShare on How to Market Your Startup
Obama runs the Whitehouse and has for 6 years, so is he responsible? It didn't take him long after signing on to fire the NASA administrator.
Pyxplorer – Interactive Data Profiling for Big Data (and Small Data)
State lawyers are well versed in state law. As this is a state case, involving state law, a Texas lawyer would be required to make knowledgable statements on the case. A lawyer of another state or country could likely recognize some similar language, but would not be well versed in Texas law.

This would be like someone commenting on a Java article by saying, "I'm not a programmer, let alone a Java programmer."

I didn't read any insult in his comment.
There are a lot of flaws in this suit ... another is calling whitehouse.com a cyber-squatter. They may be attempting to profit via "misdirection", but they set up a site and business around that domain name.
C# is absolutely a static language that lets choose if something is nullable or not, there is no "kind of" about it.

> But really, at that point it's just sugar for an option type.

No, having a the free choice not use nullable types doesn't make the languages nullable types into sugar for option types. Nullable types don't compose the way option types do -- the issue in the article this thread is about isn't about whether or not you have the choice for nullable types, its about the fact they don't compose so you can distinguish a function returning a null as a substantive value because the thing you tried to store was also a nullable type and had a null value (Just None, in a world with Options instead of nullable types) or where the null is a result of the lookup failing (None, in a world with Options instead of nullable types.)

The deficiency of nullable types in C# compared to Options isn't the lack of choice of writing non-nullable types -- as you certainly have that choice for any data you need to represent -- its that nullabe types don't compose the way Options do.
Because standalone iBeacons to trigger geofences is not what I believe Apple intends to use them for. This is what Estimote is selling.

Sure the geofence triggering is kinda cool, but I've yet to see a practical use of it. Seems like "interactive museum tour" is the thing everyone keeps coming back to. If this is what Apple wanted to do with iBeacons, they would be selling them for a couple bucks in Apple Stores. But iBeacons aren't a consumer device. I think much more likely to see "iBeacon ready" hardware sold by Apple and other 3rd parties.

I think iBeacon protocol will become part of other devices, as a way to add proximity detection for the iPhone/apps that could interact with that device.

How about a DSLR camera that I can pair with by touching my iPhone to it? Creating ad-hoc multi-peer networks between devices by being near them. Play a game on your phone on a nearby TV without connecting to same WiFi. Or wearables knowing which other wearables are nearby. This kind of natural, "magical" interaction is very Apple.
Why would someone do this?
List comprehensions are more flexible and easier to read in the non-trivial case. Sure in the trivial case you show a map might be considered neater, but just adding a filter is enough to make the list comprehension more readable in my mind. Python's lambda syntax also makes using maps and filters quite ugly.

Compare:

alist = [x**2 for x in mylist if x%3==0]

to

alist = map(lambda x: x**2,filter(lambda x: x%3==0, mylist)

Plus python also has set comprehension and dict comprehension, which share essentially the same syntax.
>I have a friend with Hashimoto's Thyroiditis. In recent years several studies have found a potential connection between Hashimoto's and celiac disease (it is still being actively studied, and the link is not conclusive), and so some doctors are beginning to suggest that people with Hashimoto's remove gluten from their diet.

Do you have any more info on this? I have a friend with Hashimoto's and I'd be curious to find out if this is an approach widespread enough that she might have heard about it/to point her that way if not.
This is true but mostly an issue for games. With multiple OEMs and multiple sources of GPUs and drivers - significantly more than for PCs, the only solution is for driver quality to improve. History suggests not holding one's breath.
>She is now entirely gluten free (and has been for over a year), and is often irritated at people judging or questioning her gluten-free diet because they immediately assume it is nothing more than capitulation to an idiotic fad.

She shouldn't be, because 99 times out of 100, it is nothing more than that. It's a fine fad, though, because it doesn't harm the sensitive dears who have taken it up, and it brings a massive array of options for people whose diets were extremely limited before.

If somebody can come up with an anti-peanut dust fad, I'd support that too.
I get a message saying: "Subscribe now for unlimited access, or register to continue reading. You have reached your article limit."

Sorry about the rant though, I could read the article in incognito as @bryanlarsen suggested.
Why You Need a Strategic Data Service
Those are not equivalent. You need to wrap the map in a list() call.
Absolutely. The Marines designed an "innovative" uniform that worked better than the status quo and increased esprit de corps because it was distinctive. The problem is the ridiculous "me too" copycat designs that proliferated since then. Everyone I know hates the Army's "floral couch", the Navy's "hope I don't fall overboard", and the Air Force's tiger stripes.
Can you clarify?

def foo(default_arg = []):

Why can't that just be shorthand for:

def foo(default_arg = ParamNone):
if default_arg == ParamNone:
default_arg = []

How would that break first class functions?
One thing that the op doesn't address is that the top 10 devices they have selected account for only a fraction of android market. I think there is an implicit assumption that if you cover the top 10 device models you can consider that a proxy for the overall android market but the original fragmentation report shows that to even cover 50% of the market you need to consider around 60-70 device models.
"Processed food" is such an obnoxious phrase. The popular meaning is clear enough, but it ignores the fact that a modern grocer more or less exists because everything there goes through processing (trimming, washing, butchering, baking, blah blah blah).
Article title is not supported by the article, unless you can honestly count two cranky people as the beginning of a backlash.
(Laws differ by state, so even a California lawyer might not know how a given law works in Texas, for example)
Splash screen, loading screen, Adobe Flash, microscopic typefaces. Feel like I went through a time warp to 2001.

Also does not work at all on Chrome for Mac.
Interestingly all the latest research has been pointing to another culprit (FODMAPs) in those claiming non-celiac gluten sensitivity. Some relevant links:

http://www.ncbi.nlm.nih.gov/pubmed/23648697

http://www.realclearscience.com/blog/2014/05/gluten_sensitiv...
PlanGrid is looking for senior iOS engineers
Want to own a product that’s transforming the construction industry?

Our users build some of the most amazing construction projects in the world, and our iOS app is used everyday in the field.

As an iOS engineer, you will tackle some very difficult and interesting challenges. Things like:

- Marking up construction drawings with sophisticated annotations

- Pushing the capabilities of tablets with demanding data requirements

- Making very powerful tools that are easy and intuitive enough for construction professionals to pick up and use

PlanGrid is a team of 35 construction engineers, software engineers, and ex-rocket scientists, building intuitive, beautiful tablet apps for construction. We’re reinventing the way builders access information and are looking for an amazing engineer that wants to take the lead role on an app used by over 200,000 construction professionals.

We've been around for three years and we're growing fast. Unlike a lot of early stage startups, we measure our growth in revenue, not users, and it's been exponential since the day we launched.

Learn more about us here: plangrid.com/about

We’re located in the Mission district in San Francisco (5 blocks from BART).

Perks:

- Unlimited vacation

- Construction site tours of cool SF projects using PlanGrid (past tours: Github’s new HQ, Square’s new HQ, 101 Van Ness)
- Tahoe trips

- Annual company workcation (this year: 2 weeks beachside in Belize)

- Work from home Wednesdays

- Health/dental/vision insurance with zero contributions

- Whatever gear you want (most engineers have a retina MBPs and Apple Thunderbolt displays)

- Free transit pass

Interested? Send your info to: jobs@plangrid.com
Show HN: C++ Toolbox for Reinforcement Learning and Planning
Publication is a high-stakes game for academics.
This is by design. Lockheed first learned how to game congress with the B1B (another useless plane).

Here's the recipe:

Talk to the military, see what's giving them a hard-on these days. Get them to start coming up with a project to put on contract.

Military issues Request for Information/Request for Proposal based on requirements you told them to use

Contact any and all congressman. Let them know that you intend to make widget X for Aircraft Z in their respective District. Ensure that virtually every congressional district in the country contains a business that is making at least one or two parts for the aircraft.

A new general comes in who is honest, realizes the weapons system is useless, wants to can it. Congress says no, we need it. Who wants to be the guy who threw away jobs in his district?

Critical general leaves, is replaced by politically minded General who wants to be in charge of a "successful" program, drinks the kook-aid and pretends its not a giant boondoggle.

Profit.
How does this compare to netmap?

http://info.iet.unipi.it/~luigi/netmap/

netmap / VALE is a framework for high speed packet I/O.

Implemented as a kernel module for FreeBSD and Linux enabling memory mapped access to network devices.
I think the parent poster was referring to kidnapping someone and taking them to another country with no due process where the kidnapping occurred. Probably against international law/treaties? I have mixed feelings about this: really bad re: the kidnapping, but glad to see a credit card scammer get busted.
Just like half of the other commenters, a team I was on built something similar at PennApps (a college hackathon) back in Februrary. It was a really fun project to work on.

(http://tracktimeapp.com)
Defense job creation is appealing because it's an easy way to use federal money for local benefit. If you want to fix bridges or something, you have to deal with people saying it's your state's or city's responsibility, but everyone agrees that defense is the feds' job.
This isn't Reddit. I don't come to HK to read memes or "jokes." Please contribute something more substantive.

You could have made your point about hunger and priorities without it turning into an "America!!!" gag. Then maybe someone else would have replied and the conversation would have moved forward.
How To Test The Startup Lifestyle Before You Commit
Those are not equivalent.

You cannot index a map object, for example.
Cool Map – Semi-finals #BRAvGER: How Brazil v Germany played out on Twitter
Sure, if you consider 4% large [1]. Or maybe you're thinking of the 15% too poor to feed themselves. Which is about the same thing as building a $400B plane.

[1] http://www.statisticbrain.com/welfare-statistics/