skysight-inc/HackerNews huggingface dataset:
Three friends and I found a broken slot machine an a Casino a few years ago the night before Thanksgiving. It was an older style slot where coins actually still paid out and the darn thing would just spit out more money they you it was supposed to. Obviously we were blown away. We would put twenty bucks in, play one or two times, and then hit payout and get between $50 and $100. So we started cashing out. A lot.

So here's the sketchy part... The machines only hold so much coin, so we kept having to have the attendent call to get the machine filled. I had seen enough movies to know how Casinos feel about this sort thing, so I would go to the bathroom and stuff the cash in my sock. The attendent started to make comments like, "wow, lucky night, huh?". This really spooked us so we eventually took off.

The four of us came in two cars so when my one friend was dropping me off at my house, we looked at other, and then took off back to the casino. When we got there there was someone else playing the machine; doing what we were doing but at a smaller scale. We probably sat and waited three hours for him to finish as he gave us a nod as he walked off.

We cashed out a few more times and then took off around 6am with a great story to tell the family at Thanksgiving dinner.
Supercapacitors from ‘crumpled graphene’ could power flexible electronic devices
Literally anything you could want to put on a server...?

It's a nice bunch of free trials to commonly needed services for developers. Email delivery, payment processing, hosting, continuous integration, etc etc..

Your question doesn't really make sense. It's a sandbox; we can't tell you what kind of castle to build.
You're talking about linear types, Rust implements affine types. They're very similar.
"Fairly high learning curve, but worth it"

Exactly. Apart from the tutorial there's not much of "a way" of progressing forward (like "learn this now"). Except South/Migration. Learn this.

