this post was submitted on 28 Dec 2023
244 points (99.6% liked)

Programmer Humor

19817 readers
89 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 2 years ago
MODERATORS
244
Good luck web devs (lemmy.world)
submitted 11 months ago* (last edited 11 months ago) by [email protected] to c/[email protected]
 

Alt text:Twitter post by Daniel Feldman (@d_feldman): Linux is the only major operating system to support diagonal mode (credit [Twitter] @xssfox). Image shows an untrawide monitor rotated about 45 degrees, with a horizontal IDE window taking up a bottom triangle. A web browser and settings menu above it are organized creating a window shape almost like a stepped pyramid.

Edit: alt text

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 34 points 11 months ago (3 children)
[–] [email protected] 7 points 11 months ago (1 children)

They put touchscreens on doorstops now? /s

[–] [email protected] 15 points 11 months ago

Java truly runs on everything.

[–] [email protected] 1 points 11 months ago (1 children)

Embrace the power of the pyramid.

[–] [email protected] 0 points 11 months ago (1 children)

Ackchuwally, that's a prism 🙃

[–] [email protected] 0 points 11 months ago (1 children)

ackshuaelly, it says 'pyramid' right there

[–] [email protected] 0 points 11 months ago

I've noticed... But it lies

[–] [email protected] 1 points 11 months ago

Unleash the power of the pyramid!

[–] [email protected] 18 points 11 months ago* (last edited 11 months ago) (1 children)

Linux is the only major operating system ~~to support diagonal mode~~

[–] [email protected] 2 points 11 months ago (4 children)

I’d just like to interject for a moment. What you’re refering to as Linux, is in fact, GNU/Linux, or as I’ve recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Linux, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine’s resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called Linux distributions are really distributions of GNU/Linux!

load more comments (4 replies)
[–] [email protected] 8 points 11 months ago (2 children)
[–] [email protected] 9 points 11 months ago (1 children)

Hmm yes, web dev horrors beyond my comprehension!

[–] [email protected] 2 points 11 months ago (1 children)

That, right there, is a perfect example of why folks need to stop trying to shoehorn web apps everywhere they don't belong. It's a use-case for a proper native mobile app if ever there was one.

[–] [email protected] 2 points 11 months ago (1 children)

even if it's just mobile

you already have to handle landscape/portrait mode

now imagine having to handle angled

[–] [email protected] 2 points 11 months ago* (last edited 11 months ago) (2 children)

That's why you should've just handled arbitrary rotations instead of inventing a finite predefined set of orientation "modes" in the first place.

Things get a lot easier in the long run if you aggressively look for commonalities and genericize the code that handles them instead of writing bunches of one-off special cases.

[–] [email protected] 3 points 11 months ago (1 children)

And this is why my webapp only renders properly on circular displays.

[–] [email protected] 1 points 11 months ago

Peak evil - well done. How much is the extra fee to wrap a letterbox around the circle on a conventional aspect ratio?

There's good money in this idea!

[–] [email protected] 1 points 11 months ago

true

however

everything would be fluid in the layout and you would need to set what should go on top of what. And having this feature doesn't seem worth the hassle of making if work, or even using it.

Imagine trying to type in a 'fluid' keyboard

TBH tho, seems like a cool gimmick for some apps.

[–] [email protected] 2 points 11 months ago

Why does this low key feel like something I would actually want to use

[–] [email protected] 8 points 11 months ago (1 children)

Not on wayland, right? Time to pester wayland devs to add this important missing features!

[–] [email protected] 5 points 11 months ago

Probably would fall into scope of a compositer in Wayland, rather than the protocol. I suspect it originated with old CRT displays. Sometimes they can appear scan diagonally.

Even without that usecase, I think it's great to have around in order to support novel displays and display-like devices.

[–] [email protected] 8 points 11 months ago (2 children)

How many minor operating systems support it? 🤔

[–] [email protected] 2 points 11 months ago

There's ReactOS and BSD off the top of my head.

[–] [email protected] 2 points 11 months ago

I'm assuming most that can run Xorg.

[–] [email protected] 6 points 11 months ago (1 children)

a great prank for computer labs... just rotate everything by 0.5 degrees...

[–] [email protected] 4 points 11 months ago (1 children)

Yeah, keep adding 0.5 deg every minute or so.

[–] [email protected] 3 points 11 months ago

Add a randomizer that has a chance of resetting it back to normal every now and then for maximum chaos

[–] [email protected] 5 points 11 months ago

Who hurt you

[–] [email protected] 4 points 11 months ago

Original Article

Basically, it’s just some cool X11 magic that uses a matrix transformation to rotate the screen.

[–] [email protected] 4 points 11 months ago (2 children)

How can you do fractional rotation? Does it only work with x11 or is it also supported in wayland?

[–] [email protected] 4 points 11 months ago (1 children)

Rotating the display by a custom angle is possible through xrandr on X.org.

There's no Wayland protocol for custom angle rotation, and I don't expect anyone to create a protocol extension without a use-case.

My wild guess: Theoretically it should be possible for a compositor to support similar custom rotation, as applications simply draw to their surface (window), without knowing how and where it is displayed on the viewport (display).

But it might require quite a bit of work, depending on the project, so I don't expect to ever see custom rotation on anything besides smaller/niche compositors.

[1] https://unix.stackexchange.com/questions/552138/rotate-a-display-by-custom-angle#552140

[–] [email protected] 4 points 11 months ago

There’s no Wayland protocol for custom angle rotation, and I don’t expect anyone to create a protocol extension without a use-case.

Puh-lease. It's Wayland; the devs fully and honestly expect every app developer (eg.: calc, Libreoffice, notepad.exe) to implement custom angle rotation on their own.

[–] [email protected] 1 points 11 months ago
[–] [email protected] 3 points 11 months ago (1 children)

BRB, sticking microcontrollers to the back of my monitors so I can use their accelerometers to report the orientations in real time...

[–] [email protected] 1 points 11 months ago (1 children)

I would love it so much if xrandr was able to keep up with that and didn't blink for 3 seconds every time you changed orientation

[–] [email protected] 1 points 11 months ago

Maybe a custom Wayland compositor could keep up

[–] [email protected] 3 points 11 months ago

This is why people can't take desktop linux seriously.

[–] [email protected] 3 points 11 months ago

i guess ill have to get linux then, i NEED diagonal mode

[–] [email protected] 2 points 11 months ago

Next is star shape.

[–] [email protected] 2 points 11 months ago

Ah yes why I like Linux but hate supporting it

[–] [email protected] 2 points 11 months ago

I remember seeing the video of this. The guy was doing it for shits and giggles, but it ended up looking great!

[–] [email protected] 2 points 11 months ago (1 children)

I won't try implement something like this even my boss forces me.

[–] [email protected] 1 points 11 months ago* (last edited 10 months ago)

No one does this kind of stuff because someone asked them to do it. This is the kind of useless, insane stuff you do for the lulz, or because someone dared you.

[–] [email protected] 2 points 11 months ago

I hate this.

[–] [email protected] 0 points 11 months ago

Dunder Mifflin did it first. The Pyramid.

load more comments
view more: next ›