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.

Darkassassin07 , in OneDrive deleted my files!
@Darkassassin07@lemmy.ca avatar

I’m so glad I purged windows from my systems this year.

Go fuck yourself Microsoft.

R00bot ,
@R00bot@lemmy.blahaj.zone avatar

Hell yeah bro same. I’ve been amazed at how much better Linux is in just about every way, except for native software availability, but it’ll get there. I feel like Microsoft is approaching the tipping point for shit people will put up with, and desktop Linux is so good now that non-technical people can move over to it.

AnUnusualRelic ,
@AnUnusualRelic@lemmy.world avatar

It has great native software availability. It’s just not the same software.

Wirlocke ,

I already planned on my next computer being Linux Mint, but it’s getting more and more desired as time goes on.

I was playing Elden Ring when it began stuttering, turns out Windows Defender was just constantly reading the disk (I still have a hard drive). Finally turned off maximum priority (seemingly random) scans in task scheduler when I began stuttering again. This time it was Windows Compatibility Telemetry taking up 50% of the disk, until I finally found a way to turn that off.

It’d be so nice to have an OS that doesn’t run random unnecessary things without your permission.

Darkassassin07 ,
@Darkassassin07@lemmy.ca avatar

No time like the present!

I shifted all my important data to an external disk, wiped the main ssd, slapped Debian on there, then moved the data back. Great way to spend an afternoon.

Wirlocke , (edited )

I likely would but my computer’s from 2016 with no upgrades, so I’m on the cusp of building a new one from scratch.

After I do that though the old one’s becoming a linux server for sure.

Edit: Hmm, everyone telling me about their massive performance boosts is making me consider pulling the trigger and migrating my current computer.

Darkassassin07 ,
@Darkassassin07@lemmy.ca avatar

TBF you’d probably get even more benefit from de-bloating that PC then. Free up some processing power for the tasks you actually want, instead of doing Microsofts bidding in the background all the time.

But we’ve all got different plans/priorities/timelines. Best of luck to you m8!

Revan343 ,

Slap some XFCE or LxQt in there, she’ll run twice as quick

Glimpythegoblin ,

I just put mint on a 2015 dell shit laptop that barley functioned with windows. Now it’s a perfectly fine computer. I don’t do much besides use the internet but it struggled with that before.

alsimoneau ,

I’m daily driving a 2013 laptop on Endeavour and it feels as fast as new stuff. Doing a lot of relatively heavy compute on it too.

Redkey ,

That’s still newer than any of my daily-use laptops that are all running full-featured Linux distros just fine. I got 'em all cheap secondhand, and just pumped up the RAM (12-16GB) and installed SSDs.

oo1 ,

hmmn, HDD? you really need to replace that for your main drive if you can - whatever the os .

Wirlocke ,

I have an SSD for my OS, but a large HDD for my games. It really starts to show as textures take a long time to load in.

AnarchistArtificer ,

As a gamer, I was anxious about switching to Linux as my daily driver, but I needed to fully immerse myself to improve at Linux, and I’ve been pleasantly surprised by how few gaming related problems I’ve had.

carrylex OP , (edited ) in Seriously how many times does this have to happen
@carrylex@lemmy.world avatar

I also personally ask myself how a PyPI Admin & Director of Infrastructure can miss out on so many basic coding and security relevant aspects:

  • Hardcoding credentials and not using dedicated secret files, environment variable or other secret stores
  • For any source that you compile you have to assume that - in one way or another - it ends up in the final artifact - Apparently this was not fully understood (“.pyc files containing the compiled bytecode weren’t considered”)
  • Not using a isolated build process e.g. a CI with an isolated VM or a container - This will inevitable lead to “works on my machine” scenarios
  • Needing the built artifact (containerimage) only locally but pushing it into a publicly available registry
  • Using a access token that has full admin permissions for everything, despite only requiring it to bypass rate limits
  • Apparently using a single access token for everything
    • When you use Git locally and want to push to GitHub you need an access token. The fact that article says “the one and only GitHub access token related to my account” likely indicates that this token was at least also used for this
  • One of the takeaways of the article says “set aggressive expiration dates for API tokens” - This won’t help much if you don’t understand how to handle them properly in the first place. An attacker can still use them before they expire or simply extract updated tokens from newer artifacts.

On the other hand what went well:

  • When this was reported it was reacted upon within a few minutes
  • Some of my above points of criticism now appear to be taken into account (“Takeaways”)
onlinepersona ,

To err is to be human… right?

To be honest, this doesn’t instill me with much confidence, but who am I? If someone looked at my OpSec, probably they’d be horrified.

Anti Commercial-AI license

bleistift2 ,

This will inevitable lead to “works on my machine” scenarios

Isn’t that what Python is all about?

MajorHavoc ,

I feel seen.

dohpaz42 ,
@dohpaz42@lemmy.world avatar

Yes kids, the only stuff in ANY repo (public or otherwise) should be source code.

If it is compiled, built, or otherwise modified by any process outside of you the developer typing in your source code editor, it needs to be excluded/ignored from being committed. No excuses. None. Nope, not even that one.

No. 👏 Excuses. 👏

bleistift2 ,

Two choices: Either the production software isn’t in the exact state the repo was when the software was built. Or I can’t get build timestamps in the software.

dan ,
@dan@upvote.au avatar

This will inevitable lead to “works on my machine” scenarios

Isn’t this why Docker exists? It’s “works on my machine”-as-a-service.

Jayjader ,

When you use Git locally and want to push to GitHub you need an access token.

I don’t understand; I can push to GitHub using https creds or an ssh key without creating access tokens.

ArtVandelay , in No common rube
@ArtVandelay@lemmy.world avatar

“What color are the pins on the electrical cord?”

No matter the answer, you can be damn sure they rebooted.

A bit harder in the laptop era though.

Revan343 ,

Ha. That’s fantastic

BallsandBayonets ,

In what possible instance would they not be copper colored?

nyctre ,

I think the idea is that average people have no clue what color they are. So they’d be forced to take it out to check and thus have to restart their PC. It’s a trick!

Altho, maybe I’m misunderstanding something because all the pins of all the electrical cords I’ve ever seen have been silver?

domdanial ,

I’ve seen brass colored on some older plugs.

RidderSport ,
@RidderSport@feddit.org avatar

Meanwhile I don’t have any clue as I only disable my PSU with a switch.

Semi_Hemi_Demigod ,
@Semi_Hemi_Demigod@lemmy.world avatar

I’d make up some BS about an old version of the product using brass or copper, and newer versions using aluminum or iron, so knowing the color will help me know how to fix it

Revan343 ,

Stainless is probably more likely than copper, but the point is to trick them into unplugging the thing

Crozekiel ,

I worked with a guy that would tell people that coax needed to be “released to ground” occasionally, by unhooking the cable and putting your thumb over the end. That’s how he made sure people were disconnecting and reconnecting the cable from the back of the box. He also told someone that “data might be trapped in the Ethernet cord” and advised they unplug it from both ends and swing it around their head in a circle to “loosen the stuck bits and clear the line”…

muntedcrocodile , in Why spend money on ChatGPT?
@muntedcrocodile@lemm.ee avatar

Can someone write a self hostable service that maps a standard openai api to whatever random sites have llm search boxes.

jaybone ,

Can you get one llm search box to generate questions it will pass to another llm search box? And somehow make them have a conversation?

andyburke , in Surely "1337" is the same as 1337, right?
@andyburke@fedia.io avatar

These JSON memes got me feeing like some junior dev out there is upset because they haven't read and understood the docs.

wesker ,
@wesker@lemmy.sdf.org avatar

“true”

kbin_space_program ,

Timing is about right for it to be a batch of newly minted CS grads getting into their first corporate jobs.

Valmond ,

Comments? Comments? Who needs comments?

RustyNova ,

You guys have docs?

0x0 ,

The code is my bible.

RustyNova ,

The schema is this SQL statement

bleistift2 OP ,

Yes, I know the field isn’t nullable in the database. I’m asking you what you are sending me, jack——

(Directed at a colleague)

RustyNova ,

This isn’t even an issue of middle ware sometimes. It’s just… Knowing the DB. And I rather not spend time learning when you can just make docs

Agent641 ,

You guys can read?

apprehentice , in Surely "1337" is the same as 1337, right?

“1” + “1”

kionite231 ,

“11”

wesker ,
@wesker@lemmy.sdf.org avatar

int(“11”)

Skua ,

strings are in base two, got it

Rez ,
@Rez@sh.itjust.works avatar

Wouldn’t the answer be “10” in that case?

joyjoy ,

1+1=11 means base 1

Eheran ,

How so?

CanadaPlus ,

1 11 111 1111 11111 111111

That’s base 1. By convention, because it doesn’t really fit the pattern of positional number systems as far as I can tell, but it gets called that.

Eheran ,

Oh, I get it, was reading as base 2 and confused by that. Essentially Roman numerals without all the fancy shortcuts.

docAvid ,

Closer to tally marks without clustering

Klear ,

Based

docAvid ,

Who calls it that? Who even uses that enough to have given it a name? Seems completely pointless…

CanadaPlus , (edited )

Theoretical computer scientists, historians of mathematics.

I’m not sure where I heard the term exactly, but I know I have multiple times.

docAvid ,

Thanks for sharing this, it’s quite interesting. I found a Wikipedia article on it: en.m.wikipedia.org/wiki/Unary_numeral_system

Apparently, as you did suggest, “base 1” is a name that is used, but is somewhat a misnomer.

The article mentions that Church encoding is a kind of unary notation, which I would not have thought of, but I guess it is.

Enjoyable little rabbit-hole to zap my productivity for the day.

CanadaPlus ,

No problem!

Skua ,

yes, if I could do maths

SpaceNoodle ,

That’s unary.

Agent641 ,

Strings are in base whatever roman numerals are.

dmMeYourNudes , in It's called attaining divinity

I am once again asking programmers to explain the joke

azdle ,
@azdle@news.idlestate.org avatar

