skysight-inc/HackerNews huggingface dataset:
PDF: https://arxiv.org/pdf/2205.09415.pdf

"...Even though Apache Kafka provides some out of the box optimizations, it does not strictly define how each topic shall be efficiently distributed into partitions. The well-formulated fine-tuning that is needed in order to improve an Apache Kafka cluster performance is still an open research problem.

In this paper, we first model the Apache Kafka topic partitioning process for a given topic. Then, given the set of brokers, constraints and application requirements on throughput, OS load, replication latency and unavailability, we formulate the optimization problem of finding how many partitions are needed and show that it is computationally intractable, being an integer program.

Furthermore, we propose two simple, yet efficient heuristics to solve the problem: the first tries to minimize and the second to maximize the number of brokers used in the cluster.

Finally, we evaluate its performance via large-scale simulations, considering as benchmarks some Apache Kafka cluster configuration recommendations provided by Microsoft and Confluent. We demonstrate that, unlike the recommendations, the proposed heuristics respect the hard constraints on replication latency and perform better w.r.t. unavailability time and OS load, using the system resources in a more prudent way..."
The best software is developed by people who have deep knowledge about the use case and/or the ultimate customer. What proportion of PMs at health software companies have worked in a hospital? I'd wager it's vanishingly small.
>> teaching techniques reliant upon students challenging authority might not be the best idea for all students.

That depends. Do you just want to teach the material? For some people the cultural thing is so strong they won't ask questions because it may imply that you're a bad teacher and offend you. You have to at least address it that much or you're not going to be able to teach the material effectively.
I think they are suggesting that this OF creator could just be making this story up
The article says the driver on a freeway, and had set Autopilot 20 minutes prior to the crash. Obviously there would've been a speed zone before the traffic light intersection, but presumably the speed limit was 65+ at the time the driver set Autopilot.

Is it understandable for you to set your traditional cruise control at 75mph and not expect things to change for 20+ minutes? I don't think so — I wouldn't trust CC to keep me on the road for more than 2 minutes without my direct guidance. Is it understandable that you might trust Autopilot to handle the road for 2o minutes, because you were confused or misled by Autopilot's capabilities? That feels like a substantively different question.
It is somewhat notable that rg and fd differ significantly in that rg is almost perfect superset of grep in terms of features (some might be behind different flags etc), but fd explicitly has narrower featureset than find.
Once American families get access to European formula, they will demand similar levels of quality from American producers, or parallel import from Europe directly.

American manufacturers will need to do better than releasing junk products, which will impact profit margins.

50% of infant formula in the USA is purchased by the US Government and distributed to welfare recipients. Industry and Government are aligned in ensuring formula is as cheap as possible.
The world itself doesn't have room for men because one person was rude to you once and you're a man?
Although I didn't read the article, from my personal experience, weightlifting during the week helps me focus, and in a way that cardio does not. In weeks in which I lift 2-3 days, at the moderate level that I do (say 45 min of using free weights and body weight lifts at a medium pace, nothing extreme), I'm much less fidgety than weeks where I'm not able to lift, but my brain is still sharp.

This is in contrast to biking or rowing at a moderate pace (pusing myself and getting pretty sweaty but not collapsing or wanting to barf) for an hour once or twice a week. If I do this, I am still less fidgety but I feel more mentally fatigued later on the day, and sometimes the morning after, I exercise. I attribute this to nutrition/glucose levels and hydration, but even drinking a ton of water and snacking won't fully ameliorate the issues. The same thing happens after a weekend of playing hard, like kayaking one day and hiking with my daughter in my backpack the next day. I'm often pretty unproductive on Monday (oh well... ;)

