jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
It's O(n) in the number of bits. The number of bits is O(log n) in the value of the number. Multiplying n primes together, where the primes are taken from a restricted set of numbers, creates a number whose value is O(n) (it has n factors, but each factor is bounded by a constant).

BTW, I would've used a bitvector. For lowercase letters only, you could fit it into a 32-bit value (add mixed-case and numbers and you can fit it into 64 bits), then it's just an OR to set a bit and an AND to read if a bit has been set, both fast machine-level operations.

Edit: Didn't see the footnote on the problem. A bitvector doesn't work if counts must be kept, but you can still do this pretty simply with the table solution.
I'm just saying don't be a jerk about it -- it's one thing to say yes, we should teach Huck Finn, another to demean the idea of being offended by the word.
What do you think it means to “use math”? If you want to train human spreadsheets you’re wasting everyone’s time: the spreadsheet already exists as a product for electronic computers, and is much faster and more reliable than a human will be at doing huge piles of arithmetic. (But anyway, even if you wanted to train expert performance at arithmetic, the way schools currently go about this is horribly inefficient and doesn’t take into consideration research on neuroscience / psychology.)

If you just want to train people to be unthinking drones who can follow narrowly specified procedural rules without understanding their context or meaning, then I guess the current system is a relative success.

In general, the point of mathematics education in primary/secondary school is not to train future mathematicians, but to teach people important problem-solving skills. The same skills are (to some extent anyway) useful in essentially any field you might name, from childcare to plumbing to legal analysis to fine art.

In particular: self-confidence that hard problems can be tackled and that anything one person can do another typically can also with training and effort, time management, lateral thinking, learning when to keep trying a strategy vs. when to switch and try something else, salvaging useful partial results from failed efforts, drawing diagrams, careful record-keeping of works in progress, more generally externalizing problem state so that it can be worked with outside your head, converting fuzzy problems into precise formal terms to they are amenable to careful logical analysis (including making explicit all of the assumptions involved in the model chosen), exploring the relationships between different problems, investigating specific concrete examples of general rules and generalizing from particular cases to abstract theorems, searching/skimming published literature for solutions to problems that are too much to handle or finding relative experts to ask for help and knowing how to do so productively, clearly explaining an original problem and its context and any simplifying assumptions and then clearly explaining a solution step by step, checking solutions by solving a problem multiple ways or doing quick sanity checks, .....

I could probably keep listing more here, but you get the idea. Anyone who plans to do any kind of real-world technical work will be at a huge advantage if they have significant amounts of problem-solving practice going back to childhood.

You might similarly protest that we should not bother reading and analyzing novels in school because few careers explicitly require reading/writing fiction, or that we should not bother with physical education courses because few careers require playing dodgeball, or that we should not bother with music courses because few careers require skill at playing the recorder, etc. etc.
Chromium, rather than Webkit, but yes - thanks for pointing that out I have fixed this (Blink was created much later, in early 2013).
Great, more e-waste due to lack of upgradability.

At which point does polluting the plant intentionally becomes a crime?
The real money maker here will be the heliports if they're privately owned. Because you own the bottleneck, you run the auction to determine who gets to take off and land. If the cost of the vehicles drops, more of the money that end users are willing to pay ends up in your pocket. Vehicle manufactures will be in a cut-throat race to reduce costs but ticket prices would never drop because $1 saved in vehicle cost would just be $1 in the pocket of the heliport operator.

That is unless the government can actually step up and set this up correctly: with a license auction. You bid on the right to operate the heliport every two years. License auctions work extremely well as demonstrated by radio frequency spectrum auctions and hot dog vendor location auctions.
Speaking as a cyclist of many years, maybe the system is just modelling human drivers a little too accurately.
By the way, I have raised a ticket to finalize method order before 1.0 release (https://github.com/bwhmather/ssort/issues/11). Please follow and comment if you would like to see a change.
I frankly think you have it backwards. Practically the majority of business server+cloud software runs on Linux, unless you're a literal desktop janitor.
You could give The People's Republic of Walmart a read. Full disclosure, I haven't read it, I've just read/listened to media talking about it.

> For the left and the right, major multinational companies are held up as the ultimate expressions of free-market capitalism. Their remarkable success appears to vindicate the old idea that modern society is too complex to be subjected to a plan. And yet, as Leigh Phillips and Michal Rozworski argue, much of the economy of the West is centrally planned at present. Not only is planning on vast scales possible, we already have it and it works. The real question is whether planning can be democratic. Can it be transformed to work for us?

https://www.amazon.com/Peoples-Republic-Walmart-Corporations...
Same reason I sold my motorcycle when I was 30. I had a good run of not being maimed, but the odds were not good for the future.
This makes a lot of sense in at least a few cases I can think of. Yes if I want to do a pair trade/arb at a spread it doesn’t make sense to try and execute both parts atomically ca interacting with another party directly looking to put on the inverse. No idea if the funky ai past that point adds value or is fluff but interested enough to find out.
It's neither cynical nor simplistic.

It's a positive view because the US, despite it's failings, is a positive and pragmatic actor.

It's not simplistic because I'm respecting the fact that 'geostability' is a primary concern, even as that might run counter to other objectives such as democracy, free markets etc.

"regional superpower cannot compete with the world superpower" of course they can and do.

It costs the US tremendously to project it's power in Iran obviously a 'full on war' between parties would be mostly decisive in the short run but that's besides the point.

You are failing to differentiate between the kind of power that the US projects vs Iran.

The US actually supports, and helps hold together the House of Saud and therefore stability in Saudi Arabia.

They otherwise don't interfere internally. They put some pressure on Saudis for social progress but that's that.

The US is trying to help 'hold things together'.

The result of this, is that Saudi can provide oil - not to America, but to the world, at market prices.

The only special provision that comes along with US protection of the Gulf is that the Saudis cannot for example sell their Oil exclusively to China or Russia or do some kind of big strategic deal with them.

Put another way - US presence there is to stop Russia/China or some other power from taking hold.

Saudi has an interest in Yemen because it's right on the border, and full of rebels who'd like to overthrow it, ultimately, they also want peace and stability.

Iran wants to cajole, control and antagonize the Arab states and Israel and not in a nice way. They now have Iraq as a vassal state, and they'd prefer the Arabs to be their vassals as well.

If Iran did not exist, there would be almost zero ongoing fighting right now in the ME. Syria, yes, but outside of that no.
He should be subject to the same rules as everyone else. Are all men not equal in this country?
Here's a screencap - https://vimeo.com/497911640

First prompt is when tapping the plus sign at the top.
> One thought that comes to mind is that I'm sure the most heavily armed nation in the world could have gotten rid of these people in no time, but perhaps they didn't because of the symbolism of the location.

Oh no, the police let them through, there's clips showing they literally opened the gates, pictures of them taking selfies, etc. It's the "blue lives matter" subculture within those groups, where the police think they're on their side and the protestors think the police is on their side. The policemen involved should be fired and charged with dereliction of duty and conspiracy or something like that. Of course, there should have been a lot more (riot) police active as well, since it was known in advance it was going to be a bad protest.
Signal is still US-based, so I'm not interested.
Can you cite bases for these claims and characterizations? Nobody has stormed the Capitol and violently disrupted Congress since the war of 1812, as I understand it. Certainly I've never seen anything like it. I don't agree that the protests described are remotely the same, nor with the characterization of the summer protests as "BLM/Antifa". I saw plenty of massive BLM protests, zero Antifa except occasionally on TV. It's like calling Redmond WA the town of Microsoft / Joe's Diner.

The idea that it's both sides and civil war is coming is certainly a claim of the militant right wing that seeks violence. Nobody else says it that I know of.
Of course, and so do I. But nobody ever even encountering the situation and/or bothering to report it, that's a whole different matter.
> Learning living along with the radicals is a good alternative to having a war with them.

This is what most regimes and "leaders" don't understand. They think that if they were put/elected there by some people then those are the only ones they have to serve. They do not acknowledge that they should serve the country. As such the disenfranchised start to think that if the power isn't on their side, the complete opposite must be. They drift towards an extreme, whatever that may be since both left and right extremes are very closer to each other - they justify the same things for different reasons.

Once enough are disenfranchised the power balance shifts. But the next to come in power will do the same, this time with the "moral" justification that the others deserve to be punished, swinging the pendulum further to the opposite side. If you repeat this cycle a few times you get to the pendulum's breaking point.

A president with a terrible character to begin with will just fast track the pendulum in one swing. They will add fuel to the fire and watch it burn not only out of pleasure or frustration, but also ineptitude.
One interesting fact to note, that WebAIM doesn't reflect at all, is the recent rise in usage of Chinese screen readers. ZDSR for Windows is still an insignificant and meaningless minority, but I'm not sure how long it's going to remain that way, considering it hasn't been available outside of China for very long. However, Commentary for Android is getting some significant usage, particularly in poorer countries where Android is the only thing most people can afford. It offers superrior experience and performance to Talkback, and isn't prohibitively expensive, so it's getting some popularity.

I wouldn't worry about testing with those screen readers for now, as there still aren't that many people using them, but it's something worth looking out for in the future.
> and they illegally stormed the US Capitol at the Kavanaugh hearings, what should we have thought of that?

You mean ... showed up and were lawfully admitted to hearings, and then were disruptive by yelling? Or do you have something else in mind?
Ruby and Python are certainly good first choices, but I don't think that Javascript is a bad choice. It may be rare on the server-side today but with the momentum it's building I think it may be a lot more common by the time a beginner is ready to write something non-trivial.

Any working dev is going to have to learn Javascript sooner or later so you may as well start with it, IMO.
Huh. I always thought that metric units of mass were defined by the mass of a mole of whatever atom you were interested in: a mole of carbon masses exactly 12 grams, a mole of oxygen masses 16 grams, a mole of hydrogen masses 1 gram.

EDIT: corrected atomic mass of carbon. Not sure what I was thinking there ...
Similarly I have determined you can judge an American neighborhood by it's public library.
And here I thought that the gram was defined by one cubic centimeter of pure water at 4°C.
My best advice (not that it's valuable): Take a weekend to yourself and learn something new with a personal project. Build a Facebook game, make use of the Twitter API, learn some basics of functional programming. Anything you can do to show that you are motivated and interested will help you significantly.
It suprises me that intelligent, reasonable people like Andrew Ng and Sam Altman were willing to help develop and invest in the Chinese Communist Party's AI/ML capabilities helping to create an authoritarian surveillance state used to repress minorities (Uighers, Tibetans, Falun Gong) on a scale not seen since Adolf Hitler.

The CCP and private companies are hand-in-glove. The risks of working with state-owned enterprises are clear. The risks of working with private companies are are also great with "party cells" officially embedded into at least half of private companies.

Fortunately for the free world, China faces massive structural issues to growth over the next 40 years, which the CCP is unable or unwilling to deal with. I highly recommend [1] and [2] to understand the future of the brutal Chinese dictatorship.

[1] https://www.nytimes.com/interactive/2019/01/17/world/asia/ch...

[2] https://www.youtube.com/watch?v=_AvNT3vyzr0

EDIT: Instead of down voting, please articulate why you disagree.
Unfortunately there are two big problems:

-- You can't provision more than one security key. I want to provision a backup key.

-- You must have TOTP or text-message 2FA enabled in order to use a security key. But the very reason I want to use a security key is because I don't want to trust my phone!
100% satire.
I am currently working on multivalue in both LLVM and Binaryen. Watch for celebratory tweets when I finish ;)

Rust will be able to benefit immediately once LLVM has multivalue function support since they use their own ABI internally. But C, C++, and Rust extern functions will not be able to benefit until we additionally define a new C ABI that takes advantage of multivalue returns.

It's also worth noting that multivalue blocks only bring a code size win of a couple percent on real wasm modules, so those are much lower priority.

WebAssembly features are all different in how difficult they are to add to the specification, engines, and tools. Multivalue is unique in that it is trivial for the spec and for engines, but is extremely difficult to implement in tools.
These metrics are signals. Interestingly, we already have an extreme information asymmetry between platforms and users. The softened version of these moves is to make the experiences more authentic, the less soft version is to increase the information asymmetry even more.

You as an individual will be a bit sharper, if what you do is not just herd behaviour - but more coming from your true self, you know.

Anyway, the idea is still ok and the site looks nice, congrats on putting it out there.
Sure seems like a lot of science and tech related awesomeness is introduced to the world on a website from 1998.
It’s unfortunate that Cloud Print will be shutting down. It was a convenient and useful utility. It couldn’t have cost that much to run.

Perhaps the shutdown has something to do with the product possibly being based on Google Talk? The port requirements for the print server include: “5222 TCP (XMPP, using STARTTLS), with a persistent connection to: talk.google.com.” [1]

[1]: https://support.google.com/a/answer/3179170
An "engineering challenges with today's technology" section would be great addition to this piece, I'm sure there'll be a few "biophysically possible but we don't know how" parts ;)
> ...the West believes in Universal Human Rights. China obviously does not.

