this post was submitted on 30 Nov 2023
30 points (100.0% liked)

Programmer Humor

19623 readers
3 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] teft@startrek.website 11 points 1 year ago* (last edited 1 year ago) (1 children)

Yeah, pigs don't like to be corrected. Or made to look like they don't know what they're doing.

[–] Sheeple@lemmy.world 1 points 1 year ago (2 children)

Fun fact. Cops on average have lower IQ and often fail literacy tests. Furthermore it appears that critical thinking is discouraged in the job, with candidates being selected who lack critical thinking abilities over those that have them.

[–] JoMiran@lemmy.ml 2 points 1 year ago

We need to have a chat about your definition of "fun".

[–] Shiggles@sh.itjust.works 1 points 1 year ago (2 children)

Certain departments specifically have IQ tests, in order to ensure you aren’t smart enough to easily get a better job elsewhere.

[–] shalafi@lemmy.world 1 points 1 year ago

This internet myth has got to die. ONE case in ONE department, a quarter century ago, does not mean it's a practice.

https://www.nytimes.com/1999/09/09/nyregion/metro-news-briefs-connecticut-judge-rules-that-police-can-bar-high-iq-scores.html

[–] CmdrShepard@lemmy.one 1 points 1 year ago

I think it's more nefarious than that. Many departments want a good 'ol boys club where they're the ultimate authority and they want their officers to fall in line rather than question department actions.

[–] xantoxis@lemmy.world 6 points 1 year ago (2 children)

This argument did not go well

You can't convince people to do their job with logic when they just don't want to do their job. After minorities, the thing cops hate most is doing their job.

[–] SPRUNT@lemmy.world 3 points 1 year ago

WRONG! After minorities, it's poor people. Then doing their job. :P

[–] HawlSera@lemm.ee 1 points 1 year ago

Come on, don't disparage our hard-working Boys in blue. Without police who's going to come to your house to take notes about the crime that you have sufficient evidence to prove, and even have a likely suspect for, and then never follow up?

[–] Pazuzu@midwest.social 3 points 11 months ago* (last edited 11 months ago) (7 children)

I thought this had to be hyperbole, so I did the math myself. I'm assuming human history is 200,000 years as google says, and we want to narrow this down to the second the bike disappeared. also that the bike instantly vanished so there's no partially existing bike.

each operation divides the time left in half, so to get from 200k years (6.311×10^12 seconds) to 1 would take ~42.58 divisions, call it 43. even if we take a minute on average to seek and decide whether the bike is there or not it would still be less than an hour of manual sorting

hell, at 60fps it would only take another 6 divisions to narrow it down to a single frame, still under an hour

edit: to use the entire hour we'd need a couple more universes worth of video time to sort through, 36.5 billion years worth to be exact. or a measly 609 million years if we need to find that single frame at 60fps

[–] rckclmbr@lemm.ee 2 points 11 months ago

I regularly bisect commits in the range of 200k (on the low end) for finding causes of bugs. It takes me minutes. Pretty crazy

[–] Moneo@lemmy.world 1 points 11 months ago

Lemmy learns exponential math.

Mostly joking, thanks for doing the math.

[–] rekabis@lemmy.ca 1 points 11 months ago* (last edited 11 months ago) (1 children)

Combine AI image/visual-pattern recognition and quantum computing, and this search could be completed before it was even started.

[–] madcaesar@lemmy.world 1 points 11 months ago

We can go deeper!

[–] MagnoliaMayhem@programming.dev 1 points 11 months ago

Just watch at 3X!

[–] Syldon@feddit.uk 1 points 11 months ago (1 children)

A minute to decide if there is a bike in the picture really ?

[–] Deuces@lemmy.world 1 points 11 months ago

As a robot, finding bikes in pictures is really hard, okay

[–] psud@aussie.zone 1 points 11 months ago

History is about 10k years, the 200k years is mostly pre-history. People didn't write stuff down until they invented agriculture and needed to track trade between owners, workers, etc

[–] stockRot@lemmy.world -1 points 11 months ago

Ever heard of a logarithm? If you haven't, you just reinvented it.

Also, your math is wrong: log base 2 of 200,000 is ~18

[–] dejected_warp_core@lemmy.world 2 points 1 year ago (1 children)

This didn't go down well.

IT consulting pro-tip: Customers would rather pay for your time and expertise, than be made to feel stupid that they didn't think of something so simple themselves.

[–] mwknight@lemmy.world 1 points 1 year ago (3 children)

