skysight-inc/HackerNews huggingface dataset:
You are underestimating how much of corporate america runs on spreadsheets, email and paper.
> and therefore couldn't use the `vm` module from Node.js

browsers do have isolated contexts these days, they're just cumbersome to use.

1. spawn an iframe with sandbox="allow-script" and srcdoc="...<meta http-equiv="Content-Security-Policy" ...><script>...</script>..."
2. use window.postMessage to communicate between the parent page and the iframe running in a null origin
3. send code to eval into that iframe
Bob Dylan finally accepts Nobel Prize, months after ceremony
I bought Samsung only because of the features they offer! I really like TouchWiz and all the hate is overrated. Stock Android feels featureless and pretty boring.
Too bad this has such a clickbaity title.
going to leave soon
Showcase – Sprite Basic Compiler Bubbles Game Demo
> The real problem is that the gains from automation have flowed to a very small number of people. [...]

What makes you say so? Consumer surplus has been enormous, hasn't it?
I am surprised nobody has mentioned roguesci.org - the site from the days when the internet was relatively Wild West. That place was like Anarchist Cookbook x 100 - extensive detailed discussions, explanations, tutorials. People running the site got into some serious trouble, it was shut down in 2009, rumor has it by DOD. Some static mirrors still exist like https://parazite.nn.fi/roguesci although authenticity is unclear.
Yeah. The Economist is pretty squarely located in the [British] political centre
Thanks a lot for these links. Starting your count from 0? Come on now... haha.
I spent many years working with COBOL & CICS on AS/400 and mainframe and PC.

COBOL is such an excellent high-level abstraction from the computer hardware that it's almost pseudo-code and one can translate business requirements very easily, but therefore working in nothing but COBOL isolates a developer from underlying technology and trends.

I wrote a few algorithms in COBOL, basic sorts and trees, which was really awkward and whilst it can be forced to do other tricks such as data compression and encryption[0] it's really not conducive to such tasks. As a result it's easy to sit in a COBOL-bubble writing IF...ELSE business code all day long and not do anything computer-sciency until the memory and skills fade.

Thankfully my COBOL programs called down to C programs to do nitty-gritty work otherwise I'd probably have been pigeonholed both in skills and career; many companies seem to ignore COBOL experience as 'not proper programming', for the reasons above. However being one of the few people dealing with the old COBOL code gave me huge experience in working with the business clients.

[0] we had one vendor offer us AES-in-COBOL for scary amounts of money.
Amazon influencer program
I wouldn't put too much faith in competence of digital lock manufacturers.

https://media.ccc.de/v/33c3-8019-lockpicking_in_the_iot
Tizen is a joke, they seem to want to beat Microsoft in how many times one reboots the SDK.

Latest change of mind is that future Tizen apps will be written in .NET Core with Xamarin Forms for the UI.
Your factorization of 2 is wrong.

(1 + i)² = 2i

2 = (1 + i)(1 - i)

I don't think that invalidates anything else you have here, much of which is interesting.
>Should I avoid nice things to get an extra 10 years when I'm 70?

I'm guessing you must be pretty young if you see your 70s in those terms. There's a good chance you'll still be healthy enough to have a pretty good quality of life in your 70s.
We do in a small set of contexts (for example, teeth and teethe) where it can distinguish meaning. There are relatively few of those though.
Is there a way to DDOS your self on purpose? I want to bench mark my servers. I saw that there are some tools, damn... need to refer to some old forum threads...
I wonder how we could differenciate among old claw and old pick-axe marks. Both could be very similar.
Somehow it reminds me of the inverse Ackermann function.. Especially how \alpha(n) has to do w. the time complexity of union-find - maybe related to disjoint factors somehow?
Agree with this one. Chrome has a much worse UI (hides commonly used stuff under menus) than Samsung's "Internet" and is just as fast. At least File Browser, Calculator are good. Samsung Smart Switch is just awesome.
8 perguntas que você deve fazer em uma entrevista de emprego
I could refer to this when writing cover letters. First line in my most recent cover letter "I was ecstatic..." fail... My eyes were popping out of my head when I came across this listing.

edit: following through the progression, it would not be hard to emulate this and get responses but then the problem comes back to your actual competence. Thanks for sharing this is helpful.

edit: would probably help to dissect this for visible-progression, but the pattern seems to be:

feel free -> if you need -> hello I'm -> then more and more dictating, not so much choice, you need to choose me.
CObol is the epitome of a walled garden. Everything from accessing data to ui is done the cobol way. Simple things like arbitrary length string and dynamic memory allocation aren't in standard cobol.

Many companies used to run cobol bootcamps to hire developers. As recently as 2004, one local company was still doing them here. Very few of their developers studied cs in school. The boot campers studied who knows, and those who studied computers often majored in cis or mis.

So you can see how those people are really starting off at zero when it comes to switching to more modern dev stacks. I've personally seen very few make the transition.

My first paid dev job was at such a place, doing mainframe cobol, but I'd been doing hobby programming since I was 12, and writing games in c++, so I wasn't typical. I completed a bs in cs at night and moved on.
The best Linux distro for 2017
As in all things, evaluate extensively before you sign on the line that is dotted...
Oncoming traffic would've been to the left.
The notes app on my old Galaxy S2 was good. I had to look for a replacement when that phone eventually died and I bought a new one. I'm using Private Notepad now.

Samsung's calendar was also ok. I wasn't syncing anything. I'm using Sony's one now (I got an Xperia X Compact). It's ok but I think that Samsung's was better.
If that would really be the case, we should see huge differences for people with lactose intolerance, shouldn't we?
Are web sockets not enough regarding the document embedding and hyperlink updating...
Not just that, should the author not have the choice as if they wish to remain anonymous, choose a pseudo name, etc. The choice is simply not there.

> The main reason for anonymity, however, is a belief that what is written is more important than who writes it.

Important for whom? The writers? The readers? The advertisers? The company?

The readers could care less. The company probably and maybe the advertisers. It's more or less saying that we speak as one voice rather than many diverse voices. So I guess it also implies very strong editorial control. Which means it's the voice of the owners and its advertisers than voice of a diverse set of writers.
> Checked exceptions would be neat but still, if you don't catch the exception it will be propagated further up the chain, so the claim that it is impossible to create an unopened file handle still holds :)

True, but introducing invisible partiality to essentially all functions is a pretty stiff cost.

> Yes, object lifetime management is not provably safe in c++, due to lack of borrow checker, but that's a general problem for all types of objects, not specifically file management.

Well, that's a question of language design philosophy. Object management is so much more frequent than any other kind of resource management that it may be worth treating as a special case, as most languages other than C++ do.

Be that as it may, the point is that the really cool thing about Idris is that its type system is powerful enough to let you implement borrow-checker-like functionality in "userspace" rather than needing it built into the language. In theory one could use that (in an Idris-like language with a different record feature, standard library and so on) to have Rust-style manual-but-safe memory management for all objects, though I suspect that might be too cumbersome to be practical.
Someone clicked "Buy" instead of "Try" and I guess that was me.
That's not so clear, at least in the Atlantic theatre. How would you sink the Bismarck with just subs and carriers? As it happens, the lucky torpedo strike from Ark Royal played a pivotal role in its sinking, but submarines couldn't go fast enough to catch it, and an unescorted carrier would have been extremely vulnerable.

It's hard to say for sure, but in a way it seems that the Hood and the Prince of Wales actually stood a much better chance of causing serious damage to the Bismarck than the Ark Royal did, even if that's not how events happened to play out. (And in fact damage from the Prince of Wales's guns did help to slow the Bismarck down and force it to attempt to go to port to refuel.)
I seek a unified todo list, time reminder, calendar, and category sorting app. Something that syncs across platforms and can open an application or document or run a command as part of acknowledging a notification. If you are making an app or looking for ideas, please don't hesitate to contact me.
The issue is I also need to access certain sites/services without a VPN. Some services think you're trying to game them if you connect through a VPN (Netflix, Steam...) and there's a risk of being penalized.
The word 'freelance' captures the dreamers who want to fire the boss. This seems like potentially a story of how someone did this so it arouses curiosity.
I've been doing freelance writing for 4 years now.

It truly is about presenting those small wisps of childhood joy through simple stories. Unfortunately, only small projects are fit for that, as corporate staff generally loathes any risk or anything different from the "standard".

For example, I was once asked to do a Christmas video for a plumbing company and was shown the last year's version, which was simply shot after shot of the company's staff saying their names to the camera.

I decided to write an actual Christmas carol about a mouse that got stuck in the drain due to broken dishwasher hose on Christmas Eve and got saved by the company's employees. Though the client praised my writing skills, she said the script got rejected because the higher-ups didn't appreciate the thought of mice in customers' homes.
As someone who reads The Economist occasionally, you are mistaken about this diversity of opinions idea, but I think I understand why you are mistaken.

The Economist is very straightforwardly a British/European liberal (not in the American sense of "liberal") publication that is economically and socially liberal and strongly internationalist in its outlook.

It will almost always recommend lower tax burdens, reduced business regulation, reduced trade barriers and membership of the EU, UN and NATO, privatisation of nationalised industries, and reduced moral policing by the state. However, it will admit, reflecting a British political consensus, that government intervention and regulation is invaluable in areas such as health, natural monopolies such as energy and transport, moderate levels of income redistribution through the tax system, social safety nets in the event of economic downturns or disability, or with national or international threats such as climate change were government coordination is indispensable. Sometimes they will admit that the power of the state is the only way to get things done, and so they aren't strictly dogmatic about their pro-market credentials, but if there is a viable path for leaving something alone they will advocate for it.

If you are an American reader this combination of issues may seem to fall across a lot of political boundaries, and so its novelty makes it seem diverse. In fact, this combination is a fairly straightforward centre and centre-right view of policy in the UK and much of Europe.

Edit: Some people seem to be suggesting The Economist is Libertarian. You are mistaken - it is liberal.
What a beautiful response to a completely unnecessary comment! Thanks.
Chemistry might explode, but there's no undefined behaviour.
I tend to find that Rust's syntax warts are primarily in function headers (primarily due to lifetimes), and less so in the bodies.

> Regarding your type problem I find very few cases where I need an empty interface (mainly container types).

I've run into the issue with quite a few "generic" libraries, since Go doesn't have a generics system. For example, https://github.com/manyminds/api2go requires a few of them in common cases.

My alternative is writing the same code over and over, and hoping that I've not missed something in one instance of it.
Better question is why you wouldn't
StudyReveals Players+Don't BecomeMore Aggressive Playing ViolentVideoGames
Pedantic correction: battleship, not gunship.
People also live longer on average, thus increasing chances of getting cancer. Sure, young people get it and there are stories of tumors through time - but age is a defining risk factor.
Rentberry's controversial property bid site expands in US
I knew I couldn't be the only techie who took up button accordions (though diatonics in my case). Luckily my flat is very soundproof, so I can get away with it, however I do know of a guy who is one of the main people restoring the English bagpiping tradition who had a similar problem.

Rather than getting digital pipes, however, he filled his wardrobe with bedding/duvets/pillows and would practice them by sitting there with the pipes stuck into a wardrobe.

Roland do actually make a diatonic model of their accordion, and it's pretty popular, however it doesn't work quite as well as the chromatic models due to the eccentricites of that particular instrument.

Edit: Ah ha, as I thought the FR-18 diatonic was in fact discontinued. It's a shame, as it does actually have quite a few fans, but the market is much smaller than for the chromatic models: https://www.roland.com/us/products/fr-18_diatonic/
It is the article saying before going into discussing VPNs fwiw.

I'm not sure about having a definite opinion on this, for now I feel this is blown out of proportion a bit and there are plenty of other privacy invasions that should be discussed instead (though I have to admit my biased view is from a non American pov)
Monad's are not such basic building blocks. It's not monads that define sequencing points. It's that data flow in Haskell is the only way to define control flow. (And Monads make use of that.)
Your second point is very important.

The architecture of a system depends on the load it's designed for. If you have (relatively) few users go for the easiest solution possible that work but make sure that all the components are decoupled enough that as soon as you grow and it cannot cope with the load you can throw it away and replace it with something that has adequate performance characteristics.

Greg Young did a great talk on this subject https://vimeo.com/108441214
Looks like the site has double-scroll bar, I could be wrong. viewing at 1536x864 on a 13.3" screen.
I'm not sure where one can find justice in this situation. People generally don't go out with the intent to kill in their car. There are many people who drive with far too little care. If I am honest, I have done it before in my life. I don't think I know a single driver who hasn't.

The problem (or lack thereof, I suppose) is that there usually aren't any consequences to that lack of care. People drive terribly badly all the time and even still, death is quite uncommon. Think of the worst drivers you know. How many of them have killed people?

We all need to drive much more carefully. Would harsher penalties bring that about? Perhaps. I really don't know. But I certainly would not call it justice to destroy yet another person's life in retaliation for being stupid and unlucky at the same time. One death seems unjust enough for me. Adding more misery to the pile does not make me happier.

Speaking as a person who has mostly given up driving (I have driven less than once a year in the last decade), I would prefer simply to make licenses almost impossible to get. Most people are not able to take the task seriously enough, no matter what the risk, IMHO.
Detect Your VIPs Early in the Game
They are literally not bad. There's nothing at all wrong with eating meat, eggs, fish, dairy or oil. The number one cause of humans' deaths is directly tied to drinking water as well. Just because people eat meat, fish, eggs, dairy and oil and then die does not make those things bad.

People die from eating fatty food fried in poor quality oil every day of their lives, yes. That doesn't mean that oil is bad for you, it doesn't mean that fat is bad for you, it doesn't mean that you're at risk of heart attack if you have something that's fried every now and again.

Of course we have to eat things in moderation, but the idea that because overconsuming something is bad for you then any amount of it must be a little bit bad for you? That's bunk. That's just not true. Dairy is not bad for you, oil is not bad for you, sugar is not bad for you.

And there is, emphatically, absolutely nothing wrong with drinking cows milk.

I'm not going to give up eating meta, fish, eggs, dairy and oil just because you think that the effect of food on your health is linearly proportional to how much of it you consume.
We stopped using Airbnb years ago after a very-scary-guest incident.
HN ... you unpredictable kid! Last year the same joke got me lots of upvotes.
And as with most outrageous food poisoning stories Monsanto is involved.
I think the reporting is misleading: 'How would you feel if, desperate for somewhere to live, you had to bid against other prospective renters?'

That's just the market. All this does is make it more transparent.

What is needed is strong legal protections as part of the bidding process, so that neither landlord nor renter can be unexpectedly left in the lurch at the last minute, and a digital approach could plausibly help here.

I live in London. A friend of mine recently was told two days before moving into a rental flat that the landlord had had accepted a better offer. A deposit had been taken by the estate agent, and they were meant to have handled getting the landlord to sign a contract, but it turned out they hadn't. In the end it was all resolved, with the friend having to up their bid, but it was by no means guaranteed.

For him, the ability to bid at the last minute on a flat could have been valuable, and so would contractually binding documents that could have resulted from the successful conclusion of an auction.
I don't see what else Google can do; I don't think it's reasonable to ask them to censor news that people disagree with, any more than one could ask them to censor information about scientology or something like that.
As a user, my experience is the opposite (Note 3). And that's what matters in the long run. The question is more whether they can keep up bringing new stuff into their high-end phones. Apple was not able to do so.
"Imagine two plants growing side by side. Each day they will compete for sunlight and soil. If one plant can grow just a little bit faster than the other, then it can stretch taller, catch more sunlight, and soak up more rain..."

I would rephrase this as:

"Imagine two plants growing side by side. Each day sunlight and soil are divided between them. If, on a particular day, one plant happens to catch more sunlight or soak up more rain, then (all else being equal) it will stretch taller, catch more sunlight, and soak up more rain"

This rephrasing removes the intentional stance. From this perspective, the unequal distribution of wealth is a consequence of physics.

As an illustration, consider a T-junction branched-pipe with fluid flowing out through the branch. Any tiny irregularity in the pipe leads to a highly asymmetrical flow.

My question is, given that the distribution of wealth is merely physics, are we to through up our hands and accept it as destiny ?
>The food we eat is mass produced, we should assume very low quality and environmental sustainability.

Is it? The food I eat predominantly isn't. Speak for yourself.
US ATM fraud surges despite EMV
ES2018 First Look
Insinuating someone didn't read the article is against the guidelines of HN.
FLAVOR: Ubuntu GNOME (but I also like Unity)

HEADLINE: Trackpad drivers that feel like Apple's

DESCRIPTION: I'm using libinput, but my Magic Trackpad is no fun at all - thumb rejection does not work, the acceleration curve seems to be different from macOS, and the whole OS lacks kinetic scrolling. fusuma works for gestures, and should be part of Ubuntu (GNOME/Unity) IMHO. Having to use a mouse = physical pain.

ROLE/AFFILIATION: Freelance developer, tepidly moving from iOS programming into JetBrains IDEs
The robot hand that shadows your movements
Amazon, Flipkart battle now moves to in-house brands
The Guardian and the Independent aren't 'sensationalist', they're basically the two most highly regarded British newspapers.
> Is there a Turing complete language suitable for writing a fast regex engine with a type system that can prevent all possible invalid states?

I suspect the only way to answer that for certain is to do it. I'd be vaguely interested in trying with Idris[1] or similar.

Looking at the code from Reddit it seems like the important distinctions in this instance - between whitespace and not, between the raw input string and the input string with whitespace skipped, between a character that has been confirmed to lie between 0 and 7 and an unknown input character - ought to be trackable in Rust as well though.

> And if so, how much overhead is associated with said process?

In theory it should be zero overhead at runtime. In practice of course one should have to see how it turned out in benchmarks.

[1] Which, sure, would require explicitly choosing possible nontermination when running the regex, if that's the desired behaviour. At one job my team deliberately added a step counter and limit to a regex matcher (abort after 10000 or so) as that was better behaviour than running indefinitely.
Ethical Hacking from Scratch to Advanced Technique
The Economist is largely in support of regulation to fight climate change, attributes some countries' economic woes to their governments being too weak (rather than too strong), supports a social safety net including retraining for workers affected by trade, thinks austerity in parts of Europe has gone too far, etc. They're also frequent critics of central banking policy, from the viewpoint that central banks should take certain actions in certain circumstances. They've written approvingly of QE, for example.

Their viewpoint reminds me of my economics professor. What is good is what leads to the most economic growth, which is a question the science of economics can address. Welfare has a role. Regulation has a role. Monetary policy has a role. Education has a role. Healthcare has a role (people may remain in situations of suboptimal productivity to maintain health coverage). All can be done poorly, but all must be done well to have optimal productivity. Principles like comparative advantage and supply and demand are largely reliable, and should guide policy. The market will get most things right, and for the rest, government should manage the externalities. Government can have good reasons to impede business, but the benefits should be in line with the costs.

It is the Economist, after all. Free trade being a good idea is uncontroversial among academic economists. So yeah, you aren't going to see them in favor of protectionism. You will see them represent a wider diversity of opinions on monetary policy, in accordance with its not being so much of a settled question.

They support a much larger role for the state than the "personal responsibility"-thumping, climate-change-denying Republicans in Congress, and are certainly far left of the you're-not-the-boss-of-me Bitcoin-thumping internet libertarians.