skysight-inc/HackerNews huggingface dataset:
I first brute-forced the solve (on each line, find and rfind every digit, keep the smallest find and the largest rfind), that worked fine out of the box as that's not sensible to overlap.

I then figured I'd use aho-corasick because that was an opportunity to, and there's no kill like overkill.

I then proceeded to waste half an hour because I didn't read the documentation, so I didn't see that `find_iter` finds non-overlapping occurrences. I assumed it found overlapping occurrences since that's what the algorithm does out of the box.
> maybe you should also get comfortable with simply running the red lights on these quiet roads, since nothing is coming. At least in your case, you have a giant machine with airbags to protect you if you make a mistake.

I do not have a car. It is while walking that I am affected by the behaviour.
Heh, I also named some 20th century exploration examples. (eg. Charles Lindbergh's first Trans-Atlantic flight was only in 1927)

Current investment in space endeavors in eg. the USA is around 0.1% GDP. Even if you double it (or 10x it), that's not going to break the bank. If we take your optimistic estimate (profitable after a few decades) it might just be a risk that's worth it today, on a nation-scale.

(Edit: unfortunately I couldn't find good GDP figures for the 1600's , but taking investments in eg british and dutch east india companies vs a guesstimated GDP, I also got to around 0.1% +/- 1 OOM, which seems like a reasonable estimate of exploration costs as % GDP , and thus modern investment levels seem to be reasonably in line with that. )
Oh great, so they were advertised a product description and the fine print waived the entire product description and tossed out every verbal promise. In what universe is that anything other than intentional, bad faith deception? If somebody sold you a cereal box and then only gave you a empty box, would you also go: "Aw shucks, I guess the seller did not intend to deceive me, it was my fault for not reading the fine print."

It is absurd to protect statements that are "technically true, but substantially false" that have been carefully crafted and focus grouped to intentionally imply something other than what they know to be the truth. Anything less than statements which are "substantially true" that have been intentionally crafted to avoid incorrect interpretations should be, and colloquially is, viewed as fraud.

It is utterly ridiculous that the richest person in the world and the largest car company in the world are held to the moral standards of a monkey's paw.
What you are describing sounds like the usual backup strategies. Filesystem bugs that silently corrupt your data will also get synced and backed up.
in terms of usage, if I say "people should buy what they need and on top of that they should not spend (lest they find themselves spent)" you know exactly what i mean. Especially expensive items are spendy. Spend carries a connotation of waste and exhaustion. Save and invest your surplus, don't spend it, don't spend your savings.
I found it to be surprisingly good and I was very impressed with the in-browser performance. It is very very sensitive to resolution though. Once my images got down to a certain size they produced garbage from Tesseract even though they were very human readable.
Welcome to fucking software. I updated Mac OS X one time (or maybe it was just iTunes) and it deleted my home directory (remember that one)? I didn't open the mail promptly and missed the recall notice that my car's antilock brakes had a failure mode that was catastrophic in snow, and then I drove in the snow and then couldn't stop the car. I flew on this new model of Boeing jet a couple years ago, and it had a bug and crashed and I died.

OK, one of those is not true but this is how ALL software of any complexity is. I'm also old and ornery like the OP and I don't like it and if I get drunk I will talk hella shit about it but it's just a fact.

Software sucks. There was indeed a time when we (collectively) did a lot more to try to prove it worked before shipping it. But then:

a.) the money people realized it made money if it mostly worked, and made less money if we went all formal-proofy on it

b.) the software people realized that all the specs and architecture documents and fuzz testing and automated semantic analysis and literal actual voodoo dolls all did totally help, BUT...