What works best for me is moderate weight lifting followed by like 30 min of moderate rowing or biking, twice during the work week. Although I might feel a bit more depleted after rowing than not, my overall energy level is higher than if I skip the cardio, and I recover more quickly from my weekend activities.
one size doesn’t fit all is the takeaway of almost every post here.
Falsey 0 in JavaScript is a big source of problems and is often linted against (forcing explicit checks, which then make code a bit uglier, but at least you won't get bitten by the case where 0 gets treated like null instead of a number)

Count yourself lucky

Edit: Thinking about it, this is probably a frame-shift from static to dynamic languages, because in the latter any value can be nil/null at any time. Whereas in C, C++, and even Java etc, unboxed numbers are always numbers. So coming from those you may not be used to thinking about the case where you have a nullable number and mean to check for null and accidentally also check for 0. But in dynamic languages like Clojure, it's a common situation to have a nullable number.
What? How? It's the exact same day & time as the 5-day/8-hour that's been standard for decades. But you get more free time to play with your kids, drive them to school, bring them to BJJ, cook for them.

Wednesday is "no communication day" so you could break the 10 hours up and it won't affect anyone.
For those who are going through the thread finding new tools: pandas-profiling[0] is a library for automatic EDA (which bamboolib[1], mentioned elsewhere, also does).

[0]: https://github.com/pandas-profiling/pandas-profiling
[1]: https://bamboolib.com/
Everyone is different if I lead and required to be at my job 9-5 and I worked more of an engineering schedule I would do something like 20 hours days to try and maximize the days off you have.

Would the work days suck? yes. But in my opinion working 8 hours a day already makes the rest of the day useless. I think in the end a schedule where you work to get it out of the way and then enjoy the time off would feel like I am taking more time off than I am working. I know every industry couldn't do this, but for some it's possible. If you get do it by pay month you could work 4 on the front and 4 on the back and get 21-ish days off for 8 days of work.
Update on the development status of Remotely, a remote control solution
The 'examples' obviously don't fit HN at all and beside you, nobody has mentioned racial or ethnic slurs nor made any argument the word should be treated here in some way that's different from the way it's widely interpreted. That seems more reach-y and redefin-y than simply asking people not to be trope-wielding jerks on HN.
Spain braces for heatwave of ‘extraordinary intensity’
IMO, art may have those characteristics - good art will often obviously have >1 of those.

Art in its most basic form is anything that engages you beyond a strictly functional level.
NASA Mars Metaverse: $70k offer as prize for the best design to train astronauts
> Maps will always lag reality; I don’t think that it’s reasonable to expect Tesla maps to have perfect accuracy.

That's why you don't rely on maps as your only input to a feature such as this. Also, is there any information on how long this situation was in the way posted because I can't imagine that they built a city overnight at the end of that transition, it looks like a situation that had existed for many years prior to the accident.
fasmg: https://flatassembler.net/ it is written in x86_64 assembly (namely bootstrapping is sane not like gcc/clang/etc). x86/x86_64 intel syntax. It is actually the most powerful macro processor I know of, then be careful not to lose yourself in there and not to forget to write assembly. It has experimental support for other ISAs like arm (maybe risc-v in the future). The best way to see it, is as a macro language specification which targets writting assembler languages, with a x86/x86_64 reference implementation.

nasm: x86/x86_64 intel syntax used by ffmpeg. Main issue: its SDK is horrible with disgusting code generators and so on. It has also a powerfull macro processor, then carefull not to abuse it.

gas: from GNU binutils, tons of ISAs, but for x86/x86_64 you should switch it from its default, AT&T syntax, to intel syntax.

If some definitions have to be shared with C, I would recommend to combine their usage with a C preprocessor (gas is made to be friendly to a C pre-processor).
Whatever is currently going wrong the most...and I hate it.

When I don't have something to focus on, I usually dwell on whatever problems I'm aware of that are the most emotionally troubling. That's often challenges I face as a business owner, relational conflict with someone I care about, ways I'd like to improve myself or change but can't/won't, etc.

This results in a significant toll on my mental and emotional faculties/health. Simply resting, bring at peace, doesn't seem possible. I chalk this up to my analytical mindset, which helps me greatly in my development efforts, being unable to disengage despite knowing full well there is nothing I can do to change most of it. That and/or being prone to anxiety. Not sure it even matters why, it's clearly baked into my "wiring" somewhere.

Due to this dynamic, I almost always prefer to have something to engage with. Programming, phone (usually here or news), TV, cards with family, books, etc. I don't like that I compulsively reach for my phone now and have to "escape" to these distractions, but as I've weighed the pros and cons, this seems better than the alternative of incessantly dwelling on the negatives.
What tools? Cockpit?
Why do you think this is the company breaking the law? It does what the driver tells it to do, the driver is fully in control of the speed it goes.

I can't speak to what trucks do, but those are commercial vehicles, and have very different performance characteristics from cars.
Ok, so, then, how do you address

> a major problem was that we could not find academics who would argue for Leave.
Employees*
There was more than one hookup involved as part of her intelligence gathering process. I'm impressed, she'd make a great spy.
Reminds me of the "Arabian Nights Entertainments" tale of the slave that was a hard worker and honest – but for one day a year when he would lie. "Not bad," thought the slaveholder and bought him on the spot. Hilarity ensues.
so what happens to the bitfinex gang? giancarlo, ardoino, "frog", CZ, Justin Sun and Marc Andreesen?
I was thinking:

1) School (transportation to and from, parent home to see kid off to the bus and be there when it gets back, at least)

2) Child care (10-hour days, which are more like 11 when you factor in travel, would be... very expensive, if you could get anyone to do it)

3) Any scheduled after-school/after-normal-workday kids' activities whatsoever.
> First: Its not free, its subsidized by the state.

„The state“ doesn’t have its „own money“. It is subsided by the taxpayer.
Should everyone just have to take a high-end defensive driving course? Sure. Why not? I can afford it. You can't? What a pity.

But honestly I think demands to make a driver's license harder to get largely miss the point. From my own experience, time on the road makes far more difference than training or harder tests. As does, general maturity and attitude which isn't going to be taught by a class.
Also, news outlets shifted from journalism to infotainment and propaganda in an effort to stay relevant in the Internet age. They succeeded, but now few news outlets seem trustworthy enough to pay for them, and we certainly can't subscribe to all of them to form our own opinion.
Consumer gps doesn't always know which road one is on and could trivially decide to use an adjacent street with a wildly different speed.

It's also sometimes unclear about where transitions happen.

It also never accounts for actual speed of travel diverging substantially because citizens including Police have collectively decided that a different speed is more reasonable.

Basically such a system would probably be completely useless enough to ruin all cruise control.
It has been claimed that the summon feature works on some completely different old tech stack than autopilot.
One of the few times a thin client with a virtual desktop (like Citrix and such) is actually useful, as you can keep working after moving.
I'm Czech. When I lived in Amsterdam, my sister came to visit by Flixbus. She's used to all kinds of travel, but boy was she destroyed by that journey...
And objects can't commit crimes
i love the foundation and hope they do not lose anything
It just doesn't happen that often anymore that I need to ssh into a system.

