skysight-inc/HackerNews huggingface dataset:
> or changing hashtable iteration order.

This is a builtin feature of Go.

https://blog.golang.org/go-maps-in-action
A pet hypothesis of mine: I think consciousness comes from our evolved brain capability to simulate and predict the behavior of others for the purpose of recognizing if we are conned. Consiousness then is being able to apply this capability to ourselves.
Nice demonstration, but misses to explain the bias value in the forward propagation step. While quite important, this value is often left out when demonstrating the propagation function. So having it in warrants a short description in my opinion.

It also skips over the bias value in the back propagation step.
Beware of C++17
Banks do lose transactions and make plenty of other mistakes that result in sudden appearance or disappearance of money from people's accounts. They are also eventually consistent, somewhat strongly. And are the ones who can in fact drop ACID pretty much completely in favor of proper strong eventual consistency with CRDTs and stuff, with all that "consistency and integrity at all times".

What makes things slow with interactive transactions in distributed environments is explicit tradeoff of latency and availability for consistency. It just can't be done in bounded time [1]. But that's not the reason traditional databases are slow, they do not actually make this tradeoff in most deployments and are assuming you are ok losing some consistency due to network problems (yeah, so much for that ACID guarantees, you really need distributed algorithms to guarantee consistency if you talk to a database over an asynchronous network, like ethernet).

They are slow because for performance SQL is just a bad leaky abstraction and arguing that it can be fast, is like arguing for a sufficiently smart compiler [2] that can turn your high level abstraction into the fastest possible opcode.

[1] https://groups.csail.mit.edu/tds/papers/Lynch/jacm85.pdf

[2] http://wiki.c2.com/?SufficientlySmartCompiler
Aha, that's a very good explanation. Most of my experience with 3D development has been alongside something LOB oriented rather than a "game" per se; like the other commenter suggested Monogame is an example of what I had in mind in my post above.

I have to add the note, Monogame is absolutely up to par with "professional" engines in many ways. I quoted because Monogame originated from such an engine, XDE, Microsoft's managed SharpDX framework for developing games for Xbox Live Arcade. The community took over when MS cancelled XDE. I don't know if it can compete with Unreal or Unity on everything these days, given some of the demos I've seen of Unreal's lighting etc.
The professors or graduate students hired to do research aren't the ones who end up teaching wildly incorrect material. That happens when you hire people specifically to teach, and don't pay them very much at all.
Right to Roam
I think if he had been older when he made that comment it would have been more interesting.

Personally I just read it as “young person pretty sure that young people are smarter”.
> Instagram would have died an early death if you had to pay for it

I honestly don't think that would be a loss for humanity.
There's also the fact that, not only was Tokyo rebuilt after the war, but that it is continually being rebuilt in a way that U.S. cities aren't. My understanding is that there's a strong preference in Japan for living in newly constructed residences, which means that older housing stock is being replaced at a much higher rate than elsewhere.
Unfortunately, no: https://stackoverflow.com/a/40714311/4807623
If you have a function that's using if statements to decide which boolean to return, it's almost always better to return the expression directly.

`if (foo) {
return true
} else {
return false
}`

is the same as `return boolean(foo)`
Not at a location where I can check with my home ISP right now. But last time I checked a few days ago it affected some of the AAAA records that docs.rust-lang.org was pointing to. The affected ISP is deutsche telekom.

I sent an email to the contact listed in the whois database but didn't get any reply.
How AI could be impacting childhood development
Algorithm: What Is It? And How to Use It in Programming?
It's almost like they try to be a self-sustaining, viable business instead of burning through VC money with irresponsible pricing that kills fair competitors.
Ads enabled by choice -> User gets credits to use on the site
-> You get ad-revenue
Bootstrapping a (serverless) Typescript Worker
I recently visited the East coast and was shocked at the amount of roadkill. You see more dead wildlife in a day than you're likely to see alive in any zoo.
and in 15 years from immortal mouse we would have immortal human.
What the headlined article is talking about is not a TUI-GUI split. It is talking about a command-line interface versus other forms of TUIs. As mentioned elsewhere in this discussion, there were plenty of ways of end users interacting with MS/PC/DR-DOS without having to use the command-line.
It's much more easy and reliable this way.

