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.

laurelraven , in How IT People See Each Other

As a sysadmin, the sysadmin parts are 100% true

mods_are_assholes ,

Not exactly, at least for me QA is my best friend, makes my job much easier.

laurelraven ,

Joking aside, I have a lot of respect for quality QA, and developers who actually listen to and work with their target audience and operations teams

PhlubbaDubba , in Good luck speed cameras

I think this would get you charged depending on the locality, do not try at home kids

Kolanaki ,
@Kolanaki@yiffit.net avatar

Image is European but I’m pretty sure here in California trying to obscure your plate is illegal. Though I’m not sure what actually counts against it, since I know a couple of people with those bullshit plastic films that claim to obscure your plate from traffic cams but not from people looking at it.

They don’t actually work, but I feel like the intent behind using them could get you in trouble.

Solemarc ,

I’d be more worried that this could count as some form of cybercrime.

Kolanaki ,
@Kolanaki@yiffit.net avatar

I made a joke elsewhere about Amazon’s search thing using AI to generate a string that would crash the Amazon server and thought about that too afterward. If that actually worked, could someone be charged with a crime?

Solemarc , (edited )

Id guess maybe, if I generated a string using AI and intentionally crashed their stuff, it might be crime.

SeabassDan ,

I’m only using the tools provided, not accessing anything that’s clearly pointed out I shouldn’t. If anything, that question field is specifically designed for me to use.

CileTheSane ,
@CileTheSane@lemmy.ca avatar

If I go to a hardware store and start taking a sledgehammer to the walls “I’m only using the tools provided” is not going to be a valid defense.

SeabassDan ,

Not a good comparison, the sledgehammer isn’t meant to be used in the store, the search function in the website is, don’t be dumb.

CileTheSane ,
@CileTheSane@lemmy.ca avatar

Okay, the hardware store has a saw for customers to cut planks to the length they need. There are many ways they could “misuse the tool provided”

SeabassDan ,

That actually makes a lot more sense, I’ll accept that. Although there are signs saying not to misuse the tools provided. Don’t see any of that on Amazon. At least not yet.

StopSpazzing ,
@StopSpazzing@lemmy.world avatar

Knowingly doing something that could be malicious is still malicious.

SeabassDan ,

You’re right on that one. Just seems like they brought it upon themselves.

nintendiator ,

If that were true we’d see lots more charges on corporate stuff.

PriorityMotif ,
@PriorityMotif@lemmy.world avatar

I don’t see how. The premise of these cameras is that anybody is allowed to film in public. All you’re doing is showing something in public which is perfectly legal. It doesn’t damage the camera. If they decide to use the image from their camera to enter text into a database, then that’s on them if something bad happens. You have no control over what happens inside of their computer. It’s no different than someone blindly copy pasting commands into their Linux terminal and deleting system 32.

Solemarc ,

As far as I’m aware cybercrime is generally: “anything done maliciously involving a computer” intentionally sticking a drop table command over your plates because you’re expecting something to read your plate and input it into a db might count.

PriorityMotif ,
@PriorityMotif@lemmy.world avatar

No, because it is a widly known meme and would be considered free speech as satire. Since you did not access the system, there is no crime. If a person was manually entering license plates and entered it into a database, would it be your fault? No, you had no control over that person’s actions, and no reasonable person would mistake that as a licence plate. If a computer enters it on its own, then that is also not your fault, the programmer is responsible. You have no responsibility to know how a system handles its database inputs in order to avoid messing it up.

Solemarc ,

Sure, so you just get a fine for obstructing your license plate then.

PriorityMotif ,
@PriorityMotif@lemmy.world avatar

Some us states don’t require a front plate, or you could put it next to your rear plate or in the rear window.

space ,

I highly doubt cameras would be able to recognize this as a valid plate.

14th_cylon , (edited )

All you’re doing is showing something in public which is perfectly legal.

no, it is not, showing something in public is often not legal, it - as is often the case - depend on the context.