This is probably a case where more precision is warranted. The CCP and the nearly synonymous PRC government obviously do not believe in Universal Human Rights [1]. However "China" can be interpreted as the Chinese nation/people, and many of them do believe in human rights [see Hong Kong] or have been deliberately kept ignorant of the concepts. It's not like rejection of human rights is part of the national character, or anything.

> Is it really wise to Balkanize the world if our goal is to encourage China to adopt Human Rights? How would a second cold war help?

The Cold War was basically about containment, and it's an acknowledgment that no good options are available. Recent history has shown that trade and investment don't necessarily lead to liberalization, and military attacks are out of the question. Besides containment, the only option left is acceptance/appeasement.

[1] https://www.nytimes.com/2013/08/20/world/asia/chinas-new-lea...
I'm not actually arguing that this is the most desirable course of action, I'm arguing that OP's original comment can be interpretted in a manner that isn't putting personal gain above human rights. I felt like there were a lot of angry voices piling on over a potential misinterpretation.
For what it's worth, grinding your own beans is not really any more work than pre ground. I think it's actually easier, since I don't have to carefully measure - I just know that I have to cover the blade with beans, and that turns out to be perfect for my size pot. I just keep my beans in a zip lock in a cabinet, so they stay dark and cool and air sealed. As a bonus, you can decide how fine a grind you like per pot.
So where's a link to the video? I'm digging and will update if I find it.

Edit: The following link seems to match many of the attributes mentioned in the complaint filed (date of talk, sponsor of talk, his keynote speaker status, location of talk, video length).

http://vimeo.com/13816922

http://youtu.be/KBTWoCaNKn4?t=37m41s

Edit2: Confirmed. This is the talk. The Ars article says the title of the talk was "Open," same as the title in the video. The "infringement" starts around 37:40. Funnily enough, the "infringed work" is apparently a remix itself. Go figure. You couldn't make this stuff up.

Edit3: I can't tell whether the song itself is a remix, or if Lessig meant there were several remixes of the original clip that had the music dubbed over clips from The Breakfast Club. It appears to be the latter.

Suffice it to say, this is fucking ridiculous. Raise your hand if you're going to watch a 49 minute long video in order to try and "home tape" the 47 second clip 37 minutes and 40 seconds in, especially if you can just download the official video from here:

https://www.youtube.com/watch?v=4BJDNw7o6so

Whether this is "official" as in this is the actual video shot for the song, or "official" as in "welovephoenix" is their official youtube channel (or both), I don't know. But that link has nearly 10 million views.

Edit4:

And this is the original video remixing the song with The Breakfast Club and another 80s movie I'm too twentysomething to recognize, sitting pretty at 458k views:

https://www.youtube.com/watch?v=Dq741YqlP7w
Hmm, I'm not that familiar with BeautifulSoup, but it appears to not properly be parsing the page, rather than a download / availability issue. Specifically, there's no content in the soup object ~line 150 and thus the list of content to parse and download is just [].

Will keep probing, but if anybody has experienced something similar and has a handy solution, I'd greatly appreciate the tip! (And I'm sure the author would appreciate a PR)
I think you got it wrong. Introversion is not lacking of social skill. I am an introvert but I can communicate or socialize to strangers instantly if needed. But I always have the need to spend time with myself. Check this out.

http://www.quora.com/Introverts-and-Introversion-2/What-does...
Nimrod was also the name of a British warplane, IIRC.

And also the name of a biblical king and mighty hunter.

http://en.wikipedia.org/wiki/Nimrod
Well if you, like me, see ML as only a garbage shaft, then yes.

But a lot of people think of it as a fancy processing plant which can take sewage and make diamonds. Really, it takes carefully prepared gemstones and crushes them into a shiny powder.
Focusing on the atlantic slave trade is understandable in US as that's very foundational there.

I just hope US people would realize allmost none of their North-American cultural tropes are applicable elsewhere as a foundation for anything, really.

Example: I am a finn. A middle class male in a high income country. What this means is: I am of the indigeneous population in this country (one of the population surges after the ice age). My kin where hunted as slaves and sold to asian slave markets.

Finland never participated in the colonial era except as a dirt poor third world economy to be exploited.

There is xenophobia and racism as elsewhere, but there is no historical past we should be particularly ashamed off.

If I were to come to US I presume I would be categorized based on my skin color in the "population whose ancestors benefitted from an inhuman trade" where as the truth would be "whose ancestors were the oppressed". I don't find it insulting or anything, but I do get the sense that the strength of the US tropes would make it impossible to discuss this in US context without myself being labeled a white power supremacist or something worse.
My interpretation was that it was more of an encouragement to think about things at a higher level of abstraction rather thinking of implementation details, as is a common reflex for so many programmers. Being able to communicate at that higher level of abstraction is a consequence of first having trained yourself to think at that level.
They found 74 children with acute hepatitis that isn’t caused by any of the hepatitis viruses A, B, C, D, and E.

We don’t know what caused it. Could be a mutation of a known virus, but it need not be a virus at all.

That’s the news.

Knowing that most cases of hepatitis are caused by viruses, they looked at what viruses “make the rounds” in the population. That’s why they mention Covid and adenoviruses. They haven’t found a culprit yet, so they continue searching, including “Laboratory testing for additional infections, chemicals and toxins”.
What we'd really need is a well supported nix-like OS, not some unspecific "containers" on top of a base OS. I can already install containers on top of a base OS, this couldn't sound any less interesting in my opinion.
Containers by definition are a solution to a problem caused by applications not being... contained enough. Nix like separation would help with that precise problem but OpenSUSE doesn't seem to have the vision to see it.
Alter ego is the true self coming out. The “true self” is the real mask - the struggle with excepting the horror of what is exposed by the mask.

Maybe?
Don't forget roblox. I wonder if an open source web based roblox could take over the world.

I wonder if other than gaming and "hanging out" there would be any practical applications. Modeling probably.