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.

jubilationtcornpone , in Googling

“Prompt Engineering”: AKA explaining to Chat GPT why it’s wrong a dozen times before it spits out a useable (but still not completely correct) answer.

ByteOnBikes ,

That’s actually a valid skill to know when to tell the AI that it’s wrong.

A few months ago, I had to talk to my juniors to think critically about the shitty code that AI was generating. I was getting sick of clearly copy-pasted code from chatGPT and the junior not knowing what the fuck they were submitting to code review.

Evotech ,

Should start asking them like, why did you do this? Why did you chose this method? To make them sweat :p

sukhmel ,

That used to make sense when LLMs were not the thing, when evaluating assessments from students, half of which asked someone else and didn’t bother to even read the code

howrar ,

If no one can make sense of the change, then you reject it. Makes no difference if it was generated with an LLM or copy-pasted from Stackoverflow.

31337 ,

I just ask ChatGPT to review pull requests.

sukhmel ,

If there exists an answer, as gpt will tell you the answer exists till the very end, even when it’s not so

cupcakezealot , in Seriously how many times does this have to happen
@cupcakezealot@lemmy.blahaj.zone avatar

don’t commit credentials; split them up and place each part in a different place in the code and use code comments as a treasure map and make them work for it.

dbx12 ,

Ah, the horcrux technique.

Mercury , in Always try sudo

Goddamn, the joke gets worse the more I inspect each panel.

johannesvanderwhales ,

XKCD 149 but worse.

Obi ,
@Obi@sopuli.xyz avatar

Link for the lazy.

guemax ,

Thank you very much!

Linkerbaan ,
@Linkerbaan@lemmy.world avatar

The font changes like 3 times 👌

jol ,

They are a doctor of computer science, not a doctor of design. You need a design phd to pick correct fonts.

Kuragi2 , in No common rube

Then you look at the uptime. 247 days. No longer have you been elevated. Now you’re the vilest of vile. You’re the user that lies. You just say what you think we want to hear, don’t you? Well, now you’re getting put on hold. For as long as your uptime was.

DokPsy ,

We have a running leader board for uptime. Servers don’t count. That said, I’ve seen some people who think they actually are turning it off but the machine just enters sleep mode. I only trust

shutdown /r /t 0

kewko ,

/a /A Pleeeeease Haiku?

DonGirses ,

add a /f for good measure

SLVRDRGN ,

Wouldn’t shutdown /p be faster?

ulterno ,
@ulterno@lemmy.kde.social avatar

I just press the power button/switch on the UPS/PSU/wall.

DokPsy ,

I’m remote so either I trust the user or push commands. I know which I prefer

ulterno ,
@ulterno@lemmy.kde.social avatar

Hello there REISUBber!

isolatedscotch ,

