skysight-inc/HackerNews huggingface dataset:
What happens if there's a cycle? It will get closed when the cycle is finally collected.

You can rely on a GC (and refcounting + a cycle collector is absolutely a GC) to finalize your resources for you, but it is quite difficult to reason about when the file will eventually be closed.

Also, the reference counting semantics of CPython are implementation-specific. From the PEP that introduced `with`:

> Note that we're not guaranteeing that the finally-clause is executed immediately after the generator object becomes unused, even though this is how it will work in CPython. This is similar to auto-closing files: while a reference-counting implementation like CPython deallocates an object as soon as the last reference to it goes away, implementations that use other GC algorithms do not make the same guarantee. This applies to Jython, IronPython, and probably to Python running on Parrot.
Its WIP status is 'basically done, just editing and having tons and tons and tons of people read it to catch small things' :)
For those who might have been wondering, "UB" means "undefined behavior".
I liked the title, but I don't understand this.
This doesn't make one an asshole; native dom methods can handle most of what people normally use jQuery for nowadays (even with the same function signature) so unless someone needs to do something more specialized I am not including an additional dependency.
They wouldn't remove it even if they had the choice, because recreating what jQuery does with regards to cross-browser compatibility is just wasting everyones time. I'm not saying it has to be jQuery, but since everyone is already familiar with jQuery and it works well - why not jQuery? Eventually yes I think we can drop jQuery in favour of native implementations, but most sites can't afford to lose that compatibility yet.
Delighted Makes It Easy for Startups and Businesses to Collect Customer Feedback
I'm definitely more familiar with the Android side of things than with iOS but it really has more to do with the OEM. Sure, if you buy a carrier branded device then they will stick their approval process after the OS release and OEM porting but in general, it's more a firmware/driver issue a lot of the time.

Apple's strength is that they provide the hardware and the software so they are responsible for building any new version of iOS with applicable drivers and firmware for each device.

Core apps are one thing but if you want to update to the latest version of Android, you're mostly out of luck without the OEM's involvement. Third parties regularly work on building current versions for all manner of devices as soon as Google publishes the source but without driver source from the maker of the actual chips and other hardware, they're left cobbling together unoptimized drivers for important things like the cellular radio or the camera or reverse engineering their own. If it was just a matter of carrier interference, there would be a "vanilla" build available for every device shortly after release.
There are actually video poker machines in Nevada with a negative house edge. I'm not entirely sure why - except that your upside is limited, you have to play perfectly, and it gets you in the casino.
How can I apply to other service after successfully apply to Github Micro Plan?
Wow, thanks! As a student who runs his own SaaS, this is incredibly valuable! I was able to immediately add the $1000 credit to my Stripe account, which I already use to process all my payments. Now I'm just looking for ways to best utilize the rest of the services. Big thanks to GitHub and all involved companies for creating a wonderful bundle for students.
A 5MB JPEG corresponds to 12~16MP@24bpp, although many of the images would compress to the same result.
I'm surprised with how strict PCI compliance rules are for most integrations that a crusty OS with all sorts of holes is allowed to continue as the backbone of so many ATMs. I would think that something *NIX-y would be a solid bet at this point. Can't be worse than XP.
Curious to know why `drop` isn't called automatically by the compiler as soon as possible (since the type system already seems to know it is safe).

Is there a trade-off involved here?
How Apple caused our iPhone app to crash for 3 days
> PositiveSSL from Namecheap (for $9)

I have one of these, they work great.

The one and only problem they have is they require 2 or 3 intermediary CA certs that need to be "bundled" into a file.

After buying one, and finding the Comodo provided instructions lacking the needed info, I put together a howto for both Windows and Linux (for Apache) - http://www.devside.net/wamp-server/installing-comodo-positiv...
The comment that there aren't many opportunities is wrong. If you're good and have been working at yahoo you'll find another job easily. But Infosys and Wipro are body shops, that's not a natural progress from working at Yahoo.
> antidepressants and ADHD drugs on the market even the though research shows they are actually worse than taking no drug at all

What do you mean?
There is no moral high ground in gambling. The house has the edge, and has designed it to be so. Phil Ivey is a smart gambler and knew how to shift the odds into his favor without cheating. He requested specific things, such as a specific flavor of deck that came from the casino itself and a mandarin speaking dealer. The casino agreed to these requests because it wanted Phil to play. They could have said no.