I perform hourly backups of my VPS and personal computers, storing it all into a giant repo on OVH and B2. If my house goes up in flames, I have to redo, at worst, 1 hour of work.

Additionally I won't have to deal with expanding to a 4TB drive eventually.
It feels like we're heading into the Hype Cycle [1] with cannabis-derived treatments/products/cures, with waves of legalization serving as the classical 'technology trigger'.

I say that mostly because, although this is a solid study with interesting conclusions, 'Cannabis does [amazing thing!]' articles are getting more and more common and mainstream, and I think people are primed to accept them, for want of cures and treatments, for desire to justify existing habits (c.f. the now discredited red wine health studies [2]), and because 'medicine with all these great effects was kept down by the powers!' is a great narrative.

Mostly, I'm finding myself mostly curious what, in 15 years, we'll know these compounds are actually good for, and steeling myself for a lot of bullshit and bad science in the meantime.

[1]: https://en.wikipedia.org/wiki/Hype_cycle
[2]: https://www.scientificamerican.com/article/red-wine-research...
It is not forbidden nor "stealing" to print out for personal use.
> This just seems wrong to me. Communicating your designed intention with type annotations is the number one reason to use them, whether you’re writing C++ or Haskell.

sure, but most haskell programs leave type annotations out, it's only some specific parts where it enhances clarity that it helps ; most of the time it would be unneeded noise, just like in C++.

I really don't want to go back to the dark days of

for(std::vector<std::pair<float, int>>::const_iterator it = v.cbegin(), end = v.cend(); it != end; ) {
if(it->second > 1 && std::distance(v.begin(), it) % rand() == 0)
it = v.erase(it);
else
++it;
}

versus

for(auto it = v.cbegin(), end = v.cend(); it != end; ) {
if(it->second > 1 && std::distance(v.begin(), it) % rand() == 0)
it = v.erase(it);
else
++it;
}

In a lot of cases, it can even cause bugs : for instance, the iterator type of std::map<int, std::string> is std::pair<const int, std::string>.

If you ever happened to write :

std::map<int, std::string> map;
// ...
const std::pair<int, std::string>& value = *map.begin();

then congrats, you have unneeded memory allocations because the pair will be copied in order to match the explicit type.

whereas here :

const auto& value = *map.begin();

you know that you get exactly the correct type - maybe at some point you will replace with a boost::flat_map or another which has a different iterator type, and when you do this, you won't need to change any other code anywhere else - it will be automatically correct.
Yes, all sites from this media group is a cookie hell, https://twitter.com/cyberfart/status/1004822971683352576
It might be easier to change types behind the scenes when using auto, but why would someone feel that is going to be a common case? When are you completely changing types all the time?

More often, the types don’t change all that much, but their behaviors get extended and new features have to be calculated in some block of code. If you can see the type explicitly, then you know what operations it supports, etc.

If I come across a structured binding where x and y are auto assigned as the unpacking of struct fields whose types might be complicated, now I have local variables x and y that I cannot reason about until I backtrack manually to figure out what type they will be deduced to having (and then keep that in memory any time I’m tinkering in that section of code).

I guess for the cases when big structural overhauls are happening behind the scenes to radically change underlying types and designs, auto would reduce a bunch of rework on type annotations. However, I just can’t believe anyone would allow that to be a common enough use case for it to matter more than explicit type annotations.
I was using it 20+ years ago (highschool) then used it in my previous startup (10 years ago). Amazing how it keeps evolving and modernizing. auto typing keeps growing, reminds me of Swift.
Yes, self selection as a response to perceived discrimination, or "lack of fit", is different from outright discrimination. But no less a problem, and certainly not unchangeable!
> I achieved my lowest weight about 2 years ago and have managed to keep off all but 10lbs of it, much of which I'm confident is muscle. It took me 4-5 years to hit the low mark.

