There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Immersive_Matthew , in Daylight saving creator left the chat....

I would have stern words with John Riccitiello the ex Unity CEO who really neglected the core of their business for the years he was there. He was fired not too long ago. Games from scratch covered the conclusion of that train wreck. The new CEO seems to get that they need to refocus on the engine and making it better for developers versus chasing money. youtu.be/woTLLrgywwE?si=BIXTJGGMjpjv72vO

hemko , in Three monitors, and i feel insulted

This checks out.

I’m not a SWE ( though kinda code monkey anyways) and it’s 2 monitors no rbg (just all black thinkpad, keyboard backlight disabled)

ikidd , in Three monitors, and i feel insulted
@ikidd@lemmy.world avatar

Ericah Bachman isa fat and stupid.

lightnegative ,

Came here to mention this

EmperorHenry , in Three monitors, and i feel insulted
@EmperorHenry@discuss.tchncs.de avatar

the fuck is a rainbow computer?

You mean the kind of really powerful computer with RGB lights on the outside of the tower?

Yes I do have one of those. I have a couple of flashlights with auxiliary lights like that too.

robocall OP ,
@robocall@lemmy.world avatar

Rainbow RAM or rainbow keyboard or anything else. Yes, you qualify.

imgoingindry , in Three monitors, and i feel insulted

Test

Daxtron2 , in Three monitors, and i feel insulted

I think I’m up to 5 spread across two different workstations, but no rgb that shits annoying to me.

FiniteBanjo ,

Yeah I always make it one color or turn the LEDs off completely given the chance.

RisingSwell ,

I have some rgb on, laptop has back lightning that is brighter than my lamp though so that’s never on unless I need a torch and for some reason don’t have my phone.

JasonDJ ,

Not a software engineer (network engineer…so I dabble in Python but that’s about it).

Still, my work setup has over 14.5 million pixels spread across 4 displays, and usually another laptop or tablet going as well.

fubarx , in Daylight saving creator left the chat....

Worked on a project where devices just magically froze, but only during the month of February!

Turned out the people who had written the firmware had decided to do their own time math to save space and had put in an exception in the code for leap year values. Except instead of February 29th, it kicked in for the whole month. And the math was wrong so you ended up with negative values.

The product was due for launch in March of that year and was headed to manufacturing. It was by sheer luck that someone ran a test on February 1st and caught the problem.

Don’t mess with time in code, kids.

LodeMike ,

This is why we have pre-built libraries and Unix time.

fishbone , (edited )

too bad unix time only has 14 years of life left in it.

Edit: this only applies to 32 bit Unix time. The 64 bit lifespan is a little longer, at 584 billion years. Whoops lol.

LodeMike ,

No

fubarx ,

Embedded portable device with a teeny ARM processor. Sadly, no room for linux anything or even an RTC. Every time it connected to a phone, the phone would set its clock so the timestamps were somewhat close to being accurate.

However, if you swapped out the AAA battery and DIDN’T connect it to the phone at least once, all your subsequent readings would go back to zero epoch and would be forgotten 🤷🏻‍♂️

Good times.

AMDIsOurLord ,

Some absolute and utter legend of a man made a Unix kernel for the fucking ZILOG Z80, you have no excuses

(It’s called UZI and it’s written in K&R C for some obscure CP/M compiler)

fubarx ,

If it had been up to me, I would have included a proper real-time-clock in the design and done things a lot differently.

But the device was designed by one company and the BLE and processor module by another. For some ungodly reason neither trusted each other, so nobody was given access to the firmware source on either side. I worked for a third company that was their customer paying the bill. I was allowed to see the firmware for both sides, but only read only, on laptops provided by each company, one at a time, in a conference room with their own people watching everything. Yeah, it was strange.

I was there because the MCU and the BLE processor sometimes glitched and introduced random noise. Turned out the connection between the two parts were unshielded UART with no error detection/correction 🤦🏻‍♂️

It was concidental that we hit the date glitch. Took all our effort just to get them to add a checksum and retry. The tiny MCU was maxed out of space. No way to fit in any more code for date math.

AMDIsOurLord ,

God I’m sorry you had to go through that much middle management bullshit

fubarx ,

