skysight-inc/HackerNews huggingface dataset:
Seems like I remember (back in 2005-6) taht the JSF/F-35 was well within budget and on time BEFORE the F-22 was cancelled because of the explosion in costs that now confronts the F-35. Can anyone corroborate that or am I totally off? It really seems that once the F-22 was cancelled the F-35 became the new 'cash cow' so to speak.
Often shots on goal or number of corners are used as a proxy variable because those events occur much more often than scored goals. But you're right that football is incredibly hard to model. For example, what would happen to the Argentinian team if Messi gets injured? Any pundit can tell you that it would probably be "really bad", but quantifying exactly how bad is currently impossible.
Nope, they are dead wrong. I was in the Army during both Bush maladministrations, and the Marines doing their own thing was one of the proximate causes of the horrible Army ACU (as well as the weird Air Force and Navy blueish camo thingeys). From what I remember the Marines (RAWR, because they are MARINES, TOUGH!) didn't want their camo licensed out to the other branches, so the everyone went their own way. How is this cost effective? It certainly makes getting uniform apparel that much harder on joint bases (where they have to stock everything, like the Presidio of Monterey), or isolated people in Guard/Reserve units, whose nearest active duty installation may not be in their branch.
You're welcome Paul. For #1, see if you can look up my profile in the datastore. My LinkedIN and HN handles are similar.
an anti-pattern is a design pattern gone bad. these aren't anti-patterns. they're just noobie mistakes and non-idiomatic expressions.
> Dave Thomas, the author of Pragmatic Programmer and Programming Ruby (arguably the book that helped Ruby grow pre-Rails), has written a great book titled "Programming Elixir"

I bought this ebook when it was first released. The level of care Dave has given to it is astounding. I believe he's released at least 10 significant updates to it as the language has evolved.

Maybe he said somewhere on the book's marketing page that he was going to be doing that, but if he did, I missed it. Extremely pleasant surprise.
Someone who suffers from "binge drinking" may not be a candidate for AA. I think a lot of people could benefit from programs that catch addiction in the beginning phases.

Most addicts dont start out abusing substances heavily from day one, if we had more programs that focused on the early addiction phase then we may be able help many people who are teetering on the edge.
I personally think the priority queue one is somewhat simpler than a fixed array algorithm. It also produces an infinite list of primes (or generator) instead of the primes up to a particular number. This is especially important in Haskell.

I'd love to see it as it shows off some great data structures available in the libraries (like priority queues) but it's getting longish.

The mutable array version is basically the same as imperative code everywhere

sieveUA :: Int -> UArray Int Bool
sieveUA top = runSTUArray $ do
let m = (top-1) `div` 2
r = floor . sqrt $ fromIntegral top + 1
sieve <- newArray (1,m) True
forM_ [1..r `div` 2] $ \i -> do
isPrime <- readArray sieve i
when isPrime $ do
forM_ [2*i*(i+1), 2*i*(i+2)+1..m] $ \j -> do
writeArray sieve j False
return sieve

It's a bit noisy syntactically and doesn't show off as much interesting stuff.
~/rust $ find -name '*.ml' | wc -l
72
~/rust $ find -name '*.ml' | grep -v ./src/llvm | wc -l
0

i.e. there are some OCaml files in a Rust checkout, but they're all part of LLVM, mostly part of the "OCaml Kaleidoscope": http://llvm.org/docs/tutorial/OCamlLangImpl1.html
sounds interesting.. but doesn't Flowdock do that too? We're using it with our team and it integrates seamlessly with GitHub and much more.
Nothing on the merit of the article, but the actual name of the publisher is "Hachette", not "Hatchette". The title looks like a hatchet job currently...
Hi originell,

Felix from ChatGrape here - thx for the question.

Our chat sets itself apart by deeply integrating your services like GitHub (already available), Google Calendar, Drive/Dropbox (both next week), and many more, referencing them right as you type.

This makes your communication a lot more efficient and eliminates misunderstandings, cutting the time you need to coordinate in half.

Hope that helps :)

- F
Online voting: can the ballot box ever truly go digital in Europe?
As usual when there is a word I recognise, I go looking for a Swedish reference in the docs/founders/etc. And sure enough the guy is currently a Swedish citizen.

Snabb means fast/quick in Swedish.
IANAL either, but the lawsuit doesn't say that TOR knows specifically about Pinkmeth. Instead the weasel words of "knowingly assists websites such as Pinkmeth (in committing torts)." (Page 3 of 30, or page 5 of the PDF). So not really a lie, but more just a paper-thin excuse that (again, IANAL) I wouldn't expect to really tie the TOR project to it, especially as TOR couldn't stop it if it wanted to.

EDIT many edits
Understanding The Backbone Mindset
They're not necessarily new, but addiction (even for alcohol or gambling) is closely tied to drug use and thus it's sub-optimally political.

That's a shame because research is difficult and also ignored if politicians find it doesn't suit their view.

Substitution therapy (eg, methadone instead of heroin) has strong supporters and detractors and it's hard to get good quality research to see whether substitution is better than abstinence.

Indeed, Russell Brand (comedian, actor, addict) has been talking about the benefits of abstinence based treatment and asking why it's not more available in England, which suggests to me that most people don't get abstinence based treatment. (Although he's talking about drugs and not alcohol).

It is weird that cognitive behavioural models are really old now and are only just starting to get a lot of use.
Go principles in Agile: Choose backlog items that serve two purposes
US nabs alleged Russian hacker – and Kremlin cries foul
I'm a bit torn on it.

In a case where you need to do a lot of nested appends, I've found that even a long list comprehension can be easier to read. You just have to be sure to properly indent it and break it up into multiple lines. My rule is that every extra `for` starts a new line, and sometimes moving the predicate to its own line when it's too long, too.
That thesis looks insteresting, but is also 472 pages. Is there a TL;DR version?
I do not really think that's true...
Not what the research actually shows: http://www.washingtonpost.com/blogs/wonkblog/wp/2014/06/09/h...
Facebook: Do not sell off our information to advertisers
Do tweets have location data attached to them?
This is not an issue for me, because - which is strange - the diff viewers I use seem to be more advanced than my editors, in that the diff viewers can ignore unimportant whitespace changes while editors can't handle alignment properly :-) But that is a trade-off, of course.
This is not pro se.

She has a real lawyer representing her.
It is, sorry. I was writing that all without checking it and I can't edit now.

I wrote a post elaborating the ideas here: http://tel.github.io/2014/07/09/calkin_wilf_for_early-ish_ha...
Breath of fresh air in hip-hop
Nobody likes nickel and dime stuff. I'm not paying a quarter to read a single article when I could subscribe to a whole year of the New Yorker for $15.
So maybe instead of adding a layer of technology and all of the costs, privacy concerns, reliability concerns, etc., all that's really needed is basic handwriting training, practice, and expectations of legibility for doctors.

Something, something razor.
Indeed. I'd also like to know if there are any alternatives that offer similar performance in an OSS wrapper.
Remove a `static` keyword from C (used inside a function) while you're at it...
Even the one-liner form at the end?

This comment was really bad at exposition, but I think it got somewhere nice.
Have you tried Psychonauts? It wraps the adventure game in the structure of a platformer, and is hilarious and charming. Not surprisingly by Tim Schafer.
> Or that the "slight variation in width" he mentions should not also be taken care of.

What exactly is the issue with this? Just like with any other sane widget toolkit designed since the 80's for varying screen or window sizes, Android's layouts and widgets work perfectly fluid to occupy more or less space. One layout works just as well on a 4-inch phone as it does on a 5.5-inch phone, and it will naturally fit more content on the bigger screen.

The only problem is with tablet screens where blowing up a user interface designed for a small phone screen technically works but is pretty terrible to use. This is no different from another unnamed mobile platform where you also need to design a separate tablet layout.
Retraction of 60 articles implicated in a peer review and citation ring
After reading the Wikipedia page on this plane, you'd have to be crazy to buy it: http://en.wikipedia.org/wiki/Lockheed_Martin_F-35_Lightning_...

Note: it's a long article
Hi Menlo,

Flowdock lacks the same thing every other service currently does: They just create more noise with external service connections, instead of eliminating the biggest time killer of any fluent communication: The lookup factor.

This is basically the time you spend every week looking through your GitHub issues, Calendar entries, File Storages while coordinating with your team members.

By indexing your services and making them available to you inside an autocomplete we are attacking that problem and effectively making your communication faster, the more services you connect.
It would appear this nation's military is a fat, bloated welfare recipient, feeling entitled and too powerful for anyone to do anything about it, impoverishing the nation.

We all know it has many brilliant and capable individuals and teams in it who can do great work, but the system is anything but.

The money ultimately goes to people, meaning we are paying people to do unproductive work, though I'm sure plenty of it goes to executives extracting rents without working productively. Weapons are not the only way to make a nation secure. Collaborative relations with other countries and less disparity of wealth help too. Imagine the security that money could create if used to help others instead of threaten them, or invested into entrepreneurship or helping keep the government accountable.

History shows what happens to cultures where the people can't rein in its powerful who look for more power. I hope we figure out how to.
How to restore large MySql database faster
It's not weird, it's wrong:

In [1]: "a string r".split(" ")
Out[1]: ['a', '', '', '', 'string', '', '', '', '', 'r']

In [2]: "a string r".split()
Out[2]: ['a', 'string', 'r']
Agreed. (I don't know why you're being downvoted.)

I've never been in AA but I am close to someone who has. The primary benefit I see AA provide them is a group of like-minded people who will do fulfilling non-drug-related activities with them.

Addiction is as much social as it is physiological. It's very difficult to quit an addiction if you continue to hang out with the same people in the same environment in which you developed your addiction. Replacing that social environment with a new one composed of people who are sworn to avoid those substances and which is filled with fulfilling activities unrelated to your addiction is a superb way to keep from slipping back into old habits.
There was some work done, see https://groups.google.com/forum/#!msg/snabb-devel/2yF5LZ-VS1... - its not the primary focus but I am likely to do some work on it later.
check out this also http://wifichat.linkstore.ru
Totally agree with you about ergo4000. I was just keeping it as an option but not anymore - thank you. :)
No evidence the Tor software project knowingly assists 'revenge porn' websites in general in committing torts, either: it publishes software! And see the 'meeting of the minds' part, beyond that, in the actions, p8. Hard to weasel around that. It's specific.
You could build one layout using relative positioning and have it scale to each of those easily. If you want different layouts for different devices, this is an option, but by default things won't break unless you're explicitly positioning things absolutely instead of relatively.
All the money we spend on the fighting the wars, yet we can't over spend on treating the veterans. It's really pathetic.
We built similar stuff with Core Bluetooth (so, any Android phone is Ok): http://bdp.linkstore.ru
That's fine. Its super easy to sue someone. I could sue Facebook for having boring ads. Will my case go to a trial that I have a remote chance of winning...? Not a chance. This is the same thing.
Pierre Sprey (F-16's designer) on the F-35 "The F-35 was born of an exceptionally dumb piece of airforce PR spin" https://www.youtube.com/watch?v=mxDSiwqM2nw
Eh. You get what you vote for.
...

$399 billion could virtually end hunger in America.

...

Or, you know, we could kill more innocent people halfway across the world. Yeah, let's do that.

America!!!
This is the same as suing ICANN for providing a domain name or suing Layer3 for providing a Tier 1 backbone that allows users to connect to the "bad" site. On what basis do intermediate routers avoid liability for connecting to other sites? Shouldn't the same be applicable to TOR (The Onion Router), which is just another routing methodology?
Indeed, which I find remarkable.
The Problem With Early Standardization
The old PC game Star Flight used a procedural system to generate planets on the fly because there wasn't enough storage space on disks:

http://en.wikipedia.org/wiki/Starflight
Yes, blackmail. "Pay us to take it down."
How is this a real "anti-pattern"?

Inefficent, or bizarre way to do it maybe.

Anti-pattern is supposed to mean something more, though.

In this case there are no adverse effects and no ambiguity -- so, I guess the programmer was just lazy to construct the list.
We're just lucky that this sort of boondoggle only happens in the military. Imagine how much trouble we'd be in if the rest of our government were engaged in this kind of corruption and/or ineptitude!
> Users must opt-in to use the Tweeting With Location feature (turn location "on").

https://dev.twitter.com/terms/geo-developer-guidelines
Veterans, yes. But how about all the people who lost their jobs in the US over the last 20 years because of the obvious incompetence of the government to budget in any way that makes sense.

Priorities. If you have a ton of starving and jobless people in your country, you do not spend a quarter of a TRILLION dollars on killing more people. I'm sorry, you just don't.
Change them how, to no longer have functions be first class objects? The behavior of mutable default arguments is clear if you know how Python treats function objects. Any "fix" would handicap the language.
"Allegedly" can hide a lot of accusations.
Category Theory abstractions library for Clojure(Script)
Excellent observation. Whenever you see international power acquiesce to an international power (the UN is a great example), it's because it's political expedient to do so, not because they stand in awe of the international body.
Mt. Gox CEO selling his last valuable asset, the Bitcoins.com domain
It appears to be broken rather than "amazing" for me in 3 different browsers on 2 OSs.

"click on the map or on a blue symbol ..."

Clicking on the map does nothing and there are no blue symbols shown.
Why even use a list here? Tuples are for immutable/constant data.

a_tuple_of_words = ("my", "tuple", "of", "words")

or

a_tuple_of_words = "my", "tuple", "of", "words"
Oh, that money doesn't include any killing, it's just for designing and building this single tool for it. Actual war fighting is rather more expensive: https://en.wikipedia.org/wiki/Financial_cost_of_the_Iraq_War
Well, no, it began at the NIH. NIH handed the labs over to the FDA, and apparently missed a vial during the move.
> (I don't know why you're being downvoted.)

I didn't downvote but I have a knee-jerk reaction to want to downvote people using anecdotal evidence to support medical treatments.
I can confirm this, at least for games. For the last game I made, I had to have all assets in 4 sizes, which makes it look nice in all resolutions ranging from 800x450 to Nexus10 2560x1600. I maintain the aspect ratio and have background that is larger (both wider and taller) than "playing field", so that I can fill up that space on devices with different aspect ratio. What article fails to mention that all Android devices have aspect ratio between 4:3 and 16:9, and you should design around that.

The background image looks like this (not my game):

http://blog.gemserk.com/wp-content/uploads/2013/01/mainmenu-...

the area inside red rectangle is guaranteed to be shown on all devices, and area outside that is the filler.

Now, to make sure your "action area":

- uses device native resolution for crisp image and

- is not too small

...you have to have all the assets in different sizes. I found that having 4 different sizes does this nicely:

1. targeting 800x450 action area
2. targeting 1280x720
3. targeting 1920x1080
4. targeting 2560x1440

Now, you could pick different boundaries, but a lot of devices use 800, 1280 or 1920 as their base width.

The only drawback to this is that some tablets with 1024px width would have a lot of filler area because they would use 800x450 assets. So, having:

5. targeting 1024x576

would make it complete. But I'm not sure there are many 1024px devices out there, so I skipped that one.
I would not be surprised if this cash cow gets cancelled after this recent grounding. This scheme is hardly going unnoticed.
If you want some simple (maybe!) real world projects to test yourself on then get in touch using the email in my profile.

I do some work for a charity trying to improve things using data. I have several smallish, self contained data science projects that fit in the important but not urgent quadrant.
On page 8 of the document it says that the website owner of "pinkmeth.com" and the owner of TOR had a "meeting of the minds" and committed torts against the plaintiffs. That is quite a stretch.
perhaps that line was written by someone used to Perl, where they would have had

@a_list_of_words = qw/my list of words/;

there
Winners Find a Way (5 Marks of a Winning Startup Team)
Love this. We've been working on a version of this for the office at Robin (http://getrobin.com). Biggest challenge so far has been getting interop across Android and iOS. Beacons are reliable if you have a binary "are they or aren't they here?" but a bit harder to map to smaller rooms when certain Android devices register a signal difference of 4X depending on physical orientation -- that was a fun one to figure out.
People with first hand experience are not in a good posistion to judge how effective something is.
Giving the authors 100% of the profit is a great negotiating move, it really bring to light how much the authors are getting screwed now in terms of book profits. Also Amazon makes it clear to everyone they don't care about the money as much as Hachette.
>What exactly is the issue with this? Just like with any other sane widget toolkit designed since the 80's for varying screen or window sizes, Android's layouts and widgets work perfectly fluid to occupy more or less space.

It becomes an issue if you're not a sloppy kind of designer/programmer, who just lets the widget flow to occupy more available space. It's not like design only use things like a text entry boxes or a web-views (widgets that just letting them get more space is usually fine and natural).

Second, it becomes an issue for every app where you want to have a custom interface -- so the built-in Android widget and layout are of no use to you. This holds for most games, customly designed apps, etc.
I hate scribd. Please stop using it.
Design Job Interviews at Facebook, Google, Spotify,
Depends on how you want to program: imperative vs functional.

Personally I think list comprehensions are the most beautiful part of Python, though sometimes I use map() when I'm trying to be explicitly functional (I realize it's allegedly slower, etc).

Generally I think list comprehensions are cleaner and allow you to write purer functions with fewer mutable variables. I disagree that deeply nested for loops are necessarily more readable.
Elite is a better example.

https://en.wikipedia.org/wiki/Elite_(video_game)

https://en.wikipedia.org/wiki/Frontier:_Elite_II

https://en.wikipedia.org/wiki/Frontier:_First_Encounters

https://en.wikipedia.org/wiki/Elite:_Dangerous
Another one:

http://youtu.be/hWy2AXpVCXo
Is there any comparison between marionette and thorax in the book?
In wordpress you can connect your twitter feed, so when you write a blog post it automatically posts on twitter. I can't remember if it was a plugin I added.

It also makes the short url for you. So you can track on statcounter.com how many people clicked that short url.
8 Good Habits in Web Development
Not sure about OSS offerings, but the larger Arista switches come with FPGAs, which I hear is used by some HFT firms to achieve blinding speeds.
read this right after using a range in a loop in order to get the index. Can't believe I went this long without knowing about enumerate.
Getting people to work means more people paid, more jobs. How does a large govt project reduce available jobs? Not following.
It is really a myth. I've developed over 30 apps so far and everything is handled by Relative Layouts.

So instead of saying that you want that button 220px to the right of the top-left corner and 100px to the bottom like on iPhone, you simply say that you want that button 20px to the right of the button on the left and 20px further down.

