TIL:

why:

Integer.MAX_VALUE smaller by one than 2147483648, so it overflows and becomes negative again.

so -Integer.MAX_VALUE will effectively do not do anything as it goes back and forth. I kinda agree with that.

What I am perplexed about is the "contract" of Math.abs() being broken here.

#java #codinghorror

The zeroth of Jemuary. #codinghorror
The Road Not Taken is Guaranteed Minimum Income

The dream is incomplete until we share it with our fellow Americans.

Coding Horror
Stay Gold, America

We are at an unprecedented point in American history.

Coding Horror

/* assuming a legal html line starts with at least one white space */

Help, I'm drowning in bad legacy code! ☠️ 🏊️ Apparently, decades ago someone wrote a very naive and incomplete html parser here.

#programming #codinghorror

@C3nC3 @DanielMReck @codinghorror @SkepticalScience

Took a look at Matomo. Reads well. Thanks!

We mostly use in-house because ultimately the horse's mouth is server logs and GA is so money/conversion framed that it misses critical info on publication usage etc. Even so, some info from GA is interesting and this option is appealing.

Thank you to #CodingHorror for surfacing the issue.

system("ifconfig | awk '{print $2}' >/tmpfile");

Oh boy, this should be illegal.

#C #codinghorror

So… it's a new year… 2024 at long last. It's literally new year's day, and the whole year now follows. We've got 366 days until we're doing the same thing again.

Here are some people that you might consider following for your timeline. This is not an exhaustive list.

#Journalists: @dangoodin, @benjedwards… both writers for @arstechnica

@[email protected] #AmateurRadio operator and journalist for @VOANews

@mmasnick journalist for #TechDirt

@lorenzofb, @zackwhittaker journalists for #TechCrunch

@codinghorror writer for #CodingHorror

@briankrebs independent #InfoSec writer and journalist

@north / @north playfully prodding sites' punycode domain compatibility 🙂

#Ukraine

@EugeneMcParland has been posting lots of news about the conflict

@Gala posts lots of photos and videos showing life in Ukraine -- some beautiful scenery

#RetroComputing and #RetroTech

@Gammitin posts lots about restoring classic PCs

@kenshirriff does lots of deep dives into old tech of all sorts… deep analysis of classic ICs, old mechanical avionics, all sorts.

#Gambia

@buba has been posting lots of photos from his native Gambia (west coast of Africa)

#AmateurRadio

@xssfox has been experimenting with all kinds of radio-related things (as well as putting monitors on crooked angles).

#NewYearFollows

Well, that's a new #codinghorror:

(&(variable))->member = new_value;

Am I missing something here?

I noticed that an online shop didn't offer Paypal as payment option but on the same checkout page they said they do.

I sent them a polite mail with a screenshot pointing out the discrepancy. And so began a back-and-forth in which they tried to prove that I was wrong and I - looking deeper into their sourcecode - found increasingly horrifying things.

Over 3000 positive reviews were hidden via a JS loop below the footer. Apparently an attempt to SEO on a checkout page.

#webdev #codinghorror