C was originally created as a “high-level” language, being more abstract (aka high-level) than the other languages at the time. But now it’s basically considered very slightly more abstract than machine code when compared to the much higher level high-level languages we have today.

Corbin ,

Other way around, actually; C was one of several languages proposed to model UNIX without having to write assembly on every line, and has steadily increased in abstraction. Today, C is specified relative to a high-level abstract machine and doesn’t really resemble any modern processing units’ capabilities.

Incidentally, coming to understand this is precisely what the OP meme is about.

Ziglin ,

I’d say much more highly abstracted than necessarily better (I know plenty of people who despise js and wouldn’t call it better).

FiniteBanjo ,

To add on to @azdle 's comment, “High Level” in terms of programming languages means further away from how the computer processes things and “Low Level” means very similar to how machines process things. For example, binary and hexadecimal (16 bit) machine code such as “assembly language” are both low level.

Imagine if program interpreters were building blocks, then 6 layers of abstraction would be very tall or higher level.

Cethin ,

This is pedantic, but assembly languages get “assembled” to machine code. This is somewhat similar to higher level languages being “compiled,” which eventually becomes assembly which gets assembled. The major reason why these are different is because a compiler changes the structure of the code. Assembly is a direct mapping to instructions. It just converts the text into machine code directly, which is why it’s easy to go from machine code to assembly but decompiling doesn’t give you identical results to the original source code.

Also, binary and hexadecimal are just different ways to view the same binary data and aren’t different things. There is only “machine code” which is a type of binary data but you can view binary with any arbitrary base, though obviously powers of 2 work better.

FiniteBanjo ,

Seems like conflicting statements in your comment. Assembly is abstracted and yet hexadecimal is binary? Make up your mind.

Cethin ,

I don’t think I said assembly is abstracted. It’s pretty much just a translation.

Hexidecimal isn’t binary. They’re both just ways to represent numbers. A number displayed in hexadecimal and binary are the same number even though they look different. FF(base 16) = 1111 1111(base 2) = 255(base 10). They’re all identical.

barsoap ,

Assembly is a direct mapping to instructions. It just converts the text into machine code directly,

Kinda… yes and no? At least with x86 there’s still things like encoding selection going on, there’s not a 1:1 mapping between assembly syntax and opcodes.

Also assemblers, at least those meant for human consumption (mostly nasm nowadays) tend to have powerful macro systems. That’s not assembly as such, of course.

But I think your “a compiler changes the structure of the code” thing is spot-on, an assembler will not reorder instructions, it won’t do dead code elimination, but I think it’s not really out of scope of an assembler to be able to do those things – compilers weren’t doing them for the longest time, either.

I think a clearer division would be that compilers deal with two sets of semantics: That of the source language, and that of the CPU. The CPU semantics don’t say things like “result after overflow is undefined”, that’s C speaking, and compilers can use those differences to do all kind of shennanigans. With assemblers there’s no such translation between different language semantics, it’s always the CPU semantics.

sharkfucker420 , in Someone escaped the Matrix
@sharkfucker420@lemmy.ml avatar
SzethFriendOfNimi , in Serverless and homeless

I have free credits I’m not using for fear of forgetting some task and having to foreclose my home to cover the bill.

Who else loves this new SAAS future we’re living in?

evatronic , in new preference war just dropped

I do one, the other senior dev does the other. We fight about it in pull requests.

livingcoder ,

Your team needs to have a coding standards meeting where you can describe the pros and cons of each approach. You guys shouldn’t be wasting time during PR reviews on the same argument. When that happens to me, it just feels like such a waste of time.

evatronic ,

Preachin to the choir, friend. I’d get worked up about it but I’m paid the same regardless of how upset I get.

OutsizedWalrus ,

Or they need to kit car about stuff like this since it probably doesn’t actually matter.

locuester ,

Agreed. This type of fun is good for the team. Trying to stamp it out, when it impacts very little, is just a buzzkill to the team.

nikaaa ,

This sounds like the typical plot of a story from The Codeless Code.

Edit: How about this story specifically?

JustBrian7872 , in You wouldn’t get it

They don’t call me AbstractJokerAdapterFactoryProxy for nothin’

xmunk , in POV: Working at Google

Excuse me, that else should be elseif( user.region != ‘eu’ )

bjoern_tantau ,
@bjoern_tantau@swg-empire.de avatar

Google: “Haha, hahaha, no.”

KazuyaDarklight , (edited )
@KazuyaDarklight@lemmy.world avatar

elseif( user.region = ‘eu’ ){ SecretlyCollectData(user)}

JohnEdwa ,

Would be neat if Google got caught with a GDPR violation, the max fine is 4% of your global revenue, which for Google would be 12.2 billion.

So far the biggest has been Meta who was hit for 1.2 billion.

Anticorp ,

Else if (EU) {be annoying while collecting data;}

raldone01 ,

No then they just don’t show you that they have your data…

frazw , in When data training goes wrong

So you like it ruff?

BleatingZombie ,

And prefers doggy style

Unlearned9545 , in wait what

Team Tab Supremacy Unite!

Fades , in wait what

Hell yeah tabs

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