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.

ryannathans , in Yes, github, I want to dagger you

It this a typo?

verstra OP ,

Lol, something felt off, but I just wasn’t sure if I mistypes something until I saw this comment.

far_university1990 ,

You can edit post to fix picture btw

qaz ,

Is might very well be

StaySquared , in What a time to be alive

Lots of companies jumping the gun… laying off so many people only to realize they’re going to need those people back. AI is still in its infancy, using it to replace an actual human is a dumb dumb move.

MartianRecon ,

‘That’s a problem for the next CEO’ -current CEO

gofsckyourself , in Yes, github, I want to dagger you

It this loss?

JackbyDev , in University Students

<span style="background-color:#f5f5f5;font-weight:bold;color:#b52a1d;">}</span><span style="color:#323232;"> </span><span style="font-style:italic;color:#969896;">// End of if
</span>
lseif ,

okay but which ‘if’ is ending ??

JackbyDev ,

The outer most. (There were 4 layers of nested ifs.)

lseif ,

too few. i like to have a nice big gap on the left of the code so theres a place to write notes when i screenshot the code

brettvitaz ,

This brings back trauma

best_username_ever ,

CMake does that…

Klnsfw , in University Students

It’s much worse to learn development while being lazy about commenting. Or adding them all just before sending your source code to the teacher.

rbits OP ,

Lol that’s exactly what this was. I wrote this python script, and he went through and added comments like this a day before the deadline.

Not trying to throw shade on him though, it’s more the university’s fault for not explaining what makes a useful comment. I just thought it was funny

Portosian , in Defragged Zebra

Now it’s a Z:\bra

cupcakezealot , in University Students
@cupcakezealot@lemmy.blahaj.zone avatar

me in a group project ending up doing all the work

Semi_Hemi_Demigod , in Defragged Zebra
@Semi_Hemi_Demigod@lemmy.world avatar

Pro tip: Defragmenting only works on spinning drives because it puts the data nearer to the spindle so seek times are shorter. Solid-state drives wear out faster if you defragment them, since every write involves a little bit of damage.

vocornflakes ,

I was about to throw hands, but then I learned something new about how SSDs store data in pre-argument research. My poor SSDs. I’ve been killing them.

Kenny ,

No you didn‘t. All somewhat current operating systems do not defrag SSDs, they just run TRIM and it does not kill them.

Semi_Hemi_Demigod ,
@Semi_Hemi_Demigod@lemmy.world avatar

Most modern OSeses do defragmentation on the fly and you don’t really need to do it anymore.

Which makes me sad because I have so many memories of watching a disk defragmenter do its thing from my childhood.

AllHailTheSheep ,

real actually. definitely one of the most memorable progress bars. well, that and the bios update progress bar

greybeard ,

Here’s a little game I made because I missed it too. dbeta.com/games/webdefragger/

mrsgreenpotato ,

It’s just Paint behind it, isn’t it?

greybeard ,

I’m guessing you were making a joke, but the real answer is it is a Godot tile map.

indepndnt ,

That was super cool.

greybeard ,

Thanks. It was a silly toy, but it scratched an itch, and was goof for at least one chuckle.

Kenny ,

I loved watching disk defragmenter doing it‘s job as a kid. I miss it too!

lseif ,

well, defragging my ssd was the only thing that let me shrink the windows partition safely when i dualbooted… tho maybe thats just windows being funky

Semi_Hemi_Demigod ,
@Semi_Hemi_Demigod@lemmy.world avatar

That kinda makes sense. Putting all the partition sectors together would probably make it easier to resize. But as standard maintenance it’s like changing the oil on an electric car.

lseif ,

i see

floofloof ,

You just don’t want to do it regularly. It was an issue for a brief time when SSDs were new, but modern operating systems are smart enough to exclude SSDs from scheduled defrags.

RonSijm ,
@RonSijm@programming.dev avatar

Defragging an SSD on a modern OS just runs a TRIM command. So probably when you wanted to shrink the windows partition, there was still a bunch of garbage data on the SSD that was “marked for deletion” but didn’t fully go through the entire delete cycle of the SSD.

So “windows being funky” was just it making you do a “defragmentation” for the purpose of trimming to prepare to partition it. But I don’t really see why they don’t just do a TRIM inside the partition process, instead of making you do it manually through defrag

lseif ,