Phil Ivey's edge sorting hack is phenomenal. That the casino thinks they should be insulated from smart players is unfortunate but it is their prerogative to refuse play. However, it absolutely should NOT be possible to claw back winnings from players who were NOT cheating, only playing smartly.
Last time I tried (guess it was last year), Amazon.in didn't have enough products I could buy. It was really looking like a family-run home business just went online (whereas flipkart was massive). Don't know if that's still the case.
The answer to that question is legitimately "because humans that coughed and sneezed survived longer than those who didn't". That's literally all there is to it.
I basically agree - though I hasten to add that I never said anything about what penalty a person would actually receive or whether it is appropriate. I do think that it makes sense for "computer tresspass" to be punished more harshly than tresspass to physical property. It takes a lot more effort to break into a server than it does to walk through someone's door (or into their yard), so I think the baseline level of culpability is higher (though bear in mind that these are generalizations). There is also a lot more risk involved in a "casual" computer tresspass. But I agree with you that this doesn't gets us to the maximum CFAA sentence.

This gets us into complicated territory, though. There are very few people who have ever actually been sentenced to the maximum CFAA penalty. (I'm actually aware of none.) The actual punishments actually imposed are often, I think, fairly reasonable.

Of course, there are plenty who have been threatened with the huge maximum by federal prosecutors, but this is no different from any other crime. Of course federal prosecutors will menace defendants with the maximum possible penalty. They want to extract a guilty plea, and it would also be dangerous for them to claim that any shorter penalty than the maximum applied, since they do no actually control sentencing. (Imagine the controversy if the U.S. Attorney told a defendant that he was only realistically looking at 6 months but the judge gave him 2 years.) It's the defense attorney's role to make sure that her client has a realistic understanding of the likely punishment, not the government's.

What's really needed is a replacement for CFAA (and, for that matter, most other criminal statutes) with more carefully graded maximum sentences, but I've never heard a realistic proposal about how such a law would work.
Super important addition:

http://jetbrains.com/student/
Yep! The owner of a thing can do the following:

1. Give ownership away to something else.

2. Free the object at the end of the scope.

In order to do anything to the object, you give up ownership to the function that does it (which can then give it back, if it doesn't need ownership of the value any more and doesn't want to free it itself). This even applies to the `drop` function, which just takes ownership and then does nothing whatsoever to the passed-in value, allowing it to go out of scope immediately. So once you've called `drop(foo)`, you no longer own the value and so can't give it away to any reading or writing function, and you can't drop it for the very same reason.
Tyupkin el malware permitió robar millones de dólares de cajeros automáticos
I appreciate the artistic license of saying the "AIs" are doing this, but this isn't an AI issue at all. This is a particular single purpose program "Smile!" which is producing results by combining pictures together to produce a picture the author never took with a camera.

He could have blamed Snidely Whiplash, or the greek god Zeus with just as much verity.
It struck me how the cooperation of the casino often comes up in these stories. Here, the trick ended up relying on the casino enabling the Double Up option on request. There was a story making the rounds a few months ago on HN about a famous poker player who took a casino for millions of dollars (playing a different game) by relying on a subtle asymmetry in the back sides of their cards, and that scheme required the casino to cooperate by providing a dealer who spoke Mandarin and allowed the cards to be turned around ahead of time.

I wonder why casinos don't just refuse any sort of unusual request related to the game. Sure, it sounds like an innocent request that won't affect the payout. But how sure are you about that? Wouldn't it be safer to just set the rules and never change them on request?

I assume the answer is ultimately that legitimate high-rollers sometimes have crazy requests, and you make more money from accommodating them than you lose from cheaters. But the response from the casinos (getting this guy thrown in jail, suing the poker player I mentioned above) seems to say that they aren't really comfortable with that tradeoff.
Wow, didn't know he also authored htop.

After visiting his site[1], discovered gobolinux[2] too!

1. http://hisham.hm/

2. http://www.gobolinux.org/
> Perhaps they could have a filter based on completed courses through the various online options (Coursera, Code School, Treehouse, etc)

Couldn't agree more!!
"9,000 ISIS terrorists". Geez, I wonder how many it would take before it'd be called an army.
No. Some (more or less) modern languages have loose typing. Some modern languages have quite strict typing (Haskell for instance, but there are others).
> This code should work as is using Mono.

Sure, this one does, but nearly any .NET program with a GUI won't. It's very frustrating to run into useful programs that I can't run, and most often applications that fit that description are written in a .NET language.

> But the complaint was weird in the first place?

Yeah, true. There's nothing hard about reading C#, just running it.
I think calling it a 'trial' is actually a disservice. Most of these are good for the entire time you're a student or two years. Most trials are limited to 30, 60, or maybe 90 days if you're lucky.
Relevant quote:

While we can get a juiced athlete to test clean in less than two weeks, no noticeable loss of power has been seen for a month or more post cycle.
These guidelines are really strict, but I have to say I like the results in general. I can usually tell by the title if something is likely to contain information that's interesting to me, unlike with many news sites.
Are you having some difficulty? It works for me with the keyboard.
For newcomers I think the documentation is quite good. But where I think there is currently a big problem it is for intermediate / advanced level documentations, it is very limited. Sometimes you'll read some code and say to yourself "I didn't know I could do that, cool". In order to grasp more knowledge you'll have to read RFC, commit logs, issues, and source codes, but because it certainly is not your main job it's really time consuming.
Perhaps perhaps not. It seems pretty early still to say anything with certainty.
CPython is the implementation that 98% of the market uses, but you are partially correct for that other 2%.

You are also wrong for CPython which does NOT require the garbage collector to be on, and DOES release the file in a deterministic way.

Simply, the article is misleading with regards to python.
I think this is an expansion of a previous project they had. I already have a coupon from May 2013, when only the GitHub Micro plan was included.

This is an amazing opportunity and I'm notifying all my college friends.
Change.org petition for common sense travel procedures from ebola outbreaks
The exploration of modern programming is a big factor keeping people out. You don't get a computer with BASIC installed anymore, or magazines that teach you programming from start to finish with code samples included.

To figure out desktop programming, you have to download a compiler and hope there is a good tutorial on some random blog which most likely gave up after part two of a five part series. To figure out web programming you need a server and a domain name and wait what language are you using but then again what framework are you using and for the love of god how do I deploy I don't even know where Ubuntu keeps the /www folder and all of the tutorials I find expect me to know what an Angular is when I just learned what a Javascript is and I worked with Codecademy so I know Javascript but not how to use it to make a web page and I know Python but I still need to know HTML, CSS, and Javascript so I give up.

What's new on Netflix?
A collection of loaders using CSS 2D and 3D transforms
If borrowing is the default, why does it require additional syntactic noise? Why isn't transfer achieved by adding sigils such as "&"?
Thanks! ClojureScript (or Coffeescript, or anything other than JS) will not work "right off the bat", but you could compile to JavaScript on your end, then upload that compiled hero.js file to your github repository, and then THAT should work.

Hope that helps.
http://www.amazon.com/gp/product/0307452425/ref=s9_simh_gw_p...

http://www.amazon.com/gp/product/0465022006/ref=s9_simh_gw_p...
Also had a similar thought experiment, went and built it. Thanks for the other commentors as well I should link to this HN page in the README.

https://github.com/abemassry/crazip
Hey all, founder here! I've worked at a bunch of startups, and inevitably we'd have to make a dev.startup.com and I'd wonder why we were re-inventing the wheel each time. Every startup needs this, they all have the same basic features, yet every startup has to do it themselves.

Ergo, ReadMe! I wanted to do more than just documentation; it's a full developer hub for your community. The goal is to make it so any startup can have beautiful, interactive, collaborative, Stripe-quality docs without wasting valuable time.

HN has been a huge help while building it – I even picked the name after finding the domain for sale on HN :)
Casinos make money by providing games with various house edges to gamblers. Gamblers and casinos know this, and if it is unfair you have the choice to not gamble. Suppose there were a glitch with the machine that caused it NOT to pay out as it should... The casino would be liable to pay back that money to gamblers under numerous gaming laws. Would you then say that they should not have to pay it back as gamblers should assume risk when they gamble? Also, if it were found that the casino knowingly had a glitchy machine out there that did not pay out there would be people going to jail for that.

