she/her
- 3 Posts
- 53 Comments
tuna@discuss.tchncs.deto Linux@lemmy.ml•What are some cool things to put on a 32gb flashdrive?3·1 month agoRetro gaming device seems pretty cool actually. What if you configure your system so that when you plug it in, it autolaunches an emulator and looks at ROMs on the USB :o
tuna@discuss.tchncs.deto Linux@lemmy.ml•Useful CLI tools like ffmpeg, ani-cli, yazi, etc.?3·2 months agoI’ve been meaning to try out netpbm
If you aren’t aware, pbm represents an image with plaintext, which makes it great for when you want to easily create an image with code
I recently learned there is a whole suite of CLI tools which work with the format. Like conversion to/from png, scaling, and overlaying one image on top of another.
tuna@discuss.tchncs.deto Linux@lemmy.ml•5 Open Source Apps You Can use for Seamless File Transfer Between Linux and Android5·2 months agoI’ve using localsend and it’s great :)
I would normally use KDE Connect (iOS version) but I had some issues with it. The push local clipboard didn’t work, and I think receiving files to my phone didn’t work either. It also had a hard time reconnecting to my computer after pairing. It might be better now though, this was several months ago.
I primarily want something simple I can bend to my will, and secondly I want a good out of the box experience. For me that’s been Arch + KDE. The wiki and AUR are great!
I would say every step of the way I just wanted more and more ownership of my system. I make it, I break it. One specific experience which drove me to that camp was the time I had to jailbreak my iPhone and dig through files to disable some deprecated parental control setting… give me ownership over my stuff!
I’ve had it where my wireless mouse (connected with a usb dongle) stutters when my wifi/bluetooth chip is going full-throttle. I thought it was some polling rate on my mouse, or maybe my mouse was dying, but nah lol. This is next level insane tho
tuna@discuss.tchncs.deto PC Gaming@lemmy.ca•A Steam Deck-like experience for Windows 11 handhelds is coming, leak suggestsEnglish4·6 months agoI’m not sure, but I think the windows progress bar thingy includes the time spent actually writing to disk, whereas on Linux (or i guess cinnamon) only shows when it gets to disk-cache. If you are full on RAM or tried shutting down immediately afterwards it should take a bit longer since it has to actually write it to disk
Thats my guess anyway
Thats a good observation. I would think I use Ctrl more frequently than Alt, so it would make sense to have Alt where Ctrl usually is, and Ctrl where Shift usually is.
Interesting, I’ll have to check it out. I’ve been passively wanting to leave brave on iOS for some time now. Thank you!
Nope. I use left shift for everything.
Even if you do use both shift keys correctly, it still feels awkward to me since you have to sacrifice a pinky from home row and shift your hands.
It’s why I’ve been curious to try a layout where Shift and Alt are swapped, that way you can use your thumb to press shift and keep your fingers in place.
tuna@discuss.tchncs.deto KDE@lemmy.kde.social•Made a minimal splash screen for the community16·6 months agoI got inspired and made a similar effect is desmos
f(theta, t) = 0.1 max(cos(theta + t), 0)^2 sin(8 theta) r = 1 + f(theta, t) r = 1 - f(theta, t) where: 0 <= theta <= 2 pi t = 0 where: 0 <= t < 2 pi
It’s not quite right though, the
sin(8 theta)
part needs to phase shift, but basing it off oft
messes up the perfect loop.At that point I would reach for code, which also lets you save the animation. Using something like p5.js (editor.p5js.org) you can easily draw graphics and save each frame as its own image
tuna@discuss.tchncs.deOPto Linux@lemmy.ml•Linux Terminal: CTRL+D is like pressing ENTER1·6 months agoOhh I gotcha. Honestly no sweat, its kind of just a bit of fun trivia really :)
tuna@discuss.tchncs.deOPto Linux@lemmy.ml•Linux Terminal: CTRL+D is like pressing ENTER2·6 months agoInteresting, I have not heard of these terms before. Thanks for sharing!
I think this adds the bit of nuance that was bugging me: using something like ncurses or vim, presumably when you press a key like ctrl-z or ctrl-d it actually sends the character to the app. It would feel a bit silly if the terminal intercepted the ctrl-d, flushed some buffer, and the program had to reverse engineer whether you pressed ctrl-d or enter or something.
For raw mode, I assume the app asks the tty to please forward some characters to the app. Otherwise, in the default cooked mode, the tty intercepts those control characters to call certain functions. I suppose some REPLs may choose to emulate a cooked mode on top of raw mode, and so they have to handle the \x04 in the same way a tty would to keep it functioning like the user expects. I believe
readline
does something like this, which is why you had to usebash --noediting
for ctrl-d to run the command. Good food for thought :)I also have to say, naming it “cooked mode” is extremely funny as gen z. I love that
tuna@discuss.tchncs.deOPto Linux@lemmy.ml•Linux Terminal: CTRL+D is like pressing ENTER52·6 months ago$ cat You sound very nice :) You sound very nice :) Bye<ctl-d>Bye Oh wait, and cool too Oh wait, and cool too <ctl-d> $
The Ctl-D didn’t end the file when i typed “Bye” :( it only worked when I pressed Ctl-D on its own line. So how does cat know that it should ignore the EOF character if there is some text that comes before it?
What Ctl-D does is flush the input to the program, and the program sees how big that input is. If the length of the input is 0 that is interpreted as EOF. So Ctl-D is like Enter because they both flush the input, but Ctl-D is unlike Enter because it does not append a newline before flushing, and as a consequence you can send empty input (aka an EOF “character”) with Ctl-D.
tuna@discuss.tchncs.deOPto Linux@lemmy.ml•Linux Terminal: CTRL+D is like pressing ENTER121·6 months agoOn any reasonable terminal, RETURN has a key of its own
This reminds me of a time at work when I was not on a reasonable terminal. I was explaining to a co-worker how I automated some tasks by running some scripts, but in my demo my RETURN key didn’t work, so I had to improvise and use CTRL+M which worked, hahaha. I don’t know how the terminal got in such a bad spot but it was probably something to do with msys on Windows… honestly not sure. It was perfect timing to have happen while teaching of course ;)
I would also be doing a disservice not to share what the book you linked says about CTRL+D. Right after your quote, it says:
Other control characters include ctl-d, which tells a program that there is no more input
This is pretty good for an introduction, but it is not the full story. It explains CTRL+D properly later (chapter 2, page 45):
Now try something different: type some characters and then a ctl-d rather than a RETURN:
$ cat -u 123<ctl-d>123
cat
prints the characters out immediately. ctl-d says, “immediately send the characters I have typed to the program that is reading from my terminal.” The ctl-d itself is not sent to the program, unlike a newline. Now type a second ctl-d, with no other characters:$ cat -u 123<ctl-d>123<ctl-d>$
The shell responds with a prompt, because
cat
read no characters, decided that meant end of file, and stopped. ctl-d sends whatever you have typed to the program that is reading from the terminal. If you haven’t typed anything, the program will therefore read no characters, and that looks like the end of the file. That is why typing ctl-d logs you out — the shell sees no more input. Of course, ctl-d is usually used to signal an end-of-file but it is interesting that it has a more general function.This is why the article says it’s “like pressing enter,” because it flushes the input just like enter. The difference is that enter sends a newline, but CTRL+D does not, so you can exploit that to send no data (and the program chooses to interpret that as an EOF).
tuna@discuss.tchncs.deOPto Linux@lemmy.ml•Linux Terminal: CTRL+D is like pressing ENTER3·6 months agonot true. try this:
$ date<C-d>
bash did not terminate stdin, because when i press enter it still runs the command, and my shell continues to work as normal!
you can also try this:
$ bash --noediting $ date<C-d><C-d>
and it will print the date.
so something else is happening here! thats what the link talks about in detail
Aw man :( Asahi Lina and her GPU project has been an inspiration for me. Hope she is alright.
tuna@discuss.tchncs.deto Selfhosted@lemmy.world•Advice on how to deal with AI bots/scrapers?English11·7 months agothis might not be what you meant, but the word “tar” made me think of tar.gz. Don’t most sites compress the HTTP response body with gzip? What’s to stop you from sending a zip bomb over the network?
tuna@discuss.tchncs.deto No Stupid Questions@lemmy.world•Why do people see me as far older than 19 when I type the way I do sometimes?/Why do people think full stops are rude?1·7 months agoTo me, sentences ending in a period feel immutable, and without nuance, but sentences without a period feel incomplete, or up to change. Without periods it is almost a way to say, “this is what I think right now, but I might reconsider.” So, it’s not that periods are rude per-se, but it may appear that you’ve made up your mind and are closed off to interpretation. Sometimes I intentionally remove periods or turn it into an ellipsis for exactly that reason. It’s just way too easy to misinterpret people’s intentions through text for me not to type in a way I think reduces misinterpretation.
As for being associated with older people… anecdotally speaking, my co workers sound like they were taught that there is an immutable, proper way in the world, and so they express themself in that proper way. Nothing wrong with that really! Once I get a feel for their personality, I find it kind of endearing :)
tuna@discuss.tchncs.deto Music@lemmy.world•cobalt.tools download without ads from youtubeEnglish2·7 months agoYeah it is the most convenient option for iOS ive found
I dug even deeper and installed Weston to see how seats are configured. Turns out this is done by attaching a udev property to the device called WL_SEAT, which libinput uses to make logical seats, which Weston uses for seat management. See: https://wayland.freedesktop.org/libinput/doc/latest/device-configuration-via-udev.html
Note: your udev filter (the ones with
==
) matters!! I thought I could re-use the filter generated from loginctl (i.e.ENV{ID_FOR_SEAT}=="..."
). This led to several confusing hours where I could setENV{ID_SEAT}
but notENV{WL_SEAT}
. Follow the docs above and you’ll be fine.Once I got it working in Weston, I tried it on Plasma, and got my answer: no, Plasma Wayland does not currently support multi-cursor.
It looks like the best solution in our case will be to use the Plasma X11 session. I was able to reinstall the x11 session on my pc and tested multi-cursor there, and it seemed to work as expected.
If the X11 session is too unstable, I guess Weston is there as a backup.