skysight-inc/HackerNews huggingface dataset:
> Python has httplib since 2.7. Also urllib in 3.7 contains all of the URL parsing routines, too.

> urllib? Well, yeah - simply because someone wanted to provide a simple HTTP interface. By the way - urllib also provides FTP/local file access routines. So it does mean "a library to access URLs".

You're missing my point. These are just random examples of bad naming convention. Yes, Python has some core modules which sort of relate to their name... but everyone uses "requests" and "urllib3", not "httplib" and "urllib" (and urllib3 has no FTP support). And yes, you can name a simple http module anything you want, but if it's unintuitive, it's counter-productive to the humans that have to work with it.

> It gets even worse when you would like to support HTTP and async HTTP; then HTTP/2, HTTPS, HTTP server, etc... Which one of these libraries are supposed to be actually called "http"? What if there's two libraries with the same functionality?

The common solution is to create modules that inherit from parents, to extend base modules for more specific functionality. The names then become hierarchical - io, io::net, io::net::http, io:net::http::2, io::net::http::secure, io::net::http::server, io::net::http::client, and so on.

For whatever reason, Python doesn't support this, and instead creates new unique packages rather than extending pre-existing ones. It's rather annoying for multiple reasons, but specifically to my original point, it isn't code-as-docs.
Golang print colorizing string on ANSI terminals
Shame I don't have the screenshot anymore, but Facebook used to actually blacklist links2. Changing the user agent to a random sequence of expletives allowed me to view the content...
and that 4.2 Million people doesn't include the 7 Billion people in the world that need fossil fuels in order to have power. Cars, buildings etc. Because of fossil fuels, life has been much better for the 7 billion.
And what relevance does that have? That's not the diet the sailors in question had or the replacement diet that was proposed.
> no one needs to be convinced that nuclear plants are better than coal plants

Germany decided to shut their nukes before their coal plants
They count as subsidies the difference between optimal carbon taxation and current taxation. Which in some analyses needs to be counted but subsidies can be a misleading term for it.
Err, they say production grew by 580 GW in the past 20 years and that it must grow by another 5x580=2,900 GW in the next 5 years.

Nothing misleading and indeed an unprecedented production increase.

It's not the ratio that is hard, it's the raw amount.
> Wasn't Google the company that pushed this in the early days of Chrome?

The official party line had never changed. From what I know, Google still recommends that we mortals use feature detection.
Please, this isn't Reddit.
Rise in Unruly Behavior on Planes Is Tied to Stress of Flying
"and will be launching its own database similar to Oracle soon."

Wonder just how similar to Oracle it will be.
I feel if this was done for Perl, it would already be an option ala Klingon[0]

[0] https://metacpan.org/pod/Lingua::tlhInganHol::yIghun
I must admit, it was exactly this. I read the text without using my brain properly.

Please accept my sincere apologies.
$199 for 32 GB.

"Available space is less and varies due to many factors. A standard configuration uses approximately 10GB to 12GB of space (including iOS and preinstalled apps) depending on the model and settings. Preinstalled apps use about 4GB, and you can delete these apps and restore them."

As someone hobbling by with a 16 GB iPhone 6, even 32 GB seems ... low.
I don't use Reddit, so I really don't know what you mean.
Artificial Intelligence and the Trader
That sounds like something that could be done using a Jupyter Notebook and SageMath.
All of them, given the right access permissions.

Better read the documentation?

https://docs.oracle.com/javase/tutorial/deployment/applet/ma...
Heh, kj is a no-op too of course (down then up).

I have literally never found myself needing to pause to wait for a k and then a j. What are these words with "kj" in them that you're wary of? I'm genuinely curious :)
Forests that have been clear cut have a different structure from old forests and burn very differently. Most California fires were of the former kind.

In “Young” forests grown in the place of clear cut “old forests”, the shrubbery grows before the trees and is very thick. The trees are not that high and the branches are close to the ground. These forests get completely annihilated by fire.

Old forests have tall trees, with branches away from the ground and almost no shrubbery. So when a fire happens, the shrubbery tends to burn out before any trees catch on fire. Such forests are benefitted by fires.

Cleaning the shrubbery in some parts of idlewild, ca prevented the forest from burning during the recent fires. It’s a strategy that is proven to work.

Not clear cutting forests also helps of course.
Does it count as “compelling” if it’s a requirement for doing business in that country?
Seriously. As an avid NYtimes loyalist, I'd prefer they exhaustively enumerate through EVERY company where contractors outnumber FTEs. And then I want an equal amount of coverage distributed over all companies.
Iota announces “coordicide” solution to silence decentralization critics
Another example to show why we need to get Firefox at least on the 20% market-share... Google is doing with Chrome exactly what Microsoft did with IE...
Good luck exhaustively testing something with a cryptographic key as input. Non-exhaustive property testing is also pretty cool, though.
> Classic TDD dogma says to mock super close to the unit under test, so that the only logic in play is the logic within that unit.