Good job.
Yes. VSCode is good. Skype for Business is a garbage fire.
I'm a computational/theoretical chemist and use python extensivly.

To me te question seems a bit poorly phrased. What is the goal of the course?
Are they supposed to learn how to program? Then it's of course fundamentals first, especially the stuff you cited (variables, functions, scoping). You can't solve any problem without knowing this stuff.

If they are supposed to learn a specific library/tool then, in my opinion, it depends on the libs/tools you want to teach them. Maybe this libary is not that relevant for comp. biologists, but take scikit-learn. You still have to know how to program when you wan't to use this library properly. On the other hand if they shall learn some GUI-tools then I guess they don't have to know how to program. You can ask yourself: Can you anticipate what tools/libraries your students will be using in a few years? If you can answer yes to this, then teach them a bit about these tools. If your field is constantly evolving/changing then it would be better to invest in the basics, so your students can adapt easier.

Considering the fact that you are (hopefully) and have to be constantly learning as a practicing scientist it is of great importance to get the basics right.
Convert Your ASCII Texts in Binary, Octal or Hexadecimal Easily on Smartphones
Depends how stoned you are.
Alex Patel
> I've hard a few hard drives fail in the past decades but I've always been able to retrieve the data

Care to share what kind of procedures you use?

I've recovered some data for friends and employers who want it back but aren't prepared to pay > USD1000 for it but if I cannot connect to the disk I'm lost.

(My tricks: tilting the disk, freezing the disk, leaving ssds powered on but sata unconnected, and even before that photorec and ddrescue etc.)

Note: don't do any of the above if data needs to be recovered at any cost, in that case just contact a data recovery company.
Absolutely- if I smoke, I will be awake all night with my mind racing with ideas (and not anxious or paranoid ones). It's a wonderful thing, and it saddens me that it doesn't have the same effect for everyone.
How to Create Your Ad Network from Scratch?
To give you some context, I'm coding lots email templates for living and on daily basis we're dealing with Outlook 2016 bugs some of which are as old as IE5. Yes, Internet Explorer five. For example, if you have a TD less than 18px high, it will be push to be 18px high, unless there's font-size set. These kinds of bugs were squished on IE6. Hatred to Internet Explorer was one of the main reasons devs hated M$. Now, IE is gone, web devs live happy lives with React and us, email devs still code in tables and use VML hacks just to set background picture (ahem, of a table cell).

With the above context, I'd say M$ may be different now compared to before but it's changing only because it has to and only because they reap what they sow. Previous seeds grew.

Speaking about V$Code, there was so much hatred in GitHub when peeps asked maintainers to allow users to customise the blue status bar that I think I saw true "spirit" of that company. See for yourselves: https://github.com/Microsoft/vscode/issues/1884 - some juicy posts have been deleted/edited since though

PS. I moved all my 80 Open Source libraries to BitBucket and haven't looked back since. I applaud all others that migrate out of GitHub.
Why? It reads nicely as "if there is no string", can't get more explicit than that.
Who said that it did? I never said anything like that: only that auto removes useful type annotations.
Goal of my project is to help people understand how actually a antivirus works.
The Borg/Attic/HN discounted price is a quarter of the regular price IIRC. Well worth it IMHO. They're reliable, answer emails very fast, and are happy to provide technical help should you need it to configure your system.
Analiza swot
>I’m sorry, but why is the neo-con anti science article on HN?

Knee-jerk labelling much? What exactly do you disagree with the article with and why?

Reading things outside of one's echo chamber and comfort zone is not something to be avoided. Even if it's something "anti-science" and "neo-con" -- you get to learn the ACTUAL points of anti-science people and neo-cons (as opposed to just second-hand reading your favorite writers disparaging their claims)
Hype Cycle
The same functionality is also available on Firefox (both desktop and android).
I've seen this on a number of list sites and a few more general publishing sites - as you scroll past each point your history is updated. I've taken to either opening such links in a new tab ("true back" then returns to being a single operation: close tab) or not opening them at all.
Hidden Mystery of Mount Kailash
"This ensures correct cleanup and avoids leaking memory."