i used Defraggler, after nothing else worked to allow diskmgmt to shrink it, including all the normal stuff like disabling page files, snapshots, etc. it shows me how it was reordering parts of the ssd.

Alawami ,

Random reads are still slower than sequential in SSD. try torrenting for a year on SSD, then benchmark then defragment then benchmark. it will be very measureable difference. you may need some linux filesystem like XFS as im not sure if there is a way to defrag SSDs in windows.

LazerFX ,

That’s because the drive was written to its limits; the defrag runs a TRIM command that safely releases and resets empty sectors. Random reads and sequential reads /on clean drives that are regularly TRIMmed/ are within random variance of each other.

Source: ran large scale data collection for a data centre when SSDs were relatively new to the company so focused a lot on it, plus lots of data from various sectors since.

Alawami , (edited )

I’m pretty sure running XFS defrag will defrag without trimming no matter the type of block device.

Edit: yea you might actually be right. I Played with my fstab too much years ago, and never thought of that untill now

LazerFX ,

I understood that XFS automatically mounted SSD’s with XFS_XFLAG_NODEFRAG set? Is this not the case?

Alawami ,

yea you might actually be right. I Played with my fstab too much years ago, and never thought of that until now

But does that flag affect manually running xfs_fsr?

LazerFX ,

According to the man(8) page, it will avoid touching any blocks that have the chattr -f flag set, which is XSR_XFLAGS_NODEFRAG… So I think if the docs are still accurate to the code, yes.

A lot of ifs in that assumption.

lud ,

Pro tip: That tip has been obsolete for a long time now. Running the defragmentation tool on an SSD in Windows optimizes the drive (pretty much just running TRIM). It’s not possible to defragment an SSD in Windows (maybe there is a way using some register hack but that’s out of scope)

TheKMAP ,

Defragging is about… defragging: making the data contiguous (a continuous stream along one arc of the same radius) so it doesn’t have to jump around.

KillingTimeItself , in Roses are red, violets are blue, everyone is using IPv6, why aren't you?

rose are red, violets are blue, money is the reason we can’t have nice things.

UntitledQuitting ,

Roses in summer, violets in spring, it’s trivially easy this rhyming thing

KillingTimeItself ,

shitposting properly is the objective, regardless of my rhyming imperative. My post must be shit, in order to get the hits.

JackbyDev ,

This is why I hated r/boottoobig

FiskFisk33 ,

Roses are red, violets are blue, sod off.

key , in Cupholder.exe

That joke was constant in the early 00s.

Dave , in Cupholder.exe
@Dave@lemmy.nz avatar

Haha I remember the days of downloading random EXEs off the internet and running them to see what they do (also the days of CD-rom drives).

My auntie somehow managed to get a virus that played Für Elise through the motherboard speaker and never stopped so long as the thing was on. I don’t think they ever solved it, in the end they just got a new PC.

bandwidthcrisis ,
henfredemars ,

I’m impressed that the computer was usable with the failed CPU fan.

Dave ,
@Dave@lemmy.nz avatar

Super impressive since we used to play Quake 2 all day on it!

fuckwit_mcbumcrumble ,

Computers in 97 didn’t need much in the way of cooling. A large passive heatsink was plenty for those CPUs. They’re not the 300+ watt behemoths we have today.

Pacmanlives ,

I really remember heatsinks being a thing on overclocked systems around that time frame and then once we got to P4 cpus the chilling towers appeared those things were massive

fuckwit_mcbumcrumble ,

The lower power 486s didn’t even need a heatsink. The P3 was the first to take a heasink resembling what we have today, but damn did the P4s need some serious cooling.

It’s kinda funny how we think the 100 watts of a desktop P4 was insane when now the TDP of a high end laptop CPU is more than that.

Illecors ,

It’s kinda funny how we think the 100 watts of a desktop P4 was insane when now the TDP of a high end laptop CPU is more than that.

It really isn’t. Modern mobile cpus barely sip power.

mbfalzar , (edited )

PL2 on a 14900T is 106W

Edit: I’m an idiot, T series is low power socketed, not mobile. 14900HX has a TDP of 55W but boosts short term to 157W, which is still pretty ridiculous

fuckwit_mcbumcrumble ,

My 11950H (and all other “full power” Intel mobile CPUs) have a PL1 of >100 watts (109 for mine), and mine a PL2 of 139 watts. This laptop is about an inch thick.

