skysight-inc/HackerNews huggingface dataset:
I'm not that deep into type annotations in Python, but I'm not a fan of type-only structures, or mixing concrete with type aliases. That is, `list[T]` is a concrete list, but `Optional[T]` is either a plain T or a plain None. There is no class called Optional.
And if you don't have a phone?
Kagi is not convenient in the sense of browser search engine awareness. They do plug-in type thing. Needs work from the browsers for better integration.
Yes, we can't simply equate pattern matching with consciousness, otherwise we have to say that ChatGPT is conscious.
My employer has a 40% WFH tolerance policy and asked us (team leads) to relay the information and control office presence.

As team lead, I decided to relay this message differently. I instructed my team to do as they wish and come when they want, and to do so with three things in mind:

1. If they are not coming to the office because something is inadequate, they let me know and I will do my best to fix it.
2. Those who are younger than 35 should consider the long-term effects of staying at home and not interacting with peers on their professional career.

They trusted me on item 1 and asked for a few things to change. Almost everything was in relation with hardware (better monitors, proper docking stations, good keyboards and mice, and in two cases, new laptops), one asked to clean the toilets more frequently and make some air freshener available, another asked for a water heating option to make tea and make some tea available (it was indeed unfair with the coffee drinkers who have a state-of-the-art coffee machine), they asked for a larger trash bin and a third lamp in the open space (team of 6). That's all I can remember.

Regarding item 2, I don't know how they processed it but all I can say is that the team's WFH ratio is 24% for the last three months.

Overall, I think it is all about creating a working environment people actually enjoy coming to. When I hear about employees who feel conflicted or reluctant to come to the office, I am genuinely convinced it is because one of the following:

1) They are in conflict with a colleague or their manager is an ass.ole.
2) Someone is making their life at the office unnecessarily painful or more difficult than it should (and it is most likely something related to a hardware purchase or shared commons).
3) There is a tangible constraint on coming to the office that makes their life difficult above a certain threshold (e.g., cost of transportation too elevated, medical/health/healthcare condition or issue at stake, etc.).
4) It's a wrong hire, and she/he should be laid off.

As a team lead, if I see someone being reluctant to come to the office, I see it as my duty to identify which of the above is at cause and to do my best to resolve it.
That was added in https://github.com/VictoriaMetrics/VictoriaMetrics/issues/14... I did it before this, when replication between clusters was not available (it was in Enterprise if I remember correctly).
Value proposition. What are you going to do, _not_ walk around with a phone in your pocket?
If the waiter prioritized the spoon request, you could start eating a lot sooner.
Shiny is great because R is great.
Brave aims to curb practice of websites that port scan visitors
Because Base32 is just bit shifting and then converting the 5 bits into a char, and vice versa. Doing Base31 requires base conversion.
FWIW there is an example of building a tokenizer/scanner using documented features of the re module here:
https://docs.python.org/3.11/library/re.html#writing-a-token...

re.Scanner looks more succinct though...!
In other pizza related news Rightwingers say ‘pink-haired liberals’ are killing New York pizza

https://www.theguardian.com/food/2023/jun/28/rightwingers-sa...
Apple's privacy focus might have driven them to imagine a market for private clouds. Run your company's custom AI on one or two of these monster towers and never need cloud AI again.

(I confess I don't know enough about cloud tech or AI to know how far off the mark I am; I'm just weaving threads out of reading headlines)
There is a somewhat malicious compliance way of avoiding this, and that's to write the proof of concept in an obscure language or using some other set of tools that makes it impossible to pick up as-is by the rest of the team. The downside is that it also adds an additional cost to you when building it.
> and EVs are typically nearly twice as heavy as ICE vehicles.

A 3-series BMW clocks in at 1700-2255 kg. A comparable Tesla Model Y clocks in at 1778-2003 kg (from empty to fully loaded).
Honestly, if I could buy and provision my Apple Watch with cellular without having to have an iPhone, my only devices would be my MacBook and my Apple Watch.

I seldom carry a phone around with me, and my Apple Watch does every thing I need while outside the house.
> What's Kagi doing differently to be able to succeed?

Define success? It outperforms every other search engine in terms of quality of results and at least from what I understand, they're not too far off from breaking even on their salaries.

Neeva was a VC funded abomination and it showed, they even had deals with "big brand" companies like LastPass to offer bundles, but their core product sucked. Neeva search results were often worse than Google. That's not the case with Kagi.
I could show you 20 functions in stdlib itself and popular libraries that return an error but don't mention under what circumstances. They have an internal error type that is a catchall and this isn't exactly an upgrade over exceptions.
You don't need to fine tune GPT4 for it. A tiny in comparison model trained specifically on chords would do much better for creativity and the explanations could be generated without any AI.
It seems that's not allowed currently, if I'm reading it right. I'm not sure I like `-` very much. The reason why I don't like it is because of how double-click to select and line breaking works for the dash. Maybe allowing `_` in the typename, and the have the rightmost `_` serve as the separator might be more consistent.

But also, I'm bike-shedding and its only an ID
My first Kagi search was so rich with results it was a throwback to a different era.
Apple Is Testing Its Autonomous-Vehicle Tech at Chrysler's Old Proving Ground
Yup, Google Maps automatically marks the location of your parked car... Until once in a blue moon it doesn't. This happened to me just yesterday. Thankfully, Apple Maps marked it automatically, too
In fairness I would be completely not surprised to find out it's on the same hardware as the day it launched, and probably hosts a pile of other static sites besides.
That is indeed why w is named "double u" in English (and "double v" in French. And why it's a vowel in Welsh.

See more from jan Misali: https://www.youtube.com/watch?v=sg2j7mZ9-2Y
Yes you remember correctly
If only technical competence could be measured in a single dimensional, objective contest like running.
I don't think "earn" is the right word here.
I travel 8-10 times a year to conferences and meet clients (not a huge amount but still considerable) and my advice:
1. MBP is god-like for travelling, definitely heavy but feels like a PC and comfortable to use anywhere.
2. Ipad Pro with magic keyboard for working on airplane, taxi, coffeeshop with no comfortable table etc... (although you can't code you can complete other administrative tasks) or communicate with the team.
3. I have a bag that fits 5 chargers, my Kindle, Ipad and MBP with a place for passports and documents. I use it and take it everywhere, very easy to load and unload.

Finally, crazy advice, but try working from bed or lying down on a couch, your back will say thank you
Update: Nohooks Backend is now open source [0]. The goal is to collectively improve the polling system as well as generate more useful event types/payloads.

It was written in Rails :D

[0] https://github.com/frain-dev/nohooks-backend
I think it's a physics thing. You can either have good health sensors, or a good-looking slim watch.

I'm surprised Apple Watch crammed so many sensors and still doesn't look half bad (I still don't like it :) )
> Of course, one advantage Python has over Rust in this case is being able to give fields default values.

https://doc.rust-lang.org/std/default/trait.Default.html
Kagi has been around since 2018. They're privately bootstrapped (not by a VC firm). 670K is not the only money that's gone into the business. 670K is how a bootstrapped company responsibly raises money.
I realise you posted this as a joke, but the first time I saw this, I was so confused. I thought the comment was starting with "I anal" before I read the rest of the post only to compute it means "I Am Not A Lawyer"
And maybe also a trickle-down/tracer bullet for on-shoring?

If the world goes further mad and US-Chinese relations sour, and/or if the institutional racism of globalisation is finally dismantled, such that manufacturing costs a similar amount the world over, Apple already have a functioning PoC for US assembly.
That's more of a cultural thing. Because Python is easy to get into, and you can be productive very fast, a lot of people with little experience in programming start to build things that are out of their reach.

They just don't know it, and the people hiring them don't either.

It's not a new phenomenon, we got the same when Java arrived, then PHP, etc.

Every time something makes things easier, you get a wave of beginners set to create things they are not qualified to do. And because you now need software for everything, leaders also get into positions where are not qualify to make some decisions about it. You pair unqualified leaders with unqualified devs, and you get this.

And it's now easier than ever to be in this position, also you are more pressured than ever to get into this position.

I've worked on plenty of big Python systems myself, it's not the tech per se (it has the usual pros and cons game like every language), but Python is the language used "when you don't know programming".

Which is ironic, because when I started to use it in Python 2.4, only passionate devs used it because it was niche, and we had the opposite effect.
I won't be doing it anytime soon (working on an MVP at the moment, in between gigs).

But, if you send me your email (lelanthran at gmail dort com), I'll put it into my notes so that when I have something to demonstrate you'll be the first to see it :-)
I think you're reading this as arrogance, which isn't an inefficient assumption around here, but I view it more from the responsibility lens. We're the ones who know about this stuff, and we need to do more to spread that knowledge, and to take control of our destiny as to what we'll build.
Yes, I meant the DLL/.so file. The library is almost always present in the OS, the CLI is not.
> This is why I advocate for a gross vehicle weight rating and vehicle miles traveled tax

The problem is, while that works out on highways and other federally owned road, the distribution on state or county/city level is almost impossible. Say you have a trucking company doing regional service and one doing interstate transport - both their fleets will have similar driven miles because economically, companies want their many-hundred-thousand-dollar assets to be on the road as long as traffic safety laws allow. Now, assuming they both pay the same mile tax to the state... the state makes an insane profit on the interstate trucking company given that only a low percentage of the miles driven were happening on that state's roads, with the clear majority being on federal highways and other states' roads.
GitHub Copilot as the perfect wingman for occasional programming sessions
Tell HN: Yahoo Mail deletes all emails due to inactivity
A few days back, I logged into my 2 year old Yahoo Mail account, which I hadn't opened in the last 1.5 years.

Today, my account was "reactivated" and I was greeted by the following email:

> Dear USER,

> We’re so glad to see you’re back! Due to inactivity, your mailbox entered an inactive state. This means we stopped accepting your incoming emails. If your period of inactivity was long enough, we also deleted all of your emails. Now that you’ve signed back in, your mailbox has been reactivated and you will start receiving new emails again shortly. For more information, please visit the Yahoo Mail policy page at: https://en-global.help.yahoo.com/kb/mail/SLN2018.html

Rest of my inbox was empty and I've lost some important emails (I only used this email for some legal matters 2 years ago).

A word of caution to all, set up a reminder to logon to your dormant email addresses every few weeks.
Well we can build a startup that offer cheaper health/life insurance based on phone data tracking and see how people would react.
Just use revanced or libretube, who uses stock YouTube app!?
I got a new Android phone two weeks ago, Google's default messaging app has turned into such a mess that I've replaced it with one from F-Droid already - and I'm liable to do the same with Photos.

I think this will have precisely zero impact on "custom ROM fans".
> where time-to-market and profitability always trump code quality

What actually happens is more like :

"deliver as fast a possible, no matter what"

...

"The poc was delivered in a week, why are new features so slow? And can you explain what this refactoring item adds to the bottom line?"
You can do MADI and Dante over thunderbolt or ethernet, and with the amount of compute UAD DSP days are definitely numbered (as shown by UA themselves now offering native). I don't see audio as a driver, given what I can do as a composer/producer on my laptop (m1pro)
I feel AW is underrated as an everyday tool, especially when it comes to being mindful about contemporary attention sinks.

You can do almost anything from it that doesn't require a larger screen or a keyboard, and the kinds of activities the larger screen enables tend to mostly just waste your time. Take a typical 2007 "dumb" phone - the watch screen is roughly that size.

It becomes awkward when you need to find something on the web (you can't even access the browser directly, you need to ask Siri and work with a popup), but I was mildly successful following a recipe when cooking. It's plain better than a phone at many other common tasks (following directions, checking the weather, paying for stuff, telling time, etc).

The biggest impact it had is that I no longer feel compelled to reach for my phone in most situations. It's not just that it saves 5-10 seconds here and there: the context switch is brief enough that I can remain focused on whatever I was doing.

(inb4 just turn off notifications, yes I am already very picky about what is allowed to distract me.)
Fair point. If things like EVs transition from the environmentally bad practices into sustainable ones then my point will be moot.

If you are to make a better world you have to build it out of the flawed one, right?
I looked at the video a bit more closely, and it seems he requires the symmetry around 0 (he doesn't explicitly do range reduction to positive values), so you want only odd-numbered coefficients. If so, you can do a formula of the type x * (c + x*x*(b + x*x*a)) (aka: ax⁵ + bx³ + cx; this is essentially the same as his formula with c=1 and prescaling x by a constant), which Sollya readily gives for single precision:

> fpminimax(sin(x*2*Pi/65536.0),[|x,x^3,x^5|],[|SG...|],[0;16384]);
Warning: For at least 2 of the constants displayed in decimal, rounding has happened.
x * (9.58634263952262699604034423828125e-5 + x^2 * (-1.46252571143166976153082714517950080335140228271484e-13 + x^2 * 6.1585575698811928868593794069233315902067715796875e-23))

This has a maximum error of 0.000108 over that range. This is pretty close to optimal, but you can squeeze it ever so slightly lower (just below 0.0001) if you're willing to spend a lot of CPU time. :-)
Apple’s sync plugin works well on Windows and Chrome in my experience. I would guess Firefox should have the same experience.
It's not $670 million, it's: They've raised a bunch of money!

Now let's go and blow that money in Vegas.

/s
Here come the drones!
7 billion+ actually, and our investment level mentioned here: https://news.ycombinator.com/item?id=36517505
Nice. I should use a similar id with ULID.

Although, if stored in a DB, I would probably split the tag and the id in 2 separate columns, because DBMS often have a dedicated efficient UUID field type.

A little client code wrapper can make that transparent.
In Firefox, go to about:performance

That will tell you which tabs are problematic. For me it was a bit surprising, LinkedIn for some reason eats a bunch of CPU. Or maybe not so surprising, heh.

Then just unload the tab in tree style tab and check it when you need instead of having it always open.
Is there any specific reason for this take?
My friend Tom Connolly who wrote the first editor for Kaleidoscope (before Mac OS X came out, you could style your own buttons etc) used it, and that's how I found out.

https://www.akamaidesign.com/studio/

UPDATE: his web design and hosting service was very advanced for its time!

https://www.akamaidesign.com/
D’oh had no idea.
Dang, this deserves a black stripe.
Have a look at transform-when[1]. It might suit your needs.
Demo can be seen here[2].

[1] https://github.com/callumacrae/transform-when

[2] https://web.archive.org/web/20171203224250/https://samknows....
Thr job market, and for that matter the internet quality, in most of those Nova Scotian locations is not going to support anything except the kindest full-remote position. Those houses are for sale at that rate because they were too bad to get swept up in the wave of transplants the province has been seeing basically since the pandemic started.

My family purchased a home in the province in 2007 for less than 100k. We had to repair the foundation and roof of our house multiple times, and the previous owner used seven layers of wallpaper instead of installing insulation. Cheap homes have their own problems, and two pensions was the only reason we could afford to fix it.
I’ve been waiting for this for years. If it’s possible to stick health tracking features into a ring, it should certainly be possible to fit them into a watch strap.

I’m imagining a standard-looking watch strap with a small display that would sit just below the face of whichever analog watch it was attached to. It could have a thin bridge joining the two sides of the strap together, running underneath the watch - this isn’t a problem when wearing (for example) a NATO-style strap.
Use of Large Language Models in Submissions to Journal of Clinical Oncology
{:ok, x} | {:err, y} is my favorite pattern. You can make sure that the caller handles both cases, the ok case and the error case. What you put in y is up to you. If you have dependencies you can decide the bubble up error or return something that you want. We have a bigger system in Elixir and it was trivial to write the correct implementation for exponential backoff to interact with the outside word (calling lots of external services that sometimes time out). With Python this is not as trivial because Guido hates pattern matching and you have catch exceptions and do if else a lot. With Elixir I see immediately while developing if I left out a case. With Python I see it in production when we crashed.
[Author of the original article here]

> So, we are going to pay for RHEL for one server to run IDM.

With a free developer account you can run up to 16 copies of RHEL, with up to 8 cores each, in production, without paying.
This is a very biased sample. Everyone who is still using Mac despite Apple giving NVIDIA the boot obviously isn't doing work where peak performance computing really matters - because that's just not a thing on Mac. Apple will never get there with their "big unified architecture" that's really a scaled up mobile chip, especially in terms of GPU.

Apple really has three options here:

- ignore that segment of the market

- create their own GPU AIBs and a software platform to make them attractive

- invite NVIDIA back onto the platform

Of these, the first one seems the most likely. The last one would be the most expedient, but conflicts with Apple policies against having a working solution that makes someone else look better than them.
Show HN: My friend's web design and hosting service since 1995
They explained their reasoning on HN before. The number refers to the average user of online search in general, not the average Kagi user (who tends to be more technical and uses search more).
Recently I ask ChatGPT to do that. I become the one to improve it.
Tip: to avoid confusion i recommend using the term FOSS (Free & Open Source Software) instead of OS, as OS is essentially always understood as Operating System.
For what it's worth, I recall the CSS sprite technique being referred to as image mapping too.

Sure, it's different from the <map> element (which is officially an image map, as you say).

But it's effectively mapping out the sections of a large image that you care about and then using CSS to display parts of it
I believe low to medium quality algorithmically-generated content is easily identifiable with large language models. Consequently, spammers may find themselves needing to leverage LLMs to produce text that appears high in quality. This implies that the content generated could either be of substantial quality or well-disguised gibberish.

Therefore, some form of reputation system remains necessary, like those used for scientific publications. I predict websites that provide a trusted reputation system will have a lot to gain in the future. Github stars, upvotes, retweets, citation count, or just good moderation - they will be essential in solving the spam/hallucination problem.
euthanasy when one stops on being selfsufficient is the last gift to your own family, insteads of sqaundering hundreds of grands to keep the heartbeat going.
Outside of the fact that this is a paper on finding them rather than interpreting them, a few key points.

> Celestial navigation or regional defence seems like the minimum probable reason.

The blog post says "or astronomical significance" which seems to cover the first part.

I'm really not sure what regional defence you get from:

> With this approach, we identified four new geoglyphs in the northern area of the Nasca Pampa, namely: a humanoid, a pair of legs, a fish, and a bird

and they're dug down just a few inches.

> There are probably short cuts where sentries could see an advancing group following the lines

If your regional defence rests on trusting enemies to walk around in small circles following a shallow line dug in the shape of a monkey, you are likely to have a bad time.

> These seem more plausible than "religious purposes," which tendentiously sets up religion as magical thinking, and the people who built these structures as irrational.

It's probably worth seeing what scholars actually say about this, there are some links on the wiki pages, as they'll have thought a lot more about it than you or I. But I'd not be surprised by some belief system leading people to create what largely seems to be art.

> One doesn't have to think it's aliens to consider the necessary economics of building these things. You need to feed, water and house all the people doing it, their families can't be far, and those resources have to come from somewhere and someone has to collect and move them. Just a threat of force seems improbable, given the basic economics of that as well.

They're shallow lines, not huge towering structures. From the wiki page on the lines:

> With careful planning and simple technologies, Nickell proved that a small team of people could recreate even the largest figures within days, without any aerial assistance