skysight-inc/HackerNews huggingface dataset:
The podcast Podcast.__init__('Python')[1] recently interviewed the developer of Automat module [2]. The author explains when you should consider using a state machine in your Python project. I didn't realize there were so many types of state machines, and the author explains where his module fits into this ecosystem.

[1]: https://www.podcastinit.com/automat-state-machines-with-glyp...

[2]: https://pypi.python.org/pypi/Automat/0.5.0
Iran? East Timor?
Blimey! Here I thought any database server worth a rusty copper can do a detailed, queryable audit log / trail if that's what you need.

At least MySQL, PostgreSQL, SQL Server, DB2, Oracle surely can.
The difference I see, is that in the OP game every player is guaranteed to give out $1 at each step, while in the video, a player is chosen at random to give out $1. I don't know how this might change the long-term distribution.
https://www.reddit.com/r/programmingcirclejerk/comments/6m7g...
The past isn't a possible present (it is still fine to compare if there are enough analogs).
The thing is, the software does suck some of the time. Here too, I'm not saying your software sucks, but web developers have developed several bad habits that put users at risk for no particular reason other than sheer laziness.

here are some examples:

1) Instead of putting third party scripts under your own version control and hosting them yourself, you host them from a "free" CDN which then stores tracking cookies in the origin of the user loading the script. How hard is it to serve all the js libraries you need from your own server?

2) You like some nice widget, like Google Maps. But hey, to use this widget, you need to load a third party script in your origin. No biggie, it's better than paying for a maps widget, right? Except now the user has a tracking cookie in your origin and you didn't disclose this or give the user an option to opt out. What you could have done is loaded that map inside an iframe that is served from a content domain or throwaway domain, so that there is a separation between your cookies and your scripts and the third party cookies and their scripts. This goes for all other widgets as well.

In the above two examples, the developers aren't being paid or are receiving revenue in exchange for installing tracking cookies in their origin, they are just letting it happen because they don't care and they want things to be easier on them.

I get that there are ad supported websites, and if this is your business model, then you are free to give it a go -- but I get upset when the justification for the tracking cookie is developer convenience rather than any kind of business decision to drive revenue.
I don't understand - how could assault or rape be the responsibility of the event organiser? If people are being dicks they should be paying for it, not the event's insurance.
Yes, that was the general argument for why it's hard/expensive to insure a festival. But all the problems with Fyre festival were the fault of those who organized it. (Or didn't organize it, I guess.)
I wouldn't let that stop you: adding a service work won't in any way degrade the experience of Safari users. When used for caching, it's pure progressive enhancement.

Sure, some browsers will have a more robust experience in adverse network conditions, but the experience once a page has loaded will be identical. It's also difficult to accidentally make the worker a hard dependency of a site, since even supported browsers will load the site without the worker on first visit.
No, Netflix always used DRM (either via an app or via FairPlay).

The argument has a tiny issue in that it's not actually true. At all.
I don't know who is either, but how is ignorance going to be fixed if we punish people who ask questions?
I was going to say, "Isn't this what the application cache is for?" then I looked and saw it has been removed from the standards.
Why VR shouldn’t be called VR
Here is a great summary of A Guide to the Good Life: http://becomingeden.com/summary-of-a-guide-to-the-good-life/
One of my favorite C reading experience is maru http://piumarta.com/software/maru/

(self bootstrapping lisp)
Also I should clarify on the sale of the tokens. This was SJCX, it wasn't a premine, but that token had been trading for years and I held mine for well over a year. I never held any of the tokens that were part of the recent sale.
> and when apple decides to drop flash support, what happened? Did netflix or any other video content producer suddenly decide to stop supporting those devices? No, they went with html5 video (and at that time, free of DRM). That was a great step forward for DRM free content for the web.

Unambiguously, no, they didn't.

They used applications that had Playready or Adobe Access or Widevine built in, or a little bit later they used Apple FairPlay inside the browser. Some also used root level Apple certificates to limit streams to iOS devices only.

Unambiguously, this argument is factually false.
It sounds like djb's cdb to me
http://cr.yp.to/cdb.html
Also, you'd think that requiring a commercial flight to a remote island would filter out most of the drugs anyway.
"Actually, this is good for bitcoin!"
Since I've made similar experiences, I would guess it's some kind of enterprise software, that is used by other companies internaly? So the amount of users stays roughly the same all the time and if it's hosted inside a intranet, you don't have to care about availability too much, since there are bigger problems if the intranet is down.

Also it might be easier to make big money with enterprise software since your customers are willing to pay much more money

At least in the company I'm currently working in, it's kinda like this (but not as big as you described).

Since we are trying to get more into the endusers market, we are now at a point where there needs to be some restructuring and we are transisting to a serviceoriented architecture.
Neither is the article claiming it had? Despite the headline, it really is primarily talking about festival insurance in general.
> everyone managing their own funds with their own private keys is still ultimately goal of Bitcoin

