skysight-inc/HackerNews huggingface dataset:
You only check each character in the string once. A hashmap can check if the char is used already.

For each char in the original string there is:
* 1 check in hashmap (let's assume it was found). This is O(1)
* build a new string where we remove that char from the string we are building (string2) and add it to the end. This step may look O(n) initially since we need to find that char in string2 but string2 is capped at 26 characters so it's O(1)
* One comparison between the string we are building and the altered version.

How does that make it O(n^3)? I can't see which step inside the initial loop is O(n) or greater.

EDIT: The solution is actually incorrect so this is now semantics.
Don’t forget about that one big fad called “internet”.
https://www.theleader.com.au/story/6566610/police-strike-for...
Arson (and church desecration)tends to be under reported but is definitely a big problem.
Are those stats on people deliberately setting forest fires, something much more serious than garden variety arson?

>What is increasing is the rate at which those acts become extensive bushfires

According to MSM 24 were charged with "deliberately lighting bushfires", not committing garden variety arson that metastasized into bushfires.

Forest fires have always been easy to start, if one wanted to, but people intentionally attempting to do so seems unusual.
Airpods are popular not purely on their own merits: new phones don't have a phone jack. So in the sense it's an exploitation of the existing iPhone pricing power.
Emscripten can target non-WASM JavaScript just fine, and the malicious use cases are just as happy to burn your power at any efficiency. Disabling WASM is a knee-jerk reaction and will not protect you. (Disabling all scripting will, as long as no site you whitelist or addon you install gets hacked.)
Navigational Secrets of the Desert Ant
I never understood why a raving antisemite like Alma married Mahler. This article at least casts some light on that mystery.
Another approach is trying to take a disciplined, abstract view of the situation.

For the news, pay less attention to the content of the news, but the style in which it is delivered, paying particular attention to word choice, chosen perspective, suspiciously excluded details, double standards, epistemic soundness (how would one actually know the "fact" that is being reported), etc.

For internet conversations, try to remain undecided on the particular issue being argued, but closely observe the nature of the conversation, using the same techniques as above.

I think if you can manage to do this skillfully, what would normally be an exercise in frustration and stress can transform into a pleasurable study of the nature of human beings, if you're into that sort of thing.
> Sure, immutable build artifacts can be invaluable -- but aren't they also an orthogonal concern?

One person's immutable build artifact is another person's vendored build input.

It's common to vendor third party libraries by uploading their immutable build artifacts (.dll, .so, .a, .lib, etc.) into your VCS, handling distribution, and keeping track of which versions were used for any given build. It makes a lot of sense if those third party libraries are slow to build, rarely modified, and/or closed source - no sense wasting dev time forcing them to rebuild it all from scratch.

The next logical step is to have a build server auto-upload said immutable build artifacts into your VCS, for those third party libraries that you do have source code for, when your VCS copy of said source is modified. Much more secure and reproducable than having random devs do it.

And hey, if your build servers are already uploading build artifacts to VCS for third party libraries, why not do so for your own first party build artifacts too? Tools devs spending most of their time in C# probably don't need to spend hours rebuilding the accompanying C++ engine it interoperates with from scratch, for example, so why not "vendor" the engine to improve their iteration times?

This can lead to dozens of gigs of mostly identical immutable build artifacts reuploaded into your VCS several times per day, with QA testing and then integrating those build artifacts into other branches on top of that. The occasional 10MB png is no longer noticable by comparison.
Sure, but even then I wouldn't agree with you. Ke$ha was a hostage of Sony Records and her rapist, enforced by the US court system. Corporations will do whatever amount of damage they are allowed by law, including stripping a person of her economic and social freedom.
He is still actively publishing! TAOCP Vol 4 Fascicle 5 (which is going to be the first one-third of Volume 4B) came out less than a month ago, and it contains a lot of material and ideas that have never been published anywhere before. To answer your specific question, I'm positive he's referring to Dancing Links: see section 7.2.2.1 in the published fascicle, or his draft (pre-fascicle 5c) at https://cs.stanford.edu/~knuth/fasc5c.ps.gz -- the idea originally came from Hirosi Hitotumatu and Kohei Noshita (1979), then Knuth popularized it under the name "Dancing Links" (2000?), then the idea of "Dancing with ZDDs" was by Masaaki Nishino, Norihito Yasuda, Shin-ichi Minato, Masaaki Nagata (2017), and he's extended it to Algorithm Z in this publication.
Here is a realtime satellite "hotspot" service:

https://hotspots.dea.ga.gov.au/

And an image (as of now) incase it's geo-locked:

https://i.imgur.com/qWEMM7D.jpg

Here is another image of Victoria with current outstanding fires:

https://i.imgur.com/izZt1lV.jpg
This is all too common, especially when it comes to politically charged discussion. Imagine saying data is incorrect/impossible and being called cold hearted, unconcerned with future of planet, hate people, or supporting evil or being a shill.
Why bother doing that when you can just drone-drop grenades into a crowd for much cheaper?
A STOPPED clock is correct twice a day, as long as you already know what the time is you can tell that the clock is right at this time.

A broken clock will always be wrong. Even if you already know what the time it, the fact that the broken clock looks like it is working will lead you to wanting to believe that it might be right just this once.
It's strange that I can't find any source code for this…
It can even kill tons of animals/people at once[1]. Four legged animals are more vulnerable than humans, since the voltage across your heart depends on how far apart your feet are. Also, we wear shoes.

Imagine how spooky it would be to be struck by ground current without understanding... Whether or not you survive could depend entirely on what direction you're standing. One direction will mean your feet are at different voltages and current jumps into your nice conductive veins and arteries, all passing right through your heart. The other direction means the front and back of each foot is at different voltages, and you may not even feel it. Hundreds of people just drop dead of heart attacks around you.

[1]: https://www.theverge.com/2016/8/29/12690402/lightning-strike...
Looking forward to video decoding (and encoding) hardware acceleration through VAAPI in Firefox on Linux. Now that WebRender is already in the codebase, at least doing it for WebRender path would be very welcome.
I agree. It's also really hard data to find.

A faction of our media is running with it as cold hard fact anyway that a new wave of arson is completely the cause of our current crisis.
Playst | Brisbane, Australia | Part-time, remote
Roles hiring:
-Software Engineer https://docs.google.com/document/d/e/2PACX-1vSlhOuU0VgZ9D8sG...
What are the interview questions aligned towards? More soft skills, or are there still a bunch of algo questions, etc?
UI looks like a 1 to 1 replica of Notion. Coincidence?
There is a breakdown of which incidents relate to bushfires yes.
Really? In my view it's just a phone, just use whatever you prefer but I can't relate to getting used to an interface as per se
None of the fires in Victoria have been confirmed to be deliberately lit. Police have charged one man in Victoria with _attempting_ to light a fire.

Deliberate arson is not new in Australia, don't make out that it's the reason for the scale of these particular fires. "Conditions, not ignitions".

Fire chiefs had anticipated and warned of the likelihood of these fires, and they are clear in asserting that climate change is a factor. Australia just had its hottest day ever broken multiple times over a series of days.
Yup, that's exactly it.
Nothing. I hadn't fleshed out my idea yet and that's the error I thought could exist. My solution is wrong.
I saw people that decided to not jump into Stadia claiming it was another one of Google's abondonware projects. I really hope they fix the issues and try to push gaming forward. I personally think it can be huge here in Japan if done right.
The musician in me makes me yearn for a "physical" button
I'd bet the average person contributes 10 times more plastic waste every single day than a single pair of airpods (by weight).

Yes it's still wasteful, but one of the absolute least impactful places to start optimizing your life given how useful the things can be over their 2-3 year lifespan.
ah, thanks for that information. I'm not super familiar with AMDs productline and somehow thought that all Zen 2 have an integrated graphics inside. So we are gonna to expect some more powerful G line APUs in the future too I guess...
The most cursory thing an employer can do is Google an prospective employee, and that will bring up title credits on games you've worked on. If you were to Google my name, for instance, as I don't have any social media presence other than LinkedIn, you only get game titles I'm in the credits of.
Care to quote that rather than linking to a largish PDF?
It is definitely possible to leverage Flyte's features here for sharing partial outputs. It does, however, require formatting your pipelines in a particular manner for this to be supported natively (i.e. create a task which computes a view or similar. Then that task is shared among different pipelines). It might be a little verbose, but, in my opinion, it is preferable because it modularizes pipelines into tasks which are individually tractable for testing and validation--especially as the tasks and pipelines evolve in a large organization! Further, the verbosity of authoring such pipelines can be reduced significantly by making good use of the flytekit library.

Additionally, there is always the option of introducing a custom plugin. Although it would take more effort up front, one can really let their imagination run wild and introduce behaviors as needed.
Indeed. Here in SE Asia, everybody still uses 3.5mm jack smartphones. It's a rare occurrence to see wireless earpods, and almost always these are cheap Chinese AirPod knockoffs.
Bad Projects Affect Your Life
Almost any car with drive by wire and/or modern safety features (lane assist, forward crash avoidance, etc) can be controlled (to an extent) via the CANBUS.

It’s different for (almost) every car, but you’d be amazed how easy and fun cars are to hack on, as long as you keep it off the streets.
Don't take this the wrong way.

If you can't explain what's in your head in plain English in answer to a question that was asked in plain English then there's not much point in answering.

I'm not getting the impression that you've answered my question, I'm getting the impression that you don't know how to answer my question.
Treedoc Viewer: Best JSON/YAML, XML Viewer. Have a Try and Welcome Feedbacks
Nope. treated badly at a job, leave.
How do you know the whacko is telling the truth this time?

Only because you already know the facts from reliable sources.

So given you already knew the facts in order to ascertain that the whacko was telling the truth, why are you bothering with the whacko?

Worse, by pointing out that the whacko was right this time, you encourage others to believe other claims by the same whacko, since they have been right at least once!
If you have enough money not to care then fair enough, different target markets.

The sony WF-1000XM3 get mentioned immediately if you google/reddit/etc for "Air Pod Alternative"
https://github.com/sinetek/xnu-amd/tree/master/osfmk/OPEMU
Events that kill some people and events that kill all people have different priority.
Analyst sees Model Y steady sales in China exceed 400k units per year
> I have several friends who successfully don't consume HCFS, even when traveling or at friends' houses.

If you say so. Are they able to avoid plastic waste, palm oil, and soy-based products? How many hoops should consumers have to jump through before we are allowed to have a healthy market?

> On the other hand, your vote for those politicians has near-zero effect.

Says you. I know a bunch of people who have healthcare because we voted for a certain President and a Congress who could get it done. It had a near-100 effect for all of those people.

> And if it does have an effect and they ban HFCS, then you've just imposed your will on people who wanted cheap sweeteners more than they wanted to avoid the health consequences of HFCS.

I'm not a Republican, I don't care about corporate profits over human well-being. Removing HCFS and similar products from the market is a net good. We already decided that tobacco products should be handled this way, and HFCS specifically is just as unhealthy.

Furthermore, the product choices available to ME are severely distorted by the presence of subsidized, unhealthy corn syrup. By removing it from the market, the American people will get better choices, with minimal medium or long term disruption to the number of choices available.
I wrote a script for this a while back to analyze them with nltk:

#!/usr/bin/env python3

import nltk
import nltk.sentiment.vader
import json
import urllib.request

companies = [
"apple",
"google",
"microsoft",
"amazon",
"facebook",
]
sample_size = 10

def get_json(url):
request = urllib.request.Request(url)
request.add_header("User-Agent", "Python")
return json.load(urllib.request.urlopen(request))

def allcomments(json):
comment = json["text"]
comments = comment if comment else ""
for child in json["children"]:
comments += allcomments(child)
return comments

if __name__ == "__main__":
for company in companies:
sentiments = []
print(company)
for item in get_json("https://hn.algolia.com/api/v1/search?query=" + company + "&tags=story")["hits"][:sample_size]:
tokens = nltk.tokenize.sent_tokenize(allcomments(get_json("https://hn.algolia.com/api/v1/items/" + item["objectID"])))
sia = nltk.sentiment.vader.SentimentIntensityAnalyzer()
scores = sum([sia.polarity_scores(token)["compound"] for token in tokens])
sentiment = scores / len(tokens)
print("\t" + item["title"] + ": " + str(sentiment))
sentiments.append(sentiment)
print("Average: " + str(sum(sentiments) / len(sentiments)))

Apple gets low scores because of China, mainly. Plus they lack the many open source projects that buoy up companies like Microsoft.
Get some of these[0] and it should be no problem.

[0] EarBuddyz 2.0 Ear Hooks and Covers Accessories Compatible with Apple AirPods 1 & AirPods 2 or EarPods Headphones/ Earphones/ Earbuds (3 Pairs) (Clear) https://www.amazon.com/dp/B019BREFE4/ref=cm_sw_r_cp_api_i_EJ...
Not sure if you've seen the following statement from University of Sydney, but they're standing by the estimate: https://sydney.edu.au/news-opinion/news/2020/01/03/a-stateme...

In fact, they've pointed out the 500 million figure is a conservative estimate, and is likely to be much higher: "... The true loss of animal life is likely to be much higher than 480 million. ..."
Yup! https://github.com/commaai/openpilot-tools/raw/master/steer....

If your car is in this list:

https://github.com/commaai/openpilot#supported-cars

then it definitely works and you can use these tools to control it https://github.com/commaai/openpilot-tools

If it's not in that list then the rough heuristic is whether or not your car has some sort of existing driver assist features e.g. Adaptive Cruise Control, Lane Centering, Forward Collision Warning, etc. There are some exceptions to that rule (I think Hyundai ships some cars that have full control of steering and gas even if you don't option out the ADAS features) but that's all case by case.

If you join the Comma Discord (https://discord.comma.ai/) there are manufacturer specific channels that can answer any questions you've got.
What he didn't show in the main article, only in subsequent code, is that std::unordered_map is way too slow to be useful.
With a proper fast map, he called it custom_map, it outperforms sort-unique until the data set exceeds the L3 cache size.
This is not fundamentally different than the previous generation of JS miners. The root cause is "people who's websites serve miners", not WASM per se.
One Hundred Definitions of Love
> tells outright lies for a living

I'm not going to defend Alex Jones here, but surely you realise that this metric includes many main stream, "respected" media organisations?
Iran Just Launched Missiles at 2 U.S. Bases in Iraq
When you can buy three units for the price of one, warranty doesn't really cut it. And it's easy to find competitors with a one year warranty. The latest one I'm using is earfun, with 30 hour battery life (longer than Airpods), wireless charging for the case, and 18 month warranty.

Apple charges an extra $40 for the wireless charging case - airpods are $159, Airpods with wireless charging case are $199. Earfun earbuds are right now less than $40 total on Amazon, sold by the brand, and are better than Apple's offer at 199 as far as I'm concerned.
I'm so sorry to hear this. If you ever need a non-judgemental stranger to talk, please feel free to message me (temp email robbrobsonnn@gmail.com) and I'll respond on my real one.

Things can always get better.
Imagine if they managed to corner the illegal knockoff market how much they’d make
You can easily ban drones but not cars.
> But how does this fix the problem that MCAS was supposed to be a band-aid over (That the plane is aerodynamically unstable during take-off, and pulling too much on the stick will cause the plane to easily stall)..?

MCAS is not even enabled during take-off, which makes it hard to see how it could be meant to address supposed stability problems during take-off. It can't come on until the flaps are retracted.
> He cited a case in which it took more than a year from the arrest of a suspect in a child exploitation case to obtaining data from his device.

They're starting out with the "think of the children" argument. Which means you know from the outset they are likely not being genuine in their pursuit of this.

> "...enact legislation to ensure lawful access for law enforcement, consistent with the traditional protections of privacy, to digital evidence of crime."

They can make the legislation all they want. The traditional protections of privacy cannot apply to the digital evidence of crime. The digital playing field is far more level than the physical playing field.

In the physical world, a lock acts as a deterrent, but not much more.

In the digital world, a lock doesn't generally act as a deterrent. You just throw more computing power at it until it breaks, or you find a simpler way to make it break. If you know a lock is vulnerable, because it has legislated to be, you have every incentive and no deterrent to find the weakness in that lock.

In the physical world, agents of another country are generally not a relevant concern.

In the digital world, any multinational platform has to be aware of multinational efforts to control discourse, including hacking of important and/or old accounts.

The digital world is much more akin to a group of embassies located side-by-side each other than the average person's home.
Found a video onn YouTube that demonstrate the system a little bit: https://www.youtube.com/watch?time_continue=361&v=GODp6q4Sac...

Pretty cool stuff.
and the vehicle itself
https://github.com/jellyfin/jellyfin-roku

Requires setting your Roku to dev mode and side loading. Didn't want to toss some half finished slop onto the app store. It's been in a semi idle state because it covers most of my use cases and I don't really know enough about other people's use cases to know what needs to be fixed or updated before people find it "acceptable". (I'm not a BrightScript dev, which gives a bit of extra imposter syndrome and makes me nervous to consider a thing shippable too).

BrightScript is awful, but if you can help develop it would be great (the server is in .NET but the Roku app is in Roku's BrightScript). If not, testing and feedback and prioritization of feature requests also helps a ton.
Not to mention once installed on a BSD it would most likely reside in /usr/bin/bash (OpenBSD for instance)
https://www.crimestatistics.vic.gov.au/sites/default/files/e...
Yeah except I knew many people in the industry who would cross reference mobygames when a resume came in and not all of our hires were with direct references.

Also this was a boxed retail title with no dlc so the credit list was pretty fixed.

I'm out of the industry now with no plans to ever return but the whole process just seemed pretty and spiteful. We worked just as hard during those 3 years as I did shipping other titles before that so I don't really buy that leaving early changes the title on which you worked as.
I wouldn't fully judge a position based on other people's motivations. It's more the difference between, do I want politician X to be brought up on charges because I take glee in him suffering and going to jail? Or do I want him to be brought up on charges because I have identified the actual moral/legal/ethical standards that I believe all politicians should subscribe to, and do I believe that failure to meet those standards is justification for prosecution (in all cases) in order to protect society?

Someone else might enjoy that politician's suffering if they are brought up on charges, but it's definitely not a necessary feeling if it's a just outcome.

So I wouldn't argue that "enjoying someone else's suffering" is sufficient to guarantee you're on the wrong side, but I would say that it's not necessary - and therefore, if any just outcome can be found without feeling satisfaction in the person's suffering, then we should individually seek to be free of enjoying the suffering of others. And encourage other people of that as well. It's simply not necessary. And I would argue that if enjoying the suffering of others becomes a larger part of your motivation, you are definitely more susceptible to be in favor of actions that are otherwise unsupported or wrong.

So, new heuristic - if the chief reason for visiting some justice on someone is because it would make them suffer, be suspicious and don't join in unless you can find an independent justification for that justice.
Thanks for this comment!

This excerpt caught my attention:

> I've been writing Elixir for like 5-6 years now and four of them professionally, and I hope I never go back to a non FP language (save Rust or mind-boggling pay)

Is there such a big market for Elixir these days? I thought it was very nichey yet.
My guitar is an Ibanez RG2570...EZQWEUIBLAKUSJBDA-something (I can't ever remember, great guitar btw) but does that matter? It's still a brilliant piece of (hand)craftsmanship.

If people want quality (or at least guarantee of quality in what they buy) they'll tend to whatever is better. N.B. "Better" can mean ease-of-use/experience too (Apple)
I have it disabled on my server. It’s just a drop down and I set it to “disabled” and that was that.