programmer_humor

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

sar1n, in The classic font size exploit

Dig that color theme though

funkajunk,
@funkajunk@lemm.ee avatar

My guess is Monokai?

tetris11, in The classic font size exploit
@tetris11@lemmy.ml avatar

It very well might be a real exploit. Lemmy was briefly taken down by an XS attack using the emoji library… so who knows, maybe a 3000% smiley face is all that is needed

Fogle,

I think there a lot of phone scammers that use font size to hide all the shit they’re doing. Like they make shit so small so that the old people can’t see anything

leds, in DO NOT MERGE

But thanks for keeping my phone up to date, it is appreciated ♥

infinitevalence,
@infinitevalence@discuss.online avatar

Same, I run 3 devices all on Lineage and its great. Who know that you could still get updates and support for a device from 10 years ago, suck on that apple.

DreadPotato, (edited )
@DreadPotato@sopuli.xyz avatar

It’s just kind of sucks that updates consistently breaks banking apps and other stuff relying of passing safetynet. Every time I update I have to do the Magisk workaround again which is really annoying.

bappity, (edited ) in ifn't
@bappity@lemmy.world avatar

cap () {

}
nocap () {

}

runner_g, (edited )

nocap(frfr){

}

fnmain, in Imagine

Fuck, I kinda wanna make this (for the funny of course)

fnmain,
peopleproblems, in The Perfect Solution

oh Jesus

did this come full circle?

we used python to query chatgpt to decide if a number is even or odd and return true or false?

Ephera,

True or false or null.

Mathematicians didn’t know it yet, but numbers can now be even, odd or neither.

dan,
@dan@upvote.au avatar

True or false or null.

Ah, yes, a three-state boolean.

lars,
Natanael,

Non integers certainly aren’t even or odd, so yes?

Ephera,

Yeah, I’m chalking that up to Python’s untypedness. I was going to write “integers”, but technically that function takes a “num”, whatever that is.

For all we know, it could be a string, asking ChatGPT to hack the government. Is that even? Probably no. Or None. Or T-Rex. Without reading the entire function, we don’t know that it’s not returning T-Rex.

Thankfully, it doesn’t matter. Just stick the result into an if-else, then False and None will land you in the else-branch. And both True and our Truthiness-Rex will land you in the if-branch. Just as Guido intended.

…this rant brought to you by trauma.

lung, in ifn't
@lung@lemmy.world avatar

ifn’t(!valid) halp?

Deconceptualist,

I believe that resolves the same as

ain’t!(!untrue)

RagingHungryPanda,

ain’t (nothin)

vlad76, in ifn't
@vlad76@lemmy.sdf.org avatar

What’s wrong with “else”

NekkoDroid,
@NekkoDroid@programming.dev avatar

It’s not ifn’t

SpaceNoodle,

*it’sn’t

felbane,

I’dn’t’ve said it like that.

Scubus,

Perchance

NocturnalMorning,

^This

OP raises a valid point

Darkassassin07,
@Darkassassin07@lemmy.ca avatar

if(condition) {#block never used} else {#actually do a thing}

Vs

ifn’t(condition) {#actually do a thing}

Vs

if!(condition) {#actually do a thing}

MNByChoice,

Cannot start a statement with else. One can with ifn’t. There is a new thing where we don’t branch (which is a separate discussion).

Or am I missing the joke…

ryannathans, in DO NOT MERGE

There are a LOT of these in lineage repos. There must be a reason

xia,

Maybe they dont use squash merges, so all the intermediate commits remain on-chain?

kromem, in The Perfect Solution

Inefficient solution.

You should simplify it to just ask the model if the last bit of the binary representation of the integer is a 1 or a 0.

Natanael,

They don’t process inputs as binary (they use clusters of symbols, i.e. letter groups) so that’s not guaranteed to work

kromem,

r/woosh

Natanael,

I did realize that too was a joke, still wanted to point that out

kromem,

Well, in the sake of pointing things out, GPT-4 can actually correctly answer the prompt, because it arrives at it in the opposite direction. It can tell the integer is even or odd and knows that even or odd integers in binary end in 0 or 1 respectively.

AeonFelis,

You can ask it if the last digit is odd or even, then.

aMockTie, in DO NOT MERGE

Why did they submit this as a pull request in the first place? Just commit it to a WIP branch until it’s ready to merge. Am I missing something?

brisk,

Probably to get some other benefitof the PR system, such as CI tests

leds,

Does gerrit have a draft state? In azure devops you can mark PR as draft , won’t trigger any builds but you can still start them manually

beeng,

manually

This is probably why the dev created a PR, less clicks

sf1tzp,

I don’t remember if it did when I used it. Our convention was to -2 your own change until it was ready to go 😅

DrJenkem, (edited )
@DrJenkem@lemmy.blugatch.tube avatar

It’s been a while since I’ve worked with AOSP, but I had always understood it to be some weird shit with Google’s internal processes. The “do not merge” commits are all over the AOSP, or at least they used to be.

NotSteve_,

I do this often. It’s useful if you want to send it to your coworker for some early feedback or as others have said, have the CI run

AcesFullOfKings, in The Perfect Solution

deleted_by_author

  • Loading...
  • rimu,
    @rimu@piefed.social avatar

    gpt3.5 is faster though. You can tell they really thought about performance while writing this code because they used 3.5 instead. /s

    fartsparkles,

    3.5e was so much better than 4e tho /d20

    rimjob_rainer, (edited ) in The Perfect Solution

    yes of no

    Not even valid json but compiler doesn’t complain

    GBU_28,

    What json

    pennomi,

    Not sure what you mean, there’s no json in this code, it’s all valid (if a little ugly) Python.

    rimjob_rainer,

    So what does the f do?

    jalda,

    It is a f-string

    rimjob_rainer,

    Python is crazy

    NikkiDimes,

    Looks pretty much the same as a template string in Javascript, an arguably crazier language.

    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, (edited )
    @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.

    But yes.

    samus12345,
    @samus12345@lemmy.world avatar
    whostosay, (edited )

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

    Poem_for_your_sprog, (edited )

    Buffalo buffa

    Buffalo Buffalo bu

    Buffalo buffa

    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, (edited )
    @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…

    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.

    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.

    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

    merc,

    Nobody watches 90 minutes of football matches

    Um…

    pearsaltchocolatebar, (edited )

    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.

    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

    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

    MacNCheezus,
    @MacNCheezus@lemmy.today avatar

    surprised Pikachu

    FlyingSquid, in Every goddamn time
    @FlyingSquid@lemmy.world avatar
    Classy,

    For how much fun NCIS was to watch it also was such a groan whenever the “code” sequences came up

    captain_aggravated,
    @captain_aggravated@sh.itjust.works avatar

    One man’s Linux is another man’s OS/2!

    Mongostein,

    Need to look busy at work? Ping -i.2 <your IP address> will repeatedly ping your own router. Tell your boss it’s running a diagnostic or something.

  • 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 38