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,41 +0,0 @@
<p>On Dec 18th, 2021, Perl turned 34!<sup id="fnref:1"><a class="footnote" href="https://batsov.com/articles/2021/12/19/perl-turns-34/#fn:1" rel="footnote">1</a></sup> Heres how it all started:</p>
<blockquote>
<p><strong>a “replacement” for awk and sed</strong></p>
<p>[ Perl is kind of designed to make awk and sed semi-obsolete. This posting
will include the first 10 patches after the main source. The following
description is lifted from Larrys manpage. r$ ]</p>
<p>Perl is a interpreted language optimized for scanning arbitrary text
files, extracting information from those text files, and printing
reports based on that information. Its also a good language for many
system management tasks. The language is intended to be practical
(easy to use, efficient, complete) rather than beautiful (tiny,
elegant, minimal). It combines (in the authors opinion, anyway) some
of the best features of C, sed, awk, and sh, so people familiar with
those languages should have little difficulty with it. (Language
historians will also note some vestiges of csh, Pascal, and even
BASIC-PLUS.) Expression syntax corresponds quite closely to C
expression syntax. If you have a problem that would ordinarily use sed
or awk or sh, but it exceeds their capabilities or must run a little
faster, and you dont want to write the silly thing in C, then perl may
be for you. There are also translators to turn your sed and awk
scripts into perl scripts.</p>
</blockquote>
<p>Perl has a very special place in my heart, as it was one of the first programming languages that I learned in the early days of my career. In 2005 I was even teaching Perl to students at the Technical University of Sofia, which was my very first experience as an educator. Perl taught me a lot about the virtues of programming, text processing, regular expressions, scripting and writing unreadable code. I wouldnt be the same programmer (person?) without it!</p>
<p>I still remember fondly the days when web development was all about CGI and Perl!
While the language lost traction in recent years, I think that its legacy in alive and well - most notably as a replacement for <code class="language-plaintext highlighter-rouge">sed</code> and <code class="language-plaintext highlighter-rouge">awk</code>, and in Ruby.<sup id="fnref:2"><a class="footnote" href="https://batsov.com/articles/2021/12/19/perl-turns-34/#fn:2" rel="footnote">2</a></sup> Happy birthday, Perl!</p>
<div class="footnotes">
<ol>
<li id="fn:1">
<p>Depending on what you consider the birthday, that is. The first Perl commit was on Dec 18, 1987, but Perl 1.0 was released on Feb 1, 1988. <a class="reversefootnote" href="https://batsov.com/articles/2021/12/19/perl-turns-34/#fnref:1">↩</a></p>
</li>
<li id="fn:2">
<p>Not to mention the countless other programming languages that have modeled their regular expression support after Perl. <a class="reversefootnote" href="https://batsov.com/articles/2021/12/19/perl-turns-34/#fnref:2">↩</a></p>
</li>
</ol>
</div>

View file