That's it and this way, you will have everything perfectly layed out on 95% of Android devices and it just takes the same time as on iPhone.

If you want to get the last 5%, so that your design also looks perfectly on all the weird screen sizes, then you have to put in some extra effort, but otherwise it's just the same effort as for iPhone apps.
For series 10, absolutely. Their series 20 seems to have better battery life (4 AA), but they need to "approve" you in order to purchase them... still yet to see one in the wild.
Are you sure that they are not just faking the data?
Good interview. Problems he's mentioning is basically true for any complex engineering problem:
- stakeholders with different agendas building a common product does not work well
- one size does not fit all

Same is true for software, etc.
"That’s the beauty of Android’s massive market share, we can ignore all the people with phones running Android 2.3, those with odd and rare screen sizes, and target only 4.0 and above"

Well duh. If you ignore all the things that give you trouble/fragmentation you automagically get a trouble-free/fragmentation-free environment. Silly
Wow. Just a raft of unfounded assumptions there. For example, warming won't necessarily create farmland in Canada (much of the topsoil in Canada is very poor anyway) but will certainly destroy vast amounts of farmlands in warmer countries ... along with devastating the oceans as a food supply (via acidification). Everyone loses with a warming climate.
Britain follows US in banning powerless electronic devices from flights
Actually government jobs programs kind of directly affect joblessness and hunger. The question is whether this is the right kind of jobs program. Fixing infrastructure would create more jobs with a greater multiplier (construction workers are lower paid and spend more of their income) and produce lasting value.

Edit: weird typo.