No it isn't. The goal is to enable financial freedom, so that the people who want that level of control over their money can have it, but those who see benefits from having their money cared for, can do that too.

If I think I'll probably lose my bitcoin trying to store them myself, and that they're probably safer on Bitcoin Service X, I should be able to keep them there. I should also be aware of the tradeoffs.

Remember all those stories of people losing millions of dollars because they kept their crypto on hard drives? I know it's easier now, but it's still a lot of work. You can manage that work. Many people can't.

IMO the philosophy of Bitcoin is not "you should do things this way," but "it's important that people be able to do things this way, if they want to."

But the Mt Gox event did help make it clear that people should be selective about how they store their money.
It didn't work for music either. The industry is now majority distribution via DRM subscription streaming.
Then why must Africa receive millions in aid from the West every single year? Why can't they help themselves?

http://www.chronicle.co.zw/one-million-receive-food-aid

In 2015, the U.S. provided more than $8 billion in assistance to 47 sub-Saharan countries; and USAID maintains 27 regional and bilateral missions in Africa.

http://thehill.com/blogs/pundits-blog/foreign-policy/323198-...
Ask HN: How independent is your digital marketer from your tech/UI/data team?
I was reading few articles recently and started wondering how independent are our digital marketers to perform their day to day operations from developers/UX/data analysts?
Below a snippet from VP of Growth at Segment in a recent AMA.

"Pace of experimentation. We’re not testing nearly as many things as we should. As you pointed yourself a lot of times, one of the key factors to success is the pace of experimentation. So why are we not testing more? Mostly because we lack technical resources. I usually manage to get engineers dedicated to Growth, but after landing in the Bay area I discovered that engineers are (surprisingly) a rare thing around here, thus hard to get. Most of the interesting growth experiments we work on are fairly technical and require some kind of engineering.

Then, the honest answer is internal politics. As most heads of Growth, we’re facing the reality that this role is new and not ingrained in the organizations yet. So we face a lot of pushback from the product/engineering teams when we try to push significant experiments in the product. As a result, we’ve retreated to a safe space, outside of the product, where we can still have a ton of impact but face much less overlap."

With increasing role of marketing across the customer lifecycle and by the introduction of new roles like Head of Customer Lifecycle they need access to every area of the business and product.

Even to run small experiments they rely on developers - there are not enough tools to support digital marketers in those aspects. These aspects pull down the productivity of our DMs.

I would like to know digital marketers/growth hackers views.

What do you guys think of this situation?
Show HN: Shiki – Access Wikipedia in your terminal
The blog author cannot even mocks generics right, in C# the string type in not a generic type. He recognize generics are good for map, list, but it is ok that users can't declare their own without explanations, only vague caricatures. Go community is all about choice-supportive bias (aka post-purchase rationalization).
Sorry for the very late reply. My worry is that the type of companies I'd like to work for don't really seem inclined to take me right now.
The US was neutral and did business with both allied and axis powers at that point. We nevertheless tipped the scales strongly in favor of the allies with the lend lease act, for example. And the historical record is pretty clear that from the beginning of the war, Roosevelt was itching for a reason to jump in on the allied side. Your anti-American historical revisionism is contrary to the facts.

The idea that the US should stop doing business with China is ridiculous. As a major nuclear power with an economy that within in a decade or two could surpass ours in total output, America is in no position to do anything about China's internal affairs. Ending trade with China would cause extreme economic damage and internal unrest in the United States. It would be a phenomenally stupid sword for America to fall on.

You're right in general though. America's main interest after the security of ourselves and our allies is open and peaceful commerce between nations.
The only reason why anyone might find this surprising or counterintuitive is that they're using a terrible visualization. Dollars should be on the x-axis, and number of people should be on the y-axis. If you had that, you'd see this slowly converge to a standard distribution (bell curve).
So this one time at a journalism conference…
> Writing a complex program in a very abstract language further away from an engineer's typical problem domain, being fairly limited in types of languages supported for extraction, and/or still having to have an awful lot of faith in the extractor (which itself is unverified as near as I can tell) are all things that are currently keeping me out of Coq for immediate use cases.

Indeed, which is why I think something like Idris will probably be the future. We need to combine programming and theorem proving, and allow us to move the line incrementally closer to or further away from full verification as the problem evolves, becomes better understood, or new techniques emerge.

Full verification for most programs is still too difficult, but we should be able verify what's feasible and use standard testing techniques for the rest. It will still be a huge leap towards real software engineering.
You're not forced the have an internet connection to watch UHD Blu-rays.

The spec allows a disc to require it, but it not a single disc has ever turned it on. It was also in the blu-ray spec, and not a single disc ever turned it on there either.
From the article:

> In late June, Insomniac Holdings LLC and Live Nation Entertainment Inc. were sued for the wrongful death of attendee Tom Nicholas at the Electric Daisy Carnival festival in Las Vegas, alleging the event made it difficult to access water and medical staff. In 2016, the mother of Emily Michelle Tran, who died at the HARD Summer Festival in 2014 after taking MDMA and having a seizure, sued Live Nation for negligence and wrongful death. Insomniac and Live Nation declined to comment on the litigation.

The key there was the difficulty accessing staff. For assault and rape, the organizer could be at fault if there was insufficient security staff, or the hired staff ignored an issue allowing for negligence. Furthermore, if the security ignored an individual who was drunk and belligerent leading to an assault or rape, that would also be an issue. With the prevalence of drinking at such events and security missing or overlooking such an event, this is a very real concern for insurers.
شاهد لحظة انفجار خط غاز بمنطقة أبيس في الإسكندرية صباح اليوم
Men are attracted to less pretty/feminine women in hard environments
I'd like to thanks everyone who participated in this thread. Very good stuff. It looks like I'm gonna have to highlight my personality to make sure it's inline with an engineering manager role. Since it's the only thing I have on top of a strong tech background and mentorship. Interestingly, I also have a little bit of product management experience. But really it looks like it will be about my ability to make all my interviewers feel like home.

cheers!
It's browser specific. Most use a heuristic along the lines of allowing browser storage (inclusive of IndexedDB, etc.) to use a combined 50% of the device's otherwise free space. Usually each origin is limited to around 20% of that potential usage.
In my academic systems papers, the evaluation criteria is generally performance. I have to admit I'm not quite sure what you mean.
I'm from Germany, often considered the country of quality engineering and just look at our airport: https://en.wikipedia.org/wiki/Berlin_Brandenburg_Airport#Del...

tl;dr: Planned to open in 2011, it's still in construction with some say it won't open before 2020.
that's from https://blogs.scientificamerican.com/mind-guest-blog/opioid-...

Which says eg

> A Cochrane review of opioid prescribing for chronic pain found that less than one percent of those who were well-screened for drug problems developed new addictions during pain care; a less rigorous, but more recent review put the rate of addiction among people taking opioids for chronic pain at 8-12 percent.

Let's have a look at what that Cochrane review says:

http://www.cochrane.org/CD006605/SYMPT_opioids-long-term-tre...

> The findings of this systematic review suggest that proper management of a type of strong painkiller (opioids) in well-selected patients with no history of substance addiction or abuse can lead to long-term pain relief for some patients with a very small (though not zero) risk of developing addiction, abuse, or other serious side effects. However, the evidence supporting these conclusions is weak, and longer-term studies are needed to identify the patients who are most likely to benefit from treatment.

This tells us that the carefully selected patients were not getting pain relief or had too many side effects; (a third dropped out because of these) and we can't say too much about addiction because not all the studies reported it: "Signs of opioid addiction were reported in 0.27% of participants in the studies that reported that outcome"

It's hard to see that 0.27% (with who knows how many unreported cases of addiction) and that later 8-12% in the same paragraph.

> Moreover, a study of nearly 136,000 opioid overdose victims treated in the emergency room in 2010, which was published in JAMA Internal Medicine in 2014 found that just 13 percent had a chronic pain condition.

I mean, doesn't that tell you there's a massive problem with prescribing?

> recent research on roughly one million insurance claims for opioid prescriptions showed that just less than five percent of patients misused the drugs by getting prescriptions for them from multiple doctors.

THat para links to a document called "THE OPIOID CRISIS IN AMERICA'S WORKFORCE" http://www.castlighthealth.com/typ/the-opioid-crisis/

The first para of that report says:

> The use and abuse of prescription opioids continues to be a challenging and costly crisis for the U.S. The facts underscore the severity of this crisis:

> • Nearly 2 million Americans are abusing prescription opioids1

> • 16,000 people die every year from prescription opioid
overdoses2

> • Sales of opioid prescriptions in the U.S. nearly quadrupled from 1999 to 20103

> • 259 million opioid prescriptions were written in 2012, enough for every American adult to have their own bottle of pills4

That Scientific American writer has misrepresented every source so far.

For fuck's sake, that last link specifically says:

> One out of every three (32%) opioid prescriptions is being abused.
If the file wasn't DRMed I'm not seeing why the app or OS wouldn't have decided to do exactly the same thing.
IMO, this is mostly around the pain of spending money not the actual cost of content.

Cable runs around 1k/year or more and has advertising, which used to be a fairly normal thing upper middle class people bought. Split that into into individual purchases and your likely spending far less. You just happen to notice that your spending money where subscriptions are a background thing.

Also, don't forget Netflix DVD is still an option.
If the questions are anything like the theoretical test when you are getting a driving license, your app can still be useful.
As a real-world example, there are workarounds used for banking by Muslims who don't believe in ursury.

