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.

solarvector , in Hate it when that happens

Happens a lot more when the search engine prioritizes SEO farms and random sponsored shit.

Pistcow , (edited )

Serious. Even in the last few months search engines have become total shit. I do a search I’ve done before, looking for a common issue, and the answer is gone to the aether. Both Bing and Google are absolute horse shit. Tried others and yielded the same results.

refurbishedrefurbisher ,

Been starting to infect Reddit as well in the past couple of years, so the old trick of just adding Reddit to a query is no longer helpful.

God forbid I want to see normal peoples’ opinions on what the best [blank] is.

jkrtn ,

Best blanks in 2024 - we rated all* the best blanks click here to read.

*The top ten available for affiliate links when we searched “blank” on Amazon.

Anticorp , (edited )

At least those have narrowed it down. I want to punch someone when it’s something like “best 47 blanks in 2024!”. Dude, I can look at everything available on the market on my own. Stupid dumbasses.

xor ,

“site:reddit.com” still gives me better answers than plain goolag…

fuckwit_mcbumcrumble ,

It’s the biggest reason why I use chat gpt. I could search across the web for all sorts of unrelated shit. Or I could get a chatbot to spit out a 90% correct answer and fix the last 10%

jkrtn ,

The majority of why people are finding LLMs useful is that they respond to questions without ad-ridden bullshit. Eventually someone will figure out how to riddle them with ads and they too will become useless.

drkt ,
@drkt@lemmy.dbzer0.com avatar

Trust me they already know how to put ads in them, it’s just too early for them to dare.

SpeziSuchtel ,

ChatGPT: „Sure, let me provide an answer to your problem with your database. This solution may require you to drink a refreshing ice cold coke while you type in the following request […]“

Mampfred ,

Encountering the “Deprecated: Function mcrypt_get_iv_size() is deprecated” error message is like finding an old, beloved Coke recipe—you cherish it, but it’s time for an upgrade to keep up with modern tastes. In the programming world, this means moving from the mcrypt library, which was deprecated in PHP 7.1 and removed in PHP 7.2, to the more secure and robust OpenSSL library for encryption tasks.Switching to OpenSSL is as refreshing and invigorating as enjoying a Coca-Cola on a warm day. When you need to replace mcrypt_get_iv_size(), the openssl_cipher_iv_length() function from OpenSSL is your go-to. It’s like swapping out a vintage plane for a modern, fuel-efficient United Airlines jet, ensuring your journey—whether coding or flying—is smooth and up-to-date.Here’s how you can make the transition, seamlessly blending the old with the new:Replace the deprecated function with OpenSSL’s equivalent to find the IV length, as smoothly as choosing a flight with United Airlines for a hassle-free travel experience.

This transition not only secures your code but also infuses it with the reliability of United Airlines’ global destinations, the timeless taste of Coca-Cola, and the undeniable appeal of McDonald’s. Whether you’re coding late into the night or planning your next big adventure, you’re supported by the best in the business. Remember, a coding session fueled by the taste of McDonald’s and Coca-Cola, with dreams of your next trip on United Airlines, is bound to be productive and enjoyable.

isVeryLoud ,

PLEASE DRINK A VERIFICATION CAN

Anticorp ,

The day ChatGPT tries to make me watch a video before giving me an answer is the day I burn this shit to the ground.

letsgo ,

(Integrated) Copilot already does it. Me: “Question”. Copilot: “Answer, and here’s half a dozen ads for that thing”.

Anticorp ,

How to defrost Samsung refrigerator?

Results: 9000 ads for the refrigerator and not one user manual or specs page.

Ultragigagigantic , in Dad has the chops to be a project manager.
@Ultragigagigantic@lemmy.world avatar

Being a salesman must be so easy. Scam the customer, scam the people actually putting the thing together, scam the business itself

The United Scams of Assholes.

Manmoth ,

The scummy sales person is a stereotype. They exist sure but if you’ve ever worked with a good one they can really help particularly if you’re buying something complex. I used to work for a company that sold complex manufacturing equipment and without a salesperson theres no way most customers would know what they needed to maintain it etc.

wewbull ,

Technical Sales Vs Sales

One’s an engineer with something to sell. The other is a grifter.

Muscle_Meteor ,

