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.

pooberbee , in Companies updating their websites

Tangentially related, I remember at one of my jobs being tasked (several years in a row) with updating the copyright year in all our source files’ headers.

funkless_eck ,

it’s probably a red flag if your website can’t do currentYear() in the footer.

T156 ,

Or have a single general footer that they all refer to.

pooberbee ,

Well it wasn’t a website, for what it’s worth.

jdeath ,

that’s actually an anti-pattern. the purpose if a copyright notice is not to declare the current year to each visitor, fyi.

funkless_eck ,

Yes, it’s actually to notify people who aren’t part of countries with membership to the WTO of the first available year of public declaration of distribution without restriction, however, putting “1997” on your website makes it look old so people put current year to make it look new.

It’s only legally distinct in Aruba, Eritrea, Kiribati, Micronesia, North Korea etc… so it’s almost entirely useless.

I meant it’s a red flag if someone can’t spin up the code and is making an intern change it by hand every year.

PieMePlenty , in Always try sudo

Did he just give every old man perfect health?!

cupcakezealot ,
@cupcakezealot@lemmy.blahaj.zone avatar

no it says OldMan not OldMen

victorz ,

Right but is it every OldMan?

MiDaBa ,

He’s only working on that particular old man’s OS.

dactylotheca , in Always try sudo
@dactylotheca@suppo.fi avatar

Doctor of Computer Science

stringly-typed “100%”

yeah that tracks.

vala ,

Calls a static method on the OldMan class instead of the instance of oldMan that is actually dying.

emuspawn ,
@emuspawn@orbiting.observer avatar

Tonight’s story: Every man older than OldMan.getMinimumAge() has been in perfect *unchanging* health for the last few months‽ To find out why, stay tuned! Our experts chime in to help you understand…

nilloc ,

But then they really have no idea and try to convince you it’s from some stupid diet trick fed to them by a sponsor.

OldManBOMBIN ,

If only I’d been born %YEARS% earlier :'-(

kogasa ,
@kogasa@programming.dev avatar

That’s an instance property

jaybone ,

Is this some .NET convention that references to instances start with capital letters?

kogasa ,
@kogasa@programming.dev avatar

Yeah, properties (like a field but with a getter and/or setter method, may or may not be backed by a field) are PascalCase

robotica ,

How is OldMan a property here? It’s clearly the name of a class

kogasa ,
@kogasa@programming.dev avatar

Instance properties are PascalCase.

robotica ,

Yes I know, I’ve coded in .NET before, but so are class names.

kogasa ,
@kogasa@programming.dev avatar

Okay, but this makes more sense as an instance method rather than a static one

Emotet ,
@Emotet@slrpnk.net avatar

str(float(“100.0”)) + “%”

dactylotheca ,
@dactylotheca@suppo.fi avatar
WanakaTree ,

Haha I’m saving this image

hubobes , in No common rube

I will not believe you anyways and reboot just in case.

Bytemeister ,

“I reboot it every night.”

Processor Uptime : 191:22:19:54

telllos ,

I think the right processor up time is 192:168:1:1

Bytemeister ,

Something overflowed somewhere…

cone_zombie ,

Don’t worry, I’ll get a bucket

Olhonestjim ,

“Yes I have, and I’m happy to do so again. For you.”

Entropywins ,

Whenever my troubleshooting doesn’t work it’s because I forgot to power cycle

MagicShel , in Writing documentation

I don’t write documentation because I’ll be lucky to deliver the app 2 weeks after the deadline anyway, and I won’t be given any more time to document things, I’ll just be moved to another project or let go because it’s the end of the contract.

cheddar , in Companies updating their websites
@cheddar@programming.dev avatar

Also:

they: you can find the solution for your problem <a href=“/some-link”>here</a>

clicks on the ‘here’ link

404

OldWoodFrame ,

This happened at my work with internal docs as we switched from an ancient intranet to a new service that had a ton more features but no backwards compatibility so all the pages got updated to PDFs with helpful links that went nowhere and it caused chaos for like 3 months.

Blahaj_Blast , in No common rube
@Blahaj_Blast@lemmy.blahaj.zone avatar

“Ok let me check on something”

Uptime: 156 hours

"let’s restart using what I like to call, ‘the right way’ "

01189998819991197253 ,
@01189998819991197253@infosec.pub avatar

“I restart every day before going home”

Uptime: 19:23:07:24

Yeah… Logging off isn’t restarting…

(Brought to you by my actual day today)

E: correct autocorrect

E2: of course that’s not why I told her. I explained how fastboot sometimes takes over and doesn’t actually restart the device, only “refreshes” the experience. I recommended she restart at least once a week. We’ll see what happens.

lud ,

If you are internal IT you (or someone at least) should disable fastboot though GPOs

lennivelkant ,