If there were a vending machine that gave me all of the money it had in it as change after hitting a combination of buttons, and I travelled to every machine in town and did this, I would be stealing. This is no different. If they calculated the house edge wrong and launched the game to players that would be a different story as the players played in good faith and it is the casino's fault that they did it wrong.
> you can say that about any company

Different companies have dramatically different amounts of management.
so if not hosting, care to speculate how docker is going to make $? Enterprise support / services?

Maybe a premium docker repo (mentioned above), where you pay for ... something?

How about competing directly with quay.io but they link up all the networking pieces for you automatically? a docker sdn! :P
> So I need to pay money to a big institution to be considered a student? Many 'students' would probably be in a better financial situation than a non-'student' who is trying to learn.

This points out sort of the paradox we have here...it's argued that you should just "learn to code," but then they're requiring here that in order to do this you need to be part of some larger engine of learning that my or may not have anything to do with what you're trying to learn in the first place. So which is it?
Love the attention to details, like the focus event on the password field: https://dash.readme.io/login
I admit the possibility of a conversational zero. I don't see much point in arguing over it. Given current information, I don't expect to even change my behavior over Ebola (but I'm not in Dallas and I already didn't have plans to travel to west Africa). That meets my hand wavy, just invented definition of a conversational zero.

I posted the link because you said resolute in saying the chance of Ebola spreading in the United States is "zero.". I figured it was fair for people reading that to have an easy shot at interpreting the video themselves.
Yup. I've been working from the bottom up, so I'd agree with your analysis wholeheartedly. As the rest of the Guides fill out, it'll get better.
I would always encourage using a library over not using one - if you're not using a library you're just going to end up making your own anyway to "save time" - might as well start with something everyone already knows. If your project is also going to be something that a lot of people touch, you don't want to be using your own solution or a lesser known solution just because it's neater - that would be a waste of time.

