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 @@
<table> <tr><td> <a href="https://www.reddit.com/r/unixporn/comments/r9uxw8/xfce_finally_i_can_listen_to_lofi_hip_hop_while_i/"> <img src="https://preview.redd.it/trba9y8qqt381.png?width=640&amp;crop=smart&amp;auto=webp&amp;s=21f0fed42373af45888ca03632259ce16f2a1bb6" alt="[XFCE] finally I can listen to Lo-Fi Hip Hop while i work" title="[XFCE] finally I can listen to Lo-Fi Hip Hop while i work" /> </a> </td><td> &#32; submitted by &#32; <a href="https://www.reddit.com/user/ioletsgo"> /u/ioletsgo </a> <br/> <span><a href="https://i.redd.it/trba9y8qqt381.png">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/unixporn/comments/r9uxw8/xfce_finally_i_can_listen_to_lofi_hip_hop_while_i/">[comments]</a></span> </td></tr></table>

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/ros4me/weekly_workshop_20211226/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/unixporn/comments/ros4me/weekly_workshop_20211226/">[comments]</a></span>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>CPU: Intel i5-4210U Video driver: Intel i965 driver</p> <p>I followed <a href="https://wiki.archlinux.org/title/Hardware_video_acceleration">https://wiki.archlinux.org/title/Hardware_video_acceleration</a> that is, installed packaged <code>intel-media-driver</code> and <code>intel-hybrid-codec-driver</code> </p> <p>I also have set environment variables, <code> export LIBVA_DRIVER_NAME=i965 export LIBVA_DRIVERS_PATH=/usr/lib/dri export MESA_GLSL_CACHE_DISABLE=true </code></p> <p>And output of <code>vainfo</code> <code> vainfo: VA-API version: 1.13 (libva 2.13.0) vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 2.4.1 vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Simple : VAEntrypointEncSlice VAProfileMPEG2Main : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointEncSlice VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileH264MultiviewHigh : VAEntrypointVLD VAProfileH264MultiviewHigh : VAEntrypointEncSlice VAProfileH264StereoHigh : VAEntrypointVLD VAProfileH264StereoHigh : VAEntrypointEncSlice VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc VAProfileJPEGBaseline : VAEntrypointVLD </code></p> <p>But running <code>mpv</code> with <code>--hwdec=vaapi --vo=vaapi</code> fails to play <code> [vaapi] libva: /usr/lib/dri/i965_drv_video.so init failed [vaapi] Failed to initialize VAAPI: unknown libva error Error opening/initializing the selected video_out (--vo) device. Video: no video Exiting... (Errors when loading file) </code></p> <p>and for <code>intel_gpu_top </code> Video is always zero</p> <p>also having same <code>libva: /usr/lib/dri/i965_drv_video.so init failed</code> on launching Brave browser</p> <p>Has anyone got HW acceleration working for this CPU? Mind to tell?</p> <p>Thank you very much (:</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/mishab_mizzunet"> /u/mishab_mizzunet </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/r4wafa/how_to_get_hw_acceleration_working/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/archlinux/comments/r4wafa/how_to_get_hw_acceleration_working/">[comments]</a></span>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>I did a pacman -Syu like a good arch user and ever since I did that Steam runtime has been giving me a hell of a time. At first I was not able to connect to the steam servers, however that appears to be fixed now after a reboot. Initially, I had to use the -tcp flag and it worked as well. </p> <p>However... </p> <p>Now every game I run slows my system down horrendously, and its not CPU or RAM - its graphics. My mouse begins to run really slow. Some games totally freeze the graphical target, forcing me to switch to single user mode and killing the steam process. I&#39;ve been updating Arch consistently but Steam appears to not play nice with Rolling Release, based on previous threads and other forums I&#39;ve read. Anyone have ideas how I would begin to troubleshoot this, and possibly avoid these issues in the future? Always willing to learn. Thanks.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/microActive"> /u/microActive </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/pp0o6n/steam_games_crash_due_to_graphics_issues_after/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/archlinux/comments/pp0o6n/steam_games_crash_due_to_graphics_issues_after/">[comments]</a></span>

View file