It doesn’t damage the camera.

it damages the database.

then that’s on them if something bad happens. You have no control over what happens inside of their computer.

no, that is on you, because you made that clearly intentionally malicious input. it is the same as if you had used the keyboard, the input method is really not important.

do you think that if you successfully hack a bank and steal some money you will get away with the defense of “all i did was send your computer some input, sending input to computers is perfectly legal and i really don’t have any control over what is going inside it”?

that is 5 year’s old idea of how law works.

meliaesc ,

There’s no requirement for front plates in my state.

space ,

Where I live, you only need valid plates to drive on public roads. If the car is parked or you drive on private property, there’s no problem. The procedure for getting plates requires you to not have plates for like 2 or 3 days.

Cars can still be identified by the VIN which is on the windshield.

Kolanaki ,
@Kolanaki@yiffit.net avatar

Cars can still be identified by the VIN which is on the windshield.

You mean that tiny little plate of numbers you can only see by being up close to inspect? How does that help find, say, a suspect in a hit and run? You’re sure as hell not gonna be able to read the VIN off a moving vehicle unless you’re hanging onto the hood for dear life.

space ,

Did you even read my post? I said that you need plates to drive, but you don’t need plates if you are parked (or on private property). If a car is parked, you have plenty of time to read the VIN. Driving on public roads without plates is illegal and you risk jail time.

VeganCheesecake ,
@VeganCheesecake@lemmy.blahaj.zone avatar

I’m pretty sure obscuring your plates is illegal in most places in Europe. How much anyone actually cares probably depends on specific locality.

Anticorp ,

Charging other people for your own incompetence has a special ring to it.

PhlubbaDubba ,

Not expecting someone to war drive a drop table query into an EZ pass database isn’t incompetence, n’or is not expecting any other vulnerability to be exploited unless you have specific training to look out for it.

Even master defensive coders won’t be able to write something that’s impenetrable, just difficult enough to break into that it isn’t worth it to 99.99999% of attackers.

Anticorp ,

Sanitizing your data is programming 101 when dealing with database entries

rizoid , in Tinder to ban web developers who use 'engineer' in their bio
@rizoid@lemmy.dbzer0.com avatar

I mean who cares? But also why? My old job title was “software engineer” and I just did web dev.

LufyCZ ,

it’s satire

words_number , in FLOSS communities right now

FCK DSCRD!

(They should use lemmy instead :-P)

darkghosthunter , in 5/5 stars

What’s dissapointing about Dev Home is that it offers nothing of value to the average developer, let alone somebody start it.

Given the power of containerization and WSL2, you would expect it could create development environments for a given app, like creating a firmware for a microcontroller using Rust, or a backend using Typescript, and even bring common tools or toolchains. Instead, we get some widgets and that’s it.

LemmysMum ,

It’s not a dev tool, it’s designed to force you to stay with the Windows environment by trying to regularise users to a proprietary intermediary management system.

allywilson ,

regularise users to a proprietary intermediary management system.

I don’t understand what this means.

xmunk , in Returns a sorted list in O(1) time

Copilot is fucking killing it these days.

EdibleFriend , in Why pay for an OpenAI subscription?
@EdibleFriend@lemmy.world avatar

We are going to have fucking children having car dealerships do their god damn homework for them. Not the future I expected

woelkchen ,
@woelkchen@lemmy.world avatar

We are going to have fucking children having car dealerships do their god damn homework for them. Not the future I expected

Yeah, they should better go to www.windowslatest.com where the AskGPT-4 button which seems to prioritize teaching over a straight answer (used the identical prompt to OP):

https://lemmy.world/pictrs/image/4fd721cb-1662-4481-99e6-a9a90c8ec16f.png

https://lemmy.world/pictrs/image/ee1c5580-e183-4887-b1af-63d5488ab986.png

xia , in ifn't

“Help’s with readability”? You know what else helps? Not using contractions and introducing an unbalanced single quote.

bdonvr ,