After working in desktop support for a year after college, I realized that people just wanted their problem solved and to not feel frustrated. That realization made my job immensely easier because I pivoted from copying a file in 30 seconds and walking away to talking to them a little bit and letting them feel good after we were done. My ticket closing speed slowed down a little but people felt better and I consistently got positive feedback.

[–] dejected_warp_core@lemmy.world 1 points 1 year ago* (last edited 1 year ago) (1 children)

Same story here, actually. I cut my teeth on internet telephony (modems) support for an ISP. People would call up furious about not being able to connect. I learned that chatting people up during a long Windows reboot did a lot to humanize their struggle and get them to calm down and loosen up. First few times were organic, then I started looking for pretenses to do this, just to bring the temperature down for the rest of the call.

[–] deweydecibel@lemmy.world 1 points 1 year ago

Call centers tell you to empathize but that's not something you can teach. You can either do it or you can't. So they give those terrible scripts, and then some of them require you to speak the scripted lines, even when you know all it does is piss the caller off.

No hears that scripted pablum at the start of call and thinks it's genuine. No one. "I'm sorry to hear your having issues sir, but I'll be happy to assist you." genuinely comes off condescending at this point. They know you know it's scripted, they know you know the representative has to say it, but they make them do it anyway.

Here's what I found doing ISP call center work, and it worked virtually every single time: imply through tone and pointed comments you're as frustrated as the called with how shitty the service and the hardware is. They're never prepared for it, it always catches their anger off guard.

Don't outright say "Yeah, Cox is absolute dog shit, and that POS gateway we make you pay for isn't worth the cost of the the technician we're sending out to 'fix' it." You'll get in trouble for that.

But if you're careful and creative, you can make them appreciate you think that

[–] Riven@lemmy.dbzer0.com 1 points 1 year ago (1 children)

Dude same here. I usually say stuff along the lines of 'yea it took me forever the first time to figure it out' or 'it's a common issue that a lot of people have, I'll get it sorted in a sec for you no problem'. Make it seem like they're not stupid, regardless of the truth and then fix it, keeps em happy and more willing to cooperate with you as well.

I also talk through what I'm doing and if they show interest I'll teach them so they can fix it in the future, 'ah I've seen this before, took me like a hour to figure it out on my computer, for me it was a chrome update that broke how downloaded files open. Here let me right click the file, and go to open with, we hit Adobe pdf and check the always open with this program button, that should do it let's test it out. OK seems like its good to go. Let me know if you have any more issues'. If they don't show interest then it's no problem.

[–] meathorse@lemm.ee 1 points 1 year ago (1 children)

Are you my kindred spirit!? :P Thats almost exactly what I do too!

My favourite is when someone apologies for not knowing something or having dumb questions. Apart from "there is never a dumb question" because there usually isn't, I typically respond with "if everyone already knew how to do everything, I'd be out of a job" which always seems to go down well.

[–] deweydecibel@lemmy.world 1 points 1 year ago

Some of my favorite help desk moments are those times you get to a be teacher for someone that's genuinely listening and happy to learn.

[–] BakedGoods@sh.itjust.works 0 points 1 year ago (1 children)

When I started in support 15 years ago my boss said: "First you solve the person, then you solve the problem".

He was a good dude.

[–] bleistift2@feddit.de 0 points 1 year ago (1 children)

What would you recommend for solving people? Does a household base like NaOH suffice?

[–] moody@lemmings.world 0 points 1 year ago (1 children)
[–] SameOldInternet@lemmy.world 1 points 1 year ago

This post just shows that the police rarely if ever review any video as this method would've been learned as a result of repeatedly reviewing video.

[–] TheBlue22@lemmy.blahaj.zone 1 points 11 months ago

Police try to understand anything challenge (100% impossible) (gone sexual) (gone violent)

[–] frezik@midwest.social 0 points 1 year ago (1 children)

I'm a little surprised the police didn't already know about that method. Seems like they'd encounter enough CCTV footage that'd it'd be standard training.

I once again overestimate the training levels of the police.

[–] rockSlayer@lemmy.world 0 points 1 year ago

They probably do know. They just aren't meant for protecting your personal property

[–] charonn0@startrek.website 0 points 11 months ago (1 children)

Part of my job is to review security footage for reported incidents.

If there is a long-lasting visual cue that the event has or has not happened yet (e.g. a window is either broken or not), then a binary search is very useful.

If the event lasts only a moment and leaves no visual cue (e.g. an assault), then binary search is practically useless.

[–] CosmicCleric@lemmy.world 0 points 11 months ago (1 children)

If the event lasts only a moment and leaves no visual cue (e.g. an assault), then binary search is practically useless.