Nothing about this laptop sips power, I’ve gotten as bad as 30 minutes of battery life out of a 90 watt hour battery not playing games.

ICastFist ,
@ICastFist@programming.dev avatar

If you meant cell phones and tablets, that’s mostly due to the different architecture. RISC processors are super energy efficient, which also makes them much cooler to run.

x86-64 is a CISC architecture, which tends to be much more power hungry. There are only a couple of very low power Celeron CPUs that work under 10W of TDP, while that’s very common among phones’ CPUs.

Trainguyrom ,

x86-64 is a CISC architecture

In many cases it’s actually RISC under the hood and uses an interpreter to translate the CISC commands and run them in the most optimal manner on the silicon

ARM and RISC-V absolutely scale up to multi-hundred watt server CPUs quite easily. Just look at the Ampere systems you can rent from various VPSes for example

The big benefit that ARM and RISC-V have is they have no established backwards compatibility to keep carrying technical debt forwards. ARM versions their instruction sets and software has to be released for given versions of ARM cores, and RISC-V is simply too new to have any significant technical debt on the instruction set side.

Atom cores were notable for focusing the architecture on some instructions then other instructions would be a slog to execute, so they were really good at certain things and for desktop use (especially in the extremely budget machines they got shoved into) they were painful. Much like how eCores are now. They’re very carefully architected for power efficiency, and do their jobs extremely well, but an all eCore CPU is a slog for desktop use in many cases

vaionko ,

My Pentium 100 even says “Heatsink req’d”

psud ,

I helped set up a friend’s “586” (about equivalent to a Pentium 1) and he had neglected to buy a heat sink or fan

A hammer was a sufficient heat sink for the time it took to set up windows

Dave ,
@Dave@lemmy.nz avatar

Holy shit, TIL!

bandwidthcrisis ,

When I read it, it stirred a distant memory of hearing such a story before, so I knew that there was something behind it and looked it up.

LodeMike ,

Literally why would someone make that. That is completely indistinguishable as a signal.

Dave ,
@Dave@lemmy.nz avatar

I mean I guess you are supposed to take it to your computer repair shop and tell them it won’t stop playing Für Elise, and the shop is supposed to recognise it as a failure of CPU fan signal. If it just beeped a few times on startup then people would ignore it, and if it beeped constantly then well maybe Für Elise is nicer.

LodeMike ,

Huh yeah that’s MUCH better than throwing a post code and playing a beep during startup to signal something is wrong.

mox ,

Sadly, many motherboards don’t have POST code displays.

LodeMike ,

Hm. Well if the motherboard can play a song it can blast “<Type> Error” during startup to be infinitely more helpful.

awesome_lowlander ,

Would any of your tech-handicapped relatives actually pay it any attention, though?

LodeMike ,

Yes

awesome_lowlander ,

Can we trade relatives?

LodeMike ,

No

LodeMike ,

Tip: be passive aggressive and sarcastic when helping them. It both teaches them the solution in a memorable way, makes them not want to get help from you again, AND makes them think twice before doing so.

Dave ,
@Dave@lemmy.nz avatar

I don’t think those speakers are capable of voice. They can handle a few different beep tones and that’s about it. The song was not like listening to Spotify, it was played using beep tones.

LodeMike ,

Ohhhh right

gaylord_fartmaster ,

That would be way more complex to have the motherboard play than a sequence of beeps at different frequencies. Especially at the time.

LodeMike ,

Fair

bandwidthcrisis ,

You could just about play speech using one bit output using pulse-width-modulation. But it was almost unrecognizable. And would take a lot of memory for the time.

It was usual to have different numbers of beeps for POST errors.

But this was an age when a PC would say “Keyboard error. Press any key to continue”, so things were not thought out that well.

14th_cylon ,

If your keyboard was actually working, you pressed a key. If it was not working, you went to get new keyboard. What is “not thought through” about that?

bandwidthcrisis ,

But you’re not allowed to proceed in life until you’ve pressed any key!

thejml ,

I had an Athlon motherboard with voice POST messages… one night I woke up to it saying “your CPU has a problem!” over and over and was freaked out until I was completely awake and figure out what was wrong.

It wasn’t high quality coming through the piezo speaker, but it was good enough.

Asidonhopo ,