Although shared_ptr does open you up to a whole new class of bugs, with circular references causing memory leaks and object lifetimes being harder to reason about, especially in a multi-threaded environment.

I agree in general, though, things are a lot better.
I’m under the understanding the steel tariffs against Mexico and Canada are to avoid having China dump their steel via those countries where a co imports into MX and CA and turns around and exports same to the US.
dcc and xdcc can only be used to send an image to a single client, so sending an image to a channel is a no-go.
Who cares what you read or not read?
And that's the point I am making. VC's come up with reasons to say no and this one was the vaguest I heard.

I do look Indian and talk Indian ;)
The topic itself is important, but I thought a few statements were subtle attacks on the scientific community. Perhaps I'm too suspicious. But here are the statements, with my italics emphasizing the key parts:

"In a time when expertise and science are supposedly under attack, some convincing way to make this distinction would seem to be of value."

It seems to me that science and rationality are under heavy attack in this country, and the author is attempting to undermine that view.

"According to the New York Times, the Higgs discovery confirms “a grand view of a universe described by simple and elegant and symmetrical laws—but one in which everything interesting, like ourselves, results from flaws or breaks in that symmetry.” Whatever that means—but I’ll come back to the question of meaning later."

I take whatever that means as a dig at those highfalutin egghead scientists and their mouthpiece, the New York Times, who are trying to put something over on us. It's unbecoming of an author who is himself a research scientist.

"But if all this activity is just self-correction in action, then why not call alchemy, astrology, phrenology, eugenics, and scientific socialism science as well, because in their time, each was pursued with sincere conviction by scientists who believed they were advancing reliable knowledge about the world? On what basis should we say that the findings of science at any given time really do bear a useful correspondence to reality? When is it okay to trust what scientists say?"

I see this as more undermining of science.

"What we nonexperts choose to believe about such matters will depend much more on whom we trust and what we find to be helpful than on what can be known to be true."

Don't trust liberal scientists.

As I say, maybe I'm too suspicious, and this author has no agenda.
> many European cities faced intense bombing

There seem to have been two choices for the rebuilding: rebuild what was there, maybe with better trams and subways; or allow Modernist planners to take over and build Brutalist suburban car-centered systems.

e.g. Coventry: https://www.theguardian.com/cities/2017/mar/14/brutal-inspir...

vs Dresden: https://www.gettyimages.co.uk/event/aerial-views-of-historic...
MDN, Scikit-learn, Requests, RethinkDB, Django are a few that come to my mind.
So has he set the date for his retirement, yet? I mean the board should have his ouster lined up by the time he hits 30, right? Oh crap! He's already 34. Nice knowing you Mark but it's time to move over, old man.
I was expecting some sort of interesting discussion of different databases. What I got was an ad for Amazon's products. And I found it quite off-putting that the post seemed to go way out of it's way to avoid even acknowleding databases not being sold as Amazon services.
London is similar to Tokyo. After the Second World War, Blitzed-out land was bought cheaply by local councils and high-rise, high-density (but generally good quality) housing was built on those sites, hence an uneven spread of high-rise buildings throughout the city. Historically though the tallest buildings had to be church spires and the first true "skyscraper" in London was probably the Post Office Tower (now BT Tower) in Fitzrovia in the 1960s. It now stands pretty isolated as most of the tallest buildings in London are concentrated around the City and Canary Wharf, in the east and east docklands areas.
You can defer the tax for 5 years, but you owe on the value at the time of deferment. So, if the valuation drops after you leave your still on the hook for the original deferred amount.
They originally said they were launching the constellation back in 2019. New estimates as of yesterday say the first 800 in 2020/2021. Not to mention they have to launch half within 6 years to retain their license from the FCC. And Boeing's Leo looks like it was cancelled/never started:

http://spacenews.com/boeing-constellation-stalled-spacex-con...
GAN Cryptography Can Solve the Biggest Friction Point in Modern AI
Think that's the point. His stated goal is to bring jobs back to the United States. Domestic production for these items don't exist now but if demand can't be satisfied through imports due trade restrictions, domestic suppliers will arise. Of course things aren't quiet that simple as many things have complex supply chains involved in their production so it would take time for such domestic producers to come online. Plus they must be assured somehow that the next administration isn't going to reverse course, opening the market to imports that will undercut the domestic market.
My guess is that Digikey will get stock again soon, just at a higher price. It's unlikely there will be anything completely unavailable as this isn't an embargo, just tariffs.
Patient Acquisition Marketing
The "it" they abandoned is the aircraft, they will continue to work on connectivity. They mention working with Airbus, they have a drone that has stayed aloft for 14 days. It seems like FB decided that they weren't making enough progress on building their own aircraft to justify not using someone else's technology for that piece of the overall project.
High availability would be the most common case when you need to look somewhere else. And it's a serious distributed systems problem that requires pretty big architectural and cultural changes, you can't just optimize for it later.
http://docs.couchdb.org/en/2.0.0/replication/conflicts.html
Apparently restic now supports using rclone as a backend:

https://restic.net/blog/2018-04-01/rclone-backend
That was such a great show!

For those wondering, Veridian Dynamics is the fictional company where the show “Better off Ted” is set in.
https://www.imdb.com/title/tt1235547/
EU Blockchain Observatory and Forum Blockchain AMA
Why should the rest of the world care about anything anyone ever says
Private mode works fine with quora
Well, my personal inbox was filled with even more emails from every company I ever signed up to, telling me about GDPR. Initially at least the effect has been quite the opposite.
The question at hand makes sense: it is rather hard (impossible?) to distinguish clearly and with a perfect model what is pure science and what is not. Like everything in life, separating the whole world in a single dichotomic variable (science/not science) will yield disappointing results.

But the whole article is built on failed sociological theories brought back from the dead. The science wars are over[1] and the realists won, because studying (real) science with cultural studies tools is impotent. That guy just didn't get the memo or is playing deaf because it is pleasing the conservative agenda.

[1] https://en.wikipedia.org/wiki/Science_wars "Writing about these developments in the context of global warming, Bruno Latour noted that "dangerous extremists are using the very same argument of social construction to destroy hard-won evidence that could save our lives. Was I wrong to participate in the invention of this field known as science studies? Is it enough to say that we did not really mean what we said?"
Scaling Kubernetes for 25M Users – Brendan Rius – Medium
Abusing CSS to create colored dots
Has someone built a virtual pseudoscope for virtual reality goggles such as Oculus Go?
Bill Gates hails 'huge milestone' for AI as bots work in a team
I just wish Backblaze would fix their snapshots. You still have no way to tag a snapshot, put in any notes, anything. You literally make two snap shots 5 minutes apart and they only thing that differentiates them is the time stamp. unforgivable.
It's funny because most men I meet don't like programming either. Most people I meet in general actually. Programming is frustrating, sometimes unrewarding (especially working on bigger projects where progress is incremental and not visible), and generally not the typical activity a lot of people find enjoyable. Hell even the idea of doing basic math makes people cringe let alone writing hundreds of lines of code.
How Blockchain and AI Integration Is Changing Business
After thinking a bit more, I also remembered Pershing Square Cafe underneath Park Avenue across from Grand Central Station. Kinda the same thing on a smaller scale.

https://www.google.com/maps/@40.7521215,-73.9777846,3a,75y,1...
A digital capitalism Marx might enjoy
Eh, addiction usually implies a physiological reaction to withdrawal. AFAIK it's pretty well established that there is no physical addiction to cannabis. One can very easily feel dependent upon it, though. Then again, if I were to cut off my Wellbutrin or Vyvanse cold turkey I'd be in for a rough ride as well. The fact that something can be habit-forming does not necessarily make it bad.
Intelligence at adulthood is determined by genes. The same organization can predict height within one inch (again, based on genes).
I think the chance of finding(much less capturing) a live specimen is even smaller than the chance of successfully cloning one, especially given that its genome has been recently sequenced[0].

[0] https://www.nature.com/articles/s41559-017-0417-y
7 Low-Investment Ideas for Your Online Business