Load null-sink
pactl load-module module-null-sink sink_name=music
Unload all null-sinks
pactl unload-module module-null-sink
AirPlay on Linux
uxplay -avdec
Playing the lottery is a waste of money, but why is paying for insurance not?
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
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++”
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.
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.
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
I’ll bring an unpopular opinion, but “Select is broken.”
Finally, I took the time I reply to all recruiters. It is a good problem to have but still has to be addressed.
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.
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.
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.
TIL; meter
is American spelling, everybody else spell it as metre
.
Yesterday, I drove over the red light. Nothing happened, but I felt really bad.
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.
Fix VMWare freezing.
sudo sh -c 'echo 0 > /proc/sys/vm/compaction_proactiveness'
TIL; shuf
- generate random permutations
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…
Story spine:
- One upon a time there was…
- And every day…
- Until one day…
- Because of that…
- And because of that…
- And because of that…
- Until finally…
- And ever since then…
Previous - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 - 35 - 36 - 37 - 38 - 39 - 40 - 41 - 42 - 43 - 44 - 45 - 46 - 47 - Next