I suppose it depends on your definition of "classic TDD dogma". Mocking really wasn't a thing until TDD had been around for about 5-10 years, so super classic TDD dogma has always been "don't mock" ;-)

"London School", GOOSE, Outside-in approach has always been to mock heavily. I call it "wish based programming". You write a test, wishing that you had some facility and since you don't have it, you mock it. Then once the test is in place, you can write your code and eventually write production code that represents the mock (and personally, I remove the mock at that point).

It was really after that, as far as I can tell, that people started to get the idea that you should mock all your collaborators in order to isolate your units. This kind of isolation was never a thing originally (see Kent Beck's original book on the subject). Even if you watch DHH's conversations with Kent Beck (and I think Martin Fowler???) on the topic and they state pretty clearly that "Chicago School" is to avoid mocking except as a last resort (my own personal preference as well). Also take a look at Michael Feather's discussion in his Legacy Code book for a good description of what the original ideas what fakes, stubs and mocks were. These days those definitions are practically lost.

I'm not sure why there has been this idea that mocking was always a part of TDD, but it definitely is a popular notion.
I read a few chapters. Well written!
This is fucking awesome. I love the cacodemon.

Completely unrelated, but I cannot play a game with any kind of skill unless I'm using a controller laid out like an old SNES gamepad.
GM becomes first major auto company to have a female CEO and a female CFO
Fighting ‘Toxic, Comparison-Driven Culture’
If you needed to type it, you'd have to pause after typing the k (about a second?) then type the j.
It's also starting to look like palmitic acid has about the same cardiovascular health effects as trans fatty acids. So, yeah, in the long run, might as well leave the forests, because there's a good chance that the current fad for palm oil isn't going to last all that long.

That said, 100% agreed that it's ridiculous that developed nations are tut-tutting developing nations for economically exploiting their own resources, not only in a way that mirrors what developed nations have already done, but also in response to economic demand that largely originates from those same developed nations.
Except if you also want an HTML output from the same source...
The experts were working with the facts as they were known at the time. Microplastic wasn't obvious. Most things, when they break down, aren't harmful. This isn't a problem of experts. This is a problem of hubristically creating a never seen before material and assuming it would have no impact.
Extremely multi-leveled and complex. Democratic. Corrupt in many places. Idk how you measure authorotarian-ness, but it certainly isn't totalitarian. Ie, A central national authority does not exercise a lot of power over people's lives. As you move down the power ladder to local scale, there is a lot of variance and there are pickets of totalitarian power... not the kind of power that'd be implementing environmental policies though.

I'd say more similar to the west than china, in terms of stuff pertinent to the thread.

More generally still, I don't think the high-level system is a driving force. I think it's mostly pretty straightforward.. environmental issues have become a thing people care about more in china and India, governments and publics.
No. Microplastics are everywhere in the environment. Our fish are eating this. It's getting into our food chain and we need to stop this. We are poisoning ourselves the same way the Romans poisoned themselves with lead pipes.
Classical physics takes mass for granted. In the quantum world it's a puzzle
Advocates for "harder classes" also seem to be completely ignorant of the fact that students have far more learning resources than ever before and that the quality of education as it relates to conveyance of course material to students has increased since the 60s. Students have far more access to professors, TAs, and each other than they did in the stone ages.
I've never understood the use of "curves". Secondary ed doesn't use them as far as my experience goes. Intuitively, it seems like they're harmful because they leave students off-kilter, not knowing whether or not they understand the material. Confidence, or at least not being nervous, is such a key in learning.

What purpose are they perceived to serve?
I suspect that the true impact will be in weakening Facebook's bargaining position WRT the new Digital Charter.

https://www.ic.gc.ca/eic/site/062.nsf/eng/h_00108.html
The grandparent comment mentioned modern recycling. Perhaps Belgium is operating old types of reactors that aren't amenable to modern ways of dealing with waste? A quick search yielded that all of Belgium's reactors were built in the 70's and 80's.
That was entirely unintentional in connotation. Please refrain from picking fights. It is very unproductive.
Yeah.. that sounds positively horrible...
> please take this quick quiz

Question 11 says none of the species have become more endangered since 1996 - except that whilst the general classification for black rhino hasn't changed from "Critically Endangered", three subspecies were declared extinct in 2011. Which is definitely more endangered, surely.
Going from 5-580 is much easier than going from 580->2500. Just ask anyone how hard it was to make their first 100,000, million, billion, etc. Using multiples is actually oversimplifying the issue (i.e. "to make a hundred dollars, you just have to make $10 10 times, so making $1000 from $100 should be just as easy")
In reality of course the only difference is that it gets spelled "colour"...

One thing I'm surprised to have seen only once is use of ¬ as an escape character, because it's so reliably unused for anything at all. (I noticed in the code that this program, which needless to say was written at a UK company, had no way of escaping ¬ itself, presumably because nobody had ever needed that.)

£ also seems a bit underused, but it's fairly specifically the UK's currency symbol, so it's not obvious else you'd use it for.

(But I suspect only UK keyboards have these chars, so it's probably no bad thing.)
Hoisting my previous comment on Greenpeace from https://news.ycombinator.com/item?id=17774347

The backlash against nuclear comes from four points and a meta-point:

1) Weapons proliferation. The standard fission cycle is just too convenient for this (after all, that's why it was developed) and so an international infrastructure needs to be developed around restricting this. See Iran for example. This also prompted a lot of opposition from people who didn't want to live under the threat of their cities being nuked.

This also turned into lethal fights with the environmental movement (the French government sank Greenpeace's ship Rainbow Warrior with a terrorist bombing that killed a photographer, over the question of nuclear weapons testing). A difficult bit of bad blood to bury.

2) Huge scale and persistence of accidents. Chernobyl affected agriculture in the whole of Western Europe, and took decades for an adequate final containment to be built. Bhopal was bad - and possibly worse in effects! - but at least the area isn't a permanent wasteland.

Pebble bed reactors were deemed the promising future, until one of them jammed. It's now unfixable and practically impossible to decomission: (wikipedia) "There exists currently no dismantling method for the AVR vessel, but it is planned to develop some procedure during the next 60 years and to start with vessel dismantling at the end of the century."

3) Waste disposal. A forever problem. I'm old enough to remember Greenpeace fighting it being dumped at sea, but the problem of where we put it remains.

4) Cost overruns. A systematic problem in the industry. Doesn't affect renewables to anything like the same extent.

