🌸 Tue, May 31, 2022 🌸
TIL; imgur = image URL
🌸 Tue, May 31, 2022 🌸
Load null-sink
pactl load-module module-null-sink sink_name=music
Unload all null-sinks
pactl unload-module module-null-sink
🌸 Tue, May 31, 2022 🌸
AirPlay on Linux
uxplay -avdec
🌸 Sat, May 28, 2022 🌸
Playing the lottery is a waste of money, but why is paying for insurance not?
🌸 Wed, May 11, 2022 🌸
Ubuntu like 22.04 OSes are coming with pipewire
instead of pulseaudio
. On my machine, it has a bug and
sometimes does not recognize new audio devices. In this case, I need to restart pipewire
with the following
command:
systemctl --user restart pipewire pipewire-pulse
🌸 Tue, May 10, 2022 🌸
I am trying to code, and the code is not going. And I realized I forgot to wear my programmer socks. But when I put them on, I realized they were just regular socks with binary code printed on them. (GPT-3 assisted story)
🌸 Wed, May 4, 2022 🌸
Why in English is it “open” but “closed”? Why “ed”?
🌸 Tue, May 3, 2022 🌸
I gave up on VMWare. Give back my money.
🌸 Tue, May 3, 2022 🌸
cogito, ergo sum, usually translated into English as “It compiles, therefore is C++”
🌸 Thu, Apr 28, 2022 🌸
C++ compiler so slow, and does some much optimization, sometimes I think it’s Deep Thought computer from Hitchhiker’s Guide to the Galaxy. You put tons of C++ code in it, and after a while it generates assembly
eax, 42
pop rbp
and you have no idea why.
🌸 Thu, Apr 28, 2022 🌸
www.quora.com is useless.
Quite often, answers are useless, e.g., no, you cannot do it; you have to be able to read assembly code. But I can read assembly.
🌸 Tue, Apr 26, 2022 🌸
TIL; fmod
I wanted to implement a day/night cycle and I needed to convert time to sun angle. So fmod
function can do
it like this:
auto angle = std::fmod(time / dayLenght, 1.f) * 360.f
🌸 Wed, Apr 20, 2022 🌸
I’ll bring an unpopular opinion, but “Select is broken.”
🌸 Tue, Apr 19, 2022 🌸
Finally, I took the time I reply to all recruiters. It is a good problem to have but still has to be addressed.
🌸 Sun, Apr 17, 2022 🌸
The phon is a logarithmic unit of loudness level for tones and complex sounds. In contrast with dB, the phon is a unit associated with a subjective percept.
🌸 Sat, Apr 16, 2022 🌸
How to make Unreal Engine load fast on Linux? Go here: https://github.com/adamrehn/ue4-docker/issues/177 and install glibc-dso patch. 4 min 6 sec went down to 14 seconds on my laptop.
🌸 Sun, Apr 10, 2022 🌸
TIL; Lolita by Nabokov is an illegal book in United Kingdom.
🌸 Sat, Apr 9, 2022 🌸
OMG ninite and lumen work under Linux natively in UE5.
🌸 Thu, Apr 7, 2022 🌸
It is so hot here, the heat triggers breakers.
🌸 Thu, Mar 31, 2022 🌸
TIL; meter
is American spelling, everybody else spell it as metre
.
🌸 Mon, Mar 28, 2022 🌸
Yesterday, I drove over the red light. Nothing happened, but I felt really bad.
🌸 Wed, Mar 23, 2022 🌸
There is no advantage of publishing proof for P=NP
problem. If you have proof, you can basically have
an infinite amount of money, by mining Bitcoins for example.
🌸 Thu, Mar 17, 2022 🌸
Fix VMWare freezing.
sudo sh -c 'echo 0 > /proc/sys/vm/compaction_proactiveness'
🌸 Sat, Feb 26, 2022 🌸
TIL; shuf
- generate random permutations
🌸 Tue, Feb 22, 2022 🌸
How to disable and enable laptop keyboard. You can use xinput
to float
the input device under X.
- Execute the command
xinput
list to list your input devices. - Locate
AT Translated Set 2 keyboard
and take note of itsid
number; this will be used to disable the k…
Previous - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - Next