@ -1,8 +0,0 @@
<img src="https://www-images.christianitytoday.com/images/125818.jpg?w=540" width="540" /><p class="text">&ldquo;Sticks and stones will break my bones, but words will never hurt me.&rdquo; So goes the popular rhyme parents tell their children when some other child has said something hateful on the playground. Words, we&rsquo;re led to believe, can&rsquo;t inflict any real damage. We really didn&rsquo;t believe it then. And we certainly don&rsquo;t believe them now. Words can hurt and they can hurt a lot. They can wound us so deeply that the bleeding never stops. In worst cases, we carry that wound with us for the rest of our lives.</p>
<p class="text">A lot of us have forgotten the damage words can do. Or at least, we seem to have forgotten. If some of us were aware of the damage our words could do, surely we wouldn&rsquo;t speak that way. No one is that mean. Or are we?</p>
<p class="text">Every day, we read another commentary on the nastiness of our public dialogue. The anonymity of social media has made us willing to say things online that we would never say to someone&rsquo;s face. The relaxing of the norms of public behavior have made verbal assaults, even vulgar attacks, a common experience.</p>
<p class="text">What can we do to return to a more respectful dialogue with our neighbors and friends, or former friends? First, Christians would do well to stop obsessing over how everyone else behaves and check our own behavior. You know, deal with the beam in your own eye before you deal with the speck in your brother&rsquo;s eye.</p>
<p class="text">Let&rsquo;s remember, this isn&rsquo;t the first time things have gotten chippy in the church and in the world around the church. The church was born in the hostility of the Roman Empire. No one wanted to hear the claims of Christ and the impact His church was making on the world. The church and its leaders were frequently attacked, daily according to Paul, and ...</p><p class="more"><a href="https://www.christianitytoday.com/scot-mcknight/2021/october/sticks-and-stones.html">Continue reading</a>...</p>
<p><br /><a href="https://rss.beaconads.com/click.php?z=1289806&k=c779018782158d93282944b4f7dd4d03&a=189988&c=91725174" target="_blank"><img src="https://rss.beaconads.com/img.php?z=1289806&k=c779018782158d93282944b4f7dd4d03&a=189988&c=91725174" border="0" alt="" /></a></p>
5<img src="http://feeds.feedburner.com/~r/christianitytoday/jesuscreed/~4/xDqI8ZjSkho" height="1" width="1" alt=""/>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>Little title says and I didn&#39;t doc about this.</p> <p>I want use text icon format with bg because I like Atom&#39;s completions style.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/404cn"> /u/404cn </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/ru20tj/how_to_make_company_use_text_icon_format_instead/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/ru20tj/how_to_make_company_use_text_icon_format_instead/">[comments]</a></span>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>Hey, I&#39;m experimenting with literate coding. In the process I couldn&#39;t properly evaluate a block. I wanted to use both<code>:results output</code> and <code>:export both</code>, and I&#39;m getting troubles to make those work with <code>:defines</code>. This is the code I have: </p> <pre><code>#+property: header-args :includes &lt;stdio.h&gt; #+property: header-args :defines cool_macro(x) x #+property: header-args :exports both #+property: header-args :results output #+begin_src C printf(&quot;cool_macro(7): %u\n&quot;, cool_macro(7)); printf(&quot;cool_macro(7): %u\n&quot;, cool_macro(7)); #+end_src </code></pre> <p>As it is, both <code>:exports</code> and <code>:results</code> have no effect. I figured that if I place them above the <code>:includes</code> then they&#39;ll have effect, but I get a compilation error because it cannot find the macro, as if now both <code>:includes</code> and <code>:defines</code> doesn&#39;t have effect.</p> <p>If I place those 2 after the <code>#+begin_src C</code> then everything works as expected, but it&#39;s inconvenient since I want those to affect the whole buffer..</p> <pre><code>#+property: header-args :includes &lt;stdio.h&gt; #+property: header-args :defines cool_macro(x) x #+begin_src C :results output :exports both printf(&quot;cool_macro(7): %u\n&quot;, cool_macro(7)); printf(&quot;cool_macro(7): %u\n&quot;, cool_macro(7)); #+end_src </code></pre> <p>Am I doing something really wrong or what?</p> <p>Thanks.</p> <p>Edit: Solution.</p> <p>Ok, of course the solution was in the docs: <a href="https://org-babel.readthedocs.io/en/latest/header-args/#buffer-or-file-level-header-arguments">https://org-babel.readthedocs.io/en/latest/header-args/#buffer-or-file-level-header-arguments</a> .The problem was that I was rewriting the headers, doing it multiline. The proper way to do it is in oneline or specifying that it should be appended to the existent headers with a <code>+</code>. This is how it looks when it works properly:</p> <pre><code>#+property: header-args :results output :exports both #+property: header-args+ :includes &lt;stdio.h&gt; #+property: header-args+ :defines cool_macro(x) x #+begin_src C printf(&quot;cool_macro(7): %u\n&quot;, cool_macro(7)); printf(&quot;cool_macro(7): %u\n&quot;, cool_macro(7)); #+end_src #+RESULTS: : cool_macro(7): 7 : cool_macro(7): 7 </code></pre> <p>Thanks for the help!</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/mefff_"> /u/mefff_ </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/qwbk6b/orgbabel_c_and_cmacros/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/orgmode/comments/qwbk6b/orgbabel_c_and_cmacros/">[comments]</a></span>

View file

@ -1 +0,0 @@
<table> <tr><td> <a href="https://www.reddit.com/r/unixporn/comments/qz63kw/xfce_i3gaps_enter_the_void/"> <img src="https://preview.redd.it/ooz71giby0181.png?width=640&amp;crop=smart&amp;auto=webp&amp;s=6703a9478cb212477cd2ccfdd53ba553bbfe8a97" alt="[XFCE + i3-gaps] Enter the void" title="[XFCE + i3-gaps] Enter the void" /> </a> </td><td> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Saint-Ranger"> /u/Saint-Ranger </a> <br/> <span><a href="https://i.redd.it/ooz71giby0181.png">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/unixporn/comments/qz63kw/xfce_i3gaps_enter_the_void/">[comments]</a></span> </td></tr></table>

File diff suppressed because it is too large Load diff

View file

