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.

prole , in Computer components cheat sheet

I thought this was a D&D alignment chart at first… And yes, Inkjet printers are chaotic evil.

nxdefiant ,

I would say it’s pretty accurate across the grid, but I’d swap HDD and ram. HDD is chaotic neutral, because it can turn into a maraca at any moment.

ripcord ,
@ripcord@lemmy.world avatar

It’s more unreliable than SSD?

nxdefiant ,

absolutely.

nick OP ,

I think they’re lawful evil, more devils than demons.

stebo02 ,
@stebo02@lemmy.dbzer0.com avatar

yes because unfortunately selling printer ink at higher prices than human blood is somehow completely legal

snausagesinablanket , in Good luck speed cameras
@snausagesinablanket@lemmy.world avatar
IzzyScissor ,

Can you explain the joke here? My neighbor has one of these on his truck, and it still doesn’t make any sense to me.

nxdefiant ,

Your neighbor is the joke. (real answer: the sticker implies a cop would find being called gay very offensive, to the point of not pulling this person over. In reality the cop would likely just shoot you and say you were evading arrest or something while pissing on your corpse.)

JasonDJ ,

So he’s into water sports?

KillingTimeItself ,

the cop is.

Anticorp ,

Dude, settle down a little, or a lot.

snausagesinablanket ,
@snausagesinablanket@lemmy.world avatar