Thanks. On the plus side, I got to try ‘soup dumpling’ – still the best I’ve ever had. And Kaoliang, the most gut-busting distilled beverage known to mankind. OTOH, the product shipped, won lots of awards, and got national coverage for the company.

Nothing to do with timezones, but still, fun times.

dan ,
@dan@upvote.au avatar

Unix time.

Unix time doesn’t help with timezones… It’s always in UTC.

Unix timestamps also get a bit weird because of leap seconds. Unix timestamps have no support for leap seconds (the POSIX spec says a Unix day is always exactly 86400 seconds), so they’re usually implemented by repeating the same timestamp twice. This means that the timestamp is ambiguous for that repeated second - one timestamp actually refers to two different moments in time. To quote the example from Wikipedia:

Unix time numbers are repeated in the second immediately following a positive leap second. The Unix time number 1483142400 is thus ambiguous: it can refer either to start of the leap second (2016-12-31 23:59:60) or the end of it, one second later (2017-01-01 00:00:00). In the theoretical case when a negative leap second occurs, no ambiguity is caused, but instead there is a range of Unix time numbers that do not refer to any point in UTC time at all.

Some systems instead spread a positive leap second across the entire day (making each second a very very tiny bit longer) but technically this violates POSIX since it’s modifying the length of a second.

Aren’t timestamps fun?

Luckily, the standards body that deals with leap seconds has said they’ll be discontinued by 2035, so at least it’s one less thing that developers dealing with timestamps will have to worry about.

Don’t try to write your own date/time code. Just don’t. Use something built by someone else.

LodeMike , (edited )

Unix time doesn’t help with timezones… It’s always in UTC.

Unix timestamp is always in UTC which is why it’s helpful. It’s seconds since Jan 1st 1970 UTC. Libraries let you specify timezone usually if you need to convert from/to a human readable string.

Don’t try to write your own date/time code. Just don’t. Use something built by someone else.

…yes that’s why UNIX timestamps are helpful, because it’s a constant standard across all the libraries.

Some systems instead spread a positive leap second across the entire day (making each second a very very tiny bit longer) but technically this violates POSIX since it’s modifying the length of a second.

Then that system should be trashed.

perviouslyiner , (edited )

Unix timestamp is always in UTC

Careful with the exact phrasing here - while the epoch was at midnight in GMT, the time from which time_t is measured also exists in other timezones.

LodeMike ,

Then that the library that does it should be trashed.

en.wikipedia.org/wiki/Unix_time

Aux ,

UNIX time is trash.

dan ,
@dan@upvote.au avatar

Unix timestamp is always in UTC which is why it’s helpful.

Any time you show the time to a user, you have to use a timezone. That’s why the unix timestamp has limited usefulness - it doesn’t do a lot on its own and practically all use cases for times require the timezone to be known (unless you’re dealing with a system that can both store and display dates in UTC). Even for things like “add one week to this timestamp”, you can’t do that without being timezone-aware, since it’s not always an exact number of seconds as you need to take Daylight Saving transitions and leap seconds into account.

Then that system should be trashed.

A lot of systems just don’t handle leap seconds well. Many years ago, Reddit was down for four hours because their systems couldn’t deal with leap seconds. Smearing the extra second across the whole day causes fewer issues as software doesn’t have to be built to handle an extra second in the day.

CosmicCleric ,
@CosmicCleric@lemmy.world avatar

Luckily, the standards body that deals with leap seconds has said they’ll be discontinued by 2035

Did they figure out a way of making the earth spin more reliably per how the humans want it to?

dan ,
@dan@upvote.au avatar

If I remember correctly, they’re updating the standards to allow for more deviation between UTC time and “actual time”. They’ll likely replace leap seconds with a leap minute that happens much less frequently, implemented by spreading it across the whole day, similar to the leap second workaround I mentioned.

uis ,

Was it related to banking?

fubarx ,

Consumer health.

Good product, too. Won a bunch of awards. Unfortunately, the company has since gone out of business.

generalpotato , in Computer components cheat sheet

HDD - Remembers numbers loudly is on point for 90s/2000s disk drives. 😂

Evil_Shrubbery ,

… server/enterprise level HDDs are loud af, I swear some brands are dedicated to it.

That leaves us only with the tiny WD Red Plus (but not Red Pro), above 20TB afaik only Exos (from X21 onwards) doesn’t alert the neighbours.

