skysight-inc/HackerNews huggingface dataset:
No problem, I expect most people don't know this. Don't worry though - even some economics textbooks contain those kind of loanable-funds / money multiplier models that don't really describe the real-world workings of banks!

I guess it's a holdover from classical economic theory - banks did work more like that a century ago when that kind of economics was being worked out (pre-WWI gold-standard days) but the modern economy is different!
I have two laptops for work, one of which is a System76 and both are currently running POP! OS (made by System76). I have had a few hiccups with the OS but nothing major.

I would say that I am very satisfied with S76. The 2 times I have had to contact them during the last 16 months or so have been good experiences, as well.
I think this project defines the first step at transitioning pip to a js-like repository of single-function modules. Hurray for kool-aid.
Chromebooks make it much better. You can use whatever machine you want. Plus kept private from other users.

Google shared yesterday that CBs grew 50% YoY. That is while Macs and Windows machines sold less YoY.
> To fix this, the CPU has a wild card: When you change SS, you get exactly 1 instruction that will not be interrupted. The idea is you use that instruction to change (e/r)SP and make the stack valid again. If there is a need for an interrupt, it will be delayed for 1 instruction.

I wonder, why could not they make a single instruction to change both SS and SP?
Remind me again why a device paid for with public funds and used to carry out essential public functions of the government should be anything but open source.
that's not working in latest Chrome. I'll do a little searching around as that would help my own workflow quite a bit. Thanks.
I have a problem after upgrading to 18.04 - even if CPU is idle fans are still working. Everything was fine on 17.10 (fan would only work on higher loads) then upgraded on my ultrabook to 18.04 and fan is working all the time. Anyone have similar experience/solved that?
Only if you don't need null-termination. I suppose, should you decide to make direct fwrite/write/memcpy calls using its size you can avoid even needing the null terminus, but a lot of code requires a null-terminated string. I think a std::string_view would bring in more opportunities to break code than make things easier.
Link for those that can't use Youtube: https://channel9.msdn.com/Events/Build/2018/BRK2146

(also has download links)
I should add, reason I connected into the RaspberryPi was that cell service sucks on the line into Secaucus because a. you're in the middle of swamp land and b. everybody and their mother is trying to get on from the train.

Having the Pi (running raspbian) was great because it was like having my own little full fledged mobile Linux server.
This is going to be _huge_ for the security of the average web user once it starts getting widespread adoption.

Credential phishing, password reuse, credential stuffing, and weak passwords are all about to be a thing of the past, at least insofar as the web is concerned.
> but two deserve a quick mention. The first is Kubuntu, which for my money is the flavor to beat. If you haven't tried KDE lately, you really should give Kubuntu a go. KDE is no longer the memory hog it once was, and Plasma 5.12 offers an incredibly nice, polished, and smooth experience.

Strongly agree. KDE/plasma continue to make great progress and it's my personal favorite. Looks gorgeous out of the box, is light on memory and the cpu, and offers great customization options. Since it uses a layout similar to Windows 7/10 people coming from the mentioned operating systems feel right at home and it eases the transition to linux (I've installed Kubuntu for a few non-technical people and so far no complaints!). If you're interested in following KDE's progress, check out Nate Graham's blog [0] where he publishes a weekly post going over new features and bug fixes in KDE applications and plasma. Really looking forward to plasma 5.13.

[0] https://pointieststick.wordpress.com/
3 Things to Happen When Blockchain Tech and AI Collide – IQVIS Inc
Futon mattress
Google shared yesterday that CBs grew 50% YoY. So the CB way is definitely working.

I am in the US and K12 is completely dominated by CBs.

Personally I just love what Google has done for K12. I have 8 kids and all their info all liked to a Google Sheet and able to drill down with each kid to whatever detail I want.

But the biggest thing Google brought is analytics. Never made sense to match up kids and teachers by gut.

Google is revolutionizing the use of technology in the classroom.

I have my doubts we will see Apple or MS come back in the classroom.