But you will see the event happen though.

It's a matter of if you can identify who the perpetrator is or not, but at least that due diligence should be done by police, looking at the person doing the crime and see if they can be identified.

[–] null@slrpnk.net 1 points 11 months ago* (last edited 11 months ago) (1 children)

But you will see the event happen though.

Not with a binary search.

Edit: just collapse this thread and move on. Cosmic Cleric is an obvious troll.

[–] CosmicCleric@lemmy.world 0 points 11 months ago* (last edited 11 months ago) (1 children)

But you will see the event happen though.

Not with a binary search.

Yes you will.

A binary search is just what it says, it's just for searching only.

When you find that moment in time where the bike was there one moment, and then the next moment the bike's not there, then you view at regular or even slow-mo at those few seconds of the bike in the middle of disappearing, and see the perpetrator, and hopefully can identify them.

[–] ShrimpsIsBugs@programming.dev 0 points 11 months ago (1 children)

You either don't know what binary search is or you completely missed the context of this conversation

[–] CosmicCleric@lemmy.world 0 points 11 months ago* (last edited 11 months ago) (1 children)

You either don’t know what binary search is or you completely missed the context of this conversation

I'm a computer programmer. I know exactly what a binary search is. I've written binary searches before.

The search is to get you to the point where you can watch the video to see the crime happening, in hopes of indentifying the perpretrator.

[–] SkippingRelax@lemmy.world 0 points 11 months ago (1 children)

Then you missed the point of this conversation

[–] CosmicCleric@lemmy.world 0 points 11 months ago* (last edited 11 months ago) (1 children)

Then you missed the point of this conversation

You're being intellectually dishonest, in an attempt to kill the message.

This is what was said in the origional OP pic...

You don’t watch the whole thing, he said. You use a binary search. You fast forward to halfway, see if the bike is there and, if it is, zoom to three quarters of the way through. But if it wasn’t there at the halfway mark, you rewind to a quarter of the way though. Its very quick. In fact, he had pointed out, if the CCTV footage stretched back to the dawn of humanity it would probably have taken an hour to find the moment of theft.

[–] WoahWoah@lemmy.world 0 points 11 months ago* (last edited 11 months ago) (1 children)

Yes, but, as you noted in an earlier post, that isn't what you're responding to. The point of the post you stated you are responding to is: if an event occurs that leaves no change to the visual context before and after the occurrence, then binary search is ineffective.

The fact that you're wasting this much time trying to defend such a simple error is confusing. The reasonable response is, "oh, yes, in that particular case, binary search is ineffective."

[–] CosmicCleric@lemmy.world 0 points 11 months ago* (last edited 11 months ago) (1 children)

Yes, but, as you noted in an earlier post, that isn’t what you’re responding to.

I keep saying what I'm responding to, but you're trying to change the narrative of what I'm responding, to as a debate tactic.

Someone uses a debate tactic of mentioning an "one off" and then directing their whole conversation to that one singular point is not intellectually honest in the whole conversation being had.

The fact that you’re wasting this much time trying to defend such a simple error is confusing. The reasonable response is, “oh, yes, in that particular case, binary search is ineffective.”

And you don't think I can't tell when a bot network is using what I've said back to me for training their AI, and then repeating it right back at me?

[–] Odiousmachine@feddit.de 0 points 11 months ago (1 children)
[–] CosmicCleric@lemmy.world 0 points 11 months ago (1 children)

Looking for your point of flesh now too, eh? Lemmy is a really great place to have conversations w/o toxicity or gang-gatekeeping.

[–] Odiousmachine@feddit.de 0 points 11 months ago

It's interesting to see how you as the only person repeatedly seem to be missing the point. And instead of admitting that you made a mistake you dig deeper and deeper.

[–] groucho@lemmy.sdf.org 0 points 11 months ago (1 children)

The final project in my instrumentation class was to tune a PID controller for a hot/cold mixing valve. I (CS/ENG) was paired up with an engineering student and a lot of it was throwing parameters in, seeing if weird shit happened, and then turning down or up based on the result. I had a programming final and something else I was supposed to be studying for, so I just started doing a binary search with the knobs. We got the thing tuned relatively fast and my partner acted like I was a wizard.

[–] clericc@feddit.de 0 points 11 months ago

How do you do a binary search for an open-end scale (are PID params open-end?) and three knobs at the same time when they interdepend in their influence? I need to know since i have a PID tuning on my personal projects plate

[–] Localhorst86@feddit.de 0 points 1 year ago

"Exactly my point. We will not be investing an hour looking at the footage to pinpoint the time of theft, now get out!"