I definitely remember short 2 or 3 second clips of relatively high quality music being played through our family’s IBM XT’s motherboard speaker at one point using a demo we got from a BBS or the Public Domain Software site in the mid-80s. It wasn’t easy but some madman made a proof-of-concept that did it and it was incredible at the time.

Scubus ,

“my shits fucked yo”

mox ,

Reminds me of the Apple version of Karateka, which did something special if you inserted the floppy disk upside down.

theverge.com/…/karateka-apple-ii-upside-down-east…

Lucidlethargy ,

Can’t view this without cycling my VPN… We need a way to see reddit posts without visiting reddit. It’s this a thing? Like… Piped for Reddit.

bandwidthcrisis ,

It explains that it means “fan failure”.

And there was a link to a video of it happening.

The only other link to an MS support page did not work.

morrowind ,
@morrowind@lemmy.ml avatar

Motherboards have speakers?

Dave ,
@Dave@lemmy.nz avatar

Are you trying to make me feel old?

disguy_ovahea ,

I’m afraid. I’m afraid, Dave. Dave, my mind is going. I can feel it.

henfredemars , (edited )

They do, but it’s a very simple speaker that’s really more of a buzzer than what you might think of as a speaker.

Many motherboards use a combination of beeps to report hardware errors if you fail on power on.

can ,

Beep beep

jaaake ,

Back in my day, that used to be the only way a computer could produce sound. Later on you could purchase a specialized sound card that would take up a slot in your motherboard.

0110010001100010 ,
@0110010001100010@lemmy.world avatar

Damn, I feel old now…

grysbok ,
@grysbok@lemmy.sdf.org avatar

My dad used to disable the motherboard speaker because the noises games made back then were more annoying than fun. We eventually got a soundcard, and that was awesome.

jayknight ,

I thought I was the cool kid when I got my SoundBlaster 16!

SpaceNoodle ,

The anticipation as you figure out a new IRQ and DMA configuration so you could play with your new toy

Klear ,

And you could plug in your joystick into the soundcard, because where else would you put joystick, right? Perfectly logical.

smeenz ,

Bleepers

psud ,

386 era machines often had a 4 inch speaker in the front panel. It couldn’t do much. Some main boards still come with headers for a speaker, some even come with an electret beeper

Feathercrown ,

A good number do, but you won’t hear anything during normal operation. If your vomputer has ever beeped at you when you try to turn it on at 0% battery, accessed the bios, etc., there’s a good chance that was the motherboard speaker.

Irelephant ,
@Irelephant@lemm.ee avatar

Slightly related, it is really annoying you cant stop the boot speaker on the PS4 without voiding your warranty and ripping the speaker out

disguy_ovahea ,

There was also a program that would open the CD-ROM drive and play a raspberry noise at random intervals. It was a fun prank to set it to run at login.

bandwidthcrisis ,

Drain.exe would say “water in drive a:, commencing spin cycle” then power up the drive and make a gurgling sound.

Sheep.exe … would create a sheep that would wander the desktop.

Dave ,
@Dave@lemmy.nz avatar

Ah shit the sheep thing! In fact, there were others I can’t remember. And I seem to remember somewhere along the line they went from fun to spam things walking around your screen trying to make you buy shit or maybe they were trying to scam you, I can’t remember but they weren’t fun anymore, and hard to get rid of.

bandwidthcrisis ,

I remember an obscure one named “grommit” that was a dancing animated character and you’d click it to change arm and leg movements.

Bonzi buddy was over of the bad ones, maybe?

Dave , (edited )
@Dave@lemmy.nz avatar

Bonzai buddy! Yes, that was one. Also I seem to recall naked women ones you couldn’t close.

I don’t remember grommit, but also I failed to find anything when trying to search it up. It shares its name with too many things.

boonhet ,

I had a cottonelle puppy so basically a toilet paper ad. But it’s not even sold in my country, we have other brands.

ArmoredThirteen ,

Haha, in highschool I put sheep.exes into the school labs startup folders as a prank once. A couple days later the tech teacher approached me and was like “nobody’s in trouble but these things are a nightmare and if I have to reimage half the lab to get rid of them it would personally ruin my day”. Somehow all the sheep were gone by the next day

ssj2marx ,

School computers back then were a wild west. I remember having Starcraft on the school shared drive and playing it in homeroom.