If they’d’nt’ve done that, it’d’ve been better. Agreed.

fsr1967 ,

TIHI

Cwilliams ,

they’d’nt’ve

Aside: rip Tom Scott

survivalmachine ,

This feels racist against Appalachia. We naturally speak with contractions and are commonly referred to as “unbalanced”.

frezik ,

Runs havoc on parsing, too. It’s bad for both humans and robots. I say we ship it.

mathemachristian , in `zsh`, `ksh`, `bash`, and obviously `sh`

What about fish??

Makussu ,

Which is being rewritten in rust

mathemachristian ,

*has been

Not rolled out yet though

Dehydrated ,

What about Nushell? What about csh and tcsh, ash and dash? What about xonsh? What about PowerShell Core?

mathemachristian ,

All good points. Except powershell. Fuck that.

Dehydrated ,

I agree, just wanted to extend the list lol

But you can’t believe how utterly I hate this piece of shit that dares to call itself a shell. God damn, the Microsoft employees who proposed this retarded idea deserve the most extreme form of torture.

Vilian ,

Microsoft employees who proposed this retarded idea deserve the most extreme form of torture.

they need to use powershell at work, so i guess they are already getting tortured

Dehydrated ,

Fair enough. But I have really terrible memories of the time when I was a Windows admin and had to use this garbage. I still want revenge from those fuckers who designed this crap.

cashews_best_nut ,

xonsh - python powered shell

Dehydrated ,

Yeah I mentioned that one

cashews_best_nut ,

Oh yeah. I stopped reading your comment when I hit Dash assuming no one would mention xonsh. Teach me to jump to conclusions!

lvxferre , in “It’s not that hard”
@lvxferre@lemmy.ml avatar

Musk being an assumer (note how he’s vomiting certainty on future events) doesn’t surprise me a tiny bit.

CrypticCoffee , in This is what being a Redditor does to your life

Become a professional, then you’ll commit every time you make a small bit of functionality. If you’re doing massive changes like this, you haven’t broken something after multiple days of code enough. When you do that and you have no idea what you broke it with and when, it conditions you towards small iterable chunks.

narc0tic_bird ,

This. Instead of making commits time-based (for example once per hour or once per day), make them purpose-based (say, add a database migration in one commit, and change the color of a button in another one). This also makes it easy to cherry-pick or otherwise backport specific changes to different program versions gor example.

Awkwardparticle ,

I learned this the hard way, I forgot to commit for a single day and got burned really bad when my regression tests failed and I could not trace the issue(it is called source control for a reason). I declared it was more efficient to revert back to the last commit than spend time fixing broken code that I had no fucking clue where it was and the only thing I had to go by was that it happened between two commits with a whole work day between.

wulrus ,

I work a lot with the local history of the IDE, where I can also set labels to a current state. In addition, it creates its own labels like last time all tests were green etc.

Still, in one of my last project that really lived TDD, they made a good point that I should just push as often as I label, since that also triggers all sorts of other tests which I usually don’t run locally, or not as often.

I had “rearrange code” checked once for a commit, and fortunately, it had automatically saved the exact state before that.

Plibbert , in Good luck web devs
lurch ,

They put touchscreens on doorstops now? /s

xmunk ,

Java truly runs on everything.

NoisyFlake ,

Unleash the power of the pyramid!

idunnololz , in Let me just move this project to the "unfinished" folder
@idunnololz@lemmy.world avatar

I’m so glad I made games as a hobby before I got anywhere close to graduating. Killed that dream real fast. It felt like shit having to play your own game so many times the game lost all meaning and it was hard to gauge if it was even fun anymore.

charmed_electron ,

I did something similar. I would get about as far as writing the interesting mechanic/game logic and then give up.

Kissaki ,

So you succeeded in prototyping?

magic_lobster_party ,

I’m also glad I did it as a hobby before I started viewing software development as a job. No code from me if there’s no money on the table.

idunnololz ,
@idunnololz@lemmy.world avatar

