krey

joined 1 year ago
[–] krey@sh.itjust.works 4 points 11 months ago

Thinking about putting a fire extinguisher inevery room.

[–] krey@sh.itjust.works 2 points 11 months ago* (last edited 11 months ago) (1 children)

For question 1: idk how to convert tex to svg, but maybe there's a program called tex2svg . Often programs are named like that. However, if you want the contents of a file (which is basically markup text) in the clipboard from CLI you would use on Xorg X11 xclip or xclipboard like so:

xclip -selection clipboard -in < myfile.txt

... or on Wayland wl-copy from wl-clipboard like so:

wl-copy < myfile.txt

For question 3: after you have reviewed the potentially dangerous script, you would move it to a directory for non distribution files, eg. /usr/local/bin/ if it is for all users on your system. You would add that path to the PATH environment variable for all users who need it, but maybe better not for root. I mean you can, but make sure the permissions don't allow non-root users to write or replace the file/dir so nobody can use it to escalate their privileges.

[–] krey@sh.itjust.works 2 points 11 months ago

Get a roomba (or another brand, you know what I mean). Pick your funiture so that your roomba either can drive under it (without getting stuck) or the furniture goes completely tight to the floor. You don't want to manually clean under some furniture, because the roomba can't get there. Also, avoid chairs, tables and lamps that have a small bar at the floor the roomba sometimes drives over it and gets stuck. example of a chair the roomba doesn't like

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

This is the wiki of an old game: wiki.spiralknights.com

As you can see, on mibile the text is hard to read and you have to zoom and move around a lot to navigate. It's the same software as wikipedia, but an older design.

What responsive UI optimization does is it changes all of this into vertical scrolling and makes it readable right away. You just swipe up until you see what you wanted to. As you can see on the modernized en.m.wikipedia.org on mobile the search is right on top and the font size and zoom are easily readable. If you tilt your phone it auto rearranges some content for better readability. That's what some people and designers want for sites nowadays.

I have used the search of that old game a lot and I tell you: It sucks when you miss tapping the search box and hit a button instead. It loads a different page and the server is often slow. I could prevent it by pinch zooming beforehand, so it's more easy to hit, but it's unintuitive. I usually forget to do it.

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

You can have multiple installed in parallel and you should be able to switch during login. Some are super small and fast. Not sure if it matters if you run Xorg or Wayland, but those are cool: WindowMaker (wmaker), enlightenment (version DR16 was the best, but has been discontinued), blackbox (extra small and fast), notion (a tiling WM that allows to do some things with the mouse and can be user scripted with Lua)

[–] krey@sh.itjust.works 5 points 11 months ago (2 children)

Actually it reminds me a bit of Dalí

[–] krey@sh.itjust.works 3 points 11 months ago

Some IDEs (like Netbeans, Intellij, PhpStorm) can rename only in the scope of the selected item. So if you used variable "a" in 2 methods, it would only rename in the selected method and it understands the variable is different from "ab" and won't replace the "a" part of that.

[–] krey@sh.itjust.works 4 points 11 months ago

Not for long! Autobots, roll out!

[–] krey@sh.itjust.works 7 points 11 months ago

This person is why Putin has to launch conscriptions again.

[–] krey@sh.itjust.works 16 points 11 months ago (4 children)

The trick is to name everything in a way so you don't have to remember stuff. Like instead of class "Cronjob" method "process", name it "ImageCacheEraser" and "purgeByContentID". Same goes for variables. No need for short names. Nowadays, you can even write with short names at first, so typing is faster, then just use your IDE to rename them to full size afterwards.

[–] krey@sh.itjust.works 2 points 11 months ago (5 children)

Yes, if they were comfortable with stuff like pinch zooming the site a lot between actions on their phone, they would not need a modernized UI. Of course, there's also peer preasure, ie. the competition having a cool redesign and getting more often linked to on social media, etc

view more: ‹ prev next ›