Both owned the class room for decades and very quickly Google now completely dominates.
I have an awful commute to NY and I am _very_ interested in this, how did you power the RaspPi?
How do I list my products on Etsy?
I own a Prestashop store. IS there any addon that can help me sell my products on etsy.com?
If a new feature does not play well with an entrenched object hierarchy, one can as well do a rewrite. This has happened at a shop where I worked and the rewrite was in C, which turned out to have a faster development time and the result was more flexible.

Now, I'm aware that you can restrict yourself to "almost C" in C++, but no one ever seems to be doing that. A litte str::string here, a tiny std::vector there, so exceptions are already in, so why not go all the way.
Indian Student Used Engineering Skills to Save Co-Passenger’s Life on Flight
In such a type system, is every variable and function potentially null, or does its type have to be declared as being potentially null (or not declared as not null)? Would the latter case not be, in practice, just like using option types, and would the former case require ubiquitous null checking?

My understanding so far is that option types have two advantages over the way current mainstream languages handle the null case: a) you can find the potential uses of null values statically, and also ensure that the programmer writes some code that at least nominally handles the case; b) you can avoid this burden in cases where null is not an option. Does null-as-its-own-type improve on this?
Understand Deep Learning with TensorFlow Playground
Destroying a language's safety for a single use case is a terrible trade-off.

There are various possible solutions for circular structures that do not require destroying all static safety with nulls everywhere.
On this particular thing I think the Intel docs are clear. This is where I implemented the same in JPC:

https://github.com/ianopolous/JPC/blob/master/src/org/jpc/em...
> There are also tons of evangelists, which promote their technology/process/approach of choice, giving endless introductory talks and blogposts, but without answering complicated questions.

I find some programmers are very adamant that there's always a right way and a wrong way to do something and you just have to examine the pros and the cons. Well, what about when it's between a legacy codebase that no one on the team has even spent half a day looking at and an idea that someone read on a blog post that they never bothered to try? You can't honestly begin to identify pros and cons in a situation like that. But this is how our industry is now. So you kind of have to take claims of "best practices" with a grain of salt.

I don't even really engage in discussions on "best practices" anymore. Not because I'm cynical, but because they just lead nowhere. Write some code that runs, show it to me and we'll talk.
While driving, typing on a remote connection using my phone. One key-press per minute (I was late to an urgent appointment).

Also, while sitting on a beach on my birthday with the wife of the CEO screaming at me down the phone line (Still not sure why she was involved, but it was a small family business).

Both outcomes were positive, but stressful (and in the first case, illegal) at the time.
Wow, that was a great tip. I'm also finding myself splitting tasks into recurring steps like you mentioned, so automating this will save me lots of time.
Don't forget HL7
>If you control what's going on then don't use regular expressions it's wasteful overhead.

Not really, if you control what's going on it's a very fast option -- use awk, sed, or your scripting language's regex lib, and get the values you need. End of story.

Nobody cares if you can micro-optimize it with lower level string parsing that doesn't use a regex engine -- and the regex engine might end up being faster that that anyway.

>If you don't control it then you can't tell if it will stay like that, which is the trap.

No, but I already covered that in my original comment. One can do it to extract values for a specific, known html file, I said.

Besides,

(a) a lot of changes can still be caught by regex -- e.g. the order of attributes don't matter if the regex checks for that specific attribute alone (e.g. a href in an a tag).

(b) other changes will also fuck any non-regex, parser-based lib. E.g. if the nesting changes or an element is moved to another section. It's not like you don't have to update scripts written with e.g. BeautifulSoup or some HTML parser when the document changes.

>It's also why these are called best practices not physical laws.

That's up to those who advocate them to understand: and don't hand them out as if they were physical laws "NEVER PARSE HTML WITH REGEX".
Perl also has CPAN. It had mind-share, as Python seems to have now.
Hawaii – Sunscreen with dangerous chemicals banned
Yay drama! Why act like adults when we can squabble.