There are a lot of resources but it follows the Pareto rule, depending on what you need you may need to go learn Localization/Middleware/Advanced ORM queries/Advanced template tags and filters/Details of Requests and Responses/Advanced forms or models (yeah, Django really doesn't help with CSSing your forms)/etc
> For a drug to be approved by the Food and Drug Administration, it must prove itself better than a placebo, or fake drug.

False, the FDA doesn't actually have any requirement to prove that a treatment is better than placebo. Many trials don't even include a placebo arm, they only compare themselves against existing drugs that were grandfathered into the system without any efficacy testing. Or they compare themselves to inert placebos rather than active ones, even if they are psychoactive drugs. Or they only compare themselves against placebos for a few weeks, even if they are meant to be used for long periods of time.

This is how we have drugs like antidepressants and ADHD drugs on the market even the though research shows they are actually worse than taking no drug at all.
Because people still care where you went to college even decades after you graduate.

Depends on who you hang out with, I guess. In my own crowd I find the subject of where you went to college (or even if you went) basically never comes up. But then again, there's that old joke:

"How do you know when you're talking to a Harvard man? He'll tell you."
Don't placebos sometimes result in real physical benefits?
You wrote:
" [basically it's sad that one must] verbally invoke a primary Constitutional right before one 'obtains' that right"

Note: you argue it is a primary constitutional right.
Primary constitutional rights are those actually found in the constitution.
Yours is not.

So when you say this is "something I never implied", i strongly disagree.
If you didn't mean to imply it, fine. But I guarantee that anyone with any legal background read your comment and came away with the same impression.

Your argument seemed to me to be "because it's a primary constitutional right, I should not have to invoke it explicitly".

My argument is: You have to invoke it precisely because it is not a primary constitutional right.
No, they're mechanisms for completely different purposes than fighting viruses. Coughing, sneezing, running nose, diarrhea, etc. are vulnerabilities that infectious viruses exploit to be able to spread.
How Did English Become the Language of Science?
Show HN: ReadMe.io – Beautiful Documentation Made Easy
Show HN: Tamper – Devtools extension. Edit remote files locally
Why Saying Is Believing – The Science of Self-Talk
What I mean is that there is no written law containing the words "clean room", and no requirement that an author has not seen similar works. While "clean room" might be a good defence, there aren't automatically grounds for making an infringement claim just because somebody hasn't followed such a hyper-cautious practice.

Oracle vs Google is complex and I reluctantly chose to gloss over the details. The case still has some appeals to go yet, posssiby to the supreme court. While the difference between APIs being copyrightable vs fair use is important, the practical impact should be negligible: if an API as large as the JDK can be copied without permission, then any API can.
I've been using Flask, I love it for the most part. I use PeeWee but prefer to use just raw SQlite. It's supposedly faster with the new 3.8 sqlite version, so I think I'm gonna stay with it.

My gripe with Flask is not itself but the other plugins like flask-security which lacks a lot of documentation.

Flask itself is a delight to use but the only trouble is organizing the code in separate files. I still haven't mastered it, I just import the same file which imports all the modules in all of my flask scripts.
Currently, borrows are lexical. We don't want them to be that way forever. https://github.com/rust-lang/rust/issues/6393
That is actually my only iOS device at the moment and it certainly has been slower with each update. I do understand the benefit of building an OS to more current specs but unlike a desktop PC where you can add a stick of RAM or a newer GPU for $50-100, it seems to hit mobile devices a lot harder.

On one hand, nobody wants to buy a shiny new device and find that the software isn't taking advantage of the hardware you paid for in order to preserve performance on older models. On the other hand, the more rapid pace of mobile hardware development and the inability to add inexpensive upgrades can make it seem like you have little choice but to replace the things every couple of years.

It doesn't help that there's no official way to downgrade if your experience is unsatisfactory (no reinstalling XP on that old beater PC because it doesn't have the RAM to run Vista well, etc) and applications quickly start to require the latest version of the OS for program updates.
Scientists discover cancer-fighting berry on tree that grows in Queensland
I built this tool because I had a lot of production issues where I needed to make some changes and test them. I couldn't use devtools' Elements or Sources panel since I had to make this changes available as the page loads (inline script changes, css url changes, etc...).

I tried using Fiddler and similar alternatives (Charles, Burp), but:

1. when running it on the Mac you need to run a VM

2. Fiddler shows you ALL the requests made by you're machine.

3. Moving between Fiddler, Chrome and Sublime is just annoying.

Since it's running a proxy server (it's actually based on http://www.mitmproxy.org) on your machine, it's also very useful when you want to test things on mobile devices.
Show HN: Lightweight tray battery monitor for Linux
Many times when I’d like to use Django, I have to eliminate it because of one thing: I’d like to access the database from non-web programs, and Django certainly does not make it easy to use its ORM in a non-web context.

Sometimes I’d even like to access the database from external, possibly non-Python tools, and then Django is out of the question, since it does not define a stable API to its database layer, only its ORM.

Therefore, I go with Flask + SQLAlchemy in these cases.

(One time, for a short-lived project, I chose to ignore that Django does not provide a stable database, and simply let Django create the database and then simply assumed that the database table definitions would not change during the lifetime of the project and accessed it externally via SQL. But this was for a short-lived project which would only run for a few days.)
There were several people that took screenshots of the advertized things going 'Out of Stock' even BEFORE the sale officially began. They might actually be deceiving people? We'd know in coming few days.
The article is missing the most interesting part, for me at least: how the bug worked. Not from the outside (the article has the sequence of steps to exploit the bug), but from the inside. What change in the control flow the "Double Up" feature did which caused it to remember the previous payout and multiply it by the new denomination?
You already got an email? I am still waiting on mine.
Yes, although H1Bs aren't a great either. Most people I know who were on an L1 got their company to sponsor an H1 visa after a year or two and then change jobs a few years down the switch.
In which case I think the title is misleading as it is not a drop-in replacement.

With that said, I think it looks great
> Sometimes writing faster code is the difference between using a hash instead of a list. Sometimes it's spending an entire day optimizing a function that's called once. The former is performance aware, the later is premature.

I disagree, it depends on the context. If using your original list is so fast that nobody human can notice the difference, it's a waste of time to turn into a hash, not "performance aware".

Actually, whether it's a "waste of time" also depends on the context. It could be worse. It could make your code harder to understand and maintain.
I have not used Rust before; does working with statistical analysis of runtime environments hinder debugging? In a multithreaded environment - does it pause the world for its runtime analysis or are there locks on shared resources representing ownership of individual objects, or does it do copies on writes of resources for idempotent operations as the references are moved around environment for lockless operations?
> Many 'students' would probably be in a better financial situation than a non-'student' who is trying to learn. Somehow 'education' has turned into a tool for passing on privilege.

Without that, how would they validate who is a student vs not? I know nothing of Go but want to learn. Am I not a 'student'?

I understand what you are saying, but without being an actual verifiable student they would be giving this away to the world

Further, with all of the thousands of dollars saved by not being a traditional student, surely there is some money for these services out of pocket (not all of which are 100% required to learn)
There is ongoing discussion about this, eg here: https://github.com/rust-lang/rfcs/pull/239 (related reddit thread: http://www.reddit.com/r/rust/comments/2gs85u/rfc_allow_compi... )
I think that's a filter more than anything else. You know they'd get hammered otherwise. Even Coursera or the like wouldn't be a good filter, since anyone can sign up. Perhaps they could have a filter based on completed courses through the various online options (Coursera, Code School, Treehouse, etc)
For those that don't know about the Phil Ivey "hack," here's basically what he is accused of:

A certain card manufacturer had a defect in which there were tiny deviations in the designs on the backs of their cards.

What they would do was the dealer would show all cards face down and Ivey and his accomplice would have the dealer rotate the cards so that the designs were all the same way. Then as they would play, they would have the dealer rotate the numbers 6, 7, 8, and 9 (which are the good cards in Baccarat).

This way they could spot all of the good cards face down based on the designs on the back. Ivey made sure to request a card deck shuffler to ensure the cards weren't rotated during shuffles.

Ivey won tens of millions of dollars doing this and is now being sued by several casinos even though he never touched the cards, didn't have any kind of cheating device, and had the casino agree to every move he did.
“What if in the future, our 'dreams in code' shall become a reality”
The other poster says it proves operations won't happen again - does it do both?
There's a fairly large difference between advantage players and what these guys did.

You have to keep in mind the spirit of the machines. Video poker machines are meant to play poker. If you can somehow find an edge in poker itself that gives you an advantageous position, I'd be for it. Exploiting the software that runs the game, however, isn't fair.

The punishment was blown monstrously out of proportion, but yes, I still think what they did was wrong (and certainly against the law!).
This is really cool! I agree with the author a bit, however I think his concern stems from the fact that it was largely because he did not know it was going to happen.

I also think that Doctorow's dismissal of his concerns as "trivial on the scale" is silly and somewhat arrogant. Automated alteration of a picture to the point of making a new picture non-discernible from an original is a real different thing. In this case it was very subtle, but the application of this could really have some broad impacts. I recall for example the doctored photo from Iranian missile launches [1] or the Egyptian PM red carpet photoshop [2].

Yes this has been going on forever, but automating it makes the impacts really scale quickly.

[1]http://thelede.blogs.nytimes.com/2008/07/10/in-an-iranian-im...

[2]http://www.theguardian.com/world/2010/sep/16/mubarak-doctore...
To be more specific, automatic dropping will likely always be scope-based. In the rare case where you need to drop something before its owning scope completes, you can explicitly use `drop` as people have said downstream.

Borrows are a different story. Especially with mutable borrows (which are basically a static lock on the value), the current lexical restriction is too coarse-grained. There are always workarounds, but it will be nice when it's fixed :)
More efforts like these are great to see!!!
Empower our young!
:^)
> does it pause the world for its runtime analysis

The borrow checker is _entirely_ at compile time.
The National Wealth Center Marketing System Is Now Up and Running
Depends. Do you think edge sorting is cheating? Because that's what Ivey has been accused of by the Borgata.
This is awesome, but it should close when the user clicks out of its bounds.
Anyone interested in the Placebo Effect, I recommend Josh & Chuck's Stuff You Should Know episode about it.

http://www.stuffyoushouldknow.com/podcasts/how-the-placebo-e...
This is great! Would ClojureScript (or other languages compiling down) do?
Which is peanuts to Yahoo. This basically seems like they're trying to emulate Google Ventures without the full commitment of creating an organization like that. Seems smart.
how the hell does a 10% incline drastically increase the calorie burn?
"... in practice you will need to read lots of code with random punctuation used for method and function names."

In my two or so years of Scala I've yet to see anyone actually use /: or similarly named methods, and if they did I would make sure it never gets past a code review. Yes, the methods are still there, but in my experience people avoid them (even Odersky thinks they were a bad idea), and libraries with a lot of symbolic methods (Scalaz, and everyone's favorite whipping boy, Dispatch) are not particularly mainstream.

