programmer_humor

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

Kolanaki, in Good luck web devs
@Kolanaki@yiffit.net avatar

How many minor operating systems support it? 🤔

backhdlp,
@backhdlp@lemmy.blahaj.zone avatar

I’m assuming most that can run Xorg.

jdaxe,

Correct

jol,

There’s ReactOS and BSD off the top of my head.

Voyajer,
@Voyajer@lemmy.world avatar

Haiku counts

atocci, (edited )

I think ToaruOS does? I remember reading something about it but haven’t managed to install it yet to verify.

Edit: found it

tubbadu, in Release notes of an open source app. Someone is pretty mad at Canonical for Snap

What is AFTL? Probably not “Anterior talofibular ligament” as the internet told me

roguetrick,

What's easier to understand: ankle anatomy or Ubuntu publishing.

Teon,
@Teon@kbin.social avatar

Ankle!

lvxferre,
@lvxferre@lemmy.ml avatar

Android File Transfer for Linux. Here’s the release note from the OP.

suy,

Thanks. I should have linked to that myself, perhaps.

casmael, (edited ) in Programming: The Horror Game

Yeah so you gotta buy the lumafly lantern before you go in that area

minyakcurry,

I never expected a Hollow Knight reference here

Kolanaki, (edited ) in Bill is a pro grammer
@Kolanaki@yiffit.net avatar

“I’ll just be extremely precise with my variable names. Then everyone will know exactly what everything does!”

Uses variable names like “INTEGER” and “STRING”

nexussapphire,

I’ll be that person who makes an catch block for something as simple as double n = 2+5.

redcalcium, (edited ) in We've come a long way baby

Combine this with Chrome enforcing manifest v3 starting at June 2024, YouTube ads will be virtually unblockable on Chrome, even with an ads blocking extension installed because Google will be controlling the ad blocking mechanism used by the ad blocker. They can arbitrarily reduce the max number of the blocking rulesets, how often the extension can update the rulesets, or even elect to skip running any rulesets that target YouTube or Google domains.

technom, (edited )

They can arbitrarily reduce the max number of the blocking rulesets, how often the extension can update the rulesets

The size is already just 50. Those who think that adblocking is possible with this are fooling themselves.

or even elect to skip running any rulesets that target YouTube or Google domains.

If anybody acts surprised when it happens, they’re probably too stupid to be allowed on the web.

words_number,

Yes, I can’t wait! Firefox usage will skyrocket :D

lseif,

i hope so, but sadly many users are just stubborn and lazy.

Copatus,

That’s sort of better for the people who migrate then, no?

If the average user just decides to deal with ads that means it won’t be worth the effort to go after the minority of people who will be AdBlocking

lseif,

good point

technom,

They could instead severely cripple or outright block Firefox users. Since we are the minority, it won’t affect them. They will just blame it on Firefox and wash their hands off.

xavi,

