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.

original_ish_name , in Simple trick

Your airport wifi doesn’t ask for your email, phone number, bank number of your life savings, etc?

WarmSoda ,

No. Where are you that it asks you for info?

original_ish_name ,

The bank number for life savings was a joke but for some reason they wanted me to verify (I didn’t btw)

WarmSoda ,

Oh I know that. Common verification joke people use.
I’ve never been asked for any information to use airport wifi, that’s why I was wondering where they do ask.

DragonTypeWyvern ,

Places where the airport wifi is actually an evil twin.

FlexibleToast ,

As someone who travels for work, it seems like most places ask.

TurtleTourParty ,

Istanbul requires a Turkish phone number or for you to scan your passport at a console.

snake ,

Usually it asks for an email, but you can just input a fake one.

FlexibleToast ,

It’s me [email protected]

0x2d ,

for a lot of captive portals I type random crap like [email protected] or [email protected]

pmyourtwat ,
MurdoMaclachlan , in More the merrier
@MurdoMaclachlan@lemmy.world avatar

Image Transcription: Meme


Junior devs writing comments:

[A photograph of a road signpost in front of a metal fence with a low, long building in the distance. The post has two signs on it. At the top is an octagonal sign, filled red with a white outline, reading “STOP”. Beneath it is a rectangular sign with an arrow pointing up to the stop sign, and text reading “THIS IS A STOP SIGN”.]


I am a human who transcribes posts to improve accessibility on Lemmy. Transcriptions help people who use screen readers or other assistive technology to use the site. For more information, see here.

sgtlighttree ,

I was wondering where these comments went. Keep up the good work, mate!

MurdoMaclachlan ,
@MurdoMaclachlan@lemmy.world avatar

Thanks! Not sure if there’s been other people doing any or not, but for my part I just do them when I find the time, which unfortunately isn’t all that often.

nuez_jr ,

Good bot.

lugal ,

You mean good human.

I did this over on r*ddit for a while and I’m glad to see that that community exists here too

pythonoob ,

This also works quite well as a meta comment about junior dev commenting practices.

floofloof , in Would you agree?

The problem is capitalism, not which kernel everything runs. And the reason FOSS isn’t universal is also capitalism.

zagaberoo ,

It’s more complicated to make money producing FOSS, capitalism or not. Lots of reasonable developers would still choose closed source even without capitalism.

hellishharlot ,

Making money is a capitalist adjacent idea. The premise that we need money to figure out how to allocate resources is foolish

ursakhiin ,

There’s a bunch of ways to allocate resources but ideas like money have an advantage of allowing people to choose how they live.

A good example would be that not every person would be satisfied living in an apartment in the city. Some prefer living more rural for any number of reasons. Some want to be inside playing video games and others outside biking on a mountain. Some want to be able to do both. Giving them the ability to choose small apartment in the city or bigger house in the woods is important for happiness.

The biggest issue is the discrepancy of resource allocation between individuals not the method that allocation is done on paper.

vrkr ,
@vrkr@programming.dev avatar

The premise that we need money to figure out how to allocate resources is foolish

Money not necessarily, we need to calculate costs (and minimize it) in distributed fashion.

BatmanAoD ,

And the only reasonably successful way we’ve found so far for doing so is…money.

CanadaPlus ,

I’m still waiting for someone to propose in detail an alternative.

argv_minus_one ,

Yeah, that’s the problem. We don’t have the requisite technology to build a Star Trek utopia. If only we did…

ShadyGrove ,

Well, if everything ran Linux…

sj_zero ,

Dirty secret is that FOSS is a product of capitalism and nothing else.

A bunch of nerds being allowed to own and control the means of production created personal computers while the central planners in both communist countries and big companies both thought it was a dumb idea. A bunch of nerds being allowed to own and control the means of production meant that someone could decide to release their product free with source code. Private ownership of intellectual property such as source code allowed people to release their privately owned code under a license specifying that changes must be made public.

From there, the proof in the pudding is in the eating. How many FOSS projects do you use, and who made them?

cyber_kalashnikov ,
@cyber_kalashnikov@lemmygrad.ml avatar

The problem is capitalism,

Perfect! Now if we had a way to end it…

towerful , in Stop doing Color Management!

FML, I’ve had to try to color matching by eye before between different screens by the same manufacturer.
For whatever reason I wasn’t provided with any calibration tools. I had some vague software tools to try and get them to align.
I spent like 8 hours trying to match these for the corporate brand colors, while still looking decent for everything else.
Shit is near impossible. If the manufacturer couldn’t do it, how am I supposed to?! And with awful interfaces and no concrete way of measuring.
Like, I was taking pictures of the screens, then trying to figure out offsets and how they might relate to gamma triangles.

Client was appreciative of my (and fellow techs) efforts, but ultimately wasn’t happy, and it looked shit.
That was awkward as fuck.

evatronic ,

I’ve never done anything close to the color calibration work, in part because my vision is color-deficient by default, so any tools or processes relying on my own visual acuity isn’t going to come out right.

However, I was under the impression that there existed external tools that basically did exactly what you were trying: Taking actual images of the screen in a controlled way and comparing it to physical (or at least a known-good digital) copy of that same image and outputting the “right” profile.

Is that made-up bullshit someone fed me and I never cared to verify it?

droans ,

They exist, but the display needs to interface with the tool.

towerful ,

Yeh, you get a special camera and some software. Whether the camera looks at the whole screen, or it is something you put directly against it depends on the system.
If you are just doing relative calibration (IE making screens look the same without caring about the actual calibration) I think they can work with just a DSLR.

hubobes , in Gourmet Programmer
@hubobes@lemmy.world avatar

Except you have to tell your microwave that the ingredients it used don’t actually exist.

Diplomjodler , in python < shell (for scripts)

Python is the second best language for everything. Having one language that does it all is better than learning several that might do it a little bit better.

sigh ,
@sigh@lemmy.world avatar

holy shit you’re right

bort ,

Careful, that attitude is how we ended up with this infestation of JavaScript!

grue ,

JavaScript is very much not the second best language for anything.

JavaScript came about because it was the only choice in the context for which it was designed, and then it metasticized into other contexts because devs that used it got Stockholm syndrome.

thomcat ,
@thomcat@midwest.social avatar

“Metastasized” is a fantastic verb for JavaScript

dukk ,

Speed is a serious problem in Python though. Python has its use cases, and so do other languages. Things would not end well if we started using Python for everything.

Chunk ,

I have worked on a lot of real time simulation with python glue. It is… not fun. I’m a better programmer for it though.

Diplomjodler , (edited )

If I wanted to write a 3D game engine, I wouldn’t use Python either. But there’s zero chance of me ever doing that. For 90% of things 90% of people do, Python works just fine. And the performance thing is actively being worked on and getting better all the time.

noli ,

This might be an unpopular opinion but python’s speed wouldn’t even be an issue if it was 5x slower than it is now.

Python is a language designed for write-time performance, not runtime performance.

Vulwsztyn ,

Not since 3.11, python is now one of the fastest languages

dukk ,

Definitely not even close to being one of the fastest languages, but still faster nonetheless.

entropicdrift ,
@entropicdrift@lemmy.sdf.org avatar

Python is the best “glue” language I’ve ever used. When you want to chain together your program’s high-level logic and all of the loops happen inside lower-level languages like Rust, Go, Zig, D or C, Python’s performance is perfectly adequate and it’s so clear and concise it reads like pseudocode.

nixfreak ,

Even worse when you look at a class that’s over 1k long.

Diplomjodler ,

As long as you do all your lookups with dicts or sets performance is pretty decent for smaller workloads.

grue ,

Python is secretly a functional-paradigm language. If you’re not making liberal use of comprehensions instead of loops (especially loops with LBYL conditions in them), you’re doing it wrong.

Xylight , (edited ) in Sometimes there is a better choice than Javascript
@Xylight@lemmy.xylight.dev avatar

Great, the programmer humor has inherited “JavaScript bad” from Reddit.

ShunkW ,

Yeah. I don’t like writing JavaScript and I hate when I’m forced to use it to do something that could be handled otherwise except reasons. But especially with later versions it’s not the worst thing in the world. I work in ruby on rails and love hotwire that lets me avoid js more than before. But still js isn’t literally Hitler like people make it out to be

ursakhiin ,

That’s not a Reddit thing. That’s just a thing.

elbarto777 ,

Wait, wait, don’t confuse terms. I wouldn’t want to hear the use of enshitification the same way people are wrongly using “gaslighting.”

Yes, I agree with you on the sentiment. Sucks that the same bs posted on reddit is creeping into lemmy.

But the platform is the same. Lemmy is not adding ads, or removing api access or shit like that.

FoxBJK ,
@FoxBJK@midwest.social avatar

Sucks that the same bs posted on reddit is creeping into lemmy

I’m seeing this in a few communities and it’s really frustrating. It’s not surprising, because it’s not like Lemmy has something built into the software to prevent it, it’s just disappointing.

sarsaparilyptus ,

JavaScript is an abomination and real jobs don’t use it

woozy ,

uh i use it every day at my very real job?

sarsaparilyptus ,

You can’t fool me

Xylight ,
@Xylight@lemmy.xylight.dev avatar
sarsaparilyptus ,

That’s just an urban legend

Feyter ,

Hey stop being sarcastic! This is a serious programing community here… Wait.

Ranman , (edited )

deleted_by_author

  • Loading...
  • sarsaparilyptus ,

    Sorry to be the bearer of bad news

    tabarnaski ,

    And python was created to teach programming. And PHP was something a guy used to maintain his webpage. If a language is useful it will gain popularity, and I never used a language which I didn’t find frustrating at some point.

    princess ,

    There are only two kinds of languages: the ones people complain about and the ones nobody uses.

    – Bjarne Stroustrup

    ActionHank , (edited )

    True, but I see this quote repeated so often that it kind of bugs me. It seems to be used in a thought-terminating way. As if we shouldn’t criticize languages. As if they aren’t tools that are able to be improved upon, or they’re all made equal. But I’m sure Bjarne Stroustrup needs to fend off hostility and unfair criticism as much as any programmer with a successful language.

    princess ,

    oh i never considered that reading of the quote

    i read it as more: complaints about a language, particularly the amount of complaints, don’t mean it is a Bad Language that should be dropped in favor of something else

    in fact the complaints validate that the language is being used by people, and that–the number of people actually using the language to Do Things–is imo a decent proxy metric for the usefulness of the language

    so please complain about your languages’ shortcomings! i hate so many things about terraform / sh / python / golang / java and will gladly rant at length, and then go right back to using them

    except groovy

    fuck groovy

    Blackmist ,

    Things can be both bad and useful.

    princess ,

    whoa whoa whoa

    how can we have a flamewar if youre going to be all reasonable like that

    Eyck_of_denesle , in True?

    I see this meme more often than i see my parents

    DynoNoob ,

    This meme is almost old enough to vote.

    cobn , in CrowdStrike is a verb now

    Crowdstrike sounds like the name a of a security vulnerability and now it is.

    Already see the articles… “50% of computers infected with crowdstrike”

    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.

    rand_alpha19 , in COMEFROM

    That sounds like a fucking nightmare. I had to troubleshoot poorly-written-yet-somehow-functional GOTOs a lot when I was a BAS technician and that's annoying enough.

    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…

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