this post was submitted on 16 Jul 2024
730 points (97.3% liked)

Programmer Humor

19551 readers
471 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

cross-posted from: https://lemmy.zip/post/19231076

all 37 comments
sorted by: hot top controversial new old
[–] darklamer@lemmy.dbzer0.com 90 points 4 months ago (2 children)

We have Unicode these days: blåhaj

[–] ArmokGoB@lemmy.dbzer0.com 19 points 4 months ago (6 children)

How do I type that on a desktop without a numpad and without putting "å" into my clipboard?

[–] bob_lemon@feddit.org 22 points 4 months ago* (last edited 4 months ago) (2 children)

On Windows, you can open the emoji picker with Win+. or Win+, (depending on locale iirc). Then just switch to the symbols tab by clicking the omega symbol and chose å

Alternatively, you can install PowerToys, which includes a quick accentuator tool.

[–] ArmokGoB@lemmy.dbzer0.com 20 points 4 months ago

Alternatively, you can install PowerToys, which includes a quick accentuator tool.

₽øɢĝê̌ℝ§

[–] tiredofsametab@kbin.run 8 points 4 months ago (1 children)

Failing that win+r and type charmap. You can browse symbols there.

[–] rmuk@feddit.uk 16 points 4 months ago (1 children)

charmap.exe? Holy shit. Windows 95 called, but I didn't have a 33.6k modem ready to answer.

[–] tiredofsametab@kbin.run 7 points 4 months ago

I mostly just had the alt+whatever codes memorized when I was typing French or German, but I didn't always have a numpad when I was using laptops away from home. I just ended up using charmap and never realized newer windows had any replacement (although I'm on mac for work and also use linux for both work and some home stuff now as well so not spending as much time in Windows).

[–] ChaoticNeutralCzech@feddit.org 12 points 4 months ago* (last edited 4 months ago) (1 children)

Hold the Combine key (Linux-only, user-configurable, usually RCtrl) and press a twice. Or Combine+a+*.

Or get a laptop with a numpad. I am so used to Alt+num that I'd donate to someone to implement it in the Linux libinput, and I'm not alone.

[–] felbane@lemmy.world 3 points 4 months ago

You are not alone. I am here with you.

[–] TheRedSpade@lemmy.world 9 points 4 months ago

Compose key

[–] thehatfox@lemmy.world 7 points 4 months ago (1 children)

Depends on your computing platform.

I see another reply has already covered Linux.

On a Mac, press and hold a character key and a list of accent characters will appear. There are also dead key combinations using the option key to enter special characters directly.

[–] andioop@programming.dev 4 points 4 months ago

If you're like me and wondered what a dead key is…

A dead key is a special kind of modifier key on a mechanical typewriter, or computer keyboard, that is typically used to attach a specific diacritic to a base letter.[1] The dead key does not generate a (complete) character by itself, but modifies the character generated by the key struck immediately after.

Wikipedia

[–] sparkle@lemm.ee 3 points 4 months ago

US international layout, or make a custom layout (KbdEdit is multiplatform but there's free Linux programs to do it too)

[–] 30p87@feddit.de 0 points 4 months ago (1 children)

It's annoying to type in the terminal tho.

[–] darklamer@lemmy.dbzer0.com 2 points 4 months ago (1 children)

No, it isn't. Why would it be?

[–] 30p87@feddit.de 4 points 4 months ago* (last edited 3 months ago) (1 children)

Because you would need to know the code for å in all kb layouts, on all OS's, even in a bare terminal with no way to just open the emoji picker, with or without special keys and no clipboard. Of course, tab completion or globs may help you, but not in all cases.

Try to select blåhaj.txt in a dir with blåhaj.txt and blahaj.txt present. Easy, ls bl*haj.txt | grep -i blahaj.txt. Now with blåhaj.txt and bløhaj.txt. Not as easy anymore, but doable with tail -n1 or head -n1. Now do it consistently in a script. So you again need to single out the right string, or single char, and >> it into the script so you have the special char. Then you have a component that does not like certain special chars, so you need to escape it. All because one decided to use special chars as a file name/identifier. Using [a-zA-Z0-9-_.:;,]* would be so easy.

[–] darklamer@lemmy.dbzer0.com 3 points 4 months ago (1 children)

Because you would need to know the code for å in all kb layouts, on all OS's,

WTF!? Why would you ever need to know that!?

[–] 30p87@feddit.de 0 points 3 months ago (1 children)

So, you create a file with the name containing å. Then you send it to another person. They want to handle it via the command line. Because it's more efficient. So that person needs to know said information.

[–] darklamer@lemmy.dbzer0.com 2 points 3 months ago (1 children)

Most people never type a full file name on the command line, they normally just use file name completion.

And if they happen to have a lot of files that are only distinguished by some single character, what would be so difficult about typing that one character then?

[–] 30p87@feddit.org 0 points 3 months ago (1 children)

The fact they couldn't type that one character, on the command line, without those special chars.

[–] darklamer@lemmy.dbzer0.com 1 points 3 months ago

I still don't get what would be so difficult about typing one such character if ever needed.

[–] 30p87@feddit.de 38 points 4 months ago (1 children)

Noooooo what did you do to that poor shonky :ccc

[–] henfredemars@infosec.pub 45 points 4 months ago

The data will be preserved 🤖

[–] blackn1ght@feddit.uk 34 points 4 months ago (1 children)

TIL blahaj refers to a soft toy shark sold by IKEA.

[–] mindbleach@sh.itjust.works 6 points 3 months ago (1 children)

Would the association with the transgender community be news to you, or is that how you first heard the term?

[–] blackn1ght@feddit.uk 6 points 3 months ago (1 children)

No that's new to me too, based off me searching the word and seeing the Wiki article on the toy. I'd seen the word because of one of the instances (blahaj zone), but I literally never see the word outside of Lemmy.

[–] mindbleach@sh.itjust.works 1 points 3 months ago

Well, heads-up: it's called that for a reason.

[–] pelletbucket@lemm.ee 25 points 4 months ago (3 children)
[–] Rai@lemmy.dbzer0.com 18 points 4 months ago (1 children)

blahaj, neatly in a sleeping bag, zipped up to their… chinjaw?

[–] DeltaTangoLima@reddrefuge.com 10 points 4 months ago

Withy some compression straps around it to make it look smaller in places

[–] andioop@programming.dev 3 points 4 months ago

I find it very appropriate this post came out of lemmy.zip

[–] mindbleach@sh.itjust.works 2 points 3 months ago

Crammed headfirst in a freezer bag and sat on.

[–] WaylandHater26@lemmy.zip 9 points 3 months ago (1 children)

if you suck in the air of a blåhaj do you become a cute trans girl 🤔