captain_aggravated ,
@captain_aggravated@sh.itjust.works avatar

I remember labs full of networked Win 98 machines in middle school, with like Novell software on them for login credentials and whatnot. The computers sat there with a login screen and when students logged into it you would be presented with the Office suite and a restricted web browser and some educational packages. A lot of normal Win 98 stuff wasn’t there though, like any settings menus. But there was some convoluted way where you could bring up a help text and then by navigating deep in the menu system somehow cause it to launch to a “normal” Win 98 desktop.

JasonDJ ,

I remember getting sent to the principals office for “hacking” (pinging the computer in the next room) in like 8th grade.

Back in 4th/5th I actually was hacking, modifying our user menu to add Windows 3.1 and a password (copying config from a teacher’s profile). Also brute-forced at least two teachers passwords.

I’m a network architect now, so there’s that.

ICastFist ,
@ICastFist@programming.dev avatar

I’d often bring a floppy with wolf3d or doom to deal with the boredom

redbr64 ,
@redbr64@lemmy.world avatar

Lol the für Elise thing is funny. Back in highschool I got a “PC maintenance” credit which had me assigned as support in the computer lab. I made a batch script that ran on startup and showed a warning message saying the hard disk will self destruct and did a countdown from 10 with the motherboard speaker beeping down, fun times

Dave ,
@Dave@lemmy.nz avatar

Haha evil! I love it!

TootSweet , in Cupholder.exe
can ,

How could I know, out of curiosity? I probably have the exe from the time period.

TootSweet ,

Great question! Not really my area of expertise, but probably there are at least a couple of possible avenues. One is decompilation and/or disassembly and static analysis. (Basically use automated tools to reconstruct the original source code as best it can and then read that imperfect reconstruction of the source code to figure out what it does.) Another is isolating it (“air gap” – no network or connectivity to anything you care about) so you’re sure it can’t do any damage and running it with tools that record/report everything it does. (On Linux, one could use strace and/or GDB. On Mac, dtrace. Not sure what the equivalent is for Windows programs running on Windows.)

Actually, I guess another option could be to set up an isolated system, record a whole bunch of information about it before running the .exe then after running the .exe, examine it to see what you can find on the filesystem or in the registry or in RAM or whatever that might have changed. It wouldn’t catch everything, though. Like if it made a network connection or something but didn’t actually change anything on the filesystem, it might not leave any traces.

Whatever the case, it’d probably require some specialized tools and expertise. But it’d be an interesting project.

DudeDudenson ,

That last part, that’s what sandboxie is for

fuckwit_mcbumcrumble ,

Try decompiling it.

mhague ,

There are tracing programs that let you see when a program makes system calls to read and write files, control hardware, etc. It might be easiest to run it and see what it does in a VM sandbox. Process Monitor looks like a strace equivalent on windows.

originalucifer , in Cupholder.exe
@originalucifer@moist.catsweat.com avatar

naw, what you do is write a small exe to play "youre the best" by joe espesito through the pcspeaker at 15% volume than you can trigger remotely..randomly until the user goes mad

"doesnt anyone else Hear that?!"

brbposting ,
thefartographer , in Cupholder.exe

I miss Macbarf…

can , in Cupholder.exe

I have a folder of “pranks” like these from way back and they were harmless but sure enough they fire off modern anti virus software.

ImplyingImplications ,

I made one called “crash_bandicoot.exe” that opened the windows calculator in an infinite loop.

fuckwit_mcbumcrumble ,

I had one of those, but it was just called putting something on the calculator key.

See also: www.youtube.com/watch?v=vvDK8tMyCic

jh29a ,

The modern school equivalent of cheap pranks on computers isn’t some elaborate virus, it’s just pressing the “mail” or “calculator” keys on the keyboard for the guy next to you. Never personally witnessed anything more elaborate, though my classmate apparently distributed dubious batch files he wrote once

DrGiltspur ,
@DrGiltspur@lemmy.world avatar

How about the one that launched a dialog box: “Do you have a small penis? Yes/No”, and if you moved your mouse near the “No” button, the button would run away around the screen?

Man, good times.

can ,

Odd, that button always worked for me.

Akasazh ,
@Akasazh@feddit.nl avatar

I remember with mobile phones you’d have an app that was called shave or something like that.

It would play the sound of a shaving apparatus and you’d run your phone across your cheek pretending to shave

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