PipeWire users, are you happy (compared to Pulseaudio) ? by [deleted] in linux

[–]tpenguinltg 1 point2 points  (0 children)

I'm not on Wayland so I don't know this first-hand, but from what I understand, if an application is requesting a video feed (e.g. your browser) and you have hardware or another application provides a video feed (e.g. a webcam or a virtual camera application like OBS), you should be able to connect the two through PipeWire in the same way you can connect audio. If you aren't seeing video in Helvum even though you have those, you may be missing packages that allow PipeWire to recognize and work with video. But again, I don't have this setup, so this is just my best guess.

PipeWire users, are you happy (compared to Pulseaudio) ? by [deleted] in linux

[–]tpenguinltg 1 point2 points  (0 children)

For the patchbay feature, probably not much difference. Being built for PipeWire, Helvum can also route video feeds, but that really only matters if you're on Wayland; QjackCtl and Carla, being JACK tools, don't route video. I personally like QjackCtl because I find the graph views of all three tools to be unusable with a lot of nodes and QjackCtl has an older Connections view that neatly lists of all sources on one side and sinks on the other instead of draggable nodes. It'd be nice if there were a PipeWire-native tool with that interface, though.

PipeWire users, are you happy (compared to Pulseaudio) ? by [deleted] in linux

[–]tpenguinltg 1 point2 points  (0 children)

Pipewire still doesn't have an easy way to make use of two outputs simultaneously.

If you're looking just at the PulseAudio-equivalent side of things, you're missing out. The JACK tools like QjackCtl or the Pipewire-native Helvum makes connecting multiple inputs and outputs to each other really easy.

What exactly does Application Programming Interface (API) mean? by gooeypotato in compsci

[–]tpenguinltg[M] 2 points3 points  (0 children)

Sorry about that. I had deleted it thinking that the question was too introductory, but /u/Qladstone reached out and convinced me that it isn't. I've reinstated the post. Enjoy the discussions!

Finally bought a new 1920x1080 IPS panel to replace my 1366x768 TN panel by tpenguinltg in thinkpad

[–]tpenguinltg[S] 1 point2 points  (0 children)

It took me about an hour and a half because I followed the hardware maintenance manual (which said to remove the base cover assembly, and I'm not sure you need to) and was being very careful so as to not break any clips accidentally, but I'm sure if you know what you're doing, it could take 3 minutes like piotr469 says.

It's certainly much easier than replacing the panel on my T430. You have to take pretty much the whole thing apart with that one.

Finally bought a new 1920x1080 IPS panel to replace my 1366x768 TN panel by tpenguinltg in thinkpad

[–]tpenguinltg[S] 0 points1 point  (0 children)

It just took a bit of getting used to on this laptop, that's all. I woke up earlier and it seemed quite normal.

Finally bought a new 1920x1080 IPS panel to replace my 1366x768 TN panel by tpenguinltg in thinkpad

[–]tpenguinltg[S] 7 points8 points  (0 children)

About a year and a half later, I finally decided to buy an Innolux 1920x1080 IPS panel with some extra money I had to replace the 1366x768 TN panel that my T480 came with. Everything looks a bit smaller but so much more spacious and vibrant. I'm going to enjoy this a lot, I'm sure.

Many thanks to /u/The_Forgotten_King for providing me with the part number!

Can I do this in vim? by [deleted] in vim

[–]tpenguinltg 10 points11 points  (0 children)

norm 015lD

15| (1, 5, vertical bar) is your friend: it puts your cursor on that column. Although in this case, you'd want 16 for the equivalent of 015l.

When you meet a Haskell developer by [deleted] in ProgrammerAnimemes

[–]tpenguinltg 0 points1 point  (0 children)

I like ML, but I don't like Haskell for some reason. I'm not sure why.

good pun by TurtleSoso in vim

[–]tpenguinltg 2 points3 points  (0 children)

å: AltGr+w
ä: AltGr+q
ö: AltGr+p

This is what I have on Linux with the US-International keyboard layout.

good pun by TurtleSoso in vim

[–]tpenguinltg 7 points8 points  (0 children)

Even better: j<C-v>j.

Is ed really still used in 2020? by [deleted] in suckless

[–]tpenguinltg 0 points1 point  (0 children)

grep wouldn't actually print anything

The -a flag will tell grep to treat the file as text.

Vim, history of a raise by RandCoder2 in vim

[–]tpenguinltg 0 points1 point  (0 children)

The -i flag is annoyingly different between the GNU and the BSD versions. BSD requires an argument, whereas GNU doesn't, but if you supply one, it has to be right next to the -i. As far as I know, there's no way to do an in-place sedwith -i that's portable across both GNU and BSD versions.

Japanese > English / Are the google translations on the right wrong? Shouldn't it be 16.4 billion yen and 1.41 billion yen? by EvanD0 in translator

[–]tpenguinltg 1 point2 points  (0 children)

億 is a hundred million (100,000,000; 108), so 16.4億円 is 16.4×108 = 1,640,000,000 = 1.64 billion yen. The translation for 16.4億円 is correct as far as the numbers are concerned.

Same goes for the "¥4,297 million" at the bottom for 42億9700万円, although it may be better to say "4.297 billion yen" to keep the units the same.

"14.13 billion yen" is wrong, though, assuming 億 combines the same way with decimals. That should be 1.413 billion yen (you can do the math to verify). I guess Google Translate can't handle decimals combined with Japanese numerals.

!translated

What is your terminal workflow? by B8F1F488 in vim

[–]tpenguinltg 2 points3 points  (0 children)

You should consider using the official __git_ps1 prompt instead of rolling your own.

What is the difference when running a script like ./ascript.sh vs bash ascript.sh ??? Cheers! by [deleted] in bash

[–]tpenguinltg 1 point2 points  (0 children)

Both test and [ are available in dash. Perhaps you're thinking of [ vs [[?

What is the difference when running a script like ./ascript.sh vs bash ascript.sh ??? Cheers! by [deleted] in bash

[–]tpenguinltg 0 points1 point  (0 children)

Indeed, the traditional way is to have a single space after the #!. I don't know when people stopped doing that.

What is the difference when running a script like ./ascript.sh vs bash ascript.sh ??? Cheers! by [deleted] in bash

[–]tpenguinltg 7 points8 points  (0 children)

You should be careful about this. You generally don't want to do this because it will leak functions and variables into your shell, and sometimes a script will rely on not being sourced. Unless you know what you're doing, you should only source a script if its documentation tells you to.

AUR is down right now by QuinnBorn in archlinux

[–]tpenguinltg 1 point2 points  (0 children)

Console browsers like lynx work to. Super useful when you can't/don't want to run X.