deleted_by_author

  • Loading...
  • Anticorp ,

    But then he’d be stuck being a cop for the rest of his life.

    magic_lobster_party , in Rust coin

    It’s finding posts online and try to convince people to rewrite their projects in Rust.

    onion , in Should I file a bug report? 😀
    snaggen OP , (edited )
    @snaggen@programming.dev avatar

    Yes, that was the first that came to my mind when I saw the TIL post… which also was why I felt the need to see if that rant is still valid, or if modern libraries could handle that.

    WeirdAlex03 ,
    @WeirdAlex03@lemmy.zip avatar

    And then you get a call from a Swedish Wikipedia editor and they say:

    February 30 was a day that happened in Sweden, 1712.[4] This occurred because, instead of changing from the Julian calendar to the Gregorian calendar by omitting a block of consecutive days, as had been done in other countries, the Swedish Empire planned to change gradually by omitting all leap days from 1700 to 1740, inclusive. Although the leap day was omitted in February 1700, the Great Northern War began later that year, diverting the attention of the Swedes from their calendar so that they did not omit leap days on the next two occasions; 1704 and 1708 remained leap years.[5]

    To avoid confusion and further mistakes, the Julian calendar was restored in 1712 by adding an extra leap day, thus giving that year the only known actual use of February 30 in a calendar. That day corresponded to February 29 in the Julian calendar and to March 11 in the Gregorian calendar.[5][6] The Swedish conversion to the Gregorian calendar was finally accomplished in 1753, when February 17 was followed by March 1.[5]

    en.wikipedia.org/wiki/List_of_non-standard_dates#…

    Scoopta , in wait what
    @Scoopta@programming.dev avatar

    As a fan of tabs I see this as an absolute win

    SlopppyEngineer , (edited ) in dont();

    The car now phantom brakes for anything remotely suspicious, like a shadow from a tunnel or light fixture, causing numerous pileups behind it

    tryptaminev ,

    The rules for driving demand to keep at least enough distance to the vehicle before you, that you can safely perform an emergency break, if the vehicle should do so too.

    In driving ed i learned that you need to keep at least 2seconds distance to the car in front of you, one second to react and one second to perform a similiar break maneuver like them. If your vehicle is heavier you need to increase that distance.

    Whenever i drove like this the only result was people taking it as an invitation to swear in between the car in front of me and me. I want undercover cops in plain cars to just drive and record everyone violating the safe distance or takeing the space that is left as safe distance. We could resolve muncipal debt and drop the amount of deadly accidents by at least 50% this way.

    exocrinous ,

    Cops can’t solve bad driving. Fear of punishment is not an effective deterrent. We know this because we’ve done the psychology and looked at the numbers. Unsafe driving is an infrastructure problem. In my country, people leave enough space between cars. It’s not because we have more police than yours, it’s because we have safer designed roads. Every traffic accident that causes a death is an infrastructure failure.

    tryptaminev ,

    It is both.

    Germany often sees reckless driving compared to its neighbouring countries in similair road conditions. Lack of enforcement and small penalties do play an imporant role in that. The infrastructure is similiar, but other countries actually enforce things like speed limits much more actively. At the end of the day if bad driving equals unsafe driving, the person shouldnt drive.

    UndercoverUlrikHD ,

    Surprised to hear the rule is 2 seconds in Denmark, it’s 3 in Norway

    tryptaminev ,

    I’m in Germany

    UndercoverUlrikHD ,

    Ah sorry, got it mixed up with feddit.dk I think

    jadero ,

    Canada used to recommend 1 car-length for every 10 miles per hour. Along with metrification, that was changed to 2 seconds, but it’s been set at 3 seconds for a long time.

    I’ve yet to drive in traffic where even 1.5 seconds is manageable. More space than that and some slips into the gap, even if that leaves something like a loaded tractor-trailer hanging a second off their rear bumper.

    BaardFigur ,

    deleted_by_author

  • Loading...
  • SlopppyEngineer ,
    NocturnalEngineer ,

    Technically it’s always hitting the road & air, so it simple just doesn’t move.

    Hamartiogonic ,
    @Hamartiogonic@sopuli.xyz avatar

    This has the way. A god strategy to minimize the probability of an accident is to never move at all. Someone else might still hit you though, but that’s their fault.

    Clent ,

    No one can enter the vehicle because this is a collision. The vehicle automatically moves away from anyone that approaches it.

    nexussapphire ,

    That’s nothing new, my mother’s 2014 charger slows down to a complete stop if there’s a crisp shadow of a bridge in the right place on the road.

    Moghul , in Hey, I'm new to GitHub!

    The machine spirit requires that you submit the correct incantations

    ekky , (edited )

    like this?

    
    <span style="font-style:italic;color:#969896;"># Let Git take a rest with some yummy awk chocolate logs with delicious nuts and seeds, and don't be pushy!
    </span><span style="color:#323232;">git reset --hard $(git log --reverse </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">sed -n 1p </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">awk -F </span><span style="color:#183691;">"[ ]" '{print $2}'</span><span style="color:#323232;">) </span><span style="font-weight:bold;color:#a71d5d;">&& </span><span style="color:#323232;">git push -f
    </span>
    

    EDIT: Don’t actually run it.

    subtext ,

    Can you explain what this does? I’m thinking something along the lines of reverting all commits except the very first one?

    ekky ,

    You are correct! It sets HEAD to the first commit and then force pushes, deleting everything after HEAD.

    Though, it only affects the currently selected branch.

    No_Eponym ,
    @No_Eponym@lemmy.ca avatar

    The thingmabob that does the job is bippity-boppity-boo.

    Anticorp , in Sometimes things do go your way
    • The bug is from a library
    • There are 5 dozen related bugs on GitHub
    • The last commit to the library was 3 years ago
    bigboismith ,
    • Library is a read-only repo
    • last commit was 10 years ago
    Kolanaki , in Every goddamn time
    @Kolanaki@yiffit.net avatar

    movie about hackers comes out and is extremely realistic

    It’s 16 hours long and mostly just of a dude sitting at a computer typing code

    It bombs at the box office.

    Poem_for_your_sprog ,

    Are you constipated again?

    Kolanaki ,
    @Kolanaki@yiffit.net avatar

    I’m not even the poop guy. I’m just the guy with the big blue name that posts a lot.

    samus12345 ,
    @samus12345@lemmy.world avatar
    whostosay ,

    Are you real sprog? Need a poem, stat. Constipated and attempting a shit as we speak

    Poem_for_your_sprog ,

    Buffalo buffa Buffalo Buffalo bu Buffalo buffa

    onlinepersona ,

    I’ve love to watch a realistic hacker movie, because the shit that hackers get into is genuinely bonkers. For example, some white hats got all the way into Apple’s inventory system and IIRC they could’ve disrupted all of Apple’s logistics. Imagine if a black hat got into that. Or the Ukrainian hackers that got into the taxation system of the Russians and were there for a few months. Or the USAians who got into the biggest Belgian telecom and were kicked out years later by a Dutch security company.

    Movies or even better TV series showing the time it takes to get into such systems would be amazing. Day 1 phishing, day 40 established beachhead, day 120 gained access to internal system X, day 121 triggered internal alarm and was nearly discovered but was able to cover up traces, etc.

    Nobody watches 90 minutes of football matches. Everyone watches the highlights and that’s what movies could be too.

    CC BY-NC-SA 4.0

    Kolanaki ,
    @Kolanaki@yiffit.net avatar

    I could even imagine such a movie being titled “Highlight Reel.”

    jaybone ,

    There’s a podcast called Darknet Diaries you might like. Skip the first year or so and start after that.

    onlinepersona ,

    Yes! I’ve listened to those. Having some of those episodes in an anthology TV series could be wonderful. Some even deserve a series of their own.

    CC BY-NC-SA 4.0

    merc ,

    Nobody watches 90 minutes of football matches

    Um…

    pearsaltchocolatebar ,

    I guess tens of millions of people count as nobody.

    Unless they don’t mean American football. That Jacks the number up to probably over 1b

    merc ,

    I’m pretty sure they’re talking association football. Gridiron football “matches” (which are called games in the US) are 60 minutes of clock-on time but more than 2 hours if you count all the ad breaks and clock-stopped time. The 90 minute figure only makes sense for association football. And yes, it’s at least a billion people watching them every week.

    Omgpwnies ,

    oh and the ads run into playtime, so once the commercials are done, they give you a 30 second recap of what you missed, then back to commercials because the coach called a time out

    merc ,

    I’ve been to an NFL game twice, and it’s so much worse in person. At home at least the ad breaks are a chance to go to the bathroom or get a snack. At the game it’s not worth getting out of your seat and trudging up to the concourse because 2 minutes isn’t long enough for that. So, instead, you sit and wait for the action to resume.

    It also makes it more clear that a lot of the long timeouts are purely TV-based.

    There are plenty of time-outs that have to do with the state of the game: teams calling time-outs to discuss a plan, a time-out after a point is scored while the sides change, the 2-minute warning, the break after the 1st and 3rd quarters, and so-on. But, you also get explicit TV timeouts that are called by the TV networks when it’s been too long since the last commercial.

    In the stadium when that happens the offense might be in a flow, and the defense may be wobbling. But, the TV networks need to show their ads, so the network calls a timeout. Meanwhile, the players just stand around on the field, ready for the next play until the https://en.wikipedia.org/wiki/Television_timeout#/media/File:NFL_Sideline_Television_Coordinators.jpg lowers his bright orange glove.

    MacNCheezus ,
    @MacNCheezus@lemmy.today avatar

    Mr. Robot was fairly good at the realism, and even there it was mostly just good for jokes like this:

    https://i.redd.it/gx9y8fl490uz.jpg

    rambling_lunatic ,

    You sound like the type of fellow who would enjoy listening to Darknet Diaries.

    Anticorp ,

    Don’t forget 6 hours of digging through the garage behind the business they want to hack.

    cynar ,

    One of the funnier ones is that the matrix actually did hacking right. It was also so quick you don’t notice it.

    When Trinity hacks into the power station, it’s legit. She checks the software version, which shows an out of date version. She then uses a known flaw in that version to reset the password.

    It’s the only bit of actual hacking in the movie. They obviously knew that geeks would be checking it frame by frame, so they actually did their homework on it.

    Kolanaki ,
    @Kolanaki@yiffit.net avatar

    Hackers shows “real hacking” in the form of social engineering, dumpster diving for passwords, as well as the bit about the pay phones that, once was true if maybe not by the time the movie came out.

    snrkl ,

    lemmy.sdf.org/comment/7438870

    And it was actually 0day when the production company made the scene…

    merc ,

    Hacking is really a “montage” type activity, but is treated as something you can show in real time.

    Like, imagine the A-Team building some weapon out of spare parts but you had to watch the entire build process including measuring, cutting, screwing up the cut, throwing away the part and trying again…

    Or, imagine a martial arts film where the hero trains for the big fight… and you include the entire training regimen, showing them getting up at 6am each day to do sit-ups, then following the entire morning run…

    Really a hacking sequence should have those zoomed-in calendars with days flipping by and getting crossed out.

    If they really need the hack to be in the critical path of the action, it should only be something like:

    Boss: We need to hack the satellite!
    Hacker: What model is it?
    Boss: It’s a… let me see… KU-STRZ-4 out of Azerbaijan.
    Hacker: A 4-series? We’re in luck, NSA’s been sitting on a exploit for that model.

    Otherwise it’s as stupid as:

    Boss: We need to defeat Scar Killer in the Kumite tomorrow.
    Soldier: I did some basic unarmed combat in boot camp, but…
    Boss: You have 24 hours, get training!
    Next day, the soldier is massively jacked and is throwing flip kicks etc.

    MacNCheezus ,
    @MacNCheezus@lemmy.today avatar

    surprised Pikachu

    captain_aggravated ,
    @captain_aggravated@sh.itjust.works avatar

    No, I have an outline for a PERFECT realistic hacker movie that would put asses in seats. Basically, make it The Life And Times Of Deviant Ollam.

    Imagine a slightly farcical take on a heist movie, like take on Ocean’s Eleven with True Lies’ attitude. It’s kind of a heist movie, except the infiltrating crew has permission to be there from upper management, but no one else in the building knows this, and the stakes of getting caught are they get to tell their client their security is in fact pretty good. So since the stakes are non-existent, you can lean into the lulz a little bit. You have room for eccentric characters, witty dialog, a running gag of how hilariously bad door locks are, and an ending sequence where you’ve got a guy in the security room trying not to laugh as he texts the team leader “Just see what you can get away with.” And then some of the team is deliberately silly, acting like rebellious teenagers on bikes in the parking lot chased by half the security team, wackiness ensues, intercut with the rest of the team breaking into server rooms and just taking over this company.

    You can have the gearing up scene explaining what the gadgetry is. “This is an ESP key; it’s a microcontroller with an onboard SD card and Wi-Fi, that we plug into the data wires on one of your badge readers. How do we get it in there? Send two guys wearing high vis vests, one of them carrying a clipboard and watching the other, no one asks a thing. Yeah, there’s a tamper alarm that alerts the security guards if anyone opens the reader…I’ve never seen it hooked up. Now we get a list of every badge used on this reader, and when. See this guy who’s badging in like clockwork every 45 minutes? That’s a guard. And the ESP key isn’t only listening, it can also talk. We can make it send a credential as if the reader did, and unlock this door remotely. Tiffany has two RFID implants, one in each hand. We’ve cloned two different credentials to the chips in her hands, so she can walk up, present her hand to the reader, and it opens, thinking the guard just badged in. She’s carrying a bash bunny; which looks like a USB thumb drive, with a couple switches on the side. It’s actually a little computer that, when plugged into a computer, it can pretend to be a flash drive, a keyboard that can automatically type a whole malicious program really fast, a network device, basically anything we need to compromise a target computer. All Tiffany has to do is walk up to a computer and plug this in. We have it set to put this small text file of an ascii art cow saying “you’ve been pwn’d” on the desktop to prove we’ve infiltrated that machine, but we really could do…anything we want.”

    Make me a movie where a guy breaks into a server room in Pepsi pajama bottoms and a t-shirt that says “I’m A Liability” by slipping the latch with a piece of plastic he finds in a nearby trash can.

    AKA, make a movie about one of Deviant’s convention presentations. It’ll be endlessly entertaining.

    shotgun_crab , in TypeScript is Quantum Ready

    Schrödinger’s boolean

    mrkite ,
    @mrkite@programming.dev avatar

    Known to cause heisenbugs. They’re bugs that disappear when you try to measure them with a debugger or a printf.

    jaybone ,

    So regular bugs then.

    merc , in 4 billion if statements

    I like this bit at the end:

    As a side note, the program is amazingly performant. For small numbers the results are instantaneous and for the large number close to the 2^32 limit the result is still returned in around 10 seconds.

    caellian ,

    Really makes you question your sanity when optimizing jumps in code without benchmarks.

    merc ,

    For a long time I’ve been of the opinion that you should only ever optimize for the next sucker colleague who might need to read and edit your code. If you ever optimize for speed, it needs to be done with massive benchmarking / profiling support to ensure that the changes you make are worth it. This is especially true with modern compilers / interpreters that try to use clever techniques to optimize your code either on the fly, or before making the executable.

    Klear ,

    The first rule of optimization: Don’t do it
    The second rule of optimization: Don’t do it yet (experts only)

    Ephera ,

    I’m absolutely on-board …in application code.

    I do feel like it’s good, though, when libraries optimize. Ideally, they don’t have much else to do than one thing really well anyways.

    And with how many libraries modern applications pull in, you do eventually notice whether you’re in the Python ecosystem, where most libraries don’t care, or in the Rust ecosystem, where many libraries definitely overdo it. Because well, they also kind of don’t overdo it, since as a user of the library, you don’t see any of it, except the culmulative performance benefits.

    merc ,

    Libraries are also written and maintained by humans.

    It’s fine to optimize if you can truly justify it, but that’s going to be even harder in libraries that are going to be used on multiple different architectures, etc.

    blusterydayve26 ,

    I’m still mad he didn’t use the size of the number to tell the system which block to read first. I feel like that would be a great use for division or maybe modulus?

    merc ,

    I just like how he used “% 2” in the Python code he used to generate the C++ code.

    baseless_discourse , in Rust's static linter is called "Clippy" for a reason.

    Every monad is a monoid in the category of endofunctors, it is literally the definition of monad. But what do you expect from clippy…

    umbraroze OP ,
    @umbraroze@kbin.social avatar

    Yeah, the thing is, "a monad is a monoid in the category of endofunctors" is kind of a meme among non-Haskell developers. Personally, I think Haskell is a very interesting language. The mathematical jargon, however, is impenetrable, and this particular expression is kind of the poster child. I'mma go look at Erlang if I want my functional language fix without making my head hurt, thank ye very much.

    synae ,
    @synae@lemmy.sdf.org avatar

    Erlang fucks, haskell is the nerd in the corner at the party crying “they don’t know about my mathematical purity”

    pkill ,

    Haskell’s got better type system tho

    1rre ,

    OCaml has an equally good type system without being pretentious about it

    VantaBrandon , in Merge then review

    I just commit directly to master with auto-deploy like a real cowboy, yee-haw!

    floofloof , (edited )

    Why review at all when the users will do this for you? Merge, deploy and move on. If it’s broken they’ll tell you.

    I’m definitely going to start doing this at work. We don’t want our embedded firmware for medical devices to get stale.

    VantaBrandon ,

    Right? Who needs a QA team when you can use real live customers for testing

    floofloof ,

    It’s the Microsoft way.

    bob_wiley , in Stop doing Computer Science
    @bob_wiley@lemmy.world avatar

    deleted_by_author

  • Loading...
  • GlitterInfection ,

    Crypto, eh?

    bob_wiley ,
    @bob_wiley@lemmy.world avatar

    deleted_by_author

  • Loading...
  • Cubes ,

    Man, this must just be a right of passage for working as a SWE or MLE at this point. I’ve heard this pitch from coworkers/managers more than once.

    normalexit ,

    So, uhh… what did the print(money) part look like? Asking for a friend.

    NaibofTabr ,

    Depending on what your coworker actually intended to do, you might want to let them know that printers have features built in to make their output traceable, specifically intended for catching counterfeiters.

    newIdentity , (edited )

    That’s one of these things that sounds like a crazy conspiracy theory the first time you hear about it, but it’s true

    Edit: haven’t actually clicked the link. I mean the yellow dots which the printer makes which is directly traceable to your printer: en.m.wikipedia.org/…/Machine_Identification_Code

    Basically all printer manufacturers entered a secret contract with governments.

    Dukeofdummies , in Monitor Alignment Alignment Chart
    @Dukeofdummies@kbin.social avatar

    Am I the only chaotic neutral here? I code on the right and do everything else on the left.

    tiredofsametab ,

    I am technically, but I almost never turn on my second (vertical) monitor. Usually when I have my main set to a different source and I want something from my desktop PC on the other monitor.

    Piecemakers3Dprints ,
    @Piecemakers3Dprints@lemmy.world avatar

    Represent.

    Sigma_ ,

    Nope. I’m a new convert and I love it. Laptop monitor to the left of the big landscape for random screens. It’s fantastic

    peopleproblems ,

    Oh, that’s Brilliant. I’m going to try this out

    FaceDeer ,
    @FaceDeer@kbin.social avatar

    I'm sort of that. I've got two landscape and one portrait monitor, the portrait one is good for browsing websites like this one where there's a lot of vertical text. I actually find myself preferring the landscape ones for coding since my IDE has a lot of stuff in sidebars and also some of the lines of text are very long.

    evidences ,

    I’m chaotic neutral but with a third monitor on the left.

    stark ,

    Is the third monitor horizontal or vertical?

    evidences ,

    The middle and left monitors are both horizontal and the right monitor is vertical

    stark ,

    So three monitors is where the real magic begins?!

    wetnoodle ,
    @wetnoodle@sopuli.xyz avatar

    Fellow chaotic neutral here, basically same here. code on vertical screen + some articles for easier reading and everything else on the main screen

    tomkatt ,

    Another chaotic neutral here. I need my vertical display.

    scottyjoe9 ,

    I’m a mix between chaotic neutral and lawful neutral. I have a vertical monitor on my left which is mainly for slack + documents. Center screen for code and what ever I’m focused on and laptop screen on the right for calendar, email, other not in focus things.

    stsquad ,

    There are dozens of us!

    NotSteve_ ,

    I’m chaotic neutral too but I don’t code on the diagonal monitor. I only have it diagonal because my neck hurts looking at the side screen if I have them both horizontal lol

    orphiebaby ,

    Don’t take the chart seriously. Pretty much all of these setups are good for their uses and are done by someobdy, even certain forms of “chaotic evil”.

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