https://en.m.wikipedia.org/wiki/Islamic_banking_and_finance
I know that I wouldn't want the choice of a fly-by-night front-end framework influencing how that's done with a back-end database. But, looks like I made the wrong assumption about the db structure that was influenced, I guess we have front-end databases now, which is an interesting idea I will be exploring furtherer.
“The right kind of student loved his classes”
Obviously logic is not part of your thought process. If we continue to populate the earth, which has limited local resources with more and more people nobody is helped!
Fuck the rain forest? Really? The Rain forest is more worth than a few billion people.
People are not worth anything. Everybody is replaceable, there are nearly 8 billion of us. Stop being so arrogant and anthropocentric.
@Thread: 2 million saved are 2 million more living shitty lives and potentially suffer from starvation, malnutrition, civil wars etc. If you want to help the people make sure there are less of them! Spending money on mosquito nets...seriously people, just saying that makes it ridiculous.
> It would be great to see lighter-weight, more accessible ways to embed proofs in real-world programs and run them in test suites.

Not sure what this means exactly. Do you mean extracting the part of the proof that can't be verified statically, for whatever reason, as some kind of test suite?
I lease high end German cars. Zero maintenance and zero of my time dealing with repairs or random "won't start" surprise. What's value or your time and frustration?

Whether this analysis makes sense depends on your perspective. Also assumes you are not a car lover. And even in this, the three year lease is not substantially more than the other options.

It has never made sense to me to keep cars until I can't trust them anymore.
I can certainly sympathize with this viewpoint and even share it in some ways. However, I think it's a bit hyperbolic to call them world-class when you view their accomplishments through a lens that accounts for their human rights violations and atrocities. Very few governments in the world can claim to be completely void of these violations, but China is particularly egregious in this regard.
Do you really need to live in SV to make millions in tech?
And DRM prevents that how exactly?

It depends on the form of DRM and its effects.

One practical scenario is that most of the revenue from a new work may be generated in the early days. This is often the case with things like computer games, pop music, and big ticket movies. If DRM delays those trying to set up copycat channels, even by a few days or weeks, much of that revenue may already have been collected.

Another is that fingerprinting techniques may allow for things like automatic takedowns on the major hosting services, or identification of the source of a major leak so full legal action can be taken against the right targets.

I would take this as a hint that it probably should be allowed then.

It's not that simple. To give an obvious example that upset a lot of people, Google added a video download icon in Chrome a few months ago, right there in the controls alongside changing the volume and so on. A lot of people running small web sites that provided video content saw a spike in people who were sharing that content in violation of their terms, and it turned out that many people assumed the download button was a new feature on the site without realising that it was Chrome that had changed. This caused big problems for web developers working in this area, and a lot of complaints to Google about actively encouraging people to violate copyrights. And simply changing the way videos were served so Chrome couldn't provide that facility in the same way then fixed the problem again.

If lots of people innocently assume that something is perfectly legal, the way of tyranny is to build a police state, the way of democracy is to make it legal.

Democracy only works when the population is properly informed and understands the implications. That's hardly the case in the sort of situation I mentioned above.
IoT Remote Relay Build with ESP8266
I agree, I don't believe that someones search habits are indicative of their sexuality. Just because a woman watches lesbian videos or a man views gay porn does not mean that they are gay. Maybe they could be slightly bi-curious but still have no interest in a relationship with the same sex. And how do they even know that the searcher is a man? Lots of straight women watch gay porn and that obviously does not make them gay.
My Personal Development Setup for My Mac
That remains to be seen. Right now china is neglecting less sexy infrastructure for more sexy infrastructure in a very centralized non market manner. That's why an ultra modern HSR can be flooded out whenever there is a bit of rain (billions for HSR, much less for basic draimage). Also the model that the expressways are being built (loans paid off with tolls), doesn't transfer at all to local roads and bridges.
And reactions like yours based off emotion rather than willingness to provide facts or logically argue are what push people away. In the meantime, it is true that Africa's population is going through massive booms artificially propped up through aid, aid which in direct competition with native agriculture, actually even harming their ability to naturally provide their own means of sustainability. And that's before you even consider impacts of things like the tsetse fly which costs African Ag business BILLIONS. http://www.irinnews.org/news/2009/05/12/tsetse-fly-costs-agr...

These things are a potential ticking time bomb if not truly considered in the fullest of their implications. The African population, usually dependent on having as many offspring as possible to offset a low survival rate, is set to bring more people into the world than the entirety of Europe in the next 15 years, with arguably little means to account for their well-being.
Contimplating fostering a computer nerd to do QA. I believe that is how the old apprenticeships worked.

Would also move out with a savings, a marketable skill, and references at 18.

Not a bad start for a Dev.