skysight-inc/HackerNews huggingface dataset:
> Are all form fields (with the exception of password fields) validated with a restrictive regex?

Please, whatever you do, do not try to regex validate people's names. A friend couldn't complete an order on a site the other day because it was rejecting his name as "invalid" per its shitty regex.

See also Falsehoods Programmers Believe About Names[1]

[1] http://www.kalzumeus.com/2010/06/17/falsehoods-programmers-b...
Here's the change, about 1 week after the article was published. https://www.openstreetmap.org/changeset/11751043 The commit doesn't have a comment, but a new field 'note: position after movement estimated' was added by the committer. A year later another mapper added building color and material, last year a mapper added the full address and today somebody added the building name "Oerlikon" because that's what people usually refer to (Openstreetmap's search updates almost minutely).
What is the meaning of the last point?

> Do you have an account recovery flow? Delete it immediately.
I mean, communism has a particular definition, so if that definition isn't met, then it's not communism. Communism is a classless society with worker control of the means of production.

A sprawling centralized state bureaucracy is none of those things. Indeed, the whole departure of Leninism from Marxism is the idea of a vanguard party transitioning from capitalism to communism via a state apparatus. It's a fundamentally elitist doctrine that quite obviously did not work the way it was presupposed to work.

It's not like people don't talk about capitalism in heavily idealized terms, either. I've never seen an exegesis of liberalism that doesn't elide the pervasive and frequent expropriation and violent enforcement required to prevent the system from falling over.
What is the root cause of economic inequality?

Even if you solve absolutely all the problems related to the level-playing-field and give everyone the same chance, you're still going to have some people who produce more value than others. I would say that is the root cause.
auto ret = sp::call({"ls", "-l"}, shell{true});

How does this "shell{true}" bit work? It looks like a named parameter, but I thought those don't exist in C++.
I fell in love with programming but I think it's ridiculous to gift my free time to my employer. During my free time I'd rather write my own software (or open source) that has a chance of either benefiting humanity or getting me rich.

I think that people who work on their employer's projects during their own time are unimaginative - they could be writing their own software for their own benefit but they instead choose to make their employer rich and not see any of that compensation themselves.

This is of course assuming you're drawing a salary from the company and you're not mostly paid in equity, in which case putting in free hours might make more sense if you can make the product profitable.
Release of the Silicon C++14 Web Framework 0.1
Looks nice, but the title here is too editorialized. From the guidelines:

> In Submissions

Please don't do things to make titles stand out, like using uppercase or exclamation points, or adding a parenthetical remark saying how great an article is. It's implicit in submitting something that you think it's important. [...]Otherwise please use the original title, unless it is misleading or linkbait.

Also, I think that here will get more attention a blog explaining HOW they designed it, with more technical details.
Agree. Once you've put in the requisite learning time, ascending with even the more difficult classes is just a matter of time and preparing for the most deadly encounters and RNG outcomes, while avoiding inflicting YASD on yourself.
You would be surprised how oversimplified most economic models are, particularly those taken as gospel. For instance, I won't deny that there are certain situations in which supply and demand curves are predictive (we all know how commonly they are cited to explain pricing in a market), but consider how many conditions must be assumed in order for them to apply as originally constructed:

1. The good is a commodity, i.e. its labeling has no effect on perceived value

2. The selling firms are perfectly competitive (i.e., no partial or complete monopolies that allow price-fixing)

3. The buyers are perfectly competitive (i.e., no purchasing groups)

4. All sellers can sell to all buyers equally easily

5. All parties in the market have equal access to information

6. All parties act rationally and based only on the marginal utility of each individual transaction

etc., etc., and a whole litany of other things that we know are rarely true. Since the theory is so "squishy" in practice, one could even protest that it does more harm than good when treated as a de facto starting point for price modeling: https://en.wikipedia.org/wiki/Supply_and_demand#Criticisms

So this model, even if it too is sadly oversimplified, may still be useful simply by starting from a different set of assumptions than whatever is typical in the field, and seeing how the modeled behavior differs from existing theories. There's basically no hope of experimental validation for any of this, though.
Dynamic Attribute Based Finders in Rails
Some but not all - I was referring to tracking cookies and the likes. SDC on FF allows auto deleting cookies and local storage that you don't need and that takes care of the tracking. Given how much I have already invested in Google ecosystem (Android, GMail, Photos, Hangouts etc.) I am not that much concerned about privacy from Google.
There is an easy way to break the paper ceiling: get a degree from an accredited school for 'money'; there are many such schools out there, who will take your money happily and hand out degree in 3 years of course work completion. PM me to get more details.

Follow maxaf's advice as well: Unless you can get a golden parachute when you are let go, don't think about the career progression on the management ladder.
That's also some promising ongoing work implementing Ruby on Truffle.

https://github.com/jruby/jruby/wiki/Truffle

http://lists.ruby-lang.org/pipermail/jruby/2015-December/000...
Complain about the surveillance, hidden in an app I installed without any thought of that surveillance.

The same as I would complain about someone peering in my window from outside my house or through a long lense, which also doesn't physically hurt me.
No Instruction Set Computing and Tensilica's Xtensa are interesting work along those lines. Basically customize the CPU go the fast path. I'd love to see it combined with whole program optimization.
Those incentives to act maliciously can be minimized or eliminated.
Anything else from Brady Haran is pretty fun and educational. Not exactly in the spirit of pedantry and sit-down-and-take-notes, but really fun and engaging (like all good teachers should be, I say)

https://www.youtube.com/user/numberphile

https://www.youtube.com/user/Computerphile

https://www.youtube.com/user/sixtysymbols

https://www.youtube.com/user/periodicvideos

etc...
I know a lot of people have this and I am happy I do not. When I played games in 70s and 80s I made up everything in my head. Even complete 3D; playing the first Metal Gear it felt like the 3d version that would come many years later. I even told people how I saw the enemies and how I felt the betrayel of big boss and drew the different buildings in 3d for them as my mind made them. When I play modern games I do not have to do that anymore and it feels like a loss. So I play both old and new when I have time to play. But better graphics do not do much for me. In films either: I am thinking stories around the story while watching and add things that I think should have been there. I (and luckily my wife has that too) do not mind watching a very low quality version of series and movies as long as the sound is clear. I find it far more disturbing that storylines are so uninspired more often than not and that for instance 'people' seem to enjoy garbage that is just a soap opera with aliens vs hardcore scifi or horror. That beats bad cgi any day for me. But yes to recognize it even is bad cgi I need to switch off my internal augmented reality show.

Edit: that is something I noticed: those 4k+ bigscreen TVs make material not specially made for it (which is most for now) look far worse than on my crap TV. It is far too detailed so I have a continues uncanny valley feeling even with the latest productions.
Look at that waterfall Gantt chart! Marvel of management!
Startup stock is truly imaginary, yes, but even Google stock has the magical property that some amount of it stops existing when you leave, which everyone does eventually.

...unless they've stopped issuing stock with a vesting schedule attached since I was there, of course, but that seems improbable given the financial advantage it creates for them.
iOS really ought to put a "currently recording audio" icon in the menu bar, in addition to the existing one-time permission request. Sophisticated hacks could bypass it, but it would at least help in more pedestrian scenarios like this one.
Can we cool it down with the d3 masturbation? The bouncing elastic movement of these illustrations is distracting and resource consuming.
RNNs (recurrent neural networks) can be seen as generalizations of Markov chains - or as I prefer think of it, Markov chains are very limited RNNs. There is an enormous amount of research happening around these sequential models (and differentiable DAGs (directed acyclic graphs) aka neural networks in general) these days.

Markov chains have never (in the work I have seen at least) tried to imply causation - purely correlation/probability. There is other recent research on causality (see the work of Pearl), but just because one thing very likely follows another doesn't mean the preceding event "caused" the next one, as both events could be side effects from the same (unobserved) root cause.
How is it better than:
[brew install gist]
gist myfile.txt
Is the problem with account recovery the fact that it means "deleted" isn't actually deleted?
Short version:

The coroutines are regular threads. The library provides an interface for syncing which makes them behave as if they were "real" coroutines. This avoids common problems you run into when making coroutines in C++ which by itself does not support coroutines natively - but it supports threads very well.

Pros: Very easy to implement and use. Will likely work very well anywhere without much thought.

Cons: Resource hungry. Not really designed for thousands of simultaneous coroutines.
Why would loyalty have any impact on gifting your employer free work? You can be loyal without giving away things for free.
I am certainly not one to defend this Administration but it is very easy to declare something while running for office as well as when you initially take office. Then reality hits. Pretty much your ideals if they did exist will be buried under the bureaucracy.

It isn't as if he gets to decide what is released and what isn't. Some functionary is making that determination and likely going the safe route each time. Even if he did make a decision prior agreements with others can put a block in.

BTW, a wonderful site http://www.foia.gov/data.html
It is probably hard for a modern audience.

The first problem is the traditional use of uppercase for the keywords, that many dislike, but any suitable IDE would "convert as you type" kind of thing.

The chapters about multi-threading, file IO and graphical system are interesting and it contains multiple references to contemporary work like Topaz.

But while it is very interesting from historical perspective, I am not so sure if it would be useful for modern audiences.
I don't know much about inequality specifically. But I know poverty is a bad thing for everyone. It creates violence and prevents people from having a chance to contribute to society. We're starting to see people who have health issues that have accumulated over multiple generations: lead poisoning, nutritional deficiencies, drug poisoning...

Is it ok to have inequality if everyone is at least middle class? It seems ok, but I think the problem with this is the artificial barriers to breaking into the wealthy class. Lots of more capable people tend to be held down in lower classes while less capable people are allowed handle the wealth because they were born into it, know the right people, and know the culture.

Of course there are plenty of exceptions to this trend.
They seem to be saying you should have no online process to deal with lost passwords, forgotten userids, etc.

Which is, of course, not practical in most situations.
I somewhat have to disagree in that the popularity of Diablo is similar to that of WoW - the underpinnings in pure addiction. Random positive reinforcers are really, really powerful.
San Francisco's first automated restaurant is 'pure magic'
This isn't quite related to your question, but I think Markov chains made their debut in the original information theory paper by Shannon: http://worrydream.com/refs/Shannon%20-%20A%20Mathematical%20...

It doesn't necessarily matter whether they're still in use. All of these tools are worth learning, so that if a problem ever comes up that can be solved by markov chaining, you'll know it right away.

Same for all the other tools, though. And there are a lot of them.
Are there orgs I can contribute resources to which audit open source software?
Jeez people, I also disagree with oolongCat, but is the heavy downvoting really warranted?
The Road Taken – History and Future of U.S. Infrastructure
I know this comment will be unpopular here but...

Some of this argument doesn't hold up. Websites are not electrical signals that just enter your space". You're explicitly requesting access to them. And, they are not free to operate. Your requests to view them cost the producer some amount of money.

I'm not a fan of ads myself and think they are frequently outright abusive (even without malware). In fact, I pretty much detest the volume of advertising today.

But, I don't get this idea that we have a right* to consume web content hosted on a private entity's servers. There is a choice not to consume at all. Yes, companies like CNN shove so many ads in their vids that they are now more ads than content. So, I no longer watch vids on CNN.

I also think the analogy between ad blocking and grabbing a snack during TV ads is lacking. In the former case, there is a "set and forget" tech that guarantees that no ads will be seen...ever. In the latter case, one must actively avoid each advertisement, and do so with near perfect timing.

>...business model should take into account that a certain fraction of users are going to block [ads]

The reasoning here reminds me of that employed by people who believe music should be free. But, I can't figure out why people who presumably appreciate an artist, think that artist should work for nothing. The answer is that they don't actually believe that. Instead, it really boils down to "let someone else pay for it".
Gotcha. Appreciate the review.
Ehm, no? Free software says nothing about making your encryption easy to break. If I use free software to encrypt my hard disk and then somebody kills me my password is gone.
Edtech has a culture problem
"The reverse was true when a job attracted more men. Computer programming, for instance, used to be a relatively menial role done by women. But when male programmers began to outnumber female ones, the job began paying more and gained prestige."

This is a direct reframing of history to meet an agenda.

Furthermore, if the authors can't understand why an Information Technology manager makes more than a Human Resources manager, except in terms of gender, you can be pretty sure they are working very hard not to understand it.
A meta comment, but I'm really interested here. I tend to read the 'new' page a lot (I mostly see HN stories in the RSS feed rather than visiting the site) and there is a constant stream of "the economy is going to explode!" submissions. They are all based on loose reasoning and wild extrapolation (much like this one).

I enjoy thinking about economics because I am fascinated by systems. And economic systems are pretty cool because we all participate one way or another, they behave in ways that we might individually dislike (like "fair" market values) and as we are all components in a larger machine we get to try to see the "big" picture to understand what actions are available to the individual cogs.

And as the system arises as an artifact of our individual actions, it cannot "break", it can only "change". Further, when it does change it does so over months or years as peoples actions change and new equilibrium emerges.

Many, if not most, of the stories posted take some aspect of the system and extrapolate it out to some weird end point. My favorite example is, "Housing is so out of control in SF soon nobody will be able to afford to live there." On its face, extrapolations like that are silly. If nobody lived in SF, there would be no companies and no businesses and no need for city services, it would be a giant scrubland. Which absolutely nobody believes would ever happen. It doesn't happen because prices rise until nobody (individual action) is willing to buy at the price, at which point sellers have to lower their price (individual action) if they want to move away and realize the economic value of their home. Or more crisply, the system adapts to what is happening and that adaptation becomes the new normal.

So when I read these sorts of articles/stories, I always wonder "What are they really trying to say, the premise is clearly bogus so that can't be it." And in this particular case it seems to be trying to make people "care more" about inequality. Did you care more? If so why? If not why?
Wow, Matt Uelmen is fantastic! Also, he seems to be on Twitter. https://twitter.com/uelmendrado
I think it would be much more interesting with a guide to hidden markov models.

I'm surprised how much focus there is on regular markov chains without any hidden units on places like hacker news.
Australian Climate Council calls for urgent action as records tumble
If sales was demoing it, they would've pre-warmed the cache by running the report until it no longer fails before the demo.

Not that I've seen sales people do such activities before...
> I believe that for any electrical signals that enter my private space or privately-owned devices, I have the right to do whatever I want with

Radar detectors are illegal in some places.
the breakthrough importance of markov chains

i feel like i hear less and less about markov chains
are they still in research and use?

Markov chains will always be important, because they are a fairly fundamental concept (going back to the early 20th century).

They idea is certainly still widely used: two major classes of applications are Hidden Markov Models (where you attempt to infer the hidden state of a system from observations that depend on the state) [1], and Markov-Chain Monte Carlo (MCMC) [2] (where you sample from a probability distribution function by constructing a markov chain whose equilibrium distibution is that distribution).

is page rank still the most prominent search algo?

PageRank is really a ranking algorithm, rather than a search algorithm. It's been applied to many things other than web searching, and has many variants (e.g. see the review article "PageRank Beyond the Web" [3). That said, Google rankings depend on many things other than PageRank.

i always felt these probabilistic models were a conflation of correlation and causation

What do you mean?

[1]: https://en.wikipedia.org/wiki/Hidden_Markov_model#Applicatio...

[2]: https://en.wikipedia.org/wiki/Markov_chain_Monte_Carlo

[3]: http://epubs.siam.org/doi/10.1137/140976649
The Secrets of the Wave Pilots – open ocean navigation without instruments
> Do you have an account recovery flow? Delete it immediately.

What about users who need to, you know, recover their account?
Very sorry about this guys. I've figured out what was wrong and it should work now for any modern phone. Thank you for flagging this, as otherwise I would have totally missed it.
My computer has actually turned into a toaster.
I don't quite understand, from your website, how impact programming is different from regular programming. Do you mean volunteer? For non-profits? For social benefit companies like Etsy? Code for America?
Quick question for you C++ gurus: Why doesn't C++ have native generators? Is there some technical reason that makes it hard to compile such a feature, or is there a political reason?
There is more stuff around, but here are some

Internal use (2011) http://www.pcworld.com/article/245848/usenix_google_deploys_...

Internal and some datacentres (2009) http://www.networkworld.com/article/2238936/lan-wan/google-a...

Backbone dual stack (2010)
https://www.nanog.org/meetings/nanog49/presentations/IPv6atG...

Facebook internal ipv6
http://www.internetsociety.org/deploy360/wp-content/uploads/...
Yeah, we'd traditionally use coroutines per-actor so this would be way too heavyweight.

It's really nice for scripting things as you can tests a bunch of conditions, yield() and then re-test without needing to build an explicit state machine. Much easier for designers to grok.

Usually done in Lua, which is a fantastic language for gamedev(low overhead, fast, coroutine support and integrates very nicely with C/C++).
haha :) I didn't even realize :) I've been running NoScript (in addition to my usual bloat-blockers uBlock and Ghostery) the past two weeks, to determine the trade-off between convenience and CPU/responsiveness on my low-end laptop (so far: so good!).

The crazy thing is that the demo-page actually loads quicker with NoScript on. Okay, so I didn't see the images (and because the text was Lorem Ipsum, I didn't realize they were missing), I'm on a high-bandwidth connection so unless the images are secretly huge, the images on their own shouldn't be too much of a factor to account for the difference.

So in other words, while AMP may be a useful line in the sand for responsive guidelines versus corporate politics / environment / product managers / etc, it's no replacement for just writing lean and efficient code in the first place (if at all possible).

edit: turns out the comparison wasn't entirely fair because obviously I didn't have Google's JS code cached. On the second load there's less of a difference.
How to save Firefox?
It's my first time posting on here...

I've been a Firefox user forever and the ever so frequent reports of its downward spiral did not do anything to change that. However, in the last month or so I've been experiences more and more showstopping js glitches trying to use popular sites. Can't upload an ebay picture, check, can't register on OKCupid check, forget about using Canadian government sites, check, and many more. This concerns me greatly because the only solution was to bust out Chrome which worked flawlessly. I'm afraid to think what kind of invisible Firefox bugs and security issues there might be.

What are we to do about this?

Few things that are stopping me from filing bugs are...

- don't want to waste time on a dying product
- based on what I've read over the years i have the impression that their bugs can go unsolved for a long time
- it could be easier to report bugs, i.e. no registration, perhaps a per-installed extension that does most of the work for me, and allows to report bugs without registration after anti spam verification
Krita has a beta Animation tool too https://krita.org/item/second-animation-beta/
2 out of 3 developers are self-taught- insights from Stack Overflow 2016 survey
Relax. You are young and have a lot of time ahead of you. Look not at what your neighbour has, for his gain is not your loss.

I'm 30 and I have just decided on transiting from application support positions to linux and coding. All with an unfinished English BA, haha. What do I care for the young who figured their paths earlier and did well in school? All the better for them.