fixing a bunch of broken stuff I think

This commit is contained in:
Chris Cochrun 2022-02-25 14:16:41 -06:00
parent 0dbc3ead0e
commit 8bace887a2
1551 changed files with 299 additions and 57481 deletions

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><h2></h2> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/oldventura"> /u/oldventura </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/r1q8r9/ok_this_is_awkward_but_my_trash_can_opens_with_vlc/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/archlinux/comments/r1q8r9/ok_this_is_awkward_but_my_trash_can_opens_with_vlc/">[comments]</a></span>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>Arch linux doesn&#39;t know what the volume keys on my keyboard are. so i can xev and pressed the volume up key on my keyboard this is what it gave me </p> <p>&#x200B;</p> <p>&#x200B;</p> <p>KeymapNotify event, serial 28, synthetic NO, window 0x0,</p> <p>keys: 91 0 0 0 16 0 0 0 0 0 0 0 0 0 0 0</p> <p>0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</p> <p>&#x200B;</p> <p>KeyRelease event, serial 30, synthetic NO, window 0x2400001,</p> <p>root 0x1df, subw 0x0, time 1549842, (725,-293), root:(3651,276),</p> <p>state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,</p> <p>&quot; XLookupString gives 1 bytes: (0d) &quot;</p> <p>XFilterEvent returns: False</p> <p>&#x200B;</p> <p>MappingNotify event, serial 33, synthetic NO, window 0x0,</p> <p>request MappingKeyboard, first_keycode 8, count 248</p> <p>&#x200B;</p> <p>FocusOut event, serial 33, synthetic NO, window 0x2400001,</p> <p>mode NotifyGrab, detail NotifyAncestor</p> <p>&#x200B;</p> <p>FocusIn event, serial 34, synthetic NO, window 0x2400001,</p> <p>mode NotifyUngrab, detail NotifyAncestor</p> <p>&#x200B;</p> <p>KeymapNotify event, serial 34, synthetic NO, window 0x0,</p> <p>keys: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</p> <p>0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</p> <p>&#x200B;</p> <p>&#x200B;</p> <p>&#x200B;</p> <p>Does anyone know how to fix this problem?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/ibingewatch"> /u/ibingewatch </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/r58lex/arch_doesnt_know_what_key_the_volume_key_is_on_my/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/archlinux/comments/r58lex/arch_doesnt_know_what_key_the_volume_key_is_on_my/">[comments]</a></span>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>Does someone has a handy way to switch (and cycle like next-buffer would do) to buffer of the same mode ?</p> <p>I can craft some elisp but I would imagine it&#39;s probably already done by someone or built in to emacs?</p> <p>looking quickly at switch-to-buffer function, should I just make my own function with a custom switch-to-*-buffer-skip which would check which mode I am on currently ?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/chmouelb"> /u/chmouelb </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/rtvpvw/switching_to_a_buffer_of_the_same_mode/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/rtvpvw/switching_to_a_buffer_of_the_same_mode/">[comments]</a></span>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>Say like a c library or some other language. If there isnt a command line version i want to try and make it as a project so i can use it instead of groff</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/QuantP1"> /u/QuantP1 </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/qy03q9/is_orgmode_available_as_a_library_or_command_line/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/orgmode/comments/qy03q9/is_orgmode_available_as_a_library_or_command_line/">[comments]</a></span>

View file

@ -1,8 +0,0 @@
<p><a href="https://www.flickr.com/people/193926766@N04/">jameltayeb</a> posted a photo:</p>
<p><a href="https://www.flickr.com/photos/193926766@N04/51760001851/" title="*NIX"><img alt="*NIX" height="240" src="https://live.staticflickr.com/65535/51760001851_9a3afd9786_m.jpg" width="240" /></a></p>
<p>[…]<br />
<br />
<br />
<a href="https://jameltayeb.com/2021/12/20/nix/" rel="noreferrer nofollow">jameltayeb.com/2021/12/20/nix/</a></p>

View file

@ -1 +0,0 @@
&#32; submitted by &#32; <a href="https://www.reddit.com/user/a-concerned-mother"> /u/a-concerned-mother </a> <br/> <span><a href="https://youtu.be/1C9GbmIP1EA">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/r1zzr8/a_basic_evilvim_keys_setup_without_doom_emacs/">[comments]</a></span>

View file

@ -1 +0,0 @@
<table> <tr><td> <a href="https://www.reddit.com/r/unixporn/comments/ra578a/oc_wip_shell_script_for_music_from_yt_that_1/"> <img src="https://external-preview.redd.it/wbXbxafv0QRuDLh48v_9UncPcCzo1a383hkQu9qtlgw.png?width=640&amp;crop=smart&amp;auto=webp&amp;s=cdf2292b17398d8b48e8ef123625c61851f90ce9" alt="[OC] WIP shell script for music from YT that 1) fuzzy searches your past searches as well as the names of the artists and songs you've prev. listened to 2) downloads songs to a folder after you've listened to it a certain # of times 3) can display thumbnails with ueberzug 4) is super customizeable" title="[OC] WIP shell script for music from YT that 1) fuzzy searches your past searches as well as the names of the artists and songs you've prev. listened to 2) downloads songs to a folder after you've listened to it a certain # of times 3) can display thumbnails with ueberzug 4) is super customizeable" /> </a> </td><td> &#32; submitted by &#32; <a href="https://www.reddit.com/user/appypolligies"> /u/appypolligies </a> <br/> <span><a href="https://v.redd.it/yf28t3foqw381">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/unixporn/comments/ra578a/oc_wip_shell_script_for_music_from_yt_that_1/">[comments]</a></span> </td></tr></table>

View file

@ -1 +0,0 @@
&#32; submitted by &#32; <a href="https://www.reddit.com/user/XCapitan_1"> /u/XCapitan_1 </a> <br/> <span><a href="https://sqrtminusone.xyz/posts/2022-01-03-exwm/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/ruzl0z/using_exwm_and_perspectiveel_on_a_multimonitor/">[comments]</a></span>

View file

@ -1,68 +0,0 @@
<p>Today I encountered a bug that was specific to JDK 16 on a project I was working
on, and I needed to switch back my Java version to something older. I realized
I had forgotten (once again) how to switch between multiple Java version on Ubuntu
(Debian), so Ive decided to write a short article that would help me remember
this better.<sup id="fnref:1"><a class="footnote" href="https://batsov.com/articles/2021/12/10/working-with-multiple-versions-of-java-on-ubuntu/#fn:1" rel="footnote">1</a></sup></p>
<p>You can install easily multiple version of Java on Ubuntu via <code class="language-plaintext highlighter-rouge">apt</code>:</p>
<pre><code class="language-shellsession">$ sudo apt install openjdk-8-jdk openjdk-8-source openjdk-8-doc
$ sudo apt install openjdk-11-jdk openjdk-11-source openjdk-11-doc
</code></pre>
<p>Typically the newest version of Java you install will become the default, but you can easily change this:</p>
<pre><code class="language-shellsession">$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto mode
* 1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode
2 /usr/lib/jvm/java-8-openjdk-amd64/bin/java 1081 manual mode
Press &lt;enter&gt; to keep the current choice[*], or type selection number:
</code></pre>
<p>Notice that pressing 0 mean “auto-select the newest Java available” (in our case Java 11).
You can now select Java 8 by pressing 2 and verify the command worked properly like this:</p>
<pre><code class="language-shellsession">$ java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~20.04-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
</code></pre>
<p>Youll need to repeat the above steps for <code class="language-plaintext highlighter-rouge">javac</code> (the Java compiler binary) as well:</p>
<pre><code class="language-shellsession">$ sudo update-alternatives --config javac
</code></pre>
<p>This much I already knew, even if I keep forgetting the exact name of
<code class="language-plaintext highlighter-rouge">update-alternatives</code>, but today I learned something new as well. You can
actually simplify the process a bit by using the specialized command
<code class="language-plaintext highlighter-rouge">update-java-alternatives</code>:</p>
<pre><code class="language-shellsession">$ update-java-alternatives -l
java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64
java-1.8.0-openjdk-amd64 1081 /usr/lib/jvm/java-1.8.0-openjdk-amd64
$ sudo update-java-alternatives -s java-1.11.0-openjdk-amd64
</code></pre>
<p>Quite handy! You can also go back to the latest Java version with a shorthand:</p>
<pre><code class="language-shellsession">$ sudo update-java-alternatives -a
</code></pre>
<p><code class="language-plaintext highlighter-rouge">-a</code> stands for <code class="language-plaintext highlighter-rouge">--auto</code>, meaning the Java version with highest priority (in our case Java 11 with priority 1111).</p>
<p>Thats all I have for you today. Short and sweet!</p>
<div class="footnotes">
<ol>
<li id="fn:1">
<p>Or at least look up the information faster. <a class="reversefootnote" href="https://batsov.com/articles/2021/12/10/working-with-multiple-versions-of-java-on-ubuntu/#fnref:1">↩</a></p>
</li>
</ol>
</div>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>This is a thread to get answers for all your questions about *NIX desktop configuration! Feel free to share your setups here and ask for advice. In short, you can make any on-topic comment, in any format you like, and by using any host. We hope this gives new users a chance to get some help with any problems they&#39;re having and more experienced users a chance to show off their knowledge by helping those in need.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/AutoModerator"> /u/AutoModerator </a> <br/> <span><a href="https://www.reddit.com/r/unixporn/comments/ru4mdf/weekly_workshop_20220102/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/unixporn/comments/ru4mdf/weekly_workshop_20220102/">[comments]</a></span>