5) The meta-point: systematic lying about the effects of all of the above. That this happens to overlap with the era of discovering that all sorts of previous advances (CFCs, tetraethyl lead, DDT, asbestos) had nasty side-effects which were also lied about or minimised is not a coincidence. Nuclear advocates take the arrogant position that they don't need to win trust.
Well, yes, but India and China are less-developed countries too. I know all developing countries can say "you cut down your forests centuries ago, why can't we do the same thing now?", but at least some are trying to develop without making the same mistakes...
And, of course, the US is a major player in this. Chelsea Manning is still in solitary confinement.
> and possibly could get into cells like asbestos

To be clear, there is no current evidence that microplastics might share any mechanisms with asbestos/CNTs/etc, right?
Thanks for pointing that out.
Greenpeace is the perfect example of how "fighting for the environment" is meaningless.
Are we talking about biodiversity, air pollution, water pollution, side effects of mining... or climate change?
Unfortunately, it's hard to find something that works for all of these problems. Except reducing consumption overall.
Obstruction of Justice is a crime in both countries, and Parliament could certainly charge him with that, if it wished.
The simplest answer is: It's not real. There is no such thing as cold fusion.

It's not a matter of "so difficult", it's not actually possible.

Are you asking, why is there no such thing as cold fusion? If so then in the simplest way I can explain it:

Atoms are like little magnets that repel each other.

To get fusion you need to get the atoms to touch - but you can't, they repel. So you have to press them together really really hard, to force them.

The only way we know to do that involves lots of temperature and pressure. Cold fusion simply doesn't press them together hard enough.

The idea of cold fusion was that certain metals would act like magnet-shields, stopping the atoms from repelling. But all known science says that that is not actually a real thing.
> Having completed both a masters in philosophy and an M.S. in computer science, I'll go as far as to say that I don't think college matters at all any more, in tech, and that's fine

I always find interesting that the most vocal proponents of the "school doesn't matter" argument are often the most educated. Why did you get an undergrad and even go as far as to get a masters? Did you come to the realization after you finished your masters?

Would you advise family members to forgo a college education since it doesn't matter? How confident are you of your convictions?

It's easy to say school doesn't matter after you've achieved all the benefits from the signaling effect
Bike Size Chart: The Definitive Guide for Choosing Your Bike Size (2019)
"Google" encompasses many different projects and teams. What does Gmail loading time have to do with what the GP said?
Articles like this carry the implication that current-generation nuclear technology should be subsidized. There are reasons to subsidize new energy technologies, but not ones that have failed to become practical, safe, and economically viable over the long term.

Subsidizing current-generation nuclear power is what we have had all along. The cost of nuclear power was imposed on ratepayers without them having a say. It didn't work. Nuclear plants are still too expensive. Still uninsurable due to unbounded risk. Still ending up with shortfalls in decommissioning funds. Still without waste disposal. Practically nothing you would expect a period of subsidy to get to practical market-supporting economic models.

I could support government funding for demonstrator reactors using genuinely new technology that can make a case for solving the problems of nuclear power.

I will not support extending the life of reactors that do not even meet current site requirements (like Fukushima) or current containment standards. I will not support building new reactors based on old technology that does not transform the safety and economics of nuclear power.
Correct me if I’m wrong here, but wouldn’t these attacks be translatable to anywhere there are read/write discrepancies?
I skimmed the OPCW report but what struck me was it appears they failed to investigate the cylinder itself.

The damage on it looked to have occured some while ago due to extensive rust, and it looked squashed as if it had been under a flattened building.

Also there was a pretty computer model illustration of how it smashed through the roof, but no picture of the hole itself.

The most telling thing was they'd be absolutely no military advantage to the attacks, in fact the opposite as it could result in bombing from the western powers (which it did afaik)

ETA:

Report on the attacks by Robert Fisk:
https://www.independent.co.uk/voices/douma-syria-opcw-chemic...

Also this is the article which led me to read the OPCW report: https://www.independent.co.uk/voices/syria-chemical-attack-g...
The difference is that I don't have to have an "operation" (i.e. office) in a nation for my website to be accessible in that nation. Looking at a map of facebook offices [0], I don't see any in Kazakhstan (just to pick an arbitrary nation with a tinpot dictator), but Facebook still has a substantial presence there.

Also, there is a serious risk flying to some countries. I would expect quite a few of them to arrest for some "crime" and demand a "fine" to be released.

[0] https://www.facebook.com/careers/locations
Adventures with a Programmable Mechanical Ortholinear Split Ergonomic Keyboard
I’m from Spain, and it is surprising to hear someone say we will do that.

We have a huge inferiority complex, and our own cainistic version of the black legend, that makes us revere anything foreign as better than the local version. We have petty fights re. official languages about whether traffic signs should read “A coruña” or “La coruña”; or whether the national news anchor should say “Gerona” or “Girona” when speaking in spanish. We have regional governments that push spanish out of their regions. We as a nation obsess over english; we dream of speaking it better, we make it sound cool in the ads. We mock our leaders for not speaking it properly.

No one seriously pushes in a coordinated manner for spanish being used in the EU as seriously as the french or german do. At most, we aspire to be the proxy for latin america relationships.

As soon as anyone proposes to use english, we will see it as the opportunity to not have half of europe speak in french.
Harvard NLP Publications
They wouldn't be in the sea if they were in a landfill. They get into the sea from street rubbish washing into stormwater drains/rivers mostly in poor countries and from fishermen dropping their equipment overboard.

Microplastics are also not known to be toxic to people. So it's not like lead.
The Patterns Behind Scalable, Reliable, and Performant Large-Scale Systems
Most of the structuring (and, therefore, syntax) around an 'enterprise' application, is about how easy it is to 'replace'/'change' functions based on future needs (or known, but yet un-realized requirements).

In mathematics, the driver for notation is:
how succinctly can I express, what I want to express in this particular effort, yet allowing others to verify my work without mis-interpretation.

I am not sure if those two worlds are reconcilable, and mergeable, with worlds of structured and 'just-in-time' teaching.

I am going to also, claim, that style of presentation of mathematics is more appropriate for formulating vision, structure, strategy, architecture in formal technical/financial 'contracts'.

As I progress (perhaps, already at a sunset) of my career, I can see that lack of fluency in mathematics (both algebra and analysis) is a major impediment for transition into more highly compensated (and impactful) , yet, still technical roles for many of us, out there.
>Ok but how do you know which perspective/interpretation of things is the 'correct' one?

Which one has predictive power?
Guess some of you guys like cycling, here is the bike size chart guide, hope it could help :)
I tend to agree, but the fact that saying a degree "doesn't matter" is the exact opposite extreme. Many of the latest advancements in technology still have origins in university programs and the algorithms that one learns are still ever present in every piece of code that you write. They've just been abstracted enough that you don't need to have an immersed understanding of it. It has come to the point where its subconscious in most developers minds when they instantiate a list or dictionary.

However, when you're working on the front lines, you better believe that that stuff becomes incredibly important. Being able to construct good algorithms, explain why they're good or bad, what inputs they require, etc. make all the difference.

Which is why I'm under the impression that if you really want to go to college, you should be trying to get into a PhD, rather than making it into some job prep. For example, if you just want to be a programmer that studies web frameworks, then knowing binary search and tree algorithms won't matter much in the grand scheme of things. Because you're just an end user of the research work at that moment.

I think there should be a common ground where degrees in computer science should be geared toward a research or job path with distinct goals. Say, the job path teaches you how to use frameworks and build things where the research path puts you into algorithms and heavy math.