So my experience at least has been the opposite of what you assert. I would instead say that "... in practice you will NOT need to read lots of code with random punctuation used for method and function names."
The biggest thing in the pack (imo), is not service oriented. 100 USD for digital ocean is 20 months of VPS, which is huge imo.
Nah.

I'd hit one casino per day for $1000, no more. No IRS paper trail that way.

I could probably manage to survive in Vegas on $250,000 tax free per year, working a few hours a day, 5 days a week.
This really makes something I've been thinking about very clear.

I often think about the "everyone can code" movement. It's not something I particularly believe in, but exposing as many people as possible is a great thing.

However, the bit I get stuck on is programming is more than just typing characters in the correct sequence. It's deploying, testing, environment issues, metrics, databases, dns, etc. Basically it is a lot more complex than "learn to code".

This smorgasbord of services really drives that point home and I can't imagine how overwhelmed I'd be if I saw this back when I was a student.

EDIT: I'd like to make clear that I think this is absolutely awesome and no student or person otherwise should be intimidated or overwhelmed, let your curiosity wander!
I'm sure that you think that would work. In reality, though, people who are sure that their solution will fix the economy very often run into the law of unintended consequences.

I buy drcode's skepticism more than I buy your certainty and optimism.
This strikes me as cartoonish rather than beautiful. The animated green line art is semantically confusing, suggesting some sort of continuous process rather than a static situation. I suppose that could be good if you feel people tend to hit OK too fast without reading the text.
Anyone has good learning resources about rust? I find it's a very interesting language but the document on its web site is so limited. Many topics are not covered or explained in vague terms. The new guide is a good starting point but still needs some improvement.
This is currently true in CPython, but is not necessarily true in other implementations. It's good hygiene in python to use a `with` statement for this reason, as well as helping to enforce that you don't accidentally hold on to a reference, and keep the file open.