It sounds like the folks at System76 have a limited amount of resources available and this is not an immediate priority for them. That's understandable considering the last 6 months have been a security shit show. I mean sure why not overhaul your firmware delivery system on top of everything else?

It also sounds like Richard is butt hurt that they didn't notify him of their priorities. And so he passive aggressively wrote a public blog post trivializing the amount of effort it was going to take to switch and then advised people not to purchase their products. That's kind of petty.

I find it really insulting when someone tells me how long it will take me to do something without knowing what constraints I'm forced to work under, so the "just a few hours" remarks annoyed me.
This seems like a good question to ask Etsy.
For people confused about what this is: it's basically the de facto cross-browser standard for U2F security keys like Yubikeys.
I think of it like rolling dice. Say you've got a pair of 6-sided game die.
Rolling a 12 represents a massive weather event (eg so-called "century storms"), and gobal warming replaced some of each cube's faces (say, changing the 4's or 5's to a 6) then for a given roll, you can't say for sure whether global warming's to blame -- but when 12's start showing up more than 1/12th of the time, you also can't say "that's absolutely not related".
Yup. If you can't get it installed, you can never try it, which means you can never be wowed and never switch to it full time.

Installing Linux used to be a huge problem, and that's why Ubuntu became popular. Other distros caught up, but it was really Ubuntu that pushed it.
To their credit, the Alt+RMB method for resizing windows is, along with Alt+LMB for moving windows, really amazing. I get annoyed when I have to go back to the old way on my Mac and Windows systems.
Start Projects Right by Onboarding New Clients Like New Employees
Clarity about ownership is enough. But there's also ambiguity because pointers are sometimes used to pass around arrays, especially in the case of 'char*'. And a dev also has to go out of his way to create a dangling optional<int>.

Even if we consider just ambiguous ownership, there are a whole host of behaviors that could result from that single design mistake, including undefined behavior, which could include trashing your production database, firing the missiles, or behaving as expected until an unrelated piece of code changes a year later.
I honestly don't know what you're talking about with "random linux specific installation stuff". Installation of Linux hasn't really been any different from Windows since the early aughties as far as I can tell. Select keyboard layout, provide hostname, just let the partitioner use the whole disk automatically, configure the network, etc.

As someone who frequently hates on Desktop Linux, I agree with the sentiment that the fixation over ease of installing is pretty silly. Only a few distros in recent memory have anything remotely difficult about their installation process, and it's usually that they don't bother with any wizards and just make you do everything by hand from the shell, but those were meant for experts anyway.
> It was only the pressing war that goaded formerly peacefully inclined nuclear physicists to construct such technologies. With the resultant problems we now face of non-proliferation, cyber command and control, etc.

But nuclear arms have essentially put an end to total war between developed nations. We've all agreed not to use them in conventional war, and disallowed chemical weapons as well, as those progressed from Lewisite and Mustard gas to terrifying V- and G- agents. In the absence of these technologies, pressing wars would have continued.

>An optimal solution would be something akin to peaceful equilibrium throughout the planet.

This is based on the notion that war is not necessary to maintain our species in optimal condition, which is an assumption that bears more examination. Why do we have war to begin with? Some species make war, many don't but some do, including us. But why do we do so? Doesn't it serve some beneficial or essential function for us?
I remember it well.
Show HN: Formspark – A back end for static HTML forms, dashboard included
David Goodall, 104, Scientist Who Fought to Die on His Terms, Ends His Life
Solar Industry Groups Call on TVA to End Delays
I used to dislike Unity, until I played around with macOS and got some experience with the global menu bar and similar concepts. Now I actually prefer Unity to all other desktop environments. Apart from that I can stand XFCE, but I still think Unity was the best thing to happen to Linux. Unfortunate that they're going back to GNOME.
There's not really a huge variation in pay there. But all the same, why do you think we don't see discussion about striving for equality in these other male dominated positions?
The 2018 NEVY Awards Recap: Winners and Pictures
That's the Maybe type. The Maybe monad is this:

instance Monad Maybe where
return = Just
Nothing >>= _ = Nothing
Just x >>= f = f x

