MurphyA/hacker-news huggingface dataset:
Show HN: Time Decimal Converter – A free tool for time calculations
by pandaupup | 2025-04-16 08:46:11+00:00
Hi! I built a free web-based time format converter (https://time-to-decimal.org/) to help developers and professionals with time calculations. After getting feedback from early users, I've just released v1.0.2 with five new conversion tools:

What's new: - Decimal hours to time (HH:MM:SS) converter - Decimal minutes to time converter - Decimal days to time converter - Time to decimal hours converter - Time to decimal minutes converter

Key features: - Clean, minimal UI focused on usability - Batch processing support - Excel export functionality - Detailed explanations and examples - Mobile-friendly design - No tracking, completely free

Tech stack: Vue 3, Nuxt 3, Tailwind CSS

I built this because I kept running into time format conversion needs in various projects, especially when dealing with timesheets and project management tools.

Would love to hear your feedback and suggestions for improvements!
by siev | 2025-04-16 08:46:45+00:00
I like the sentiment, I love C. But this book seems riddled with errors and baffling decisions.

First of all, the fixed points are LITERALLY NOT FIXED POINTS. They're decimal floats. Fixed points are just integers that re-scale when multiplied or divided. There is no exponent field, no nothing. The author seems to have confused the notion "fixed points allow for precise calculations of monetary values" to mean that they're decimal. They're not. That section of the book contradicts itself constantly and also the code is wrong.

Also an ordered vector is used to implement a map/set. Because:

> Most people would likely instinctively reach for hash tables, and typically spend the next few months researching optimal hash algorithms and table designs.

> A binary searched vector is as simple as it gets and performs pretty well while being more predictable.

A basic hash table or hash set[1] is both simpler and faster than this solution. And I don't see what's stopping someone from spending the next few months researching optimal dynamic array growth and searching algorithms instead. This line of reasoning just doesn't make any sense.

And "Once nice advantage is that since they don't need any infrastructure, they're comparably cheap to create." What? It needs a dynamic array!

[1] https://github.com/skeeto/scratch/tree/master/set32
by dcminter | 2025-04-16 08:46:47+00:00
Uh... I use "I'm confused" a lot. Because often I am confused! Someone said something that didn't make sense given what I know.

It divides fairly evenly (I think, being generous to myself here) between:

Yep, something I thought was true was not true.

Something they said was wrong, or they omitted something without which their meaning was ambiguous.

Maybe a smattering of "I/they misparsed what was said" too. But really. Often I'm just confused. When I use it I definitely don't mean they're an idiot I just worry that they'll think I'm an idiot... (...and that they might be right.)
by defrost | 2025-04-16 08:47:16+00:00
They're measuring "rescues" .. requests to attend a location, broken down by demographics, and noting that there's a dramatic rise in the 18-24 age group who appear to be drawn to "iconic spots" pinned on social media and strike out with insuffient resources or paper maps, etc.

Reports are written per incident and:

The chief executive of Mountain Rescue England and Wales, Mike Park, said it was hard to give a “definitive reason” for the rise in rescues among younger people, who have taken the top spot from the 50-54 age group, which fell slightly from 170 rescues in 2019 to 165 in 2024. “But we know from incident reports that more and more people are tempted into risky locations by Instagram posts and the navigation apps being used aren’t always suitable for an outdoor environment,” Park said. “Add to that a tendency to follow popular routes online without knowing the hazards and context, and it’s not surprising that those likely to be relying most on their phones are the ones getting into difficulties.”

There's no mention or suggestion that 18 years olds are going up Snowden just to prank call search and rescue for "the likes".

It's a dangerous location that kills the unwary.
by timewizard | 2025-04-16 08:47:23+00:00
> and I expect LLMs to become such ubiquitous table-stakes

Unless they develop entirely new technology they're stuck with linear growth of output capability for input costs. This will take a very long time. I expect it to be abandoned in favor of better ideas and computing interfaces. "AI" always seems to bloom right before a major shift in computing device capability and mobility and then gets left behind. I don't see anything special about this iteration.

> that I don't think anyone will really care in the long run.

There are trillions of dollars at stake and access to even the basics of this technology is far from egalitarian or well distributed. Until it is I would expect people who's futures and personal wealth depends on it to care quite a bit. In the meanwhile you might just accelerate yourself into a lawsuit.
by skinkestek | 2025-04-16 08:47:39+00:00
Something similar here:

- Part of my colorblindness seems to be a language thing, especially as a non native speaker of English: is that status light "amber" or is it just on? (here it it obviously helps if there is a full rack and one of them sticks out)

- another part is about recognizing the colors of tiny dots (lanterns, specks on the floor). I can sometimes clearly see the same color if there is a cm^2 or a m^2 of it, no problem, but a tiny dot of the same color looks generic grey or generic yellow

- and another part, probably related to the first one, is just noticing: for example the mixed waste bins are (very dark) green but until my wife thought I joked I didn't notice. Now it is very obvious

- then there is the obviously actual color blind part: when a doctor hands me the color splatters with images I don't see every one of them and on some I see the wrong numbers

- another obvious clue there is something I actually cannot see: when I use colorblind simulation in digital image manipulation programs it feels like nothing happens

- bonus 1: my house is clearly (IMO) green, but sometimes this has other people including people with supposedly full color vision confused, which means either I see the green because it isn't drowned in another nuance that other people see or there is something even funnier going on with my color vision

- bonus 2: It feels like it is never pitch dark for me, as long as I am outdoors. (Caves, bunkers and technical rooms without lights can be though.)
by NilayK | 2025-04-16 08:50:11+00:00
> A coalition of CVE Board members launched a new CVE Foundation "to ensure the long-term viability, stability, and independence of the Common Vulnerabilities and Exposures (CVE) Program."

> https://www.thecvefoundation.org

https://mastodon.social/@serghei/114346660986059236
by InsideOutSanta | 2025-04-16 08:50:39+00:00
>The citizens elect the government so how can you not care about poltiics?

I don't think there's a direct correlation between the ability to vote and caring about politics. People usually care about politics when it affects them negatively. I would guess that most people in most democratic systems don't have strong negative experiences with their governments and, thus, are not incentivized to care about politics.

Note that I'm not making an argument that they should not care. I think they should, but the very system that allows participation probably also decreases the incentive for most people to participate.
by jxjnskkzxxhx | 2025-04-16 08:50:46+00:00
First off, you didn't answer my question which to restate is: if the ratio is 1/2, how many samples do you need.

Second, your claim that it depends on dimension is wrong, given the ratio of sets, dimension doesn't matter. If the ratio is 1/2 then you'll reject one half of the times regardless of dimension, and so by your own argument it's "very efficient"
by dspillett | 2025-04-16 08:52:00+00:00
> Any AI responses used for email support are now clearly labeled as such.

Because we all know how well people pay attention to such clear labels, even seasoned devs not just “end users”⁰.

Also, deleting public view of the issue (locking & hiding the reddit thread) tells me a lot about how much I should trust the company and its products, and as such I will continue to not use them.

--------

[0] though here there the end users are devs
by jansan | 2025-04-16 08:52:03+00:00
It's is not noticeable at all.

Also, you would barely see the difference in the chart if they actually used a zero axis.

Here is a better (more honest) chart:

Edge 132 | 28.8 ############################# Edge 133 | 29.6 ############################## Edge 134 | 32.7 #################################
by john_the_writer | 2025-04-16 08:53:46+00:00
I know this is bad, but as a Canadian I find I smile at things like this. I remember family members losing jobs because of lumber tariffs that were deemed illegal according to trade deals, but still happened. The idea that the US is sort of screwed brings me joy.

I like how it said "allies" in the article. Those are shrinking fast, and the problem with playing knuckles with your friends; eventually they stop reaching out. Add a tariff and then take it away enough and people stop caring that about it. The states have become an unreliable shopper, and even if others pay less, they still pay.
by vladms | 2025-04-16 08:54:04+00:00
Too generic terms become an issue at some point. "Government" and "market" are not one thing that you can easily measure to "big" or "small" or "good" or "bad".

To make a technical parallel can we really say "C is good, Java is bad"?

I think focus should be much more on discussing actual policies and their impact - which can become quite complex - rather than stamp everything with "more/less government/market" and then use the predefined belief that one or the other is good. I personally favor various policies, and I can't put all of them at the same time in a box with a label of "more government" or "less government".
by strogonoff | 2025-04-16 08:54:13+00:00
The word “politics” is vague, and that only makes banning political discussions worse if it only becomes political when the higher-ups don’t like it.

Say your company has a possibility of working with some client company who is directly or indirectly involved with cause X. If it is “political” to talk about not working with them because of X, but it is “not political” to talk about working with them, then you see what I mean.

It doesn’t have to be a destructive conversation: one employee might say we should avoid them, but you might say we need to work with them because we need the money now and can drop them later when we are in a better place. Other employees could talk how cause X is not that unethical for reasons. If someone balks at a point of view incompatible with theirs and is incapable of expressing a viewpoint in a way that respects other views, maybe that someone is not mature enough and next time your HR can avoid that type.
by theurerjohn3 | 2025-04-16 08:55:12+00:00
its a cryptocurrency, the courts legitimacy would likely come from the community forking as necessary to resolve issues as identified by the court, in the same way the us judicial branch gets its legitimacy from the us executive branch employing force as necessary to resolve issues as identified by that court.

its a broader group to convince, sure, but there is a clear 'or else' from which the court can get that legitimacy. 'return the money or else we will return it for you' is a meaningful or else
by jxjnskkzxxhx | 2025-04-16 08:55:34+00:00
Read my conversation with the other person. If you sample N times you'll be able to put a bound on the ratio, and that is the same regardless of dimension. To your example: if the ratio between sets in D=50 is 1e-50 and you ask how long it takes that your estimate bound doesn't contain zero, that will take a long time. Now if I ask you to estimate the ratio between the 2D circle and the 2D square with 50 decimal place, it will take the same time. Therefore, dimension doesn't enter here. This is a general property of Monte Carlo.
by submeta | 2025-04-16 08:55:48+00:00
Wow, so much negativity. The Cursor team has built a wonderful product — and they made a mistake. Now haters are trying to rip it apart because of one mistake. Yeah, I also paid for the yearly plan. Yeah, I was also annoyed to get locked out on another device. Was it annoying? Yes. But will I abandon the product? No, not because of this. Chill, folks. Get a life.
by nosianu | 2025-04-16 08:55:49+00:00
> There is still a working pipeline available and Russia stated clearly if would continue delivering gas, if Germany wants to.

You conveniently leave out that minor detail that it was RUSSIA who stopped the gas.

Germany tried hard to keep it going, even making a sanction-exemption or a Siemens turbine repaired in Canada, which according to Russia was needed. Only that when they were to receive it nothing happened, gas stopped anyway.
by Crosseye_Jack | 2025-04-16 08:56:43+00:00
sounds like perfect grounds for a chargeback to me. Company offered a full refund via one of its Agents, company then refused to honour that offer, time to make your bank force them to refund you.

Just because you use AI for customer service doesn't mean you don't have to honour its offers to customers. Air Canada recently lost a case where its AI offered a discount to a customer but then refused to offer it "IRL"

https://www.forbes.com/sites/marisagarcia/2024/02/19/what-ai...
by Nevermark | 2025-04-16 08:57:34+00:00
Pointing to unusual people, then claiming that proves they exemplify what should be usual…

That isn’t an argument or solution for anything. That’s state some fact, then state your desired conclusion, without even an attempt at reasoning in between.

Show me any community that turns their success demographics around. Someone pointing at a few successful examples, and saying everyone should do that, won’t be how they did it.

People have suffered in disadvantaged demographics from the dawn of time. They are real. Nobody wants differences like that to exist, but they are pernicious. Context has a huge impact on people and bad contexts are often very self-reinforcing.
by mytailorisrich | 2025-04-16 08:57:40+00:00
This strikes as starting from the conclusion you want to reach (current funding cuts are bad) and then trying to build a narrative to prove it.

Post-WWII the US had already become the superpower in science and technology and Europe was struggling to rebuild after the war (e.g. rationing ended in the UK only in 1954).

The brain drain started before the war, was amplified by the war, and continued after the war because the US were so rich generally. This has continued since. I don't think that what Trump is doing will have an impact because it may not last and the US will still overall much more attractive than, say, Europe.
by Ukv | 2025-04-16 08:58:41+00:00
To my understanding there weren't really distinct "implementation of the code to log people off" and "enforcement" - just a bug where previous sessions were being expired when a new one was created.

That an LLM then invented a reason when asked by users why they're being logged out isn't that surprising. While not impossible, I don't think there's currently indication that they intended to change policy and are just blaming it on a hallucination as a scape goat.
by aucisson_masque | 2025-04-16 08:59:17+00:00
Indeed, it reads as an advertisement.

No downsight at all even though it has big flaws. The constant alarm, sometimes when sleeping because something got stuck, the maintenance price, cost of certified technicians.

Nothing about the price and ROI.

Nothing about the farmers who bought them and their experience years later, a considerable part would not buy it again and instead just come back to build a parlor and milking 2 times a day.

As you pointed, nothing about other brand.

All sunshine and rainbows..

If it's journalism, it's bad one.
by rwieruch | 2025-04-16 09:00:23+00:00
I have used RSCs only in Next.js, but to answer your questions:

1./2.: You can update it optimistically. [0]

3.: Depends on the framework's implementation. In Next.js, you'd invalidate the cache. [1][2]

4.: In the case of the like button, it would be a "form button" [3] which would have different ways [4] to show a pending state. It can be done with useFormStatus, useTransition or useActionState depending on your other needs in this component.

5.: You block the double request with useTransition [5] to disable the button.

6.: In Next, you would invalidate the cache and would see your like and the like of the other user.

[0] https://react.dev/reference/react/useOptimistic

[1] https://nextjs.org/docs/app/api-reference/functions/revalida...

[2] https://nextjs.org/docs/app/api-reference/directives/use-cac...

[3] https://www.robinwieruch.de/react-form-button/

[4] https://www.robinwieruch.de/react-form-loading-pending-actio...

[5] https://react.dev/reference/react/useTransition
by ralferoo | 2025-04-16 09:00:56+00:00
On the whole it seems like a nice idea, but there's a couple of weird things, such as:

> Note: If you're curious why there is a negative number (-5) in the histogram, that's just an inevitable downside of the simplicity of the Unsure Calculator. Without further knowledge, the calculator cannot know that a negative number is impossible (in other words, you can't have -5 civilizations, for example).

The input to this was "1.5~3 x 0.9~1.0 x 0.1~0.4 x 0.1~1.0 x 0.1~1.0 x 0.1~0.2 x 304~10000" - every single range was positive, so regardless of what this represents, it should be impossible to get a negative result.

I guess this is a consequence of "I am not sure about the exact number here, but I am 95% sure it's somewhere in this range" so it's actually considering values outside of the specified range. In this case, 10% either side of all the ranges is positive except the large "304~10000".

Trying with a simpler example: "1~2 x 1~2" produces "1.3~3.4" as a result, even though "1~4" seems more intuitive. I assume this is because the confidence of 1 or 4 is now only 90% if 1~2 was at 95%, but it still feels off.

I wonder if the 95% thing actually makes sense, but I'm not especially good at stats, certainly not enough to be sure how viable this kind of calculator is with a tighter range. But just personally, I'd expect "1~2" to mean "I'm obviously not 100% sure, or else I wouldn't be using this calculator, but for this experiment assume that the range is definitely within 1~2, I just don't know where exactly".
by MathMonkeyMan | 2025-04-16 09:00:58+00:00
I'm reminded of a 2016 [talk][1] where Rob Pike describes the common-denominator assembly language that the Go compiler generates. Then that assembly is translated into machine-specific code via table lookups. See the 11 minute mark.

[1]: https://www.youtube.com/watch?v=KINIAgRpkDA
by seanhunter | 2025-04-16 09:01:01+00:00
That's not true for random walks in general I don't think. A random walk is a process derived from taking random steps in some mathematical space. It can include jumps and it can include memory.

Take a "path-avoiding" random walk. At time t the distribution of the next step depends on whether or not I have at some point hit any of the adjacent nodes in the current path. That's not the current state, that's memory.
by demosito666 | 2025-04-16 09:01:09+00:00
I think the most significant distinction is exactly that:

Authoritarian - leaves people alone in general as long as they stay out of politics. Examples: 90% of regimes throughout human history. Almost all post-soviet countries, almost all of Middle East and Africa, Singapore, etc.

Totalitarian - forces people into actively participating in leader's political goals and penetrates the daily life. North Korea, USSR, Nazi Germany, Fascist Italy.
by vladms | 2025-04-16 09:01:28+00:00
I completely agree and would add that different people have different social needs. I love learning by myself. I don't need an example, I do it for fun. In the universities I studied, I have seen LOTS of people that were learning because everybody was learning. And they were smart, and capable, they just needed an environment and some structure.

While I don't "get" their way of being, I have to acknowledge such people do exist, and it is wasteful to consider the people I "get". Otherwise the other "types" might gather around some stupid leaders that come with ideas like "science kills babies let's burn all scientists on a stake!" (exaggerating a bit, but similar things did happen)
by bayindirh | 2025-04-16 09:02:55+00:00
Use a proper RTOS kernel with a good UI layer, and see all the developers complain loudly because they can't use the latest mobile phone stacks on that robust platform.

Sony boots a RTOS Linux system on their cameras in 3 seconds flat, and the firmware is arguably mission critical for that camera. It can be done for an infotainment system.
by xxs | 2025-04-16 09:03:01+00:00
Linked lists have higher constant const memory wise, much slower to iterate, effectively removals of a random in the middle are the same as vector. When used as queues the ring buffers are better for most applications.

Their prime use is that adding new elements lack a terrible worst case, aside the fact it puts more pressure on the memory allocator - need to be concurrent friendly.

If there is a full control of the memory allocation (e.g. kernels) linked lists make sense, for virtually all other cases there are better data structures.
by nivertech | 2025-04-16 09:03:09+00:00
If I ever write abt "Markov chains without the Math/Jargon/BS" I'll use the clip from the "Ten Second Tom" scene from 50 First Dates[1] & a host of other Sci Fi movies abt time loops[2,3] to illustrate the Memorylessness[4] Markov property[5]

---

1. https://www.youtube.com/watch?v=iN_BDcKhtWk

2. https://en.wikipedia.org/wiki/Time_loop

3. https://en.wikipedia.org/wiki/List_of_films_featuring_time_l...

4. https://en.wikipedia.org/wiki/Memorylessness

5. https://en.wikipedia.org/wiki/Markov_property
by Xelbair | 2025-04-16 09:03:25+00:00
oh but you forgot the mandatory time before they even start considering the tender.

looking at average speed of bureaucracy in EU it will take roughly a year to set date for a meeting that will set the date for actual meeting which will decide if this will go forward or not....

(if you think i'm joking - i'm basing this on proposed EU initiative for nuclear power which started with setting a date of meeting to setup a meeting to draft an agenda)
by ramon156 | 2025-04-16 09:03:42+00:00
Sorry but this screams copium. Its right in your face why cursor is bad, and your response is "but the product is good". Is it? What did they do better than e.g. aider, claude code and zed? What makes them stand out?

I honestly don't get it, but if you want to support such a lazy team then have at it, no one's stopping you
by JumpCrisscross | 2025-04-16 09:04:29+00:00
> no mention or suggestion that 18 years olds are going up Snowden just to prank call search and rescue for "the likes"

Nobody implied as much. Just that SAR calls for "I'm le tired" are somewhat common nowadays. I'd be more curious about requests that required emergency medical attention.

I'm saying this as someone who has called in medical helivacs.