Oh I actually love programming. I just hated writing games it turned out lmao. I love front-end development especially.

Bransons404 ,

This. I started with 2d browser games. Turns out that was way too much work for me and landed in front end. I’m totally enjoying it now

dan ,
@dan@upvote.au avatar

Interestingly it’s becoming more common to use front end technologies like React in AAA games, for things like in-game menus, and development tools.

Bransons404 ,

Don’t tempt me

oce ,
@oce@jlai.lu avatar

Reminds me of learning to play a piece of music you love. By the time you master it, it seems all the magic has disappeared.

idunnololz ,
@idunnololz@lemmy.world avatar

I tried to teach myself piano. I actually enjoyed it when I was learning it, however I was really enjoying the progress I was making and less about the music I was playing. I wonder though if you get really good with music, you can probably learn and play new pieces much more quickly so maybe the magic won’t fade as quickly.

oce ,
@oce@jlai.lu avatar

I think you appreciate the piece in a different way, it’s less magic and more knowledge.

Aceticon ,

Game making professionally is more like going all the way to playing a full piano concerto to a paying audience.

Sure you start by learning to play the piano, which is fun, but you also have to compose several pieces that people will like enough that they’ll pay to hear them, organise the concert, learn the specifics of public performance and so on.

The cycles were the pieces you compose are shit because they’re limited by your limited piano playing knowledge so you go back to learning some more only to find out you learned it all wrong hence your current technique will never be good enough so you have to relearn a lot of what you thought you already knew, is not fun and the having to learn everything else needed to organise the concert because you have to make the whole thing generate $$$ even though all that you really wanted was to play the piano, is also not fun.

For somebody working in a large game company, it’s the difference between a hobby and a job, whilst for somebody doing indie game development it’s the difference between a hobby and a business.

MonkderZweite ,

Is that the same effect like playing a piece you love over and over and suddenly you can’t hear it anymore?

oce ,
@oce@jlai.lu avatar

I think it’s even stronger, because sometimes you’ll repeat the same 10 seconds a thousand time to master it until you feel like jumping out of the window.

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

A police officer being unable to think in such a fashion is exactly why no one could solve the see-saw riddle on Brooklyn 99.

skydivekingair ,

For those looking for the handout:

person: A B C D E F G H I J K L

round 1: L L L L R R R R — — — -

round 2: L L R R R — — — L R L -

round 3: L R R — — L R — L L — R

drislands , (edited )

This would be easier to parse with a monospaced font. I’m not sure how that works in lemmy so this might take an edit or two…