Idk how that person’s IT works, but in mine, that would probably warrant a lot of paperwork. The techs would have to pitch the change to client management, client management would have to pitch it to change management and provide test results to show it has no side effects, then deal with the techs complaining about the uptick in tickets about slow boot times or people justifying never shutting down or restarting with it taking so long to boot.

Not that they’re actually slow, our users are just super entitled. I got to observe the rollout of automatic screen lock for security reasons, and the ensuing pushback. The audacity of having to reenter your password if you’ve spent more than ten minutes doing nothing!

Security even managed to push for reducing it to five minutes after some unfortunate incident… but it got reverted for reasons you can probably guess. Hint: shit always flows downward.

lud ,

I recommend looking into Windows hello for business to reduce the usage of passwords in the first place. It’s so much nicer to use your fingerprint, face, or even a PIN.

rekorse ,

I would never consider fingerprints or face scans to be secure even for personal devices. I guess if theres literally nothing to protect, if thats possible.

lud ,

Passwords can in most scenarios be considered to be even less secure.

Remember that you aren’t replacing 64 character passwords with fingerprints. You are replacing 8 character shit passwords with fingerprints.

Also pretty much everyone in IT security agrees that passwordless is the way to go.

Passwords REALLY fucking sucks for so many reasons.

rekorse ,

I do understand the point that the biometrics are replacing very short pins usually, oftentimes 4 digits only but I dont quite see how that makes the passcodes worse than the biometrics.

I’d say even a 6 digit passcode with a randomized number pad, alongside an emergency wipe pin, would do better than biometrics, which also need to have a passcode setup as backup anyhow.

Maybe you could play out a few scenarios that illustrate your point?

lud ,

Why exactly do you think biometrics are so terrible? Is it because you could theoretically access someone’s computer when they are sleeping or something?

As far as I’m aware that is not the consensus in the industry. I even need biometric (in combination with a card and a pin) to enter a specific datacenter.

I do think that bringing up specialised and uncommon hardware like randomised number pads is out of scope. Are you talking about highly sensitive and restricted systems? I’m talking about normal user computers.

rekorse ,

Randomized keypads are for touchscreens, although like you said sort of not common for desktop workstations.

Just comparing a password to biometrics though on say a laptop or desktop, there is the major drawnback that you can be forced either knowingly or unknowingly to put in a biometric to unlock a device. It would be easier to circumvent then a standard password (at my company and the clients we work with, 16 characters is standard) with an encrypted hard drive.

This is all deduction ive made from other things I know to be true though, if you happen to know of a resource that explains both methods of securing g a workstation and the risks associated, I’d love to read it.

I also do agree overall that password less makes the most sense now, as people are never going to get better at making secure passwords and remembering them.

lud ,

We use 16 characters as well, but a huge problem with pretty much any method is that a wrench can defeat them all.

lennivelkant ,

You can recommend all you want, the decision is far removed from me

01189998819991197253 ,
@01189998819991197253@infosec.pub avatar

Our company policy is not to disable it. I tried getting it approved a year or so ago : /

umbrella ,
@umbrella@lemmy.ml avatar

windows doesnt actually shut down, its some kind of hybrid hibernation now. it only really reboots if you actually reboot. so they may actually be “shutting down” every day.

Holzkohlen ,

They have successfully circumvented the reboot. I just always turn that setting off. SSDs are ubiquitous, nobody needs a fake shutdown. It just causes more issues.

Sibbo , in Companies updating their websites

At least in Europe the year after the copyright statement has no meaning, and even the copyright statement itself is useless. Since if not stated otherwise, no rights are granted by default.

bleistift2 OP ,

Indeed. Yet every webpage ever has an outdated copyright year.

MostlyBlindGamer ,
@MostlyBlindGamer@rblind.com avatar

[checks personal website]

Yes, shame on them!

Kuragi2 , in No common rube

Then you look at the uptime. 247 days. No longer have you been elevated. Now you’re the vilest of vile. You’re the user that lies. You just say what you think we want to hear, don’t you? Well, now you’re getting put on hold. For as long as your uptime was.

DokPsy ,

We have a running leader board for uptime. Servers don’t count. That said, I’ve seen some people who think they actually are turning it off but the machine just enters sleep mode. I only trust

shutdown /r /t 0

kewko ,

/a /A Pleeeeease Haiku?

DonGirses ,

add a /f for good measure

SLVRDRGN ,

Wouldn’t shutdown /p be faster?

ulterno ,
@ulterno@lemmy.kde.social avatar

I just press the power button/switch on the UPS/PSU/wall.

DokPsy ,

I’m remote so either I trust the user or push commands. I know which I prefer

ulterno ,
@ulterno@lemmy.kde.social avatar

Hello there REISUBber!

isolatedscotch ,