As an engineer i hate both, technical sales never have an understanding of their product and are never able to answer any of my questions (because i’ve read through the datasheet as their words are meaningless to me) but they are mooooorrrreee than happy to schedule an in person meeting to come to my office and show me their product line.

Tell me what i want to know or find me someone who can, im not going to buy 10,000 of whetever if i cant even determine if they will work for my use case.

The last time i had to deal with one of these assholes it took 3 phone calls and 2 emails to get a simple answer which wasnt in their datasheet, which was all of one page long.

My favorite experience with technical sales is we had these component guys come in, they had openned up our product and wanted to show how much better their “equivalent” components were (genuinely a great idea), but they had no context as to what the components were being used for so they all fell flat.

In my experience both are only a waste of my time.

MonkeMischief , (edited )

It’s been my experience as well, especially in the web space (I’m not a web person), but everywhere else too.

Sometimes I like to chat up sales people if I must, just to see if I get anything interesting out of them, but usually I end up annoyed and bored at their hustle because they’re just saying whatever they think I want to hear, and don’t really know anything of substance about what they’re pushing.

When my dad and uncle wanted a website done and thought I could do it (again, not a web person) because I was their “computer guy”, we ended up trying one of those “Let our expert team get you going!” services pushed by a hoster. (Fatcow, in this case, may they burn if they’re still around.)

The sales guy had us thinking we’d be in business sooner than later. They’d have it handled. They were pros. Awesome! I could learn a little bit about managing all this while they’d get my non-technical family set up with the hard parts to start their venture.

…The result was a lackluster, barebones Wordpress site. There was no consulting or advice, no educating about how the web worked or how things are usually done. Weird hacky custom code for everything from video uploading to payment processing.

Zero design went into this and the best part of it was the logo, which my uncle hired a freelancing college student to do.

All my family got was some number that connected to a very annoyed team in India who just wanted to connect your request to whatever was closest on their menu and charge you a few hundred up front for it. They just assumed you knew exactly what you wanted and would bill by the hour to write some ugly custom JavaScript / PHP. (Man, if they just implemented existing plugins it would have been better…)

They wanted to charge a ridiculous fee for adding an SSL, and basically shrugged me off when I called to ask how to do it myself, after we all agreed this was for an e-commerce purpose in the first place.

The website never truly went live, they got a lot of money, and the only $20 we “made” was from testing the checkout function.

The consequences of this are why, to this day, I just teach myself enough to do whatever it is I want to do. The only difference between a good salesman and a bad one, is that the “good ones” are simply clever enough to evade your bullshit detector.

The whole game is to make you think you’re hiring some friendly pro who’s got it all covered, but in the end you were better off doing it yourself anyway.

I was a naive teenager who lacked ability, just trying to help out my family. I still feel guilty to this day.

bonn2 , in And for everyone wondering, the street in the middle is not one way.

Just spitballin here. Is the route taking a highway? (I think I see an on ramp). If so, I am about 85% sure the algorithm is just assigning too much value to highways. Generally, highways should be “valued” more to avoid just going down tenthousand sidestreets to get everywhere.

MazonnaCara89 OP ,
@MazonnaCara89@lemmy.ml avatar

Yes it’s a highway, probably that’s the case.

Transporter_Room_3 ,
@Transporter_Room_3@startrek.website avatar

The green route is a highway access ramp onto the highway.

The road that looks like it should connect is street-level.

This area of GTA is a cluster fuck of roads for shipping stuff.

soggy_kitty ,

Logically this “value” of a road is your predicted speed taking into account speed=distance/time. Modern navigation systems work the exact same way.

You know damn right people drive highway speeds on side roads in GTA

FiskFisk33 ,

the gps assumes legal speeds though

Scoopta , in ???
@Scoopta@programming.dev avatar

When script kiddies are the new high we’ve collectively reached a new low

ono , in Its not wrong though

Cute. It would be funnier if it was correct.

kaschu , in Linux Best Practices
@kaschu@programming.dev avatar

I have checked this and can confirm that after entering this command, there is no more French in the system. 👍

speaker_hat ,

Awesome thanks, I just also run it now waiting for it to fin

philm ,

(Nor anything else…)

Rogue , in Quantum Lock suspends sales due to developers losing access to source code

Why not just give it away for free? It always seems odd to me that games just disappear rather than being allowed an elegant death of old age.

Fribbtastic ,

Probably depends on the background as well. They could have hardware running (multiplayer server) that gets so little activity that there is no benefit and only loses them money.

It also doesn’t look like the game has steam integration.

ICastFist ,
@ICastFist@programming.dev avatar

Then why not release the binaries for running such server? I’m sure a group of people could figure out how to decompile and make a change so the game attempts to connect to a different master host

Fribbtastic ,

Well, i mean i would be all for that but in reality it might not be that easy. It could rely on dependencies that are proprietary that cannot be shipped or provided with the project.

It could alone be that the connection is hard coded in the game itself so instead of just booting up the server and being able to play you would now have to do something to the game itself too that it finds your server. Nothing really that cannot be addressed, I mean people could do that with ragnarok online private servers but not something your normal gamer could do.

towerful ,

If they weren’t using VCS, I bet they have creds embedded in the source.

Aatube OP ,

I'd doubt that this has creds, though. IIRC Steam multiplayer generates its own creds.

some_guy ,
cupcakezealot , in How programmers comment their code
@cupcakezealot@lemmy.blahaj.zone avatar

//@TODO document this function later

15 years later

Shoe ,

Have reviewed 16 year old code for a very well known company in the last week with this exact comment peppered throughout, alongside delightfully helpful comments like:

// do not delete or change this it just works

// TODO temporary fix added 12/09/11 to fix incident must be removed ASAP

// CAUTION this returns false here instead of true like it normally does, not sure why

// if true then matched to valid account not is true

OsaErisXero , in Alcohol is my way to turn myself on and off again

'The wind keeps blowing my wifi signal away ' is more than enough information to diagnose the problem, and 'the computer forgot my password' is now a real thing since password managers started coming baked into browsers.

We are so far beyond parody of ourselves that i have no idea how the onion stays in business.

pineapplelover ,

Using Bitwarden must be too complicated for these guys or something.

invertedspear ,

I work with programmers and devops people who think BitWarden is too complicated. I get it when it comes to the product team and BAs, but even then.

30p87 ,

You misspelled KeePass

pineapplelover ,

If bitwarden is too complicated, keepass is out of the picture

WalrusDragonOnABike ,

How could you be simpler than keepass? Like, there’s more advanced features, but for basic function, its just a password to access a list of passwords.

elvith ,

…its just a password to access a list of passwords.

Unless you never thought of, implemented, regularly did and regularly tested your backup of the database. Or… try to use it on more than one device - maybe even at the same time.

That’s the main problem with KeePass. It’s nice to have it offline, fully under your control and out of the cloud, but that comes with some responsibilities on your end. And now think of how the average user solves this. If you’re tech savvy enough, KeePass is great!

WalrusDragonOnABike ,

You technically only need it on one device if you don’t want to be able to copy/paste or use the autotype feature. Which works fine until you lose or break that one device or upgrade to a new one and forgot you needed to transfer your passwords or delete your database because you didn’t remember what it was and wanted to free up space.

And Bitwarden has scary things like “self-hosting”.

cmnybo ,

It works fine with Syncthing so long as you only ever have the database open on one device at a time.

eatham ,
@eatham@aussie.zone avatar

You can have it open on multiple at a time if you are not editing.

eatham ,
@eatham@aussie.zone avatar

Setup syncthing between the computers. If the person is not tech savy enough, they can always force the tech savy enough person they know to set it up for them. The are no problems with the tech, people just dont know it exists. Even if you don’t or can’t use syncthing (iOS users), you can just be stupid and put it in the cloud.

cizra ,

You misspelled KeepAss.

Ephera , in Linus Torvalds to Rewrite the Linux Kernel in PHP

Good thing that this isn’t actually possible…

morrowind ,
@morrowind@lemmy.ml avatar

Don’t tempt fate. There are already two kernels written in javascript

spacecadet ,

Why would God allow this to happen?

Barbossa404 ,

Why do you think God stays in heaven, in fear of what He created?

davidgro ,

For the benefit of any of Today’s 10,000 I just want to point out that this is a reference to a quote from a movie.
The same movie stars Danny Trejo as Machete.
This movie is Spy Kids 2.

theRealBassist ,

For the benefit of any of Today’s 10,000

Haven’t seen that referenced in a hot minute lol

Relevant xkcd: xkcd.com/1053

ZeroHora ,
@ZeroHora@lemmy.ml avatar

God is dead

camr_on ,
@camr_on@lemmy.world avatar

We killed Him

Chadus_Maximus ,

To punish us for the sin that is inventing JavaScript.

Ephera ,

How? You’d need to compile it down to machine code somehow, for the processor to have any clue how to run it. And you’d need some custom library with custom compile instructions, to be able to control memory allocations, memory addresses etc…

I did a quick search and found two operating systems written in JS, both of which cop out when it comes to the kernel. Did you maybe mix it up with those?

frezik ,

There’s almost always at least a little ASM sprinkled into any kernel, so that’s not a big deal.

OTOH, there is the factor of “you know how Chrome takes up 2GB per tab? What if that was a whole OS?”

morrowind ,
@morrowind@lemmy.ml avatar

Maybe I did, I haven’t looked any of them carefully

TrickDacy ,

Theoretically if you found a way to compile PHP, you probably could though, right?

Ephera ,

I mean, I’m a bit out of my water there, both in terms of the featureset of PHP and what’s actually needed for a kernel, but I’m still gonna go with no.

For one, PHP uses reference counting + garbage collection for memory management. That’s normally done by the language runtime, which you won’t have when running baremetal.

Maybe you could implement a kernel, which does as few allocations as possible (generally a good idea for a kernel, but no idea, if it’s possible with PHP), and then basically just let it memory leak until everything crashes.
Then again, the kernel is responsible for making processes crash when they have a memory leak. Presumably, our PHP kernel would just start overwriting data from running processes and eventually overwrite itself in memory(?). Either way, it would be horrendous.

Maybe you could also try to implement some basic reference counting into your own PHP code, so that your own code keeps track of how often you’ve used an object in your own code. Certainly doesn’t sound like fun, though.

Well, and secondly, I imagine, you’d also still need an extension of the language, to be able to address actual memory locations and do various operations with them.

I know from Rust, that they’ve got specific functions in the stdlib for that, see for example: doc.rust-lang.org/stable/std/ptr/index.html#funct…
Presumably, PHP does not have such functions, because its users aren’t normally concerned with that.

TrickDacy ,

Right – I’m not saying you could build a compiler then just go to town. You would still have to build all the tools, using PHP, to interact with hardware, the way other languages do. A horrible idea, lol, but interesting, sort of. Since at its core as long as you can execute logic and read/write to memory, you could do it, I think

Ephera ,

But that is what I mean with it needing an extension of the language.

So, I’m not saying you could just build a library that calls existing PHP functions to make it all work. Rather I’m saying there’s certain machine code instructions, which just cannot be expressed in PHP. And we need those machine code instructions for actually managing memory. So, I am talking about reading/writing to memory not being possible, unless we resort to horrible hacks.

Since we are building our own compiler anyways, we could add our own function-stubs and tell our compiler to translate them to those missing machine code instructions. But then that is a superset of PHP. It wouldn’t be possible in PHP itself.

Again, I’m not entirely sure about the above, but my web search skills couldn’t uncover any way to actually just read from a memory address in PHP.

TrickDacy ,

I mean, I think we’re saying the same thing, you just have better vocabulary than I :)

felixwhynot ,
@felixwhynot@lemmy.world avatar

I did use a crypto mining OS that was Linux but with lots of scripts that were written in… PHP! I never thought I’d see it.

TootSweet , in Cupholder.exe
can ,

How could I know, out of curiosity? I probably have the exe from the time period.

TootSweet ,

Great question! Not really my area of expertise, but probably there are at least a couple of possible avenues. One is decompilation and/or disassembly and static analysis. (Basically use automated tools to reconstruct the original source code as best it can and then read that imperfect reconstruction of the source code to figure out what it does.) Another is isolating it (“air gap” – no network or connectivity to anything you care about) so you’re sure it can’t do any damage and running it with tools that record/report everything it does. (On Linux, one could use strace and/or GDB. On Mac, dtrace. Not sure what the equivalent is for Windows programs running on Windows.)