<span style="color:#323232;">
</span><span style="color:#323232;">round 1: L L L L R R R R — — — -
</span><span style="color:#323232;">
</span><span style="color:#323232;">round 2: L L R R R — — — L R L -
</span><span style="color:#323232;">
</span><span style="color:#323232;">round 3: L R R — — L R — L L — R```
</span>
skydivekingair ,

Cool, thanks. I’m not the best at formatting when using my phone.

Mr_Dr_Oink ,

Oh i get it. So if in round 1 it tilted down on the right. Round 2 it was even then round 3 it tilted down on the right then it was person G and they are heavier. However if it was reversed and tilted on the left then even then left then it was still person G but they are lighter. Because that pattern only occurs once. This is brilliant. Thankyou to you and the person you corrected the formatting of.

Mr_Dr_Oink ,

How do you solve that? I saw a solution in the comments where it says to start with numbering all the people and butting 1234 and 5678 on the see saw, then it says if they weight the same then continue and that seems to work. But if they dont weigh the same it doesnt work and it doesnt say what to do in that case.

NotSoCoolWhip ,

If 1234 and 5678 don’t weigh the same youd need 4 seesaws in some cases

adrian783 ,

you can do it like you weight 6v6 then 3v3 then for the last weighing you weight the 2 out of 3.

or you weigh 4v4 to find out which grouping of 4 the light weight person is in, then do 2v2 and 1v1.

ChairmanMeow ,
@ChairmanMeow@programming.dev avatar

You don’t know if the person is lighter or heavier yet.

Sagifurius ,

That’s not the question. Either the scales balance, and the third is heavier or lighter, or the scales don’t balance and you get both answers, but the question is purposely framed this way

ChairmanMeow ,
@ChairmanMeow@programming.dev avatar

I mean that not knowing it is part of the question, and the proposed solution doesn’t work without knowing if the person is heavier or lighter.

If you know if the person is heavier or lighter, the question becomes trivial.

Sagifurius ,

The question is to figure out who is different, not how they are different. That takes one more step, half the time.

Mr_Dr_Oink ,

The question was to find who doesnt weigh the same and if its heavier or lighter. Watch the clip again.

Sagifurius ,

That’s easy enough to answer, but he really should work on his grammar. In that case you just do 3 groups of three, weigh two of them. If they’re even, the third group is different. Weigh 2 membres of the third group, they’ll either be even or one heavier. Weight the last member against the heavier one from step 2 to see if they’re even or not for your answer.

Mr_Dr_Oink ,

Thats 4 uses of the seesaw. It has to be 3.

Sagifurius ,

That three dude

Mr_Dr_Oink ,

Im sorry when i read weigh two of them i counted it as two separate weighings of two sets of groups. My bad.

What about the 4th group? There are 12 people

Sagifurius ,

Well I meant to write 3 groups of four. Same general thought just adjust the logic somewhat

Mr_Dr_Oink ,

I’ve had a look into it, and it doesn’t work if you try to do it mathmatically. You always need more than 3 gos on the seesaw.

There is a solution in the replies to my original comment that is the actual solution, and it works every time and is much simpler than any grouping method.

It involves assigning a letter to each person and then aligning that with a grid of positions “left” or “right” or “none” on the seesaw. Over the three rounds. So, person A is on the right all three rounds person b is on the right for 2 rounds then on the left for the 3rd round.

You end up with a list of 12 patterns that do not repeat or mirror any other pattern like “LLL” “LLR” “LRR” “LR-” etc. Then you do all three rounds and compare the position the seesaw was in with those patterns.

If the seesaw was down on the left 2 times the down on the right the third time then you look for which person had that pattern in this case it was person B. So they are the one with a different weight and they were heavier.

Equally, if the opposite pattern occurred. It was down on the right 2 times, then down on the left for round, then that is the opposite pattern of person B and does not occur anywhere else, so it was person B, and they were lighter.


<span style="color:#323232;">person:  A B C D E F G H I J K L
</span><span style="color:#323232;">
</span><span style="color:#323232;">round 1: L L L L R R R R — — — -
</span><span style="color:#323232;">
</span><span style="color:#323232;">round 2: L L R R R — — — L R L -
</span><span style="color:#323232;">
</span><span style="color:#323232;">round 3: L R R — — L R — L L — R
</span>
ChairmanMeow ,
@ChairmanMeow@programming.dev avatar

Yes, I’m aware. But with 12 people you can’t simply divvy the groups in threes constantly, because if you weigh and the groups are unequal, then you don’t know in which group the different person is (yet). E.g., weighing ABCD - EFGH can tell you the different person is in IJKL if the groups are even, but if they’re uneven you don’t know in which of the other two groups the different person is.

RoyaltyInTraining ,
@RoyaltyInTraining@lemmy.world avatar

Where is the piped bot when you need it

Venat0r ,

You can just replace the domain of the url with piped.video:

Piped.video/Mgqqzt6Iah4

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

that dawn of humanity is only going to work if the rewind/fast forward is instantaneous.

kryptonianCodeMonkey , (edited )

Also, if I rewind to the Neolithic and I see a bunch of cavemen, sabertooth tigers and a Schwinn chained to a bike rack, I’m not going to just fast forward from there. I have other questions.

MagicShel ,

I mean… You’re not gonna outrun that sabertooth on foot.

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