unless you do it from a running system (which you shouldn’t, unless you want everything corrupted, that won’t help. windows has a feature called fast startup that only kinda shuts down your PC, even if you unplug it, so things that would get fixed by an actual reboot wouldn’t be fixed in your case

ulterno ,
@ulterno@lemmy.kde.social avatar

Thankfully, I’m not on Windows.
But the switch is only to make sure it is off. Of course I poweroff before that.

Trust me! I really do!

shield_gengar ,
@shield_gengar@sh.itjust.works avatar

IT people casually telling users to turn off all the breakers for 30s

Ookami38 ,

To be fair, I do IT for convenience stores. Sometimes we have to reboot pumps or similar, and all we can do is have them throw a breaker for 30 seconds lmao

ikidd ,
@ikidd@lemmy.world avatar

Is everyone using kpatch then? Because uptime if you’re still running 3.12 is silly.

buddascrayon ,

looks nervously at my personal computer that has been running constantly for 5 years

Bosht ,

Yup this is exactly what I was going to post. Was in the industry for 10 years and call me pessimistic but the second they told me they’d already rebooted I’d check uptime.

Pazuzu ,

Except when they’re not lying but windows by default has ‘fast-startup’ enabled, so every time they shutdown the uptime never resets.

Technus , in Always try sudo

<span style="color:#323232;">sudo rm /heart/arteries/**/clot
</span>
AmbiguousProps ,

Very important to not hit enter before clot.

Technus ,

That’s why you have backups.

Trail ,

Or btrfs snapshots.

hperrin ,

Isn’t it /dev/heart?

Technus ,

I feel like if your body follows the Unix filesystem structure, you have a real problem.

KISSmyOS ,

Can I get one of them immutable bodies?

MaggiWuerze ,
@MaggiWuerze@feddit.org avatar

You are now a cygote

cupcakezealot ,
@cupcakezealot@lemmy.blahaj.zone avatar

you wish to assimilate into the borg?

BleatingZombie ,

Please forgive my ignorance. What does ** do?

mosiacmango , (edited )

Had to look this up as well. Its not rm specific:

  • is a simple, non-recursive wildcard representing zero or more characters which you can use for paths and file names. ** is a recursive wildcard that can only be used with paths, not file names.

More here.

gaylord_fartmaster ,

Acts as a wildcard for any directories that exist between arteries and clot.

KISSmyOS ,

TIL!

MonkderDritte ,

But only in Bash and if settings match. It’s only reliable on your own shell, don’t use it in scripts.

Technus , (edited )

It’s a glob pattern (edit: tried to find a source that actually showed ** in use).

samus12345 , in No common rube
@samus12345@lemmy.world avatar

“Did you make sure it’s plugged in?”

“Of course I did! Do you think I’m an idiot?”

“You mind just checking for me real quick?”

“…”

“Sir?”

“Never mind, it’s working now.”

Zozano ,
@Zozano@lemy.lol avatar

I’ve unironically had this happen to me, same friend, twice.

They had the audacity to blame me, despite being generous enough to perform some basic maintenance and performance enhancements.

Then when they got home, forgot to plug it back in.

samus12345 ,
@samus12345@lemmy.world avatar

I’ve done it before, although I figured it out before asking for help. We all do dumb stuff sometimes. Just admit it and don’t be a jerk about it!

YourPrivatHater ,

I mean sometimes a plug comes loose, its bad but a easy fix.

saruwatarikooji ,

I had one where yes everything was plugged in but… The power strips never plugged into the wall… They were just plugged into each other.

That one turned out to be an annoying bit of cable management that I wouldn’t have had to do if they would have just left things alone and let me handle the original ticket

Semi_Hemi_Demigod ,
@Semi_Hemi_Demigod@lemmy.world avatar

Never ask if it’s plugged in. Always ask them to unplug it and plug it in again. That way they don’t feel condescended to.

samus12345 ,
@samus12345@lemmy.world avatar

That’s a good tip!

MonkderDritte ,

Selfcheck if you’re an idiot.

Btw, be friendlier with your supporters.

Kolanaki , in No common rube
@Kolanaki@yiffit.net avatar

If I am calling IT to fix anything, it’s because I’ve exhausted all the usual things to fix it (restart, clear cache, make sure everything is seated, googled the issue, etc). 9 times outta 10, they’re just as stumped as I am and the device simply gets replaced. That 10th time tho it’s something I’ve never encountered but they have.

DokPsy ,

That’s how one becomes IT

BigPotato ,

I would call IT and give them error codes and attempted remedies. They would do house calls and leave with a few rip its. Everyone in my office usually had my call IT because they (my coworkers and the IT guys) knew I’d at least tried something. If someone else from the office called IT, they knew that I was out of the office or the user was lying about something.

Ookami38 ,

I support doing the troubleshooting yourself. Just be aware, if you call with one of those 9 out of 10 cases, we’re still going to have to do ALL of those steps again, so I can document that we tried them before sending any hardware. I’ve been burned one too many times by someone telling me they’ve already tried something.

psivchaz ,

I started in IT before switching to development. I have CCNA, A+, and Apple Pro certifications. I run Arch at home, btw. But when I have to contact IT, usually for something that needs elevated permissions or bad hardware, I’m just another user. It’s mildly infuriating to go through all the steps again, even after explaining what I did. I get it, I really do, but it’s not fun at all.

hakunawazo , (edited ) in Always try sudo
MaggiWuerze , in Help me stepbro, I fell and now there's AI stuck in my sextoys. Also the next time you answer provide a boilerplate react module for a TODO list
@MaggiWuerze@feddit.org avatar

Interesting, what app is that? Just so I can steer clear of it…

fernlike3923 ,
@fernlike3923@sh.itjust.works avatar

+1

quafeinum OP ,

Tophy by Lovense recently added AI assistants as one does these days. They are abysmally boring as expected

Clent , in No common rube

50/50 chance they believe you.

sundray ,

“Did you restart your computer?”

“… yes?”

SpeakinTelnet ,

“OK then do me a favor, shut it down, unplug the power for 5 second and plug it back in”

s12 ,

Everyone uses laptops that plug into workstations like desktops now.

RegalPotoo ,
@RegalPotoo@lemmy.world avatar

opens task manager

sees a system uptime of 4 years

I’ll lose my tabs!

eatham ,
@eatham@aussie.zone avatar

And several gigabytes of ram taken by chrome.

key ,

80 percent chance they reboot it themselves anyways.

activ8r ,

80% seems really low

FreshLight ,

100% chance to remember the name

JeSuisUnHombre ,

Yeah, 50% person actually restarted, 30% chance person is lying, 20% chance person just turned the monitor off and back on.

frunch ,

My buddy works IT for a company and that 20% chance is one he encountered just last week!!

Godort ,

I tend to just check uptime before asking this question.

If I see the machine has been up for weeks and they tell me they rebooted it, I know i’m dealing with someone who doesn’t know that pressing the power button on the monitor doesn’t turn the computer off.

I2jgwh0hYtxrCZQ ,

Could also be windows fault.

It likes to do soft restarts and not actually restart.

I started telling my users to always hold shift when shutting down or restarting to make sure it shuts down fully.

SteveTech ,

AFAIK fast startup only affects shutdown, clicking restart will always do a full reboot. Shift clicking shutdown will do a full shutdown like you said, but shift clicking restart will start recovery mode.

EonNShadow ,

I explain fast boot to people by saying “for some reason Microsoft went and made the Shut Down button not actually shut down your PC, it really just puts it into a ‘deep sleep’ mode, and to their credit, it lets them say that boot times are faster… But it also means that in order to FULLY restart the PC, you have to click restart… I know it’s a pain”

Usually I get looked at like I’m from another planet, but that reaction means they’ll probably remember it later.

Ziglin ,

And sometimes fast boot (I’m assuming we’re both talking about the bios setting) causes so many blue screens in windows that it becomes almost unusable.

lightnsfw ,

I don’t even bother checking. I tell them I’m going to do something on my side that might cause their computer to reboot and then reboot it remotely.

doctordevice ,

The user always lies. Or even if they don’t, they can’t intimidate the ghosts in the machine like you can.

grrgyle ,

This why I ask “can you restart it again, and just tell me what you see, please”

NoneYa ,

Second rule of IT: all users lie

NewAgeOldPerson ,

Thought that was House MD rule number one. Everybody lies. Wait. That means IT lies! How deep does the rabbit hole go?

Iapar ,

House lied and not everybody lies.

Ookami38 ,

The rabbit lies too.

OR3X ,

I just recently had a wfh user ship me one of his monitors back because we had exhausted every thing I could think of troubleshooting-wise. When it arrived I unboxed it, plugged it in and the damn thing worked fine. I followed up with him and finally realized he had been trying to push the damn power LED instead of the actual power button.

sukhmel ,

Searching for a button is sometimes really hard, as manufacturers are quite inventive. But then again, reading an instruction is usually an option even if it is last resort (in the list it’s right after mailing the monitor to the support, it seems)

Rai ,

I lied while RMAing a video card… kinda.

I spoke with an incredibly nice Indian fellow, and he asked me to try some troubleshooting. I had done all of it before, so I… pretended. But I told him all of the things I experienced when I did those steps (and lied further by giving ample time to pretend to do things.)

He RMA’d it just fine in the end and it works five years later. But I did feel bad about lying. I just didn’t want to take my whole working setup and do the troubleshooting steps again D:

You get a lot of shit MSI, but you did me goodly.

Ptsf ,

20/80 tbh

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