skysight-inc/HackerNews huggingface dataset:
> Isn't this actually one of the benefits of capitalism ?

Is it a benefit if that efficiency turns your industrialized economy into a financialized economy that can't manufacture enough bullets to fight a war that you start?
Linux for me. Mac is way too expensive especially if you want lots of RAM which you need for most AI purposes. Windows is an ad-ridden spyware fest these days and you don't have control over updates and reboots. So both Mac and Windows are non-starters for me. I played a bit with things on windows but I'd never use it for something serious. Microsoft invests a lot into their AI tooling now but I don't want to be beholden to them. I have to deal with them at work but I don't trust them.

I built a Linux server for AI LLM inference with a Radeon Pro card and it was really good value for money. It took some doing to get it working especially with the lesser AMD compatibility but I saved a ton of money not buying Nvidia and it performs excellently now.

Windows probably would have been easier to set up but I consider every configuration problem a learning experience and my freedom is worth more than my time.

The reason the Mac is so popular is that it's the only way to get a GPU with direct access to tons of memory (up to 192GB) and it's cheaper than Nvidia dedicated AI options. But both have astronomical costs not justifiable to a hobbyist like me.
They don’t have to, everything can be done by CLI if you’re feeling particularly nerdy
I’m a Mac user of 10 years now and the total amount of times I’ve had to wipe and start fresh is exactly zero. So while you’re right about macOS taking some time to set up, it also doesn’t really matter [to me at least].
Sounds like a problem with the tests being administered. There is a lot of woo around LLMs, a lot of people have a vested interest in hyping and selling AI; heck, even referring to LLMs as AI is a form of branding.
There are lots of Android apps that don't need the cloud. This can run those.
What always nagged at me about the one-file-per-message approach is what happens when you accumulate many messages, perhaps by being on high-volume mailing lists, or never throwing anything away, or both. In particular:

How much space is wasted due to partially filled filesystem blocks? This is less important with today's workstation drives than it was 30 years ago, but perhaps still relevant on a single-board computer with limited flash storage, for example.

How does performance suffer from scanning a directory with millions of files, or if they're spread across multiple directories, from traversing the directories? Even if the delivery and user agents handle it well, what about the command line tools that would make one-file-per-message appealing? What if it's a network filesystem?

Filesystems can be chosen and tuned for their expected contents, of course, as usenet admins once did for news spools. But most users won't maintain a special filesystem just for email; they will expect it to work well on the same fs that they use for everything else.

With those considerations in mind, I can understand the appeal of multiple messages per file, whether it's a database or just plain old mbox format with a nearby index.

Neither approach seems strictly better than the other.
I had a power button fail on an S21, only a few places were willing to quote and the cost to replace was over £300, more than the phone was worth. I now use the always on screen, so I can unlock without the power button, hopefully prolonging it's life!
Yeah I have to agree with this. MacOS is unusable on a big screen without Rectangle, it’s silly
Every computing task that was previously the domain of humans, even simple arithmetic back when that was astonishingly rare for a machine, could be described as intelligence if you want to anthropomorphize it or as something less if you don't.
Safari makes for a smoother experience between iPhone and mac I guess
I wanted to see how consistent this may be in practice on mobile iOS, focusing only on elements that are "tap" only.

- most elements are ON RELEASE

- except the phone number entry or passcode entry, these are ON PRESS

- but the "backspace" button is ON RELEASE

I'm guessing because there are so many other interactive options on iOS (touch hold, hold drag, 3d press, swipe) this proposed paradigm is less likely to have much impact.
I’m concerned that you’ll soon run out of otherwise reputable phone manufacturers.

I sport an iPhone, but sometimes I think it’s a shame Microsoft so deeply lost focus on and then abandoned mobile.
Ask HN: How do you handle LICENSE notices in published Docker images?
Hey all :)

I was put off releasing a pre-built docker image for an open source project, mainly due to mess of licenses that is Docker.

I finally decided to do it by doing the following (for a Python-based application):

