skysight-inc/HackerNews huggingface dataset:
I hope that we never have national gun registration in the US. Just recently, California passed a law allowing the police to confiscate your firearms on the sole basis of a family member's or ex's claim that you're a danger to yourself or someone else. For 21 days, you don't even get a chance to defend yourself. The confiscation and ban of gun ownership can then be extended for one year, without a conviction for a single crime.

You also have politicians all over the country who openly admit that they would ban and confiscate all guns if they could. You have half of the Supreme Court willfully misreading the Second Amendment as giving no rights to people, only to states.

It's easy to see where this is going. Everyone who values their right to keep and bear arms will fight tooth and nail against any national registration proposal.
Superoptimizing LLVM (2014) [video]
Padcrypt domain generating algorithm implementation in OCaml
Turbo button, 386 style. :P
Sorry about the clickbaity (although semi-accurate) title.

I would change it, but the post got revived from yesterday, so the edit button's gone.

Is it really that bad a title, though? Few people actually write their own video decoder or display code anymore...
Ah. In that case it's genius. But I'm still not surprised.
Why isn't the API doc at api.tesla.com? Can you link to the official source from Tesla that welcomes modders?
> and hired an external consultant to get in order.

Recipe for disaster. :p

> knew people who pushed / committed like every 30 seconds

Pushing and committing is completely different actions in the git world.

If it's a simple fix then I try to commit and push almost instantly. If it is a large piece of work that needs several days, then I "checkpoint" it by committing at least once/day.

But I try to never checkpoint by committing something that breaks the build or unit tests. Like if my work is rewriting module A to B, then my first commit would be to add module B, second to change all dependencies from A to B and lastly to delete module A from the repo.
Because compilers need to work for any program, thus tend to the best common denominator, while you, the programmer, can design something for a particular use case. In this case, hot loops - at best a compiler could know about the runtime intensity by using a runtime profile and then deciding that, yes, in this case it's actually best to inline something. But having a compile -> link -> run (profiled) -> compile -> link workflow is much too bothersome and slow (so most don't do this) and it's much more manageable to sit down and turn on your brain when programming. This stance of "no premature optimisation" has gone overboard IMO.
HN doesn't require replies when downvoting. It does require that commenters not go on about getting downvoted, so please don't do that.

https://news.ycombinator.com/newsguidelines.html
No, it's not just you. The more I look at Rust, the less I like.

-- leaving off the semicolon on the last statement causes that to be the return value of a function.

-- functions can't capture free variables in lexical scope. They need an entirely different type and syntax for that (closures).

-- try reading some non-trivial Rust code that uses generics - it's just as incomprehensible and unmaintainable as C++.

It's a huge disappointment.
No, it did not find the exact same results. CXL found that it was horrible in 2014. The first one from less than a year ago found that it just needs to be labeled to be more effective (with "effective" defined as interactions), and that it definitely has a place as a space saving menu icon on mobile apps. And 1-2 years from now you probably won't need a menu label. Paricularly on mobile where it is already becoming the de facto space saving standard.
One of the movie that inspired a lot US army is 'la bataille d'Algiers'. For a reason very few understand, what was an historic defeat of France in a colonial war was considered a military success for fighting against terrorism by USA. Of course, you fight your own citizens.

Don't ask.

It basically said that torture was ok, and that your own citizens / any civilians can be considered your ennemies and treated as such. Abou grahib, Condor operation (chili, argentina...) for getting rid of "commies" in south america used nice french para technics.

Like pushing opponents in the ocean from an helicopter far from the coast so that body might not be discovered recognizable. Sleep depravation, gégéne, waterboarding, having muslim naked and possibly being ordered by woman ... A lot of actual technics used in Guantanamo.

Hey, don't look at me this way. I do not support this. At the opposite of USA, war stopped because soldiers revolted against these "successful" technic. And their was a strong opposition between the "conscripted" and the engaged soldiers.

