News for hackers. Stuff that matters.

markh1967

Re:I put my whole life into a single database on Tuesday March 10, 2026 @11:48AM (#47324878)
About 9 years ago I had a run-in with stomach cancer. After a few months of chemo and a 7 hour operation I was eventually declared cancer free and have been ever since, but still have to live with the consequences of the treatment and be vigilant for any signs of it returning.

I still suffer intermittent stomach aches, especially in the early hours of the morning, and had a terrible time trying to decide if they were getting better or worse over time.

Our narrative voice is awful at detecting long term trends and tends to overcompensate for particularly good or bad patches so it was impossible for me to judge and I started keeping records of how bad the aches were each day.

Long story short, the average severity was mostly decreasing over time and the average time between bad aches was slowly increasing but it would have been impossible to tell if this was happening without keeping detailed records because it wasn't consistent - some months were much worse than others and completely skewed my perception of long term trends.

While most people hopefully won't ever need to do something like this, it did make me realise just how bad we are at picking up on long term trends so I can definitely see keeping daily records of, for instance, average daily happiness being eye-opening.

Re:PDC 1996 Keynote with Douglas Adams [video] on Thursday February 12, 2026 @05:10PM (#46995982)
An enthralling example of just how good a public speaker Duouglas Adams was and, 30 years later, still relevant and insiteful.
Re:Defeating a 40-year-old copy protection dongle on Monday February 02, 2026 @03:08AM (#46853612)
Many years ago I was a technician supporting a few custom programs on thousands of PCs. The developer of one of these programs had added a date check to his code so the program would refuse to run after a set date and each new release would increase this date by a few months so it would stop working after a few weeks if he ever stopped creating new releases. His contract ended and a few weeks later his software, now relied upon by hundreds of sites, stopped working. The contract for the software development was thoroughly checked and legal action against the developer was started but I asked to see if I could resolve the problem in the meantime.

It only took ten minutes with a dissassembler to find the JGT (Jump if greater than) and convert it to a JLT so the software would stop running if the date was before a certain date rather than after. I created a patching tool that simply flipped one bit that was sent out to all the sites and everything was good again. I don't think I'll ever beat the elegance of a single bit flip hack.

Re:ChatGPT Health on Thursday January 08, 2026 @06:33AM (#46539901)
I can attest to this from personal experience.

After undergoing stomach surgery 8 years ago I started experiencing completely debilitating stomach aches. I had many appointments with my GP and a specialist leading to endoscopies, colonoscopies, CAT scans, and MRI scans all to no avail and they just kept prescribing more and more anti-acids and stronger painkillers.

It was after seven years of this that I paid for a private food allergy test to find that I am allergic to Soya protein. Once I stopped eating anything with Soya in it the symptoms almost completely vanished.

At my next GP appointment I asked why no-one had suggested it could be an allergic reaction only to be told that it is not one of the things they check for or even suggest. My faith in the medical community took a bit of a knock that day.

On a related note, I never knew just how many foods contain Soya flour that you wouldn't expect until I started checking.

Why go to this much trouble for a Reddit account?

A few months ago I browsed r/all by new and downvoted every crypto scam post to unrelated subreddits I saw. This raised a red flag somewhere inside Reddit (my guess is that I was interfering with some Reddit admin's crypto scams) and my 18 year old account was suspended until I could respond to an email at the address it was registered from that I no longer had access to almost two decades later. An appeal was ignored.

I was furious about losing the account for about two minutes before I realised that nothing of any importance had been lost, shrugged, and created a new account.

Re:Don't Guess My Language on Monday May 19, 2025 @09:53AM (#44029949)
I first used Uber while on holiday in Poland and consequently every email I got from them was in Polish until I worked out how to cancel that account.
Re:There's Math.random(), and then there's Math.random() on Friday February 07, 2025 @06:37AM (#42971508)
A demonstration of exactly this problem (only in older versions of .Net, newer versions use a different seeding method)

https://dotnetfiddle.net/tLGMp6

Re:There's Math.random(), and then there's Math.random() on Friday February 07, 2025 @06:29AM (#42971468)
It's been a while so I can't provide a link but I remember reading about someone who got hold of a video blackjack machine that used a pseudo random number generator and was able to find the seed from only a few hands and then knew exactly which cards would be dealt next. He then went on to empty every machine he could find in the local casinos.
Re:Popcount CPU instruction on Monday September 09, 2019 @06:30AM (#20916867)
I think the most probable reason for this instruction is for calculating parity bits. This would need to be done fast so it makes sense that there would be a CPU instruction to do most of the work.
Re:Ask HN: Have you ever regretted working on a product? on Wednesday November 21, 2018 @10:54AM (#18503556)
I ended up being the sole developer for a system that managed vehicle trackers installed in fleet vehicles.

A few months after I took over they picked up a new client that was a finance company for people with bad credit ratings who wanted to purchase vehicles at exhorbitant interest rates. The trackers allowed them to remotely disable vehicles if the finance payments weren't met.

After a while they became the systems's largest customer and finally the only customer. They then asked for some changes so that all their vehicles would be remotely disabled at the start of each month and would be re-enabled when that month's payment was received.

Fortunately, they then purchased the system outright from its current owners and that allowed us to stop developing for them.

Re:Fixing a bug in “Airwolf” code from 1984 [video] on Thursday May 11, 2017 @12:01PM (#14317078)
They really should have used the code that controlled the ghosts in Pac-Man.
Re:How the 'hoverboards' took off in spite of laws against them on Wednesday October 14, 2015 @12:00PM (#10387357)
"All of them should be allowed on the pavement, because people aren't stupid, they will get out of the way if they see one coming."

Speaking as someone who sometimes puts his back out and spends a few days hobbling slowly about, I shouldn't have to quickly get out of someone's way if I see them coming and they shouldn't be allowed on pavements.

Re:F*** those popups – signing up those who deserve it on Thursday June 04, 2015 @11:08AM (#9659782)
That would stop any drop-down menu navigation bars from working though.