@ -1,89 +0,0 @@
<h2 id="org-mode-links">Org-mode links</h2>
<p>One of the many selling point of using Org-mode as a personal wiki (aka <em>digital garden</em>, see <a href="https://www.eigenbahn.com/2021/09/15/org-roam">previous post</a>) is its <a href="https://orgmode.org/manual/Hyperlinks.html"><em>(hyper)link</em> feature</a>.</p>
<p>As weve seen previously, we can define <em>internal</em> links between Org-file (and/or their outlines), but also <a href="https://orgmode.org/manual/External-Links.html"><em>external</em> links</a> targeting external files &amp; sytems. Those can either point to stuff openable in Emacs itself (e.g. link to files, to a shell command…) or external applications if configured as such (e.g. web pages).</p>
<h2 id="url-abbrevs">URL abbrevs</h2>
<p>Conveniently, pasted URL are directly resolved as <code class="language-plaintext highlighter-rouge">http(s)</code> links.</p>
<p>As usually, we may have a bunch of links to a few websites, it can be convenient to be able to have those in a shorter form.</p>
<p>Conveniently, Org-mode support <a href="https://orgmode.org/manual/Link-Abbreviations.html">link abbreviations</a>.</p>
<p>For example, we may define our list of recurrent linked website.</p>
<div class="language-elisp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">(</span><span class="k">setq</span> <span class="nv">org-link-abbrev-alist</span> <span class="o">'</span><span class="p">((</span><span class="s">"gh"</span> <span class="o">.</span> <span class="s">"https://github.com/"</span><span class="p">)</span>
<span class="p">(</span><span class="s">"gl"</span> <span class="o">.</span> <span class="s">"https://gitlab.com/"</span><span class="p">)</span>
<span class="p">(</span><span class="s">"hn"</span> <span class="o">.</span> <span class="s">"https://news.ycombinator.com/item?id="</span><span class="p">)</span>
<span class="p">(</span><span class="s">"lines"</span> <span class="o">.</span> <span class="s">"https://llllllll.co/t/"</span><span class="p">)</span>
<span class="c1">;; [...]</span>
<span class="p">(</span><span class="s">"thing"</span> <span class="o">.</span> <span class="s">"https://www.thingiverse.com/thing:"</span><span class="p">)))</span>
</code></pre></div></div>
<p>One would just have to type <code class="language-plaintext highlighter-rouge">[[gh:emacs-mirror/emacs]]</code> instead of <code class="language-plaintext highlighter-rouge">https://github.com/emacs-mirror/emacs</code> to insert a link to Emacs github mirror.</p>
<h2 id="even-faster--shorter-url-abbrevs">Even faster &amp; shorter URL abbrevs</h2>
<p>The above solution is nice if we use <code class="language-plaintext highlighter-rouge">org-insert-link</code> to insert links.</p>
<p>But I personally find this command cumbersome. It prompts me 3 times (link type, actual link, description).</p>
<p>I want to go faster and just having to type <code class="language-plaintext highlighter-rouge">gh:emacs-mirror/emacs</code> to get a valid link.</p>
<p>One way to achieve this is to declare <a href="https://orgmode.org/manual/Adding-Hyperlink-Types.html">custom link types</a>.</p>
<p>The solution becomes:</p>
<div class="language-elisp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">(</span><span class="nb">require</span> <span class="ss">'dash</span><span class="p">)</span>
<span class="p">(</span><span class="k">setq</span> <span class="nv">my-org-link-abbrev-alist</span> <span class="o">'</span><span class="p">((</span><span class="s">"gh"</span> <span class="o">.</span> <span class="s">"https://github.com/"</span><span class="p">)</span>
<span class="c1">;; [...]</span>
<span class="p">(</span><span class="s">"thing"</span> <span class="o">.</span> <span class="s">"https://www.thingiverse.com/thing:"</span><span class="p">)))</span>
<span class="p">(</span><span class="nv">--each</span> <span class="nv">my-org-link-abbrev-alist</span>
<span class="p">(</span><span class="k">let*</span> <span class="p">((</span><span class="nv">link-prefix</span> <span class="p">(</span><span class="nb">car</span> <span class="nv">it</span><span class="p">))</span>
<span class="p">(</span><span class="nv">browse-fn</span> <span class="o">`</span><span class="p">(</span><span class="k">lambda</span> <span class="p">(</span><span class="nv">e</span><span class="p">)</span>
<span class="p">(</span><span class="k">let</span> <span class="p">((</span><span class="nv">org-link-abbrev-alist</span> <span class="nv">my-org-link-abbrev-alist</span><span class="p">))</span>
<span class="p">(</span><span class="nv">browse-url</span> <span class="p">(</span><span class="nv">org-link-expand-abbrev</span> <span class="p">(</span><span class="nv">concat</span> <span class="o">,</span><span class="nv">link-prefix</span> <span class="s">":"</span> <span class="nv">e</span><span class="p">)))))))</span>
<span class="p">(</span><span class="nv">org-link-set-parameters</span> <span class="nv">link-prefix</span> <span class="ss">:follow</span> <span class="nv">browse-fn</span><span class="p">)))</span>
</code></pre></div></div>
<p>Please note that we renamed <code class="language-plaintext highlighter-rouge">org-link-abbrev-alist</code> to <code class="language-plaintext highlighter-rouge">my-org-link-abbrev-alist</code> to prevent having duplicated prefix entries if we ever want to call <code class="language-plaintext highlighter-rouge">org-insert-link</code>.</p>
<h2 id="auto-shortening-abbreved-links">Auto-shortening abbreved links</h2>
<p>Most of the time, I just copy/paste an URL into an Org buffer.</p>
<p>Wouldnt it be convenient if it would automagically shorten it if it correspond to a known abbrev?</p>
<p>Thankfully, this is relatively trivial by <em>advising</em> <code class="language-plaintext highlighter-rouge">org-yank</code>.</p>
<div class="language-elisp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">(</span><span class="nb">require</span> <span class="ss">'s</span><span class="p">)</span>
<span class="p">(</span><span class="nb">defun</span> <span class="nv">my-org-link-apply-prefix</span> <span class="p">(</span><span class="nv">txt</span><span class="p">)</span>
<span class="s">"Rework link TXT, swapping prefix w/ shorted one if matches `my-org-link-abbrev-alist'."</span>
<span class="p">(</span><span class="k">let</span> <span class="p">((</span><span class="nv">prfx</span> <span class="p">(</span><span class="nv">--some</span> <span class="p">(</span><span class="nb">and</span> <span class="p">(</span><span class="nv">s-starts-with?</span> <span class="p">(</span><span class="nb">cdr</span> <span class="nv">it</span><span class="p">)</span> <span class="nv">txt</span><span class="p">)</span> <span class="p">(</span><span class="nb">not</span> <span class="p">(</span><span class="nb">string=</span> <span class="p">(</span><span class="nb">cdr</span> <span class="nv">it</span><span class="p">)</span> <span class="nv">txt</span><span class="p">))</span> <span class="nv">it</span><span class="p">)</span> <span class="nv">my-org-link-abbrev-alist</span><span class="p">)))</span>
<span class="p">(</span><span class="k">if</span> <span class="nv">prfx</span>
<span class="p">(</span><span class="nv">s-replace</span> <span class="p">(</span><span class="nb">cdr</span> <span class="nv">prfx</span><span class="p">)</span> <span class="p">(</span><span class="nv">concat</span> <span class="p">(</span><span class="nb">car</span> <span class="nv">prfx</span><span class="p">)</span> <span class="s">":"</span><span class="p">)</span> <span class="nv">txt</span><span class="p">)</span>
<span class="nv">txt</span><span class="p">)))</span>
<span class="p">(</span><span class="nv">defadvice</span> <span class="nv">org-yank</span> <span class="p">(</span><span class="nv">around</span> <span class="nv">prf/org-yank-prefix-link</span> <span class="nv">activate</span><span class="p">)</span>
<span class="s">"Advice around `org-yank' that will auto-compact current entry in `kill-ring' if it matches `my-org-link-abbrev-alist'."</span>
<span class="p">(</span><span class="k">let*</span> <span class="p">((</span><span class="nv">kill</span> <span class="p">(</span><span class="nb">or</span> <span class="p">(</span><span class="nb">and</span> <span class="nv">kill-ring</span> <span class="p">(</span><span class="nv">current-kill</span> <span class="mi">0</span><span class="p">))</span> <span class="s">""</span><span class="p">))</span>
<span class="p">(</span><span class="nv">new-kill</span> <span class="p">(</span><span class="nv">my-org-link-apply-prefix</span> <span class="nv">kill</span><span class="p">)))</span>
<span class="p">(</span><span class="nb">unless</span> <span class="p">(</span><span class="nv">s-blank?</span> <span class="nv">new-kill</span><span class="p">)</span>
<span class="p">(</span><span class="nv">kill-new</span> <span class="nv">new-kill</span> <span class="no">t</span><span class="p">))</span>
<span class="nv">ad-do-it</span><span class="p">))</span>
</code></pre></div></div>
<p>Please not that <code class="language-plaintext highlighter-rouge">my-org-link-apply-prefix</code> only covers “basic” prefix abbrevs. It doesnt support formatted abbrevs (<code class="language-plaintext highlighter-rouge">%s</code>, <code class="language-plaintext highlighter-rouge">%h</code>) nor formatting using a custom function (<code class="language-plaintext highlighter-rouge">%(&lt;CUSTOM-FN&gt;)</code> for which wed need the inverse function).</p>
<h2 id="conclusion">Conclusion</h2>
<p>As always, this shows how flexible Emacs is and how expressive Elisp can be (once you are used to its quirks).</p>
<p>We showcased a very basic example of custom links. One could really go crazy with those.</p>
<p>For more in-depth examples, check out <a href="https://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link-features-in-org-9/">this article</a> from the <em>The Kitchin Research Group</em> blog. They wrote <a href="https://kitchingroup.cheme.cmu.edu/blog/category/orgmode/">a bunch of advanced articles about Org</a>, notably about <em>Babel</em> (Orgs JupyterLab equivalent).</p>

View file

@ -1 +0,0 @@
<table> <tr><td> <a href="https://www.reddit.com/r/unixporn/comments/q6ydij/awesome_solar_flare_on_illumos_with_things_i/"> <img src="https://preview.redd.it/f2sv54vms3t71.png?width=640&amp;crop=smart&amp;auto=webp&amp;s=1b93fac4baadcbd83d9345b922340898ce228fa0" alt="[awesome] Solar Flare on illumos with things I packaged" title="[awesome] Solar Flare on illumos with things I packaged" /> </a> </td><td> &#32; submitted by &#32; <a href="https://www.reddit.com/user/bsosenba"> /u/bsosenba </a> <br/> <span><a href="https://i.redd.it/f2sv54vms3t71.png">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/unixporn/comments/q6ydij/awesome_solar_flare_on_illumos_with_things_i/">[comments]</a></span> </td></tr></table>

View file

@ -1 +0,0 @@
<table> <tr><td> <a href="https://www.reddit.com/r/unixporn/comments/rurwm4/i3gaps_i_dont_consider_this_a_rice_but_im_done/"> <img src="https://external-preview.redd.it/-wEyUFeAUjP2NMSqOiWptLNgzgG32YYj-cgMIdH96xM.png?width=640&amp;crop=smart&amp;auto=webp&amp;s=11c7eaae032e9bc63e5b6561078ab7e68e9d3d50" alt="[i3-gaps] I don't consider this a rice, but I'm done with it." title="[i3-gaps] I don't consider this a rice, but I'm done with it." /> </a> </td><td> &#32; submitted by &#32; <a href="https://www.reddit.com/user/mhmdali102"> /u/mhmdali102 </a> <br/> <span><a href="https://v.redd.it/fm1jarkb7e981">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/unixporn/comments/rurwm4/i3gaps_i_dont_consider_this_a_rice_but_im_done/">[comments]</a></span> </td></tr></table>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>Just tried to git clone from the AUR but doesn&#39;t seem to want to be git cloned. Can&#39;t access the web page either. Is it just me or is <a href="https://aur.archlinux.org/">the AUR</a> down completely?</p> <p>EDIT: okay just found that I can ping it just fine, but there&#39;s no response to anything else. Nothing w git, nothing with Icecat, Firefox, Chrome, Edge, Paru, or anything else other than just pinging it.</p> <p>EDIT 2: okay so now the downtime is showing on <a href="https://status.archlinux.org/">the Arch Linux status page</a>.</p> <p>EDIT 3 (final one): back up and running again. All is good.</p> <p>EDIT 4 (actual final one): Looks like I&#39;m getting more comments explaining shit so I&#39;m just gonna put some links up here to make it easier to see what happened:</p> <p><a href="https://gitlab.manjaro.org/applications/pamac/-/issues/1135">The issue created on the pamac GitLab</a></p> <p><a href="https://forum.manjaro.org/t/responsible-use-of-aur/86392">The PSA posted to the Manjaro forums about how to use pamac properly</a></p> <p>Basically pamac&#39;s new search feature released recently caused the AUR to bork itself again, just like <a href="https://gitlab.manjaro.org/applications/pamac/-/issues/1017">the downtime 5 months ago</a>.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/SimPilotAdamT"> /u/SimPilotAdamT </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/q7v77c/is_the_aur_down/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/archlinux/comments/q7v77c/is_the_aur_down/">[comments]</a></span>

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/r3yv2n/weekly_workshop_20211128/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/unixporn/comments/r3yv2n/weekly_workshop_20211128/">[comments]</a></span>