unless you do it from a running system (which you shouldn’t, unless you want everything corrupted, that won’t help. windows has a feature called fast startup that only kinda shuts down your PC, even if you unplug it, so things that would get fixed by an actual reboot wouldn’t be fixed in your case

ulterno ,
@ulterno@lemmy.kde.social avatar

Thankfully, I’m not on Windows.
But the switch is only to make sure it is off. Of course I poweroff before that.

Trust me! I really do!

shield_gengar ,
@shield_gengar@sh.itjust.works avatar

IT people casually telling users to turn off all the breakers for 30s

Ookami38 ,

To be fair, I do IT for convenience stores. Sometimes we have to reboot pumps or similar, and all we can do is have them throw a breaker for 30 seconds lmao

ikidd ,
@ikidd@lemmy.world avatar

Is everyone using kpatch then? Because uptime if you’re still running 3.12 is silly.

buddascrayon ,

looks nervously at my personal computer that has been running constantly for 5 years

Bosht ,

Yup this is exactly what I was going to post. Was in the industry for 10 years and call me pessimistic but the second they told me they’d already rebooted I’d check uptime.

Pazuzu ,

Except when they’re not lying but windows by default has ‘fast-startup’ enabled, so every time they shutdown the uptime never resets.

livingcoder , in Mcafee accidentally made users call the devs of SQLite and complain.

I love how the solution didn’t involve changing the prefix to “mcaffee_”. Now users don’t know who to blame. Great. That’s so nice of them.

camr_on ,
@camr_on@lemmy.world avatar

Then mcaffee_ would be appearing in unrelated sqlite-using applications

livingcoder ,

Oh, I thought that the temp files were named by the user. If that’s not the case, that these are not databases created specifically by McAfee in the temp directory, then I’m not sure what the appropriate solution should be. Obscuring the file type and how the file is used from users is still a bad practice.

Daxtron2 ,

Why would sqlite put references to an unrelated product in their codebase?

Hawke ,

The same reason that McAfee did?

dgriffith ,

McAfee wrote a program that used the Sqlite library for database storage.

When going about its data storage business for McAfee’s program, the Sqlite library was storing files in C:\temp with prefixes like sqlite_3726371.

Users see that and get angry, and bug the Sqlite developers.

Now probably when initialising the Sqlite library McAfee could have given it the location of a directory to keep it’s temp files. Then they could have been tucked away somewhere along with the rest of the McAfee code base and be more easily recognised as belonging to them, but they didn’t.

So because of a bit of careless programming on McAfee’s part, Sqlite developers were getting the heat because the files were easily recognisable as belonging to them.

Because the Sqlite developers don’t have control of what McAfee was doing, the most expedient way to solve the problem was to obfuscate the name a bit.

livingcoder ,

Yeah, if it’s purely a Sqlite implementation detail to create temp files, that’s on them to own and fix. I thoroughly dislike that the files are obscured from users.

dan ,
@dan@upvote.au avatar

McAfee might be doing something weird with the database, for example not closing it properly.

Daxtron2 ,

McAfee didn’t, sqlite produces that name on its own. Its McAfee that stored them weirdly

SwordInStone ,

the solution is not on the mcafee side but on sqlite

cypherpunks , (edited ) in How to write Hello World
@cypherpunks@lemmy.ml avatar

python -c ‘print((61966753*385408813*916167677<<2).to_bytes(11).decode())’

how?$ python >>> b"Hello World".hex() ‘48656c6c6f20576f726c64’ >>> 0x48656c6c6f20576f726c64 87521618088882533792115812 $ factor 87521618088882533792115812 87521618088882533792115812: 2 2 61966753 385408813 916167677

palordrolap ,

perl -le 'use bignum;print+pack"H22",(61966753*385408813*916167677<<2)->to_hex()'

Alas, Perl doesn't bignum by default

pleb_maximus , in It's easier to remember the IPs of good DNSes, too.

You can still NAT IPv6

gratux ,
@gratux@lemmy.blahaj.zone avatar

Yes, but why would you want to? We have enough addresses for the foreseeable future.

Brkdncr ,

So you don’t need to change your network if your isp changes.

mholiv ,

You shouldn’t have to?? Maybe you might need to change the mask in your firewall settings if the ipv6 allocation block size changes but that should be it.

Everything else should just work as normal.

r00ty Admin ,
r00ty avatar

You should only assign static ipv6 to servers, in theory you could just define a host id and use a prefix too. But, most people at home really aren't running enough servers to make that worthwhile. Everything else should just pick up new addresses fine using ND.

frezik ,

There ought to be more servers.

Will the app for the smart thermostat be updated three years from now and still be useful? If it was instead a web server app on a routable IP, it wouldn’t matter provided they didn’t fuck up the authentication and access control.

r00ty Admin ,
r00ty avatar

Yeah, but they're not. That's the modern world. But also even if it was a web server there's usually ways to advertise the IP for the app to connect to. I've seen other stuff do that. So getting an IP is easy. Once the app knows the IP and if you really want to allow connections from outside to your IOT devices (I wouldn't) it could remember the IP and allow that.

You really don't need to give a fixed IP to everything. I think I've given 1 or 2 things fixed IPv6 IPs. Everything else is fine with what it assigns itself.

frezik ,

The other app off the top of my head is VoIP. You should be able to “dial” a number directly. Most solutions go through the company’s data center first in order to pierce through NAT. Which makes it more expensive, less reliable, slower, and more susceptible to snooping.

There’s a “if you build it, they will come” effect here. Once you can address hosts directly, a whole bunch of things become better, and new ideas that were infeasible are now feasible. They don’t exist now because they can’t.

vzq ,

The solution to that is to buy a net block. IPV6 address space is very affordable.

dan ,
@dan@upvote.au avatar

You can use ULAs (unique local addresses) or that purpose. Your devices can have a ULA IPv6 address that’s constant, and a public IPv6 that changes. Both can be assigned using SLAAC (no manual config required).

I do this because the /56 IPv6 range provided by my ISP is dynamic, and periodically changes.

Brkdncr ,

Yes but you’d still be performing NAT. It’s at least 1:1.

You’ll need to deal with firewall rules regardless, and drop IPs into policies. IPv6 doesn’t remove any of those chores but gets rid of having to maintain tables to deal with many-to-one NAT.

dan ,
@dan@upvote.au avatar

You wouldn’t need NAT. The ULA is used on the internal network, and the public IP is for internet access. Neither of those need NAT.

Brkdncr ,

If you use a single shared public ip then you’re using some amount of address translation.

If you’re using an external ip address that’s different than an internal ip address but both are assigned to a single host the you’re doing 1:1 NAT.

At least that’s how I understand ipv4 and I don’t think ipv6 is much different.

dan , (edited )
@dan@upvote.au avatar

If you use a single shared public ip then you’re using some amount of address translation

This is practically never the case with IPv6. Usually, each device gets its own public IP. This is how the IPv4 internet used to work in the old days (one IP = one device), and it solves so many problems. No need for NAT traversal since there’s no NAT. No need for split horizon DNS since the same IP works both inside and outside your network.

There’s still a firewall on the router, of course.

At least that’s how I understand ipv4 and I don’t think ipv6 is much different.

With IPv6, each network device can have multiple IPs. If you have an internal IP for whatever reason, it’s in addition to your public IP, not instead of it.

IPs are often allocated using SLAAC (stateless address auto config). The router tells the client "I have a network you can use; its IP range is 2001:whatever/64, and the client auto-generates an IP in that range, either based on the MAC address (always the same) or random, depending on if privacy extensions are enabled - usually on for client systems and off for servers.

Brkdncr ,

Just like ipv4 though, you wouldn’t use external addresses internally because your external IPs might change, such as when moving between ISPs. You would NAT a hosts external address to its internal address.

dan ,
@dan@upvote.au avatar

your external IPs might change, such as when moving between ISPs

This is true

You would NAT a hosts external address to its internal address.

This is usually not true.

If you’re worried about your external IP changing (like if you’re hosting a server on it), you’d solve it the same way you solve it with IPv4: Using dynamic DNS. The main difference is that you run the DDNS client on the computer rather than the router. If there’s multiple systems you want to be able to access externally, you’d habe multiple DDNS hostnames.

Brkdncr ,

DNS doesn’t propagate fast enough.

Brkdncr ,

What translates the public ip to the internal ip? Aren’t they different?

dan ,
@dan@upvote.au avatar

There’s no translation between them. With IPv6, one network interface can have multiple IPs. A ULA (internal IP) is only used on your local network. Any internet-connected devices will also have a public IPv6 address.

ULAs aren’t too common. A lot of IPv6-enabled systems only have one IP: The private one.

lambalicious OP ,

That’s what they thought for IPv4… and for 2-year digits… and for…

flying_sheep ,
@flying_sheep@lemmy.ml avatar

I haven’t read anything this cursed in a while

r00ty Admin ,
r00ty avatar

Only if you're a masochist.

JATtho , in What the heck is a god dang cloud?

I once helped a person with their computer. They complained the they cant save the their photos. Well, their onedrive was filled to brim with crap, while the local 1Tb disk was empty because they had zero idea how storage and folders work. I had to explain her there is literally 1000x more fast disk space available, so please dont save into onedrive.

Dagrothus ,

I dont blame her tbh. I have onedrive completely disabled on my personal pc, but on my work laptop Windows defaults everything to onedrive and names the onedrive folders identically to your local ones.

floofloof , (edited )

Naming different things identically is a thing Microsoft loves to do. I still keep opening Teams or Teams instead of Teams. And I think there are at least three things on my PC called Copilot, and they haven’t even released Copilot yet.

ProgrammingSocks ,

It’s not really her fault. Microsoft pushes people to use their onedrive and pay for a subscription even when people have no clue what it is or what it does. Microsoft is just insanely anti-consumer.

skuzz ,

This and many others are reasons a switch to Linux has been so joyful. No more Windows trying to guilt me, nag me, push me, trick me, abuse me to use shit the way they want. It’s so much more…quiet.

InternetUser2012 ,

For me, it just works, it does what I want it to, and it’s not selling my info. A year and half now after leaving windows and I love it. Peaceful

ProgrammingSocks ,

With Linux I have ownership over my computer and control of the software. I couldn’t use anything else.

Matriks404 ,

That’s great unless that person’s files get corrupted/deleted or hard drive fails. Then having backups in the cloud or at least ona a device on a local network is a good idea.

trxxruraxvr ,

In that case it would still be better to save locally and make regular encrypted backups to the clouds than to save everything to the cloud

ohlaph ,

Had to explain that to my nephew. He couldn’t save anything because iCloud was full. His Mac had like 300gigs available, but he couldn’t save anything…

cupcakezealot , in this is what peak web traffic looks like
@cupcakezealot@lemmy.blahaj.zone avatar

can’t have a website problem if every page is 404 taps forehead

ninth_plane , in C++

Eventually the line comes back in from the top.

witx ,

Or perhaps it will come from the right? Undefined behaviour is the magic word

RoyaltyInTraining ,
@RoyaltyInTraining@lemmy.world avatar

Integer underflow

samara , in What it's like to be a developer in 2024

“The Man Who Killed Google Search”

www.wheresyoured.at/the-men-who-killed-google/

Vilian ,

news.ycombinator.com/item?id=40133976 here’s a hackernews discussion about that article

andxz ,

That was an interesting read, thank you.

Technus , in Mini-computers capped out too soon man. I hate miniaturization! Make computers big again!

You know there’s nothing stopping you from buying a server rack and loading that bad boy out with as much processing power as your heart desires, right?

Well, except money I guess, but according to this 1969 price list referenced on Wikipedia, a base model PDP-11 with cabinet would run you around $11,500. Adjusted for inflation, that’s about 95 grand. You could put together one hell of a home server for that kind of money.

ChubakPDP11 OP ,

My man we have UNIX because PDP-11 was expensive!

BCsven , in The real history behind the Lunix operating system

As much as I enjoy satire, there are people that will cite this and believe it

abbadon420 ,

I’d just like to interject for a moment. What you’re refering to as Linux, is in fact, Xenix/LInux, or as I’ve recently taken to calling it, Xenix plus Linux… etc

jrbaconcheese ,

How does New Lunix fit into the picture?

sus ,

Considering this was written in 2001, I’m not all that worried

ImplyingImplications ,

It’s not satire! Torovoltos used telnet to hack into my iPhone and instal an mp3 virus known as Songs of Innocence

BilboBargains , in Senior dev be like...

Do you have excess creative energy?

Pour it into discussion that achieves nothing of value.

nxdefiant ,

Have you considered writing your own projects that you have to hide from your employers, and be careful with whom you discuss, so as to avoid the legal complications of the company owning your work?

halloween_spookster , in "prompt engineering"

I once asked ChatGPT to generate some random numerical passwords as I was curious about its capabilities to generate random data. It told me that it couldn’t. I asked why it couldn’t (I knew why it was resisting but I wanted to see its response) and it promptly gave me a bunch of random numerical passwords.

NucleusAdumbens ,

Wait can someone explain why it didn’t want to generate random numbers?

ForgotAboutDre ,

It won’t generate random numbers. It’ll generate random numbers from its training data.

If it’s asked to generate passwords I wouldn’t be surprised if it generated lists of leaked passwords available online.

These models are created from masses of data scraped from the internet. Most of which is unreviewed and unverified. They really don’t want to review and verify it because it’s expensive and much of their data is illegal.

dukk ,

Also, researchers asking ChatGPT for long lists of random numbers were able to extract its training data from the output (which OpenAI promptly blocked).

Or maybe that’s what you meant?

Dkarma ,

It’s not illegal. They don’t want to review it because “it” is the entire fucking internet…do you know what that would cost?

Once again. For the morons. It is not illegal to have an ai scan all content on the internet. If it was Google wouldnt exist .

Stop making shit up just cuz u want it to be true.

Natanael ,

The crawling isn’t illegal, what you do with the data might be

Natanael ,

It’s training and fine tuning has a lot of specific instructions given to it about what it can and can’t do, and if something sounds like something it shouldn’t try then it will refuse. Spitting out unbiased random numbers is something it’s specifically trained not to do by virtue of being a neural network architecture. Not sure if OpenAI specifically has included an instruction about it being bad at randomness though.

While the model is fed randomness when you prompt it, it doesn’t have raw access to those random numbers and can’t feed it forward. Instead it’s likely to interpret it to give you numbers it sees less often.

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