I think that context managers in python are generally a very nice abstraction over these sorts of concepts, and it's cool to see how Rust is handling these problems very cleanly.
Use your head. Just because they do the paperwork doesn't mean you're not billing them for your time.
Ivey made sure to request a card deck shuffler to ensure the cards weren't rotated during shuffles.

He also requested a dealer that spoke Mandarin (under the story of being superstituous) so he could ask the dealer to perform certain card-turning actions and, most likely, do it under the radar of pit bosses that might have been listening in.
> horrendous type system and the confused parts of the syntax

Could you expand on that a bit?

In my experience, Scala is one of the few languages which don't fight against everything you want to express in a typesafe way.

Also, I find the syntax extremely consistent. Easy to remember and almost no special rules.
Did I mention Google on this thread?
Getting an email through a community college doesn't scream of privilege to me.
It was not clear at all to me. I find the original function much easier to read myself.
Interesting two part article by a Harvard Med School professor on whether psychiatric meds rely on an "activated placebo effect" (i.e. a placebo with side effects). Some would argue this isn't necessarily a bad thing as long as they are perceived to be efficacious by those taking them.

http://www.nybooks.com/articles/archives/2011/jun/23/epidemi...

http://www.nybooks.com/articles/archives/2011/jul/14/illusio...
You can cut it down but it still won't be feasible. Consider generating even just all possible 100x100 1-bit monochrome images. There will be 100 * 100 = 10000 bits per image, giving a total of 2^10000 possible images: about 1.995 * 10^3010 which is still way, way bigger than 10^80.

A 5MB JPEG image would have a much larger resolution and color pallete then this.
In fact, the `drop` function is totally trivial. It's just a function that takes ownership of a thing, then does nothing with it whatsoever. In other words, the function body is entirely empty! :)

https://github.com/rust-lang/rust/blob/master/src/libcore/me...
What parts of the overall ecosystem do you consider a necessity for private repos?
Please do not use this until the authors ensure people using the keyboard alone / screen readers can dismiss the dialog and access elements contained within.
The Future of Social Media - Reddit, Yelp and cryptocurrency — oh my!
> Read about Phil Ivey, who used a similar "hack" to advantage play in Baccarat.

So - the slight difference there, and I'm curious whether people see this as a difference without a distinction, but Phil Ivey requested the casino to set up a scenario that would allow him to "hack" and then lied about the reasoning for doing so.

He claimed that he was "superstitious" and that's why he wanted the exact cards and shuffling machine that would allow him to win.

It's not as though he happened on this by accident and simply allowed the casino to continue making a mistake, he arranged the scenario and misrepresented his intentions in doing so.

Personally, I think if you have to lie in order to take advantage of a vendor error, your moral highground starts to crumble beneath your feet.
This is WIP: http://doc.rust-lang.org/guide.html
I use the Sansair device - it seems pretty solid and is very easy to use. I'm not sure how much I'd trust a hack I would do that involves water and electricity, but others who work with hardware more I think would have no problem. The device is incredibly dumb, it's really just a circulator, heating element, and a decent voltage regulator with a thermometer and some basic logic gates to raise or lower the voltage when the temperature is closer or further away from the target.
This was my take as well. As many good points as there are in the article (and there are many), the whole thing is "No True Scotsman" itself.

Any attempt to fuse aspects of other languages or paradigms with OOP in order to mitigate the listed problems are dismissed as "not OOP" to serve the purpose of illustrating that OOP sucks.

My experience is that any pure paradigm has limited context in which it's ideal and many pitfalls outside that context. OOP is no different. Foolish adherence to consistency, hobgoblin of little minds, etc.

Where I will agree, at least in spirit, is that OOP has a few different aspects, including the implementation in a given language, the current understanding of best practices for a given context, and the cult of context-independent "design correctness". That last one has major issues.

When the cult drives the implementation, you get high-ceremony languages like Java. And when the cult drives best practices, you get maintenance issues like those currently being acknowledged around invasive unit testing, etc.

The key there isn't the design paradigm, IMO, but the fallacy of trying to apply a best practice without understanding why it's useful or analyzing whether it's the right thing to do for the current situation.

An analogy would be normalizing a relational database. There's a "correct way" to do it, which in theory reduces maintenance if you go to third+ normal form. In practice, knowing when to relax normalization is the difference between success and a mess. So goes DRY, SOLID, etc.
Doesn't all modern programming languages has Loose typing? It allows more abstraction. Like for example in JavaScript where a object can be anything!
Using iOS8’s Notification Actions to Build a New Chat Behavior
These bankers have indirectly stolen millions of dollars from people. Why are they not going to jail for hundreds of years? Why is there even talk of a settlement? That is only going to incentivize similar behavior.
Raw pointers are safe if used very carefully... :)
I imagine him feeling some pressure that the bug could be patched at any time (even accidentally).

I would have traveled to hit machines everywhere, as quickly as possible, but only once per location.
3 Reasons Why Customer Feedback Is More Powerful Than Event Metrics