(you know, they help ... BUT probably wouldn't have helped in this case, or lots of other cases...)

So this is just the way software is in almost every walk of life. ZFS is amazing, one of the most life-improving software technologies for me; up there with antibiotics, and UTF-8.

Yes, they had a pretty amazing bug, too. So yeah, "... at least for now, there's simply no way to reliably detect bit rot and other data integrity issues and be assured they can be remedied."

Which is just like it ALWAYS HAS BEEN and ALWAYS WILL BE.

But in the fullness of time, so far, ZFS has gotten us closer than anything else to that (impossible, unacheivable) ideal.
> We need people who are interested in the science, not those who (pretend to) do it for money.

In the US, the problem is mostly the opposite. Lots of people would rather do science, but it's hard to choose using your skills for real science when some company will pay you 2x-10x to instead optimize ad clicks on their website or algorithmic trading or whatever.

In some of the humanities, liberal arts, social sciences etc academia may pay better than other options for those people. But for most STEM folks, it's a tradeoff between "low-paid meaningful work" vs "high-paid meaningless work".

Medicine and AI research may be the only two areas where people can simultaneously do cutting edge research and make high salaries.
Dashboards to help simplify your day
But hey, it gave us http://www.dynamicdrive.com!
> Huh? What is a “white” instrument? They’re inanimate objects.

And inanimate objects can have common associations with racial identities.

> The banjo in its modern form is well understood to be an American instrument and it’s well understood that its roots were in an instrument Africans brought over. That’s American - a netting lot of things.

Giddens says as much immediately after the part you quoted.
Those are good questions! FWIW I think your comment comes off as quite combative ("the interview is weird, neurotic"; "[my position is] well understood"). That can set up a discussion to go down a less useful route. I think if you phrased your comments in a more open manner, you may get more interesting responses exploring perspectives other than your own. Just my two cents.
> offshore job is a remote job

While this is undoubtably true being in office won’t save you if you are in office in the US. I am full remote and for what my company pays me they could easily get 10 Indian engineers. If time zones are an issue then they could easily get 2-4 top tier Mexican developers instead. Go to Colombia and we are back to being able to afford 8-10 again.

The cost difference is large enough that if a company can effectively off shore then they will.
In a pedantic way you are correct, but obviously the article is only talking about the tearing down of Islam inside China.
> hoping that turning cars will see you and not mow you down. Pretty sure this is what is going to kill me

I saw an accident in front of my eyes where this played out - a turning car mowed an elderly couple crossing slowly with the help of walking sticks. It was not pretty.
Generally agree here. Just wanted to throw out another variant, additional tags and attributes can be added or modified by XML DTD files as well. The example XML could be just "<Foo />" with the additional values generated by a DTD file.
Not shocking at all. Seems like the current housing market neither a buyer nor a seller's market. No one wants to get rid of a 2-4% mortgage if they don't have to. No one wants to take out a loan at 7-8% if they don't have to. So here we are.
Far-right wing Catholic who wants to stop muslim immigration into Europe [1] here:

If you don't think islamophobia is real, and used to manipulate Western populations, you're delusional. The US is very scary right now and, in some circles, I only mention my wife's religious background with a dash of courage. It helps that we both obviously despise coastal liberals though.

1. Ironically married to a muslim European.
Anyone remember when "frontend applications" were actual applications and not web pages? I'm willing to bet we have reached that point where new devs literally do not remember that time.

There comes a time [..] where we [..] need to cache data from an API. It might start off benign – storing a previous page of data for that instant back button experience, implementing a bit of undo logic, or merging some state from different API requests.

The browser is annoying to control, so you're trying to make javascript jump through hoops to do what you want...

SQLSync is [..] designed to synchronize web application state between users, devices, and the edge.

So you want your stateless application to be stateful, to sync that state with some other state, so you can cache data easier, so you can make the browser pretend it's not a browser.

Can we not just admit the browser is a shitty client app? I get that like 50% of the software developers in the world have made the browser their literal livelihood and career, but jesus christ, we need to end this madness. Either make a full blown VM and just write normal client applications that run in it, or stop trying to make client applications out of javascript.

It's insane how much of the world's engineering effort and technology investment money has gone into putting lipstick on a pig. If we took all the money invested in browser ecosystems and put it towards spaceflight, we'd be living on Mars right now.
Well, and getting together for lunch, or a beer/mocktail after work. Virtual socialization feels so forced by comparison. And no-agenda meetings don't work either.

I sort of agree on the virtual whiteboarding (it's partly a surface area thing) but I think we've also discovered that colllaborative docs work fine for a lot of purposes.
Get good skills so everyone wants to hire you. No need to talk to anyone unless necessary.

My biggest regret is that I didn't have a good enough skill.

By skill I meant hard, technical skills which I think appeal more to you.
> whether the product or feature launches and how good it is, not by how many tickets you close

We're measured by both.
And even though I've not worked there in many years, I can tell you with extreme certainty that booking doesn't do that. They're also (hopefully obviously!) PCI compliant.
Ask HN: What was your path to program manager?
I'm a mid-career, non-technical worker (ops and PMM experience), and I continue to see interesting program manager roles at various companies.

I do not see many 'program manager' rotation roles or junior program manager roles out there, yet the qualifications for these roles at companies like Microsoft or Airbnb seem stout.

Curious for any program managers what led you into this area?
I would assume you can also use RegexSet from the regex crate, as it

> match(es) multiple, possibly overlapping, regexes in a single search.
Headline is a bit clickbaity-

It also needs an additional $30,000 to get promised price (triple motor originally announced at $69,900).
Link should be https://www.swpc.noaa.gov/news/g3-strong-geomagnetic-storm-o...
Yes at some point I've cross-referenced the board members of where I work to see where else they sit. It's obviously much harder to track their investments (unless it's insider buys/sells) but if they used to be C-suite or sit on the board of some company that's majority owned by a REIT, it's hard not to draw conclusions.

It's definitely a rabbit hole that goes deep and one runs the risk of ending up with a spiderweb of red threads on their wall :)
That sounds like another way of saying “guilty until proven innocent”.
It depends on if you are looking at the return type of the object, or what chars it is full of
That is just a question of experience. A junior engineer needs hand-holding and a senior one does not. They had the former, and needed the latter.
sure, there are inconsistencies, but with some global shortcuts in your muscle memory and a few years of using spotlight under your belt... OSX out of the box is fast and efficient as hell.

But I will relent and acknowledge that your arguments ring very true. How do I get my Messages window back if I accentally close it? Very good point.

The ribbon though? I think your memory is optimistic. It was in my memory ugly, clunky, slow and had some, but few system settings. But I must admit that in my heart OS 7.1 was the high water mark of usability and I resented all subsequent innovations... which it sounds like you might be able to empathize with.
In the context of the larger discussion about how to save the leaderboard in the face of rampant and cheap cheating options, my point was simply that maybe it didn't need to be saved in the first place. Heck, I can't imagine it's actually possible to save it while keeping the event running as it has been.

Obviously, there are many people who do enjoy the competition, especially if you're someone who is in the top 10 consistently. But to emphasize it again: arguably, the leaderboard is not as real as you think it is. It's not me who's advocating for taking your achievements from you, it's the state of technological progress that has already done that.
I used the front page for like 2 days before I realized it was the same content recycled between subs.
If I am not wrong, Google Pixel buds offer live translate feature.
Is there a good machine to buy in the $500-1000 range that is able to run some of this stuff?
tab is less keypresses after all
For people against the wealth redistribution as a concept (whether it's UBI, better welfare programs, increased minimum wage, etc), what do you think the end-game looks like for continued growth in wealth inequality?

The only answer I can see is that your customer base shrinks as fewer people are able to buy.

Or you get violent revolution as the poor are sick and tired of being priced out of even being able to afford housing and they decide they have nothing left to lose.
This is a issue, as if you need a work email and your workplace actively monitors email and sees a confirmation message of some sort from levels, they could assume you are hunting for a new job and act on it. This seems to defeat the purpose of levels
As every year, I stumbled upon the Advent of Code, but this year was a bit different as I found a way to solve the puzzle using our API client.
The other years I got demotivated very quickly as I had to create some I/O functions, copy the files, etc. So I came up with the idea to solve it using Kreya's scripting feature and it was a joy.
Created a blog post [1] as maybe other people feel the same way :)

[1] https://kreya.app/blog/solving-advent-of-code-with-kreya/
Yes, the "inverted pyramid" concept from journalism. Most important details up top, implementation details down below.

In our (Swift) codebase, this typically translates into "publicly-consumable interface up top, private and internal functions down below".
Phoenix requires a little more futzing around than Yabai, but I like it much better. I had tried Yabai and had to switch back to Phoenix because of all the problems stated here about Yabai.

It’s fewer bells and whistles out of the box, but it works well.
Well, not to put too fine a point on it, but every job _I've_ ever had ends up devolving into a 24/7 expectation without much in the way of appreciation. This seems to follow the person, not the company.
Maybe median is low? My total comp is high 2s, and where I work isn’t on the list.

My job is very easy and likely 36 hours a week. I’ve never once worked weekends or holidays, and the vacation time is better than European.

But when I started my total comp as waaaaaay lower. It took time for the money to stack.
Most solutions I see are just blobs of code, which makes me wonder what their process looks like.

I like to solve these kinds of problems in Lisp, which means I'm working in a REPL and dividing and conquering the problem to be able to test one piece of the solution at a time.

The result is that my code tends to be mainly independent functions that I finally string together to solve the problem.
Solving Advent of Code with Kreya
As every year, I stumbled upon the Advent of Code, but this year was a bit different as I found a way to solve the puzzle using our API client.
The other years I got demotivated very quickly as I had to create some I/O functions, copy the files, etc. So I came up with the idea to solve it using Kreya's scripting feature and it was a joy.
Created a blog post as maybe other people feel the same way :)
> knowledge about `isPrefixOf` or `startsWith` or whatever the equivalent function is called in your language of choice.

There's no guarantee the digits are the first or last, so it's more `find` and `rfind`, unless you try every subslice of the line by hand.

Although thinking about it assuming the lines are not too long I guess that also works.
>replacement-strategy

Oh so THAT is what is causing people problems.
Nice catch! That was indeed something we found about a decade ago when I worked there. I don't recall what the security folks tried to do about it.

Generally, though, more and more hotels shifted from faxes to API integrations via channel managers. But that's a whole extra step in sophistication.
You lent Tesla $100 just for the lulz?
> Filesystem bugs that silently corrupt your data will also get synced and backed up

This is a very easy problem to solve: don't do incremental backups. Or have N backups and rotate, which isn't as good but still gives you more time to notice. Hard drives are cheap.
Good call, added some more details.
Inkscape 1.3.2 solves data loss bug
The coding process. I've been experimenting with fine tuning methods where I freeze various layers or use different loss functions for attention vs feed forward. It's random little things like the names of layers that trip me up. For example the attribute that holds the name of the activation function in mistral is called hidden_act where in llama it's called activation_function.
Sure, but with the situation in Ukraine rapidly deteriorating and likely heading into a push for a ceasefire - if not officially, then at least effectively over the winter - it would make for another ideal proxy war location in the “war of pawns”.

Both Russia and the US would greatly prefer to keep this at a Kabinettskriege level instead of escalating to full blown Volkskriege WW3.
What's shocking as someone who is well know to rant about the inevitability of capital accumulation, and the acceleration of that process once wealth captures governance—something that happened many many decades ago in the US—is that this would surprise anyone.

For the 1%, or if you prefer, for those classes which have seized and all but exclusively retain control over not just wealth but power, this is of course "bug not feature."

The social ills and crises of contemporary democracy are entirely, directly, obviously even, traceable to the consequences of this tendancy and its execution.

Lest anyone in the 1% (or, more likely for the readership here, the precariate 10%) take solace in being in the narrow pool of "winners" of this system,

we are now experiencing the all but inevitable dis-equilibrium resulting from the fact that this accumulation has no check, no retarding feedback.

The end state is single-state autocratic kleptocracy,

troubled be deep and permanent social unrest and all but ubiquitious disaffectation and dis-ease and hence violence, mostly incorrectly targeted at fellow victims of the system.

This is a hell-state and hell-scape we do not deserve.

Yet here we are.

Billionaires and their corporate proxies should be ALIGNED.
they are saying that you can literally install the OS start to finish it (and configure it for sightless use to boot) without being able to see at all. As in blind. This was part of the point they were making about accesibility features and UI consistency in MacOS.
We are pretty much there already. The average person in a developed Western country is pretty much a billionaire when compared to the living conditions of even the wealthiest people in ancient history. It's only the impulse of greed and envy towards others that leads us to believe otherwise.
I am sorry Dave, "merde" is not in the pre-approved word list
> game

Yes! Better yet, you're a spy, or a hostage negotiator, or the leader of any kind of enterprise (army, business, aid organization) ...

Programming games like that will resemble directing improv theater. You can't program every response; you'll have to instead fit each character with beliefs and motivations.

I can hardly wait.
Yes. I successfully set up for my Mom, an Echo device with Alexa, it responds to her commands, it makes and receives calls through Skype, it plays Audible books, Podcasts, and a bunch of Alexa skills. Also, it can access nfb.org with timely access to many newspapers and magazines across the United States.
> And naturally, this needs to be funded by taxes on the very wealthy.

This is the part where the math never works out.

If you look at the richest people, they have something like tens to low hundreds of billions of dollars. Which is less than the amount of money the federal government already spends every week. If you taxed the top 100 billionaires at a rate of 100%, it would fund the existing federal government (and no new programs) for about a year, and then there would be nothing left for next year.

The funding for programs like that never comes from the "very wealthy" because there just aren't enough of them for that. It comes from the upper-middle class. Which is fine, but let's not delude ourselves that we can get there by only taxing Bill Gates and not your local cardiologist.

Except that they already pay kind of high taxes. These are the people who make six figures but don't have a personal full-time tax accountant to engage in international tax avoidance shenanigans. They're how the state and federal governments in the US together spend around 50% of US GDP.

So the problem isn't that we don't have enough tax revenue -- holy crap does the government have a large budget -- the problem is what we're spending it on. We should be spending less on the military and means-tested assistance programs and instead use the money for a UBI.
There’s something neat and vaguely sci-fi in the fact that we all just call them ASML machines.

Like we’re in a book and the author needs a technobabble device that is made by just one organization, but incongruously powers entire industries that are foundational to the whole economy, but obviously coming up with an actual description of the device is a bit beyond the ability of the author. So they just call it “the companyname machine” and let the reader come up with details. “Oh it uses mirrors and lenses and concentrates light in a special way that nobody can replicate.” Reality is a hack author.
> Modern life for middle class or poor class people is a lot better than the vast majority of history

I 100% agree with you.

I'm upper middle class and I live better than any king or any robber baron ever lived up until the early 20th century.

Better dental care, better surgical operations (which saved my life when I was 18 or so btw and which save my daughter the day she turned 7 years old btw), better car, better soundsystem, better clothes, etc.

We also know a more lot about what's healthy and what is not. Personal hygiene, including of those you have intimate relation with...

> Like seriously, would you desire to go back in time to 1890?

No. Not as a king. Not as the richest man on earth.