* Create a LICENSE.third-party file, containing information about where to find LICENSES for the installed third-party applications (https://github.com/MatthewJohn/terrareg/blob/main/LICENSE.third-party)

* Use pip-licenses to generate per-package license files for each of the installed pip packages (https://github.com/MatthewJohn/terrareg/blob/main/Dockerfile#L77)

* Copied all 'doc' license files from deb packages to common directory (https://github.com/MatthewJohn/terrareg/blob/main/Dockerfile#L80C1-L80C173)

* Manually copy licenses for tooling that is installed in the Docker build (https://github.com/MatthewJohn/terrareg/blob/main/Dockerfile#L82)

I'm wondering if anyone else has tackled this and/or seen it done anywhere else?

How have others implemented anything similar?

Thanks! :)
I guess they need to buy some batteries …
On Collecting Results in Temporary Variables -

His 'more idiomatic' code is both harder to read (arguably) and harder to debug. In his "bad" example, it is very easy to set a breakpoint at each important step of the function, or insert logging, or whatever. The enumerable approach yields fewer lines but it's really difficult to stop the code and examine where something went wrong. Not to mention it's a bunch of symbol soup gobbledygook that takes a lot more specific Ruby knowledge to decipher.

Personally I'm all for temp vars. When I have to come back to the code in 18 months or whatever I will thank myself for making it so easy on me.
Show HN: img2icns – Convert images to .icns for free
Hey HN!

As a new developer, I struggled to find a website online that would convert images to actual .icns files, especially when I needed an icon for my macOS app. This frustration led me to create img2icns.

Thanks for taking the time to view my project, and let me know if you have feedback!

-Walter
Clay is just releasing too. Cool times for foundational Earth models
Unless you are an aquatic mammal specifically designed to live in saltwater, that seems mostly irrelevant.
I have no doubt about this.

My wife was in the hospital because she’d essentially stressed herself to the point of a heart arrhythmia. The irregular rhythm meant the equipment was basically useless at accurately determining her heart rate and the readings fluctuated wildly.

So what did she do for several hours? Laid in a bed anxious about the medical concerns, anxious about life, and listened to the monitoring equipment go off multiple times a minute as she crossed various alert thresholds, went back under them, crossed them again, repeat the entire time she was there.

I asked the staff to turn the alarms off or at least adjust the thresholds.

They just short of flat out said they wouldn’t because if they disabled or adjusted them and anything happened it would be on their head.

So my wife spent half a day being told to try and relax while the machine monitoring her heart and respiration and blood pressure constantly screamed at her that everything was wrong.
To be fair...that would keep the cheese on the pizza!
Any recommendations regarding pen plotter - both targeting beginners as well as something to grow into.
Funny that you say that. In my personal experience, the degree of support is one of the reasons to switch. Like any large vendor, it takes almost more time to convince them that it there is a problem, then it would take to fix it, if you have the technical skills in house. (That was enough for Google to switch to their own switches).

Haven't worked yet with IBM, but if they are of equal level, then I'd rather avoid them.

But since you say IBM, they have IBM Cloud Manager, and through Redhat also an Openstack offer, and with Openshift a K8S offer. Various vendors offer either or both.

There are also companies which operate internal cloud providers for other companies.
Various public cloud providers offer you to operate your datacenter with their API in-hose.

Yes, it comes with their hardware, but guess what, in three years chances are half of your hardware is deprecated and has been replaced anyway.

Yes, all that requires effort. Considerable effort. But it is a one-time effort (i.e. fixed costs) compared to a X-fold increase of licensing costs. So, you look at the ROI, consider the risk of having that degree of exposure, and guess what...

To reiterate: It doesn't have to be all in one go, it doesn't mean it has to be all of it. Maybe some of your payload will always stay on vmware, but thinking you can ask the big companies for 20x the license costs, and expect 20x the revenue is rather odd.

You may guess, where I know that from.
Which will push getting storage capacity online.
Please don't cross into personal attack! We're trying to avoid that here.

It's standard practice on HN to merge a thread into a recent one when the story is the same. Users like gnabgib are making a helpful contribution when they do this. Most readers prefer not having split discussions.
Read the article. Robert Roberson has not been executed yet.
The Ukrainians made their own decision to fight.

They knew perfectly well it would involve massive death and possibly years of fighting. But they know their long history with their "brotherly" neighbors to the north, and hence, that even these costs would be preferable to perpetual subjugation.

If you can't recognize this fact -- if you think they're just passive puppets who do whatever the US tells them to; or that they aren't capable of evaluating the costs and risks and making a decision to side with their families and their future -- then not only have you not been following the chain of events since the start of the invasion (in which the US basically told them capitulate, after all); you really have no understanding of how human beings work when their families and communities are threatened.

Best defence is a good offence. They're flailing under strategic pressure from the US.

Nobody pressured them to do anything. Russia's actions are all offense, full stop.
Most people I know who have small solar panel installs plan to buy batteries this year. The offers for batteries dropped in price significantly.
> You’re writing with an authoritative tone.

Bad habit, sorry. I'm probably a lot more humble and open to being wrong than I seem, promise.

What I'm trying to say is that in most circumstances, with several notable exceptions, the body will self regulate these things perfectly fine, and most people in most cases don't have to actively "stay hydrated". Exceptions apply. Drinking ±6 liters throughout a work day sounds a lot to me, but I am in no way qualified to judge, authoritative tone or not :)

I do not know how big the margins are. What I do know is that two of my friends have needed medical attention (routine stuff) for urinary tract issues due to prolonged excessive water consumption, because they were trying to "stay hydrated". There's also been several medical professionals, i.e. doctors and researchers, warning about "stay hydrated" campaigns run by bottled water companies in my country. I don't know if it's as big a thing in other countries.

English is my third language, so sorry if the things I write are unclear.
Looks like this is essentially an Android tablet. Not quite mainline Linux but lots of software options.
> A4 e-ink has considerable audience that doesn't know they need it

They know it very well. There's been a void for an affordable eInk device for this purpose for decades.
Releasing Windows 11, Version 24H2 to the Release Preview Channel
I loved this, especially because when I read comments that start with "It's math time", usually they go on to show how some "nice in theory" idea would never scale, but that's the complete opposite in this case!

Also, another thing that's good about these types of energy intensive industrial operations is they can essentially act as a sort of battery - it's a large load on the grid but (I'm guessing, someone correct me if I'm wrong) could potentially be more flexible with respect to time shifting: if it's a bright sunny day, crank up the furnaces to full speed, but if it's cloudy, back off. That helps make solar installations more economical if there is a good chance something will be there to take up extra power.
Comments moved to https://news.ycombinator.com/item?id=40448074.
If all cars in Germany would be EV, Germany could store 2 days of electric energy usage.
I have a remarkable and a boox; I only use the boox in the end because it’s Android and I can actually do things on it…
I've been using LineageOS for years, and recently got a Motorola G 5G 2024 as a temporary phone while I addressed some issues with my main phone. I was blown away by the amount of custom bloatware on the thing. It nagged me at least 30 times about various features it wanted to introduce me to. If that's "near stock", then I'm staying away.
It's the Crypto problem again. Just ignore them. At some point their stupid technology will run out of money and they'll go away.
I had a traumatic experience with homebrew in the early days where it killed my system to the point where I had to do a fresh OS install. Also I find their beer-making jargon annoying.
Sorry, yes, you are right.

However, that was before the Sino-Vietnamese war. So the point about their last war being almost half a century ago still stands.
Space Quest 4 was one of the only times in my childhood that I found a legit error in a game. There is one part in the space mall with the ice rink where you can go into an arcade. You get a quest to do something, but if you then try to click on one of the arcade cabinets it will cause the game to throw an error.

I remember it because I actually called Sierra to tell them about it. The person on the other end even fired up the game and verified it, then told me vaguely that the solution to the puzzle was something else. I'm guessing the tech support weren't allowed to give hints because they had a paid tip line.
People often find exercise easier to modify than diet, or even for exercise to make following a healthy diet easier. The process of building muscle can create a caloric deficit.
Float32 is also a discrete representation.
Both can be true at same time. You need power also during night. And that will not come from solar. You really want to support at least that demand from non-carbon sources...
A little off topic, but for anyone who hasn't seen this live performance of Step Right Up, I highly recommend it:
https://youtube.com/watch?v=ByomIJf5n9w&si
What are you doing that requires you use iCloud in lieu of FOSS/self hosted options?

For photos, check out PhotoSync. It supports a one time purchase and is phenomenal for its use case. Fairly powerful; not something to use without reviewing every single setting first.
Had AT&T not gotten greedy and lawsuit BSD, all the major UNIXes would be around happily taking whatever they felt like from BSD, and Linux would have stayed Linus hobby project.

You see it on FOSS OSes for IoT and embedded devices, none of them is GPL based, rather Apache or MIT.
Germany needs to use coal, the government fears being replaced by a far right movement, which has strong roots in the coal areas of East Germany - politicians feels that closing coal production would be the tipping point for a far right and far left coalition to get into government.

It's always about the jobs.

The challenge on top is the replacement of coal after the exit from nuclear power. The anti-nuclear stance of many people and politicians in (West-)Germany is from the 1970s and the 1980s, especially when PershingII missles were installed in Germany. People of many other countries had no contact with nuclear weapons, stored somewhere in the wilderness. In Germany a nuclear missle facility was near to many people (I grew up next to a PershingII depot). Chernobyl didn't start the anti-nuclear stance but later accelerated it. So decades later Germany got out of nuclear energy.

Which now poses the problem of getting out of coal.
ah the joys of tar...the one time I got the input and output args confused and I lost a lot of data woops
Ironically Rubocops style guide recommends against chaining the safe navigation operator.
They are transformers, that are just as good at transforming English into German as they are at turning "halp a bad man noked me dn an ran away, how do i su him" into a coherent legal suggestion (which, for this example, should be ~ "Call the police (and if necessary an ambulance), then get an actual lawyer").

When it comes to complex step-by-step reasoning, sure, they're stupid; when it comes to linguistic comprehension, are better at this than the average human — and GPT-4 beats the average law students taking at least one bar exam.
1. Verbosity

The recommended fix here is…needlessly verbose. Better would be:

actor =
case response
when 1
"Groucho"
when 2
"Chico"
when 3
"Harpo"
else "Zeppo"
end

or even:

actors = {1=>"Groucho", 2=>"Chico", 3=>"Harpo"}
actors.default = "Zeppo"
actor = actors[response]

2. Safe navigation operator

Yes, use this for sure, this is good.

3. "Unnecessary" use of self

Use of self to refer to instance methods (the text here refers to "model attributes", but that's just a particular use of instance methods) is appropriate and often desirable, because failure to do so as the example demonstrates earlier can result in bugs if the code is ever changed to introduce a local variable of the same names as the instance method. Now, sure, generally I'd prefer to avoid doing that, and in a very short method (especially a one-line defining what is essentially a getter for a derived trait), sure, don't bother, its cleaner and easier to comprehend without additional noise and no one is going to change it to add a local variable without seeing the other use and fixing it. But, in general, self is clear and safer.

4. Collecting results in temp vars

Yes, avoid this by knowing and using the methods on Enumerable that are designed for this, as they clearly and concisely express what you want to do.

But also, remember the first rule about Verbosity, so avoid stuttering and superfluous parens.

h.transform_values {_1 &. *2}
Unless there is only one folder in the archive, and it's not overwriting anything, then it should be extracted into the current directory so you don't get nested dupes
> Some countries will fair better than others, so perhaps move to a country that maintains cordial relationships with both China and the US.

I moved to Singapore a while ago. Not for those reasons, but being on good terms with almost anyone certainly is a nice bonus.

Though my question was rather, what policies would a country want to adopt?

> Manufacturing technology is has improved in leaps and bounds. It's much easier that it used to be. And I can do all this from a self sufficient homestead deep in the forest.

Yes, but that's essentially just a hobby or at most craft production. So that is neither competitive as mass production in peace time, nor of much use for mass production in wartime.

(It definitely sounds like a great hobby, though!)
> In fact, I believe iOS uses hardlinks for this, as it is possible to save a 40GB video on a device with 64GB storage instantly - while logged out of iCloud and without an Internet connection.

How is this an indication of hardlinks being used?
I’ve experienced excessive garbage production, but also excessive verbosity, even when it’s giving helpful responses. “Here’s the code I just wrote in the previous message!”
Home depot left south america in 2001. I think you may be hallucinating persecution.

https://vmsd.com/home-depot-leaves-south-america/
At the end of the day it's just a VC's view. This doesn't count for much.

You two can easily tell him no thanks and move on.
What would you have them say? Dress it up in flowery language? Grovel? It is plain spoken, and appears to be correct.
Shrink that we see writes one for 30 days at a time, but he write 3 of them.
I'm really excited about this device for B2B.

No glare, but with a backlight and excellent battery life make this a great option for Engineering. The only thing that's missing here is a rear camera. Fingers crossed this is considered in the future!
If you can make it bigger for use as a regular monitor, I'd pay good money for it.
> The Vinson-Trammell Act limited profits on government contracts to just 12% (later reduced to 8%)

What the actual _hell_ happened to this idea?
OnePlus used to be the king for custom roms, then they just completely abandoned allowing them. Even if the community was small, I really do think the halo effect of the power users attracted to their brand was more important than they gave credit to it, which is why I think they are not doing so well anymore.
because we really love discussing this stuff!
> At least now when I turn a 'feature' off it stats off since the os doesn't update and erase my settings every week.

Which iOS settings were being reset? I've had an iPhone for over 10 years and nothing really pops out to me as being re-enabled iOS release over release.
If only they hadn’t recently defunded battery tech research they could’ve developed it themselves
Can anyone explain to me why it is not possible for LLMs to output the reference material together with the answer?

In my ideal world, an AI assistant for professional situations would rather sound like an ideal HN answer which cites the reference, like “According to the law 12346-67, you are not allowed to add glue to food. But a researcher named John Doe in Arizona conducted an experiment with non-toxic glues with success. 67% of its participants didn’t die.” 3 sentences, 3 facts.

Is it a feature that LLMs are keeping for future enterprise versions of their models, or is it entirely impossible?
> Why though?

I suppose because you want to have more ships to store your nuclear armed planes in more places around the world. Speed.

Honestly (and unfortunately) if anyone actually did destroy a US aircraft carrier, the counter strike would be immediate and an order of magnitude more devastating.
> Okay but this way it's hard not to treat it as if you did in fact post nonsense.

All the more reason for me to stop engaging, isn't it?

The gist of it was that nuclear power is insufficient in and of itself because it is hard to regulate output to match grid requirements, and therefore that we need both nuclear and renewable energy sources, not just one or the other. Maybe I'm wrong, maybe I'm not, I'm out of here either way.
Undo is a good standard for nearly all actions in nearly all software.

(The main exception I can think of being games were not having an undo can often be integral to the experience. Eg Counterstrike should definitely shoot on press, and not allow you to undo bullets.)
Hardly, forged titanium bulkheads, dramatically improved engines, and composites. And before that, aluminum fuselages, improved aerodynamics, etc.

Hell, compare the F111 vs the F22 on every available metric.

Just like flops/gram has dramatically improved over time for computers.
> Thanks to a low barrier to entry, the average developer now is much lower quality than the average 20 years ago.

I think this is a big reason why we have lots of poorly performing JavaScript based software.