(And is not really related to the discussion)
"I've done it twice, you're wife is a saint to deal with you and your addiction. But they all are because men seem to have zero understanding of how not to be self-obsessed and "in the moment"."

OP's wife may well be a saint, but you certainly aren't. FYI it's normally a bad generalisation if you're calling half the population of the planet "self-obsessed"
What features do you need?
Hollowed out mountain in Switzerland owned by a Russian oligarch somewhere in the world's top 100 richest people. Real James Bond villain style; elevator that rises out of the ground, several stories down etc.

I was working on his tennis court computer. When it was sunny, the roof of that section (several stories high to allow for a decent game of tennis) could slide open to let the sunshine in. He took us to a local restaurant for lunch afterwards.
Richard's post made it clear that they didn't need to use it, they should be able to use UpdateCapsule.
5 Tricks to Write Sales Copy That Works
The vulnerability notes[1] say Apple patched this on May 8, but my last security update was May 3 and I don't currently show any available updates... I wonder if the May 3 patch fixed this, or if my computer might not be affected.

[1]https://www.kb.cert.org/vuls/byvendor?searchview&Query=FIELD...
In Switzerland, breathalizers may be used to justify pulling people out during traffic controls, but only a blood test is valid proof of too much blood alcohol before court. Is that different in the US? After all, even ripe fruit can result in a breath test indicating too much alcohol.
The article says that a cow produces about 100 kg of methane a year. At 0.7 kg/m^3, that's about 142 cubic meters of gas per year. Natural gas costs a few dollars per thousand cubic meters... So even without going into efficiency and the cost of capturing and purifying, it's definitely not going to be worth it.
In the back of a limo, tethered to a Motorola Q device, fixing ticketing code for a non-profit film festival which was kicking off that night.
For my ThinkPad x1 they came to the restaurant I was fixed it in like 3 minutes (had to replace the CPU fan), like a ninja. But I still cannot update the BIOS from Linux with the fwup, and fingerprint reader doesn't work. I had XPS 15 and if it wasn't because of the horrid coil whine I would have kept it. Their linux support is very good.
Can tell you from personal experience Google has made huge improvements in the class room. It is why CB grew 50% YoY while the other two declined.

If you look at the requirements for the class room it is all about maximizing teaching time. You would be shocked how fast 50 minutes goes by.

So quick boot, no virus, long battery life, peppy performance and to steal a phrase "just works".

It is hard to imagine Apple or MS gaining back any share in the class room. Google listened and just created far better what K12 needed.

Talk to some teachers and you will hear why they would never go back to the old way.
In languages with pointers, it's not really possible for the compiler to know when null needs to be checked for. Consider this fragment:

void f(char *x) {g(&x); printf(x);}

It's possible that calling g(&x) might cause x to no longer be null, even if x originally was null. It would then be inappropriate for the compiler to complain that the next instruction attempts to use x without checking whether x is null.
>Malaysia Opposition, Led by 92-Year-Old, Wins Upset Victory

The future is theirs!
Likely an unpopular view, by why is this a problem? There are unequal gender splits in many fields, but I don't hear a big outcry that men are underrepresented in Nursing as an example, or that there aren't enough women lumberjacks.

Not everything needs to be in a 50/50 balance.
Pascal, perl, ASP, every ML, Fortran, Cobol, Eiffel, Modula, all "4GL" languages.
You seem intelligent, so I'm going to drop you into the deep end. In category theory, a topos [0][1] (plural topoi) is a structure-place where logic can be done. Boolean logic corresponds to a particular topos. Actually, there are at least two topoi which do Boolean logic; one of them has the law of excluded middle, and another has the axiom of choice. [2]

And there's an infinite other number of topoi to choose from! Topoi can be custom-made to categorical specifications. We can insist that there are three truth values, and then we can use a topos construction to determine what the resulting logical connectives look like. [3]

Finally, there are logical systems which are too weak to have topoi. These are the fragments, things like regular logic [4] or Presburger arithmetic.

To address your second argument, why do we work in a world with Boolean logic? Well, classical computers are Boolean. Why? Because we invented classical computing in a time where Boolean logic was the dominant logic, and it fits together well with information and signal theory, and most importantly because we discovered a not-quite-magical method for cooking rocks in a specific way which creates a highly-compact semiconductor-powered transistor-laden computer.

Computers could be non-Boolean. If you think that the brain is a creative computer, then the brain's model of computation is undeniably physical and non-classical. It's possible, just different.

Oh, and even if Boolean logic is the way of the world, does that really mean that all propositions are true or false? Gödel, Turing, Quine, etc. would have a word with you!

[0] https://en.wikipedia.org/wiki/Topos#Elementary_topoi_(topoi_...

[1] https://ncatlab.org/nlab/show/topos

[2] https://ncatlab.org/nlab/show/two-valued+logic

[3] https://toposblog.org/2018/01/15/some-simple-examples/

[4] https://arxiv.org/abs/1706.00526
> Intel docs are so consistently gibberish that it might as well be classified a separate language

Mayhaps much like legalese.
> What SBCL is doing to Common Lisp is similar to what C compiler vendors did to C. In order to win at benchmarks, C compiler vendors started to use UB as a license to miscompile optimized code, which got them better benchmarks.

I sort of see what you're getting at, but I think what SBCL does isn't really comparable to the C situation. The complaint people have with UB in C is compiler-writers treating it as a licence to do very unintuitive optimisations; it uses it as a justification for being extremely hostile to the programmer and then the defence is "well the standard said the behaviour was undefined, why would you think there's "obvious" code for the compiler to emit here?". In the SBCL situation, the standard doesn't guarantee any behaviour around that feature, and SBCL is using it as a licence to be more helpful to the programmer, so I think most of the issues people might have with the C situation don't really transfer.

For the great majority of programs, the difference doesn't matter either: breaking type declarations being an error (as in SBCL) vs being undefined (as in portable CL) aren't incompatible, as long as your program doesn't rely on a condition being signalled when you violate a type declaration.

I can see how relying on SBCL's interpretation of the standard would cause problems, but when the difference is that SBCL just changed "the behaviour is undefined" to "it is an error", I don't see that introducing a wave of unportable code.

> They get their benchmarks

Type declarations that can't be statically verified transparently degrade to runtime assertions; I don't think that choice was made to do better on benchmarks.

> at the cost of saturating the ecosystem with code that overuses UB, basically poisoning the ecosystem.

I don't think there's that much code out there that relies on errors being signalled when it violates type declarations as a part of normal execution (quick, link a few projects that make use of this), certainly not enough to say that trend poisoned the ecosystem.
Been using 16.04LTS on my personal laptop for a few years, just moved to 18.04.

I feel like the biggest improvement by far is the Snap package manager and its integration with the Ubuntu software store. After 10+ years of doing personal computing on Linux this is the first time that installing my main apps has ever felt sane!

I was blown away by being able to install the latest Android studio, with a launcher icon, in one click. No more tarballs and command line launchers and broken dependencies.

Has this been around for a while and I just didn't know about it?
They probably could, but it would have had a large silicon cost for 1980 without performance benefit. That and ISA incompatibility.
You could, but it wouldn't allow them to relax the constraints here, since you'd have to recompile all the code in the world to use this new instruction before relaxing.
Their cheapest laptop costs $1000, which is Macbook money, which is a premium-priced product.
Was working as a research assistant for my university's NLP department. Had a script to process a few gigabytes of text, knew it was going to take all night, so I ran it before I left. The code was still rattling around in my head on the bus and I realized I had made a mistake that would cause the output to be useless. Opened up JuiceSSH on my phone, logged into the server, fixed the code and ran the script, next day everything was peachy.
My wife spent two months in the hospital prior to the birth of our twins (and the twins spent another two months in the NICU after that). I've written a _ton_ of code in a hospital at this point (ironically, that was before I started working for an EHR platform).