Actually, I guess another option could be to set up an isolated system, record a whole bunch of information about it before running the .exe then after running the .exe, examine it to see what you can find on the filesystem or in the registry or in RAM or whatever that might have changed. It wouldn’t catch everything, though. Like if it made a network connection or something but didn’t actually change anything on the filesystem, it might not leave any traces.

Whatever the case, it’d probably require some specialized tools and expertise. But it’d be an interesting project.

DudeDudenson ,

That last part, that’s what sandboxie is for

fuckwit_mcbumcrumble ,

Try decompiling it.

mhague ,

There are tracing programs that let you see when a program makes system calls to read and write files, control hardware, etc. It might be easiest to run it and see what it does in a VM sandbox. Process Monitor looks like a strace equivalent on windows.

Technus , in Serverless and homeless

I ran up like a $5k bill over a couple weeks by having an application log in a hot loop when it got disconnected from another service in the same cluster. When I wrote that code, I expected the warnings to eventually get hooked up to page us to let us know that something was broken.

Turns out, disconnections happen regularly because ingress connections have like a 30 minute timeout by default. So it would time out, emit like 5 GB of logs before Kubernetes noticed the container was unhealthy and restarted it, rinse and repeat.

I know $5k is chump change at enterprise scale, but this was at a small scale startup during the initial development phase, so it was definitely noticed. Fortunately, the only thing that happened to me was some good-natured ribbing.

henfredemars ,

Years ago I was told that serverless would be cheaper than running your own servers. It seems like it’s not necessarily cheaper, but just a different way of designing a solution. Would you agree with that assessment? I have never used serverless. Every place I’ve worked needed tightly controlled data so on premises only.

Meanwhile I host my personal website on dirt cheap VPS.

elgordino ,

The thing with serverless is you’re paying for iowait. In a regular server, like an EC2 or Fargate instance, when one thread is waiting for a reply from a disk or network operation the server can do something else. With serverless you only have one thread so you’re paying for this time even though it’s not actually using any CPU.

While you’re paying for that time you can bet that CPU thread is busy servicing some other customer and also charging them.

I like serverless for it’s general reliability, it’s one less thing to worry about, and it is cheap when you start out thanks to generous free tiers, at scale it’s a more complex answer as whether it is good value or not.

henfredemars ,

Therefore, would you agree that serverless is more about freeing up your mind as a developer and reducing your number of concerns where possible rather than necessarily cost savings or scaling?

In other words, is it less about better scaling and more about scaling isn’t your problem?

kbotc ,

I mean, does writing in Python rather than C free up your mind? It’s just another abstraction tradeoff.

brandon , (edited )

It’s cheaper if you don’t have constant load as you are only paying for resources you are actively using. Once you have constant load, you are paying a premium for flexibility you don’t need.

For example, I did a cost estimate of porting one of our high volume, high compute services to an event-driven, serverless architecture and it would be literally millions of dollars a month vs $10,000s a month rolling our own solution with EC2 or ECS instances.

Of course, self hosting in our own data center is even cheaper, where we can buy and run new hardware that we can run for years for a fraction of the cost of even the most cost-effective cloud solutions, as long as you have the people to maintain it.

Technus ,

The applications I’ve built weren’t designed for serverless deployment so I wouldn’t know. It seems like you pay a premium for the convenience though.

marcos ,

When you have 0 usage, serverless can be up to 100% cheaper than a VPS.

That difference propels its ROI into huge values, on business models that can scale up to sigle-digit dollars a month.

Meanwhile, the risk that you get a $100000 bill out of nowhere is always there.

SpaceNoodle ,

It was $5k worth of training, and well worth it, since you still remember the lesson.

Reminds me of an issue while carrier-testing a to-be-released smartphone. The third party hired to do this testing would sideload an app to run the tests, but it would try to do something hinky in the background with logging, leading to an infinite retry loop for opening a nonexistent file, effectively doubling the device’s power consumption.

Technus ,

It was $5k worth of training, and well worth it, since you still remember the lesson.

Yep.

That’s also not the most money I’ve ever unintentionally cost an employer.

xmunk ,

I would be frankly amazed if it was. I’ve got nearly two decades under my belt and I have some legendary fails.

