<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Posts on Mihajlo Madić</title><link>https://depository.mihajlo-madic.workers.dev/posts/</link><description>Recent content in Posts on Mihajlo Madić</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 29 Jul 2026 00:00:00 +0200</lastBuildDate><atom:link href="https://depository.mihajlo-madic.workers.dev/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>How This Site Draws Its Post Cards</title><link>https://depository.mihajlo-madic.workers.dev/posts/deterministic-post-cards/</link><pubDate>Wed, 29 Jul 2026 00:00:00 +0200</pubDate><guid>https://depository.mihajlo-madic.workers.dev/posts/deterministic-post-cards/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Every post on this site now receives&lt;/span&gt; a
mathematical card: the image above the article and the image shown when its
link is shared. It is generated from the post itself, not selected from a
stock library and not drawn by hand. The system treats a post as a compact,
reproducible input to a visual program.&lt;/p&gt;
&lt;p&gt;That property matters more than novelty. A social image may be cached,
indexed, or inspected long after it was first rendered. Regenerating a card
from the same committed post must produce the same pixels, while an edit to
the post should be able to change the result. The implementation uses no
external random state, network call, or generation service: it is a
deterministic function of the authored text.&lt;/p&gt;</description></item><item><title>Notebooks as Posts: A Python Demo</title><link>https://depository.mihajlo-madic.workers.dev/posts/quarto-python-demo/</link><pubDate>Sat, 25 Jul 2026 00:00:00 +0000</pubDate><guid>https://depository.mihajlo-madic.workers.dev/posts/quarto-python-demo/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;This post is written&lt;/span&gt; as a Quarto &lt;code&gt;.qmd&lt;/code&gt;
document rather than plain Markdown. The prose you’re reading and the code
below live in the same source file, and the code actually runs: Quarto
executes it at build time via Jupyter, then hands the rendered Markdown —
prose, code, and figures — to Hugo, which lays it out with the site’s usual
typography, table of contents, and tags. &lt;span class="citation"&gt;&lt;a href="#ref-quarto2026" aria-label="Citation: Posit, PBC (2026). Quarto Documentation. Quarto." data-reference="Posit, PBC (2026). Quarto Documentation. Quarto." title="Posit, PBC (2026). Quarto Documentation. Quarto."&gt;(Quarto 2026)&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;</description></item><item><title>Notebooks as Posts: A Raw Jupyter Notebook</title><link>https://depository.mihajlo-madic.workers.dev/posts/quarto-ipynb-demo/</link><pubDate>Sat, 25 Jul 2026 00:00:00 +0000</pubDate><guid>https://depository.mihajlo-madic.workers.dev/posts/quarto-ipynb-demo/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;The Python and R demos&lt;/span&gt; were written as
&lt;code&gt;.qmd&lt;/code&gt; source files. This post skips that step entirely: it &lt;em&gt;is&lt;/em&gt; a Jupyter
notebook (&lt;code&gt;.ipynb&lt;/code&gt;), edited the normal way in Jupyter or JupyterLab, with a
raw cell at the top carrying the front matter instead of a &lt;code&gt;.qmd&lt;/code&gt;’s YAML
header. Quarto renders &lt;code&gt;.ipynb&lt;/code&gt; files exactly the same way it renders
&lt;code&gt;.qmd&lt;/code&gt; files — same &lt;code&gt;hugo-md&lt;/code&gt; output, same page bundle, same pipeline. &lt;span class="citation"&gt;&lt;a href="#ref-quarto2026" aria-label="Citation: Posit, PBC (2026). Quarto Documentation. Quarto." data-reference="Posit, PBC (2026). Quarto Documentation. Quarto." title="Posit, PBC (2026). Quarto Documentation. Quarto."&gt;(Quarto 2026)&lt;/a&gt;&lt;/span&gt;
 &lt;span class="citation"&gt;&lt;a href="#ref-jupyter2016" aria-label="Citation: Thomas Kluyver et al. (2016). Jupyter Notebooks - a publishing format for reproducible computational workflows. Positioning and Power in Academic Publishing." data-reference="Thomas Kluyver et al. (2016). Jupyter Notebooks - a publishing format for reproducible computational workflows. Positioning and Power in Academic Publishing." title="Thomas Kluyver et al. (2016). Jupyter Notebooks - a publishing format for reproducible computational workflows. Positioning and Power in Academic Publishing."&gt;(Kluyver et al. 2016)&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;</description></item><item><title>Notebooks as Posts: An R Demo</title><link>https://depository.mihajlo-madic.workers.dev/posts/quarto-r-demo/</link><pubDate>Sat, 25 Jul 2026 00:00:00 +0000</pubDate><guid>https://depository.mihajlo-madic.workers.dev/posts/quarto-r-demo/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Quarto doesn’t care&lt;/span&gt; which language produced
the numbers — the same &lt;code&gt;.qmd&lt;/code&gt; → Hugo pipeline used in the
&lt;a class="post-link" href="https://depository.mihajlo-madic.workers.dev/posts/quarto-python-demo/"&gt;Python demo&lt;/a&gt;
 works for R too, executed
through knitr instead of Jupyter. &lt;span class="citation"&gt;&lt;a href="#ref-quarto2026" aria-label="Citation: Posit, PBC (2026). Quarto Documentation. Quarto." data-reference="Posit, PBC (2026). Quarto Documentation. Quarto." title="Posit, PBC (2026). Quarto Documentation. Quarto."&gt;(Quarto 2026)&lt;/a&gt;&lt;/span&gt;
 &lt;span class="citation"&gt;&lt;a href="#ref-xie2015" aria-label="Citation: Yihui Xie (2015). Dynamic Documents with R and knitr. Chapman and Hall/CRC." data-reference="Yihui Xie (2015). Dynamic Documents with R and knitr. Chapman and Hall/CRC." title="Yihui Xie (2015). Dynamic Documents with R and knitr. Chapman and Hall/CRC."&gt;(Xie 2015)&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;</description></item><item><title>Hello World: A Sample Post</title><link>https://depository.mihajlo-madic.workers.dev/posts/hello-world/</link><pubDate>Sat, 28 Feb 2026 00:00:00 +0100</pubDate><guid>https://depository.mihajlo-madic.workers.dev/posts/hello-world/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;This is a sample post&lt;/span&gt; to demonstrate the theme&amp;rsquo;s
typography and features. The body text is set in EB Garamond, a revival of
Claude Garamont&amp;rsquo;s sixteenth-century typefaces — elegant, readable, and well
suited to long-form writing on the web.&lt;/p&gt;
&lt;h2 id="sidenotes"&gt;Sidenotes&lt;/h2&gt;
&lt;p&gt;Tufte CSS provides sidenotes as an alternative to footnotes.
&lt;span class="citation"&gt;&lt;a href="#ref-tufte2006" aria-label="Citation: Edward R. Tufte (2006). Beautiful Evidence. Graphics Press." data-reference="Edward R. Tufte (2006). Beautiful Evidence. Graphics Press." title="Edward R. Tufte (2006). Beautiful Evidence. Graphics Press."&gt;(Tufte 2006)&lt;/a&gt;&lt;/span&gt;

&lt;label for="sn-example" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;
&lt;input type="checkbox" id="sn-example" class="margin-toggle"&gt;
&lt;span class="sidenote"&gt;This is a sidenote. On wide screens it appears in the
margin; on narrow screens, tap the number to reveal it inline.&lt;/span&gt;
They allow the reader to glance at supplementary information without losing
their place in the main text.&lt;/p&gt;</description></item></channel></rss>