@ -1,4 +0,0 @@
<p>Here are a couple of mini-tutorials on using two Emacs packages. Theyre both pretty short so Ive combined them into a single post. In <a href="https://readingworldmagazine.com/emacs/2021-09-06-emacs-stripes-visual-fill-column-word-wrap/">the first</a>, Yuri Tricys presents some configurations and packages to customize <a href="https://github.com/rnkn/olivetti">Olivetti-mode</a>. He shows how to adjust the margins, toggle the fringe on and off, and configure wrap and fill columns, He also shows using the <a href="https://github.com/Fanael/highlight-numbers/tree/8b4744c7f46c72b1d3d599d4fb75ef8183dee307">highlight-numbers</a> and the <a href="https://melpa.org/#/stripes">stripes</a> packages.</p>
<p>Unfortunately, Tricys doesnt provide any examples of the output but most of his configurations are self explanatory. If youre a writer who uses or is considering using Olivetti-mode, take a quick look at Tricys post.</p>
<p>The <a href="https://francopasut.netlify.app/post/emacs_expand_region/">second tutorial</a> is by Franco Pasut and considers using <a href="https://github.com/magnars/expand-region.el">expand-region</a> with LaTeX. Many Irreal readers are probably familiar with expand-region from using it with their programming buffers but its also useful for dealing with LaTeX source. Pasut has a series of animated GIFs that show it in action. Judging from the GIFs, expand-region has some shortcomings when used with LaTeX as compared to other languages. For example, Id expect the highlighting to go from word to sentence and <i>then</i> to paragraph.</p>
<p>Of course, Magnar anticipated that people would want to add capabilities and made that easy. If youre really interested in using expand-region with LaTeX, you should look into adding the features you need.</p>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>I use ebib and citar. Both are awesome, but have different defaults when creating notes files for bibliographic entries. I wanted to unify them (so that my notes would always be of the same format). So I defined a wrapper function:</p> <pre><code>(defun my/citar-ebib-notes-format-wrapper (key _entry _filepath) &quot;Wrapper so that citar&#39;s notes function can inherit from ebib&#39;s. </code></pre> <p>Passes KEY to <code>ebib--notes-fill-template&#39;, along with the value of</code>ebib--cur-db&#39; if defined, or the first item of `ebib-preload-bib-files&#39; if not. _ENTRY and _FILEPATH are ignored.&quot; (require &#39;ebib-notes) (if-let ((cell (ebib--notes-create-new-note key (or ebib--cur-db (car ebib-preload-bib-files))))) (progn (display-buffer (car cell)) (goto-char (cdr cell)))))</p> <p>This only works while ebib is running. While it&#39;s not running I get an error message <code>format-spec: Invalid format character: %T</code>, which is strange, because the formatting <em>seems</em> to rely on <code>ebib-notes-template-specifiers</code>, which I don&#39;t change, and which is initialised in <code>ebib-notes.el</code> (so should be available when the body of the function runs). Changing the notes template variable so that it doesn&#39;t include <code>%T</code> helps, and iterating on this reveals that the formatter errors for all specifiers except <code>%K</code>, which it handles fine. I&#39;m very confused.</p> <p>I&#39;ve tried everything I can think of to get this to work, to no avail. What&#39;s going on? Any help greatly appreciated!</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Jack-o-tall-tales"> /u/Jack-o-tall-tales </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/raif60/ebib_cant_format_anything_except_the_k_spec_in/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/raif60/ebib_cant_format_anything_except_the_k_spec_in/">[comments]</a></span>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>Is there any way to add a custom preamble for <code>org-latex-preview</code>? I want to be able to preview commands that I&#39;ve defined in LaTeX, right now any commands that it doesn&#39;t recognize just show up as blank.</p> <p>As a backup, is there any way to disable preview for undefined commands (i.e. show the LaTeX code), instead of just showing a blank?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/jmite"> /u/jmite </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/r6n775/custom_preamble_for_latex_preview/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/orgmode/comments/r6n775/custom_preamble_for_latex_preview/">[comments]</a></span>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>... hi, how i can get such a taskmanager in doomemacs up and running 🤔</p> <p><a href="https://imgur.com/gallery/ymAvmUa">https://imgur.com/gallery/ymAvmUa</a></p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/TriumphOfDeath"> /u/TriumphOfDeath </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/r4tcx5/task_manager/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/orgmode/comments/r4tcx5/task_manager/">[comments]</a></span>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>I&#39;m creating a beamer presentation using Orgmode.</p> <p>I&#39;m using a lot of \pause command to obtain a nice presentation workflow. </p> <p>My question is: </p> <p>-- is it possible to change the color of the last paragraph being presented with each \pause command?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/AlfB3ta"> /u/AlfB3ta </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/rcbvqj/orgbeamer_export/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/orgmode/comments/rcbvqj/orgbeamer_export/">[comments]</a></span>