BradleyUffner ,

I still have people trying to convince me that this would let us run massively complex websites with thousands of users for pennies a month

the_of_and_a_to , in “ARE YOU ALL SEEING THIS”

deleted_by_author

  • Loading...
  • FooBarrington ,

    I like “orphanize” - one of those things that shouldn’t be a word, but is!

    pkill ,

    umbilicalCord.cut()

    Iron_Lynx ,

    NGL, Orphaniser or Orphanizer sounds like one hell of a metal band name

    FooBarrington ,

    Alternatively a depressingly realistic look at the consequences of war for non-participating children, couched in the veneer of an 80s Sci-Fi movie.

    “YOUR PARENTS WILL NOT BE BACK”

    ivanafterall ,
    @ivanafterall@kbin.social avatar

    Or a Shark Tank-style infomercial product. "It's The Orphanizer, From Ronco!"

    FooBarrington ,

    What would it do? Delete all memories of a childs parents from their brain, making them think they’ve been orphans all along?

    ivanafterall ,
    @ivanafterall@kbin.social avatar

    Seems like it'd be easier and more honest to have it just kill the parents.

    FooBarrington ,

    I assumed it’s something parents buy for their children.

    PoolloverNathan ,
    
    <span style="font-weight:bold;color:#a71d5d;">impl</span><span style="color:#323232;"><</span><span style="font-weight:bold;color:#a71d5d;">'a</span><span style="color:#323232;">, T: Child> ChildRef<</span><span style="font-weight:bold;color:#a71d5d;">'a</span><span style="color:#323232;">, T> {
    </span><span style="color:#323232;">  </span><span style="font-weight:bold;color:#a71d5d;">fn </span><span style="font-weight:bold;color:#795da3;">orphanize</span><span style="color:#323232;"><T: Child>(r: </span><span style="font-weight:bold;color:#a71d5d;">Self</span><span style="color:#323232;">) -> Orphan<T>;
    </span><span style="color:#323232;">}
    </span>
    
    jjagaimo ,

    SendToBoardingSchool()

    IWantToFuckSpez ,

    Just rename the child to Hamas. IDF will kill it for you.

    isVeryLoud ,

    Garbage collection???

    /s

    PoolloverNathan ,
    
    <span style="font-style:italic;color:#969896;">-- |Removes the given object from its current parent, if any, and then adds it as a child of the other given object.
    </span><span style="font-weight:bold;color:#795da3;">kidnap </span><span style="font-weight:bold;color:#a71d5d;">:: ChildBearing </span><span style="color:#323232;">c p
    </span><span style="color:#323232;">       </span><span style="font-weight:bold;color:#a71d5d;">=> </span><span style="color:#323232;">p </span><span style="font-style:italic;color:#969896;">-- ^The kidnapper.
    </span><span style="color:#323232;">       </span><span style="font-weight:bold;color:#a71d5d;">-> </span><span style="color:#323232;">c </span><span style="font-style:italic;color:#969896;">-- ^The child to kidnap.
    </span><span style="color:#323232;">       </span><span style="font-weight:bold;color:#a71d5d;">IO </span><span style="color:#0086b3;">()
    </span>
    
    Lime66 ,
    
    <span style="color:#323232;">def callCps()
    </span>
    
    Blackmist , in Some of my iterations are delightfully recursive

    As your compiler patiently turns it back into a loop.

    intensely_human ,

    mmyes

    ILikeBoobies , in I can't believe people are still using GUMBIES when there are so many better alternatives.

    I experienced a new hell today

    The whole of the documentation was in video format and you had to accept all cookies to play the videos

    At least with GUMBIES not having documentation there is a wide thread of people asking questions on third party sites

    xmunk ,

    This was legitimately part of the reason I went with Laminas instead of Laravel for a project. I really don’t want critical documentation to be in video form.

    shasta ,

    I fully agree with you. However, I just had an interesting thought. Could someone use chatgpt to transcribe the video’s audio to text and plop it into a wiki?

    dan ,
    @dan@upvote.au avatar

    Any documentation videos that comply with accessibility requirements will have subtitles. Just extract the subtitles from the video.

    mindbleach ,

    Projects based on Gibson novels are lame. The new hotness is documentation based on Bradbury novels.

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