Call french cowards. At least they did oppose their own government and army and accepted (ok, De gaulle took the liberty to choose) to lose war rather than to win with torture. Which triggered another civil war in the metropole between the tenants of keeping colonies and the others not really for tortures. And of course, CIA did its best to put even more mess in the process. (Gladio operation).

Maybe looking like cowards is not the worse that can happen to a nation and as you see french people are still alive.

Maybe they don't look like a great nation, but loosing on the moral battle has proven to be a great way to destroy your own civilization.

At least that is the topic of the peloponesian wars that is a mandatory lecture for westpoint cadets.

Guess, we did not read the same book.
A nitpick I had with SDL2 is the inability to render while the window is being resized. There is a rather awkward hack around this on Stack Overflow[1], which involves a callback function that has to call right into your custom rendering routine and "may run in a different thread!"[2].

[1]: http://stackoverflow.com/questions/7106586/keep-window-activ...
[2]: https://wiki.libsdl.org/SDL_SetEventFilter
War is the natural state of man. Therefore peace must be vigilantly enforced through law.
While this may be true seven years ago, today (2016), if you look major retailers like Amazon, Walmart and overstock.com, they all ask for login before proceeding with payment. Best buy has a both guest checkout and login page before payment. Something has changed over the years and is not yet captured here.
Law Graduate Gets Her Day in Court, Suing Law School
No longer virtual: First impressions–and many hours–with HTC’s Vive Pre
The problem is that the animation is completely disconnected from what's actually happening in the interface. Since the animation is happening at the same time as whatever action is caused by the button, it needs to be considered as part of that action. All of these animations (including the "boring" lack of animation) will distract you from the point of that action, which is (presumably) to bring up some kind of sheet or menu.

A cross-fade is almost certainly the best animation to use here. The progress of the cross-fade can follow the motion of the sheet or menu, reinforcing the connection between the button and the action, but without being overly distracting. The focus should be on the content of the sheet or menu, not the button itself.
There's 450 grams in a pound. 225/450 = $0.50/gram.

But that number and mine is nonsense. I was being generous in order not to shock anyone. Look up the price to grow crops like corn, cotton, etc. It's < $500/acre. Per acre. When cannabis is grown like every other crop it becomes dirt cheap. Great cannabis does not need to be grown indoors. Great weed is grown outdoors on the west coast all the time.
> Google can get around this with their existing talent and technology for sniffing out fraud. The rest of us must make do with better protocols.

To defraud webpass etc, you need to be able to sign up as a creator, so if they're not interested in signing up the world (as most adtech players are), they can probably get pretty far just by partnering with reputable sites and forcing them to track and reveal which portions of their traffic is sourced vs organic.

At some point they'll probably want to sign up the entire web too, but by that point they should be large enough to warrant buying the tech from a 3rd party fraud verification provider or build their own in house.

I will say that, knowing what kind of fraud goes on in advertising, I am skeptical that a new protocol would do much besides adding an extra (static) hurdle for fraudsters.
If anyone is as curious about how this works as I am, here's some info from the source:
https://github.com/dsanson/termpdf/blob/master/termpdf#L71

Some notes on Tmux's support: https://groups.google.com/forum/#!topic/iterm2-discuss/PJzHw...

Here are some other weird extended escape codes supported by iTerm on Mac, such as notifications and setting clipboard contents:
https://www.iterm2.com/documentation-escape-codes.html
We detached this subthread from https://news.ycombinator.com/item?id=11235220 and marked it off-topic.
Thanks for letting me know! Was running this on a small server and didn't expect it to blow up. Bug fixes coming in next week after I finish finals.
Introduction to SQLmap
Email me at josh.j.singer (at) gmail.com
I'm a huge fan of your site. Shoot me an email at josh.j.singer (at) gmail.com
That's right! :)
Keep in mind the topic at hand is downloading a single large file, the TLS handshake is a rounding error of the total time, regardless of where you are in the world.
This is misleading; it's sold at grocery store pharmacies, but only with a prescription. As a Schedule II drug the controls are much tighter than normal drugs, including strict regulations on who can prescribe such drugs and secondary verification for new prescriptions. In NY (and soon more states), they can only be prescribed electronically using approved security measures.
I personally don't use any of them, but I found this bit about Spotify from a survey of 60 teenagers http://www.businessinsider.com/what-teens-are-like-in-2016-2...:

"Teenagers almost universally named Spotify as their preferred music-streaming service — and some teenagers said it was the best app on their phone overall."

Granted, it is not a large-scale study, but I am surprised there isn't a "Snapchat of music" or more contemporary app gaining steam. I expected music would be one of the first categories to be redesigned for today's teens/digital natives. Spotify, Pandora, Rdio, Apple Music are all big incumbents now.
By offering a valuable, no-cheating service, so users would talk about it.

It is actually a heuristic - as long as you see a costly marketing, the product is either crap or fraud. SAP is the best example.

If you see an established product, such as Facebook, advertising itself, think of it in a users-data-mining stage, instead of offering a valuable service which gives growth without deceiving maladverticing.
Beware of judging costliness by frequency though. I see advertisements for DigitalOcean and Linode fairly frequently, but their offerings are certainly not crap.
If the compiler doesn't inline something, you generally have no way of knowing if the reason was had good or bad.
> Usually when you hear a company touting it's security, it's snake oil.

I guess this is part of the reason I have an aversion to companies speaking about their security. I know Apple security is very good (anyone curious can read the white paper), but most of the time corporations speak about security in a way completely detached from reality.
Enough with trashing the liberal arts. Stop being stupid
Oh man, that's great. I miss KCRW so bad after moving to the Bay Area from LA.
Tech Companies, New and Old, Clamor to Entice Cloud Computing Experts
You can also lease a VPS (anonymously even) and use Deluge with a webGUI. Said webGUI can be a Tor onion service, for better isolation.

But still, this is about malware in Transmission itself, not anything downloaded using it. So the fact that it's a BitTorrent client is rather beside the point, I think.
Lafferty Lost and Found
When Jared Spool mentioned this $300M button in another of his classic talks, he emphasized repeatedly how the metrics that determined the abysmal shopping cart completion rate were completely missing. Even though the metrics for how many people are exiting the flow via password reset and never coming back were relatively easy to get from the retailer's db, they had a flawed funnel model that they began with. They were only measuring between 'adding an item to the cart' and checking out. They had no metrics for 'request new password (reset)'.

This may all be dated now with very sophisticated client-side metrics but at the time it was relevant to the mega-retailer.
> Does Apple have a problem with theft of internal code that I am not aware of?

It only takes one disgruntled employee, or one security slip, and 100-500 million users are compromised. Not a risk I'm comfortable with.

You're requiring them to be perfect. But humans are involved.
Is number of menu clicks actually a metric that should be maximized? If the only functions in the hamburger menu are things you don't actually need to use the app, you're probably fine. Consider Lyft and Uber. Their sidebar menus let you view your history, change your payment information, etc. But you don't need any of those to use the app.

If you're going to hide functionality, make sure users can have a good experience even if they don't find it.
Given that Twitter is massively successful and used by millions everyday I don't think it is a good target for complaining about slow loading times and poor performing JavaScript. Often in business 'good enough' really is good enough. Gold plating code is something many developers (including myself) make the mistake of trying to do all the time. But the difference between 'good enough' and gold plating is often not worthwhile for the business.
Unfortunate. University IT departments are susceptible to neoliberal evangelical insanity. When it happened to my department, I decided that I was unworthy to clean the digital bedpans of a destructively competitive, rank and pedigree conscious faculty and took off, never to support faculty again. Here's a rebuke to the smug, platitudinous know-nothings who insist that the university is a business. http://leiterreports.typepad.com/blog/2016/02/proofs-that-un...
Ikea makes quite a bit of money with their anti pattern model of retail layout.