And my own systems have automatically synced dotfiles, making it mostly a non issue. (I'm using Syncthing for that)

When writing scripts I usually fallback to traditional shells/commands for compatibilty. Unless I'm really sure I will be the only user.
... there's WebGL
See also RETRO, a type of retrieval transformer: [0], [1], [2]

[0] - https://www.deepmind.com/publications/improving-language-mod...

[1] - https://jalammar.github.io/illustrated-retrieval-transformer...

[2] - https://arsham.substack.com/p/retrieval-transformers-for-med...
External memory with pretrained models (or more generally, external not-necessarily-differentiable memory) is one of the most exciting areas of ML right now. It opens up models to external things like facts and databases.
If you're staying in an apartment, is it possible to install a charger in your car park?
That's why we dropped it. It just got to be too expensive. Yes you got access to their support knowledge base, which was sometimes helpful but if you did a little work you could almost always find the answers elsewhere.

The main thing I liked about RHEL was its stability. Not a lot of churn, and for running any other vended software, support for RHEL was never a question.

Converted everything to CentOS. When Red Hat killed that distro, that was a bridge-burning event. We use Ubuntu now.
If it’s negative press for FANG, it’s always true. That’s the HN way.
‘Different from the US’: why Japan does not worry about inflation
Another plug for linking... I loved Taskpaper and would be very interested in adopting Bike, but I need those sweet links/backlinks
You may be surprised to know that this is actually something people have thought about; turns out you would need extremely low utilization of the train, plus a very long journey at each end by car, plus one of the more inefficient train routes, for it to lose to the car or the plane. High speed trains are generally the least efficient in CO2/passenger km, so if you’re looking to put this together then I would recommend France’s excellent analysis of their carbon output on their routes.

As one example, the Paris-Geneva TGV Lyria is 3.5 kg co2e per person per trip on an average utilization train. [0] Driving is 149 kg co2e per vehicle; average occupancy is 1.12 to 1.6 people per car but let’s be generous to your idea and say we have a full average Swiss family of 2.3 people along for the ride. So driving is 64.7 kg co2e per person. It’s a 5.5 hour drive, so let’s be very favorable to the car again and say they have a 1 hour taxi ride at each destination. You’re now at a total of 23.2kg taxi + 3.5kg train = 26.7kg total, or half that of driving; as you can see even a 10x capacity reduction in the train would still make the train more efficient. It’s remarkably hard to beat a train with anything other than a bus, and you’ll need a fairly efficient bus and a fairly inefficient train for that.

[0] https://www.tgv-lyria.com/sites/default/files/inline-files/t...
Phenylpiracetam and Aniracetam have been the best nootropics for me. They offer mild stimulation while also being somewhat anxiolytic and mood boosting.

Most of the other ones I've tried seem to do nothing but eat into my wallet.

I mostly see effective nootropics as a set of very mild stimulants that give some of the benefits without the drawbacks of their stronger cousins.

There's also a lot of placebo going on in nootropic communities. Just about every week in the nootropics subreddit somebody is posting about how something they started taking 3 days ago has changed their life.
Whoa I think I have a similar issue. Been seeing the doctor multiple times, trying to get tested for various things. They keep telling me I'm "healthy" though. It's frustrating. Hope your tests give you some clarity!
Epic.

This one gets me every time:

Personal Mastery: If a system is to serve the creative spirit, it must be entirely comprehensible to a single individual.

That combined with instant feedback can make you feel like a rockstar coder.

And Smalltalk delivers.
How I switched to Flutter and lost 10 kilos
AutoAnimate  – Add motion to web apps with a single line of code
Speed limits in the United States are generally set such that, unless there is heavy traffic, nearly everyone is speeding. Using that as a pretext for charges is generally questionable.

(He was going 75 on a freeway; the freeway suddenly became a surface street, which is bad design, regardless of whether he should have been paying more attention.)
I remember an interesting HIV campaign that went something like

UVL=0VL

It made me think.

(undetectable viral load = zero viral load)

Perhaps this vaccine will not cure HIV once and for all just yet, but maybe it can work as an alternative to PrEP by keeping the viral load down?
Programmer Stereotypes [video]
Archive.is URL: https://archive.is/mixjl
All this comes from a common place.

The people buying the software and adding the policies are NOT the same people who use the software or enforce the policies.

I saw this at HP. As a new hire, I had like 20 different meetings talking about the various policies of the company you had to follow. After I started working, I found my team pretty openly and blatantly violated almost all those policies because they were unworkable and we had a job to do.

Things like "shadow it" were openly mocked because hp had an absolute worthless situation (they outsourced their IT management... yeah.. really terrible decision for what you'd call a tech company). The IT requests I did make were basically ignored. Anything short of a password reset request went nowhere.
> traffic-calming measures

like a stop light?
constantly rotate the plunger and maybe have some impeller flanges on it.

this whole resevior assembly, with heaters and vibration etc can be kept separate from the nozzle with a "hot bowden tube"; that'll have to be short but we can reduce the precision moving mass ... maybe the tube can be longer if its warmed or have re-circulation or something.
I think we're overextending the point a little, and apologies if my point did not get across well.

What I wanted to illustrate was that those kind of speeds, in heavy vehicles, in cities, on surface streets, are negligent - spiritually. The sheer amount of damage that can be inflicted, in the blink of an eye, by a moment of inattention, is beyond measure (literally, that 67k number looks goofy, unreal, but it's cold hard physics). Our traffic laws are wrong, our streets are wrong. We don't tolerate that anywhere else. On a factory floor with dangerous machinery there are higher standards of safety than our public realm. This news article is the perfect illustration. Good chance the driver fell asleep, or was distracted in some way (totally normal human traits, btw, and does not make somebody a bad person). Yet the lawyer claims, that at 75mph in a 5000 pound car, this is basically just worth a speeding ticket. That's an enormous disconnect. That delta between responsibility and accountability is totally totally out of wack for drivers. An enormous amount of responsivblity (67k kg*m/s worth of it), and very little accountability ($100 speeding ticket).

And yes, at slow speeds, there's just a lot more slack in the system. The driver of a 5mph tractor trailer has a lot of time to react, so does every one around them, stopping distances are exponentially lower etc... It doesn't change the fact that it will level a house, and so we should have extremely high standards.
How is it without consent? It's an optional feature disabled by default.
> Also, personally, after 6 months of iOS I am itching to get back to Android. Why? The notification system SUCKS on iOS compared to Android. It’s impossible to move files between apps. Hard to get any work done on it. Beautiful hardware though!

I felt this so hard! Switched to iOS a few months ago after 14 years of Android (OG G1 user) due to privacy concerns and the lack of a small phone on Android.

iOS applications are almost universally better than their Android counterparts, but when it comes to the OS itself Android is light years ahead of iOS in terms of usability, convenience, and features. The iOS keyboard is such a steaming pile of bull dung compared to Android, and then there's call screening, notification actions, copy history, inter-application shareability, webview->browser state sharing, etc...
It's as much of a "game-changer" (or not) as bit.ly: a crucial workaround of artificial limitations on closed platforms.
apparently the King of the Hill is posting on HN now.
> I think the use case of this kind of train is more similar to a flight with one or more nights at destination, so that the specific arrival time is not that important.

OP was explicitly comparing car and trains, not flight and trains.

If that's the case, then we are more in the context of a "city trip", and Hamburg -> Berlin might not be the most representative case. Something along the line of Hamburg -> Rome is more accurate as people usually like more change of scenery. Flight from Hamburg to Rome is 2:20 and train is 19 hours. Even accounting for airport wait time, the difference is ridiculous.

The issue for passenger transport with rails is that it's not good for small distances as cars have the advantage because of the added convince/flexibility, and for long distances, flight is better due to speed.

For freight, however, train is amazing as these extra hours don't matter too much and the reduction in emissions is massive. The issue is that there aren't that many dedicated cargo flights. Most cargo revenue come from transporting freight in the holds of passenger jets. So moving cargo from flights to trains does not lead to a direct reduction in CO2 emission since those planes are going to fly anyway.
Stripe Introduces Data Pipeline
As others mention this disclaimers is not what is or was advertised, Elon fanboys always say "Ignore what Elon said, just read the latest Terms of Serive".

By the same logic an Hello World Python script has the capability for general AI, i just need to wait enough years then add later add the missing part that accidental is the essential thing.

Nobody disputes the terms of service language, but the advertising language, the intentional misleading names and stats greedy companies use. We are sure lawyers checked those terms of service very well and worked fine for US, seems German judges are not tricked by this trickery though, would be nice if more countries punish missleading advertising.

I imagining new Elon product "Clean Drinking Water" and ads showing people drinking it, BUT with small text that mentions that the "safe for drinking will happen in 10 years after we fix our shit" and fanboys defending the naming because you should already know that Elon is always doing this and you should read ignore the advertising and go to the legal documents about the product to figureut all the real details.