So yeah, in my opinion if you opt to use your own solution or a lesser known one, I'd say you're at least a bit of an asshole because 1.) you're assuming you know better than the majority of people (who don't have a problem with using jQuery) or 2.) you're wasting everyone's time by forcing them to learn something new when there's a perfectly fine solution already available.
I think it is a joke. The authors are probably anarchists.
I like starting a school-related project as a private Github repo, then as time or permission allows for to open it up as a public repo. I've open-sourced a few things this way, whereas the couple Bitbucket repos have been left to languish since I don't have a limit on private repos or the ecosystem to share it with.
He was changing the bet amounts after the victory. Imagine playing for pesos, and then upon victory tricking the software into playing for Euros.

If he had outsmarted or even figured out a way to control the random number generator through button presses, I'd be all for him. But this is more like finding an ATM that has a bug to not record withdrawals of exactly $420 and then emptying the machine.

It's shouldn't be lost that the casinos love to let players think they have an advantage, even they don't. The old joke is that casinos have a word for people who have a system to beat the house: "Welcome!"
I cannot even...

It's like 10 times harder to read.
This should be available to everyone who wants it, not just a specific class of 'students'.
What's wrong with multiple LEDs per chip, each operating at their most efficient range?
Real-Time Biometric Attendance of Indian Government Employees
All CA's require a bundle, just an FYI.

Comodo has two because they have the structure like this:

=> Old Root (with trust everywhere)

==> New Root (with limited trust)

===> Issuing Intermediary

====> Your Cert (no trust without intermediary)
The author's reasoning for this posting is likely due to the Nobel Prize announcement:

http://www.nobelprize.org/nobel_prizes/physics/laureates/201...
This is an interesting point. The offer is nice, but does not offer anything that you can't get from the open source community or companies that have free trial plans. I'd say that learning these days is much cheaper than it was years ago. You don't need to get a server to push code, because you can use something like Heroku (php, python, ruby, java) or Azure (for .NET). Bitbucket is free. Multiple IDEs and/or text editors better than Atom are free (or have a trial plan). Etc.
I'm not sure that I buy this is a "pre release" iPhone. The dead giveaway for me: a valid serial and IMEI on the backplate. No prototype would have this.

It looks more like a production iPhone running the (leaked) internal testing OS.

Lots of iPhone prototypes have surfaced with blank backplates, or IMEI inscriptions as a bunch of Xs. There's nothing separating this hardware from a production piece, which wouldn't be the case with the true prototype phones.
You're of course right, what I meant to say: In the typical use cases of sqlite the whole db content usually is cached in RAM anyway, so 50% faster really is 50% faster. I found that out quite recently when researching whether caching pythons sqlite in a web app prototype would make it faster: It won't, It's usually completely cached anyway.
Yes. For instance, the person with $300 speaker cables feels good about how they sound and that puts them into a good mood. This is a physical benefit.
It's also, frankly, expensive before you know which things you really need when starting out. You're easily looking at $100+ a month for even a basic set of saas tools. Most of these programs have limited accounts, but they're often only for public use. There's very little help when you're in the gulf between getting your first users and actually making money from them.
I have to assume you're being funny.

Otherwise I'd like a batch of whatever it is you're smoking.
Ask HN: Asking Salary  MS Azure Team
I have been made an offer for a senior development role at one of the MS Azure teams.

How much money should I ask for?
Should I ask for stock options too?

I have about 6 years experience.
Why we are investing in Blockchain
...but he lied. If they had said, "Hey, why do you want this?" and he said, "I think I've got a system for beating baccarat", and they went ahead anyway, they're idiots.

But they asked and he said that he was just superstitious, it was for luck. At that point he was being disingenuous.

Was it legal? Probably, I'm not a lawyer. Was it ethical? I'm leaning towards no.
2.5m from the UK alone according to this: http://www.lattitude.org.uk/2012/04/the-number-of-gap-year-s... (sounds too high), this says 200k from UK
http://www.gapadvice.org/index.php/considering-a-gap-year/fa...
My guess is the worldwide figure is in the millions.

I want a rough plan with bus/train times, hostels shortlisted and other notes about how to make it all work together, then I'll probably change the plan if I stay in a place longer or shorter than expected. I'd like to have record of how much I've spend and will spend too. A lot of people in Europe are interailing, which mean they mostly just book trains and hostels - which seems like a simple use case compared to elsewhere.

Existing solutions in general are basically:

- plan everything before hand e.g. get a bunch of receipts from STA travel before you go.
- book a tour (e.g. g adventures), then everything is organised for you