For some businesses it works because they offer enough to overcome the inconvenience while others do it out of incompetence or simply cargo cult.
Fashion Wear: Get Impressive Looks in the Kurtis Collection
MetaMind papers are always pretty awesome. Couple of great highlights from this paper:

The visual saliency maps in Figure 6 are astounding and make their performance on this task even more impressive as they give a lot of insight into what the model is doing and it seems to be focusing on the things in the image that a regular person would use to decide on the answer. Most striking was on the question "is this in the wild?", and the saliency was on the artificial, human structures in the background that indicated it was in a zoo. This type of reasoning is surprising as it requires a bit of a reversal in logic to come up with this way of answering the question. Super impressive.

The proposed input fusion layer is pretty cool - allowing information from future sentences to be used to condition how to processes previous sentences. This type of information combining was previously not really explored, and it makes sense that it improves the performance on the bAbI-10k task so much as back-tracking is an important tool for human reading comprehension. Also its clever that they encode each sentence as a thought vector before compositing so they can be processed both forwards and backwards with shared parameters- doing so on just one-hot words or even ordered word embeddings would require two vastly different parameters since grammar is wildly different when a sentence is reversed.

Lastly, on a side note, if 2014 was the year of CNN's, 2015 the year of RNN's, it looks like 2016 is the year of Neural Attention Mechanisms. Excited to see what new layers are explored in 2016 that will dominate 2017.
It's back online!!!
Well Tim Cook is alive and well and has Apple signing keys.
The real reason Slack became a billion dollar company
"One problem is, in C at least, the compiler has no way to know that the contents pointed to by p have reached their end of life. All these examples use malloc() and free(), but these two names are purely convention, and any names and memory management methods can be used with different names."

This seams wrong, unless by "purely convention" you mean in some sense that the entire standard is "purely convention". The clearly defines the lifetime of an allocated object to be from allocation to deallocation, and clearly labels free (and realloc, in some circumstances) as deallocating. I am not sure whether a conforming implementation can introduce new functions that also, in the sense of the standard, deallocate, but in either case the provided code is still technically incorrect per the standard.

"Such as, sizeof(int) being the native hardware size of an integer. 8, 16, 24, 32, 36, 48, 64, I've suffered from them all."

Nit, and I'm sure you're aware, but perhaps worth noting for others: the values you're listing are (I infer) number of bits, which is not the same as what's returned by sizeof. sizeof gives number of chars, which on some architectures has actually been other than 8 bits!
I agree, it seems to me most people would only want to use one or a small selection of these, so it would be much more useful to have the ability to easily grab a hamburger's code individually.
I didn't know Soulseek is still alive - brings me back to the days of Direct Connect / DC++ and hunting down rare live sets and (as you mentioned) electronic music over ISDN/dial up.
I'd wager that FBI and the other 3-letters want to unlock phones themselves; they don't want Apple to know what they're doing. Soon every agency and county police department has that software.
Seems like a sensible approach. I gave a pretty big pair of plastic bags of tech T-shirts (some/many never worn) to charity over the holidays. I still have far more than I will ever wear (much less need). I guess one could imagine someone wanting to make a museum display of old tech T-shirts at some point but the reality is that physical storage is expensive.
I was skeptical that it would only detect obvious issues, but the sheer number of built-in checks is surprising. I'll try this on the next large text I write.
Having been active in the startup scene here in Austin for about three years my anecdotal experience is that it's quite healthy. Yes, many of the startups here do raise money from VCs in the valley, but those dollars go a whole lot farther here.
I don't see what's wrong with IKEA's layout. I mean, it's bad if you came there to buy a particular something (though in that case, you can just skip the gallery section entirely and go straight to the well-organized shop and warehouse sections.) But it's exactly right for what I go there for: looking through the gallery as a 1:1-scale-model catalog, deciding what you want/need from that browsing, and then picking it up if you still want it by the time you see it again in the shop section. It's destination shopping, in the same way a bookstore is.
His desire is coherent and certainly appeals to millions of Americans.