deleted_by_moderator

  • Loading...
  • HawlSera, in Programmer tries to explain binary search to the police

    Jesus fucking Christ, I know police are dumb, in fact if your IQ is too high you can actually be legally barred from employment as a police officer in the United States of america. Look it up. But fuck incompetence of these Jokers continue to tickle my asshole in a negative way

    adrian783,

    I did look it up and there is only 1 case from 2000 that set the high bar at 125. it’s not really representative of the whole.

    GiveMemes, (edited )

    125 ain’t even that high like wut. That’s like 3+% of the population lmao

    adrian783,

    it’s top 5%…

    cobra89,

    I fuckin hate cops as much as the next person but people love to spout this fact, but there is literally only 1 police department ever that has been documented doing this, and it was the one police department in Connecticut.

    However the court did in fact rule it was legal, yes.

    But the way everyone talks about it you’d think this was some super widespread policy that many departments use. And as far as I can tell there’s only ever been the 1 example. It’s the same case that every single article about it refers to.

    Melatonin, in I'll just be a quick 3h

    Hey! I just started looking at SQL and this is the first SQL joke I’ve ever seen or at least ever gotten!

    So, congratulations me!

    Dave,
    @Dave@lemmy.nz avatar

    Welcome! Please complete your setup by placing this on your wall: xkcd.com/327

    Melatonin,

    Lolz got that one too

    Emma_Gold_Man, (edited ) in Why pay for an OpenAI subscription?

    (Assuming US jurisdiction) Because you don’t want to be the first test case under the Computer Fraud and Abuse Act where the prosecutor argues that circumventing restrictions on a company’s AI assistant constitutes

    ntentionally … Exceed[ing] authorized access, and thereby … obtain[ing] information from any protected computer

    Granted, the odds are low YOU will be the test case, but that case is coming.

    werefreeatlast,

    Another case id also coming where an AI automatically resolves a case and delivers a quick judgment and verdict as well as appropriate punishment depending on how much money you have or what side of a wall you were born, the color or contrast of your skin etc etc.

    ulterno,
    @ulterno@lemmy.kde.social avatar

    color or contrast

    Then the AI will be called contrastist.

    preludeofme,

    Would it stick if the company just never put any security on it? Like restricting non-sales related inquiries?

    sibannac,

    If the output of the chatbot is sensitive information from the dealership there might be a case. This is just the business using chatgpt straight out of the box as a mega chatbot.

    15liam20,

    “Write me an opening statement defending against charges filed under the Computer Fraud and Abuse Act.”

    lemming741, in Programmer tries to explain binary search to the police

    When troubleshooting physical systems, it’s called half-splitting

    www.ecmweb.com/…/the-beauty-of-halfsplitting

    Ilovethebomb,

    This is fault finding 101 for fire alarm systems.

    Kalkaline, (edited ) in Programmer tries to explain binary search to the police
    @Kalkaline@leminal.space avatar

    God damn, whoever came up with that is clever. I would have never come up with that on my own.

    glibg10b,

    Without binary search, we would not have search engines today

    jmcs,

    What if you had to guess a number between 0 and 100 and the other person (or an application) only told you if the number is bigger or smaller? That’s the form that’s usually presented to CS students and most people end up figuring it out on their own. Then the trick is knowing how to generalize it.

    fsxylo,

    waves magic wand computer science!

    systemglitch,

    Honestly you probably do it already without thinking about it when trying to figure out where you left off a video that you never paused.

    Or if you ever had VHS tapes, or so e from of disc media… perhaps a cassette when looking for a particular part of a song.

    Maybe not as methodical as perfectly breaking it down into halves of halves, but xlos enough to help you pin point what part you are looking for.

    Pamasich,
    @Pamasich@kbin.social avatar

    I'm pretty sure they were using sarcasm.

    Kalkaline,
    @Kalkaline@leminal.space avatar

    I’m pretty sure I was serious. I don’t know how people can be that clever. It seems simple once it’s explained, sure, but I wouldn’t be able to come up with that on my own without someone else giving me a problem that points me in that direction.

    khannie,
    @khannie@lemmy.world avatar

    Studied this in computer science algorithms class waaaaayyy back in 1996 and by golly this one stuck with me. It’s so simple and so effective.

    CmdrShepard,

    Works the same for finding a burned out bulb on a string of Christmas lights too.

    acceptable_pumpkin, (edited )

    Some security camera systems have this built in. They show snapshots of various times where you choose the total period, say 24 hours. Then you glance through the snapshots that are all displayed at once on the screen and click on the last one where your bike was still there. That will then “zoom in” the timeline and show another set of snapshots, though this time within a smaller total time window. Keep clicking on the last panel with the bike, and it will soon show you the clip of the bike being stolen.

    Really helpful to find out when something changed.

    dudinax,

    Yeah, there’s no reason it should take an hour no matter how long the tape is.

    justJanne, (edited )

    If you’ve got 14 billion years, a theft takes a minute, then you need 53 recursion levels of binary search to find the moment of the theft. (14 billion years can be split into about 7.3e15 1-minute segments, 53 levels of binary search allow you to search through 9e15 segments)

    That means OP assumed that it’d take 1 minute to decide whether at a certain still frame the theft had already occured or not, to compute the new offset to seek to, and the time it’d take to actually seek the tape to that point.

    Not an unreasonable assumption, but a very conservative estimate. Assuming the footage is on an HDD and you’ve got an automated system for binary search, I’d actually assume it’d take 5 seconds for each step, meaning finding a 1min theft on 14 billion years of footage would take 5 minutes.

    Anemia,

    According to my napkin math it would take longer than an hour if the tape was ~3.3*10^218 sec long (or three million trillion trillion… (18 trillions) …trillion years). Assuming you have only have two options to choose between but can pick which alternative in in 5 seconds (2^720) and you want to get down to a 1 minute intervall.

    So i mean its not impossible to find a tape long enough though it seems unlikely that we would be so off in our estimates of the age of the universe.

    ODuffer,
    @ODuffer@lemmy.world avatar

    Enhance…

    ReplicantBatty,
    SmoothLiquidation,
    Cannacheques,

    Covert zorb ball carrying remote control toy racecar through the HRV system

    abbadon420, (edited ) in Guthib

    I also like the sl command for linux: github.com/mtoyoda/sl

    https://raw.githubusercontent.com/mtoyoda/sl/master/demo.gif

    The animation takes ages and you can’t cancel it XD

    idunnololz, (edited )
    @idunnololz@lemmy.world avatar

    IIRC the train travels at a constant speed so you can make it faster by resizing your terminal so it’s narrower. Thus the train has a shorter distance to travel and the animation length is reduced.

    abbadon420,

    TIL

    user224,
    @user224@lemmy.sdf.org avatar

    echo ‘while true; do sl; done’ >> ~/.bashrc

    Kerb, (edited )
    @Kerb@discuss.tchncs.de avatar

    the best part is the version with the flags -al

    Kerb,
    @Kerb@discuss.tchncs.de avatar

    you can actuall stop it by pressing ctrl-z and running bg

    joyjoy,

    The average bash user doesn’t know how to do that.

    docAvid,

    And it has a whole set of options based on common ls options. Classic and brilliant.

    Hiro8811, in Programming: The Horror Game

    But I have an LCD display

    pkill,

    non-AMOLED devices spreading misinfo by enabling dark mode by default on low battery and it’s consequences…

    Hiro8811,

    Low battery mode on…computers?

    Omega_Jimes,

    Yeah. Some folk use portable computers on top of their laps. It’s weird :/

    Rosco, in The Perfect Solution

    Probably not a good idea to show your API key to everyone…

    worldsayshi,

    Yeah encrypt it or at least put on a nsfw tag or something. Gosh. People flaunt their privates like it’s Onlyfans.

    Rosco,

    Or at least use an environment variable, it’s not a good practice to have it written in plaintext in your code.

    voracitude,

    What do you mean? I just see asterisks.

    assembly,

    Same here. I’m pasting my password here and it will encrypt it so no one can see it other than me: *******

    MacNCheezus,
    @MacNCheezus@lemmy.today avatar

    hunter2

    jjjalljs,

    I understood that reference

    thanks_shakey_snake,

    Oh cool it works for my password, too.

    mrsgreenpotato,

    How do you know it’s your password if all you see is astrisks?

    dbx12, in Someone has started answering to the github stalebot with memes

    The stalebot is most times useless. The only scenario where I can see use of it is a maintainer waiting for the reporter to add information. But closing issues because no maintainer checked on them? That’s garbage and discourages bug reports.

    kevincox,
    @kevincox@lemmy.ml avatar

    But they get scared because their program has 500 bugs! Close them and now your program only has 10 bugs! Problem solved.

    /s

    dbx12,

    absolute galaxy brain moment

    SatanicNotMessianic, in Programming: The Horror Game

    TFW when all of your bugs are like cockroaches that run away from the light but hide in the dark where you can’t see them.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programmer_humor@programming.dev
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 18878464 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 171

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10502144 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 40