skysight-inc/HackerNews huggingface dataset:
> how does Kafka know when you've processed the messages it gave you?

By calling `poll()` again. It doesn't commit the records returned from poll until auto commit interval expires AND you call poll again.

At least this is what the javadoc says quite clearly: https://kafka.apache.org/39/javadoc/org/apache/kafka/clients...

Note: Using automatic offset commits can also give you "at-least-once" delivery, but the requirement is that you must consume all data returned from each call to poll(Duration) before any subsequent calls, or before closing the consumer.

E.g. the following commits every 10s - on each call to `poll`, it doesn't automagically commit every 5 s.

Properties props = new Properties();
props.setProperty("bootstrap.servers", "localhost:9092");
props.setProperty("group.id", "test");
props.setProperty("enable.auto.commit", "true");
props.setProperty("auto.commit.interval.ms", "5000");
props.setProperty("key.deserializer", "org.apache.kafka.common.serialization.StringDeserializer");
props.setProperty("value.deserializer", "org.apache.kafka.common.serialization.StringDeserializer");
KafkaConsumer<String, String> consumer = new KafkaConsumer<>(props);
consumer.subscribe(Arrays.asList("my-topic"));
while (true) {
ConsumerRecords<String, String> records = consumer.poll(Duration.ofMillis(100));
for (ConsumerRecord<String, String> record : records) {
System.out.printf("offset = %d, key = %s, value = %s%n", record.offset(), record.key(), record.value());
}
Thread.sleep(10_000);
}
Setting a good example by driving an EV, that is right, but what is the alternative for short and quick flights ? At the moment electric airfare is not yet developed so availability is not there.

Everything we manufacture is unsustainable, but some are more than unsustainable than others. EV manufacturing is preferable to ICE. We need to accept that if we want to keep humans on this planets and out of poverty and hunger we need to use our environment in our favor with some degree of unsustainability, there’s no way out of it.

The large car problem is only a problem in cities, and should be addressed there. Countries like Netherlands address it really well: bikes and pedestrians get the space they deserve and cars are isolated in their own infrastructure.
Oh no, not the racist jokes!

We cannot joke about serious things like society problems, economy, death, relationships and politics - this is serious business only!

(/s in case anyone is dense enough to not get it)
Evasive Zip Concatenation: Trojan Targets Windows Users
Show HN: Improve Your Life Continuously
Simple steps for life improvements.
No surprises here, it's just worth noting that yes, from a business perspective B2C is more complex at scale too.

Yet B2B has a higher and more complex entry barrier. Once you've overcame all that and is already billing your first clients, B2B is "easier" and your clients are much more stable and stay for longer
The usual answer that will be thrown around to justify this is that London has the oldest underground metro system, whether that’s relevant or not. It doesn’t seem very relevant when even the deepest stations in Prague (which are newer but much deeper than most of London) have later added 5G throughout tunnels with download speeds of ~200 Mbps between stations.

I suspect the UK just doesn’t have modern standards for mobile internet service, as it isn’t limited to TfL services in London.

There isn’t even reliable mobile coverage on stretches of the West Coast Main Line rail corridor in England, which is outdoors and connects the UK’s most populous cities.

Much of London isn’t particularly reliable either on most mobile networks, in my experience. Meanwhile, in cities like Prague or Washington I can often get mobile download speeds outdoors of 400 Mbps - 1-2 Gbps.
I know. So does VB. This is precisely my point.

GP complains that there is no direct function for "file exist". And technically there is not on Tcl either because file exists cmd will return true for directories. You can trivially build your proc that specifically checks for files (it will likely use isfile) but that is exactly the point of my comment. I have shown how do that for VB and it is not far from a one liner.

Presence/absence of a file exists function is a very poor example. If the language didn't allow you to check e.g. if a file was a directory or not, then GP might had have a point. But this is not the case.
not the person you asked, but the spotify deb repository used to contain a spotify-qt package that later became a transitional package to the current package
As your article clearly states the money mostly hasn't been spent and the delay in giving out the money is why most stuff hasn't happened yet.

If you can declare that a failure before most projects have a spade in the ground then this newly announced nuclear plan has already failed.
> ...but you can't run it locally. Not unless you're sitting on some monster metal.

I'm getting a very usable ~18 tok/s running it on 2x NVIDIA A4000 (32GB VRAM).

Both GPUs cost less than USD $1,400 on eBay.

qwen2.5-coder:32b is 19GB on ollama [1]

[1] https://ollama.com/library/qwen2.5-coder:32b
If your work is adjacent to industrial automation, check this community out.

Albeit admittedly slowly, something new is cooking in that field.
The original title is much better for most audiences.

It provides an immediate identification challenge and response in the reader’s mind: “Am I really bad at [X]?”

The edited title is in the language of committee reports. “Delivery” and “actionable” are formal and passive words, without an immediate connection to the reader.
Haven't we given up on our scale in the UK to match the US system?

i.e. the milliard was replaced with the US billion.
64GB of RAM is $2,000.

You can get a cheap external SSD.

But the RAM bandwidth is not in the same class. The 64GB would be a lot more useful than RAM on an AMD chip.
What Can I Do to Boost My Performance Rating in the Next Few Weeks?
Intels 12000-14000 chips were ironically only having problems when cooled well, because before the latest microcode they would ramp up the voltage too much with sufficient cooling. When run ragged at high temps they were reliable even before the updates.
Steve Jobs didnt schedule an all hands meeting to tell everyone about it.
In Australia they've started planning for the closure of gas grid connections to people's homes.

Since they were built with the idea of supplying gas for a few decades and will be obsolete before that planned date, they're started to raise the rates they charge to ensure it gets paid off in time. This then accelerates the pace of people moving off gas.
An Official Logo for CSS
Why does your reply feel like it was edited by an llm?

Still, feels like we are at risk of another AI winter soon, especially with such a huge bubble being built around it this time.

Here to hoping the US wont hit a recession bceause of it.
> Perhaps that generation of cpus was very insufficiently cooled? This is before people even really put much of a heat sink on a cpu.

The 286 came out in 1982 but it wasn't until ~2000 (with the release of the Pentium 4) that thermal throttling was introduced.

From ~1995-2000 if the CPU got over temperature, your PC just turned off immediately. And prior to ~1995 if you ran a CPU without a heatsink it could overheat and destroy itself. We just had to be careful not to do that :)
That is an unreasonable assumption, there isn't a secure way to issue everyone with a guaranteed unique prime. And even if there was, what is this system supposed to be doing? It doesn't secure anything and it doesn't enable any new knowledge that wasn't already available by just signing ballots with your name (which is a bad idea, so by comparison we might expect that this prime scheme is also a bad idea). Are you sure that is an interesting thread to pull? It doesn't look at all promising to me.
Just like the heart rate monitor, this was also moved into smartwatches for optimizing revenue from those who truly need it.
> Most products in a UK corner shop are of poor quality. I wouldn't touch their sandwiches with a bargepole.

Most of the stuff that UK corner shops sell are pre-packaged, so they'd be the same product that you'd buy elsewhere. Also, we've got several corner shops that sell "home-made" Indian foods such as samosas and bhajis that are often higher quality than the packaged ones you buy in supermarkets.

> The appropriate comparison to the UK is probably Greggs, and Greggs is still losing that battle.

Are they losing? I was under the impression that Greggs are still opening up new stores and doing quite well. (Not a customer myself as they don't cater for gluten free)
CPython Unreachable Code Easter Egg (Xkcd 2200)
why is the popular vote even measured (other than narrative construction)? it’s not a target, it is not optimized for, therefore it seems to me that it is meaningless: there is no possible relevant conclusion that can be derived from its analysis
We don't have tax free weekends in Australia but fresh produce is also exempt from GST (our version of VAT). Anything that has had any "processing" done on it incurs GST though, so oranges are tax free but orange juice is not.

Education and Health are also exempt from GST.
The latest X3D cpu was just released, as part of the 9000 series. Though it's probably out of stock because it's currently just about the best processor for cache heavy workloads, especially gaming.

The X3D chips have way larger caches so they punch well above their weight on many workloads that are traditionally cache bound. And with the 9000 series they figured out a better assembly method so they work even better than the 7000 or 5000 series ones.
Remember the Pentium 4/Netburst era? They bounced back pretty well from that with the Core CPUs.

Intel is still tons more successful than 99.9% of companies out there. Specifically, they're still doing a $54 billion/year revenue, making it the ~260th largest company in the US (by revenue). This entire "if you're not leading, then you're losing" type of winner-takes-all mindset is fairly silly.
I'm a bit perplexed about region handling, maybe you could shed some light on it. I have an iPhone from Canada, with a Canadian Apple account (Canadian CC/billing address, set location to Canada in App Store), but live in Spain for the last few years. I am still fully "Canadian" according to Apple. I don't get any of the 3rd party App Store stuff that's region locked to the EU, and have access to Apple Intelligence and other features not available in the EU.

I can't give the hearing aid feature a test because it's not available in either Canada or Spain, but I am wondering what the difference is (if any) between the hearing aid region lock and other geo-locked/geo-enabled features Apple has.
I worked for signalbox.io and they had this for the London Underground ~8 years ago. There was some impressive maths / approaches behind all of the "magic".
Wow, I'm wondering where I've seen this before.
In most countries I think you'd need to know someone with crypto who could use the cash and do a swap. The website localbitcoins that used to sort that is closed. Cambodia has cash to crypto dealers on the street if you are over that way.
I was being ironic. Israel enemies just don't destroy it because they are unable to. Israel is forced to do what they are doing.
Show HN: Building LLM Gameplay Mechanics with Guidance
I've written this article about how I'm using small LLMs and logit_bias to leverage the gameplay mechanics of my generative visual novels engine.

I also open sourced the guidance library as an npm package.
This is actually pretty good advice, me and the author think in a similar way.
I think it could be useful to show and take into account January 2025 as well. I'm planning my Christmas holidays including several days off in the beginning of Jan.
Oh no.... burn the witch! Obviously anyone who makes bad jokes must be cancelled!
Non-Euclidean Doom: what happens when pi is not equal to pi?
All people I know in the EU who build something use Lemonsqueezy, Gumroad or Paddle to invoice their customers. 3 companies not in the EU which are charging an arm and a leg to do the complicated invoicing for EU makers.

It's kind of strange, how the EU manages to not only put their companies at a disadvantage but also drive new business for non-EU companies.

Some of my EU friends even consider only offering their services to US customers, because with those, the invoicing is easy. It's called something like "3rd party country revenue" in the EU tax system and has no additional bureaucracy attached to it. While doing business with customers from within the EU is so complicated, that none of my EU friends understands it.
They need to make a browser with new features. That is the route to getting new search users.
Burberry Virtual Scarf Try-On
Are you not turning off entire circuits to reduce power draw when mobile? I’m actually thinking about one of these for my truck camper and its power draw seems fine, but the stumbling point for me is the additional power draw from the monitor it would require. I think I’m leaning toward an M4 MBP with nano textured screen for maximum power efficiency and ability to work outside when it’s nice, though I have not yet put much effort into researching efficient monitors
From experience, two companies can state using Scrum, while: 1/ having entirely different practices, 2/ that are not Scrum, 3/ being unable to come to a specific definition of Scrum that matches the initial one, 3/ not being agile at all.

So while there maybe sort of a convergence towards « something », it’s hard to bridge the gap between what people actually do, what they speak about and what experts point out.
same here, flight prices are through the roof on those days.

also on the plus side, lot of colleges takes leave in December. so, workloads on that time are also less. it's like a mini vacation if one WFH during that period.
Notably UK Cornershop offer a Brimful of Asha plain or with added Fatboy Slim.
So the best course of action to get back at the "evil west" was to attack a country that was neutral. Solid plan. Especially when you can't project your military power a few hundred km over your own border. Genius!
Build a strong foundation in Basic Electrical and Electronics Engineering with Magic Marks. This course covers essential topics like Ohm’s Law, AC and DC circuits, semiconductors, and power systems. Designed in simple language, it helps students easily understand core concepts through video lectures and practical examples. Start exploring at Magic Marks!
Apt Actors Embed Malware Within macOS Flutter Apps
Some of us do it so that our kids learn something important, regardless.
Great! And wonderful to see people building off the excellent work by all the people involved in bootstrappability from the Guix world (the GNU Mes people, I suppose, in particular).
I bought it back in 1998 and started using it right away... it truly felt like the future!
It's all too early to tell, but we'll know after a week or so. The battery life thing is not seeming like a big problem, since the existing device needs batteries changed every few days or charged every night.

As for the sound quality, a few of our grandparents have tried it, and while they say it sounds 'different', it's not necessarily bad. Grandma was actually quite content even with just the old EQ settings that shipped pre iOS 18 for folks with hearing issues.

Thanks for the kind words!
That's all phones ever, not current/popular models. When you restrict it to the last 10 years, you get about 12%, and of the 70 most popular models almost a quarter are equipped with a barometer.
> So much so that resolving the root cause isn't considered a priority and so we've had this running for months.

I mean, you probably know this, but sooner or later this attitude is going to come back to bite you. What happens when you need to do it every hour? Every ten minutes? Every 30 seconds?

This sort of solution is really only suitable for use as short-term life-support; unless you understand exactly what is happening (but for some reason have chosen not to fix it), it's very, very dangerous.
For processors it’s a bit different I believe. We care about cost, efficiency and raw power. If you are not leading in at least one dimension you are completely dead.

You are literally leaving money on the table if you pick a processor not leading one of these (or being very good at 2-3 of these).
WWI may be less cinematographic, but I think it had a larger effect: fascism and communism were both attractive because immediately after the "Great War", the "war to end all wars", people were eager to latch onto alternatives to the systems and political cultures that had gotten them into it (initially they were suspicious of monarchies; later even of capitalist republics; both communists and fascists thought liberal democracies would soon disappear, the former due to incompatibility with the future as revealed by "science" and "philosophy", the latter due to incompatibility with the past as revealed by "tradition" and "action").

I currently think in terms of a "small XX", running 1914-1991.

Originally I'd wondered where to put the 1990s, but seeing as how the Yugoslav Wars (misinformation-stoked fratricidal wars causing massive refugee influx to neighbouring countries) fit the XXI pattern, I'm willing to start it in 1991. (when it ends will not be my concern)

Lagniappe: https://en.wikipedia.org/wiki/The_lamps_are_going_out
Very cool site! I think it could be a nice idea to add a 'shuffle' option, if the suggested days don't suit you. Also to be able to select what days you work, as not everyone works mon - fri (;
Is that true though? I think a bit part of the algorithm evolution is to combat undesirable forms of SEO. I would rolling back the algorithm to some older generation would make the results quite spammy.
ASRock Rack GNRD8-2L2T Motherboard Review Intel Xeon 6 Single Socket
I've been automating deployment with the bpg Terraform module linked by a sibling (of mine) comment to Proxmox for work.

Neither option is particularly complete, and they have some issues; the bpg one does most of the heavy lifting over SSH rather than using the API due to missing features; it also has some annoying quirks with data structure, such as VM IPs are in multi-dimensional arrays, which means you have to write a bunch of logic to drop localhost and secondary IPs (such as those for Docker virtual networks), and then restructure the output, if you want to use the address to setup your DNS for example.

It's doing what I need now, but I would not call them "gold" or "platinum" grade, probably "silver".

I'd suggest seeing if Proxmox is better-supported in some other IaC tool and fallback to Terraform as a last resort.
Probably would work, however I suspect the changes would not be as sticky.

Apple has some slightly more complex checks that they have used in the past to georestrict stuff like ECG, by using MCC/MNC codes from your mobile network. I suspect that the alt stores would be region locked and stop working outside the EU—but that remains to be tested, and seems like a fun thing to experiment with.
> In my opinion, the Russians are quite tactically adaptive.

But they aren't. They just added Iranian drones to their arsenal.
> This is not true in C, where you can reference the shared memory after the lock is released.

technically yes but practically this is nearly always programmer bug to bypass a lock
Ports on the front are 100% the right decision though.

Thats the thing. You're right, he would've, but also he stopped a lot of good decisions from happening because it just wasn't to his taste.

So like, power button on the bottom isn't the end of the world.
I've recently bought two minisforum PCs on Amazon. I fully expected the SSD to be garbage and to throw them out. To my surprise, they were decent-ish Kingston TLC PCIE 4.0 SSDs. Definitely not the cheapest SSD on the market.
Same approach for me and I think I learnt it from using YNAB, I struggled a bit with the mental model at first but after it clicked it made a lot more sense to treat a credit card as a separate account.
Annual sales are a fraction of the hardware that's already out there. If you dig into the Steam HW surveys you will find positively ancient hardware still being used. Most people don't replace their systems more than one or twice a decade.

Iirc, the Nvidia 1000 series gpus were still the most common ones according to the stream survey even when the 4000 series was being released. And when Ryzen was first released, there was still a sizeable fraction of steam users on core2duo processors.
I haven't seen much hatred. As you said they are just subpar in every metric, except maybe idle power consumption. Power consumption under load though is far superior on AMDs x3d.
I guess if you look long enough, you'll always find some hate, for example Userbenchmark hates on all AMD CPUs for years and is very biased.
Their latest review says the AMD CPUs are bad, cause nobody needs that much performance.
What i am thinking right now is, what we can push the M4 Chip to the Maximum of its power? i've seen a lot of people using it for LLM, making cluster with ExoLab. It's amazing how its perform with such an efficiency.
Because “search” in 2024 is much more than a search engine. It takes billions of dollars of investment per year to build something competitive to Google head-on. OpenAI may have a shot with their chat.com

The only viable option when starting small is to grow in the cracks of Google with features that users really love that Google won’t provide.
Can human brain connectivity explain verbal working memory?
Why can humans acquire vast vocabularies, while non-human primates cannot? This study addresses this question using brain-constrained neural networks that realize between-species differences in cortical connectivity.
Asha Bhosie for the win!
I'm unsure what planet you're from with that comment.

A great deal of solar in Australia is urban rooftop, there's been a subsidized rollout, and solar farms here can co-exist with actual farms, eg:

Solar farm trial shows improved fleece on merino sheep grazed under panels

https://www.abc.net.au/news/rural/2022-05-30/solar-farm-graz...
5GHz has quite low penetrating power, so for the most part our issue was 2.4GHz.
I bough and sold a flat in Spain around 2004 and it was standard then for part of the payment to be in cash for tax avoidance purposes. This was all done officially through regular Spanish lawyers and estate agents.
Dead reckoning is... hard.

https://en.wikipedia.org/wiki/Dead_reckoning

The first car navigator, the Etak, came out in 1985 and used dead reckoning and quantization to tell where the car was on the map; see this excellent article from 2017:

https://www.fastcompany.com/3047828/who-needs-gps-the-forgot...

Today dead reckoning is used in aerial navigation, and commercial planes (and others) are equipped with Inertial Navigation systems to supplement GPS information; they are getting more and more precise but can still go wrong and need frequent re-calibration.

The next step is "Quantum Positioning System" that promises to detect infinitely small movements and produce perfect dead reckoning at all times, with a precision of the order of one centimeter. It has already been tested successfully. For now the machines are heavy and extremely expensive, but it's imaginable that in some not-so-distant future the technology will be much more available.

https://newatlas.com/aircraft/quantum-navigation-infleqtion-...
Prelude wants to fix SMS onboarding
Nevertheless the comment I was answering to was about renting a car instead of taking a cab or the public transport.
Beelink EQR6 has an internal PSU and is also quite small, a bit smaller in footprint actually. It even comes with two full-size m.2 slots and expandable RAM.

Mini is great, exceptionally so, I actually just got a rather souped-up one (that's the reason I'm in this thread) but x86 vendors are catching up and there's a certain possibility that more established brands will pick up.