Whether it is realistic, plausable, beneficial, cost effective, or just plain stupid is another question.
Larry and Sergey's CS349 (1998)
Big Data Is Teaching Us About the Nighttime Migrations of Birds
Rust encourages writing imperative code in a functional style, like this:

fn run_query() -> Result<PgResultSetOrWhatever, String> {
PostgresConnection::connect("postgres://localhost:5432/postgres", &NoSsl)
.and_then(|conn| conn.prepare("SELECT ir FROM x"))
.and_then(|stmt| stmt.query([]))
.map_err(|e| format!("{}", e))
}

This is a strange way to write control structures. Each object gets to define its own control structure syntax. Then there's the "try!" macro, which generates an invisible return on error. Cargo has their own "try!" macro, and it's slightly different. All this puts a layer of macros on top of control flow. There's a rationale for that, but it doesn't help readability.

Exceptions were such a mess in C++ that they've scared people away from the concept. But they work well in Python, especially in conjunction with "with" clauses. The machinery in Rust to avoid exceptions is more complex than exceptions. It took C++ years, and Boost, to get to this level of wallpapering over a mess.
I've been interested in linters and style checkers for English prose for a while, and I'm excited to try this out!

To the author(s): Your website, as far as I could tell, doesn't tell me how to install it; I had to go to GitHub to realize it was pip-installable. You should consider adding that to the main page.
How to write a video player in 2 lines:

#! /bin/sh
vlc "$1"

In all seriousness though, if you are using libraries to implement almost all of the complex functionality, then the "less than 1000 lines" comment is not very relevant.
It's not that bad, it's just the "how to write a ..." bit seems to imply that you're actually implementing one, not just loading a library to play one. Maybe "How to play a video in less than 1000 lines"?
Just posted a few minutes ago: https://news.ycombinator.com/item?id=11237384
I've actually backed out of making purchases on walmart.com because I didn't want to have to create an account. I always use the guest checkout if available, and only create an account if I really want a product on a specific website, or if I've purchased from the same company a few times already.

Amazon has many other services (including Prime) that require an account, so it makes more sense for them to require accounts than it does for any other online retailer.
I am watching, and this guy is hilarious!
If I'm willing to pay $40 for a coffee maker, it doesn't really matter what other people are paying. My value judgment of the coffee maker is purely internal: Either it's worth it or it isn't. As long as the device performs to specification, I haven't actually been defrauded. I did have some greasy marketer or 'data scientist' grope around in my lizard brain, but that's to be expected. There's nothing wrong with running a search to see if anyone has a cheaper one, but this should be done after you've decided its objective value to you and not before.

Same reason you don't buy a house by comparing its list price to similar local sales, or trending house prices. That kind of thinking is how people go broke.

Here's some other strings marketers like to pull:

* Only 1 left in stock

* Only 12 hours left on this sale(possibly with a countdown timer visibly ticking down)

* $300 cheaper than our premium model, but has most of the features. What a great deal!

* 5% of your purchase goes towards starving children in Africa

* Buy it in a bundle for a discount.

You know who actually routinely has clever marketing, though? Coca-cola. When they did their campaign printing common names on all the bottles, I bought several of them for people I knew. I thought that was a nice touch. No false urgency or manipulation.
That would have been the easy way to do it, if tcsh allowed dynamically generated prompts (outside of a few stock flags). On Freebsd it makes sense to run your own packaging build server once you start running custom compiles on more than a few machines, so it is no big deal to compile once and `pkg install` everywhere you want it. I guess the downside of that is that it makes it easy to be lazy and not push upstream, which I'm pretty sure is the primary motivation for a lot of code contributions :)
Indeed. I suspect the PR played the larger role, actually. Before anyone seeded a word-of-mouth chain about Duolingo, they likely read an article about it.