But in (second half-ish?) of 90s HDDs differed a lot in terms of loudness. I was one of those nerds with custom (fully home made) water loop just to achieve some level of quietness.

Piemanding ,

With those jet engine fans they are quiet by comparison lol.

gamermanh , in Three monitors, and i feel insulted
@gamermanh@lemmy.dbzer0.com avatar

The blinky lights make it compile faster!

I’m getting older but nah, fuck it, I like RGB lighting in my build. I have a cool mostly open case with a glass front that you can wall mount Pretty sure it’s an older version of this thing. if not it’s a very similar setup and making all my components glisten red or react to explosions in an FPS just feels cool to me.

I turn down the brightness though cuz holy shit they come set to 2x the sun by default

Kurokujo ,

Same. I also have one of the older models in that family of cases. I love the thing but need to put in a water cooling loop.

ipkpjersi , in Daylight saving creator left the chat....

Except if there was only one zone of time that would be hell to program too because then you would need to check for different times of day for different locations. I think programming is just difficult lol

kreiger ,

you would need to check for different times of day for different locations

You have to do that now with time zones anyway.

Opisek , (edited )

I think the comment was more about phases of the day. Like for example, your phone might come pre-installed with a sleep mode from 23:00 to 06:00, which roughly fits for most users. Should we use UTC everywhere, then you’d have to have different presets for different parts of the globe.

Or say you wake up just a bit after sunrise at 7am everyday and you fly across the continent for vacation. Now you have to change all your alarms because sunrise is suddenly at 3am.

Or what if you’re writing a book and you want to tell the reader what time it is: 15:00 will mean something else to readers around the world. And while you could attempt to cover it up with “15:00 in the afternoon”, there will still be a disconnect between your words/intentions and what the reader pictures.

UTC would be a bliss for programming and scheduling events in this funny little globalized world, but as animals we still base our days on the burning fireball in the sky and removing that connotation from our timekeeping messes with linguistics and clear communication.

I don’t think the system we have is perfect either, but I don’t think employing UTC everywhere is the way and I don’t have other suggestion either.

jdeath ,

and then boom congratulations you just reinvented time zones except worse, & everyone’s gonna do their own way and they’re all gonna be slightly different.

but at least your code will be simpler. oh, wait…

datelmd5sum ,

…but it would be the same time in different locations? E.g. at the time I’m writing this it’s 660DFD56 in New York, London, Moscow, Tokyo, Moon, Mars, Andromeda etc.

Korne127 , in Daylight saving creator left the chat....
@Korne127@lemmy.world avatar

There are some time libraries which actually work pretty well and allow you to manage things like Timezones. And then there are some abominations beyond my compression…

Opisek ,

Have you tried 7zip?

lhamil64 , in Daylight saving creator left the chat....

But if time travel is a thing, imagine the whole new time nightmares! Oh you went back a year with your phone? Now all your TLS root certs are invalid because you’re before the start date. Or you have files/emails/whatever that are dated in the future. I guess you can get to that state by just setting your clock forward but I imagine some stuff would break.

ObsidianNebula ,

I worked on a project that had a few spots where we compare a saved timestamp to the current time. During testing, the client would randomly change their device time a few days forward or backward and complain that things weren’t working as expected. I had to explain to them multiple times that they were basically time traveling, and the program was actually handling it fairly well all things considered.

KillingTimeItself ,

well thats the funny thing, it’s technically not time travel, it’s just time dilation if you squint hard enough. So technically, it doesn’t matter.

Jakylla , in Computer components cheat sheet
@Jakylla@sh.itjust.works avatar

“No” is the most accurate I could ever have imagined for Inkjet Printers

Jaccident ,

Not to be confused with “No.”

xia ,

What about “angry robot demands ink sacrifice”?

brianorca , in Daylight saving creator left the chat....

The guy that invented time zones was solving a problem where each little town had their own time standard. I don’t think that was sustainable.

fidodo , in Three monitors, and i feel insulted

I only have one monitor… It’s an ultra wide.

SpaceNoodle ,

🤮

naught ,

how does it feel to be wrong!!!

SpaceNoodle ,

Did you iron out all your question marks?

naught ,

Yes i like to keep tidy ty for noticing :>

ripcord ,
@ripcord@lemmy.world avatar

I upvoted both of you :)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines