lurch

@lurch@sh.itjust.works

he/him

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Good luck web devs (lemmy.world)

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...

lurch,

They put touchscreens on doorstops now? /s

lurch,

Even though comments are very helpful, often it’s even enough to name variables and methods/functions really good. At least do that. You don’t want i, j and value. Believe me. You want rowCount, colCount and deliveryOption instead. You just may not know it now, but you will, when it has to be changed in a few months.

lurch,

Did you live on a very fast spaceship maybe?

… or did you travel back to the start of 2023 multiple times, trying to fix the world? It would explain a lot of things.

lurch,

So you can get through as quick as possible and don’t have to get out in this weirdo country /s

lurch, (edited )

I mean that any attack gets more easy when you know, after it’s decrypted there are the bytes A, B and C at the locations X, Y and Z. It helps with brute force as well as hybrid attacks to find the master key.

LUKS does exactly have those specific Bytes at specific locations PLUS it has a marker that basically says “I am in this format and encrypted with this algorythm”.

lurch,

A good pasphrase helps the same for non-LUKS, but they still don’t have that specific weakness.

You can use cryptsetup without LUKS. However, something that starts to decrypt has to be unencryoted, so you can enter the password. Depending on how convenient it is for the user, it will leak some helpful info, like for example that the target is a valid file system that can be mounted or what cipher had been used.

to conceal this, you’d have to enter all it does manually in a shell/script without history. You could also add a number of bytes to skip as a sort of extra password and fill the start with random bytes, so it’s harder to find the start of the payload that is peobably a file system.

lurch,

I don’t actually use it that much to input commands, but many scripts I made pop one up to show details of what’s happening, e.g. how opening the VPN connection is going, what crypto module it’s currently loading or how many more iterations a macro will do.

lurch,

Pretty unsafe, because it makes people prefer big letters, i.e. W

lurch,

If you use X and need to restart it, you can probably preemptively use XPRA to proxy your Xclients and move them to the new Xserver, except maybe for those that need low latency or DRM (e.g. games)

lurch,

Someone needs to do some fitness ngl

lurch, (edited )

If you have a root account that allows logging in in text mode (no X no Wayland, no GUI), you would do that instead. These instructions are for that case. The home of root is /root , so it would not be affected.

Mount the new drive in an emty dir, if it isn’t already.

Make sure the other drives file system supports everything /home does.

Set the exact same permissions as /home/ in the new drives top level directory.

Add a line to fstab defining the other drive to be mounted automatically as /home .

Move the contents of /home over to the other drive.

Umount the other drive.

Enter just: mount /home

This should work without errors and if you peek inside, you should see user dirs and it should show up if you enter just: mount

No reboot necessary, you could just log out, switch to the GUI login and log in as regular user. After your next boot you will find out if you edited your fstab correctly to auto mount it. If not just log in as root in text mode again and fix it.

lurch, (edited )

For a user: In Wayland programs are supposed to draw their own title bar. Java aplications and old applications must use a backwards compatibility layer that can cause flicker and bad font rendering. The terminology is different (compositor = window manager). Some niche new programs may only run on Wayland. Wayland hasn’t been adopted by BSD (AFAIK).

For a programners: Wayland has more modern, tidy code, but not all toolkits support it natively and few are easy. If you code exclusively for Wayland, a lot of users won’t use your program at the moment.

lurch,

Probably some DRM shit. This basically reads like “don’t use the software specified here if you want to rip it, because we can only prevent it on these”

lurch, (edited )

In Linux terminals, you probably could have pressed Alt+F2 or Ctrl+Alt+F2 (F2 could be other F-keys) and log in on a second terminal to recover (by reading the manual or killing it). Also, if bash already had job control back then Ctrl+Z would have suspended vi/vim to the background.

I’m writing this, so people try it and maybe remember it, if they get stuck in some program. Doesn’t have to be vi. Maybe you just launched a long dd command and don’t want to end it, but want to look something up. These hints may help then.

lurch,

Lemmy really needs something like topics, categories or tags you can opt-in or -out of. There are just too many communities to subscribe one by one and if I browse everything theres so much super boring niche stuff, like some Go library releasing version 0.02-beta. I mean that’s nice for those 5 Go programmers waiting for that, i guess, but they are probably subscribed to it anyway.

lurch,

I know a few people who would erase themselves like that without a second thought 🤣 😥

lurch,

Oof, better move to a country where it’s free (yeah, those exist)

lurch,

Ayy, it’s the old “you need money to save money” problem.

web/low memory alternatives to Krita and GIMP please

recently I bought a Chromebook, I love it so much, it has Linux container enabled and I downloaded Firefox, GIMP, and Krita, but my Chromebook is only 64GB, so that can be a lot!!! So what web apps or low storage alternatives can I use?? I know Photopea, but what about drawing? Thank you!!

lurch,

Idk what “container” means in this case, but gimp is only like 80 MB + some dependencies you probably already have installed. Do you mean RAM or HD memory? In any case it should be much less than 64 GB.

lurch,

I’m actually doing this a lot at work. No negative consequences, so far. Even got good reviews and annual raises.

Broke a partition. Is there any way of saving it?

While I was switching distros, I accidentally broke a partition. I’m almost certain that all the data is there, but it doesn’t have a filesystem (I used ext4). Is there anything I can do to fix it, similar to changing the file extension without changing the contents. PS: It’s a data partition. I was trying to resize it,...

lurch, (edited )

before you change anything it would be good to use dd and save the whole drive to a bigger drive or maybe compress it with gzip while using dd to save it to a slightly smaller one. That takes a very long time, but gives you the ability to start over with your recovery. Only do that if it’s worth to wait several hours.

photorec can also recover some files by looking at the raw data still there, if all else fails.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #