<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Posts on AD Blogdown</title><link>https://links.alexanderdunkel.com/posts/</link><description>Recent content in Posts on AD Blogdown</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><managingEditor>mail@alexanderdunkel.com (Alexander Dunkel)</managingEditor><webMaster>mail@alexanderdunkel.com (Alexander Dunkel)</webMaster><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Thu, 29 Oct 2026 06:00:00 +0000</lastBuildDate><atom:link href="https://links.alexanderdunkel.com/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>Reverse Git Bridge for Private or Air-Gapped GitLabs</title><link>https://links.alexanderdunkel.com/posts/2026-10-29-private-gitlab-bridge/</link><pubDate>Thu, 29 Oct 2026 06:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2026-10-29-private-gitlab-bridge/</guid><description>&lt;h2 id="motivation"&gt;Motivation&lt;/h2&gt;
&lt;p&gt;With the continuous critical unauthenticated remote code execution (RCE) and authentication-bypass CVEs hitting GitLab, exposing a self-hosted instance directly to the public internet has become an anti-pattern.&lt;/p&gt;
&lt;p&gt;The rational decision is keeping GitLab(s) completely private.&lt;/p&gt;
&lt;p&gt;However, this creates a dilemma for cloud deployments. How can an isolated cloud server pull updates or push configuration backups to the private GitLab instance without opening firewall holes?&lt;/p&gt;
&lt;p&gt;One solution is a Reverse Git Bridge: using your client SSH session to temporarily tunnel Git operations backward across the connection, paired with an SSH hostname override and a single-repo Deploy Key.&lt;/p&gt;</description><content type="html"><![CDATA[<h2 id="motivation">Motivation</h2>
<p>With the continuous critical unauthenticated remote code execution (RCE) and authentication-bypass CVEs hitting GitLab, exposing a self-hosted instance directly to the public internet has become an anti-pattern.</p>
<p>The rational decision is keeping GitLab(s) completely private.</p>
<p>However, this creates a dilemma for cloud deployments. How can an isolated cloud server pull updates or push configuration backups to the private GitLab instance without opening firewall holes?</p>
<p>One solution is a Reverse Git Bridge: using your client SSH session to temporarily tunnel Git operations backward across the connection, paired with an SSH hostname override and a single-repo Deploy Key.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">[Private GitLab]  &lt;--- (LAN) ---  [Admin Laptop]  === (SSH Tunnel) ===&gt;  [Cloud VPS]
</span></span><span class="line"><span class="cl"> (192.168.100.100:443)                                                        `git pull` / `git push`
</span></span><span class="line"><span class="cl">                                                                              via 127.0.0.1:443
</span></span></code></pre></div><hr>
<h2 id="1-workstation-forward-the-private-gitlab-port">1. Workstation: Forward the Private GitLab Port</h2>
<p>In your workstation’s <code>~/.ssh/config</code>, bind a local port on the remote VPS back to your private GitLab instance over your interactive session.</p>
<pre tabindex="0"><code class="language-ssh-config" data-lang="ssh-config">Host cloud-vps
    HostName &lt;cloud-vps-ip&gt;
    User alex
    # Forward 127.0.0.1:&lt;vps-port&gt; on the VPS 
    # -&gt; &lt;private-gitlab-ip&gt;:&lt;gitlab-port&gt; on LAN:
    RemoteForward 127.0.0.1:443 192.168.100.100:443
</code></pre><p>Note: Explicitly prefixing <code>127.0.0.1:</code> forces OpenSSH to bind to the IPv4 loopback. This avoids default IPv6 <code>::1</code> mismatches. Replace <code>443</code> and <code>192.168.100.100</code> with the SSH port and IP of your private Gitlab instance.</p>
<hr>
<h2 id="2-remote-vps-generate-a-scoped-deploy-key">2. Remote VPS: Generate a Scoped Deploy Key</h2>
<p>Setup a deploy key - follow (e.g.) <a href="../2026-04-19_gitlab_deploy_keys">Setup of Gitlab Deploy Keys</a>.</p>
<hr>
<h2 id="3-remote-vps-transparent-host-redirection">3. Remote VPS: Transparent Host Redirection</h2>
<p>Instead of maintaining awkward <code>127.0.0.1</code> Git remote URLs, configure the VPS SSH client to route your real GitLab domain through the reverse tunnel automatically.</p>
<p>Create or edit <code>~/.ssh/config</code> for the remote service user:</p>
<pre tabindex="0"><code class="language-ssh-config" data-lang="ssh-config">Host gl.example.com
    HostName 127.0.0.1
    Port 443
    User git
    IdentityFile ~/.ssh/id_ed25519
    IdentitiesOnly yes
    StrictHostKeyChecking accept-new
</code></pre><p>Note: Replace <code>443</code> (the port) to the SSH port of your private Gitlab instance, if you changed this.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">chmod <span class="m">600</span> ~/.ssh/config
</span></span></code></pre></div><hr>
<h2 id="4-usage">4. Usage</h2>
<p>Your remote repository retains its standard canonical URL:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git remote set-url origin ssh://git@gl.example.com/&lt;group&gt;/&lt;repo&gt;.git
</span></span></code></pre></div><h3 id="in-daily-operation">In Daily Operation:</h3>
<ol>
<li><strong>Connect from your workstation:</strong>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh cloud-vps
</span></span></code></pre></div></li>
<li><strong>Execute Git commands on the remote VPS:</strong>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git pull origin main
</span></span><span class="line"><span class="cl">git push origin main
</span></span></code></pre></div></li>
<li><strong>Disconnect:</strong>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">exit</span>
</span></span></code></pre></div></li>
</ol>
<p>The moment you close your SSH session, the tunnel closes, too. The cloud VPS has no credentials, zero network paths, and no open ports leading into your private infrastructure.</p>
<ol>
<li><strong>Temporal Isolation:</strong> The network bridge exists <strong>only</strong> while you are actively sitting at the terminal. When you disconnect, the VPS cannot reach your homelab.</li>
<li><strong>Containment:</strong> Deploy Keys are project-level. Even if the cloud server is compromised, the key cannot touch any other repository or administrative API on your GitLab.</li>
<li><strong>Canonical Remote Tracking:</strong> Because the tunnel mapping is handled at the SSH layer (<code>~/.ssh/config</code>), your Git configurations, <code>.gitmodules</code>, and remotes remain identical across all environments.</li>
</ol>
]]></content></item><item><title>Habilitation Slides, Replication Packages, and RevealJS Workflows</title><link>https://links.alexanderdunkel.com/posts/2026-10-17-habilitation-slides/</link><pubDate>Sat, 17 Oct 2026 09:00:00 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2026-10-17-habilitation-slides/</guid><description>&lt;p&gt;Last year, I submitted my habilitation thesis to the Faculty of Environmental Sciences at TUD, titled:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Geovisualizing Collective Perception: Integrating Opportunistic Data into the Planning Information Cycle&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The remaining part to do was the habilitation defense, on October 15, 2026. This post documents the slides, archival links, some of the discussion points, and the technical workflows used to build and publish the presentations.&lt;/p&gt;
&lt;h3 id="1-scientific-lecture"&gt;1. Scientific Lecture&lt;/h3&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/decks-slide.png" alt="Alexander Dunkel presenting the HaCLAthon in the Großer Saal"&gt;
&lt;/p&gt;</description><content type="html"><![CDATA[<p>Last year, I submitted my habilitation thesis to the Faculty of Environmental Sciences at TUD, titled:</p>
<blockquote>
<p>Geovisualizing Collective Perception: Integrating Opportunistic Data into the Planning Information Cycle</p>
</blockquote>
<p>The remaining part to do was the habilitation defense, on October 15, 2026. This post documents the slides, archival links, some of the discussion points, and the technical workflows used to build and publish the presentations.</p>
<h3 id="1-scientific-lecture">1. Scientific Lecture</h3>
<p>
  <img src="/imgs/decks-slide.png" alt="Alexander Dunkel presenting the HaCLAthon in the Großer Saal">
</p>
<blockquote>
<p><strong>Title:</strong> Geovisual Analytics for Democratic Resilience: Methodological Frontiers in Measuring Social Cohesion</p>
</blockquote>
<ul>
<li><strong>Web Slides:</strong> <a href="https://kartographie.geo.tu-dresden.de/ad/social-cohesion/">https://kartographie.geo.tu-dresden.de/ad/social-cohesion/</a>
<ul>
<li>copyrighted images have been removed from the above web-slides. Use <a href="https://slides.ad.ioer.info/social-cohesion/">this link</a> for internal view of the original presentation slides.</li>
</ul>
</li>
<li><strong>Zenodo Archive (PDF &amp; Markdown):</strong> <a href="https://doi.org/10.5281/zenodo.23665194">https://doi.org/10.5281/zenodo.23665194</a></li>
<li><strong>Repository:</strong> <a href="https://gitlab.hrz.tu-chemnitz.de/ad/habilitation-social-cohesion">gitlab.hrz.tu-chemnitz.de/ad/habilitation-social-cohesion</a> (private)</li>
</ul>
<h3 id="2-trial-lecture">2. Trial Lecture</h3>
<blockquote>
<p><strong>Title:</strong> Principles of Good Scientific Practice in Geoinformatics: From Data Management to Reproducible Code</p>
</blockquote>
<ul>
<li><strong>Web Slides:</strong> <a href="https://kartographie.geo.tu-dresden.de/ad/reproducible-geoinformatics/">https://kartographie.geo.tu-dresden.de/ad/reproducible-geoinformatics/</a>
<ul>
<li>copyrighted images have been removed from the above web-slides. Use <a href="https://slides.ad.ioer.info/reproducible-geoinformatics/">this link</a> for internal view of the original presentation slides.</li>
</ul>
</li>
<li><strong>Zenodo Archive (PDF &amp; Markdown):</strong> <a href="https://doi.org/10.5281/zenodo.23335010">https://doi.org/10.5281/zenodo.23335010</a></li>
<li><strong>Repository:</strong> <a href="https://gitlab.hrz.tu-chemnitz.de/ad/reproducibility-geoinformatics">gitlab.hrz.tu-chemnitz.de/ad/reproducibility-geoinformatics</a> (private)</li>
</ul>
<hr>
<h3 id="colloquium--discussion-notes">Colloquium &amp; Discussion Notes</h3>
<p>For my own reference, a brief summary of the main themes discussed during the colloquium:</p>
<ul>
<li><strong>Bridging Qualitative and Quantitative Approaches:</strong> Using large-scale opportunistic geosocial data not as an absolute &ldquo;ground truth,&rdquo; but as a spatial baseline and conversation starter to provoke and inform local, qualitative neighborhood assessments.</li>
<li><strong>Accessibility:</strong> Addressing the complexity gap between raw geosocial data pipelines and municipal planning practice; structuring outputs so non-programmers can interpret and critique them.</li>
<li><strong>Platform Bias:</strong> Dealing with positive curation bias on social media (what users choose <em>not</em> to post) and the &ldquo;homogenizing&rdquo; effect of generative AI on future digital traces.</li>
<li><strong>Geoprivacy:</strong> Combining statistical modeling (e.g., <code>SynPop-DE</code>) and probabilistic data structures (HyperLogLog) to enable high-resolution spatial analysis without exposing personal data.</li>
<li><strong>Reproducibility Conventions:</strong> Treating rules like &ldquo;no binary files in Git&rdquo; or &ldquo;100% open data&rdquo; as a spectrum with real-world trade-offs (e.g., GeoPackage tolerances, FAIR vs. ELSA restrictions).</li>
</ul>
<hr>
<h3 id="technical-notes--slide-workflows">Technical Notes &amp; Slide Workflows</h3>
<p>Both presentations were built with Jekyll and Reveal.js. This allowed me to use the slides simultaneously as live web presentations, speaker documentation, and Markdown raw archival. Some of the new things I experimented with:</p>
<h4 id="1-iframe-scrolling-via-revealjs-fragments">1. iframe-scrolling via Reveal.js Fragments</h4>
<p>In the second lecture, I embedded full HTML exports of Jupyter notebooks (such as the <a href="2024-10-27-grass-gis-viewshed.md">wind turbine viewshed analysis</a> and <a href="2025-11-05-ai-studio-backup-restore.md">static AI conversation transcripts</a>) as background iframes.</p>
<p>To avoid switching to the mouse and manually scrolling during the talk, I linked Reveal.js <code>fragmentshown</code> and <code>fragmenthidden</code> events to scroll the iframe to specific anchor IDs or pixel offsets.</p>
<details>
<summary><strong>Slide content</strong></summary>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="c">&lt;!-- .slide: data-header=&#34;clean&#34; style=&#34;top: 0 !important;&#34; --&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c">&lt;!-- Titel --&gt;</span>
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">div</span> <span class="na">style</span><span class="o">=</span><span class="s">&#34;text-align: left; margin-left: 235px; margin-top: 15px; margin-bottom: 15px;&#34;</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;</span><span class="nt">h2</span> <span class="na">style</span><span class="o">=</span><span class="s">&#34;color: var(--tud-blue, #00008C); margin: 0; font-size: 1.25em;&#34;</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    Case Study: 1,500 Wind Turbine Viewsheds
</span></span><span class="line"><span class="cl">  <span class="p">&lt;/</span><span class="nt">h2</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;</span><span class="nt">div</span> <span class="na">style</span><span class="o">=</span><span class="s">&#34;color: var(--tud-text-muted, #566371); margin-top: 3px; font-size: 0.78em;&#34;</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    Automated batch processing in JupyterLab with legal requirements
</span></span><span class="line"><span class="cl">  <span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">div</span> <span class="na">style</span><span class="o">=</span><span class="s">&#34;position: relative; width: 1080px; height: 475px; margin: 0 auto;&#34;</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="c">&lt;!-- Das interaktive Jupyter-Notebook Iframe --&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;</span><span class="nt">iframe</span> <span class="na">id</span><span class="o">=</span><span class="s">&#34;viewshed-frame&#34;</span> <span class="na">src</span><span class="o">=</span><span class="s">&#34;assets/01_viewshedanalysis.html&#34;</span> 
</span></span><span class="line"><span class="cl">          <span class="na">style</span><span class="o">=</span><span class="s">&#34;width: 100%; height: 100%; border: 1px solid #d0d5dd; border-radius: 6px; 
</span></span></span><span class="line"><span class="cl"><span class="s">                 box-shadow: 0 4px 18px rgba(0,0,0,0.08); background: white;&#34;</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;/</span><span class="nt">iframe</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="c">&lt;!-- Green boxes --&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="c">&lt;!-- Fragment 1: Prepare environment --&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;</span><span class="nt">div</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;fragment hud-ioer&#34;</span> <span class="na">data-fragment-index</span><span class="o">=</span><span class="s">&#34;1&#34;</span> <span class="na">data-target</span><span class="o">=</span><span class="s">&#34;Prepare-environment&#34;</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">h4</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;hud-ioer-title&#34;</span><span class="p">&gt;</span>01 <span class="ni">&amp;bull;</span> Definition of Dependencies<span class="p">&lt;/</span><span class="nt">h4</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">p</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;hud-ioer-body&#34;</span><span class="p">&gt;</span>Code as documentation <span class="ni">&amp;amp;</span> execution. Carto-Lab container pinned in the header.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="c">&lt;!-- Fragment 2: Documenting the Environment (RAM, Cores) --&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;</span><span class="nt">div</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;fragment hud-ioer&#34;</span> <span class="na">data-fragment-index</span><span class="o">=</span><span class="s">&#34;2&#34;</span> <span class="na">data-target</span><span class="o">=</span><span class="s">&#34;Hardware-specs&#34;</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">h4</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;hud-ioer-title&#34;</span><span class="p">&gt;</span>02 <span class="ni">&amp;bull;</span> Documenting the Environment<span class="p">&lt;/</span><span class="nt">h4</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">p</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;hud-ioer-body&#34;</span><span class="p">&gt;</span>Programmatic hardware auditing: 64-bit architecture, 128 GB RAM VM, and 16 CPU cores.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="c">&lt;!-- Fragment 3: Parameters --&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;</span><span class="nt">div</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;fragment hud-ioer&#34;</span> <span class="na">data-fragment-index</span><span class="o">=</span><span class="s">&#34;3&#34;</span> <span class="na">data-target</span><span class="o">=</span><span class="s">&#34;Parameters&#34;</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">h4</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;hud-ioer-title&#34;</span><span class="p">&gt;</span>03 <span class="ni">&amp;bull;</span> Explicit Definition of Parameters<span class="p">&lt;/</span><span class="nt">h4</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">p</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;hud-ioer-body&#34;</span><span class="p">&gt;</span>Observer height (1.8 m), turbine hub heights, and atmospheric refraction declared as immutable constants.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="c">&lt;!-- Fragment 4: Create grass project --&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;</span><span class="nt">div</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;fragment hud-ioer&#34;</span> <span class="na">data-fragment-index</span><span class="o">=</span><span class="s">&#34;4&#34;</span> <span class="na">data-target</span><span class="o">=</span><span class="s">&#34;Create-grass-project-(a-Location)&#34;</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">h4</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;hud-ioer-title&#34;</span><span class="p">&gt;</span>04 <span class="ni">&amp;bull;</span> Parametric Project Generation<span class="p">&lt;/</span><span class="nt">h4</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">p</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;hud-ioer-body&#34;</span><span class="p">&gt;</span>Headless GRASS project and projection (EPSG:25833) initialized via code <span class="ni">&amp;mdash;</span> no manual GUI clicks.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="c">&lt;!-- Fragment 5: Data visualization --&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;</span><span class="nt">div</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;fragment hud-ioer&#34;</span> <span class="na">data-fragment-index</span><span class="o">=</span><span class="s">&#34;5&#34;</span> <span class="na">data-target</span><span class="o">=</span><span class="s">&#34;Data-visualization&#34;</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">h4</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;hud-ioer-title&#34;</span><span class="p">&gt;</span>05 <span class="ni">&amp;bull;</span> Input Validation<span class="p">&lt;/</span><span class="nt">h4</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">p</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;hud-ioer-body&#34;</span><span class="p">&gt;</span>Automated reprojection checks and boundary verification on municipal shapefiles prior to batch execution.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="c">&lt;!-- Fragment 6: Viewshed Preview --&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;</span><span class="nt">div</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;fragment hud-ioer&#34;</span> <span class="na">data-fragment-index</span><span class="o">=</span><span class="s">&#34;6&#34;</span> <span class="na">data-target</span><span class="o">=</span><span class="s">&#34;Viewshed-preview&#34;</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">h4</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;hud-ioer-title&#34;</span><span class="p">&gt;</span>06 <span class="ni">&amp;bull;</span> Visual Verification <span class="ni">&amp;amp;</span> Preview<span class="p">&lt;/</span><span class="nt">h4</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">p</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;hud-ioer-body&#34;</span><span class="p">&gt;</span>Included preview map and visual verification directly inside the notebook pipeline.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="c">&lt;!-- Fragment 7: Cumulative Preview / Final Archive --&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;</span><span class="nt">div</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;fragment hud-ioer&#34;</span> <span class="na">data-fragment-index</span><span class="o">=</span><span class="s">&#34;7&#34;</span> <span class="na">data-target</span><span class="o">=</span><span class="s">&#34;cumulative-preview&#34;</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">h4</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;hud-ioer-title&#34;</span><span class="p">&gt;</span>07 <span class="ni">&amp;bull;</span> Automated Archive Generation<span class="p">&lt;/</span><span class="nt">h4</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">p</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;hud-ioer-body&#34;</span><span class="p">&gt;</span>Output packaged into timestamped ZIP archives. Static HTML report compiled and published via CI/CD.<span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c">&lt;!-- CSS: No jumping --&gt;</span>
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">style</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">.</span><span class="nc">hud-ioer</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="k">display</span><span class="p">:</span> <span class="kc">none</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">position</span><span class="p">:</span> <span class="kc">absolute</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">width</span><span class="p">:</span> <span class="mi">44</span><span class="kt">%</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">right</span><span class="p">:</span> <span class="mi">-60</span><span class="kt">px</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">top</span><span class="p">:</span> <span class="mi">220</span><span class="kt">px</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">box-shadow</span><span class="p">:</span> <span class="mi">0</span> <span class="mi">1</span><span class="kt">px</span> <span class="mi">4</span><span class="kt">px</span> <span class="nb">rgba</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">0</span><span class="p">,</span><span class="mi">0</span><span class="p">,</span><span class="mf">0.5</span><span class="p">),</span> <span class="mi">0</span> <span class="mi">5</span><span class="kt">px</span> <span class="mi">25</span><span class="kt">px</span> <span class="nb">rgba</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">0</span><span class="p">,</span><span class="mi">0</span><span class="p">,</span><span class="mf">0.2</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">    <span class="k">background-color</span><span class="p">:</span> <span class="nb">rgba</span><span class="p">(</span><span class="mi">112</span><span class="p">,</span> <span class="mi">164</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mf">0.88</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">    <span class="k">color</span><span class="p">:</span> <span class="mh">#ffffff</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">padding</span><span class="p">:</span> <span class="mi">16</span><span class="kt">px</span> <span class="mi">22</span><span class="kt">px</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">font-size</span><span class="p">:</span> <span class="mi">18</span><span class="kt">px</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">text-align</span><span class="p">:</span> <span class="kc">left</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">border-radius</span><span class="p">:</span> <span class="mi">4</span><span class="kt">px</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">z-index</span><span class="p">:</span> <span class="mi">50</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">  <span class="p">}</span>
</span></span><span class="line"><span class="cl">  
</span></span><span class="line"><span class="cl">  <span class="c">/* Nur die jeweils aktive Box einblenden */</span>
</span></span><span class="line"><span class="cl">  <span class="p">.</span><span class="nc">hud-ioer</span><span class="p">.</span><span class="nc">current-fragment</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="k">display</span><span class="p">:</span> <span class="kc">block</span> <span class="cp">!important</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">  <span class="p">}</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="c">/* Unsichtbares Dummy-Fragment für den leisen RAM-Scroll */</span>
</span></span><span class="line"><span class="cl">  <span class="p">.</span><span class="nc">hud-silent</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="k">display</span><span class="p">:</span> <span class="kc">none</span> <span class="cp">!important</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">  <span class="p">}</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="p">.</span><span class="nc">hud-ioer-title</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="k">color</span><span class="p">:</span> <span class="mh">#ffffff</span> <span class="cp">!important</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">font-size</span><span class="p">:</span> <span class="mf">1.05</span><span class="kt">em</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">font-weight</span><span class="p">:</span> <span class="mi">700</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">margin</span><span class="p">:</span> <span class="mi">0</span> <span class="mi">0</span> <span class="mi">6</span><span class="kt">px</span> <span class="mi">0</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">  <span class="p">}</span>
</span></span><span class="line"><span class="cl">  <span class="p">.</span><span class="nc">hud-ioer-body</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="k">font-size</span><span class="p">:</span> <span class="mf">0.82</span><span class="kt">em</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">line-height</span><span class="p">:</span> <span class="mf">1.45</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">color</span><span class="p">:</span> <span class="mh">#ffffff</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">    <span class="k">margin</span><span class="p">:</span> <span class="mi">0</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">  <span class="p">}</span>
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">style</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c">&lt;!-- Steuerung für Box 1 während Fragment 2 (kein Wackeln) --&gt;</span>
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">script</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="kd">function</span> <span class="nx">updateHUDState</span><span class="p">()</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">      <span class="kr">const</span> <span class="nx">b1</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">querySelector</span><span class="p">(</span><span class="s1">&#39;.hud-step-1&#39;</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">      <span class="kr">const</span> <span class="nx">silent</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">querySelector</span><span class="p">(</span><span class="s1">&#39;.hud-silent&#39;</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">      <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">b1</span> <span class="o">||</span> <span class="o">!</span><span class="nx">silent</span><span class="p">)</span> <span class="k">return</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">      <span class="c1">// Wenn das leise Fragment 2 aktiv ist, Box 1 stabil sichtbar halten:
</span></span></span><span class="line"><span class="cl">      <span class="k">if</span> <span class="p">(</span><span class="nx">silent</span><span class="p">.</span><span class="nx">classList</span><span class="p">.</span><span class="nx">contains</span><span class="p">(</span><span class="s1">&#39;current-fragment&#39;</span><span class="p">))</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">        <span class="nx">b1</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s1">&#39;block&#39;</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">      <span class="p">}</span> <span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">b1</span><span class="p">.</span><span class="nx">classList</span><span class="p">.</span><span class="nx">contains</span><span class="p">(</span><span class="s1">&#39;current-fragment&#39;</span><span class="p">))</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">        <span class="nx">b1</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">      <span class="p">}</span>
</span></span><span class="line"><span class="cl">    <span class="p">}</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="k">if</span> <span class="p">(</span><span class="nb">window</span><span class="p">.</span><span class="nx">parent</span> <span class="o">&amp;&amp;</span> <span class="nb">window</span><span class="p">.</span><span class="nx">parent</span><span class="p">.</span><span class="nx">Reveal</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">      <span class="nb">window</span><span class="p">.</span><span class="nx">parent</span><span class="p">.</span><span class="nx">Reveal</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;fragmentshown&#39;</span><span class="p">,</span> <span class="nx">updateHUDState</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">      <span class="nb">window</span><span class="p">.</span><span class="nx">parent</span><span class="p">.</span><span class="nx">Reveal</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;fragmenthidden&#39;</span><span class="p">,</span> <span class="nx">updateHUDState</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">    <span class="p">}</span>
</span></span><span class="line"><span class="cl">  <span class="p">})();</span>
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">script</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">Note:
</span></span><span class="line"><span class="cl">- 1,500 wind turbine viewsheds for state legal area enforcement.
</span></span><span class="line"><span class="cl">- Legal court scrutiny required exact reproducibility.
</span></span><span class="line"><span class="cl">- Automated batch processing using headless GRASS.
</span></span><span class="line"><span class="cl">- Parameters, seeds, and hardware programmatic audited.
</span></span><span class="line"><span class="cl">- Transition: Zero-friction execution via the cloud.
</span></span></code></pre></div></details>
<details>
<summary><strong>JavaScript listener inside iframe-HTML for fragment-based iframe scrolling</strong></summary>
<p>Here I had to fix a number of Leaflet-archival issues, too - the code can definitly be improved.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-javascript" data-lang="javascript"><span class="line"><span class="cl">  <span class="o">&lt;</span><span class="nx">script</span><span class="o">&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="c1">// 1. Sanftes Gleit-Scrollen (700ms)
</span></span></span><span class="line"><span class="cl">    <span class="kd">function</span> <span class="nx">smoothScrollToY</span><span class="p">(</span><span class="nx">targetY</span><span class="p">,</span> <span class="nx">duration</span> <span class="o">=</span> <span class="mi">700</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">      <span class="kr">const</span> <span class="nx">startY</span> <span class="o">=</span> <span class="nb">window</span><span class="p">.</span><span class="nx">pageYOffset</span> <span class="o">||</span> <span class="nb">document</span><span class="p">.</span><span class="nx">documentElement</span><span class="p">.</span><span class="nx">scrollTop</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">      <span class="kr">const</span> <span class="nx">diff</span> <span class="o">=</span> <span class="nx">targetY</span> <span class="o">-</span> <span class="nx">startY</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">      <span class="kd">let</span> <span class="nx">startTime</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">      <span class="kd">function</span> <span class="nx">step</span><span class="p">(</span><span class="nx">timestamp</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">        <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">startTime</span><span class="p">)</span> <span class="nx">startTime</span> <span class="o">=</span> <span class="nx">timestamp</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">        <span class="kr">const</span> <span class="nx">progress</span> <span class="o">=</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">min</span><span class="p">((</span><span class="nx">timestamp</span> <span class="o">-</span> <span class="nx">startTime</span><span class="p">)</span> <span class="o">/</span> <span class="nx">duration</span><span class="p">,</span> <span class="mi">1</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">        <span class="kr">const</span> <span class="nx">ease</span> <span class="o">=</span> <span class="nx">progress</span> <span class="o">&lt;</span> <span class="mf">0.5</span>
</span></span><span class="line"><span class="cl">          <span class="o">?</span> <span class="mi">4</span> <span class="o">*</span> <span class="nx">progress</span> <span class="o">*</span> <span class="nx">progress</span> <span class="o">*</span> <span class="nx">progress</span>
</span></span><span class="line"><span class="cl">          <span class="o">:</span> <span class="mi">1</span> <span class="o">-</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">pow</span><span class="p">(</span><span class="o">-</span><span class="mi">2</span> <span class="o">*</span> <span class="nx">progress</span> <span class="o">+</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">)</span> <span class="o">/</span> <span class="mi">2</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">        <span class="nb">window</span><span class="p">.</span><span class="nx">scrollTo</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="nx">startY</span> <span class="o">+</span> <span class="nx">diff</span> <span class="o">*</span> <span class="nx">ease</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">        <span class="k">if</span> <span class="p">(</span><span class="nx">progress</span> <span class="o">&lt;</span> <span class="mi">1</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">          <span class="nx">requestAnimationFrame</span><span class="p">(</span><span class="nx">step</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">        <span class="p">}</span>
</span></span><span class="line"><span class="cl">      <span class="p">}</span>
</span></span><span class="line"><span class="cl">      <span class="nx">requestAnimationFrame</span><span class="p">(</span><span class="nx">step</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">    <span class="p">}</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="c1">// 2. Automatischer Heiler für Leaflet-Icons und 10km-Sichtfeld-Zoom
</span></span></span><span class="line"><span class="cl">    <span class="nb">window</span><span class="p">.</span><span class="nx">repairLeafletMaps</span> <span class="o">=</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">      <span class="k">try</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">        <span class="c1">// Absolute URL zur Asset-Basis berechnen (funktioniert überall: localhost &amp; Nginx!)
</span></span></span><span class="line"><span class="cl">        <span class="kr">const</span> <span class="nx">icon2xUrl</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">URL</span><span class="p">(</span><span class="s1">&#39;vendor/images/marker-icon-2x.png&#39;</span><span class="p">,</span> <span class="nb">window</span><span class="p">.</span><span class="nx">location</span><span class="p">.</span><span class="nx">href</span><span class="p">).</span><span class="nx">href</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">        <span class="kr">const</span> <span class="nx">iconShadowUrl</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">URL</span><span class="p">(</span><span class="s1">&#39;vendor/images/marker-shadow.png&#39;</span><span class="p">,</span> <span class="nb">window</span><span class="p">.</span><span class="nx">location</span><span class="p">.</span><span class="nx">href</span><span class="p">).</span><span class="nx">href</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">        <span class="kr">const</span> <span class="nx">nestedIframes</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">querySelectorAll</span><span class="p">(</span><span class="s1">&#39;iframe&#39;</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">        <span class="nx">nestedIframes</span><span class="p">.</span><span class="nx">forEach</span><span class="p">(</span><span class="nx">f</span> <span class="p">=&gt;</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">          <span class="k">try</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">            <span class="kr">const</span> <span class="nx">w</span> <span class="o">=</span> <span class="nx">f</span><span class="p">.</span><span class="nx">contentWindow</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">            <span class="kr">const</span> <span class="nx">doc</span> <span class="o">=</span> <span class="nx">f</span><span class="p">.</span><span class="nx">contentDocument</span> <span class="o">||</span> <span class="p">(</span><span class="nx">w</span> <span class="o">&amp;&amp;</span> <span class="nx">w</span><span class="p">.</span><span class="nb">document</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">doc</span><span class="p">)</span> <span class="k">return</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">            <span class="c1">// A) Marker-Icons &amp; Pfade mit absolutem Pfad versorgen:
</span></span></span><span class="line"><span class="cl">            <span class="k">if</span> <span class="p">(</span><span class="nx">w</span> <span class="o">&amp;&amp;</span> <span class="nx">w</span><span class="p">.</span><span class="nx">L</span> <span class="o">&amp;&amp;</span> <span class="nx">w</span><span class="p">.</span><span class="nx">L</span><span class="p">.</span><span class="nx">Icon</span> <span class="o">&amp;&amp;</span> <span class="nx">w</span><span class="p">.</span><span class="nx">L</span><span class="p">.</span><span class="nx">Icon</span><span class="p">.</span><span class="nx">Default</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">              <span class="nx">w</span><span class="p">.</span><span class="nx">L</span><span class="p">.</span><span class="nx">Icon</span><span class="p">.</span><span class="nx">Default</span><span class="p">.</span><span class="nx">mergeOptions</span><span class="p">({</span>
</span></span><span class="line"><span class="cl">                <span class="nx">iconUrl</span><span class="o">:</span> <span class="nx">icon2xUrl</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">                <span class="nx">iconRetinaUrl</span><span class="o">:</span> <span class="nx">icon2xUrl</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">                <span class="nx">shadowUrl</span><span class="o">:</span> <span class="nx">iconShadowUrl</span>
</span></span><span class="line"><span class="cl">              <span class="p">});</span>
</span></span><span class="line"><span class="cl">            <span class="p">}</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">            <span class="c1">// B) Bereits im DOM erzeugte Marker-Bilder direkt überschreiben:
</span></span></span><span class="line"><span class="cl">            <span class="kr">const</span> <span class="nx">brokenMarkers</span> <span class="o">=</span> <span class="nx">doc</span><span class="p">.</span><span class="nx">querySelectorAll</span><span class="p">(</span><span class="s1">&#39;img.leaflet-marker-icon&#39;</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">            <span class="nx">brokenMarkers</span><span class="p">.</span><span class="nx">forEach</span><span class="p">(</span><span class="nx">img</span> <span class="p">=&gt;</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">              <span class="nx">img</span><span class="p">.</span><span class="nx">src</span> <span class="o">=</span> <span class="nx">icon2xUrl</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">            <span class="p">});</span>
</span></span><span class="line"><span class="cl">            <span class="kr">const</span> <span class="nx">brokenShadows</span> <span class="o">=</span> <span class="nx">doc</span><span class="p">.</span><span class="nx">querySelectorAll</span><span class="p">(</span><span class="s1">&#39;img.leaflet-shadow&#39;</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">            <span class="nx">brokenShadows</span><span class="p">.</span><span class="nx">forEach</span><span class="p">(</span><span class="nx">img</span> <span class="p">=&gt;</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">              <span class="nx">img</span><span class="p">.</span><span class="nx">src</span> <span class="o">=</span> <span class="nx">iconShadowUrl</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">            <span class="p">});</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">            <span class="c1">// C) Leaflet-Karte finden &amp; auf die perfekte 10-km-Übersicht einstellen:
</span></span></span><span class="line"><span class="cl">            <span class="k">if</span> <span class="p">(</span><span class="nx">w</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">              <span class="k">for</span> <span class="p">(</span><span class="kd">let</span> <span class="nx">k</span> <span class="k">in</span> <span class="nx">w</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">                <span class="k">if</span> <span class="p">(</span><span class="nx">k</span><span class="p">.</span><span class="nx">startsWith</span><span class="p">(</span><span class="s1">&#39;map_&#39;</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="nx">w</span><span class="p">[</span><span class="nx">k</span><span class="p">]</span> <span class="o">&amp;&amp;</span> <span class="k">typeof</span> <span class="nx">w</span><span class="p">[</span><span class="nx">k</span><span class="p">].</span><span class="nx">invalidateSize</span> <span class="o">===</span> <span class="s1">&#39;function&#39;</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">                  <span class="kr">const</span> <span class="nx">map</span> <span class="o">=</span> <span class="nx">w</span><span class="p">[</span><span class="nx">k</span><span class="p">];</span>
</span></span><span class="line"><span class="cl">                  <span class="nx">map</span><span class="p">.</span><span class="nx">invalidateSize</span><span class="p">();</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">                  <span class="c1">// Alle Layer nach Punkten absuchen
</span></span></span><span class="line"><span class="cl">                  <span class="kr">const</span> <span class="nx">pts</span> <span class="o">=</span> <span class="p">[];</span>
</span></span><span class="line"><span class="cl">                  <span class="nx">map</span><span class="p">.</span><span class="nx">eachLayer</span><span class="p">(</span><span class="nx">layer</span> <span class="p">=&gt;</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">                    <span class="k">if</span> <span class="p">(</span><span class="nx">layer</span><span class="p">.</span><span class="nx">getLatLng</span><span class="p">)</span> <span class="nx">pts</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">layer</span><span class="p">.</span><span class="nx">getLatLng</span><span class="p">());</span>
</span></span><span class="line"><span class="cl">                  <span class="p">});</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">                  <span class="k">if</span> <span class="p">(</span><span class="nx">pts</span><span class="p">.</span><span class="nx">length</span> <span class="o">&gt;</span> <span class="mi">0</span> <span class="o">&amp;&amp;</span> <span class="nx">w</span><span class="p">.</span><span class="nx">L</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">                    <span class="kr">const</span> <span class="nx">bounds</span> <span class="o">=</span> <span class="nx">w</span><span class="p">.</span><span class="nx">L</span><span class="p">.</span><span class="nx">latLngBounds</span><span class="p">(</span><span class="nx">pts</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">                    <span class="c1">// WICHTIG: maxZoom: 11 verhindert das Überzoomen!
</span></span></span><span class="line"><span class="cl">                    <span class="c1">// So bleibt das 10-km-Umland um die Windräder vollständig sichtbar.
</span></span></span><span class="line"><span class="cl">                    <span class="nx">map</span><span class="p">.</span><span class="nx">fitBounds</span><span class="p">(</span><span class="nx">bounds</span><span class="p">,</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">                      <span class="nx">padding</span><span class="o">:</span> <span class="p">[</span><span class="mi">80</span><span class="p">,</span> <span class="mi">80</span><span class="p">],</span>
</span></span><span class="line"><span class="cl">                      <span class="nx">maxZoom</span><span class="o">:</span> <span class="mi">11</span>
</span></span><span class="line"><span class="cl">                    <span class="p">});</span>
</span></span><span class="line"><span class="cl">                  <span class="p">}</span>
</span></span><span class="line"><span class="cl">                <span class="p">}</span>
</span></span><span class="line"><span class="cl">              <span class="p">}</span>
</span></span><span class="line"><span class="cl">            <span class="p">}</span>
</span></span><span class="line"><span class="cl">          <span class="p">}</span> <span class="k">catch</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span> <span class="p">}</span>
</span></span><span class="line"><span class="cl">        <span class="p">});</span>
</span></span><span class="line"><span class="cl">      <span class="p">}</span> <span class="k">catch</span> <span class="p">(</span><span class="nx">err</span><span class="p">)</span> <span class="p">{</span> <span class="p">}</span>
</span></span><span class="line"><span class="cl">    <span class="p">};</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="c1">// 3. Anker-Ansteuerung
</span></span></span><span class="line"><span class="cl">    <span class="nb">window</span><span class="p">.</span><span class="nx">goToAnchor</span> <span class="o">=</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">anchorId</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">      <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">anchorId</span> <span class="o">||</span> <span class="nx">anchorId</span> <span class="o">===</span> <span class="s1">&#39;top&#39;</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">        <span class="nx">smoothScrollToY</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">600</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">        <span class="k">return</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">      <span class="p">}</span>
</span></span><span class="line"><span class="cl">      <span class="kr">const</span> <span class="nx">cleanId</span> <span class="o">=</span> <span class="nx">anchorId</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/^#/</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">      <span class="kr">const</span> <span class="nx">el</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">getElementById</span><span class="p">(</span><span class="nx">cleanId</span><span class="p">)</span> <span class="o">||</span>
</span></span><span class="line"><span class="cl">        <span class="nb">document</span><span class="p">.</span><span class="nx">querySelector</span><span class="p">(</span><span class="s1">&#39;[name=&#34;&#39;</span> <span class="o">+</span> <span class="nx">cleanId</span> <span class="o">+</span> <span class="s1">&#39;&#34;]&#39;</span><span class="p">)</span> <span class="o">||</span>
</span></span><span class="line"><span class="cl">        <span class="nb">document</span><span class="p">.</span><span class="nx">querySelector</span><span class="p">(</span><span class="sb">`[data-toc-modified-id^=&#34;</span><span class="si">${</span><span class="nx">cleanId</span><span class="si">}</span><span class="sb">&#34;]`</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">      <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">        <span class="kr">const</span> <span class="nx">y</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">getBoundingClientRect</span><span class="p">().</span><span class="nx">top</span> <span class="o">+</span> <span class="p">(</span><span class="nb">window</span><span class="p">.</span><span class="nx">pageYOffset</span> <span class="o">||</span> <span class="nb">document</span><span class="p">.</span><span class="nx">documentElement</span><span class="p">.</span><span class="nx">scrollTop</span><span class="p">)</span> <span class="o">-</span> <span class="mi">25</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">        <span class="nx">smoothScrollToY</span><span class="p">(</span><span class="nx">y</span><span class="p">,</span> <span class="mi">700</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">        <span class="c1">// Beim Scrollen zur Kartenvorschau: Karte reparieren &amp; korrekt einpassen
</span></span></span><span class="line"><span class="cl">        <span class="k">if</span> <span class="p">(</span><span class="nx">cleanId</span> <span class="o">===</span> <span class="s1">&#39;Viewshed-preview&#39;</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">          <span class="nx">setTimeout</span><span class="p">(</span><span class="nb">window</span><span class="p">.</span><span class="nx">repairLeafletMaps</span><span class="p">,</span> <span class="mi">350</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">          <span class="nx">setTimeout</span><span class="p">(</span><span class="nb">window</span><span class="p">.</span><span class="nx">repairLeafletMaps</span><span class="p">,</span> <span class="mi">800</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">        <span class="p">}</span>
</span></span><span class="line"><span class="cl">      <span class="p">}</span>
</span></span><span class="line"><span class="cl">    <span class="p">};</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="c1">// TOC-Klicks abfangen (verhindert Sprünge)
</span></span></span><span class="line"><span class="cl">    <span class="nb">document</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="s1">&#39;click&#39;</span><span class="p">,</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">      <span class="kr">const</span> <span class="nx">link</span> <span class="o">=</span> <span class="nx">e</span><span class="p">.</span><span class="nx">target</span><span class="p">.</span><span class="nx">closest</span><span class="p">(</span><span class="s1">&#39;a[href^=&#34;#&#34;]&#39;</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">      <span class="k">if</span> <span class="p">(</span><span class="nx">link</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">        <span class="nx">e</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span>
</span></span><span class="line"><span class="cl">        <span class="nb">window</span><span class="p">.</span><span class="nx">goToAnchor</span><span class="p">(</span><span class="nx">link</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;href&#39;</span><span class="p">));</span>
</span></span><span class="line"><span class="cl">      <span class="p">}</span>
</span></span><span class="line"><span class="cl">    <span class="p">});</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="c1">// 4. Reveal Parent Verbindung
</span></span></span><span class="line"><span class="cl">    <span class="kd">function</span> <span class="nx">connectToReveal</span><span class="p">()</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">      <span class="k">try</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">        <span class="kr">const</span> <span class="nx">parentReveal</span> <span class="o">=</span> <span class="nb">window</span><span class="p">.</span><span class="nx">parent</span> <span class="o">&amp;&amp;</span> <span class="nb">window</span><span class="p">.</span><span class="nx">parent</span><span class="p">.</span><span class="nx">Reveal</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">        <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">parentReveal</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">          <span class="nx">setTimeout</span><span class="p">(</span><span class="nx">connectToReveal</span><span class="p">,</span> <span class="mi">150</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">          <span class="k">return</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">        <span class="p">}</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">        <span class="nx">parentReveal</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;slidechanged&#39;</span><span class="p">,</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">event</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">          <span class="k">if</span> <span class="p">(</span><span class="nx">event</span><span class="p">.</span><span class="nx">currentSlide</span> <span class="o">&amp;&amp;</span> <span class="nx">event</span><span class="p">.</span><span class="nx">currentSlide</span><span class="p">.</span><span class="nx">querySelector</span><span class="p">(</span><span class="s1">&#39;#viewshed-frame&#39;</span><span class="p">))</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">            <span class="nb">window</span><span class="p">.</span><span class="nx">goToAnchor</span><span class="p">(</span><span class="s1">&#39;top&#39;</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">          <span class="p">}</span>
</span></span><span class="line"><span class="cl">        <span class="p">});</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">        <span class="nx">parentReveal</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;fragmentshown&#39;</span><span class="p">,</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">event</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">          <span class="kr">const</span> <span class="nx">target</span> <span class="o">=</span> <span class="nx">event</span><span class="p">.</span><span class="nx">fragment</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;data-target&#39;</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">          <span class="k">if</span> <span class="p">(</span><span class="nx">target</span><span class="p">)</span> <span class="nb">window</span><span class="p">.</span><span class="nx">goToAnchor</span><span class="p">(</span><span class="nx">target</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">        <span class="p">});</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">        <span class="nx">parentReveal</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;fragmenthidden&#39;</span><span class="p">,</span> <span class="kd">function</span> <span class="p">(</span><span class="nx">event</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">          <span class="kr">const</span> <span class="nx">hasPrev</span> <span class="o">=</span> <span class="k">typeof</span> <span class="nx">parentReveal</span><span class="p">.</span><span class="nx">hasPreviousFragment</span> <span class="o">===</span> <span class="s1">&#39;function&#39;</span>
</span></span><span class="line"><span class="cl">            <span class="o">?</span> <span class="nx">parentReveal</span><span class="p">.</span><span class="nx">hasPreviousFragment</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">            <span class="o">:</span> <span class="kc">false</span><span class="p">;</span>
</span></span><span class="line"><span class="cl">          <span class="kr">const</span> <span class="nx">activeFragments</span> <span class="o">=</span> <span class="nb">window</span><span class="p">.</span><span class="nx">parent</span><span class="p">.</span><span class="nb">document</span><span class="p">.</span><span class="nx">querySelectorAll</span><span class="p">(</span><span class="s1">&#39;.fragment.visible&#39;</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">          <span class="k">if</span> <span class="p">(</span><span class="nx">hasPrev</span> <span class="o">&amp;&amp;</span> <span class="nx">activeFragments</span><span class="p">.</span><span class="nx">length</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">            <span class="kr">const</span> <span class="nx">lastActive</span> <span class="o">=</span> <span class="nx">activeFragments</span><span class="p">[</span><span class="nx">activeFragments</span><span class="p">.</span><span class="nx">length</span> <span class="o">-</span> <span class="mi">1</span><span class="p">];</span>
</span></span><span class="line"><span class="cl">            <span class="kr">const</span> <span class="nx">target</span> <span class="o">=</span> <span class="nx">lastActive</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;data-target&#39;</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">            <span class="k">if</span> <span class="p">(</span><span class="nx">target</span><span class="p">)</span> <span class="nb">window</span><span class="p">.</span><span class="nx">goToAnchor</span><span class="p">(</span><span class="nx">target</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">          <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">            <span class="nb">window</span><span class="p">.</span><span class="nx">goToAnchor</span><span class="p">(</span><span class="s1">&#39;top&#39;</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">          <span class="p">}</span>
</span></span><span class="line"><span class="cl">        <span class="p">});</span>
</span></span><span class="line"><span class="cl">      <span class="p">}</span> <span class="k">catch</span> <span class="p">(</span><span class="nx">err</span><span class="p">)</span> <span class="p">{</span> <span class="p">}</span>
</span></span><span class="line"><span class="cl">    <span class="p">}</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="nx">connectToReveal</span><span class="p">();</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="c1">// Initialer Fix beim Laden
</span></span></span><span class="line"><span class="cl">    <span class="nb">window</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="s1">&#39;load&#39;</span><span class="p">,</span> <span class="p">()</span> <span class="p">=&gt;</span> <span class="nx">setTimeout</span><span class="p">(</span><span class="nb">window</span><span class="p">.</span><span class="nx">repairLeafletMaps</span><span class="p">,</span> <span class="mi">1000</span><span class="p">));</span>
</span></span><span class="line"><span class="cl">  <span class="o">&lt;</span><span class="err">/script&gt;</span>
</span></span></code></pre></div><p>This block is placed just before the cloding <code>&lt;/body&gt;</code>-element. Then, whereever I needed the fragments to scroll to, I added anchors as html-ids:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">h1</span> <span class="na">id</span><span class="o">=</span><span class="s">&#34;Prepare-environment&#34;</span><span class="p">&gt;</span>Prepare environment<span class="p">&lt;</span><span class="nt">a</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;anchor-link&#34;</span> <span class="na">href</span><span class="o">=</span><span class="s">&#34;#Prepare-environment&#34;</span><span class="p">&gt;</span>¶<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;</span>
</span></span></code></pre></div></details>
<h4 id="2-gitlab-cicd-pdf-rendering-copyright-filtering--zenodo-upload">2. GitLab CI/CD: PDF Rendering, Copyright Filtering &amp; Zenodo Upload</h4>
<p>Every commit to the slide repository triggers a multi-stage GitLab CI/CD pipeline:</p>
<ol>
<li><strong>Build:</strong> Compiles the Jekyll/Reveal.js site into static HTML.</li>
<li><strong>Export PDF:</strong> Uses a headless Chromium / Decktape container to render a static 16:9 PDF backup (<code>presentation.pdf</code>) with all fragments expanded or collapsed as needed.</li>
<li><strong>Copyright / Asset Sanitization:</strong> Strips or replaces fair-use imagery (§ 51 UrhG citations used for classroom/examination teaching) before pushing the public replication package.</li>
<li><strong>Zenodo Archival:</strong> Manually triggered, it pushes the compiled PDF, the raw Markdown source files, and <code>cite.bib</code> metadata to Zenodo via its REST API. This creates a new versioned DOI.</li>
</ol>
<p>Copyrighted workflow:</p>
<ul>
<li><strong>Inline Images:</strong> Add <code>class=&quot;restricted&quot;</code> to the <code>&lt;img&gt;</code> tag:
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">img</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;restricted&#34;</span> <span class="na">src</span><span class="o">=</span><span class="s">&#34;images/restricted/figure.png&#34;</span> <span class="na">style</span><span class="o">=</span><span class="s">&#34;height: 420px;&#34;</span> <span class="na">alt</span><span class="o">=</span><span class="s">&#34;...&#34;</span><span class="p">&gt;</span>
</span></span></code></pre></div></li>
<li><strong>Background Images:</strong> Add <code>data-state=&quot;restricted&quot;</code> to the slide comment:
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl"><span class="cm">&lt;!-- .slide: data-background=&#34;images/restricted/photo.jpg&#34; data-state=&#34;restricted&#34; --&gt;</span>
</span></span></code></pre></div></li>
<li><strong>Asset Storage:</strong> Store copyrighted files in <code>images/restricted/</code> (automatically excluded from the Zenodo source code ZIP archive).</li>
</ul>
<details>
<summary><strong>.gitlab-ci.yml (Slide build, PDF export & Zenodo stage)</strong></summary>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="c"># This file is a template, and might need editing before it works on your project.</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="c"># Template project: https://gitlab.com/pages/jekyll</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="c"># Docs: https://docs.gitlab.com/ce/pages/</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="l">ruby:3.2</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">variables</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">JEKYLL_ENV</span><span class="p">:</span><span class="w"> </span><span class="l">production</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">before_script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">bundle install</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">stages</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">test</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="c"># - pages</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">build</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">deploy</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">export</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">export_redacted</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">test</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">stage</span><span class="p">:</span><span class="w"> </span><span class="l">test</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="l">bundle exec jekyll build -d test</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">artifacts</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">paths</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">test</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">except</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="l">main</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">build</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">stage</span><span class="p">:</span><span class="w"> </span><span class="l">build</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="l">bundle exec jekyll build -d _site --config _config.yml</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">artifacts</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">_site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">paths</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">_site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">only</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="l">main</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">deploy</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"> </span><span class="nt">stage</span><span class="p">:</span><span class="w"> </span><span class="l">deploy</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"> </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;registry.gitlab.vgiscience.org/tud_ifk/rsync-ssh-alpine:alpine3.17-r0-v4&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"> </span><span class="nt">before_script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"> </span>- <span class="l">eval $(ssh-agent -s)</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"> </span>- <span class="l">echo &#34;${SSH_PRIVKEY}&#34; | ssh-add -</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"> </span>- <span class="l">mkdir -p ~/.ssh</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"> </span>- <span class="s1">&#39;[[ -f /.dockerenv ]] &amp;&amp; echo -e &#34;Host *\n\tStrictHostKeyChecking no\n\tLogLevel QUIET\n\n&#34; &gt; ~/.ssh/config&#39;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"> </span><span class="nt">script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"> </span>- <span class="l">rsync -avu -zz --no-perms --omit-dir-times --chown=www-data:www-data --chmod=D775,F664 _site/ &#34;${PRODUCTION_DESTINATION}&#34;ad/reproducible-geoinformatics/</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w"> </span><span class="nt">only</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">   </span>- <span class="l">main</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="c"># only triggers on manual builds</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">export_pdf</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">stage</span><span class="p">:</span><span class="w"> </span><span class="l">export</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">image</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">astefanutti/decktape:latest</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">entrypoint</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">&#34;&#34;</span><span class="p">]</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">before_script</span><span class="p">:</span><span class="w"> </span><span class="p">[]</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">rules</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="nt">if</span><span class="p">:</span><span class="w"> </span><span class="l">$CI_COMMIT_BRANCH == &#34;main&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">when</span><span class="p">:</span><span class="w"> </span><span class="l">manual</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">allow_failure</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="p">|</span><span class="sd">
</span></span></span><span class="line"><span class="cl"><span class="sd">      SLIDE_PATH=$(grep &#39;^baseurl:&#39; _config.yml | cut -d &#39;:&#39; -f 2 | tr -d &#39; &#34;&#39;\&#39; | tr -d &#39;\r&#39;)
</span></span></span><span class="line"><span class="cl"><span class="sd">      node /decktape/decktape.js reveal &#34;https://kartographie.geo.tu-dresden.de${SLIDE_PATH}/&#34; presentation.pdf \
</span></span></span><span class="line"><span class="cl"><span class="sd">        --size 1920x1080 \
</span></span></span><span class="line"><span class="cl"><span class="sd">        --pause 5500 \
</span></span></span><span class="line"><span class="cl"><span class="sd">        --load-pause 3000 \
</span></span></span><span class="line"><span class="cl"><span class="sd">        --chrome-path chromium-browser \
</span></span></span><span class="line"><span class="cl"><span class="sd">        --chrome-arg=--no-sandbox \
</span></span></span><span class="line"><span class="cl"><span class="sd">        --chrome-arg=--blink-settings=preferredColorScheme=0 \
</span></span></span><span class="line"><span class="cl"><span class="sd">        --chrome-arg=--disable-features=WebContentsForceDark</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">artifacts</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;presentation-pdf-${CI_COMMIT_SHORT_SHA}&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">paths</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">presentation.pdf</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">expire_in</span><span class="p">:</span><span class="w"> </span><span class="m">3</span><span class="w"> </span><span class="l">months</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="c"># only triggers on manual builds</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">export_pdf_redacted</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">stage</span><span class="p">:</span><span class="w"> </span><span class="l">export_redacted</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">image</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">astefanutti/decktape:latest</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">entrypoint</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">&#34;&#34;</span><span class="p">]</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">before_script</span><span class="p">:</span><span class="w"> </span><span class="p">[]</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">rules</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="nt">if</span><span class="p">:</span><span class="w"> </span><span class="l">$CI_COMMIT_BRANCH == &#34;main&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">when</span><span class="p">:</span><span class="w"> </span><span class="l">manual</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">allow_failure</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="p">|</span><span class="sd">
</span></span></span><span class="line"><span class="cl"><span class="sd">      SLIDE_PATH=$(grep &#39;^baseurl:&#39; _config.yml | cut -d &#39;:&#39; -f 2 | tr -d &#39; &#34;&#39;\&#39; | tr -d &#39;\r&#39;)
</span></span></span><span class="line"><span class="cl"><span class="sd">      node /decktape/decktape.js reveal &#34;https://kartographie.geo.tu-dresden.de${SLIDE_PATH}//?redact=true&#34; presentation.pdf \
</span></span></span><span class="line"><span class="cl"><span class="sd">        --size 1920x1080 \
</span></span></span><span class="line"><span class="cl"><span class="sd">        --pause 5500 \
</span></span></span><span class="line"><span class="cl"><span class="sd">        --load-pause 3000 \
</span></span></span><span class="line"><span class="cl"><span class="sd">        --chrome-path chromium-browser \
</span></span></span><span class="line"><span class="cl"><span class="sd">        --chrome-arg=--no-sandbox \
</span></span></span><span class="line"><span class="cl"><span class="sd">        --chrome-arg=--blink-settings=preferredColorScheme=0 \
</span></span></span><span class="line"><span class="cl"><span class="sd">        --chrome-arg=--disable-features=WebContentsForceDark</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">artifacts</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;presentation-pdf-${CI_COMMIT_SHORT_SHA}&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">paths</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">presentation.pdf</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">expire_in</span><span class="p">:</span><span class="w"> </span><span class="m">3</span><span class="w"> </span><span class="l">months</span><span class="w">
</span></span></span></code></pre></div></details>]]></content></item><item><title>HaCLAthon Retrospective at the IOER Conference</title><link>https://links.alexanderdunkel.com/posts/2026-09-24-haclathon-retrospective/</link><pubDate>Thu, 24 Sep 2026 10:00:00 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2026-09-24-haclathon-retrospective/</guid><description>&lt;p&gt;Yesterday, the &lt;strong&gt;Sustainability Transformation HaCLAthon&lt;/strong&gt; reached its primary milestone at the 4th IOER Conference “Space &amp;amp; Transformation”. When we &lt;a href="https://links.alexanderdunkel.com/posts/2026-05-07-haclathon/"&gt;announced the experimental format back in May&lt;/a&gt;, I half expected it to remain a niche topic tucked away in an afternoon technical workshop track.&lt;/p&gt;
&lt;p&gt;Instead, the organizers placed our session quite prominently in the &lt;em&gt;Großer Saal&lt;/em&gt; with no parallel sessions. Speaking to a packed room showed me that the broader research community is indeed feeling the friction of traditional academic publishing.&lt;/p&gt;</description><content type="html"><![CDATA[<p>Yesterday, the <strong>Sustainability Transformation HaCLAthon</strong> reached its primary milestone at the 4th IOER Conference “Space &amp; Transformation”. When we <a href="/posts/2026-05-07-haclathon/">announced the experimental format back in May</a>, I half expected it to remain a  niche topic tucked away in an afternoon technical workshop track.</p>
<p>Instead, the organizers placed our session quite prominently in the <em>Großer Saal</em> with no parallel sessions. Speaking to a packed room showed me that the broader research community is indeed feeling the friction of traditional academic publishing.</p>
<p>
  <img src="/imgs/2026-09-23_haclathon_presentation.webp" alt="Alexander Dunkel presenting the HaCLAthon in the Großer Saal">

<em>Presenting the HaCLAthon in the Großer Saal. Photo: Caspar Kleiner.</em></p>
<h2 id="drowning-in-data-and-dependencies-starving-for-synthesis">Drowning in Data and Dependencies, Starving for Synthesis</h2>
<p>In my opening talk I tried to connect several recurring threads from the conference: trust, traceability, and epistemic fatigue (the mental exhaustion that comes from having to constantly resolve discrepancies). Science has always progressed by incremental improvement. And by standing on the shoulders of giants. But, in modern spatial data science, we often drown beneath software dependencies and data silos. Getting to the &ldquo;status quo&rdquo; to test a single hypothesis has become so cumbersome that momentum frequently stalls before actual discovery begins.</p>
<p>
  <img src="/imgs/2026-09-23_haclathon_title_slide.webp" alt="Title Slide: HaCLAthon Presentation">

<em>Slides: <a href="https://slides.ad.ioer.info/haclathon-presentation/">https://slides.ad.ioer.info/haclathon-presentation/</a></em></p>
<p>Traditional conference proceedings channel findings into static, unexecutable paper PDFs. I communicated our living Jupyter Book not as a developer novelty, but as a methodological necessity. Ou core ontribution was to make this more accessible to a broader audience: Helping non-technical people through various contribution channels and providing several parallel accessibility options, like Jupyter4NFDI, or Google Colab.</p>
<p>Using <strong>Git as an instrument of synthesis</strong>, the HaCLAthon documented the entire knowledge production process from day one:</p>
<ul>
<li><strong>324 commits</strong> and <strong>60 continuous releases</strong> (v0.1.0 to v0.24.0) deployed via automated CI/CD.</li>
<li><strong>9 contributors</strong> spanning six distinct chapters, ranging from 3D building stock metrics and local climate regulation to privacy-safe landscape attention and GTFS transit frequency.</li>
<li>A lean repository footprint of <strong>99 MB</strong>, compiling over <strong>2.1 GB</strong> of tested cloud artifacts.</li>
</ul>
<p>Taking the time to explain these mechanics slowly and deliberately resonated well with the audience (though it left us with a tight 10-minute window for the contributors).</p>
<h2 id="contributors-in-the-spotlight">Contributors in the Spotlight</h2>
<p>Hearing the authors present their live chapters directly from the deployed book was the highlight of the session:</p>
<ul>
<li><strong>Oliver Harig</strong> introduced his automated inner-zone delineation workflow (§ 34 BauGB) with the open-source QGIS IBTool plugin, demonstrating how desktop GIS tutorials can live seamlessly alongside Python notebooks.</li>
<li><strong>Gongmingyue Tang</strong> walked the audience through her <a href="https://hack.conference.ioer.info/storymap/index.html">interactive Heron StoryMap</a>. Her integration of GBIF biodiversity records, canopy height data, and scrollytelling (and following code conventions!) is a showcase of how spatial data storytelling can be turned into a component blueprint with the help of Jupyter, to be reused and transferred easily to other contexts.</li>
</ul>
<p>
  <img src="/imgs/2026-09-23_heronstorymap.webp" alt="Heron Storymap">

<em>The final output: The Heron Storymap. It is a standalone HTML file, but fully reproducible (and produced) using the code shared in the corresponding chapter</em>.</p>
<p>We handed out certificates of participation to recognize their courage to experiment with us in public.</p>
<h2 id="what-next">What next?</h2>
<p>After the session, colleagues asked whether we plan to repeat the format. Not 1:1. The &ldquo;human compiler&rdquo; role required considerable behind-the-scenes facilitation.</p>
<p>However, the experience provided a future development direction. Just as we built <a href="https://cartolab.fdz.ioer.info/">Carto-Lab Docker</a> to guarantee containerized spatial reproducibility, we can now focus on developing reusable components that lower the barrier for <em>spatial communication</em>. Tango’s modular StoryMap template is a great example of an asset that future projects can adapt out of the box.</p>
<p>We are now entering the final polish phase. In October, we will test execution suites across Jupyter4NFDI and Colab, finalize formal CRediT statements, and freeze the repository into an immutable archive bundle with a permanent DOI (v1.0.0).</p>
]]></content></item><item><title>CSS Workshop Dresden: Measuring Social Cohesion with Geo-Social Data</title><link>https://links.alexanderdunkel.com/posts/2026-09-22-css-slides/</link><pubDate>Fri, 18 Sep 2026 10:00:00 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2026-09-22-css-slides/</guid><description>&lt;p&gt;I gave a presentation at the internal workshop &amp;ldquo;Computational Social Science – Spatial Approaches and Perspectives&amp;rdquo;, organized by Diego Rybski (Urban Complexity group at the IOER) and Eckehard Olbrich (MPI-MIS Leipzig). The workshop brought together researchers working on complex systems, physics-based modeling, and network science.&lt;/p&gt;
&lt;p&gt;My presentation was titled &lt;strong&gt;&amp;ldquo;Responsible Geo-Social Data for Measuring Social Cohesion&amp;rdquo;&lt;/strong&gt;. With my formal habilitation lectures scheduled for mid-October at TU Dresden, I used this 30-minute slot as a trial run to test my narrative, argumentation, and slide structure.&lt;/p&gt;</description><content type="html"><![CDATA[<p>I gave a presentation at the internal workshop &ldquo;Computational Social Science – Spatial Approaches and Perspectives&rdquo;, organized by Diego Rybski (Urban Complexity group at the IOER) and Eckehard Olbrich (MPI-MIS Leipzig). The workshop brought together researchers working on complex systems, physics-based modeling, and network science.</p>
<p>My presentation was titled <strong>&ldquo;Responsible Geo-Social Data for Measuring Social Cohesion&rdquo;</strong>. With my formal habilitation lectures scheduled for mid-October at TU Dresden, I used this 30-minute slot as a trial run to test my narrative, argumentation, and slide structure.</p>
<p>
  <img src="/imgs/2026-09-22_css.webp" alt="Operationalizing Neighborhood Social Cohesion: Three Pillars">
</p>
<ul>
<li>Slides: <a href="https://slides.ad.ioer.info/css_social_cohesion/">https://slides.ad.ioer.info/css_social_cohesion/</a></li>
</ul>
<h2 id="from-landscape-to-neighborhood-social-cohesion-nsc">From Landscape to Neighborhood Social Cohesion (NSC)</h2>
<p>Based on the infrastructure ideas I presented at Data4Society in June, I adapted the framework toward mapping neighborhood social cohesion. I combined our privacy-preserving HyperLogLog (HLL) baseline pipeline with recent empirical work. This included Ridwan Wahed&rsquo;s study on zero-shot LLM classification of Big Five personality traits across Germany, which we recently presented at EuroCarto 2026. I also integrated Jakob Napiontek&rsquo;s work on synthetic population modeling (SynPop-DE) to illustrate how generative models can provide safe testing environments for spatial policy interventions.</p>
<p>The core of the presentation focused on three pillars. Using our 1.6-billion-record historical archive to normalize local signals against global platform trends (1), defining semantic criteria to classify cohesion indicators from text without personal identifiers (2), and establishing ground-truth validation by linking spatial aggregates to the German Socio-Economic Panel (SOEP) (3).</p>
<h2 id="reflection">Reflection</h2>
<p>Presenting this work to a computational social science (CSS) audience was an interesting experience. Participants responded with curiosity. There was clear interest in the visualizations and the underlying data pipeline. At the same time, the discussions highlighted the distinct perspectives of our disciplines. Coming from landscape architecture and environmental planning, my work focuses on physical places, subjective human experience, and the collective attribution of meaning and values. My primary concern is how spatial interventions affect communities on the ground and how collective values can be considered in environmental planning. Complex systems science approaches the problem from a different, complementary angle. CSS abstracts spatial structures to identify generalized mechanisms, scaling behaviors, and dynamical principles across systems. We were examining similar digital signals, but through two different lenses. This resulted in a bit of a gap in understanding, or let&rsquo;s say a gap in communication on my side.</p>
<p>One participant raised a question about where empirical measurements of social cohesion currently are in my work and whether this direction remains primarily planned. It was a good point that I will face again during my habilitation defense. My past published papers established the methodological base, the privacy guarantees, and the cross-platform baseline. Applying these components to neighborhood cohesion is the objective of our current DFG proposal GEO-S(O)IS. The building blocks exist, but the sociological application is work in progress.</p>
<p>During the discussion, a colleague also pointed out the Research Institute Social Cohesion (FGZ / RISC), a major multi-institution initiative funded by the BMBF. The initiative had not been on my radar. Looking into their data infrastructure after the workshop, it became clear why: RISC focuses primarily on national survey panels and elite political discourse on social media, such as monitoring institutional accounts for polarization. The fine-grained spatial real world data we collect of everyday neighborhoods and spontaneous opportunistic behavior are largely absent from their work. This confirmed that our focus on granular, privacy-preserving geo-social data addresses a gap that mainstream sociological infrastructures currently do not cover.</p>
]]></content></item><item><title>Data4Society Conference (Berlin)</title><link>https://links.alexanderdunkel.com/posts/2026-06-22_data4society/</link><pubDate>Sat, 27 Jun 2026 10:00:00 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2026-06-22_data4society/</guid><description>&lt;p&gt;Earlier this week, I attended the &lt;strong&gt;Data4Society&lt;/strong&gt; conference in Berlin, hosted by KonsortSWD. The event brought together researchers and infrastructure providers to discuss the future of social, behavioral, and economic data. Platform data was a central theme throughout the conference and was also highlighted in the closing remarks by Christof Wolf (President of GESIS) as one of the most important future data sources for the social sciences.&lt;/p&gt;
&lt;h2 id="the-responsible-geosocial-data-pipeline"&gt;The Responsible Geosocial Data Pipeline&lt;/h2&gt;
&lt;p&gt;I contributed a presentation titled &lt;strong&gt;&amp;ldquo;Responsible Geosocial Data Pipeline: A Privacy-by-Design Approach for Spatial Development.&amp;rdquo;&lt;/strong&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p>Earlier this week, I attended the <strong>Data4Society</strong> conference in Berlin, hosted by KonsortSWD. The event brought together researchers and infrastructure providers to discuss the future of social, behavioral, and economic data. Platform data was a central theme throughout the conference and was also highlighted in the closing remarks by Christof Wolf (President of GESIS) as one of the most important future data sources for the social sciences.</p>
<h2 id="the-responsible-geosocial-data-pipeline">The Responsible Geosocial Data Pipeline</h2>
<p>I contributed a presentation titled <strong>&ldquo;Responsible Geosocial Data Pipeline: A Privacy-by-Design Approach for Spatial Development.&rdquo;</strong></p>
<p>My goal was to present the infrastructural concept that emerged from my recent habilitation (submitted! Not yet done..). Integrating user-generated geosocial data into spatial planning offers an important opportunity to understand collective perception. However, the processing of this data needs challenging trade-off adjustments between scientific insight and data protection.</p>
<p>
  <img src="/imgs/2026-06-27_data4society.webp" alt="Title Slide: Responsible Geosocial Data Pipeline">
</p>
<ul>
<li>Slides: <a href="https://slides.ad.ioer.info/data4society_responsible_gsd/">https://slides.ad.ioer.info/data4society_responsible_gsd/</a></li>
</ul>
<p>Instead of storing raw, personally identifiable information (PII), our pipeline uses a probabilistic data structure called HyperLogLog (HLL). It immediately transforms raw data into anonymous statistical abstractions (sketches) upon ingestion. This prevents re-identification while still allowing us to perform quatitative estimations and intersection analyses (e.g., distinguishing tourists from locals, as demonstrated in our <a href="/posts/2026-01-15-digital-landscape-traces/">recent mapping of Germany</a>).</p>
<h2 id="notes">Notes</h2>
<p>The discussions following the presentation and throughout the conference were very insightful. They confirmed the  need for robust data infrastructures. A few key takeaways I found particularly interesting:</p>
<ul>
<li>
<p>While the EU&rsquo;s Digital Services Act (DSA) theoretically grants researchers access to platform data, a presentation by <a href="https://www.weizenbaum-institut.de/portrait/p/lukas-seiling/#page=1&amp;tags=science_publications&amp;sort=date">LK Seiling</a> highlighted that the DSA currently acts more like a toothless tiger. Official access routes are hampered by platform delays and restrictions. This reinforces the need for independent curated research data infrastructures that can secure and provide access to already existing, public datasets before they disappear.</p>
</li>
<li>
<p>I had great discussions with colleagues from GESIS (Katrin Weller), who recently launched a started an infrastructure project deveopment (RIDLOP) to store and provide secure access to sensitive raw platform data within Trusted Research Environments (TREs). <a href="https://www.gesis.org/forschung/projekte-und-austausch/drittmittelprojekte/ridlop-projektseite">RIDLOP</a> focuses on secure access to raw data for complex individual analyses. This is the main difference to our approach. By abstracting data early, we aim to provide anonymous, global baseline metrics. Without these baseline metrics, it is not possible normalize local phenomena or reliably measure complex concepts in individual and local casestudies.</p>
</li>
<li>
<p>A highlight was a session by <a href="https://www.energiewende-gesellschaft.de/expertinnen/expertinnen-detail/jakob-napiontek">Jakob Napiontek</a> on AI-supported data synthesis. He demonstrated how Generative Adversarial Networks (GANs) can be used to create <a href="https://ideas.repec.org/p/osf/socarx/zha8v_v1.html">synthetic twins of sensitive population statistics</a>. The synthetic data imitates the statistical properties of the original dataset while guaranteeing anonymity. This approach elegantly avoids GDPR issues and is therefore very relevant for many other areas (just thinking of German health statistics and all the issues connected to its collection and sharing!).</p>
</li>
</ul>
]]></content></item><item><title>HaCLAthon &amp; Rethinking Scientific Conference Collaboration</title><link>https://links.alexanderdunkel.com/posts/2026-05-07-haclathon/</link><pubDate>Thu, 07 May 2026 14:00:00 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2026-05-07-haclathon/</guid><description>&lt;p&gt;Traditional hackathons are often 24-hour marathons that produce impressive prototypes but rarely result in sustainable, citable scientific output. For the &lt;strong&gt;4th IOER Conference &amp;ldquo;Space &amp;amp; Transformation&amp;rdquo;&lt;/strong&gt; in 2026, we are testing a different approach, the &lt;strong&gt;HaCLAthon&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id="collaborative-long-term-asynchronous"&gt;Collaborative, Long-term, Asynchronous&lt;/h2&gt;
&lt;p&gt;The acronym stands for our core philosophy. We want to move away from the &amp;ldquo;sprint&amp;rdquo; and toward a &lt;strong&gt;C&lt;/strong&gt;ollaborative, &lt;strong&gt;L&lt;/strong&gt;ong-term, and &lt;strong&gt;A&lt;/strong&gt;synchronous data challenge. Instead of a single weekend, this format runs over five months, allowing interdisciplinary teams to co-produce a living publication incrementally.&lt;/p&gt;</description><content type="html"><![CDATA[<p>Traditional hackathons are often 24-hour marathons that produce impressive prototypes but rarely result in sustainable, citable scientific output. For the <strong>4th IOER Conference &ldquo;Space &amp; Transformation&rdquo;</strong> in 2026, we are testing a different approach, the <strong>HaCLAthon</strong>.</p>
<h2 id="collaborative-long-term-asynchronous">Collaborative, Long-term, Asynchronous</h2>
<p>The acronym stands for our core philosophy. We want to move away from the &ldquo;sprint&rdquo; and toward a <strong>C</strong>ollaborative, <strong>L</strong>ong-term, and <strong>A</strong>synchronous data challenge. Instead of a single weekend, this format runs over five months, allowing interdisciplinary teams to co-produce a living publication incrementally.</p>
<p>This was an internal presentation I just held to present the concept of the HaCLAthon to colleagues.</p>
<p>
  <img src="/imgs/2026-05-07_haclathon_slides.webp" alt="HaCLAthon Title Slide">
</p>
<ul>
<li>Slides: <a href="https://slides.ad.ioer.info/haclathon/">https://slides.ad.ioer.info/haclathon/</a></li>
</ul>
<h2 id="infrastructure">Infrastructure</h2>
<p>As a Research Data Centre (FDZ), our challenge was to build a system that is technically rigorous enough for reproducible science, yet accessible enough for domain experts who don&rsquo;t write code. We settled on a &ldquo;Dual-Path&rdquo; architecture:</p>
<ol>
<li><strong>For Developers:</strong> A standard Git-based workflow. Participants fork the repository and work directly in Jupyter Notebooks, utilizing the Jupyter4NFDI cloud or our local Carto-Lab Docker environment to ensure 100% computational reproducibility.</li>
<li><strong>For Writers:</strong> A browser-based Workflow Editor (DecapCMS). This allows non-technical contributors to write data stories and conceptual chapters in Markdown without ever touching a terminal.</li>
</ol>
<h2 id="secure-and-sovereign">Secure and sovereign</h2>
<p>Because scientific attribution and data privacy are paramount, we didn&rsquo;t want to rely on third-party authentication black boxes. We implemented a self-hosted, Go-based OAuth broker to handle the GitHub handshake. This ensures that:</p>
<ul>
<li>Every edit is tied to a verified GitHub ID for the final DOI publication.</li>
<li>The handshake happens on our institutional servers, keeping us DSGVO-compliant.</li>
<li>Edits from the browser don&rsquo;t go live instantly; they enter an editorial Kanban board as Pull Requests for our team to review.</li>
</ul>
<h2 id="path-forward">Path forward</h2>
<p>The goal of the HaCLAthon is to move beyond the static conference PDF. The final result will be a citable Jupyter Book, a digital artifact containing interactive maps, executable code, and collaborative narratives that represent the collective knowledge of the conference format.</p>
<p>If you are interested in the technical setup or want to participate, you can find the live book here:
<a href="https://hack.conference.ioer.info/">https://hack.conference.ioer.info/</a></p>
<p>
  <img src="/imgs/2026-05-07_haclathon.webp" alt="HaCLAthon Landing Page">
</p>
]]></content></item><item><title>GitLab Deploy Keys instead of Access Tokens, and Deploy Tokens</title><link>https://links.alexanderdunkel.com/posts/2026-04-19_gitlab_deploy_keys/</link><pubDate>Sun, 19 Apr 2026 00:07:35 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2026-04-19_gitlab_deploy_keys/</guid><description>&lt;p&gt;&lt;strong&gt;tl;dr&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th style="text-align: left"&gt;What&lt;/th&gt;
&lt;th style="text-align: left"&gt;Protocol&lt;/th&gt;
&lt;th style="text-align: left"&gt;Use Case&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;strong&gt;Deploy Key&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;SSH&lt;/td&gt;
&lt;td style="text-align: left"&gt;Git operations (&lt;code&gt;clone&lt;/code&gt;, &lt;code&gt;pull&lt;/code&gt;, &lt;code&gt;push&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;strong&gt;Deploy Token&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;HTTP&lt;/td&gt;
&lt;td style="text-align: left"&gt;Docker / Registry (&lt;code&gt;docker login&lt;/code&gt;, &lt;code&gt;pull&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="text-align: left"&gt;&lt;strong&gt;CI Job Token&lt;/strong&gt;&lt;/td&gt;
&lt;td style="text-align: left"&gt;Runner HTTP&lt;/td&gt;
&lt;td style="text-align: left"&gt;Cross-project pipeline image sharing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h1 id="deploy-keys"&gt;Deploy Keys&lt;/h1&gt;
&lt;p&gt;I manage a large number of Git repositories across many nested Linux user environments running in rootless namespaces and container-like setups. Access to these environments is done via (e.g.) &lt;code&gt;sudo machinectl shell codimd@&lt;/code&gt; under restricted user contexts, which makes standard SSH workflows such as SSH agent forwarding unreliable or not possible at all.&lt;/p&gt;</description><content type="html"><![CDATA[<p><strong>tl;dr</strong></p>
<table>
	<thead>
			<tr>
					<th style="text-align: left">What</th>
					<th style="text-align: left">Protocol</th>
					<th style="text-align: left">Use Case</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td style="text-align: left"><strong>Deploy Key</strong></td>
					<td style="text-align: left">SSH</td>
					<td style="text-align: left">Git operations (<code>clone</code>, <code>pull</code>, <code>push</code>)</td>
			</tr>
			<tr>
					<td style="text-align: left"><strong>Deploy Token</strong></td>
					<td style="text-align: left">HTTP</td>
					<td style="text-align: left">Docker / Registry (<code>docker login</code>, <code>pull</code>)</td>
			</tr>
			<tr>
					<td style="text-align: left"><strong>CI Job Token</strong></td>
					<td style="text-align: left">Runner HTTP</td>
					<td style="text-align: left">Cross-project pipeline image sharing</td>
			</tr>
	</tbody>
</table>
<h1 id="deploy-keys">Deploy Keys</h1>
<p>I manage a large number of Git repositories across many nested Linux user environments running in rootless namespaces and container-like setups. Access to these environments is done via (e.g.) <code>sudo machinectl shell codimd@</code> under restricted user contexts, which makes standard SSH workflows such as SSH agent forwarding unreliable or not possible at all.</p>
<p>As a result, maintaining access to Git remotes for frequent pushes becomes quite cumbersome. So far, I relied on personal access tokens hardcoded in HTTPS git origin URLs. I had to replace these tokens regularly because they would expire.</p>
<p>The solution for these contexts: <a href="https://docs.gitlab.com/user/project/deploy_keys/">GitLab Deploy Keys</a>. Unlike tokens, deploy keys are project-level SSH keys.</p>
<h2 id="1-generate-ssh-key">1. Generate SSH key</h2>
<p>Generate standard default keys (works automatically across all repos for this user):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh-keygen -t ed25519 -N <span class="s2">&#34;&#34;</span>
</span></span></code></pre></div><h2 id="2-show-public-key">2. Show public key</h2>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">cat ~/.ssh/id_ed25519.pub
</span></span></code></pre></div><h2 id="3-add-key-in-gitlab">3. Add key in GitLab</h2>
<p>Project → <strong>Settings</strong> → <strong>Repository</strong> → <strong>Deploy keys</strong></p>
<ul>
<li>Paste public key</li>
<li>Check: <strong>&ldquo;Write access allowed&rdquo;</strong></li>
<li>Click <strong>Add key</strong></li>
</ul>
<details><summary>Configure SSH (Custom port & Sudo-Git edge cases)</summary>
<h3 id="a-non-standard-ssh-port">A. Non-standard SSH Port</h3>
<p>If your GitLab SSH runs on a non-standard port (e.g. <code>11111</code>), configure it in <code>~/.ssh/config</code> so you can keep standard Git remote URLs:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">cat <span class="s">&lt;&lt; &#39;EOF&#39; &gt;&gt; ~/.ssh/config
</span></span></span><span class="line"><span class="cl"><span class="s">Host gitlab.example.com
</span></span></span><span class="line"><span class="cl"><span class="s">    Port 11111
</span></span></span><span class="line"><span class="cl"><span class="s">    User git
</span></span></span><span class="line"><span class="cl"><span class="s">    IdentityFile ~/.ssh/id_ed25519
</span></span></span><span class="line"><span class="cl"><span class="s">    IdentitiesOnly yes
</span></span></span><span class="line"><span class="cl"><span class="s">EOF</span>
</span></span><span class="line"><span class="cl">chmod <span class="m">600</span> ~/.ssh/config
</span></span></code></pre></div><h3 id="b-if-git-runs-as-sudo-eg-container--mixed-uid-ownership">B. If Git runs as <code>sudo</code> (e.g., container / mixed UID ownership)</h3>
<p>If your user aliases <code>git</code> to <code>sudo git</code> due to rootless/container file mounts, SSH will look in <code>/root/.ssh/</code>. Mirror the key and config to root:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo cp -r ~/.ssh /root/ <span class="o">&amp;&amp;</span> sudo chown -R root:root /root/.ssh
</span></span></code></pre></div></details>
<h2 id="4-switch-repo-remote-to-ssh">4. Switch repo remote to SSH</h2>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git remote set-url origin git@gitlab.example.com:&lt;group&gt;/&lt;repo&gt;.git
</span></span></code></pre></div><h2 id="5-verify-and-push">5. Verify and Push</h2>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># Quick connection check (should return: Welcome to GitLab, @...)</span>
</span></span><span class="line"><span class="cl">ssh -T git@gitlab.example.com
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Push</span>
</span></span><span class="line"><span class="cl">git push
</span></span></code></pre></div><hr>
<h2 id="reusing-an-existing-deploy-key-in-a-new-repository">Reusing an Existing Deploy Key in a New Repository</h2>
<p>GitLab rejects pasting the same public key twice (&ldquo;Fingerprint has already been taken&rdquo;). To reuse an existing server key:</p>
<h3 id="1-find-the-fingerprint-of-the-active-key">1. Find the Fingerprint of the Active Key</h3>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh-keygen -lf ~/.ssh/id_ed25519.pub
</span></span></code></pre></div><h3 id="2-enable-the-key-in-the-new-project">2. Enable the Key in the New Project</h3>
<p>Do not click &ldquo;Add new key&rdquo;.</p>
<ol>
<li>Go to: <strong>Settings</strong> → <strong>Repository</strong> → <strong>Deploy keys</strong>.</li>
<li>Switch to the tab: <strong>Privately accessible deploy keys</strong>.</li>
<li>Search for your SHA256 fingerprint and click <strong>Enable</strong>.</li>
</ol>
<h3 id="3-grant-write-access">3. Grant Write Access</h3>
<p>By default, reused keys are restricted to read-only.</p>
<ol>
<li>Scroll up to <strong>Enabled deploy keys</strong>.</li>
<li>Click the <strong>Pencil icon (Edit)</strong> next to the key.</li>
<li>Check: <strong>Grant write permissions to this key</strong> → <strong>Save changes</strong>.</li>
</ol>
<hr>
<h1 id="deploy-tokens">Deploy Tokens</h1>
<p>A <strong>Git Deploy Key (SSH)</strong> only works for Git operations. For the <strong>Docker Registry</strong>, HTTP-based authentication is needed.</p>
<p>The easiest, most secure way to do this for a server is a <strong>GitLab Deploy Token</strong>.</p>
<h2 id="1-create-a-deploy-token-in-gitlab">1. Create a Deploy Token in GitLab</h2>
<ol>
<li>Go to your GitLab project: <strong>Settings</strong> → <strong>Repository</strong>.</li>
<li>Expand the <strong>Deploy tokens</strong> section.</li>
<li>Click <strong>Add token</strong>:
<ul>
<li><strong>Name:</strong> <code>Server-Pull-Token</code></li>
<li><strong>Username:</strong> (Leave blank, it will auto-generate)</li>
<li><strong>Scopes:</strong> Check <strong><code>read_registry</code></strong> only.</li>
</ul>
</li>
<li>Click <strong>Create deploy token</strong> and copy the username/password immediately.</li>
</ol>
<h2 id="2-log-in-on-your-vm-and-use-it">2. Log in on your VM and use it</h2>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;PASSWORD&#34;</span> <span class="p">|</span> docker login registry.example.com -u <span class="s2">&#34;USERNAME&#34;</span> --password-stdin
</span></span></code></pre></div><p>Credentials are saved in <code>~/.docker/config.json</code>. Your Compose commands now work seamlessly:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">docker compose pull
</span></span><span class="line"><span class="cl">docker compose up -d
</span></span></code></pre></div><hr>
<h1 id="cicd-job-tokens-cross-project-registry-access">CI/CD Job Tokens (Cross-Project Registry Access)</h1>
<p>While <strong>Deploy Keys</strong> handle Git operations and <strong>Deploy Tokens</strong> handle server Docker pulls, GitLab isolates pipelines across repositories by default. If a pipeline in <strong>Project B</strong> tries to pull an image from <strong>Project A</strong>&rsquo;s Container Registry, it will fail.</p>
<h2 id="1-add-consuming-project-to-allowlist-in-project-a">1. Add Consuming Project to Allowlist (In Project A)</h2>
<ol>
<li>Go to: <strong>Settings</strong> → <strong>CI/CD</strong>.</li>
<li>Expand <strong>Job token permissions</strong> (or <strong>CI/CD job token allowlist</strong>).</li>
<li>Click <strong>Add project</strong> → Enter target project path (<code>group/project-b</code>).</li>
</ol>
<h2 id="2-pulling-the-image-in-the-cicd-pipeline-in-project-b">2. Pulling the Image in the CI/CD Pipeline (In Project B)</h2>
<p>In <strong>Project B</strong>’s <code>.gitlab-ci.yml</code>, authenticate directly using the ephemeral token:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="nt">stages</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">pull-and-run</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">job</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">stage</span><span class="p">:</span><span class="w"> </span><span class="l">pull-and-run</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="l">docker:latest</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">services</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="l">docker:dind</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">before_script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="l">echo &#34;$CI_JOB_TOKEN&#34; | docker login &#34;$CI_REGISTRY&#34; -u &#34;$CI_REGISTRY_USER&#34; --password-stdin</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="l">docker pull registry.example.com/group/project-a/my-image:latest</span><span class="w">
</span></span></span></code></pre></div>]]></content></item><item><title>Accessing information silos with playwright</title><link>https://links.alexanderdunkel.com/posts/2026-03-05_playwright_silo_scripting/</link><pubDate>Thu, 05 Mar 2026 19:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2026-03-05_playwright_silo_scripting/</guid><description>&lt;p&gt;Social discourse is increasingly siloed behind paywalls, login barriers, and other difficult-to-access restrictions. Conversely, there is a growing need to summarize communication patterns to understand and monitor social cohesion and use this knowledge to protect and strengthen democracy.&lt;/p&gt;
&lt;p&gt;This was a test to expand the knowledge beyond the big networks (Reddit, Facebook, Instagram), to also include smaller boards of communication and discourse on particular topics.&lt;/p&gt;
&lt;p&gt;I wanted to archive a long discussion thread from photovoltaikforum.com for a test LLM analysis. The thread contains more than 1000 pages and cannot be easily exported. Simple HTTP scraping does not work because the forum requires a fully rendered browser session.&lt;/p&gt;</description><content type="html"><![CDATA[<p>Social discourse is increasingly siloed behind paywalls, login barriers, and other difficult-to-access restrictions. Conversely, there is a growing need to summarize communication patterns to understand and monitor social cohesion and use this knowledge to protect and strengthen democracy.</p>
<p>This was a test to expand the knowledge beyond the big networks (Reddit, Facebook, Instagram), to also include smaller boards of communication and discourse on particular topics.</p>
<p>I wanted to archive a long discussion thread from photovoltaikforum.com for a test LLM analysis. The thread contains more than 1000 pages and cannot be easily exported. Simple HTTP scraping does not work because the forum requires a fully rendered browser session.</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path d="M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"/></svg>
	</div>
	<div class="admonition-content"><p>Disclaimer: This is a test, and the code is provided without warranty. I do not intend to query this particular board. Consider this a five-minute exercise to test Playwright. The target page can be adapted to any other page, blog, or forum.</p>
</div>
</aside> 
<p>The solution was to use Playwright with Python.</p>
<p>The script opens the thread in a headless browser, iterates through all pages and extracts:</p>
<ul>
<li>author</li>
<li>timestamp</li>
<li>post content</li>
<li>page number</li>
</ul>
<p>The results are streamed into a JSON file so progress is not lost if the script stops.</p>
<h1 id="tldr">TL;DR</h1>
<p>Here is the script:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">asyncio</span>
</span></span><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">json</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">pathlib</span> <span class="kn">import</span> <span class="n">Path</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">playwright.async_api</span> <span class="kn">import</span> <span class="n">async_playwright</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">THREAD_URL</span> <span class="o">=</span> <span class="s2">&#34;https://www.photovoltaikforum.com/thread/241171-marstek-venus-c-e-ac-speicher-5-12-kwh-erfahrungen-installation-leistung-im-allt/&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">OUTPUT_MD</span> <span class="o">=</span> <span class="s2">&#34;thread.md&#34;</span>
</span></span><span class="line"><span class="cl"><span class="n">OUTPUT_JSON</span> <span class="o">=</span> <span class="s2">&#34;thread.json&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">OUTPUT_JSON</span> <span class="o">=</span> <span class="s2">&#34;thread.json&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">async</span> <span class="k">def</span> <span class="nf">scrape_thread</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="k">async</span> <span class="k">with</span> <span class="n">async_playwright</span><span class="p">()</span> <span class="k">as</span> <span class="n">p</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="n">browser</span> <span class="o">=</span> <span class="k">await</span> <span class="n">p</span><span class="o">.</span><span class="n">chromium</span><span class="o">.</span><span class="n">launch</span><span class="p">(</span><span class="n">headless</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">        <span class="n">context</span> <span class="o">=</span> <span class="k">await</span> <span class="n">browser</span><span class="o">.</span><span class="n">new_context</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">        <span class="n">page</span> <span class="o">=</span> <span class="k">await</span> <span class="n">context</span><span class="o">.</span><span class="n">new_page</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">        <span class="n">page_number</span> <span class="o">=</span> <span class="mi">1</span>
</span></span><span class="line"><span class="cl">        <span class="n">max_pages</span> <span class="o">=</span> <span class="mi">1481</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">        <span class="c1"># Open JSON file in streaming mode</span>
</span></span><span class="line"><span class="cl">        <span class="n">json_path</span> <span class="o">=</span> <span class="n">Path</span><span class="p">(</span><span class="n">OUTPUT_JSON</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">        <span class="c1"># If file exists, load previous progress</span>
</span></span><span class="line"><span class="cl">        <span class="k">if</span> <span class="n">json_path</span><span class="o">.</span><span class="n">exists</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">            <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">json_path</span><span class="p">,</span> <span class="s2">&#34;r&#34;</span><span class="p">,</span> <span class="n">encoding</span><span class="o">=</span><span class="s2">&#34;utf-8&#34;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">                <span class="n">all_posts</span> <span class="o">=</span> <span class="n">json</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="n">f</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">        <span class="k">else</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">            <span class="n">all_posts</span> <span class="o">=</span> <span class="p">[]</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">        <span class="k">while</span> <span class="n">page_number</span> <span class="o">&lt;=</span> <span class="n">max_pages</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">            <span class="n">url</span> <span class="o">=</span> <span class="sa">f</span><span class="s2">&#34;</span><span class="si">{</span><span class="n">THREAD_URL</span><span class="si">}</span><span class="s2">?pageNo=</span><span class="si">{</span><span class="n">page_number</span><span class="si">}</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">            <span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&#34;Scraping page </span><span class="si">{</span><span class="n">page_number</span><span class="si">}</span><span class="s2">&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">            <span class="k">try</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">                <span class="k">await</span> <span class="n">page</span><span class="o">.</span><span class="n">goto</span><span class="p">(</span><span class="n">url</span><span class="p">,</span> <span class="n">wait_until</span><span class="o">=</span><span class="s2">&#34;domcontentloaded&#34;</span><span class="p">,</span> <span class="n">timeout</span><span class="o">=</span><span class="mi">60000</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">            <span class="k">except</span> <span class="ne">Exception</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">                <span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&#34;Page </span><span class="si">{</span><span class="n">page_number</span><span class="si">}</span><span class="s2"> failed: </span><span class="si">{</span><span class="n">e</span><span class="si">}</span><span class="s2">&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">                <span class="n">page_number</span> <span class="o">+=</span> <span class="mi">1</span>
</span></span><span class="line"><span class="cl">                <span class="k">continue</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">            <span class="k">await</span> <span class="n">page</span><span class="o">.</span><span class="n">wait_for_selector</span><span class="p">(</span><span class="s2">&#34;.message&#34;</span><span class="p">,</span> <span class="n">timeout</span><span class="o">=</span><span class="mi">30000</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">            <span class="n">posts</span> <span class="o">=</span> <span class="k">await</span> <span class="n">page</span><span class="o">.</span><span class="n">locator</span><span class="p">(</span><span class="s2">&#34;.message&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">all</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">            <span class="n">page_posts</span> <span class="o">=</span> <span class="p">[]</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">            <span class="k">for</span> <span class="n">post</span> <span class="ow">in</span> <span class="n">posts</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">                <span class="k">try</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">                    <span class="n">author_locator</span> <span class="o">=</span> <span class="n">post</span><span class="o">.</span><span class="n">locator</span><span class="p">(</span><span class="s2">&#34;.username&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">first</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">                    <span class="k">if</span> <span class="k">await</span> <span class="n">author_locator</span><span class="o">.</span><span class="n">count</span><span class="p">()</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">                        <span class="n">author</span> <span class="o">=</span> <span class="p">(</span><span class="k">await</span> <span class="n">author_locator</span><span class="o">.</span><span class="n">inner_text</span><span class="p">())</span><span class="o">.</span><span class="n">strip</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">                    <span class="k">else</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">                        <span class="n">author</span> <span class="o">=</span> <span class="s2">&#34;unknown&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">                    <span class="n">times</span> <span class="o">=</span> <span class="k">await</span> <span class="n">post</span><span class="o">.</span><span class="n">locator</span><span class="p">(</span><span class="s2">&#34;time&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">all</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">                    <span class="n">timestamp</span> <span class="o">=</span> <span class="s2">&#34;unknown&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">                    <span class="k">for</span> <span class="n">t</span> <span class="ow">in</span> <span class="n">times</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">                        <span class="n">dt</span> <span class="o">=</span> <span class="k">await</span> <span class="n">t</span><span class="o">.</span><span class="n">get_attribute</span><span class="p">(</span><span class="s2">&#34;datetime&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">                        <span class="k">if</span> <span class="n">dt</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">                            <span class="n">timestamp</span> <span class="o">=</span> <span class="n">dt</span>
</span></span><span class="line"><span class="cl">                            <span class="k">break</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">                    <span class="n">content_locator</span> <span class="o">=</span> <span class="n">post</span><span class="o">.</span><span class="n">locator</span><span class="p">(</span><span class="s2">&#34;.messageContent&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">first</span>
</span></span><span class="line"><span class="cl">                    <span class="n">content</span> <span class="o">=</span> <span class="s2">&#34;&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">                    <span class="k">if</span> <span class="k">await</span> <span class="n">content_locator</span><span class="o">.</span><span class="n">count</span><span class="p">()</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">                        <span class="n">content</span> <span class="o">=</span> <span class="p">(</span><span class="k">await</span> <span class="n">content_locator</span><span class="o">.</span><span class="n">inner_text</span><span class="p">())</span><span class="o">.</span><span class="n">strip</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">                    <span class="n">page_posts</span><span class="o">.</span><span class="n">append</span><span class="p">({</span>
</span></span><span class="line"><span class="cl">                        <span class="s2">&#34;author&#34;</span><span class="p">:</span> <span class="n">author</span><span class="o">.</span><span class="n">strip</span><span class="p">(),</span>
</span></span><span class="line"><span class="cl">                        <span class="s2">&#34;timestamp&#34;</span><span class="p">:</span> <span class="n">timestamp</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">                        <span class="s2">&#34;content&#34;</span><span class="p">:</span> <span class="n">content</span><span class="o">.</span><span class="n">strip</span><span class="p">(),</span>
</span></span><span class="line"><span class="cl">                        <span class="s2">&#34;page&#34;</span><span class="p">:</span> <span class="n">page_number</span>
</span></span><span class="line"><span class="cl">                    <span class="p">})</span>
</span></span><span class="line"><span class="cl">                <span class="k">except</span> <span class="ne">Exception</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">                    <span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&#34;Skipped broken post on page </span><span class="si">{</span><span class="n">page_number</span><span class="si">}</span><span class="s2">: </span><span class="si">{</span><span class="n">e</span><span class="si">}</span><span class="s2">&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">                    
</span></span><span class="line"><span class="cl">            <span class="c1"># stream save results to file</span>
</span></span><span class="line"><span class="cl">            <span class="n">all_posts</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">page_posts</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">            <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">json_path</span><span class="p">,</span> <span class="s2">&#34;w&#34;</span><span class="p">,</span> <span class="n">encoding</span><span class="o">=</span><span class="s2">&#34;utf-8&#34;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">                <span class="n">json</span><span class="o">.</span><span class="n">dump</span><span class="p">(</span><span class="n">all_posts</span><span class="p">,</span> <span class="n">f</span><span class="p">,</span> <span class="n">indent</span><span class="o">=</span><span class="mi">2</span><span class="p">,</span> <span class="n">ensure_ascii</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">            <span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&#34;Saved page </span><span class="si">{</span><span class="n">page_number</span><span class="si">}</span><span class="s2">&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">            <span class="n">page_number</span> <span class="o">+=</span> <span class="mi">1</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">        <span class="k">await</span> <span class="n">browser</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="k">return</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">save_markdown</span><span class="p">(</span><span class="n">posts</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">OUTPUT_MD</span><span class="p">,</span> <span class="s2">&#34;w&#34;</span><span class="p">,</span> <span class="n">encoding</span><span class="o">=</span><span class="s2">&#34;utf-8&#34;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="k">for</span> <span class="n">post</span> <span class="ow">in</span> <span class="n">posts</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">            <span class="n">f</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="sa">f</span><span class="s2">&#34;## </span><span class="si">{</span><span class="n">post</span><span class="p">[</span><span class="s1">&#39;author&#39;</span><span class="p">]</span><span class="si">}</span><span class="se">\n</span><span class="s2">&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">            <span class="n">f</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="sa">f</span><span class="s2">&#34;*</span><span class="si">{</span><span class="n">post</span><span class="p">[</span><span class="s1">&#39;timestamp&#39;</span><span class="p">]</span><span class="si">}</span><span class="s2">*</span><span class="se">\n\n</span><span class="s2">&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">            <span class="n">f</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="n">post</span><span class="p">[</span><span class="s2">&#34;content&#34;</span><span class="p">])</span>
</span></span><span class="line"><span class="cl">            <span class="n">f</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="s2">&#34;</span><span class="se">\n\n</span><span class="s2">---</span><span class="se">\n\n</span><span class="s2">&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">save_json</span><span class="p">(</span><span class="n">posts</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">OUTPUT_JSON</span><span class="p">,</span> <span class="s2">&#34;w&#34;</span><span class="p">,</span> <span class="n">encoding</span><span class="o">=</span><span class="s2">&#34;utf-8&#34;</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="n">json</span><span class="o">.</span><span class="n">dump</span><span class="p">(</span><span class="n">posts</span><span class="p">,</span> <span class="n">f</span><span class="p">,</span> <span class="n">indent</span><span class="o">=</span><span class="mi">2</span><span class="p">,</span> <span class="n">ensure_ascii</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">async</span> <span class="k">def</span> <span class="nf">main</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="n">posts</span> <span class="o">=</span> <span class="k">await</span> <span class="n">scrape_thread</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&#34;Collected </span><span class="si">{</span><span class="nb">len</span><span class="p">(</span><span class="n">posts</span><span class="p">)</span><span class="si">}</span><span class="s2"> posts&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="n">save_markdown</span><span class="p">(</span><span class="n">posts</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="n">save_json</span><span class="p">(</span><span class="n">posts</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="s2">&#34;Saved thread.md and thread.json&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="vm">__name__</span> <span class="o">==</span> <span class="s2">&#34;__main__&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">asyncio</span><span class="o">.</span><span class="n">run</span><span class="p">(</span><span class="n">main</span><span class="p">())</span>
</span></span></code></pre></div><h2 id="setup">Setup</h2>
<p>Requirements:</p>
<ul>
<li>Linux / WSL2 recommended</li>
<li>Python 3.8–3.11</li>
<li>Playwright</li>
</ul>
<p>Create and activate a virtual environment:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">python -m venv venv
</span></span><span class="line"><span class="cl"><span class="nb">source</span> venv/bin/activate
</span></span></code></pre></div><p>Install dependencies:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pip install playwright
</span></span><span class="line"><span class="cl">playwright install
</span></span><span class="line"><span class="cl">playwright install-deps
</span></span></code></pre></div><h2 id="usage">Usage</h2>
<p>Edit the thread URL in <code>download_thread.py</code> if needed, then run:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">python download_thread.py
</span></span></code></pre></div><p>The script will:</p>
<ul>
<li>Iterate through all pages of the thread</li>
<li>Extract posts (author, timestamp, content)</li>
<li>Continuously save results to <code>thread.json</code></li>
</ul>
<p>Progress is written after each page to avoid data loss if the script stops.</p>
<p>Output:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-json" data-lang="json"><span class="line"><span class="cl"><span class="err">thread.json</span>
</span></span></code></pre></div><p>Structure example:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-json" data-lang="json"><span class="line"><span class="cl"><span class="p">{</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;author&#34;</span><span class="p">:</span> <span class="s2">&#34;username&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;timestamp&#34;</span><span class="p">:</span> <span class="s2">&#34;2025-08-17T14:17:53.000Z&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;content&#34;</span><span class="p">:</span> <span class="s2">&#34;post text&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nt">&#34;page&#34;</span><span class="p">:</span> <span class="mi">5</span>
</span></span><span class="line"><span class="cl"><span class="p">}</span>
</span></span></code></pre></div><h2 id="notes">Notes</h2>
<ul>
<li>The scraper uses Playwright with Chromium.</li>
<li>If a page fails to load, it will be skipped and the script continues.</li>
<li>Query of 1500 pages discussion took about 15 Minutes</li>
</ul>
]]></content></item><item><title>Slides: Internal review of DFG LIS grant proposal</title><link>https://links.alexanderdunkel.com/posts/2026-03-05_lis_review_slides/</link><pubDate>Thu, 05 Mar 2026 10:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2026-03-05_lis_review_slides/</guid><description>&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2026-03-05_lis_draft.webp" alt="Header Slide"&gt;
&lt;/p&gt;
&lt;p&gt;These are the slides for an internal presentation at the IOER. The purpose of the meeting was to discuss the current draft of our DFG LIS grant proposal with colleagues and collect feedback before finalization.&lt;/p&gt;
&lt;p&gt;The proposal aims to fund a nationwide research infrastructure, a German geo-social information system, to curate and abstract opportunistic data. The presentation covers the general funding goals, the technical privacy abstraction using HyperLogLog, and clarifies the project boundaries. A central point was delineating the DFG validation use case, social cohesion, from parallel institute goals like measuring transformative capacity.&lt;/p&gt;</description><content type="html"><![CDATA[<p>
  <img src="/imgs/2026-03-05_lis_draft.webp" alt="Header Slide">
</p>
<p>These are the slides for an internal presentation at the IOER. The purpose of the meeting was to discuss the current draft of our DFG LIS grant proposal with colleagues and collect feedback before finalization.</p>
<p>The proposal aims to fund a nationwide research infrastructure, a German geo-social information system, to curate and abstract opportunistic data. The presentation covers the general funding goals, the technical privacy abstraction using HyperLogLog, and clarifies the project boundaries. A central point was delineating the DFG validation use case, social cohesion, from parallel institute goals like measuring transformative capacity.</p>
<p>The slides are available here:
<a href="https://slides.ad.ioer.info/dfg_lis_draft/">https://slides.ad.ioer.info/dfg_lis_draft/</a></p>
<h3 id="process-notes">Process notes</h3>
<p>I used an LLM to help structure the presentation and translate my notes into RevealJS markdown format. This saved time, especially when migrating older, heavily customized HTML/CSS code from a 2020 presentation into modern RevealJS r-stack layouts for the technical slides.</p>
<div style="background-color:darkgrey">
<pre style="
    display: inline-block;
    text-align: left; 
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre;
    font-size: 1.8vmin;
    line-height: 1.2;
    margin: 0 auto;
    color: #555;
">
               ┌──────────────────────────────────────┐
               │         THE LIS INFRASTRUCTURE       │
               │   GEO-S(O)IS (Base Data & Pipeline)  │
               └──────────────────┬───────────────────┘
                                  │
          ┌───────────────────────┴───────────────────────┐
          ▼                                               ▼
┌───────────────────┐                           ┌───────────────────┐
│   DFG TEST CASE   │                           │   IOER PARALLEL   │
│  Social Cohesion  │                           │ Transformative Cap│
└─────────┬─────────┘                           └─────────┬─────────┘
          │                                               │
  • Neighborhood level                            • Indicator generation
  • Validated by SOEP/Survey                      • Planning intervention
  • Field Surveys (5-7 cities)                    • Handled internally
  • (Led by Odile & Jan)                          • (Outside DFG Grant)
</pre>
</div>
<p>To manage expectations regarding the project scope, I used a text-based tree diagram. It visually separates the core infrastructure and the DFG-specific test case from other internal IOER mandates. The LLM was useful for adjusting the layout and CSS of this ASCII diagram so it centered correctly on the slide without conflicting with the corporate design headers.</p>
]]></content></item><item><title>Slides &amp; Leibniz-Lab: Sovereignty and the Human Factor in Transformation</title><link>https://links.alexanderdunkel.com/posts/2026-01-27-leibnizlab-transformation/</link><pubDate>Thu, 22 Jan 2026 10:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2026-01-27-leibnizlab-transformation/</guid><description>&lt;p&gt;Last week, I participated in the &lt;strong&gt;Leibniz-Lab &amp;ldquo;Upheavals and Transformations&amp;rdquo;&lt;/strong&gt; workshop in Leipzig. As a data scientist with a background in landscape planning, I often feel like a technical outlier in these predominantly humanities-and-social-science-driven circles. However, the diversity of perspectives turned out to be the workshop&amp;rsquo;s greatest strength.&lt;/p&gt;
&lt;h2 id="who-owns-the-view"&gt;Who Owns the View?&lt;/h2&gt;
&lt;p&gt;I contributed a presentation titled &lt;strong&gt;&amp;ldquo;Who Owns the View? Corporate Sovereignty, Filter Bubbles, and the Struggle for Spatial Agency.&amp;rdquo;&lt;/strong&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p>Last week, I participated in the <strong>Leibniz-Lab &ldquo;Upheavals and Transformations&rdquo;</strong> workshop in Leipzig. As a data scientist with a background in landscape planning, I often feel like a technical outlier in these predominantly humanities-and-social-science-driven circles. However, the diversity of perspectives turned out to be the workshop&rsquo;s greatest strength.</p>
<h2 id="who-owns-the-view">Who Owns the View?</h2>
<p>I contributed a presentation titled <strong>&ldquo;Who Owns the View? Corporate Sovereignty, Filter Bubbles, and the Struggle for Spatial Agency.&rdquo;</strong></p>
<p>My goal was to shift the discussion of &ldquo;sovereignty&rdquo; from a purely state-centric or legal concept toward a spatial and perceptual one. In an age of algorithmic curation, sovereignty effectively means the agency to decide where to look and where to go.</p>
<p>
  <img src="/imgs/2026-01-22_leipzig_title.webp" alt="Title Slide: Who Owns the View?">
</p>
<p><em>Slides: <a href="https://slides.ad.ioer.info/who_owns_the_view/">https://slides.ad.ioer.info/who_owns_the_view/</a></em></p>
<p>I reused two specific activation examples from my <a href="/posts/2026-01-15-geosocial-media-workshop-lecture-series/">recent lecture series</a>, which resonated with the audience:</p>
<ol>
<li><strong>The &ldquo;Hülße Park&rdquo; Scenario:</strong> Confronting our own tendency to &ldquo;curate&rdquo; reality by posting only beautiful sunsets while ignoring the physical degradation (trash, crowds) of a place.</li>
<li><strong>The &ldquo;1913&rdquo; LLM:</strong> Demonstrating how an AI model trained only on pre-1913 text creates a biased worldview.</li>
</ol>
<p>This sparked a discussion on Generative AI as the next major disruption. The consensus was that we do not yet grasp the global societal effects of this technology. My introduction of Mark Weiser&rsquo;s concept of Calm Technology (that informs but doesn&rsquo;t demand our constant attention) was met with curiosity as a potential counter-model to the current <em>attention economy</em>.</p>
<h2 id="perspectives-from-the-workshop">Perspectives from the Workshop</h2>
<p>The two days provided a lot of insights that went far beyond my own discipline.</p>
<p><strong>Transformation as Recombination</strong>
The keynote by <em><a href="https://f-s.hszg.de/studienangebot/master-management-sozialen-wandels/mitarbeiter-innen-und-fachstudienberatung/prof-raj-kollmorgen">Raj Kollmorgen</a></em> (HS Zittau/Görlitz) set an important frame. He drew from historical transitions (like the German reunification) and argued that successful transformations rarely invent entirely <em>new</em> things. Instead, they recombine existing elements. Since the people living in a system remain the same before and after a disruption, adaptation is easier if we identify and carry over what works, rather than forcing a completely new system on them.</p>
<p><strong>The Long View: Human vs. Human vs. AI</strong>
<em><a href="https://www.leiza.de/ueber-uns/team/person/olaf-joeris">Olaf Jöris</a></em> (LEIZA) provided a great deep-time perspective, overlooking 10,000 years of human history. He argued that the stability of societies relies on the diversity of offered niches. The more people can find a niche to fulfill their needs, the more stable the society (in contrast to autocracies). Most interestingly, he noted that early human stress came from competing with nature. Around 5000 B.C., this shifted to internal competition (Human vs. Human). Today, we face a new triangulation: <em>Human vs. Human vs. AI</em>. As AI begins to compete for our niches (jobs, creative roles), we may see a broadening demographic pushed into low-wage sectors. A sobering projection..</p>
<p><strong>Critique and Synthesis</strong>
The interdisciplinary dialogue brought out several other interesting perspectives:</p>
<ul>
<li><em><a href="https://www.leibniz-gwzo.de/de/institut/personen/team-z/arnold-bartetzky">Arnold Bartetzky</a></em> (GWZO) was very convincing with his synthesis of transdisciplinary threads into a coherent cultural narrative.</li>
<li><em><a href="https://www.leibniz-gwzo.de/de/institut/personen/team-z/alexander-mionskowski">Alexander Mionskowski</a></em> (GWZO) demonstrated the power of the humanities by summarizing our entire theme group into a concise, ad-hoc text. In our side discussions, he shared the concern that AI currently represents a negative disruption.</li>
<li><em><a href="https://lir-mainz.de/mitarbeiter/thomas-rigotti">Thomas Rigotti</a></em> (LIR) added a crucial psychological and neuroscientific layer, focusing on individual resilience. This connected well with my own work on visual perception (any transformation starts in the brain!).</li>
<li><em><a href="https://www.herder-institut.de/de/institut/personen/pd-dr-anna-veronika-wendland">Anna Veronika Wendland</a></em> (Herder-Institut) offered a critique of modern smart tech. She used the example of the modern washing machine, that is fully automated, opaque, and uncontrollable, as an anti-pattern to Calm Technology and a symbol of lost agency.</li>
<li><em><a href="https://www.gesis.org/institut/ueber-uns/mitarbeitendenverzeichnis/person/Sebastian.Ziaja">Sebastian Ziaja</a></em> (GESIS) provided a bridge back to data science and democratic processes, specifically through his work on &ldquo;Bürgerräte&rdquo; (Citizens&rsquo; Assemblies).</li>
</ul>
<p>The workshop reinforced my belief that Responsible Geosocial Data Analytics is a critical tool to make the &ldquo;invisible&rdquo; filters of our perception visible. If we are moving into an era of &ldquo;Human vs. AI&rdquo; competition for niches, as Olaf suggested, we need infrastructures that allow us to reclaim our view of the world.</p>
]]></content></item><item><title>Digital Landscape Traces: Mapping Locals and Tourists in Germany</title><link>https://links.alexanderdunkel.com/posts/2026-01-15-digital-landscape-traces/</link><pubDate>Thu, 15 Jan 2026 10:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2026-01-15-digital-landscape-traces/</guid><description>&lt;hr&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/csm_Kartenausschnitt_digitaleSpuren_A_Nord_4zu3_2025-11-03_USi_329e23d627.png" alt="Digital Landscape Traces"&gt;
&lt;/p&gt;
&lt;div style="width:100%;display:flex"&gt;
&lt;span style="text-align: center;"&gt;Figure 1. Digital Landscape Traces from Tourists (Red) and Locals (Blue) in Germany (2007-2022). Based on 66 million social media posts.&lt;/span&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;p&gt;We just released a new map and the accompanying data pipeline titled &amp;ldquo;Digital Landscape Traces&amp;rdquo; (Digitale Spuren in der Landschaft). This work, published in the series &lt;em&gt;Natur und Landschaft in Karten&lt;/em&gt; (NuL), visualizes over 66 million georeferenced social media posts across Germany from a 15-year period (2007–2022).&lt;/p&gt;</description><content type="html"><![CDATA[<hr>
<p>
  <img src="/imgs/csm_Kartenausschnitt_digitaleSpuren_A_Nord_4zu3_2025-11-03_USi_329e23d627.png" alt="Digital Landscape Traces">
</p>
<div style="width:100%;display:flex">
<span style="text-align: center;">Figure 1. Digital Landscape Traces from Tourists (Red) and Locals (Blue) in Germany (2007-2022). Based on 66 million social media posts.</span>
</div>
<hr>
<p>We just released a new map and the accompanying data pipeline titled &ldquo;Digital Landscape Traces&rdquo; (Digitale Spuren in der Landschaft). This work, published in the series <em>Natur und Landschaft in Karten</em> (NuL), visualizes over 66 million georeferenced social media posts across Germany from a 15-year period (2007–2022).</p>
<p>The core idea of this visualization was to distinguish between <strong>Locals</strong> (Blue) and <strong>Tourists</strong> (Red) to understand how digital attention manifests in physical space. While urban centers often show a mix of tourist hotspots surrounded by local activity rings, rural areas reveal distinct &ldquo;islands&rdquo; of tourist interest amidst broader local usage.</p>
<p>This project was a collaboration between the IOER and Prof. Catrin Schmidt (TU Dresden, Institute of Landscape Architecture). Beyond the map itself, a major focus was establishing a <strong>privacy-by-design workflow</strong>. We used probabilistic data structures (HyperLogLog) and spatial aggregation to ensure that we could analyze these massive datasets without compromising individual user privacy.</p>
<h2 id="processing-pipeline--notebooks">Processing Pipeline &amp; Notebooks</h2>
<p>The entire processing pipeline is documented and available online. We processed the raw data (which remains internal due to privacy constraints) into an anonymized, reproducible dataset using the following workflow:</p>
<ul>
<li><strong>Overview:</strong> <a href="https://code.ad.ioer.info/digital_traces_map/">https://code.ad.ioer.info/digital_traces_map/</a></li>
<li><strong>Step 1:</strong> <a href="https://code.ad.ioer.info/wip/digital_traces_map/html/00_user_origin_conversion.html">00_user_origin_conversion.html</a><br>
<em>Preprocessing: Conversion of raw user-origin data.</em></li>
<li><strong>Step 2:</strong> <a href="https://code.ad.ioer.info/wip/digital_traces_map/html/01_clustering.html">01_clustering.html</a><br>
<em>User location classification: Inferring &ldquo;Home&rdquo; vs. &ldquo;Tourist&rdquo; status based on activity patterns.</em></li>
<li><strong>Step 3:</strong> <a href="https://code.ad.ioer.info/wip/digital_traces_map/html/02_parquet.html">02_parquet.html</a><br>
<em>Transformation: Converting the classified data into performant Parquet format for visualization.</em></li>
<li><strong>Step 4:</strong> <a href="https://code.ad.ioer.info/wip/digital_traces_map/html/03_visualization.html">03_visualization.html</a><br>
<em>Visualization: Generating the final high-resolution map using Datashader.</em></li>
</ul>
<h2 id="source-code">Source Code</h2>
<p>The source code is maintained on GitLab (including CI/CD) with a mirror on GitHub for public discussion and issue tracking:</p>
<ul>
<li><strong>GitLab (Source):</strong> <a href="https://gitlab.hrz.tu-chemnitz.de/ad/digital_traces_map">https://gitlab.hrz.tu-chemnitz.de/ad/digital_traces_map</a></li>
<li><strong>GitHub (Mirror):</strong> <a href="https://github.com/ioer-dresden/digital_traces_map">https://github.com/ioer-dresden/digital_traces_map</a></li>
</ul>
<h2 id="data-publication-replication-package">Data Publication (Replication Package)</h2>
<p>To ensure reproducibility, we published the aggregated, privacy-safe dataset used to render the final map via the <strong>ioerDATA</strong> repository.</p>
<blockquote>
<p>Dunkel, A., &amp; Nieswand, M. (2025). Replication Package for: Digital Landscape Traces - Locals and Tourists in Germany Map. Landschaft und Natur in Karten. – Naturschutz und Landschaftsplanung (NuL).
<a href="https://doi.org/10.71830/VDmUWW">DOI: 10.71830/VDmUWW</a></p>
</blockquote>
<h2 id="article">Article</h2>
<p>The article explaining the context, interpretation, and relevance for spatial planning is published in <em>Naturschutz und Landschaftsplanung</em>.</p>
<blockquote>
<p>Dunkel, A., Schmidt, C., Wende, W., Nieswand, M. (2025). Digitale Spuren in der Landschaft: Ein neuer Blick auf Deutschlands Naturräume durch Soziale Medien. Landschaft und Natur in Karten. – Naturschutz und Landschaftsplanung (NuL). <a href="https://doi.org/10.1399/NuL.190572">DOI: 10.1399/NuL.190572</a></p>
</blockquote>
<p>You can view the article (German) here: <a href="https://www.nul-online.de/themen/landschafts-und-umweltplanung/article-8287901-201982/digitale-spuren-in-der-landschaft-.html">NuL Online Article</a></p>
<p><a href="https://www.ioer.de/presse/aktuelles/digitale-spuren-in-der-landschaft">https://www.ioer.de/presse/aktuelles/digitale-spuren-in-der-landschaft</a></p>
<h2 id="outreach">Outreach</h2>
<ul>
<li><a href="https://www.ioer.de/presse/aktuelles/digitale-spuren-in-der-landschaft">IOER &ldquo;Aktuelles&rdquo;</a></li>
<li><a href="https://www.linkedin.com/posts/leibniz-ioer_ioerdata-raumentwicklung-socialcohesion-activity-7417548158156746752-uQR9?utm_source=share&amp;utm_medium=member_desktop&amp;rcm=ACoAABVdTS0BQwkrLM3f6kLY-RjG0lvybqFvebY">LinkedIn</a>
<ul>
<li>A follow-up post by Dominik Weckmüller, <a href="https://www.linkedin.com/posts/dominik-weckm%C3%BCller_alexander-dunkel-et-al-analyzed-66m-german-activity-7454771597846061057-O3r_">with new visualizations derived from our shared dataset</a></li>
</ul>
</li>
<li><a href="https://wisskomm.social/@ioer/115899330915763542">Mastodon</a>
<ul>
<li><a href="https://himself.alexanderdunkel.com/@alex/115903771399718784">.. and my Quote/Boost of it</a></li>
</ul>
</li>
<li><a href="https://www.rnd.de/lifestyle/digitale-spuren-wie-social-media-die-attraktivitaet-deutscher-orte-zeigt-YABGMVSOVJHYPENFR2JNSKHCYE.html">Digitale Spuren von Touristen: Wie beliebt ist Ihr Ort in den sozialen Medien? (RedaktionsNetzwerk Deutschland, RND)</a></li>
<li><a href="https://www.diesachsen.de/en/various-news/66-million-posts-show-popular-excursion-destinations-3100386">66 million posts show popular excursion destinations (Die Sachsen)</a></li>
<li><a href="https://www.kreiszeitung.de/lokales/niedersachsen/digitales-echo-zeigt-die-fotogensten-orte-niedersachsens-karte-bietet-unschaetzbaren-nutzen-94179703.html">„Digitales Echo“ zeigt die fotogensten Orte Niedersachsens – Karte bietet unschätzbaren Nutzen (Kreiszeitung.de)</a></li>
<li><a href="https://netzpolitik.org/ticker/ticker-news-von-rnd-vom-09-02-2026/">Von welchen deutschen Orten posten die meisten Tourist*innen auf Social Media? (netzpolitik.org)</a></li>
<li><a href="https://www.mainpost.de/wuerzburg/stadtwuerzburg/social-media-studie-wuerzburg-liegt-bei-posts-an-residenz-vorn-113964058">Vom Dom bis zur Schustergasse: Das sind die 12 beliebtesten Orte auf Social Media in Würzburg (Mainpost)</a></li>
</ul>
]]></content></item><item><title>Workshop and Lecture Series: Social Media, Data Analysis, &amp; Cartograpy, WS 2025/26</title><link>https://links.alexanderdunkel.com/posts/2026-01-15-geosocial-media-workshop-lecture-series/</link><pubDate>Thu, 15 Jan 2026 09:20:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2026-01-15-geosocial-media-workshop-lecture-series/</guid><description>&lt;p&gt;For the fifth time, I am hosting the lecture and workshop series on geosocial data analytics at the TU Dresden, Institute of Cartography.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;4-Facets-Lecture:&lt;/strong&gt; Do, 15. Jan 2026, 9:20 – 10:50 Uhr, SCH/A315&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Jupyter-Lab-Workshop:&lt;/strong&gt; Mo, 19. Jan 2026, 13:00 – 14:30 Uhr, HÜL/S590&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;TagMaps-Workshop:&lt;/strong&gt; Mo, 26. Jan 2026, 13:00 – 14:30 Uhr, HÜL/S590&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="new-in-2026-the-latent-space-of-cartography"&gt;New in 2026: The &amp;ldquo;Latent Space&amp;rdquo; of Cartography&lt;/h3&gt;
&lt;p&gt;The lecture has evolved significantly this year. While the core &amp;ldquo;4 Facets&amp;rdquo; structure remains, I introduced a new focus on &lt;strong&gt;Generative AI&lt;/strong&gt; and &lt;strong&gt;Vector Embeddings&lt;/strong&gt;. Explaining Cosine Similarity and the Dot Product is traditionally a dry topic, but framing it as the mathematical engine powering everything from Google Search to ChatGPT (and perhaps future map-making) made its relevance immediately clear to the students.&lt;/p&gt;</description><content type="html"><![CDATA[<p>For the fifth time, I am hosting the lecture and workshop series on geosocial data analytics at the TU Dresden, Institute of Cartography.</p>
<ul>
<li><strong>4-Facets-Lecture:</strong> Do, 15. Jan 2026, 9:20 – 10:50 Uhr, SCH/A315</li>
<li><strong>Jupyter-Lab-Workshop:</strong> Mo, 19. Jan 2026, 13:00 – 14:30 Uhr, HÜL/S590</li>
<li><strong>TagMaps-Workshop:</strong> Mo, 26. Jan 2026, 13:00 – 14:30 Uhr, HÜL/S590</li>
</ul>
<h3 id="new-in-2026-the-latent-space-of-cartography">New in 2026: The &ldquo;Latent Space&rdquo; of Cartography</h3>
<p>The lecture has evolved significantly this year. While the core &ldquo;4 Facets&rdquo; structure remains, I introduced a new focus on <strong>Generative AI</strong> and <strong>Vector Embeddings</strong>. Explaining Cosine Similarity and the Dot Product is traditionally a dry topic, but framing it as the mathematical engine powering everything from Google Search to ChatGPT (and perhaps future map-making) made its relevance immediately clear to the students.</p>
<p>We also shifted the theoretical lens. I introduced the <strong>SETS Model</strong> (Social-Ecological-Technological Systems) as a diagnostic filter. This supplements the 4-Facets framework by helping students &ldquo;disentangle&rdquo; observed patterns—distinguishing between ecological signals (e.g., blooming flowers), social events (holidays), and technological artifacts (algorithm changes).</p>
<h3 id="active-participation-breaking-the-loop">Active Participation: Breaking the Loop</h3>
<p>To motivate reflection and challenge the students&rsquo; intuition, I used two &ldquo;Activation Breaks&rdquo; via Slido.</p>
<p><strong>1. The &ldquo;Influencer&rdquo; Effect</strong></p>
<p>Early in the session, I asked students to confront their own role in data generation. We looked at a scenario where a park is visually degraded (trash/crowds), but photogenic at sunset. I asked: <em>What do you post?</em></p>
<p>
  <img src="/imgs/2026-01-15_activation1.webp" alt="Slido Question: What do you post?">
</p>
<p>The results were honest and telling:</p>
<p>
  <img src="/imgs/2026-01-15_activation1_answers.webp" alt="Slido answers showing &lsquo;Curated&rsquo; responses">
</p>
<p>Most admitted they would curate the image or post nothing negative. This was a perfect setup to explain <strong>Systematic Bias</strong>: If we only map social media sentiment, we miss the physical degradation of a landscape. This decouples the digital signal from physical reality, which is a problem geovisual analytics must actively consider.</p>
<p>
  <img src="/imgs/2026-01-15_activation2_2.webp" alt="Slido Question: AI Bias">
</p>
<p><strong>2. The &ldquo;Time Capsule&rdquo; AI</strong></p>
<p>Later, in the chapter on &ldquo;Bias and Normalization,&rdquo; I presented a shocking text generated by an AI model without explaining how it was generated (the model was trained exclusively on texts from before <strong>1913</strong>.)</p>
<p>
  <img src="/imgs/2026-01-15_activation2.webp" alt="Slido Question: AI Bias">
</p>
<p>I asked: As an analyst, how would you prevent such an answer? Or vice versa, how could have such an anwser provoked? I wanted to raise awareness that all Language Models are biased.</p>
<p>This exercise made it clear that while 1913 bias is obvious to us, <strong>2026 bias</strong> is harder to spot because we live inside it.</p>
<p>The discussions were sharp and engaged. It is surprisingly calming to see that despite the flood of synthetic media, the students remain critical thinkers capable of questioning the black box.</p>
<hr>
<h3 id="resources--links">Resources &amp; Links</h3>
<p><strong>Course Materials (Shortlink):</strong></p>
<ul>
<li><a href="https://tud.link/5vpd">https://tud.link/5vpd</a></li>
</ul>
<p><strong>Public Repository:</strong></p>
<ul>
<li><a href="https://code.ad.ioer.info/jupyter_python_datascience/">https://code.ad.ioer.info/jupyter_python_datascience/</a></li>
</ul>
<p><strong>Tag Maps Workshop:</strong></p>
<ul>
<li><a href="https://slides.ad.ioer.info/tagmapsworkshop_tud_2025/">Full Workshop Slides</a></li>
<li><a href="https://tud.link/gfexq5">Shortlink</a></li>
</ul>
<p><strong>Lecture Slides:</strong></p>
<ul>
<li><a href="https://slides.ad.ioer.info/geosocialmedia_lecture/">Analysis and Visualization of Geo-Social Media (2026)</a></li>
</ul>
<p><strong>Notebooks (HTML Previews):</strong></p>
<ol>
<li><a href="https://code.ad.ioer.info/jupyter_python_datascience/html/01_raw_intro.html">01_raw_intro.html</a></li>
<li><a href="https://code.ad.ioer.info/jupyter_python_datascience/html/02_hll_intro.html">02_hll_intro.html</a></li>
<li><a href="https://code.ad.ioer.info/jupyter_python_datascience/html/03_tagmaps.html">03_tagmaps.html</a></li>
<li><a href="https://code.ad.ioer.info/jupyter_python_datascience/html/04_topic_classification.html">04_topic_classification.html</a></li>
</ol>
]]></content></item><item><title>Google AI Studio Prompts: Backup and Restore</title><link>https://links.alexanderdunkel.com/posts/2025-11-05-ai-studio-backup-restore/</link><pubDate>Wed, 05 Nov 2025 06:01:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2025-11-05-ai-studio-backup-restore/</guid><description>&lt;p&gt;I developed two scripts to manage prompts in Google AI Studio. Before describing them, a note on data privacy: Google&amp;rsquo;s policy states they can access and use all content uploaded to AI Studio. For this reason, I only use it for data and content that is already public.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why Use AI Studio and Why Backup?&lt;/strong&gt; I am not a fan of Google. But: Google AI Studio provides a large context window of 1 million tokens. This allows for workflows similar to Retrieval Augmented Generation (RAG), where extensive context can be provided directly within the prompt. Supplying the full context reduces the likelihood of hallucinations and makes the generation process more transparent. It has helped me a great deal with many laborious tasks, particularly where I need to summarize content or compile overviews of large amounts of input text.&lt;/p&gt;</description><content type="html"><![CDATA[<p>I developed two scripts to manage prompts in Google AI Studio. Before describing them, a note on data privacy: Google&rsquo;s policy states they can access and use all content uploaded to AI Studio. For this reason, I only use it for data and content that is already public.</p>
<p><strong>Why Use AI Studio and Why Backup?</strong> I am not a fan of Google. But: Google AI Studio provides a large context window of 1 million tokens. This allows for workflows similar to Retrieval Augmented Generation (RAG), where extensive context can be provided directly within the prompt. Supplying the full context reduces the likelihood of hallucinations and makes the generation process more transparent. It has helped me a great deal with many laborious tasks, particularly where I need to summarize content or compile overviews of large amounts of input text.</p>
<p>Given this, it is a critical requirement to back up prompts together with their full context. A complete backup serves several purposes:</p>
<ul>
<li><strong>Documentation:</strong> It preserves a record of how information was processed (prompts, answers etc.).</li>
<li><strong>Reproducibility:</strong> The same processing can be applied later with newer models to compare results.</li>
<li><strong>Restoration:</strong> It allows for the recovery of entire processing pipelines.</li>
</ul>
<p>The restore script&rsquo;s primary goal is to support data minimization. Prompts and their associated data can be removed online to reduce the data footprint and selectively restored when needed.</p>
<h1 id="offline-viewing-of-prompts">Offline Viewing of Prompts</h1>
<p>For offline analysis of exported Gemini JSON files, I use and have extended the excellent <a href="https://github.com/marcelamayr/Gemini-json-Viewer">Gemini-json-Viewer</a> originally created by Marcel Mayr. My version can be found here:</p>
<ul>
<li><strong><a href="https://github.com/Sieboldianus/Gemini-json-Viewer">https://github.com/Sieboldianus/Gemini-json-Viewer</a></strong></li>
</ul>
<p>The viewer renders the conversation from an AI Studio JSON file into a clear, interactive HTML view. To support the goals of transparency and documentation that I outlined above, I added a crucial feature: the ability to <strong>export the entire conversation to a single, self-contained static HTML file.</strong></p>
<p>
  <img src="/imgs/2025-11-05_slide_resilient.webp" alt="The resilient postdoc slides">
</p>
<p>This creates a permanent, shareable archive of a prompt&rsquo;s full context and output. It&rsquo;s perfect for web sharing or for including as a supplement in publications, ensuring the entire generation process is transparent and reproducible.</p>
<p>
  <img src="/imgs/2025-11-10_archive_aistudio.webp" alt="Screenshot of the static HTML archive export">
</p>
<p>The example I used <a href="https://slides.ad.ioer.info/resilient-habits/">in my presentations</a> was created with this export feature. You can <a href="https://slides.ad.ioer.info/resilient-habits/assets/prompt.htm">see the live exported file here</a>.</p>
<h1 id="the-scripts-">The Scripts ⚙️</h1>
<p>The workflow is split into two scripts: one for organizing the backups downloaded from Google Drive, and one for restoring a specific prompt back to AI Studio.</p>
<h2 id="backup-script">Backup Script</h2>
<p>This script processes the Google Drive archive. It sorts the AI Studio JSON files into dated folders and renames them based on their internal title metadata (slug-like). This makes the flat archive more human-readable.</p>
<details>
<summary><strong>organize_archive_win.sh</strong></summary>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="cp">#!/bin/bash
</span></span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># 1. **Proactive Maintenance:** The rclone dedupe command did its job, cleaning up 16 redundant files from your cloud storage automatically.</span>
</span></span><span class="line"><span class="cl"><span class="c1"># 2. **Data Integrity:** The Renaming phase caught and fixed 14 files with problematic names, ensuring the data synced locally was clean and safe.</span>
</span></span><span class="line"><span class="cl"><span class="c1"># 3. **Intelligent Caching:** This is the best part.The script correctly identified that only **one** prompt had actually changed—the very one we are collaborating in (Organizing AI Studio Prompts and Files).It correctly processed that single file.It correctly identified that the other 60 prompts were unchanged and **skipped** them, resulting in the fast, quiet run you wanted.</span>
</span></span><span class="line"><span class="cl"><span class="c1"># 4. **Perfect Summary:** The final summary 61 prompts checked, 1 updated, 60 unchanged is the ultimate proof that the caching logic is working precisely as designed.</span>
</span></span><span class="line"><span class="cl"><span class="c1"># 5. **Stability:** The entire process, from the initial sync to the final organization, completed without any crashes, hangs, or silent exits.</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># We are intentionally NOT using &#39;set -e&#39; for stability.</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># --- CONFIGURATION ---</span>
</span></span><span class="line"><span class="cl"><span class="nv">SOURCE_DIR</span><span class="o">=</span><span class="s2">&#34;/tmp/gdrive_sync/Google AI Studio&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">ORGANIZED_DIR</span><span class="o">=</span><span class="s2">&#34;/c/your/path/to/backup/folder/GoogleAIStudio_Organized&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">GDRIVE_REMOTE</span><span class="o">=</span><span class="s2">&#34;gdrive&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">ID_MAP_FILE</span><span class="o">=</span><span class="s2">&#34;/tmp/gdrive_id_map_latest.json&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># --- Caching &amp; Temporary Files ---</span>
</span></span><span class="line"><span class="cl"><span class="nv">MANIFEST_FILE</span><span class="o">=</span><span class="s2">&#34;</span><span class="nv">$ORGANIZED_DIR</span><span class="s2">/.last_run_manifest.txt&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">NEW_MANIFEST_FILE</span><span class="o">=</span><span class="s2">&#34;/tmp/current_manifest.txt&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># --- SCRIPT LOGIC ---</span>
</span></span><span class="line"><span class="cl"><span class="k">if</span> ! <span class="nb">command</span> -v jq <span class="p">&amp;</span>&gt; /dev/null<span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">    <span class="nb">echo</span> <span class="s2">&#34;Error: &#39;jq&#39; is not installed.&#34;</span> &gt;<span class="p">&amp;</span>2<span class="p">;</span> <span class="nb">exit</span> 1<span class="p">;</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;🗂️  Starting organization of synced AI Studio files.&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;    Source:      </span><span class="nv">$SOURCE_DIR</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;    Destination: </span><span class="nv">$ORGANIZED_DIR</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;🗺️   Generating fresh Drive ID map...&#34;</span>
</span></span><span class="line"><span class="cl">rclone lsjson <span class="s2">&#34;</span><span class="nv">$GDRIVE_REMOTE</span><span class="s2">&#34;</span>:<span class="s2">&#34;Google AI Studio&#34;</span> &gt; <span class="s2">&#34;</span><span class="nv">$ID_MAP_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[</span> <span class="nv">$?</span> -ne <span class="m">0</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">    <span class="nb">echo</span> <span class="s2">&#34;❌  Error: Failed to generate file map from rclone.&#34;</span> &gt;<span class="p">&amp;</span>2<span class="p">;</span> <span class="nb">exit</span> 1<span class="p">;</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;✅  ID Map created successfully.&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;🚀  Processing files and updating organized archive...&#34;</span>
</span></span><span class="line"><span class="cl">mkdir -p <span class="s2">&#34;</span><span class="nv">$ORGANIZED_DIR</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># --- STAGE 1: Identify all prompts for the progress bar ---</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;  -&gt; Identifying prompts to process (stability mode)...&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">PROMPT_LIST_FILE</span><span class="o">=</span><span class="s2">&#34;/tmp/prompt_list_to_process.txt&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">true</span> &gt; <span class="s2">&#34;</span><span class="nv">$PROMPT_LIST_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="k">for</span> file_path in <span class="s2">&#34;</span><span class="nv">$SOURCE_DIR</span><span class="s2">&#34;</span>/*<span class="p">;</span> <span class="k">do</span>
</span></span><span class="line"><span class="cl">    <span class="k">if</span> <span class="o">[</span> ! -f <span class="s2">&#34;</span><span class="nv">$file_path</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span> <span class="k">continue</span><span class="p">;</span> <span class="k">fi</span>
</span></span><span class="line"><span class="cl">    <span class="k">if</span> /bin/grep -q -I . <span class="s2">&#34;</span><span class="nv">$file_path</span><span class="s2">&#34;</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">        <span class="k">if</span> jq -e . <span class="s2">&#34;</span><span class="nv">$file_path</span><span class="s2">&#34;</span> &gt;/dev/null 2&gt;<span class="p">&amp;</span>1<span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">            <span class="nb">echo</span> <span class="s2">&#34;</span><span class="nv">$file_path</span><span class="s2">&#34;</span> &gt;&gt; <span class="s2">&#34;</span><span class="nv">$PROMPT_LIST_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">        <span class="k">fi</span>
</span></span><span class="line"><span class="cl">    <span class="k">fi</span>
</span></span><span class="line"><span class="cl">    <span class="c1"># STABILITY: This sleep is critical to prevent crashes during the initial scan.</span>
</span></span><span class="line"><span class="cl">    sleep 0.005
</span></span><span class="line"><span class="cl"><span class="k">done</span>
</span></span><span class="line"><span class="cl"><span class="nv">total_prompts</span><span class="o">=</span><span class="k">$(</span>wc -l &lt; <span class="s2">&#34;</span><span class="nv">$PROMPT_LIST_FILE</span><span class="s2">&#34;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;  -&gt; Found </span><span class="nv">$total_prompts</span><span class="s2"> prompts to check.&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># --- STAGE 2: Process the prompts ---</span>
</span></span><span class="line"><span class="cl"><span class="nb">true</span> &gt; <span class="s2">&#34;</span><span class="nv">$NEW_MANIFEST_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">processed_count</span><span class="o">=</span><span class="m">0</span>
</span></span><span class="line"><span class="cl"><span class="nv">updated_count</span><span class="o">=</span><span class="m">0</span>
</span></span><span class="line"><span class="cl"><span class="nv">skipped_count</span><span class="o">=</span><span class="m">0</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">while</span> <span class="nv">IFS</span><span class="o">=</span> <span class="nb">read</span> -r file_path<span class="p">;</span> <span class="k">do</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="o">((</span>processed_count++<span class="o">))</span>
</span></span><span class="line"><span class="cl">    <span class="nv">prompt_name</span><span class="o">=</span><span class="k">$(</span>basename <span class="s2">&#34;</span><span class="nv">$file_path</span><span class="s2">&#34;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="nv">current_hash</span><span class="o">=</span><span class="k">$(</span>md5sum <span class="s2">&#34;</span><span class="nv">$file_path</span><span class="s2">&#34;</span> <span class="p">|</span> awk <span class="s1">&#39;{print $1}&#39;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">    <span class="c1"># Write the full path to the manifest for an unambiguous key</span>
</span></span><span class="line"><span class="cl">    <span class="nb">echo</span> <span class="s2">&#34;</span><span class="nv">$current_hash</span><span class="s2">  </span><span class="nv">$file_path</span><span class="s2">&#34;</span> &gt;&gt; <span class="s2">&#34;</span><span class="nv">$NEW_MANIFEST_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="nv">stored_hash</span><span class="o">=</span><span class="s2">&#34;&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="k">if</span> <span class="o">[</span> -f <span class="s2">&#34;</span><span class="nv">$MANIFEST_FILE</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">        <span class="c1"># --- THE FINAL, CORRECTED CACHE LOOKUP ---</span>
</span></span><span class="line"><span class="cl">        <span class="c1"># Use the proven-correct awk command to find the exact matching path</span>
</span></span><span class="line"><span class="cl">        <span class="nv">match</span><span class="o">=</span><span class="k">$(</span>awk -v <span class="nv">path</span><span class="o">=</span><span class="s2">&#34;</span><span class="nv">$file_path</span><span class="s2">&#34;</span> <span class="s1">&#39;{
</span></span></span><span class="line"><span class="cl"><span class="s1">            reconstructed_path = $2;
</span></span></span><span class="line"><span class="cl"><span class="s1">            for (i = 3; i &lt;= NF; i++) {
</span></span></span><span class="line"><span class="cl"><span class="s1">                reconstructed_path = reconstructed_path &#34; &#34; $(i);
</span></span></span><span class="line"><span class="cl"><span class="s1">            }
</span></span></span><span class="line"><span class="cl"><span class="s1">            if (reconstructed_path == path) {
</span></span></span><span class="line"><span class="cl"><span class="s1">                print $1;
</span></span></span><span class="line"><span class="cl"><span class="s1">            }
</span></span></span><span class="line"><span class="cl"><span class="s1">        }&#39;</span> <span class="s2">&#34;</span><span class="nv">$MANIFEST_FILE</span><span class="s2">&#34;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">        <span class="nv">stored_hash</span><span class="o">=</span><span class="nv">$match</span>
</span></span><span class="line"><span class="cl">    <span class="k">fi</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="k">if</span> <span class="o">[</span> -n <span class="s2">&#34;</span><span class="nv">$current_hash</span><span class="s2">&#34;</span> <span class="o">]</span> <span class="o">&amp;&amp;</span> <span class="o">[</span> <span class="s2">&#34;</span><span class="nv">$current_hash</span><span class="s2">&#34;</span> <span class="o">==</span> <span class="s2">&#34;</span><span class="nv">$stored_hash</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">        <span class="o">((</span>skipped_count++<span class="o">))</span>
</span></span><span class="line"><span class="cl">        <span class="nb">printf</span> <span class="s2">&#34;\r  -&gt; Checking prompts: %d/%d processed, %d skipped...&#34;</span> <span class="s2">&#34;</span><span class="nv">$processed_count</span><span class="s2">&#34;</span> <span class="s2">&#34;</span><span class="nv">$total_prompts</span><span class="s2">&#34;</span> <span class="s2">&#34;</span><span class="nv">$skipped_count</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">        sleep 0.005 <span class="c1"># STABILITY</span>
</span></span><span class="line"><span class="cl">        <span class="k">continue</span>
</span></span><span class="line"><span class="cl">    <span class="k">fi</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="o">((</span>updated_count++<span class="o">))</span>
</span></span><span class="line"><span class="cl">    <span class="nb">echo</span>
</span></span><span class="line"><span class="cl">    <span class="nb">echo</span> <span class="s2">&#34;---&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="nb">echo</span> <span class="s2">&#34;Processing prompt: </span><span class="nv">$prompt_name</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="nb">echo</span> <span class="s2">&#34;  -&gt; New or modified file detected. Processing...&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="nv">win_path</span><span class="o">=</span><span class="k">$(</span>wslpath -w <span class="s2">&#34;</span><span class="nv">$file_path</span><span class="s2">&#34;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">    <span class="nv">escaped_win_path</span><span class="o">=</span><span class="s2">&#34;</span><span class="si">${</span><span class="nv">win_path</span><span class="p">//</span><span class="se">\&#39;</span><span class="p">/</span><span class="se">\&#39;\&#39;</span><span class="si">}</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="nv">creation_date</span><span class="o">=</span><span class="k">$(</span>/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -Command <span class="s2">&#34;(Get-ItemProperty -LiteralPath &#39;</span><span class="nv">$escaped_win_path</span><span class="s2">&#39;).CreationTime.ToString(&#39;yyyy-MM-dd&#39;)&#34;</span> &lt; /dev/null <span class="p">|</span> tr -d <span class="s1">&#39;\r&#39;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="nv">slug</span><span class="o">=</span><span class="k">$(</span><span class="nb">echo</span> <span class="s2">&#34;</span><span class="nv">$prompt_name</span><span class="s2">&#34;</span> <span class="p">|</span> iconv -t ascii//TRANSLIT <span class="p">|</span> sed -r <span class="s1">&#39;s/[^a-zA-Z0-9]+/-/g&#39;</span> <span class="p">|</span> sed -r <span class="s1">&#39;s/^-+|-+$//g&#39;</span> <span class="p">|</span> tr <span class="s1">&#39;[:upper:]&#39;</span> <span class="s1">&#39;[:lower:]&#39;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">    <span class="nv">target_folder_name</span><span class="o">=</span><span class="s2">&#34;</span><span class="si">${</span><span class="nv">creation_date</span><span class="si">}</span><span class="s2">_</span><span class="si">${</span><span class="nv">slug</span><span class="si">}</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="nv">target_folder_path</span><span class="o">=</span><span class="s2">&#34;</span><span class="si">${</span><span class="nv">ORGANIZED_DIR</span><span class="si">}</span><span class="s2">/</span><span class="si">${</span><span class="nv">target_folder_name</span><span class="si">}</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    mkdir -p <span class="s2">&#34;</span><span class="nv">$target_folder_path</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">    cp -u <span class="s2">&#34;</span><span class="nv">$file_path</span><span class="s2">&#34;</span> <span class="s2">&#34;</span><span class="nv">$target_folder_path</span><span class="s2">/&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="nv">doc_ids</span><span class="o">=</span><span class="k">$(</span>jq -r <span class="s1">&#39;.. | .driveDocument?.id | select(. != null)&#39;</span> <span class="s2">&#34;</span><span class="nv">$file_path</span><span class="s2">&#34;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">    <span class="k">if</span> <span class="o">[</span> -n <span class="s2">&#34;</span><span class="nv">$doc_ids</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">        <span class="k">for</span> doc_id in <span class="nv">$doc_ids</span><span class="p">;</span> <span class="k">do</span>
</span></span><span class="line"><span class="cl">            <span class="nv">file_to_copy</span><span class="o">=</span><span class="k">$(</span>jq -r --arg id <span class="s2">&#34;</span><span class="nv">$doc_id</span><span class="s2">&#34;</span> <span class="s1">&#39;.[] | select(.ID == $id) | .Name&#39;</span> <span class="s2">&#34;</span><span class="nv">$ID_MAP_FILE</span><span class="s2">&#34;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">            <span class="k">if</span> <span class="o">[</span> -n <span class="s2">&#34;</span><span class="nv">$file_to_copy</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">                <span class="nv">source_file_path</span><span class="o">=</span><span class="s2">&#34;</span><span class="nv">$SOURCE_DIR</span><span class="s2">/</span><span class="nv">$file_to_copy</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">                <span class="k">if</span> <span class="o">[</span> -f <span class="s2">&#34;</span><span class="nv">$source_file_path</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">                    cp -u <span class="s2">&#34;</span><span class="nv">$source_file_path</span><span class="s2">&#34;</span> <span class="s2">&#34;</span><span class="nv">$target_folder_path</span><span class="s2">/&#34;</span>
</span></span><span class="line"><span class="cl">                <span class="k">fi</span>
</span></span><span class="line"><span class="cl">            <span class="k">fi</span>
</span></span><span class="line"><span class="cl">            <span class="c1"># STABILITY: This sleep is critical to prevent crashes in the nested loop</span>
</span></span><span class="line"><span class="cl">            sleep 0.01
</span></span><span class="line"><span class="cl">        <span class="k">done</span>
</span></span><span class="line"><span class="cl">    <span class="k">fi</span>
</span></span><span class="line"><span class="cl"><span class="k">done</span> &lt; <span class="s2">&#34;</span><span class="nv">$PROMPT_LIST_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Final summary</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span>
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[</span> <span class="s2">&#34;</span><span class="nv">$updated_count</span><span class="s2">&#34;</span> -eq <span class="m">0</span> <span class="o">]</span> <span class="o">&amp;&amp;</span> <span class="o">[</span> <span class="s2">&#34;</span><span class="nv">$processed_count</span><span class="s2">&#34;</span> -gt <span class="m">0</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">    <span class="nb">echo</span> <span class="s2">&#34;  -&gt; All </span><span class="nv">$processed_count</span><span class="s2"> checked prompts were up-to-date.&#34;</span>
</span></span><span class="line"><span class="cl"><span class="k">else</span>
</span></span><span class="line"><span class="cl">    <span class="nb">echo</span> <span class="s2">&#34;  -&gt; Summary: </span><span class="nv">$processed_count</span><span class="s2"> prompts checked, </span><span class="nv">$updated_count</span><span class="s2"> updated, </span><span class="nv">$skipped_count</span><span class="s2"> unchanged.&#34;</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Replace the old manifest</span>
</span></span><span class="line"><span class="cl">mv <span class="s2">&#34;</span><span class="nv">$NEW_MANIFEST_FILE</span><span class="s2">&#34;</span> <span class="s2">&#34;</span><span class="nv">$MANIFEST_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Clean up temporary files</span>
</span></span><span class="line"><span class="cl">rm <span class="s2">&#34;</span><span class="nv">$ID_MAP_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">rm <span class="s2">&#34;</span><span class="nv">$PROMPT_LIST_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;---&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;✅  AI Studio archive is now up-to-date.&#34;</span>
</span></span></code></pre></div></details>
<p>Critical: Because I (still) work on WSL1 with Windows, I had to use the following line in the script to parse File Creation dates from NTFS:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nv">creation_date</span><span class="o">=</span><span class="k">$(</span>/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -Command <span class="s2">&#34;(Get-ItemProperty -LiteralPath &#39;</span><span class="nv">$escaped_win_path</span><span class="s2">&#39;).CreationTime.ToString(&#39;yyyy-MM-dd&#39;)&#34;</span> &lt; /dev/null <span class="p">|</span> tr -d <span class="s1">&#39;\r&#39;</span><span class="k">)</span>
</span></span></code></pre></div><p>Under native Linux, this line would be simpler.</p>
<h2 id="restore-script">Restore Script</h2>
<p>This script automates restoring a backed-up prompt (including any associated files like documents or images) to AI Studio. It uploads the necessary files, maps the old file IDs to the new ones, and overwrites a temporary &ldquo;bait&rdquo; prompt with the restored content and correct name. The bait prompt step is necessary because there is currently no way to proactively link GDrive Content to AI Studio History.</p>
<details>
<summary><strong>restore-hijack.sh</strong></summary>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="cp">#!/bin/bash
</span></span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># The definitive, human-guided &#34;hijack&#34; restore script.</span>
</span></span><span class="line"><span class="cl"><span class="c1"># It automates the technical steps and pauses for the necessary manual interaction.</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">set</span> -e
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># --- CONFIGURATION ---</span>
</span></span><span class="line"><span class="cl"><span class="nv">GDRIVE_REMOTE</span><span class="o">=</span><span class="s2">&#34;gdrive&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">GDRIVE_TARGET_DIR</span><span class="o">=</span><span class="s2">&#34;Google AI Studio&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">BACKUP_BASE_PATH</span><span class="o">=</span><span class="s2">&#34;/c/your/path/to/backup/folder/GoogleAIStudio_Organized&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># --- LOAD .ENV FILE ---</span>
</span></span><span class="line"><span class="cl"><span class="c1"># Get the directory where the script is located, regardless of where it&#39;s called from</span>
</span></span><span class="line"><span class="cl"><span class="nv">SCRIPT_DIR</span><span class="o">=</span><span class="k">$(</span><span class="nb">cd</span> -- <span class="s2">&#34;</span><span class="k">$(</span>dirname -- <span class="s2">&#34;</span><span class="si">${</span><span class="nv">BASH_SOURCE</span><span class="p">[0]</span><span class="si">}</span><span class="s2">&#34;</span><span class="k">)</span><span class="s2">&#34;</span> <span class="p">&amp;</span>&gt;/dev/null <span class="o">&amp;&amp;</span> <span class="nb">pwd</span><span class="k">)</span>
</span></span><span class="line"><span class="cl"><span class="nv">ENV_FILE</span><span class="o">=</span><span class="s2">&#34;</span><span class="nv">$SCRIPT_DIR</span><span class="s2">/.env&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[</span> -f <span class="s2">&#34;</span><span class="nv">$ENV_FILE</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">	<span class="nb">echo</span> <span class="s2">&#34;  -&gt; Loading configuration from </span><span class="nv">$ENV_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">	<span class="c1"># Export the variables from the .env file to make them available to the script</span>
</span></span><span class="line"><span class="cl">	<span class="nb">export</span> <span class="s2">&#34;</span><span class="k">$(</span>grep -v <span class="s1">&#39;^#&#39;</span> <span class="s2">&#34;</span><span class="nv">$ENV_FILE</span><span class="s2">&#34;</span> <span class="p">|</span> xargs<span class="k">)</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># --- SCRIPT LOGIC ---</span>
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[</span> -z <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">	<span class="nb">echo</span> <span class="s2">&#34;❌ Error: You must provide the NAME of the prompt folder to restore.&#34;</span> &gt;<span class="p">&amp;</span><span class="m">2</span>
</span></span><span class="line"><span class="cl">	<span class="nb">echo</span> <span class="s2">&#34;   Usage: ./restore-hijack.sh &#39;2025-09-12_ai-fallacies-over-promising-under-delivering&#39;&#34;</span>
</span></span><span class="line"><span class="cl">	<span class="nb">exit</span> <span class="m">1</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Construct the full path by combining the base path and the provided folder name.</span>
</span></span><span class="line"><span class="cl"><span class="c1"># The `${BACKUP_BASE_PATH%/}` part removes a trailing slash from the base path,</span>
</span></span><span class="line"><span class="cl"><span class="c1"># if it exists, to prevent double slashes.</span>
</span></span><span class="line"><span class="cl"><span class="nv">LOCAL_PROMPT_DIR</span><span class="o">=</span><span class="s2">&#34;</span><span class="si">${</span><span class="nv">BACKUP_BASE_PATH</span><span class="p">%/</span><span class="si">}</span><span class="s2">/</span><span class="nv">$1</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[</span> ! -d <span class="s2">&#34;</span><span class="nv">$LOCAL_PROMPT_DIR</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">	<span class="nb">echo</span> <span class="s2">&#34;❌ Error: Directory not found: &#39;</span><span class="nv">$LOCAL_PROMPT_DIR</span><span class="s2">&#39;&#34;</span> &gt;<span class="p">&amp;</span><span class="m">2</span>
</span></span><span class="line"><span class="cl">	<span class="nb">exit</span> <span class="m">1</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl"><span class="c1"># --- STAGE 1: Find Prompt and Extract Context ---</span>
</span></span><span class="line"><span class="cl"><span class="nv">ORIGINAL_PROMPT_FILE</span><span class="o">=</span><span class="s2">&#34;&#34;</span>
</span></span><span class="line"><span class="cl"><span class="k">for</span> file in <span class="s2">&#34;</span><span class="nv">$LOCAL_PROMPT_DIR</span><span class="s2">&#34;</span>/*<span class="p">;</span> <span class="k">do</span>
</span></span><span class="line"><span class="cl">	<span class="k">if</span> <span class="o">[</span> -f <span class="s2">&#34;</span><span class="nv">$file</span><span class="s2">&#34;</span> <span class="o">]</span> <span class="o">&amp;&amp;</span> jq -e . <span class="s2">&#34;</span><span class="nv">$file</span><span class="s2">&#34;</span> &gt;/dev/null 2&gt;<span class="p">&amp;</span>1<span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">		<span class="nv">ORIGINAL_PROMPT_FILE</span><span class="o">=</span><span class="nv">$file</span>
</span></span><span class="line"><span class="cl">		<span class="nb">break</span>
</span></span><span class="line"><span class="cl">	<span class="k">fi</span>
</span></span><span class="line"><span class="cl"><span class="k">done</span>
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[</span> -z <span class="s2">&#34;</span><span class="nv">$ORIGINAL_PROMPT_FILE</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">	<span class="nb">echo</span> <span class="s2">&#34;❌ Error: Could not find a valid JSON prompt file in &#39;</span><span class="nv">$LOCAL_PROMPT_DIR</span><span class="s2">&#39;.&#34;</span> &gt;<span class="p">&amp;</span><span class="m">2</span>
</span></span><span class="line"><span class="cl">	<span class="nb">exit</span> <span class="m">1</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl"><span class="nv">PROMPT_FILENAME</span><span class="o">=</span><span class="k">$(</span>basename <span class="s2">&#34;</span><span class="nv">$ORIGINAL_PROMPT_FILE</span><span class="s2">&#34;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl"><span class="nv">PROMPT_CONTEXT</span><span class="o">=</span><span class="k">$(</span>jq -r <span class="s1">&#39;.chunkedPrompt.chunks[] | select(.role == &#34;user&#34; and .text) | .text&#39;</span> <span class="s2">&#34;</span><span class="nv">$ORIGINAL_PROMPT_FILE</span><span class="s2">&#34;</span> <span class="p">|</span> head -n <span class="m">3</span> <span class="p">|</span> sed <span class="s1">&#39;s/&#34;/\\&#34;/g&#39;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[</span> -z <span class="s2">&#34;</span><span class="nv">$PROMPT_CONTEXT</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">	<span class="nv">PROMPT_CONTEXT</span><span class="o">=</span><span class="s2">&#34;&lt;No text found, using filename as context&gt;&#34;</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># --- STAGE 2: Guide the User to Create the &#34;Bait&#34; Prompt ---</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;------------------------------------------------------------&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;STEP 1: CREATE A &#39;BAIT&#39; PROMPT IN AI STUDIO&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;------------------------------------------------------------&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;I will now pause. Please perform the following steps:&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;1. Go to Google AI Studio and create a NEW, BLANK prompt.&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;2. To help AI Studio create a similar name, copy and paste the following&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;   text into the first user input box:&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;   -------------------- CONTEXT --------------------&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;   Prompt Name: </span><span class="nv">$PROMPT_FILENAME</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;   Initial Text: </span><span class="nv">$PROMPT_CONTEXT</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;   -----------------------------------------------&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;3. Click &#39;Run&#39; and then SAVE the prompt.&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">read</span> -r -p <span class="s2">&#34;Press ENTER here when you have saved the new prompt in AI Studio...&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;------------------------------------------------------------&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># --- STAGE 3: Find the &#34;Bait&#34; Prompt ---</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;  -&gt; Searching for the &#39;bait&#39; prompt you just created...&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">BAIT_PROMPT_NAME</span><span class="o">=</span><span class="k">$(</span>rclone lsjson <span class="s2">&#34;</span><span class="nv">$GDRIVE_REMOTE</span><span class="s2">:</span><span class="nv">$GDRIVE_TARGET_DIR</span><span class="s2">&#34;</span> <span class="p">|</span> jq -r <span class="s1">&#39;[.[] | select(.IsDir == false)] | sort_by(.ModTime) | .[-1].Name&#39;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[</span> -z <span class="s2">&#34;</span><span class="nv">$BAIT_PROMPT_NAME</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">	<span class="nb">echo</span> <span class="s2">&#34;❌ Error: Could not find any prompts on Google Drive.&#34;</span> &gt;<span class="p">&amp;</span><span class="m">2</span>
</span></span><span class="line"><span class="cl">	<span class="nb">exit</span> <span class="m">1</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;    ✅ Found bait prompt: &#39;</span><span class="nv">$BAIT_PROMPT_NAME</span><span class="s2">&#39; (the newest file).&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># --- STAGE 4: Prepare and Hijack ---</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;  -&gt; Preparing the re-linked JSON payload from backup...&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">PAYLOAD_FILE</span><span class="o">=</span><span class="s2">&#34;/tmp/restored_payload.json&#34;</span>
</span></span><span class="line"><span class="cl">cp <span class="s2">&#34;</span><span class="nv">$ORIGINAL_PROMPT_FILE</span><span class="s2">&#34;</span> <span class="s2">&#34;</span><span class="nv">$PAYLOAD_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">ID_MAP_REPLACE_FILE</span><span class="o">=</span><span class="s2">&#34;/tmp/id_replace_map.txt&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">true</span> &gt;<span class="s2">&#34;</span><span class="nv">$ID_MAP_REPLACE_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">CONTENT_FILE_LIST</span><span class="o">=</span><span class="k">$(</span>find <span class="s2">&#34;</span><span class="nv">$LOCAL_PROMPT_DIR</span><span class="s2">&#34;</span> -maxdepth <span class="m">1</span> -type f -not -name <span class="s2">&#34;</span><span class="nv">$PROMPT_FILENAME</span><span class="s2">&#34;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[</span> -z <span class="s2">&#34;</span><span class="nv">$CONTENT_FILE_LIST</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">	<span class="nb">echo</span> <span class="s2">&#34;    - No separate content files found to upload.&#34;</span>
</span></span><span class="line"><span class="cl"><span class="k">else</span>
</span></span><span class="line"><span class="cl">	<span class="nb">echo</span> <span class="s2">&#34;</span><span class="nv">$CONTENT_FILE_LIST</span><span class="s2">&#34;</span> <span class="p">|</span> <span class="k">while</span> <span class="nb">read</span> -r file_path<span class="p">;</span> <span class="k">do</span>
</span></span><span class="line"><span class="cl">		<span class="nv">filename</span><span class="o">=</span><span class="k">$(</span>basename <span class="s2">&#34;</span><span class="nv">$file_path</span><span class="s2">&#34;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">		<span class="nb">echo</span> <span class="s2">&#34;    - Uploading content: &#39;</span><span class="nv">$filename</span><span class="s2">&#39;...&#34;</span>
</span></span><span class="line"><span class="cl">		rclone copyto <span class="s2">&#34;</span><span class="nv">$file_path</span><span class="s2">&#34;</span> <span class="s2">&#34;</span><span class="nv">$GDRIVE_REMOTE</span><span class="s2">:</span><span class="nv">$GDRIVE_TARGET_DIR</span><span class="s2">/</span><span class="nv">$filename</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">	<span class="k">done</span>
</span></span><span class="line"><span class="cl">	<span class="nb">echo</span> <span class="s2">&#34;    - Pausing for 10 seconds to allow Google Drive to index new files...&#34;</span>
</span></span><span class="line"><span class="cl">	sleep <span class="m">10</span>
</span></span><span class="line"><span class="cl">	<span class="nb">echo</span> <span class="s2">&#34;    - Building ID map...&#34;</span>
</span></span><span class="line"><span class="cl">	<span class="nv">REMOTE_FILES_JSON</span><span class="o">=</span><span class="k">$(</span>rclone lsjson <span class="s2">&#34;</span><span class="nv">$GDRIVE_REMOTE</span><span class="s2">:</span><span class="nv">$GDRIVE_TARGET_DIR</span><span class="s2">&#34;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">	mapfile -t OLD_IDS &lt; &lt;<span class="o">(</span>jq -r <span class="s1">&#39;.chunkedPrompt.chunks[] | (.driveDocument?.id, .driveImage?.id) | select(. != null)&#39;</span> <span class="s2">&#34;</span><span class="nv">$ORIGINAL_PROMPT_FILE</span><span class="s2">&#34;</span><span class="o">)</span>
</span></span><span class="line"><span class="cl">	mapfile -d <span class="s1">&#39;&#39;</span> CONTENT_FILES &lt; &lt;<span class="o">(</span>find <span class="s2">&#34;</span><span class="nv">$LOCAL_PROMPT_DIR</span><span class="s2">&#34;</span> -maxdepth <span class="m">1</span> -type f -not -name <span class="s2">&#34;</span><span class="nv">$PROMPT_FILENAME</span><span class="s2">&#34;</span> -print0<span class="o">)</span>
</span></span><span class="line"><span class="cl">	<span class="k">for</span> i in <span class="s2">&#34;</span><span class="si">${</span><span class="p">!CONTENT_FILES[@]</span><span class="si">}</span><span class="s2">&#34;</span><span class="p">;</span> <span class="k">do</span>
</span></span><span class="line"><span class="cl">		<span class="nv">local_file_path</span><span class="o">=</span><span class="si">${</span><span class="nv">CONTENT_FILES</span><span class="p">[</span><span class="nv">$i</span><span class="p">]</span><span class="si">}</span>
</span></span><span class="line"><span class="cl">		<span class="nv">old_id</span><span class="o">=</span><span class="si">${</span><span class="nv">OLD_IDS</span><span class="p">[</span><span class="nv">$i</span><span class="p">]</span><span class="si">}</span>
</span></span><span class="line"><span class="cl">		<span class="nv">local_filename</span><span class="o">=</span><span class="k">$(</span>basename <span class="s2">&#34;</span><span class="nv">$local_file_path</span><span class="s2">&#34;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">		<span class="nv">new_id</span><span class="o">=</span><span class="k">$(</span><span class="nb">echo</span> <span class="s2">&#34;</span><span class="nv">$REMOTE_FILES_JSON</span><span class="s2">&#34;</span> <span class="p">|</span> jq -r --arg name <span class="s2">&#34;</span><span class="nv">$local_filename</span><span class="s2">&#34;</span> <span class="s1">&#39;.[] | select(.Name == $name) | .ID&#39;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">		<span class="k">if</span> <span class="o">[</span> -n <span class="s2">&#34;</span><span class="nv">$new_id</span><span class="s2">&#34;</span> <span class="o">]</span> <span class="o">&amp;&amp;</span> <span class="o">[</span> -n <span class="s2">&#34;</span><span class="nv">$old_id</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">			<span class="nb">echo</span> <span class="s2">&#34;s/</span><span class="nv">$old_id</span><span class="s2">/</span><span class="nv">$new_id</span><span class="s2">/g&#34;</span> &gt;&gt;<span class="s2">&#34;</span><span class="nv">$ID_MAP_REPLACE_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">			<span class="nb">echo</span> <span class="s2">&#34;      - Mapped &#39;</span><span class="nv">$local_filename</span><span class="s2">&#39;: </span><span class="nv">$old_id</span><span class="s2"> -&gt; </span><span class="nv">$new_id</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">		<span class="k">else</span>
</span></span><span class="line"><span class="cl">			<span class="nb">echo</span> <span class="s2">&#34;    ⚠️ Warning: Could not find a new ID for content file &#39;</span><span class="nv">$local_filename</span><span class="s2">&#39;.&#34;</span>
</span></span><span class="line"><span class="cl">		<span class="k">fi</span>
</span></span><span class="line"><span class="cl">	<span class="k">done</span>
</span></span><span class="line"><span class="cl">	sed -i -f <span class="s2">&#34;</span><span class="nv">$ID_MAP_REPLACE_FILE</span><span class="s2">&#34;</span> <span class="s2">&#34;</span><span class="nv">$PAYLOAD_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;    ✅ Payload ready.&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;  -&gt; Overwriting the content of the &#39;bait&#39; prompt...&#34;</span>
</span></span><span class="line"><span class="cl">rclone copyto <span class="s2">&#34;</span><span class="nv">$PAYLOAD_FILE</span><span class="s2">&#34;</span> <span class="s2">&#34;</span><span class="nv">$GDRIVE_REMOTE</span><span class="s2">:</span><span class="nv">$GDRIVE_TARGET_DIR</span><span class="s2">/</span><span class="nv">$BAIT_PROMPT_NAME</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;    ✅ Hijack complete.&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># --- STAGE 5: AUTOMATICALLY RENAME THE PROMPT ---</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;  -&gt; Renaming the prompt on Google Drive...&#34;</span>
</span></span><span class="line"><span class="cl"><span class="c1"># The desired final name is the name of the local folder</span>
</span></span><span class="line"><span class="cl"><span class="nv">FINAL_PROMPT_NAME</span><span class="o">=</span><span class="k">$(</span>basename <span class="s2">&#34;</span><span class="nv">$LOCAL_PROMPT_DIR</span><span class="s2">&#34;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl"><span class="c1"># Use &#39;moveto&#39; to perform the rename operation</span>
</span></span><span class="line"><span class="cl">rclone moveto <span class="s2">&#34;</span><span class="nv">$GDRIVE_REMOTE</span><span class="s2">:</span><span class="nv">$GDRIVE_TARGET_DIR</span><span class="s2">/</span><span class="nv">$BAIT_PROMPT_NAME</span><span class="s2">&#34;</span> <span class="s2">&#34;</span><span class="nv">$GDRIVE_REMOTE</span><span class="s2">:</span><span class="nv">$GDRIVE_TARGET_DIR</span><span class="s2">/</span><span class="nv">$FINAL_PROMPT_NAME</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;    ✅ Renamed to &#39;</span><span class="nv">$FINAL_PROMPT_NAME</span><span class="s2">&#39;.&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># --- CLEANUP ---</span>
</span></span><span class="line"><span class="cl">rm <span class="s2">&#34;</span><span class="nv">$PAYLOAD_FILE</span><span class="s2">&#34;</span> <span class="s2">&#34;</span><span class="nv">$ID_MAP_REPLACE_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;------------------------------------------------------------&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;✅  Restore process complete.&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;FINAL STEP:&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;1. Go to https://aistudio.google.com/app/prompts&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;2. Find and open the prompt named &#39;</span><span class="nv">$FINAL_PROMPT_NAME</span><span class="s2">&#39;.&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;3. It should now contain the fully restored content.&#34;</span>
</span></span></code></pre></div></details>
<h1 id="setup-and-usage">Setup and Usage</h1>
<p>The script requires <a href="https://rclone.org/">rclone</a> as a dependency and it must be setup with a functioning Google API key.</p>
<p>Both scripts are path-agnostic and can be placed anywhere. Configuration is handled via a <code>.env</code> file located in the same directory as the scripts.</p>
<ol>
<li>
<p><strong>Create a <code>.env</code> file</strong> in the same folder as the scripts. You can copy the example below.</p>
</li>
<li>
<p><strong>Adjust the variables</strong> in the <code>.env</code> file to match your setup (<code>GDRIVE_REMOTE</code>, <code>GDRIVE_TARGET_DIR</code>, and <code>BACKUP_BASE_PATH</code>).</p>
</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-env" data-lang="env"><span class="line"><span class="cl"><span class="c1"># .env - Configuration for the backup and restore script</span>
</span></span><span class="line"><span class="cl"><span class="c1"># These values will override the defaults in the script.</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nv">GDRIVE_REMOTE</span><span class="o">=</span><span class="s2">&#34;gdrive&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">GDRIVE_TARGET_DIR</span><span class="o">=</span><span class="s2">&#34;Google AI Studio&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">BACKUP_BASE_PATH</span><span class="o">=</span><span class="s2">&#34;/path/to/your/GoogleAIStudio_Organized/&#34;</span>
</span></span></code></pre></div><ol start="3">
<li>Run the Backup script</li>
</ol>
<p>I have added the backup script to my <code>daily.sh</code> file, a file that I run on a daily basis.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="cp">#!/usr/bin/env bash
</span></span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Exit on error</span>
</span></span><span class="line"><span class="cl"><span class="nb">set</span> -e
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Get the directory where daily.sh is located to reliably find organize_archive.sh</span>
</span></span><span class="line"><span class="cl"><span class="nv">SCRIPT_DIR</span><span class="o">=</span><span class="k">$(</span> <span class="nb">cd</span> -- <span class="s2">&#34;</span><span class="k">$(</span> dirname -- <span class="s2">&#34;</span><span class="si">${</span><span class="nv">BASH_SOURCE</span><span class="p">[0]</span><span class="si">}</span><span class="s2">&#34;</span> <span class="k">)</span><span class="s2">&#34;</span> <span class="p">&amp;</span>&gt; /dev/null <span class="o">&amp;&amp;</span> <span class="nb">pwd</span> <span class="k">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Define the target sync folder</span>
</span></span><span class="line"><span class="cl"><span class="nv">SYNC_DIR</span><span class="o">=</span><span class="s2">&#34;/tmp/gdrive_sync&#34;</span>
</span></span><span class="line"><span class="cl">mkdir -p <span class="s2">&#34;</span><span class="nv">$SYNC_DIR</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># === RCLONE SYNC STAGE ===</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Change to the target directory</span>
</span></span><span class="line"><span class="cl"><span class="nb">cd</span> <span class="s2">&#34;</span><span class="nv">$SYNC_DIR</span><span class="s2">&#34;</span> <span class="o">||</span> <span class="nb">exit</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># --- Google AI Studio Sync ---</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;---&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;🔄 Preparing to sync Google AI Studio...&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># STEP 1: Deduplicate the remote source to prevent local file conflicts.</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;⚠️  Deduplicating remote source (renames older duplicate files)...&#34;</span>
</span></span><span class="line"><span class="cl">rclone dedupe --dedupe-mode rename gdrive:<span class="s2">&#34;Google AI Studio&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># STEP 2: Sync the now-clean source.</span>
</span></span><span class="line"><span class="cl">rclone sync --auto-confirm --create-empty-src-dirs gdrive:<span class="s2">&#34;Google AI Studio&#34;</span> <span class="s2">&#34;./Google AI Studio&#34;</span> <span class="se">\
</span></span></span><span class="line"><span class="cl">    --bwlimit 4325k -P --log-level ERROR
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># === SANITIZE FILES STAGE ===</span>
</span></span><span class="line"><span class="cl"><span class="c1"># this is necessary because some AI Studio json end with a dot, which is not supported</span>
</span></span><span class="line"><span class="cl"><span class="c1"># as file or folder names in Windows/NTFS</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">find <span class="s2">&#34;</span><span class="nv">$SYNC_DIR</span><span class="s2">&#34;</span> -type f -name <span class="s1">&#39;*.&#39;</span> <span class="p">|</span> <span class="k">while</span> <span class="nb">read</span> -r file<span class="p">;</span> <span class="k">do</span>
</span></span><span class="line"><span class="cl">    <span class="c1"># Remove trailing dot</span>
</span></span><span class="line"><span class="cl">    <span class="nv">newname</span><span class="o">=</span><span class="s2">&#34;</span><span class="si">${</span><span class="nv">file</span><span class="p">%?</span><span class="si">}</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="k">if</span> <span class="o">[[</span> -e <span class="s2">&#34;</span><span class="nv">$newname</span><span class="s2">&#34;</span> <span class="o">]]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">        <span class="nb">echo</span> <span class="s2">&#34;Deleting duplicate with dot: &#39;</span><span class="nv">$file</span><span class="s2">&#39;&#34;</span>
</span></span><span class="line"><span class="cl">        rm -- <span class="s2">&#34;</span><span class="nv">$file</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="k">else</span>
</span></span><span class="line"><span class="cl">        <span class="nb">echo</span> <span class="s2">&#34;Renaming: &#39;</span><span class="nv">$file</span><span class="s2">&#39; -&gt; &#39;</span><span class="nv">$newname</span><span class="s2">&#39;&#34;</span>
</span></span><span class="line"><span class="cl">        mv -- <span class="s2">&#34;</span><span class="nv">$file</span><span class="s2">&#34;</span> <span class="s2">&#34;</span><span class="nv">$newname</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="k">fi</span>
</span></span><span class="line"><span class="cl"><span class="k">done</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;✅ Google Drive sync completed.&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;---&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># === (OPTIONAL) ORGANIZE AI STUDIO ARCHIVE STAGE ===</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">read</span> -p <span class="s2">&#34;Do you want to run the full organization for the AI Studio archive? (y/n) &#34;</span> -n <span class="m">1</span> -r
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="c1"># Move to a new line</span>
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[[</span> <span class="s2">&#34;</span><span class="nv">$REPLY</span><span class="s2">&#34;</span> <span class="o">=</span>~ ^<span class="o">[</span>Yy<span class="o">]</span>$ <span class="o">]]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;</span><span class="nv">$SCRIPT_DIR</span><span class="s2">/organize_archive_win.sh&#34;</span>
</span></span><span class="line"><span class="cl"><span class="k">else</span>
</span></span><span class="line"><span class="cl">    <span class="nb">echo</span> <span class="s2">&#34;Skipping organization step.&#34;</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Final success message</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;✅ Daily script finished.&#34;</span>
</span></span></code></pre></div><p>As you can see, there&rsquo;s a critical line added to this:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">rclone dedupe --dedupe-mode rename gdrive:<span class="s2">&#34;Google AI Studio&#34;</span>
</span></span></code></pre></div><p>Google Drive supports files with the same name, as it disambiguates on file id, not name.
However, locally, files with the same name are not allowed. The rclone line will rename
these files on GDrive first. They will keep working in GDrive because their ID remains the same.</p>
<p>Here&rsquo;s a sample log:</p>
<pre tabindex="0"><code>🔄 Preparing to sync Google AI Studio...
⚠️  Deduplicating remote source (renames older duplicate files)...
Transferred:      457.091 KiB / 457.091 KiB, 100%, 256.001 KiB/s, ETA 0s
Checks:                29 / 29, 100%
Deleted:                2 (files), 0 (dirs), 457.091 KiB (freed)
Transferred:            2 / 2, 100%
Elapsed time:         2.4s

✅ Google Drive sync completed.
---
Do you want to run the full organization for the AI Studio archive? (y/n) y
🗂️  Starting organization of synced AI Studio files.
    Source:      /tmp/gdrive_sync/Google AI Studio
    Destination: /path/to/your/GoogleAIStudio_Organized/

🗺️   Generating fresh Drive ID map...

✅  ID Map created successfully.

🚀  Processing files and updating organized archive...
  -&gt; Identifying prompts to process (stability mode)...
  -&gt; Found 7 prompts to check.
  -&gt; Checking prompts: 7/7 processed, 7 skipped...
  -&gt; All 7 checked prompts were up-to-date.

---
✅  AI Studio archive is now up-to-date.
✅ Daily script finished.
</code></pre><ol start="4">
<li><strong>To run the restore script</strong>, execute it from your terminal. Provide the name of the backup folder for which you wish to restore the prompt archive back to AI Studio:</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">./restore-hijack.sh <span class="s1">&#39;2025-09-12_ai-fallacies-over-promising-under-delivering&#39;</span>
</span></span></code></pre></div><p>The script will then guide you through the interactive steps required.</p>
<p>Here&rsquo;s an example log:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">./restore-hijack.sh <span class="s2">&#34;2025-10-28_postdoc-survival-tame-information-flood&#34;</span>
</span></span><span class="line"><span class="cl">  -&gt; Loading configuration from .env
</span></span><span class="line"><span class="cl">------------------------------------------------------------
</span></span><span class="line"><span class="cl">STEP 1: CREATE A <span class="s1">&#39;BAIT&#39;</span> PROMPT IN AI STUDIO
</span></span><span class="line"><span class="cl">------------------------------------------------------------
</span></span><span class="line"><span class="cl">I will now pause. Please perform the following steps:
</span></span><span class="line"><span class="cl">1. Go to Google AI Studio and create a NEW, BLANK prompt.
</span></span><span class="line"><span class="cl">2. To <span class="nb">help</span> AI Studio create a similar name, copy and paste the following
</span></span><span class="line"><span class="cl">   text into the first user input box:
</span></span><span class="line"><span class="cl">   -------------------- CONTEXT --------------------
</span></span><span class="line"><span class="cl">   Prompt Name: Postdoc Survival: Tame Information Flood
</span></span><span class="line"><span class="cl">   Initial Text: I would like to offer a meeting/workshop/learning session in our scientific institution <span class="k">for</span> postdocs and phd to cope with the daily information flood: I am a Postdoc in my 8th year and survived so far, also <span class="o">(</span>I think<span class="o">)</span> because I have a number of daily routines and best practices that <span class="nb">help</span> me survive:
</span></span><span class="line"><span class="cl">   -----------------------------------------------
</span></span><span class="line"><span class="cl">3. Click <span class="s1">&#39;Run&#39;</span> and <span class="k">then</span> SAVE the prompt.
</span></span><span class="line"><span class="cl">Press ENTER here when you have saved the new prompt in AI Studio...
</span></span><span class="line"><span class="cl">------------------------------------------------------------
</span></span><span class="line"><span class="cl">  -&gt; Searching <span class="k">for</span> the <span class="s1">&#39;bait&#39;</span> prompt you just created...
</span></span><span class="line"><span class="cl">    ✅ Found bait prompt: <span class="s1">&#39;Taming The Information Flood&#39;</span> <span class="o">(</span>the newest file<span class="o">)</span>.
</span></span><span class="line"><span class="cl">  -&gt; Preparing the re-linked JSON payload from backup...
</span></span><span class="line"><span class="cl">    - Uploading content: <span class="s1">&#39;0001-01-01-welcome.md&#39;</span>...
</span></span><span class="line"><span class="cl">        - Uploading content: <span class="s1">&#39;0002-01-01-intro.md&#39;</span>...
</span></span><span class="line"><span class="cl">    - Uploading content: <span class="s1">&#39;0003-01-01-why.md&#39;</span>...
</span></span><span class="line"><span class="cl">        - Uploading content: <span class="s1">&#39;0004-01-01-retrieval.md&#39;</span>...
</span></span><span class="line"><span class="cl">        - Uploading content: <span class="s1">&#39;0005-01-01-visualization.md&#39;</span>...
</span></span><span class="line"><span class="cl">    - Uploading content: <span class="s1">&#39;0006-01-01-chore.md&#39;</span>...
</span></span><span class="line"><span class="cl">    - Uploading content: <span class="s1">&#39;0007-01-01-outro.md&#39;</span>...
</span></span><span class="line"><span class="cl">        - Uploading content: <span class="s1">&#39;cv_alexanderdunkel.pdf&#39;</span>...
</span></span><span class="line"><span class="cl">        - Pausing <span class="k">for</span> <span class="m">10</span> seconds to allow Google Drive to index new files...
</span></span><span class="line"><span class="cl">        - Building ID map...
</span></span><span class="line"><span class="cl">      - Mapped <span class="s1">&#39;0001-01-01-welcome.md&#39;</span>: 1fA9k-7oPqRsT6uVwXyZ1aB2cD3eF4gH5 -&gt; 1bCrvs-JesMP1SCfXTKzGwJP7TtklvQMp
</span></span><span class="line"><span class="cl">      - Mapped <span class="s1">&#39;0002-01-01-intro.md&#39;</span>: 1-muVPS0sb3UaK2U0_IgW9GB12yJ_n34NH -&gt; 1q8KPakfM4L1I0rvYbvWzdHkgmmzIosO_
</span></span><span class="line"><span class="cl">      - Mapped <span class="s1">&#39;0003-01-01-why.md&#39;</span>: 1jQwUQ4DnhS9W0KuXSFoPfA5a-JQEe9zW -&gt; 1BiK369ULEwHcPZ9K-i8pxyVU7A4xi5Nl
</span></span><span class="line"><span class="cl">      - Mapped <span class="s1">&#39;0004-01-01-retrieval.md&#39;</span>: 1gH5iJ6kL7mN8oP9qR1sT2uV3wX4yZ5a -&gt; 1sgmnRdBaQ5bTWfOhoq1kQlcKgSasKj78
</span></span><span class="line"><span class="cl">      - Mapped <span class="s1">&#39;0005-01-01-visualization.md&#39;</span>: 1kL7mN8oP9qR1sT2uV3wX4yZ5aB6cD7e -&gt; 1jk2FUirydr3sjFtMGg0AWn4C-bgRzUyb
</span></span><span class="line"><span class="cl">      - Mapped <span class="s1">&#39;0006-01-01-chore.md&#39;</span>: 1hb_Z6w2TEH_SqF4IaDmFZ9ruBIC7ZQK- -&gt; 1rS9tUvWxYzAbCdEfGhIjKlMnOpQrStU
</span></span><span class="line"><span class="cl">      - Mapped <span class="s1">&#39;0007-01-01-outro.md&#39;</span>: 1YpYEkhOjL0v7k4Q7b5KMD50eaO0FWx7K -&gt; 1JHJy1IxWdTEInOWk6GiuhfAZCDEWx-Cg
</span></span><span class="line"><span class="cl">      - Mapped <span class="s1">&#39;cv_alexanderdunkel.pdf&#39;</span>: 1MuH3ssQ72wC9e7zyB_19KZITvyJUBfLt -&gt; 1dEsKxr71Z7PaSIiLaYimmjrbcQ0QHc0z
</span></span><span class="line"><span class="cl">    ✅ Payload ready.
</span></span><span class="line"><span class="cl">  -&gt; Overwriting the content of the <span class="s1">&#39;bait&#39;</span> prompt...
</span></span><span class="line"><span class="cl">        ✅ Hijack complete.
</span></span><span class="line"><span class="cl">  -&gt; Renaming the prompt on Google Drive...
</span></span><span class="line"><span class="cl">    ✅ Renamed to <span class="s1">&#39;2025-10-28_postdoc-survival-tame-information-flood&#39;</span>.
</span></span><span class="line"><span class="cl">------------------------------------------------------------
</span></span><span class="line"><span class="cl">✅  Restore process complete.
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">FINAL STEP:
</span></span><span class="line"><span class="cl">1. Go to https://aistudio.google.com/app/prompts
</span></span><span class="line"><span class="cl">2. Find and open the prompt named <span class="s1">&#39;2025-10-28_postdoc-survival-tame-information-flood&#39;</span>.
</span></span><span class="line"><span class="cl">3. It should now contain the fully restored content.
</span></span></code></pre></div><p>It may be necessary to scroll through the full prompt-history to re-initialize tokens per linked context document.</p>
]]></content></item><item><title>Slides: The Resilient PhD/Postdoc - Building Habits to Combat Information Fatigue</title><link>https://links.alexanderdunkel.com/posts/2025-10-23-the-resilient-postdoc/</link><pubDate>Thu, 23 Oct 2025 15:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2025-10-23-the-resilient-postdoc/</guid><description>&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2025-11-05_resilient_postdoc.webp" alt="Header Slide"&gt;
&lt;/p&gt;
&lt;p&gt;These are the slides for a presentation I held as the IOER postdoc representative.
The workshop was an internal event for PhDs and Postdocs at the institute.
This is a neutral, public version of the slides for anyone interested.
The content covers a number of my personal principles and technical tips for academic workflows.&lt;/p&gt;
&lt;p&gt;Link to Web Slides:
&lt;a href="https://alexanderdunkel.com/slides/resilient-habits/"&gt;https://alexanderdunkel.com/slides/resilient-habits/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The IOER version is available here:
&lt;a href="https://slides.ad.ioer.info/resilient-habits/"&gt;https://slides.ad.ioer.info/resilient-habits/&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id="process-notes"&gt;Process Notes&lt;/h3&gt;
&lt;p&gt;This was the first time I used AI Studio to help finalize a presentation. I think overall, it went well and
helped me compile the presentation in a very short time (I had only about 4 hours total preparation time).
I used it to translate my raw thoughts and structural notes into organized Markdown files for the RevealJS presentation.
The process was very efficient for this task.&lt;/p&gt;</description><content type="html"><![CDATA[<p>
  <img src="/imgs/2025-11-05_resilient_postdoc.webp" alt="Header Slide">
</p>
<p>These are the slides for a presentation I held as the IOER postdoc representative.
The workshop was an internal event for PhDs and Postdocs at the institute.
This is a neutral, public version of the slides for anyone interested.
The content covers a number of my personal principles and technical tips for academic workflows.</p>
<p>Link to Web Slides:
<a href="https://alexanderdunkel.com/slides/resilient-habits/">https://alexanderdunkel.com/slides/resilient-habits/</a></p>
<p>The IOER version is available here:
<a href="https://slides.ad.ioer.info/resilient-habits/">https://slides.ad.ioer.info/resilient-habits/</a></p>
<hr>
<h3 id="process-notes">Process Notes</h3>
<p>This was the first time I used AI Studio to help finalize a presentation. I think overall, it went well and
helped me compile the presentation in a very short time (I had only about 4 hours total preparation time).
I used it to translate my raw thoughts and structural notes into organized Markdown files for the RevealJS presentation.
The process was very efficient for this task.</p>
<p>
  <img src="/imgs/2025-11-05_slide_resilient.webp" alt="My Prompting Workflow in AI Studio">
</p>
<p>In the presentation, I showed an example of my prompting workflow.
The screenshot shows the prompt structure that I provided.
A link to the static HTML version of the prompt is here: <a href="https://slides.ad.ioer.info/resilient-habits/assets/prompt.htm">https://slides.ad.ioer.info/resilient-habits/assets/prompt.htm</a></p>
<p>For offline viewing of Gemini conversations, the following open source tool is very useful.
It can parse and render the exported JSON files.
Project Link: <a href="https://github.com/marcelamayr/Gemini-json-Viewer">https://github.com/marcelamayr/Gemini-json-Viewer</a></p>
]]></content></item><item><title>A New Home for Carto-Lab Docker, v1.0.0 Release, and CoRDI Showcase</title><link>https://links.alexanderdunkel.com/posts/2025-09-09-ioer-fdz-carto-lab/</link><pubDate>Tue, 09 Sep 2025 09:00:00 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2025-09-09-ioer-fdz-carto-lab/</guid><description>&lt;hr&gt;
&lt;p&gt;
&lt;img src="https://cartolab.fdz.ioer.info/images/rdm-flow.svg" alt="Carto-Lab Docker Logo"&gt;
&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;It&amp;rsquo;s been a while since my last major update on &lt;strong&gt;Carto-Lab Docker&lt;/strong&gt;. The project has
taken a significant step forward. What started as a personal workbench for my research
has now matured into a stable, officially supported piece of research infrastructure.
I&amp;rsquo;m excited to share three key developments: a new institutional
home, the official &lt;code&gt;1.0.0&lt;/code&gt; release, and our recent participation at the CoRDI conference.&lt;/p&gt;
&lt;h2 id="a-new-home-carto-lab-docker-is-now-an-ioer-fdz-project"&gt;A New Home: Carto-Lab Docker is now an IOER FDZ Project&lt;/h2&gt;
&lt;p&gt;The biggest news is that Carto-Lab Docker has officially &amp;ldquo;moved house.&amp;rdquo; It is now
hosted and maintained by the &lt;strong&gt;&lt;a href="https://ioer-fdz.de/en/"&gt;IOER Research Data Centre (IOER FDZ)&lt;/a&gt;&lt;/strong&gt;.
This move is crucial for its long-term sustainability and signals a commitment to
providing a reliable RDM tool for the spatial science community.&lt;/p&gt;</description><content type="html"><![CDATA[<hr>
<p>
  <img src="https://cartolab.fdz.ioer.info/images/rdm-flow.svg" alt="Carto-Lab Docker Logo">
</p>
<hr>
<p>It&rsquo;s been a while since my last major update on <strong>Carto-Lab Docker</strong>. The project has
taken a significant step forward. What started as a personal workbench for my research
has now matured into a stable, officially supported piece of research infrastructure.
I&rsquo;m excited to share three key developments: a new institutional
home, the official <code>1.0.0</code> release, and our recent participation at the CoRDI conference.</p>
<h2 id="a-new-home-carto-lab-docker-is-now-an-ioer-fdz-project">A New Home: Carto-Lab Docker is now an IOER FDZ Project</h2>
<p>The biggest news is that Carto-Lab Docker has officially &ldquo;moved house.&rdquo; It is now
hosted and maintained by the <strong><a href="https://ioer-fdz.de/en/">IOER Research Data Centre (IOER FDZ)</a></strong>.
This move is crucial for its long-term sustainability and signals a commitment to
providing a reliable RDM tool for the spatial science community.</p>
<p>This comes with a few practical changes:</p>
<ul>
<li><strong>New Documentation URL:</strong> The official documentation now lives at <strong><a href="https://cartolab.fdz.ioer.info/">https://cartolab.fdz.ioer.info/</a></strong>.
The old domain will redirect, but please update your bookmarks!</li>
<li><strong>New Public Container Registry:</strong> All official images are now hosted on <strong>Quay.io</strong>.
This makes them more accessible to the broader community. Pulling the latest version
is as simple as:</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">docker pull quay.io/ioer-fdz/carto-lab-docker:latest
</span></span></code></pre></div><h2 id="v100-release-and-a-major-documentation-overhaul">v1.0.0 release and a major documentation overhaul</h2>
<p>To mark this new chapter, I&rsquo;ve tagged the <a href="https://github.com/ioer-dresden/carto-lab-docker/releases/tag/v1.0.0">1.0.0 release</a> on Github.
This reflects the new level of stability, the clear governance under the IOER FDZ,  and a complete overhaul of the documentation.</p>
<p>The docs are no longer just a reference but a comprehensive guide. I&rsquo;ve added several new sections to explain not just the how, but also the why:</p>
<ul>
<li><strong><a href="https://cartolab.fdz.ioer.info/concept/">RDM Concept</a></strong>: Explains the three-pillar
philosophy behind the project: Guaranteed Reproducibility, Enhanced Collaboration,
and Integrated Publication.</li>
<li><strong><a href="https://cartolab.fdz.ioer.info/environments/">Managing Environments</a></strong>: A deep
dive into the four methods for customizing the environment, from simple in-notebook
installs to fully reproducible custom Dockerfiles.</li>
</ul>
<h2 id="showcase-at-the-cordi-2025-conference">Showcase at the CoRDI 2025 Conference</h2>
<p>This month, we had the fantastic opportunity to present Carto-Lab Docker at the 2nd
Conference on Research Data Infrastructure (CoRDI) in Aachen. We contributed a poster
showcasing CLD as a practical example of &ldquo;RDM in Action&rdquo; for the spatial sciences.
It was a great chance to get feedback from RDM experts and to discuss shared challenges,
like the need for a national container registry and strategies for long-term artifact
archival.</p>
<p>The poster has been archived on Zenodo and is available for viewing:</p>
<p><a href="https://doi.org/10.5281/zenodo.17083789">
  <img src="/imgs/2025-08-21_poster_cordi.png" alt="">
</a></p>
<blockquote>
<p><strong>CITATION:</strong> Dunkel, A., Burghardt, D., Löchner, M., &amp; Nieswand, M. (2025). IOER Carto-Lab Docker
An RDM Infrastructure for Transparent, Open, and Reproducible Spatial Data Science
(v1.0.0). 2nd Conference on Research Data Infrastructure 2025 (CoRDI), RWTH Aachen
University. Zenodo. <a href="https://doi.org/10.5281/zenodo.17083789">https://doi.org/10.5281/zenodo.17083789</a></p>
</blockquote>
<p>It feels great to see the project evolve. The goal remains the same: to lower the
technical barriers for researchers and enable more transparent, open, and reproducible
science. With the support of the IOER FDZ, Carto-Lab Docker is now in a much stronger
position to achieve that. Check out the new resources and let me know what you think!</p>
]]></content></item><item><title>Processing Geosocial Data at PLZ Level for Socio-Economic Analysis in Germany</title><link>https://links.alexanderdunkel.com/posts/2025-06-16-plz-intersection/</link><pubDate>Mon, 16 Jun 2025 08:54:22 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2025-06-16-plz-intersection/</guid><description>&lt;p&gt;I just finished a data processing task where I encountered several challenges while processing a large geosocial media dataset (~60 million posts) to aggregate activity at the German postal code (PLZ) level.&lt;/p&gt;
&lt;p&gt;The broader context for this work is a project aiming to integrate insights from the Socio-Economic Panel (SOEP) Data from DIW Berlin with patterns derived from geosocial media. SOEP provides rich panel data typically collected on a 5-year basis, while geosocial media offers a more continuous, albeit different, lens on societal activity. To effectively complement these datasets and to identify gaps or differences, we plan to conduct on-site questionnaires or mail surveys. For such survey logistics, PLZ areas are the most practical geographical unit due to their direct relevance in mail and address management.&lt;/p&gt;</description><content type="html"><![CDATA[<p>I just finished a data processing task where I encountered several challenges while processing a large geosocial media dataset (~60 million posts) to aggregate activity at the German postal code (PLZ) level.</p>
<p>The broader context for this work is a project aiming to integrate insights from the Socio-Economic Panel (SOEP) Data from DIW Berlin with patterns derived from geosocial media. SOEP provides rich panel data typically collected on a 5-year basis, while geosocial media offers a more continuous, albeit different, lens on societal activity. To effectively complement these datasets and to identify gaps or differences, we plan to conduct on-site questionnaires or mail surveys. For such survey logistics, PLZ areas are the most practical geographical unit due to their direct relevance in mail and address management.</p>
<h1 id="intersecting-and-aggregating-geosocial-data-with-plz-geometries">Intersecting and Aggregating Geosocial Data with PLZ Geometries</h1>
<p>The initial task was to intersect approximately 60 million geosocial media posts (from platforms like Instagram, Flickr, Twitter, iNaturalist) with around 9,000 PLZ area geometries for Germany. To maintain user privacy while still getting activity counts, we use HyperLogLog (HLL) for estimating unique user and post counts per PLZ. The raw post data resides in a PostgreSQL/PostGIS database, and the plan was to use a materialized view (<code>mviews.all_posts_de</code>) representing all posts in Germany, and join this with a table of PLZ geometries (<code>mviews.plz_intersect</code>).</p>
<p>The core aggregation query looks something like this (see <a href="https://code.ad.ioer.info/wip/geosocial_patterns_de/html/06_plz_intersection.html">full notebook</a>):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sql" data-lang="sql"><span class="line"><span class="cl"><span class="k">CREATE</span><span class="w"> </span><span class="n">MATERIALIZED</span><span class="w"> </span><span class="k">VIEW</span><span class="w"> </span><span class="n">mviews</span><span class="p">.</span><span class="n">plz_social_de</span><span class="w"> </span><span class="k">AS</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="k">SELECT</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="n">plz</span><span class="p">.</span><span class="n">plz</span><span class="p">,</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="n">plz</span><span class="p">.</span><span class="n">geom</span><span class="p">,</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="n">hll_add_agg</span><span class="p">(</span><span class="n">hll_hash_text</span><span class="p">(</span><span class="n">s</span><span class="p">.</span><span class="n">user_guid</span><span class="p">))</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="n">user_hll</span><span class="p">,</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="n">hll_add_agg</span><span class="p">(</span><span class="n">hll_hash_text</span><span class="p">(</span><span class="n">s</span><span class="p">.</span><span class="n">post_guid</span><span class="p">))</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="n">post_hll</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="k">FROM</span><span class="w"> </span><span class="n">mviews</span><span class="p">.</span><span class="n">plz_intersect</span><span class="w"> </span><span class="k">AS</span><span class="w"> </span><span class="n">plz</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="k">JOIN</span><span class="w"> </span><span class="n">mviews</span><span class="p">.</span><span class="n">all_posts_de</span><span class="w"> </span><span class="k">AS</span><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="c1">-- FDW or local materialized view
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="k">ON</span><span class="w"> </span><span class="n">plz</span><span class="p">.</span><span class="n">geom</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="n">s</span><span class="p">.</span><span class="n">post_latlng</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="n">ST_Intersects</span><span class="p">(</span><span class="n">plz</span><span class="p">.</span><span class="n">geom</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">.</span><span class="n">post_latlng</span><span class="p">)</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="k">GROUP</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="n">plz</span><span class="p">.</span><span class="n">plz</span><span class="p">,</span><span class="w"> </span><span class="n">plz</span><span class="p">.</span><span class="n">geom</span><span class="p">;</span><span class="w">
</span></span></span></code></pre></div><p>Initially, this query ran for 24 hours before I realised that something was wrong. I realised that Postgres materialised views do not inherit their parent table&rsquo;s indexes. This meant that Postgres was performing 450 billion geometry comparisons, equating to 9000 × 50,000,000.</p>
<p>The lack of spatial indexes on either the <code>mviews.plz_intersect</code> table (containing ~9,000 PLZ polygons) or the <code>mviews.all_posts_de</code> materialized view (containing ~50 million post locations) meant PostGIS was performing a massive number of raw geometry comparisons.</p>
<p>The fix was to explicitly create spatial GIST indexes on both tables involved in the spatial join:</p>
<ol>
<li>
<p>Index for the PLZ geometries table:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sql" data-lang="sql"><span class="line"><span class="cl"><span class="k">CREATE</span><span class="w"> </span><span class="k">INDEX</span><span class="w"> </span><span class="n">idx_plz_intersect_geom</span><span class="w"> </span><span class="k">ON</span><span class="w"> </span><span class="n">mviews</span><span class="p">.</span><span class="n">plz_intersect</span><span class="w"> </span><span class="k">USING</span><span class="w"> </span><span class="n">GIST</span><span class="w"> </span><span class="p">(</span><span class="n">geom</span><span class="p">);</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="k">ANALYZE</span><span class="w"> </span><span class="n">mviews</span><span class="p">.</span><span class="n">plz_intersect</span><span class="p">;</span><span class="w">
</span></span></span></code></pre></div></li>
<li>
<p>Index for the materialized view containing all post locations:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sql" data-lang="sql"><span class="line"><span class="cl"><span class="k">CREATE</span><span class="w"> </span><span class="k">INDEX</span><span class="w"> </span><span class="k">IF</span><span class="w"> </span><span class="k">NOT</span><span class="w"> </span><span class="k">EXISTS</span><span class="w"> </span><span class="n">idx_mv_all_posts_de_post_latlng_gist</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="k">ON</span><span class="w"> </span><span class="n">mviews</span><span class="p">.</span><span class="n">all_posts_de</span><span class="w"> </span><span class="k">USING</span><span class="w"> </span><span class="n">GIST</span><span class="w"> </span><span class="p">(</span><span class="n">post_latlng</span><span class="p">);</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="k">ANALYZE</span><span class="w"> </span><span class="n">mviews</span><span class="p">.</span><span class="n">all_posts_de</span><span class="p">;</span><span class="w">
</span></span></span></code></pre></div></li>
</ol>
<p>Additionally, for Foreign Data Wrappers (FDW), ensuring <code>use_remote_estimate</code> is enabled can help the planner:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sql" data-lang="sql"><span class="line"><span class="cl"><span class="k">ALTER</span><span class="w"> </span><span class="n">SERVER</span><span class="w"> </span><span class="n">lbsnraw</span><span class="w"> </span><span class="k">OPTIONS</span><span class="w"> </span><span class="p">(</span><span class="k">SET</span><span class="w"> </span><span class="n">use_remote_estimate</span><span class="w"> </span><span class="s1">&#39;on&#39;</span><span class="p">);</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="k">ALTER</span><span class="w"> </span><span class="k">FOREIGN</span><span class="w"> </span><span class="k">TABLE</span><span class="w"> </span><span class="n">mviews</span><span class="p">.</span><span class="n">all_posts_de</span><span class="w"> </span><span class="k">OPTIONS</span><span class="w"> </span><span class="p">(</span><span class="k">ADD</span><span class="w"> </span><span class="n">use_remote_estimate</span><span class="w"> </span><span class="s1">&#39;true&#39;</span><span class="p">);</span><span class="w">
</span></span></span></code></pre></div><p>After implementing these indexes, the query execution time for creating <code>mviews.plz_social_de</code> dropped dramatically from &ldquo;days&rdquo; to approximately 2 hours. The resulting table provides HLL objects for user and post counts per PLZ, which can then be queried for cardinality estimates.</p>
<h1 id="visualization-and-cluster-analysis-of-plz-level-geosocial-patterns">Visualization and Cluster Analysis of PLZ-Level Geosocial Patterns</h1>
<p>With the aggregated data (user counts and post counts per PLZ) exported to a CSV, the second phase involved visualization and exploratory spatial data analysis using Python (GeoPandas, Matplotlib, Seaborn, HDBSCAN).</p>
<p>The key steps in <a href="https://code.ad.ioer.info/wip/geosocial_patterns_de/html/07_plz_visualization.html">this notebook</a> include:</p>
<ol>
<li>
<p><strong>Loading Data:</strong> Reading the PLZ shapefiles and merging them with the geosocial counts.</p>
</li>
<li>
<p><strong>Basic Choropleth Mapping:</strong> Visualizing raw user counts using different classification schemes (e.g., Quantiles, Natural Breaks).</p>
</li>
<li>
<p><strong>Ratio Analysis:</strong></p>
<ul>
<li>Calculating active geosocial users per capita (<code>user_pop_ratio</code>).</li>
<li>Calculating the inverse: population per active user (<code>pop_user_ratio</code>) to highlight areas with high population but relatively low geosocial activity.</li>
<li>Applying log transformations (<code>np.log1p</code>) to handle skewed distributions of these ratios for better visualization.</li>
</ul>
</li>
<li>
<p><strong>Area Normalization:</strong> To account for the Modifiable Areal Unit Problem (MAUP) where large PLZ areas might distort simple ratios, densities were calculated (population density, user density) and a <code>density_ratio</code> (population density / user density) was derived.</p>
</li>
<li>
<p><strong>Filtering for Robustness:</strong> Selecting PLZs for deeper analysis by applying thresholds (e.g., minimum 5,000 residents, minimum 5,000 users, maximum PLZ area of 50 km²) to focus on statistically relevant and comparable areas.</p>
<p>
  <img src="/imgs/2025-06-16_PLZ_geosocial.webp" alt="PLZ Geosocial DE">

<em>Fig 1: Visualization of selected PLZ areas based on geosocial media and population density ratios.</em></p>
</li>
<li>
<p><strong>Geographic Clustering (HDBSCAN):</strong></p>
<ul>
<li>The filtered subset of PLZs (those with high population relative to geosocial activity, meeting size/count criteria) was then subjected to geographic clustering using HDBSCAN.</li>
<li>Centroids of the selected PLZs were used as input, with the Haversine metric for distance calculation. <code>min_cluster_size</code> was a key parameter tuned to identify meaningful spatial groupings.</li>
</ul>
</li>
<li>
<p><strong>Expanding Clusters to Contiguous Areas:</strong></p>
<ul>
<li>To create more practical, contiguous regions from the (potentially scattered) PLZs within each HDBSCAN cluster, an approach involving convex hulls and buffering was implemented:
<ol>
<li>For each HDBSCAN cluster, the <code>unary_union</code> of its member PLZ geometries was taken.</li>
<li>A <code>convex_hull</code> was generated around this union.</li>
<li>This hull was then <code>buffer</code>ed (e.g., by 1000 meters).</li>
<li>All PLZs from the complete German PLZ dataset that intersected these buffered hulls were selected and assigned the respective expanded cluster ID.</li>
<li>These selected PLZs were then <code>dissolve</code>d by their new <code>expanded_cluster_id</code> to form the final, more contiguous, expanded cluster areas.</li>
</ol>
</li>
</ul>
</li>
</ol>
<p>This process is used for the identification and delineation of broader regions exhibiting specific socio-geospatial characteristics. The resulting GeoDataFrames (selected PLZs, HDBSCAN clusters, and expanded cluster areas) are exported to GeoPackage, Shapefile, and CSV formats.</p>
<p>The full notebooks can be found at <a href="https://code.ad.ioer.info/wip/geosocial_patterns_de/html/06_plz_intersection.html">06_plz_intersection.html</a> and <a href="https://code.ad.ioer.info/wip/geosocial_patterns_de/html/07_plz_visualization.html">07_plz_visualization.html</a>.</p>
]]></content></item><item><title>Custom eduVPN settings</title><link>https://links.alexanderdunkel.com/posts/2025-06-05_custom_eduvpn/</link><pubDate>Thu, 05 Jun 2025 07:37:22 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2025-06-05_custom_eduvpn/</guid><description>&lt;p&gt;TUD migrated from OpenVPN to eduVPN, which is essentially OpenVPN. Currently, the difference is that eduVPN hides most
of the configuration options formerly available with OpenVPN.&lt;/p&gt;
&lt;p&gt;I used OpenVPN frequently because I was connected to several networks. For such setups, customization was required to override the routing behavior.
For certain IPs or subnets, I had to override the routing behavior or reject the remote DNS supplied by the OpenVPN server and substitute my own DNS servers.&lt;/p&gt;</description><content type="html"><![CDATA[<p>TUD migrated from OpenVPN to eduVPN, which is essentially OpenVPN. Currently, the difference is that eduVPN hides most
of the configuration options formerly available with OpenVPN.</p>
<p>I used OpenVPN frequently because I was connected to several networks. For such setups, customization was required to override the routing behavior.
For certain IPs or subnets, I had to override the routing behavior or reject the remote DNS supplied by the OpenVPN server and substitute my own DNS servers.</p>
<details><summary><strong>Have a look at my former OpenVPN config</strong></summary>
<pre tabindex="0"><code class="language-conf" data-lang="conf">tls-client
push-peer-info
pull
remote openvpn.zih.tu-dresden.de
# reject remote DNS server, keep using local DNS
pull-filter ignore &#34;dhcp-option DNS&#34;
# reject option to route all traffic through the VPN
pull-filter ignore &#34;redirect-gateway&#34;
# explicitly route selected subnet traffic through VPN
route 141.76.0.0 255.255.0.0
route 172.16.0.0 255.240.0.0
route 141.30.0.0 255.255.0.0
# exclude a single IP from being routed through the VPN
# route 141.76.16.53 255.255.255.255 net_gateway 
route-nopull
port 1194
dev tun
proto udp
setenv CLIENT_CERT 0
setenv FRIENDLY_NAME &#34;TUD Split-Tunneling UDP 1194&#34;
auth-user-pass
auth-nocache
nobind
#comp-lzo no
tls-version-min 1.2
ca ca.crt
tls-crypt tls.key
remote-cert-tls server
cipher AES-256-GCM
auth SHA384
reneg-sec 43200
verb 3
</code></pre></details>
<p>I wanted to migrate my OpenVPN config to the eduVPN setup. To do this, first go to <a href="https://tre-vpn1.zih.tu-dresden.de/vpn-user-portal/home">the TUD VPN Portal</a>
and download the <code>Open VPN Split Profile (UDP)</code>.</p>
<p>Once you have it, add custom options from the former OpenVPN setup. E.g.:</p>
<pre tabindex="0"><code>route-nopull
route 141.76.0.0 255.255.0.0
route 172.16.0.0 255.240.0.0
route 141.30.0.0 255.255.0.0
pull-filter ignore &#34;dhcp-option DNS&#34;
pull-filter ignore &#34;redirect-gateway&#34;
</code></pre><p>and store credentials as extra files:</p>
<pre tabindex="0"><code>tls-crypt tls.key
ca ca.crt
cert client.crt
key client.key
</code></pre><h2 id="run-openvpn-with-eduvpn-settings">Run OpenVPN with eduVPN settings</h2>
<ol>
<li>
<p>Use eduVPN client to generate the daily config (as usual)</p>
</li>
<li>
<p>Intercept or extract that <code>.ovpn</code> file before it&rsquo;s used</p>
</li>
<li>
<p>Extract client keys</p>
</li>
</ol>
<ul>
<li>Copy everything between <code>&lt;key&gt;...&lt;/key&gt;</code> to <code>client.key</code></li>
<li>Copy everything between <code>&lt;cert&gt;...&lt;/cert&gt;</code> to <code>client.crt</code></li>
</ul>
<ol start="4">
<li>Run <code>openvpn --config my-custom.ovpn</code> with this updated file (or use the UI integration to run the config file)</li>
</ol>
<p>Only the <code>client.crt</code> and <code>client.key</code> need to be renewed every 15 hours, <code>tls.key</code> and <code>ca.crt</code> stay the same.</p>
<h2 id="full-setup">Full setup</h2>
<p>Go to:</p>
<pre tabindex="0"><code>C:\Users\user\OpenVPN\config\TUD
</code></pre><p>or (better):</p>
<pre tabindex="0"><code>%userprofile%\OpenVPN\config\TUD
</code></pre><p>If the folder <code>TUD</code> does not exist, create it.</p>
<p>Extract static keys from the eduVPN config to files:</p>
<table>
	<thead>
			<tr>
					<th>Block</th>
					<th>Filename</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td><code>&lt;ca&gt;...&lt;/ca&gt;</code></td>
					<td><code>ca.crt</code></td>
			</tr>
			<tr>
					<td><code>&lt;cert&gt;...&lt;/cert&gt;</code></td>
					<td><code>client.crt</code></td>
			</tr>
			<tr>
					<td><code>&lt;key&gt;...&lt;/key&gt;</code></td>
					<td><code>client.key</code></td>
			</tr>
			<tr>
					<td><code>&lt;tls-crypt&gt;...&lt;/tls-crypt&gt;</code></td>
					<td><code>tls.key</code></td>
			</tr>
	</tbody>
</table>
<p>Make sure there’s no extra whitespace or BOM in the files.</p>
<p>Use the following updated OpenVPN config and store it as <code>eduvpn-tud-split.ovpn</code></p>
<pre tabindex="0"><code>client
dev tun
proto udp
remote openvpn.vpn.tu-dresden.de 1194
remote openvpn.vpn.tu-dresden.de 53
remote openvpn.vpn.tu-dresden.de 443 tcp
nobind

setenv CLIENT_CERT 0
setenv FRIENDLY_NAME &#34;TUD VPN split&#34;
remote-cert-tls server
tls-version-min 1.3
tls-crypt tls.key
ca ca.crt
cert client.crt
key client.key

# Encryption &amp; auth
data-ciphers AES-256-GCM:CHACHA20-POLY1305
cipher AES-256-GCM
auth SHA384
auth-nocache

# Routing overrides
pull-filter ignore &#34;redirect-gateway&#34;
pull-filter ignore &#34;dhcp-option DNS&#34;
pull-filter ignore &#34;route&#34;
pull-filter ignore &#34;redirect-private&#34;
route-nopull
route 141.76.0.0 255.255.0.0
route 172.16.0.0 255.240.0.0
route 141.30.0.0 255.255.0.0
# route 141.76.16.53 255.255.255.255 net_gateway  # optional exclusion

# Network
tun-mtu 1380
reneg-sec 0
verb 3
</code></pre><h2 id="daily-rotation">Daily Rotation</h2>
<p>For each day, download the new config again from the portal:</p>
<ul>
<li>Replace <code>client.crt</code> and <code>client.key</code> with updated blocks</li>
<li>Keep the <code>.ovpn</code> file</li>
</ul>
<p>We can use a bash script for this:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="cp">#!/bin/bash
</span></span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># get current windows user download folder</span>
</span></span><span class="line"><span class="cl"><span class="nv">WIN_USER_HOME</span><span class="o">=</span><span class="k">$(</span>/c/Windows/System32/cmd.exe /C <span class="s2">&#34;echo %USERPROFILE%&#34;</span> <span class="p">|</span> tr -d <span class="s1">&#39;\r&#39;</span> <span class="p">|</span> sed -E <span class="s1">&#39;s#^([A-Z]):\\#/\L\1/#; s#\\#/#g&#39;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nv">LATEST_FILE</span><span class="o">=</span><span class="k">$(</span>ls -t <span class="s2">&#34;</span><span class="nv">$WIN_USER_HOME</span><span class="s2">/Downloads/TUD_VPN_split&#34;</span>*.ovpn 2&gt;/dev/null <span class="p">|</span> head -n 1<span class="k">)</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;Latest file: </span><span class="nv">$LATEST_FILE</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Location of daily-downloaded config</span>
</span></span><span class="line"><span class="cl"><span class="nv">WORKDIR</span><span class="o">=</span><span class="s2">&#34;</span><span class="nv">$WIN_USER_HOME</span><span class="s2">/OpenVPN/config/TUD/&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">CONFIG_OUT</span><span class="o">=</span><span class="s2">&#34;</span><span class="nv">$WORKDIR</span><span class="s2">/Home--TUD.ovpn&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Extract certs and keys</span>
</span></span><span class="line"><span class="cl">awk <span class="s1">&#39;/&lt;cert&gt;/,/&lt;\/cert&gt;/&#39;</span> <span class="s2">&#34;</span><span class="nv">$LATEST_FILE</span><span class="s2">&#34;</span> &gt; <span class="s2">&#34;</span><span class="nv">$WORKDIR</span><span class="s2">/client.crt&#34;</span>
</span></span><span class="line"><span class="cl">awk <span class="s1">&#39;/&lt;key&gt;/,/&lt;\/key&gt;/&#39;</span> <span class="s2">&#34;</span><span class="nv">$LATEST_FILE</span><span class="s2">&#34;</span> &gt; <span class="s2">&#34;</span><span class="nv">$WORKDIR</span><span class="s2">/client.key&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Remove tags to avoid OpenVPN issues</span>
</span></span><span class="line"><span class="cl">sed -i <span class="s1">&#39;1d;$d&#39;</span> <span class="s2">&#34;</span><span class="nv">$WORKDIR</span><span class="s2">/client.key&#34;</span>
</span></span><span class="line"><span class="cl">sed -i <span class="s1">&#39;1d;$d&#39;</span> <span class="s2">&#34;</span><span class="nv">$WORKDIR</span><span class="s2">/client.crt&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;✅ client.crt and client.key updated at: </span><span class="nv">$CONFIG_OUT</span><span class="s2">&#34;</span>
</span></span></code></pre></div><h2 id="further-reading">Further reading</h2>
<p>There is a short TUD FAQ entry on how to use OpenVPN with the eduVPN config setup:</p>
<p><a href="https://faq.tickets.tu-dresden.de/otrs/public.pl?Action=PublicFAQZoom;ItemID=1268">https://faq.tickets.tu-dresden.de/otrs/public.pl?Action=PublicFAQZoom;ItemID=1268</a></p>
]]></content></item><item><title>DeepSeek via HPC in JupyterLab Setup</title><link>https://links.alexanderdunkel.com/posts/2025-03-31_deepseek_jupyter_notebook/</link><pubDate>Mon, 31 Mar 2025 08:37:22 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2025-03-31_deepseek_jupyter_notebook/</guid><description>&lt;p&gt;In my previous &lt;a href="../2025-02-14-deepseek-classification"&gt;blog post&lt;/a&gt; I showed how to start DeepSeek R1 in the High Performance Cluster (HPC) of the TUD.&lt;/p&gt;
&lt;p&gt;This gave us a prompt. Which is not very useful if you want to automatically query DeepSeek and process data with it.&lt;/p&gt;
&lt;p&gt;A solution is to connect DeepSeek to JupyterLab. However, starting JupyterLab in the same HPC Job is not possible and JupyterHub of the TUD is
quite limited (long startup times, limited environment possibilities due to missing C-dependency capability for installing python packages etc.).&lt;/p&gt;</description><content type="html"><![CDATA[<p>In my previous <a href="../2025-02-14-deepseek-classification">blog post</a> I showed how to start DeepSeek R1 in the High Performance Cluster (HPC) of the TUD.</p>
<p>This gave us a prompt. Which is not very useful if you want to automatically query DeepSeek and process data with it.</p>
<p>A solution is to connect DeepSeek to JupyterLab. However, starting JupyterLab in the same HPC Job is not possible and JupyterHub of the TUD is
quite limited (long startup times, limited environment possibilities due to missing C-dependency capability for installing python packages etc.).</p>
<p>As an alternative, we can use a Jump Host, similar to what I used for <a href="../2023-06-27-stable-diffusion-hpc-cluster">Stable Diffusion</a>.</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Below, replace <code>s1111111</code> with your TUD s-number and <code>141.11.11.1</code> with your Jump Host VM. The HPC project we applied for is called <code>p_llm_mapping</code>. This needs to be replaced with your own HPC project, if you are working on a different one.</p>
</div>
</aside> 
<h2 id="hpc-setup">HPC Setup</h2>
<p>Let&rsquo;s first setup the HPC environment.</p>
<ol>
<li>Connect to your jump host and open a byobu session</li>
</ol>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path d="M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"/></svg>
	</div>
	<div class="admonition-content"><p>This step is optional, but we do not want the interactive HPC GPU job to break when our connection drops, so we use <code>byobu</code>, a terminal multiplexer that keeps connections running, even if we disconnect.</p>
</div>
</aside> 
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh your-vm-user@141.11.11.1
</span></span><span class="line"><span class="cl">byobu
</span></span><span class="line"><span class="cl">F2 <span class="c1"># create a new window</span>
</span></span></code></pre></div>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>You can disconnect from your byobu session with <code>F6</code>. Everything will keep on running and you can connect to it again with <code>byobu</code>.</p>
</div>
</aside> 
<p>Connect to the HPC <code>alpha</code> cluster from within your byobu session:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh -A s1111111@login1.alpha.hpc.tu-dresden.de
</span></span></code></pre></div><p>Start a GPU job with <code>1</code> GPU and <code>8</code> hours runtime:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">srun --account<span class="o">=</span>p_llm_mapping <span class="se">\
</span></span></span><span class="line"><span class="cl">    --gres<span class="o">=</span>gpu:1 <span class="se">\
</span></span></span><span class="line"><span class="cl">    --pty --ntasks<span class="o">=</span><span class="m">1</span> --cpus-per-task<span class="o">=</span><span class="m">2</span> --nodes<span class="o">=</span><span class="m">1</span> <span class="se">\
</span></span></span><span class="line"><span class="cl">    --time<span class="o">=</span>8:00:00 --mem-per-cpu<span class="o">=</span><span class="m">16000</span> --pty bash -l   
</span></span></code></pre></div><h3 id="ollama-setup">Ollama Setup</h3>
<p>This needs to be done once. Since ollama models are quite big (you can easily cover 100+ GB with a few models), we needs to reserve a workspace. We use <code>horse</code> for this.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ws_allocate -F horse -r <span class="m">7</span> -m s1111111@tu-dresden.de p_llm_mapping <span class="m">90</span>
</span></span></code></pre></div><blockquote>
<p>Info: creating workspace.<br>
/data/horse/ws/s1111111-p_llm_mapping<br>
remaining extensions  : 10<br>
remaining time in days: 90</p>
</blockquote>
<p>To later extend the workspace period for another 30 days:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ws_extend -F horse p_llm_mapping <span class="m">30</span>
</span></span></code></pre></div><blockquote>
<p>Info: extending workspace.<br>
/data/horse/ws/s1111111-p_llm_mapping<br>
remaining extensions  : 10<br>
remaining time in days: 30</p>
</blockquote>
<p>The next step is to save the <code>ollama</code> bin to the workspace and make sure all the models are saved to the workspace as well.</p>
<p>Get ollama binary:</p>
<pre tabindex="0"><code>cd /data/horse/ws/s1111111-p_llm_mapping
curl -L https://ollama.com/download/ollama-linux-amd64.tgz -o ollama-linux-amd64.tgz
tar -C . -xzf ollama-linux-amd64.tgz
rm ollama-linux-amd64.tgz
mv ./ollama-linux-amd64 ollama
</code></pre><p>Create a models folder and symlink into your home folder:</p>
<pre tabindex="0"><code>cd /data/horse/ws/s1111111-p_llm_mapping
mkdir models
cd ~/
mkdir .ollama
cd ~/.ollama
rm -rf models
ln -s /data/horse/ws/s1111111-p_llm_mapping/models ~/.ollama/models
</code></pre>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>This is a critical step. If you leave your `models&rsquo; folder in your user account, the space will fill up quickly and you will be in breach of the ZIH usage restrictions.</p>
</div>
</aside> 
<p>Make workspace accessible for others in the project:</p>
<pre tabindex="0"><code>chown -R s1111111:p_llm_mapping /data/horse/ws/s1111111-p_llm_mapping
chmod -R g+rx /data/horse/ws/s1111111-p_llm_mapping
</code></pre><p>This is necessary if you have colleages who are working with you on the same HPC project.</p>
<p>Now you can start and connect your HPC job to the Jump Host:</p>
<ul>
<li>first we add the ollama binary to <code>PATH</code></li>
<li>then we start <code>ollama serve</code> in a SSH session connected to port <code>11434</code> of our Jump Host</li>
</ul>
<pre tabindex="0"><code>PATH=$PATH:/data/horse/ws/s1111111-p_llm_mapping/ollama/bin
ssh service@141.76.18.72 -o ExitOnForwardFailure=yes \
    -o ServerAliveInterval=20 -f -R :11434:127.0.0.1:11434 -p 22 -N; \
    ollama serve
</code></pre><h2 id="vm-setup">VM Setup</h2>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>With the <code>ollama</code> binary listening on port <code>11434</code>, you can either use Jupyter Lab directly on the Jump host, or forward tunnel to your laptop (etc.). We will use the former. See how we used the latter in my other <a href="../2023-06-27-stable-diffusion-hpc-cluster">Stable Diffusion Setup</a> post.</p>
</div>
</aside> 
<p>We use <a href="https://cartolab.theplink.org/">Carto-Lab Docker</a>. Follow the Setup guide or use your own JupyterLab docker container.</p>
<p>In order to be able to connect to port <code>11434</code> on the host from within the Docker Container, we need to enable host-networking.</p>
<p>Edit the Carto-Lab Docker <code>docker-compose.yml</code>:</p>
<pre tabindex="0"><code>services:

  jupyterlab:
    image: registry.gitlab.vgiscience.org/lbsn/tools/jupyterlab:${TAG:-latest}
    network_mode: &#34;host&#34;
    # networks:
    #  - lbsn-network

# networks:
#  lbsn-network:
#    name: ${NETWORK_NAME:-lbsn-network}
#    external: true
</code></pre><ul>
<li>add <code>network_mode: &quot;host&quot;</code></li>
<li>comment out <code>networks:</code></li>
</ul>
<p>Now start Carto-Lab Docker and connect to it. See this Notebook where I show how to connect from JupyterLab to DeepSeek via Rest API/requests:</p>
<ul>
<li><a href="https://code.ad.ioer.info/wip/snippets/html/2025-03-25_Deepseek.html">https://code.ad.ioer.info/wip/snippets/html/2025-03-25_Deepseek.html</a></li>
</ul>
<h2 id="clean-up-stale-connections">Clean up stale connections</h2>
<p>I saw students have problems with stale connections blocking the port, which prevents future connections.</p>
<p>E.g.:</p>
<pre tabindex="0"><code>sudo lsof -i :11434
&gt; COMMAND    PID    USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
&gt; sshd    166119 student   10u  IPv6 2077667      0t0  TCP localhost:11434 (LISTEN)
&gt; sshd    166119 student   11u  IPv4 2077668      0t0  TCP localhost:11434 (LISTEN)
</code></pre><p>Since I did not give <code>sudo</code> rights to kill processes, I used a workaround.</p>
<ol>
<li>Create a script in <code>/usr/local/bin/kill_ssh_tunnel.sh</code></li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="cp">#!/bin/bash
</span></span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nv">PORT</span><span class="o">=</span><span class="s2">&#34;11434&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">USER</span><span class="o">=</span><span class="k">$(</span>whoami<span class="k">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Get all SSHD PIDs owned by the user</span>
</span></span><span class="line"><span class="cl"><span class="nv">PIDS</span><span class="o">=</span><span class="k">$(</span>pgrep -u <span class="s2">&#34;</span><span class="nv">$USER</span><span class="s2">&#34;</span> sshd<span class="k">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[[</span> -z <span class="s2">&#34;</span><span class="nv">$PIDS</span><span class="s2">&#34;</span> <span class="o">]]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">    <span class="nb">echo</span> <span class="s2">&#34;No SSH tunnel processes found.&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="nb">exit</span> <span class="m">1</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Convert port to hex (needed for /proc/net/tcp lookup)</span>
</span></span><span class="line"><span class="cl"><span class="nv">PORT_HEX</span><span class="o">=</span><span class="k">$(</span><span class="nb">printf</span> <span class="s2">&#34;%04X&#34;</span> <span class="s2">&#34;</span><span class="nv">$PORT</span><span class="s2">&#34;</span><span class="k">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Find processes with an open connection on the target port</span>
</span></span><span class="line"><span class="cl"><span class="nv">FOUND_PIDS</span><span class="o">=()</span>
</span></span><span class="line"><span class="cl"><span class="k">for</span> PID in <span class="nv">$PIDS</span><span class="p">;</span> <span class="k">do</span>
</span></span><span class="line"><span class="cl">    <span class="k">if</span> grep -q <span class="s2">&#34;:</span><span class="nv">$PORT_HEX</span><span class="s2">&#34;</span> /proc/<span class="nv">$PID</span>/net/tcp* 2&gt;/dev/null<span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">        <span class="nv">FOUND_PIDS</span><span class="o">+=(</span><span class="s2">&#34;</span><span class="nv">$PID</span><span class="s2">&#34;</span><span class="o">)</span>
</span></span><span class="line"><span class="cl">    <span class="k">fi</span>
</span></span><span class="line"><span class="cl"><span class="k">done</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># If no relevant processes found</span>
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[[</span> <span class="si">${#</span><span class="nv">FOUND_PIDS</span><span class="p">[@]</span><span class="si">}</span> -eq <span class="m">0</span> <span class="o">]]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">    <span class="nb">echo</span> <span class="s2">&#34;No active SSH tunnels using port </span><span class="nv">$PORT</span><span class="s2">.&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="nb">exit</span> <span class="m">1</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Kill the identified processes</span>
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;Killing SSH tunnel processes: </span><span class="si">${</span><span class="nv">FOUND_PIDS</span><span class="p">[*]</span><span class="si">}</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">kill</span> <span class="s2">&#34;</span><span class="si">${</span><span class="nv">FOUND_PIDS</span><span class="p">[@]</span><span class="si">}</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Confirm termination</span>
</span></span><span class="line"><span class="cl">sleep <span class="m">1</span>
</span></span><span class="line"><span class="cl"><span class="k">for</span> PID in <span class="s2">&#34;</span><span class="si">${</span><span class="nv">FOUND_PIDS</span><span class="p">[@]</span><span class="si">}</span><span class="s2">&#34;</span><span class="p">;</span> <span class="k">do</span>
</span></span><span class="line"><span class="cl">    <span class="k">if</span> <span class="nb">kill</span> -0 <span class="s2">&#34;</span><span class="nv">$PID</span><span class="s2">&#34;</span> 2&gt;/dev/null<span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">        <span class="nb">echo</span> <span class="s2">&#34;Failed to kill SSH tunnel process </span><span class="nv">$PID</span><span class="s2">.&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="k">else</span>
</span></span><span class="line"><span class="cl">        <span class="nb">echo</span> <span class="s2">&#34;SSH tunnel process </span><span class="nv">$PID</span><span class="s2"> terminated.&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="k">fi</span>
</span></span><span class="line"><span class="cl"><span class="k">done</span>
</span></span></code></pre></div><ol start="2">
<li>Update permissions</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">chmod +x /usr/local/bin/kill_ssh_tunnel.sh
</span></span><span class="line"><span class="cl">chmod <span class="m">755</span> /usr/local/bin/kill_ssh_tunnel.sh
</span></span></code></pre></div><ol start="3">
<li>Now the user can kill ssh processes without sudo</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">kill_ssh_tunnel.sh
</span></span><span class="line"><span class="cl">&gt; Killing SSH tunnel processes: <span class="m">72465</span> <span class="m">166119</span>
</span></span><span class="line"><span class="cl">&gt; SSH tunnel process <span class="m">72465</span> terminated.
</span></span><span class="line"><span class="cl">&gt; SSH tunnel process <span class="m">166119</span> terminated.
</span></span></code></pre></div>]]></content></item><item><title>Transformative Capacity: DeepSeek HPC Setup, Classification &amp; Explainable AI (Hello World example)</title><link>https://links.alexanderdunkel.com/posts/2025-02-14-deepseek-classification/</link><pubDate>Fri, 14 Feb 2025 10:32:22 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2025-02-14-deepseek-classification/</guid><description>&lt;p&gt;DeepSeek is the only open source LLM on the market that can match the reasoning power of GPT-4o. A major research gap that DeepSeek can address is the classification of data. Classification is a tedious process. There are many areas where it has simply not been possible to develop robust classification schemes that fully account for the desired depth of context and analysis goals.&lt;/p&gt;
&lt;p&gt;Two examples from my current research are (1) transformative capacity and (2) social
cohesion. Transforming these concepts into operational data filters or classification
schemes has not been possible with current natural language processing (NLP). How
else would we qualify contextual spatial information to judge whether atomic pieces
of information contain aspects that help us assess Transformative Capacity or Social
Cohesion?&lt;/p&gt;</description><content type="html"><![CDATA[<p>DeepSeek is the only open source LLM on the market that can match the reasoning power of GPT-4o. A major research gap that DeepSeek can address is the classification of data. Classification is a tedious process. There are many areas where it has simply not been possible to develop robust classification schemes that fully account for the desired depth of context and analysis goals.</p>
<p>Two examples from my current research are (1) transformative capacity and (2) social
cohesion. Transforming these concepts into operational data filters or classification
schemes has not been possible with current natural language processing (NLP). How
else would we qualify contextual spatial information to judge whether atomic pieces
of information contain aspects that help us assess Transformative Capacity or Social
Cohesion?</p>
<p>In a data-rich but information-poor world, this means that we cannot operationalise
these concepts to derive insights from the data we have. With the advent of LLMs
and the open availability of DeepSeek in particular, this situation has changed.</p>
<p>This is a first glimpse of a research direction I am currently pursuing at the IÖR.
The future vision is to provide indicators of transformative change and social cohesion
that allow monitoring of these concepts for spatial units and improving decision-making
processes in planning.</p>
<p>Until we get there, many technical, conceptual and methodological challenges must be solved.</p>
<h2 id="practical-example">Practical example</h2>
<p>Below is a task I gave <code>deepseek-r1:32b</code> to test classification.</p>
<p>My prompt:</p>
<blockquote>
<p>Transformative Capacities refers to a situation where positive change is likely or
possible. We want to classify Social Media posts whether they indicate Transformative
Capacity. I will give you a social media post text, please respond with 1 (Transformative
Capacity likely) or 0 (No Transformative Capacity noticeable) based on the text.</p>
</blockquote>
<p>Social Media Post 1:</p>
<blockquote>
<p>Would driving into yosemite with a corolla for a day right now be a bad idea, is
the park open for public to show up and pay for enterance at gate, and will there
be too much snow on roads… I’m from out of state and not sure, thanks!</p>
</blockquote>
<p>Answer:</p>
<pre tabindex="0"><code>&lt;think&gt;
Okay, so I need to figure out whether the given social media post indicates Transformative 
Capacity. From what I understand, Transformative Capacities refer to situations where 
positive change is likely or possible. So, my task is to analyze the content of the post 
and determine if it suggests any potential for positive change.

Looking at Social Media Post 1: The user is asking about driving into Yosemite with 
a Corolla, checking if it&#39;s a bad idea. They&#39;re also inquiring whether the park is 
open and if there will be too much snow on the roads. The user mentions they&#39;re from 
out of state and unsure about these 
details.

Now, I need to assess if this post shows any signs that something positive might 
change. Let me break down each part:

1. **Driving into Yosemite**: This could imply a desire to visit a natural area, 
which is generally positive. However, the question is whether it&#39;s a bad idea. The 
uncertainty here doesn&#39;t necessarily
indicate a transformative intention.

2. **Checking park openness and road conditions**: These are practical concerns about 
planning a trip. While visiting Yosemite can be a meaningful experience, just checking 
if the park is accessible doesn&#39;t inherently show a likelihood of positive change.

3. **Asking about snow on roads**: This is again a logistical concern. The user wants 
to ensure they can safely make the trip but isn&#39;t discussing any plans that would 
lead to transformative outcomes.

Considering all these points, the post seems more like a routine query for travel 
information rather than an indication of potential positive change or transformative 
capacity. There&#39;s no mention of personal growth, community impact, environmental efforts, 
or any other factors that could lead to significant positive change. The user is simply 
seeking information about accessibility and safety for a planned trip.

Therefore, I don&#39;t see any elements in this post that suggest Transformative Capacity.
&lt;/think&gt;

0
</code></pre><p>I think this is pretty good. The input or task I gave it is very difficult to bring together
with the concept of Transformative Capacity, but its reasoning is plausible and the answer
makes sense.</p>
<p>How to apply this?</p>
<p>We have public geo-social media data for Germany with about 70 million posts. The hypothesis (to be proven) is that we can use this data to classify regions or areas where transformative change is more likely, based on the type and character of online communication available. The LLM is asked to classify individual posts or users as indicative of TC (instead of 0 or 1, we could ask for a continuum between these numbers). The results are then aggregated using classic GIS methods.</p>
<h2 id="setup">Setup</h2>
<p>Until then, here&rsquo;s a brief summary how I set this up in the TUD High Performance Cluster.</p>
<p>We are using ollama to run deepseek.</p>
<p>First, get the latest release from ollama:
<a href="https://github.com/ollama/ollama/releases">https://github.com/ollama/ollama/releases</a></p>
<p>See the <a href="https://github.com/ollama/ollama/blob/main/docs/linux.md">readme for setup instructions</a></p>
<p>Create a workspace on horse (SSD):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ws_allocate -F horse -r <span class="m">7</span> -m &lt;your-s-number&gt;@tu-dresden.de &lt;your-hpc-project&gt; <span class="m">90</span>
</span></span></code></pre></div><blockquote>
<p>Info: creating workspace.<br>
/data/horse/ws/<your-s-number>-<your-hpc-project><br>
remaining extensions  : 10<br>
remaining time in days: 90</p>
</blockquote>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">cd</span> /data/horse/ws/&lt;your-s-number&gt;-&lt;your-hpc-project&gt;
</span></span></code></pre></div><p>Download ollama latest release.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">curl -L https://ollama.com/download/ollama-linux-amd64.tgz -o ollama-linux-amd64.tgz
</span></span><span class="line"><span class="cl">tar -C . -xzf ollama-linux-amd64.tgz
</span></span><span class="line"><span class="cl">rm ollama-linux-amd64.tgz
</span></span></code></pre></div><p>Add the binary to <code>PATH</code> and test ollama</p>
<pre tabindex="0"><code>PATH=$PATH:/data/horse/ws/&lt;your-s-number&gt;-&lt;your-hpc-project&gt;/ollama/bin
ollama serve
</code></pre><p>If it works, we can continue. In order to run a DeepSeek Model through ollama,
<code>serve</code> must be move to a background process. Since this is not possible in the HPC,
we can use a jump-host (any VM, or your local computer):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh &lt;user&gt;@111.11.11.1 -o <span class="nv">ExitOnForwardFailure</span><span class="o">=</span>yes <span class="se">\
</span></span></span><span class="line"><span class="cl">    -o <span class="nv">ServerAliveInterval</span><span class="o">=</span><span class="m">20</span> -f -R :11434:127.0.0.1:11434 -p <span class="m">22</span> -N<span class="p">;</span> <span class="se">\
</span></span></span><span class="line"><span class="cl">    ollama serve
</span></span></code></pre></div><ul>
<li><code>111.11.11.1</code> is the IP of your jump host. It needs SSHD service running and you need to be able to connect to it.</li>
<li><code>:11434:127.0.0.1:11434</code> will bind-forward the port <code>11434</code> on both sides</li>
<li>in other words, <code>ollama run</code> on the remote side can connect to <code>ollama serve</code> in the HPC node</li>
</ul>
<p>Head over to the remote side (<code>111.11.11.1</code>).</p>
<p>We now need to check requirements and chose the model we can use. With one GPU in the HPC, we
have about 40 GB VRAM available.</p>
<p>Check requirements:
<a href="https://ollama.com/library/deepseek-r1">https://ollama.com/library/deepseek-r1</a></p>
<p>We need a distilled model.
<a href="https://apxml.com/posts/gpu-requirements-deepseek-r1">https://apxml.com/posts/gpu-requirements-deepseek-r1</a></p>
<p>Since we cannot run the full original model into a single GPU-node, we chose the largest quantized model that fits into the available VRAM.</p>
<table>
	<thead>
			<tr>
					<th><strong>Model</strong></th>
					<th><strong>Parameters (B)</strong></th>
					<th><strong>VRAM Requirement (GB) (4-bit)</strong></th>
					<th><strong>Recommended GPU</strong></th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>DeepSeek-R1-Zero</td>
					<td>671B</td>
					<td>~436 GB</td>
					<td>Multi-GPU setup (e.g., NVIDIA A100 80GB x6)</td>
			</tr>
			<tr>
					<td>DeepSeek-R1</td>
					<td>671B</td>
					<td>~436 GB</td>
					<td>Multi-GPU setup (e.g., NVIDIA A100 80GB x6)</td>
			</tr>
			<tr>
					<td>DeepSeek-R1-Distill-Qwen-1.5B</td>
					<td>1.5B</td>
					<td>~1 GB</td>
					<td>NVIDIA RTX 3050 8GB or higher</td>
			</tr>
			<tr>
					<td>DeepSeek-R1-Distill-Qwen-7B</td>
					<td>7B</td>
					<td>~4.5 GB</td>
					<td>NVIDIA RTX 3060 12GB or higher</td>
			</tr>
			<tr>
					<td>DeepSeek-R1-Distill-Llama-8B</td>
					<td>8B</td>
					<td>~5 GB</td>
					<td>NVIDIA RTX 3060 12GB or higher</td>
			</tr>
			<tr>
					<td>DeepSeek-R1-Distill-Qwen-14B</td>
					<td>14B</td>
					<td>~9 GB</td>
					<td>NVIDIA RTX 4080 16GB or higher</td>
			</tr>
			<tr>
					<td>DeepSeek-R1-Distill-Qwen-32B</td>
					<td>32B</td>
					<td>~21GB</td>
					<td>NVIDIA RTX 4090 24GB or higher</td>
			</tr>
			<tr>
					<td>DeepSeek-R1-Distill-Llama-70B</td>
					<td>70B</td>
					<td>~46 GB</td>
					<td>Multi-GPU setup (e.g. NVIDIA RTX 4090 24GB x2)</td>
			</tr>
	</tbody>
</table>
<p>This is <code>DeepSeek-R1-Distill-Qwen-32B</code> (I tested <code>DeepSeek-R1-Distill-Llama-70B</code> and it did not fit).</p>
<p>Extract/install ollama again on the remote host and run it:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">./ollama run deepseek-r1:32b
</span></span></code></pre></div><p>That is it. Below is a screencast, where I ask it to provide information on the IÖR. This is my hello world example.</p>
<video autoplay loop muted no-controls>
  <source src="deepseek.webm" type="video/webm" />
  Your browser does not support the video tag.
</video>
<p>Question: Can you summarize what you know about the Leibniz-Institut für ökologische Raumentwicklung e.V.?</p>
<blockquote>
<p>The <strong>Leibniz-Institut für ökologische Raumentwicklung e. V. (Leibniz-IFOR)</strong> is a research
institution focused on sustainable spatial development and ecological planning. Here&rsquo;s a summary of
what it is about:</p>
<ol>
<li><strong>Mission</strong>: The institute works to develop concepts, strategies, and instruments for sustainable
land use and urban development that balance economic, social, and environmental goals.</li>
<li><strong>Research Focus</strong>:
<ul>
<li>Sustainable cities and regions.</li>
<li>Ecological spatial development.</li>
<li>Regional planning and governance.</li>
<li>Climate change adaptation and mitigation in spatial planning.</li>
</ul>
</li>
<li><strong>Approach</strong>: The institute combines scientific research with practical applications to provide
solutions for policymakers, urban planners, and other stakeholders.</li>
<li><strong>Role</strong>: As part of the Leibniz Association (a network of German research institutions), it
contributes to advancing knowledge in sustainable development while addressing real-world challenges.</li>
</ol>
</blockquote>
]]></content></item><item><title>Workshop and Lecture Series: Social Media, Data Analysis, &amp; Cartograpy, WS 2024/25</title><link>https://links.alexanderdunkel.com/posts/2024-12-12-geosocial-media-workshop-lecture-series/</link><pubDate>Thu, 12 Dec 2024 15:13:22 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-12-12-geosocial-media-workshop-lecture-series/</guid><description>&lt;h2 id="link-to-repository"&gt;Link to repository&lt;/h2&gt;
&lt;p&gt;Shortlink:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://tud.link/5vpd"&gt;https://tud.link/5vpd&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Public:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.ad.ioer.info/jupyter_python_datascience/"&gt;https://code.ad.ioer.info/jupyter_python_datascience/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Full Link:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;IÖR: &lt;a href="https://gitlab.hrz.tu-chemnitz.de/ad/jupyter_python_datascience"&gt;https://gitlab.hrz.tu-chemnitz.de/ad/jupyter_python_datascience&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;TUD [EOL]: &lt;a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_python_datascience"&gt;https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_python_datascience&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Shortlink to tag maps workshop:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://tud.link/gfexq5"&gt;https://tud.link/gfexq5&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Full link to tag maps workshop:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://slides.ad.ioer.info/tagmapsworkshop_tud_2025/"&gt;https://slides.ad.ioer.info/tagmapsworkshop_tud_2025/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Link list discussion:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/samples.html"&gt;https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/samples.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="lecture-links"&gt;Lecture Links&lt;/h2&gt;
&lt;p&gt;These are the links to the two lectures from December 2024:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Analysis and Visualization of Geo-Social Media:&lt;br&gt;
&lt;a href="https://slides.ad.ioer.info/geosocialmedia_lecture/"&gt;https://slides.ad.ioer.info/geosocialmedia_lecture/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Python data science 101 for Social Media Cartography (and beyond):&lt;br&gt;
&lt;a href="https://kartographie.geo.tu-dresden.de/ad/python_datascience_2023"&gt;https://kartographie.geo.tu-dresden.de/ad/python_datascience_2023&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="html-versions-of-notebooks"&gt;HTML Versions of Notebooks&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://code.ad.ioer.info/jupyter_python_datascience/html/01_raw_intro.html"&gt;01_raw_intro.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.ad.ioer.info/jupyter_python_datascience/html/02_hll_intro.html"&gt;02_hll_intro.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.ad.ioer.info/jupyter_python_datascience/html/03_tagmaps.html"&gt;03_tagmaps.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.ad.ioer.info/jupyter_python_datascience/html/04_topic_classification.html"&gt;04_topic_classification.html&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><content type="html"><![CDATA[<h2 id="link-to-repository">Link to repository</h2>
<p>Shortlink:</p>
<ul>
<li><a href="https://tud.link/5vpd">https://tud.link/5vpd</a></li>
</ul>
<p>Public:</p>
<ul>
<li><a href="https://code.ad.ioer.info/jupyter_python_datascience/">https://code.ad.ioer.info/jupyter_python_datascience/</a></li>
</ul>
<p>Full Link:</p>
<ul>
<li>IÖR: <a href="https://gitlab.hrz.tu-chemnitz.de/ad/jupyter_python_datascience">https://gitlab.hrz.tu-chemnitz.de/ad/jupyter_python_datascience</a></li>
<li>TUD [EOL]: <a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_python_datascience">https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_python_datascience</a></li>
</ul>
<p>Shortlink to tag maps workshop:</p>
<ul>
<li><a href="https://tud.link/gfexq5">https://tud.link/gfexq5</a></li>
</ul>
<p>Full link to tag maps workshop:</p>
<ul>
<li><a href="https://slides.ad.ioer.info/tagmapsworkshop_tud_2025/">https://slides.ad.ioer.info/tagmapsworkshop_tud_2025/</a></li>
</ul>
<p>Link list discussion:</p>
<ul>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/samples.html">https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/samples.html</a></li>
</ul>
<h2 id="lecture-links">Lecture Links</h2>
<p>These are the links to the two lectures from December 2024:</p>
<ul>
<li>Analysis and Visualization of Geo-Social Media:<br>
<a href="https://slides.ad.ioer.info/geosocialmedia_lecture/">https://slides.ad.ioer.info/geosocialmedia_lecture/</a></li>
<li>Python data science 101 for Social Media Cartography (and beyond):<br>
<a href="https://kartographie.geo.tu-dresden.de/ad/python_datascience_2023">https://kartographie.geo.tu-dresden.de/ad/python_datascience_2023</a></li>
</ul>
<h2 id="html-versions-of-notebooks">HTML Versions of Notebooks</h2>
<ol>
<li><a href="https://code.ad.ioer.info/jupyter_python_datascience/html/01_raw_intro.html">01_raw_intro.html</a></li>
<li><a href="https://code.ad.ioer.info/jupyter_python_datascience/html/02_hll_intro.html">02_hll_intro.html</a></li>
<li><a href="https://code.ad.ioer.info/jupyter_python_datascience/html/03_tagmaps.html">03_tagmaps.html</a></li>
<li><a href="https://code.ad.ioer.info/jupyter_python_datascience/html/04_topic_classification.html">04_topic_classification.html</a></li>
</ol>
]]></content></item><item><title>The new Foursquare dataset</title><link>https://links.alexanderdunkel.com/posts/2024-11-25-the-new-foursquare-dataset/</link><pubDate>Mon, 25 Nov 2024 12:04:41 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-11-25-the-new-foursquare-dataset/</guid><description>&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/France_map.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;Foursquare released a foundational dataset that includes all places collected so far &lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt;. The dataset includes
many user contributed places, which makes it particularly interesting for social sciences and geosocial media research. I hope
I can intergrate this data with the &lt;a href="https://lbsn.vgiscience.org"&gt;LBSN Structure&lt;/a&gt;, to better map different geosocial media.&lt;/p&gt;
&lt;p&gt;I had a quick glance based on Dominick Weckmüller&amp;rsquo;s data upload &lt;sup id="fnref:2"&gt;&lt;a href="#fn:2" class="footnote-ref" role="doc-noteref"&gt;2&lt;/a&gt;&lt;/sup&gt;. See the complete jupyter notebook with all graphics here &lt;sup id="fnref:3"&gt;&lt;a href="#fn:3" class="footnote-ref" role="doc-noteref"&gt;3&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
&lt;div class="footnotes" role="doc-endnotes"&gt;
&lt;hr&gt;
&lt;ol&gt;
&lt;li id="fn:1"&gt;
&lt;p&gt;&lt;a href="https://location.foursquare.com/resources/blog/products/foursquare-open-source-places-a-new-foundational-dataset-for-the-geospatial-community/"&gt;https://location.foursquare.com/resources/blog/products/foursquare-open-source-places-a-new-foundational-dataset-for-the-geospatial-community/&lt;/a&gt;&amp;#160;&lt;a href="#fnref:1" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id="fn:2"&gt;
&lt;p&gt;&lt;a href="https://huggingface.co/datasets/do-me/foursquare_places_100M"&gt;https://huggingface.co/datasets/do-me/foursquare_places_100M&lt;/a&gt;&amp;#160;&lt;a href="#fnref:2" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id="fn:3"&gt;
&lt;p&gt;&lt;a href="https://code.ad.ioer.info/wip/snippets/html/2024-11-25_foursquare_parquet.html"&gt;https://code.ad.ioer.info/wip/snippets/html/2024-11-25_foursquare_parquet.html&lt;/a&gt;&amp;#160;&lt;a href="#fnref:3" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><content type="html"><![CDATA[<p>
  <img src="/imgs/France_map.png" alt="">
</p>
<p>Foursquare released a foundational dataset that includes all places collected so far <sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup>. The dataset includes
many user contributed places, which makes it particularly interesting for social sciences and geosocial media research. I hope
I can intergrate this data with the <a href="https://lbsn.vgiscience.org">LBSN Structure</a>, to better map different geosocial media.</p>
<p>I had a quick glance based on Dominick Weckmüller&rsquo;s data upload <sup id="fnref:2"><a href="#fn:2" class="footnote-ref" role="doc-noteref">2</a></sup>. See the complete jupyter notebook with all graphics here <sup id="fnref:3"><a href="#fn:3" class="footnote-ref" role="doc-noteref">3</a></sup>.</p>
<div class="footnotes" role="doc-endnotes">
<hr>
<ol>
<li id="fn:1">
<p><a href="https://location.foursquare.com/resources/blog/products/foursquare-open-source-places-a-new-foundational-dataset-for-the-geospatial-community/">https://location.foursquare.com/resources/blog/products/foursquare-open-source-places-a-new-foundational-dataset-for-the-geospatial-community/</a>&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
<li id="fn:2">
<p><a href="https://huggingface.co/datasets/do-me/foursquare_places_100M">https://huggingface.co/datasets/do-me/foursquare_places_100M</a>&#160;<a href="#fnref:2" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
<li id="fn:3">
<p><a href="https://code.ad.ioer.info/wip/snippets/html/2024-11-25_foursquare_parquet.html">https://code.ad.ioer.info/wip/snippets/html/2024-11-25_foursquare_parquet.html</a>&#160;<a href="#fnref:3" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
</ol>
</div>
]]></content></item><item><title>Matplotlib nested pie chart</title><link>https://links.alexanderdunkel.com/posts/2024-11-22-matplotlib-nested-pie-chart/</link><pubDate>Fri, 22 Nov 2024 12:47:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-11-22-matplotlib-nested-pie-chart/</guid><description>&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2024-11-22_pie.svg" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;The goal was to re-create an MS PowerPoint nested pie chart in Matplotlib. This allows parametrization and svg output.&lt;/p&gt;
&lt;p&gt;Here is the Jupyter notebook:
&lt;a href="https://code.ad.ioer.info/wip/snippets/html/2024-11-21_donut_mpl.html"&gt;https://code.ad.ioer.info/wip/snippets/html/2024-11-21_donut_mpl.html&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p>
  <img src="/imgs/2024-11-22_pie.svg" alt="">
</p>
<p>The goal was to re-create an MS PowerPoint nested pie chart in Matplotlib. This allows parametrization and svg output.</p>
<p>Here is the Jupyter notebook:
<a href="https://code.ad.ioer.info/wip/snippets/html/2024-11-21_donut_mpl.html">https://code.ad.ioer.info/wip/snippets/html/2024-11-21_donut_mpl.html</a></p>
]]></content></item><item><title>Jupyter-Book Training Material</title><link>https://links.alexanderdunkel.com/posts/2024-11-15-jupyter-book-training-material/</link><pubDate>Fri, 15 Nov 2024 11:46:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-11-15-jupyter-book-training-material/</guid><description>&lt;p&gt;This project is currently internal only.&lt;/p&gt;
&lt;p&gt;For publishing training materials for the IOER-RDC, together with &lt;a href="https://www.nfdi4biodiversity.org/en/"&gt;NFDI4Biodiversity&lt;/a&gt;,
I created a Gitlab CI pipeline that produces HTML-materials from &lt;code&gt;*.ipynb&lt;/code&gt; files. At the core of this process is &lt;a href="https://github.com/jupyter-book/jupyter-book"&gt;jupyter-book&lt;/a&gt;,
which does most of the heavy lifting. As a starting point, I used the excellent &lt;a href="https://geographicdata.science/book/intro"&gt;Geographic Data Science with Python&lt;/a&gt; book from
Sergio Rey, Dani Arribas-Bel, &amp;amp; Levi Wolf.&lt;/p&gt;
&lt;p&gt;The book is currently available internally at:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://stag.knowledge.fdz.ioer.info/"&gt;https://stag.knowledge.fdz.ioer.info/&lt;/a&gt; (testing)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://knowledge.fdz.ioer.info/"&gt;https://knowledge.fdz.ioer.info/&lt;/a&gt; (production)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2024-11-15_jupyter-book.webp" alt=""&gt;
&lt;/p&gt;</description><content type="html"><![CDATA[<p>This project is currently internal only.</p>
<p>For publishing training materials for the IOER-RDC, together with <a href="https://www.nfdi4biodiversity.org/en/">NFDI4Biodiversity</a>,
I created a Gitlab CI pipeline that produces HTML-materials from <code>*.ipynb</code> files. At the core of this process is <a href="https://github.com/jupyter-book/jupyter-book">jupyter-book</a>,
which does most of the heavy lifting. As a starting point, I used the excellent <a href="https://geographicdata.science/book/intro">Geographic Data Science with Python</a> book from
Sergio Rey, Dani Arribas-Bel, &amp; Levi Wolf.</p>
<p>The book is currently available internally at:</p>
<ul>
<li><a href="https://stag.knowledge.fdz.ioer.info/">https://stag.knowledge.fdz.ioer.info/</a> (testing)</li>
<li><a href="https://knowledge.fdz.ioer.info/">https://knowledge.fdz.ioer.info/</a> (production)</li>
</ul>
<p>
  <img src="/imgs/2024-11-15_jupyter-book.webp" alt="">
</p>
<p>This is the Gitlab pipeline.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yml" data-lang="yml"><span class="line"><span class="cl"><span class="nt">stages</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">build-staging</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">build</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">deploy</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">deploy-staging</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  
</span></span></span><span class="line"><span class="cl"><span class="nt">build-staging</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;registry.gitlab.vgiscience.org/tud_ifk/miniconda-cidefault:0.7.6&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">stage</span><span class="p">:</span><span class="w"> </span><span class="l">build</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">variables</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">GIT_FETCH_EXTRA_FLAGS</span><span class="p">:</span><span class="w"> </span>--<span class="l">tags</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">GIT_STRATEGY</span><span class="p">:</span><span class="w"> </span><span class="l">clone</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">before_script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">       </span><span class="c"># initialize conda shell</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">conda init bash</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">source ~/.bashrc</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># activate default ci_env from registry image</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># contains anybadge</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">conda activate ci_env</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># checkout to release branch</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">git checkout -B &#34;$CI_COMMIT_REF_NAME&#34; &#34;$CI_COMMIT_SHA&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># create staging badges with version from latest tag</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">version_str=$(git describe --tags $(git rev-list --tags --max-count=1))</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">version_var=&#34;$(echo $version_str | cut -c2-)-staging&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">echo &#34;Version for badges $version_var&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">anybadge -l version --value=&#34;${version_var}&#34; --file=version.svg --color=green</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">anybadge -l pipeline --value=&#34;passed (staging)&#34; --file=pipeline.svg --color=green</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># convert readme to index.html and contributing.md and copy to webroot</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># use intermediate step to include mermaid conversion</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">npx -p @mermaid-js/mermaid-cli mmdc -p ./.pandoc/puppeteer-config.json -i README.md -o README.md</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">npx -p @mermaid-js/mermaid-cli mmdc -p ./.pandoc/puppeteer-config.json -i CONTRIBUTING.md -o CONTRIBUTING.md</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">pandoc -v</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">pandoc --standalone --embed-resource -c .pandoc/readme.css --template .pandoc/readme.html -f gfm -t html README.md -o readme.html</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">pandoc --standalone --embed-resource -c .pandoc/readme.css --template .pandoc/readme.html -f gfm -t html CONTRIBUTING.md -o contributing.html</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># create book</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">jupyter-book config sphinx .</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">jupyter-book build .</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># replace version badge with staging path</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">sed -i -e &#39;s|https://knowledge.fdz.ioer.info/version.svg|https://stag.knowledge.fdz.ioer.info/version.svg|g&#39; _build/html/intro.html</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># custom ugly fix for header style of &#34;welcome&#34; page (shown in red)</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">sed -i -e &#39;s|&lt;h1&gt;Welcome 🎉&lt;a class=&#34;headerlink&#34; href=&#34;#welcome&#34; title=&#34;Permalink to this heading&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;|&lt;h1&gt;&lt;span style=&#34;font-size:60px; font-weight:bold; color:red; font-family:&#34;Comic Sans MS&#34;;&#34;&gt;Welcome &lt;span style=&#34;font-family:unset;&#34;&gt;🎉&lt;/span&gt;&lt;/span&gt;&lt;a class=&#34;headerlink&#34; href=&#34;#welcome&#34; title=&#34;Permalink to this heading&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;|g&#39; _build/html/notebooks/01_introduction.html</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># collect artifacts</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">mkdir ._site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">cp *.svg ._site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># copy book files</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">cp -r _build/html/* ._site/.</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">cp .pandoc/*.css ._site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">cp .pandoc/*.png ._site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">cp *.html ._site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">cp -r resources/* ._site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">mv ._site _site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">artifacts</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">_site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">paths</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">_site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">only</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="l">staging</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    
</span></span></span><span class="line"><span class="cl"><span class="nt">build</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;registry.gitlab.vgiscience.org/tud_ifk/miniconda-cidefault:0.7.6&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">stage</span><span class="p">:</span><span class="w"> </span><span class="l">build</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">variables</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">GIT_FETCH_EXTRA_FLAGS</span><span class="p">:</span><span class="w"> </span>--<span class="l">tags</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">GIT_STRATEGY</span><span class="p">:</span><span class="w"> </span><span class="l">clone</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">before_script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">       </span><span class="c"># initialize conda shell</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">conda init bash</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">source ~/.bashrc</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># activate default ci_env from registry image</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># contains anybadge</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">conda activate ci_env</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">conda install jupyter-book -c conda-forge</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># checkout to release branch</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">git checkout -B &#34;$CI_COMMIT_REF_NAME&#34; &#34;$CI_COMMIT_SHA&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">git config --global user.name &#34;semantic-release (via GitlabCI)&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">git config --global user.email &#34;semantic-release@gitlab&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># create release version</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">url_host=`git remote get-url origin | sed -e &#34;s/https:\/\/gitlab-ci-token:.*@//g&#34;`</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">git remote set-url origin &#34;https://gitlab-ci-token:${GL_TOKEN}@${url_host}&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">semantic-release version</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">semantic-release publish</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">git push origin main --follow-tags</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># create badges with version from latest tag</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">version_str=$(git describe --tags $(git rev-list --tags --max-count=1))</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">version_var=$(echo $version_str | cut -c2-)</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">echo &#34;Version for badges $version_var&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">anybadge -l version --value=&#34;${version_var}&#34; --file=version.svg --color=green</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">anybadge -l pipeline --value=&#34;passed&#34; --file=pipeline.svg --color=green</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># convert readme to index.html and contributing.md and copy to webroot</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># use intermediate step to include mermaid conversion</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">npx -p @mermaid-js/mermaid-cli mmdc -p ./.pandoc/puppeteer-config.json -i README.md -o README.md</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">npx -p @mermaid-js/mermaid-cli mmdc -p ./.pandoc/puppeteer-config.json -i CONTRIBUTING.md -o CONTRIBUTING.md</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">pandoc --standalone --embed-resource -c .pandoc/readme.css --template .pandoc/readme.html -f gfm -t html README.md -o readme.html</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">pandoc --standalone --embed-resource -c .pandoc/readme.css --template .pandoc/readme.html -f gfm -t html CONTRIBUTING.md -o contributing.html</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># create book</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">jupyter-book config sphinx .</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">jupyter-book build .</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># custom ugly fix for header style of &#34;welcome&#34; page (shown in red)</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">sed -i -e &#39;s|&lt;h1&gt;Welcome 🎉&lt;a class=&#34;headerlink&#34; href=&#34;#welcome&#34; title=&#34;Permalink to this heading&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;|&lt;h1&gt;&lt;span style=&#34;font-size:60px; font-weight:bold; color:red; font-family:&#34;Comic Sans MS&#34;;&#34;&gt;Welcome &lt;span style=&#34;font-family:unset;&#34;&gt;🎉&lt;/span&gt;&lt;/span&gt;&lt;a class=&#34;headerlink&#34; href=&#34;#welcome&#34; title=&#34;Permalink to this heading&#34;&gt;#&lt;/a&gt;&lt;/h1&gt;|g&#39; _build/html/notebooks/01_introduction.html</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># collect artifacts</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">mkdir ._site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">cp *.svg ._site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="c"># copy book files</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">cp -r _build/html/* ._site/.</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">cp .pandoc/*.css ._site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">cp .pandoc/*.png ._site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">cp *.html ._site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">cp -r resources/* ._site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">mv ._site _site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">artifacts</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">_site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">paths</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">_site</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">only</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="l">main</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">deploy</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">stage</span><span class="p">:</span><span class="w"> </span><span class="l">deploy</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;registry.gitlab.vgiscience.org/tud_ifk/rsync-ssh-alpine:alpine3.17-r0-v4&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">before_script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">eval $(ssh-agent -s)</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">echo &#34;${SSH_PRIVKEY}&#34; | ssh-add -</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">mkdir -p ~/.ssh</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="s1">&#39;[[ -f /.dockerenv ]] &amp;&amp; echo -e &#34;Host *\n\tStrictHostKeyChecking no\n\n&#34; &gt; ~/.ssh/config&#39;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">rsync -avu -zz --no-perms --omit-dir-times --chown=www-data:www-data --chmod=D775,F664 _site/ &#34;${PRODUCTION_DESTINATION}&#34;/public/jupyter-book/</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">only</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="l">main</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">deploy-staging</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">stage</span><span class="p">:</span><span class="w"> </span><span class="l">deploy</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;registry.gitlab.vgiscience.org/tud_ifk/rsync-ssh-alpine:alpine3.17-r0-v4&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">before_script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">eval $(ssh-agent -s)</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">echo &#34;${SSH_PRIVKEY}&#34; | ssh-add -</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">mkdir -p ~/.ssh</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="s1">&#39;[[ -f /.dockerenv ]] &amp;&amp; echo -e &#34;Host *\n\tStrictHostKeyChecking no\n\n&#34; &gt; ~/.ssh/config&#39;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">script</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">rsync -avu -zz --no-perms --omit-dir-times --chown=www-data:www-data --chmod=D775,F664 _site/ &#34;${PRODUCTION_DESTINATION}&#34;/public/jupyter-book-staging/</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">only</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span>- <span class="l">staging</span><span class="w">
</span></span></span></code></pre></div>]]></content></item><item><title>Viewshed analysis in GRASS and Jupyter</title><link>https://links.alexanderdunkel.com/posts/2024-10-27-grass-gis-viewshed/</link><pubDate>Mon, 04 Nov 2024 17:11:41 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-10-27-grass-gis-viewshed/</guid><description>&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/025fe6e5a0935dd4.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;A colleague asked me if the speed of the ESRI viewshed calculation could be improved.
It took them 10.5 hours to compute 1620 viewsheds.&lt;/p&gt;
&lt;p&gt;This was the first time I looked into GRASS GIS &lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt; and the grass.jupyter package
&lt;sup id="fnref:2"&gt;&lt;a href="#fn:2" class="footnote-ref" role="doc-noteref"&gt;2&lt;/a&gt;&lt;/sup&gt;. Computing time is now down to 30 minutes for 1620 viewsheds (16 threads parallel
processing, 32GB memory). See the notebook for my example walkthrough &lt;sup id="fnref:3"&gt;&lt;a href="#fn:3" class="footnote-ref" role="doc-noteref"&gt;3&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
&lt;div class="footnotes" role="doc-endnotes"&gt;
&lt;hr&gt;
&lt;ol&gt;
&lt;li id="fn:1"&gt;
&lt;p&gt;&lt;a href="https://grass.osgeo.org/"&gt;https://grass.osgeo.org/&lt;/a&gt;&amp;#160;&lt;a href="#fnref:1" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id="fn:2"&gt;
&lt;p&gt;&lt;a href="https://grass.osgeo.org/grass83/manuals/libpython/grass.jupyter.html"&gt;https://grass.osgeo.org/grass83/manuals/libpython/grass.jupyter.html&lt;/a&gt;&amp;#160;&lt;a href="#fnref:2" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id="fn:3"&gt;
&lt;p&gt;&lt;a href="https://alexanderdunkel.com/01_viewshedanalysis.html"&gt;https://alexanderdunkel.com/01_viewshedanalysis.html&lt;/a&gt;&amp;#160;&lt;a href="#fnref:3" class="footnote-backref" role="doc-backlink"&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><content type="html"><![CDATA[<p>
  <img src="/imgs/025fe6e5a0935dd4.png" alt="">
</p>
<p>A colleague asked me if the speed of the ESRI viewshed calculation could be improved.
It took them 10.5 hours to compute 1620 viewsheds.</p>
<p>This was the first time I looked into GRASS GIS <sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup> and the grass.jupyter package
<sup id="fnref:2"><a href="#fn:2" class="footnote-ref" role="doc-noteref">2</a></sup>. Computing time is now down to 30 minutes for 1620 viewsheds (16 threads parallel
processing, 32GB memory). See the notebook for my example walkthrough <sup id="fnref:3"><a href="#fn:3" class="footnote-ref" role="doc-noteref">3</a></sup>.</p>
<div class="footnotes" role="doc-endnotes">
<hr>
<ol>
<li id="fn:1">
<p><a href="https://grass.osgeo.org/">https://grass.osgeo.org/</a>&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
<li id="fn:2">
<p><a href="https://grass.osgeo.org/grass83/manuals/libpython/grass.jupyter.html">https://grass.osgeo.org/grass83/manuals/libpython/grass.jupyter.html</a>&#160;<a href="#fnref:2" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
<li id="fn:3">
<p><a href="https://alexanderdunkel.com/01_viewshedanalysis.html">https://alexanderdunkel.com/01_viewshedanalysis.html</a>&#160;<a href="#fnref:3" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
</ol>
</div>
]]></content></item><item><title>Slides: IOER Conference</title><link>https://links.alexanderdunkel.com/posts/2024-09-25-slides-ioer-conference/</link><pubDate>Thu, 26 Sep 2024 11:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-09-25-slides-ioer-conference/</guid><description>&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/ioerslides.png" alt="IOER SLides Intro"&gt;
&lt;/p&gt;
&lt;p&gt;My web slides for tomorrow&amp;rsquo;s IOER Conference at the Hygienemuseum, Dresden:
&lt;a href="https://slides.ad.ioer.info/ioerconference_geosocial/"&gt;https://slides.ad.ioer.info/ioerconference_geosocial/&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p>
  <img src="/imgs/ioerslides.png" alt="IOER SLides Intro">
</p>
<p>My web slides for tomorrow&rsquo;s IOER Conference at the Hygienemuseum, Dresden:
<a href="https://slides.ad.ioer.info/ioerconference_geosocial/">https://slides.ad.ioer.info/ioerconference_geosocial/</a></p>
]]></content></item><item><title>Jupyter Publishing Workflow: Reproducible Science</title><link>https://links.alexanderdunkel.com/posts/2024-09-11-jupyter-publishing-workflow/</link><pubDate>Wed, 11 Sep 2024 08:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-09-11-jupyter-publishing-workflow/</guid><description>&lt;p&gt;&lt;a href="https://www.nature.com/articles/s41562-016-0021"&gt;Reproducible Science&lt;/a&gt; requires documentation and communication. In an effort to improve
my communication and documentation of code at the &lt;a href="https://www.ioer.de"&gt;IOER&lt;/a&gt;, I created a &lt;a href="https://gitlab.hrz.tu-chemnitz.de/ioer/common/jupyter-base-template"&gt;Jupyter Lab project template&lt;/a&gt;
that will set up different automations for me. About a year ago, I &lt;a href="../2023-03-16-jupyter-template"&gt;already wrote&lt;/a&gt; about the first version of this template.&lt;/p&gt;
&lt;p&gt;I have now improved this significantly. Some of the new features include improved legibility of Jupyter Notebooks converted to HTMLs.
&lt;img src="https://gitlab.hrz.tu-chemnitz.de/ioer/common/jupyter-base-template/-/raw/main/resources/notebook.jpeg?raw=true" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;There is also now an overview page generated from the &lt;code&gt;readme.md&lt;/code&gt; in the Gitlab CI with &lt;code&gt;pandoc&lt;/code&gt;. The HTML/CSS template leans on github.io and the jupyter document view:&lt;/p&gt;</description><content type="html"><![CDATA[<p><a href="https://www.nature.com/articles/s41562-016-0021">Reproducible Science</a> requires documentation and communication. In an effort to improve
my communication and documentation of code at the <a href="https://www.ioer.de">IOER</a>, I created a <a href="https://gitlab.hrz.tu-chemnitz.de/ioer/common/jupyter-base-template">Jupyter Lab project template</a>
that will set up different automations for me. About a year ago, I <a href="../2023-03-16-jupyter-template">already wrote</a> about the first version of this template.</p>
<p>I have now improved this significantly. Some of the new features include improved legibility of Jupyter Notebooks converted to HTMLs.

  <img src="https://gitlab.hrz.tu-chemnitz.de/ioer/common/jupyter-base-template/-/raw/main/resources/notebook.jpeg?raw=true" alt="">
</p>
<p>There is also now an overview page generated from the <code>readme.md</code> in the Gitlab CI with <code>pandoc</code>. The HTML/CSS template leans on github.io and the jupyter document view:</p>
<p>
  <img src="https://gitlab.hrz.tu-chemnitz.de/ioer/common/jupyter-base-template/-/raw/main/resources/landing_page_layout.png?raw=true" alt="">
</p>
<p>Have a look at these two sample projects:</p>
<ul>
<li><a href="https://code.ad.ioer.info/wip/geosocial_patterns_de/">https://code.ad.ioer.info/wip/geosocial_patterns_de/</a></li>
<li><a href="https://code.ad.ioer.info/wip/temporal_landscapes/">https://code.ad.ioer.info/wip/temporal_landscapes/</a></li>
</ul>
]]></content></item><item><title>End of Life (EOL): Alternative SSH methods for Windows/WSL</title><link>https://links.alexanderdunkel.com/posts/2024-08-16-wsl-software-ssh-eol-unlisted/</link><pubDate>Fri, 16 Aug 2024 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-08-16-wsl-software-ssh-eol-unlisted/</guid><description>&lt;p&gt;A lot of things have changed with SSH options for Windows and WSL. Between 2019 and 2024, some of the options became deprecated
or are not suggested anymore. For archive purposes, I added these outdated solutions below.&lt;/p&gt;
&lt;p&gt;&lt;a href="../2019-05-27-wsl-software"&gt;Go back to the up-to-date post&lt;/a&gt;.&lt;/p&gt;
&lt;h1 id="ssh-agent-setup"&gt;SSH-Agent Setup&lt;/h1&gt;
&lt;p&gt;You&amp;rsquo;ve generated your key-pair, but you haven&amp;rsquo;t setup an SSH Agent that manages your keys and is used for authentication.&lt;/p&gt;
&lt;p&gt;You&amp;rsquo;ve several options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Option A: Use Linux SSH Agent in WSL
&lt;ul&gt;
&lt;li&gt;easy to setup&lt;/li&gt;
&lt;li&gt;caveat: you can&amp;rsquo;t use the SSH Agent from WSL to authenticate in Windows (e.g. cmd/git-for-windows)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Option B: Use Pageant in Windows 10:
&lt;ul&gt;
&lt;li&gt;easy to setup (use &lt;a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10/#ssh"&gt;choco&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;you can use &lt;a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10/#ssh"&gt;Keepass and the KeeAgent Plugin&lt;/a&gt; to manage your ssh keys in windows&lt;/li&gt;
&lt;li&gt;caveat: you can&amp;rsquo;t use pageant-keys in your WSL&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Option C: Use &lt;a href="https://polansky.co/blog/a-better-windows-wsl-openssh-experience/"&gt;Windows 10 OpenSSH Agent&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;same caveats as B&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Option D: Use &lt;a href="https://github.com/benpye/wsl-ssh-pageant"&gt;wsl-ssh-pageant&lt;/a&gt; or other solutions to connect from WSL to your Windows SSH Agent
&lt;ul&gt;
&lt;li&gt;convenient once it is setup properly&lt;/li&gt;
&lt;li&gt;there&amp;rsquo;s a &lt;a href="#option-d-use-windows-ssh-agent-in-wsl"&gt;list of steps&lt;/a&gt; that need to be taken&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For a long time, I was happy with a combination of &lt;a href="#option-a-setup-wsl-ssh-agent"&gt;Option A&lt;/a&gt; and &lt;a href="#option-b-setup-windows-ssh-agent-with-pageant"&gt;B&lt;/a&gt;. This required unlocking SSH Keys with the password each time I opened a new WSL Window. In windows, I had to unlock my KeePass Store and SSH Keys were available through KeeAgent (but I rarely use SSH in Windows these days).&lt;/p&gt;</description><content type="html"><![CDATA[<p>A lot of things have changed with SSH options for Windows and WSL. Between 2019 and 2024, some of the options became deprecated
or are not suggested anymore. For archive purposes, I added these outdated solutions below.</p>
<p><a href="../2019-05-27-wsl-software">Go back to the up-to-date post</a>.</p>
<h1 id="ssh-agent-setup">SSH-Agent Setup</h1>
<p>You&rsquo;ve generated your key-pair, but you haven&rsquo;t setup an SSH Agent that manages your keys and is used for authentication.</p>
<p>You&rsquo;ve several options:</p>
<ul>
<li>Option A: Use Linux SSH Agent in WSL
<ul>
<li>easy to setup</li>
<li>caveat: you can&rsquo;t use the SSH Agent from WSL to authenticate in Windows (e.g. cmd/git-for-windows)</li>
</ul>
</li>
<li>Option B: Use Pageant in Windows 10:
<ul>
<li>easy to setup (use <a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10/#ssh">choco</a>)</li>
<li>you can use <a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10/#ssh">Keepass and the KeeAgent Plugin</a> to manage your ssh keys in windows</li>
<li>caveat: you can&rsquo;t use pageant-keys in your WSL</li>
</ul>
</li>
<li>Option C: Use <a href="https://polansky.co/blog/a-better-windows-wsl-openssh-experience/">Windows 10 OpenSSH Agent</a>
<ul>
<li>same caveats as B</li>
</ul>
</li>
<li>Option D: Use <a href="https://github.com/benpye/wsl-ssh-pageant">wsl-ssh-pageant</a> or other solutions to connect from WSL to your Windows SSH Agent
<ul>
<li>convenient once it is setup properly</li>
<li>there&rsquo;s a <a href="#option-d-use-windows-ssh-agent-in-wsl">list of steps</a> that need to be taken</li>
</ul>
</li>
</ul>
<p>For a long time, I was happy with a combination of <a href="#option-a-setup-wsl-ssh-agent">Option A</a> and <a href="#option-b-setup-windows-ssh-agent-with-pageant">B</a>. This required unlocking SSH Keys with the password each time I opened a new WSL Window. In windows, I had to unlock my KeePass Store and SSH Keys were available through KeeAgent (but I rarely use SSH in Windows these days).</p>
<p>I never used Option C (the native Windows 10 OpenSSH Agent) since I got used to Pageant and didn&rsquo;t trust Microsoft to get the ssh-agent right the first time.</p>
<p>I recently discovered <a href="#option-d-use-windows-ssh-agent-in-wsl">Option D</a>, which I am using now because I only need to unlock my ssh-key once during my whole Windows Session.</p>
<p>This is my current setup:</p>
<ul>
<li>Putty &amp; Pageant installed with choco</li>
<li>there&rsquo;s one private (password protected) keyfile for Git/Repo/Github in <code>C:\Users\[User]\.ssh</code>, which will be unlocked on startup and is available for all authentications while the system is running</li>
<li>there&rsquo;s an additional key that is made available through KeeAgent plugin for Keepass that I used to login to remote servers (increased security because I need to unlock Keepass first)</li>
<li>Pageant-Keys from Windows are made available to WSL through wsl-ssh-pageant bridge</li>
</ul>
<h2 id="option-a-setup-wsl-ssh-agent">Option A: Setup WSL ssh agent</h2>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Note: These steps are only necessary if you don&rsquo;t want to follow <a href="#option-d-use-windows-ssh-agent-in-wsl">D - use windows ssh agent in wsl</a>.</p>
</div>
</aside> 
<p>If you generated a private <code>id_rsa</code> with the above instructions, copy it to the linux ssh folder with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">cp /c/temp/id_rsa ~/.ssh/
</span></span></code></pre></div><p>If the file was generated in Windows,
you also need to update permissions, e.g.:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">cd</span> ~/.ssh/
</span></span><span class="line"><span class="cl">chmod <span class="m">700</span> id_rsa
</span></span></code></pre></div><p>In  case your <code>.ssh</code> folder doesn&rsquo;t exist:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">mkdir ~/.ssh/
</span></span></code></pre></div><p><strong>Optional</strong>: auto ssh</p>
<p>Now, each time you authenticate, SSH will ask for the ssh key password. If you want to authenticate once for the whole session (that is: as long as you keep the WSL Window open), follow these steps:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nano ~/.bashrc
</span></span></code></pre></div><p>Add anywhere the following line:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">autossh</span><span class="o">=</span><span class="s1">&#39;eval `ssh-agent -s`;ssh-add&#39;</span>
</span></span></code></pre></div><p>Hit CTRL+O (save), then reload .bashrc:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">source</span> ~/.bashrc
</span></span></code></pre></div><p>When you open a WSL window now, simply type <code>autossh</code>.
It will ask you for a password. You will stay authenticated during the full WSL session.
Another tip: if you do this in a <code>byobu</code> session, you will stay authenticated even when shutting down your computer (this may or may not be a security risk).</p>
<h2 id="option-b-setup-windows-ssh-agent-with-pageant">Option B: Setup Windows ssh agent with Pageant</h2>
<ul>
<li><a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10/">install Putty with Choco</a></li>
<li>optionally, install and setup <a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10/#ssh">Keepass and the KeeAgent Plugin</a> to manage your keys with KeePass</li>
</ul>
<p>Optionally unlock your ssh key on Windows Startup:</p>
<ul>
<li>Copy your private key (that is password protected) to <code>%USERPROFILE%\.ssh\id_rsa</code></li>
<li>Use ⊞ + R and run <code>shell:startup</code> to open your startup folder</li>
<li>right-click / Add shortcut and name it &ldquo;load_ssh_key&rdquo;
<ul>
<li>Target:</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">C<span class="p">:</span><span class="nl">\ProgramData\chocolatey\lib\putty.portable\tools\PAGEANT.EXE</span><span class="c1"> &#34;C:\Users\[User]\.ssh\id_rsa.ppk&#34;</span>
</span></span></code></pre></div><ul>
<li>replace [User] by your username - you can get the full path from explorer by using <code>%USERPROFILE%\.ssh</code> and Shift + Right Click on <code>id_raw.ppk</code> (&ldquo;Copy as Path&rdquo;)</li>
<li>use the path to your pageant executable, example above shows path to PAGEANT.EXE if you installed putty with choco</li>
<li>Start in: <code>C:\ProgramData\chocolatey\lib\putty.portable\tools</code></li>
</ul>
</li>
</ul>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Each time you login to Windows, a prompt will open asking you to unlock your key. It will be available (unlocked) through the whole Windows session.</p>
</div>
</aside> 
<h2 id="keepass-and-keeagent">Keepass and KeeAgent</h2>
<p>An alternative (or complementary) option is to use KeePass with the <a href="https://github.com/dlech/KeeAgent">KeeAgent plugin</a>.</p>
<p>Everytime you unlock your KeePass password store, selected keys are made available through KeeAgent in Pageant SSH Agent, there&rsquo;s no need to enter the password for the key.
This allows me to make keys available that I do not use as often (e.g. my Home SSH key, when I&rsquo;m at work).</p>
<ul>
<li>install <a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10/#ssh">KeePass with choco</a></li>
<li>install <a href="https://github.com/dlech/KeeAgent">KeeAgent plugin</a>
<ul>
<li>in KeePass Options / KeeAgent Tab, add (replace <code>[User]</code> with your user or use any other path):
<ul>
<li>Cygwin socket file <code>C:\Users\[User]\Documents\workspace\cyglockfile</code></li>
<li>Msysgit socket file <code>C:\Users\[User]\Documents\syslockfile</code></li>
</ul>
</li>
<li>if you are using pageant in Windows, select the KeeAgent Mode <code>Client</code>, otherwise <code>Agent</code></li>
</ul>
</li>
</ul>
<p>I also set the following options for KeeAgent:

  <img src="/imgs/2020-01-11_KeeAgent.png" alt="">
</p>
<ul>
<li>Add your ssh-key to KeePass, enable KeeAgent availability for each key you want to make available on KeePass unlock</li>
<li>it is a good practice to have only one or two keys made available, otherwise your login may fail due to too many login attempts</li>
<li>Check which keys are unlocked in KeePass under Tools/KeeAgent
<ul>
<li>you can also use this Window to manually remove/add keys form the SSH Agent</li>
</ul>
</li>
</ul>
<h2 id="option-d-use-windows-ssh-agent-in-wsl">Option D: Use Windows SSH-Agent in WSL</h2>
<p>Make sure you&rsquo;ve followed <a href="#b-setup-windows-ssh-agent-with-pageant">B</a> first if you want auto-unlock of your key on windows startup.</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>If you are on WSL2 (instead of WSL1), scroll down to <a href="#option-d-use-windows-ssh-agent-in-wsl2">use windows ssh-agent in wsl2</a>.</p>
</div>
</aside> 
<p><strong>Prepare and test setup:</strong></p>
<ul>
<li>open windows command line (shift + right click, e.g. in your windows documents folder)</li>
<li>create folder <code>workspace</code> with <code>mkdir workspace</code> (e.g. in windows documents folder)</li>
<li>create another folder for the SSH_SOCK_FILE somewhere, e.g. <code>C:\wsl-ssh-pageant</code></li>
<li>Download the latest release of
<ul>
<li><strong><a href="https://github.com/benpye/wsl-ssh-pageant/releases/download/20201121.2/wsl-ssh-pageant-amd64.exe">wsl-ssh-pageant-amd64.exe</a></strong> and</li>
<li><strong><a href="https://github.com/benpye/wsl-ssh-pageant/releases/download/20201121.2/wsl-ssh-pageant-amd64-gui.exe">wsl-ssh-pageant-amd64-gui.exe</a></strong> from <a href="https://github.com/benpye/wsl-ssh-pageant/releases">wsl-ssh-pageant</a></li>
<li>store these files in your <code>workspace</code> folder (e.g. in windows documents folder)</li>
</ul>
</li>
<li><code>cd workspace</code> in your cmd from above</li>
<li>run
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">wsl-ssh-pageant-amd64.exe <span class="se">^
</span></span></span><span class="line"><span class="cl"><span class="se"> </span> -force -systray -wsl  C:\wsl-ssh-pageant\ssh-agent.sock  <span class="se">^
</span></span></span><span class="line"><span class="cl"><span class="se"> </span> -winssh ssh-pageant -verbose
</span></span></code></pre></div></li>
<li>test your connection:
<ul>
<li>in Windows cmd:
<ul>
<li><code>set SSH_AUTH_SOCK=\\.\pipe\ssh-pageant</code></li>
<li><code>ssh -vvvv -T john@111.11.11.1</code> (use a server and username of your own)</li>
</ul>
</li>
<li>in WSL:
<ul>
<li><code>export SSH_AUTH_SOCK=/c/wsl-ssh-pageant/ssh-agent.sock</code></li>
<li><code>ssh-add -l</code> should now list your keys available in Windows Pageant</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><strong>Make it automatically available in WSL:</strong></p>
<p>In WSL, run <code>nano ~/.bashrc</code> and add <code>export SSH_AUTH_SOCK=/c/wsl-ssh-pageant/ssh-agent.sock</code>.</p>
<p>In Windows, go to your task scheduler (⊞ + R and run <code>taskschd.msc</code>)</p>
<p>In the folder Task Scheduler Library, on the right side, click <code>Create Task..</code></p>
<p>Go to Actions Tab and click <code>New</code></p>
<p>Copy the full path to your wsl-ssh-pageant-amd64-gui.exe, including the arguments from above (without <code>-verbose</code>), e.g.:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">C<span class="p">:</span><span class="nl">\Users\[User]\Documents\workspace\wsl-ssh-pageant-amd64-gui.exe</span><span class="c1"> -force -systray -wsl  C:\wsl-ssh-pageant\ssh-agent.sock  -winssh ssh-pageant</span>
</span></span></code></pre></div><p>We&rsquo;re using the gui version because it&rsquo;ll run in the background inside your task items.</p>
<ul>
<li>Optional: Add <code>/noshow</code> to the field &ldquo;Add arguments&rdquo; if you don&rsquo;t want the icon to be visible in your taskbar</li>
</ul>
<p>
  <img src="/imgs/2020-01-10_wsl-ssh-pageant.png" alt="">
</p>
<p>Click OK, confirm with yes.</p>
<p>Under General, provide a name for the task such as <code>wsl-ssh-bridge</code></p>
<p>Optional: check &ldquo;Hidden&rdquo; and &ldquo;Windows 10&rdquo; if you don&rsquo;t want the task to be visible</p>
<p>
  <img src="/imgs/2020-01-10_tasks.png" alt="">
</p>
<p>Under Triggers Click <code>New..</code> and chose At log on (select your user).</p>
<p>
  <img src="/imgs/2020-01-10_tasks_logon.png" alt="">
</p>
<p>Restart your computer or logout and login again.</p>
<p>After you&rsquo;ve unlocked your key, open WSL session and test if your key is available with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh-add -l
</span></span></code></pre></div><p>Optional: If you don&rsquo;t want to start this task automatically, you can also add a shortcut to start the task with the target <code>wsl-ssh-bridge</code> (the name you&rsquo;ve given your task):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">C<span class="p">:</span><span class="nl">\Windows\System32\schtasks.exe</span><span class="c1"> /run /tn &#34;wsl-ssh-bridge&#34;</span>
</span></span></code></pre></div><p>.. and an alterative shortcut to stop the task:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">C<span class="p">:</span><span class="nl">\Windows\System32\schtasks.exe</span><span class="c1"> /end /tn &#34;wsl-ssh-bridge&#34;</span>
</span></span></code></pre></div><p>Done!</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path d="M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"/></svg>
	</div>
	<div class="admonition-content"><p>This also works in combination with the KeePass and KeeAgent approach descibed above.</p>
</div>
</aside> 


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p><strong>Further reading:</strong><br>
How to add your public key to remote servers, create aliases and more
is covered in a <a href="/posts/2020-11-03-ssh-hosts-tud">separate post</a>.</p>
</div>
</aside> 
<h2 id="option-d-use-windows-ssh-agent-in-wsl2">Option D: Use Windows SSH-Agent in WSL2</h2>
<p>The instructions below are based on <a href="https://github.com/rupor-github/wsl-ssh-agent">rupor-github/wsl-ssh-agent</a>
and <a href="https://github.com/benpye/wsl-ssh-pageant/issues/33">benpye/wsl-ssh-pageant/issues/33</a>.</p>
<p>Install dependencies:</p>
<ul>
<li>make sure you have pageant installed on Windows and you have a key unlocked and added to pageant on Windows,
e.g. <a href="#option-b-setup-windows-ssh-agent-with-pageant">see setup windows ssh agent with pageant</a></li>
</ul>
<pre tabindex="0"><code>sudo apt update &amp;&amp; sudo apt install socat p7zip-full
</code></pre><p>Get <code>npiperelay.exe</code>, store it on the Windows side and make it
available in Linux with correct permissions.</p>
<ul>
<li>replace <code>{username}</code> with your Linux username (e.g. <code>whoami</code>)</li>
<li>replace <code>[USER]</code> with your Windows username</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">cd</span> /tmp
</span></span><span class="line"><span class="cl">wget https://github.com/jstarks/npiperelay/releases/download/v0.1.0/npiperelay_windows_386.zip
</span></span><span class="line"><span class="cl">7z e -y /tmp/npiperelay_windows_386.zip
</span></span><span class="line"><span class="cl">sudo cp npiperelay.exe /c/Users/<span class="o">[</span>USER<span class="o">]</span>
</span></span><span class="line"><span class="cl">sudo chmod +x /c/Users/<span class="o">[</span>USER<span class="o">]</span>/npiperelay.exe
</span></span><span class="line"><span class="cl">sudo chown <span class="o">{</span>username<span class="o">}</span>:<span class="o">{</span>username<span class="o">}</span> /c/Users/<span class="o">[</span>USER<span class="o">]</span>/npiperelay.exe
</span></span></code></pre></div>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>You can check which Windows named pipes exist (with &ldquo;ssh&rdquo; in name) using Powershell:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="o">[</span>System.IO.Directory<span class="o">]</span>::GetFiles<span class="o">(</span><span class="s2">&#34;\\.\\pipe\\&#34;</span><span class="o">)</span> <span class="p">|</span> Select-String -Pattern ssh
</span></span></code></pre></div></div>
</aside> 
<p>Get <code>wsl-ssh-agent-relay</code> and store it correct permissions:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">cd</span> /tmp
</span></span><span class="line"><span class="cl">wget https://raw.githubusercontent.com/rupor-github/wsl-ssh-agent/master/docs/wsl-ssh-agent-relay
</span></span><span class="line"><span class="cl">sudo cp wsl-ssh-agent-relay ~/.local/bin/
</span></span><span class="line"><span class="cl">sudo chmod +x ~/.local/bin/wsl-ssh-agent-relay
</span></span><span class="line"><span class="cl">sudo chown <span class="o">{</span>username<span class="o">}</span>:<span class="o">{</span>username<span class="o">}</span> ~/.local/bin/wsl-ssh-agent-relay
</span></span></code></pre></div><p>Edit <code>wsl-ssh-agent-relay</code> and modify paths to <code>npiperelay.exe</code> and <code>wsl-ssh-agent.sock</code>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nano ~/.local/bin/wsl-ssh-agent-relay
</span></span></code></pre></div><p>Edit:</p>
<ul>
<li>replace <code>[USER]</code> with your Windows username</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nv">RELAY_BIN</span><span class="o">=</span><span class="s2">&#34;/c/Users/[USER]/npiperelay.exe&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nv">WSL_AGENT_SSH_SOCK</span><span class="o">=</span><span class="s2">&#34;</span><span class="si">${</span><span class="nv">HOME</span><span class="si">}</span><span class="s2">/.ssh/wsl-ssh-agent.sock&#34;</span>
</span></span></code></pre></div><p>Prepare SSH directory:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">mkdir -m <span class="m">700</span> -p ~/.ssh
</span></span></code></pre></div><p>Update <code>~/.bashrc</code> to auto-start relay and socat pipe:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nano ~/.bashrc
</span></span></code></pre></div><ul>
<li>replace <code>[USER]</code> with your Windows username</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="si">${</span><span class="nv">HOME</span><span class="si">}</span>/.local/bin/wsl-ssh-agent-relay start
</span></span><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">SSH_AUTH_SOCK</span><span class="o">=</span><span class="si">${</span><span class="nv">HOME</span><span class="si">}</span>/.ssh/wsl-ssh-agent.sock
</span></span><span class="line"><span class="cl">setsid nohup socat EXEC:<span class="s2">&#34;/c/Users/[USER]/npiperelay.exe //./pipe/\ssh-pageant&#34;</span> <span class="se">\
</span></span></span><span class="line"><span class="cl">    UNIX-LISTEN:<span class="si">${</span><span class="nv">SSH_AUTH_SOCK</span><span class="si">}</span>,unlink-close,unlink-early,fork <span class="se">\
</span></span></span><span class="line"><span class="cl">    &gt;/dev/null 2&gt;<span class="p">&amp;</span><span class="m">1</span> <span class="p">&amp;</span>
</span></span></code></pre></div><p>Reload <code>~/.bashrc</code> bashrc:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">source</span> ~/.bashrc
</span></span></code></pre></div><p>Test:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh-add -l
</span></span><span class="line"><span class="cl">&gt; <span class="m">2048</span> SHA256:
</span></span><span class="line"><span class="cl">&gt; ...
</span></span></code></pre></div>]]></content></item><item><title>65 Million reactions in Germany visualized with datashader and parquet</title><link>https://links.alexanderdunkel.com/posts/2024-08-14-datashader-parquet-de-patterns/</link><pubDate>Wed, 14 Aug 2024 13:11:41 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-08-14-datashader-parquet-de-patterns/</guid><description>&lt;p&gt;Visualization of 65 Million Geo-Social Media posts from Twitter, Instagram, Flickr, and iNaturalist
(2010-~2022) with parquet (streamed processing) and datashader.&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2024-08-14_geosocial_patterns_de.png" alt=""&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Notebook with graphics: &lt;a href="https://code.ad.ioer.info/wip/geosocial_patterns_de/html/01_overview_de.html"&gt;https://code.ad.ioer.info/wip/geosocial_patterns_de/html/01_overview_de.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Repository: &lt;a href="https://gitlab.hrz.tu-chemnitz.de/ad/geosocial_patterns_de/"&gt;https://gitlab.hrz.tu-chemnitz.de/ad/geosocial_patterns_de/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Visualization of 65 Million Geo-Social Media posts from Twitter, Instagram, Flickr, and iNaturalist
(2010-~2022) with parquet (streamed processing) and datashader.</p>
<p>
  <img src="/imgs/2024-08-14_geosocial_patterns_de.png" alt="">
</p>
<ul>
<li>Notebook with graphics: <a href="https://code.ad.ioer.info/wip/geosocial_patterns_de/html/01_overview_de.html">https://code.ad.ioer.info/wip/geosocial_patterns_de/html/01_overview_de.html</a></li>
<li>Repository: <a href="https://gitlab.hrz.tu-chemnitz.de/ad/geosocial_patterns_de/">https://gitlab.hrz.tu-chemnitz.de/ad/geosocial_patterns_de/</a></li>
</ul>
]]></content></item><item><title>Carto-Lab Docker now has a dedicated documentation</title><link>https://links.alexanderdunkel.com/posts/2024-07-23-carto-lab-docker/</link><pubDate>Tue, 23 Jul 2024 07:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-07-23-carto-lab-docker/</guid><description>&lt;hr&gt;
&lt;p&gt;
&lt;img src="https://cartolab.theplink.org/logo_inv.svg" alt="Carto-Lab Docker Logo"&gt;
&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Carto-Lab Docker&lt;/strong&gt; now has a dedicated documentation available at &lt;a href="https://cartolab.theplink.org/"&gt;https://cartolab.theplink.org/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The container stack became a critical work bench for my research in the last 7 years and this is the first step to make this available
to colleagues. While JupyterLab can be easily started, it is often quite difficult to mainatin reproducible environments that can be
easily shared with others. With Carto-Lab Docker, all environments are available inside versioned Docker containers that bundle the OS,
Jupyter Lab Server and the Python virtual environment.&lt;/p&gt;</description><content type="html"><![CDATA[<hr>
<p>
  <img src="https://cartolab.theplink.org/logo_inv.svg" alt="Carto-Lab Docker Logo">
</p>
<hr>
<p><strong>Carto-Lab Docker</strong> now has a dedicated documentation available at <a href="https://cartolab.theplink.org/">https://cartolab.theplink.org/</a>.</p>
<p>The container stack became a critical work bench for my research in the last 7 years and this is the first step to make this available
to colleagues. While JupyterLab can be easily started, it is often quite difficult to mainatin reproducible environments that can be
easily shared with others. With Carto-Lab Docker, all environments are available inside versioned Docker containers that bundle the OS,
Jupyter Lab Server and the Python virtual environment.</p>
<p>Want to run a notebook from 3 years ago that was produced with Carto-Lab Docker <code>0.14.0</code>? Just change the version tag in <code>.env</code>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nv">TAG</span><span class="o">=</span>v0.14.0
</span></span></code></pre></div><p>&hellip; and pull the corresponding docker container image with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">docker compose pull
</span></span></code></pre></div><p>.. and start the container, which makes JupyterLab available on <code>http://localhost:8888</code> by default:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">docker compose up -d
</span></span></code></pre></div><h2 id="example-notebooks">Example Notebooks</h2>
<p>I looked through my work and summarized all papers where I made use of Carto-Lab Docker.</p>
<h3 id="workshop-series-tud">Workshop Series TUD</h3>
<p>The <a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_python_datascience">Social Media, Jupyter Lab &amp; Tag Maps Workshop Series at TUD</a> contains a number of example Jupyter Notebooks that can be run with Carto-Lab Docker.</p>
<p><strong>HTML Versions of Notebooks:</strong></p>
<ol>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/01_raw_intro.html">01_raw_intro.html</a></li>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/02_hll_intro.html">02_hll_intro.html</a></li>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/03_tagmaps.html">03_tagmaps.html</a></li>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/04_topic_classification.html">04_topic_classification.html</a></li>
</ol>
<h3 id="publications">Publications</h3>
<p>The following publications include Jupyter notebooks created with Carto-Lab Docker as supplementary material:</p>
<ul>
<li><strong>Dunkel, A., &amp; Burghardt, D. (2024).</strong> Assessing Perceived Landscape Change from Opportunistic Spatiotemporal Occurrence Data. Land, 13(7), 1091. <a href="https://doi.org/10.3390/land13071091">DOI</a>
<ul>
<li>S1 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/01_mass_invasion.html">01_mass_invasion.html</a></li>
<li>S2 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/02_reddit_api.html">02_reddit_api.html</a></li>
<li>S3 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/03_reddit_pmaw.html">03_reddit_pmaw.html</a></li>
<li>S4 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/04_reddit_privacy.html">04_reddit_privacy.html</a></li>
<li>S5 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/05_reddit_vis.html">05_reddit_vis.html</a></li>
<li>S6 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/06_cherry_blossoms.html">06_cherry_blossoms.html</a></li>
<li>S7 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/07_hotspots.html">07_hotspots.html</a></li>
<li>S8 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/08_milvus_conversion.html">08_milvus_conversion.html</a></li>
<li>S9 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/09_milvus_maps.html">09_milvus_maps.html</a></li>
<li>S10 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/10_milvus_chi.html">10_milvus_chi.html</a></li>
</ul>
</li>
<li><strong>Dunkel, A., Burghardt, D., &amp; Gugulica, M. (2024).</strong> Generative Text-to-Image Diffusion for Automated Map Production Based on Geosocial Media Data. KN - Journal of Cartography and Geographic Information. <a href="https://doi.org/10.1007/s42489-024-00159-9">DOI</a>
<ul>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/wip/mapnik_stablediffusion/html/01_tagmaps.html">Notebook 1</a>: Data preparation, spatial tag clustering (Tagmaps)</li>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/wip/mapnik_stablediffusion/html/02_generativeai.html">Notebook 2</a>: Generative AI parameters &amp; tests</li>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/wip/mapnik_stablediffusion/html/03_map_processing.html">Notebook 3</a>: Map generation</li>
</ul>
</li>
<li><strong>Dunkel, A., Hartmann, M. C., Hauthal, E., Burghardt, D., &amp; Purves, R. S. (2023).</strong> From sunrise to sunset: Exploring landscape preference through global reactions to ephemeral events captured in georeferenced social media. PLOS ONE, 18(2), e0280423. <a href="https://doi.org/10.1371/journal.pone.0280423">DOI</a>
<ul>
<li><a href="https://ad.vgiscience.org/sunset-sunrise-paper/01_grid_agg.html">01_grid_agg.html</a></li>
<li><a href="https://ad.vgiscience.org/sunset-sunrise-paper/02_visualization.html">02_visualization.html</a></li>
<li><a href="https://ad.vgiscience.org/sunset-sunrise-paper/03_chimaps.html">03_chimaps.html</a></li>
<li><a href="https://ad.vgiscience.org/sunset-sunrise-paper/04_combine.html">04_combine.html</a></li>
<li><a href="https://ad.vgiscience.org/sunset-sunrise-paper/05_countries.html">05_countries.html</a></li>
<li><a href="https://ad.vgiscience.org/sunset-sunrise-paper/06_semantics.html">06_semantics.html</a></li>
<li><a href="https://ad.vgiscience.org/sunset-sunrise-paper/07_time.html">07_time.html</a></li>
<li><a href="https://ad.vgiscience.org/sunset-sunrise-paper/08_relationships.html">08_relationships.html</a></li>
<li><a href="https://ad.vgiscience.org/sunset-sunrise-paper/09_statistics.html">09_statistics.html</a></li>
</ul>
</li>
<li><strong>Dunkel, A., Löchner, M., &amp; Burghardt, D. (2020).</strong> Privacy-Aware Visualization of Volunteered Geographic Information (VGI) to Analyze Spatial Activity: A Benchmark Implementation. ISPRS International Journal of Geo-Information, 9(10), 607. <a href="https://doi.org/10.3390/ijgi9100607">DOI</a>
<ul>
<li><a href="http://ad.vgiscience.org/yfcc_gridagg/01_preparations.html">01_preparations.html</a></li>
<li><a href="http://ad.vgiscience.org/yfcc_gridagg/02_yfcc_gridagg_raw.html">02_yfcc_gridagg_raw.html</a></li>
<li><a href="http://ad.vgiscience.org/yfcc_gridagg/03_yfcc_gridagg_hll.html">03_yfcc_gridagg_hll.html</a></li>
<li><a href="http://ad.vgiscience.org/yfcc_gridagg/04_interpretation.html">04_interpretation.html</a></li>
</ul>
</li>
</ul>
]]></content></item><item><title>Publication: Assessing perceived landscape change from opportunistic spatio-temporal occurrence data</title><link>https://links.alexanderdunkel.com/posts/2024-07-17-temporal-landscapes/</link><pubDate>Wed, 17 Jul 2024 07:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-07-17-temporal-landscapes/</guid><description>&lt;hr&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2024-07-17_Fig.01.svg" alt="TemporalLandscapes"&gt;
&lt;/p&gt;
&lt;div style="width:100%;display:flex"&gt;
&lt;span style="text-align: center;"&gt;Figure 1. SETS framework for separating three types of couplings influencing opportunistic data collection through geosocial media and VGI over time (left) and space (right).&lt;/span&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;blockquote&gt;
&lt;p&gt;Dunkel, A., Burghardt, D. (2024). Assessing Perceived Landscape Change from Opportunistic Spatiotempo-
ral Occurrence Data. Special issue: Exploring Multisensory Landscapes: 2023 Visual Resource Stewardship
Conference, Land 2024, 13, 1091. &lt;a href="https://doi.org/10.3390/land13071091"&gt;DOI&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Overview: &lt;a href="https://code.ad.ioer.info/wip/temporal_landscapes/"&gt;https://code.ad.ioer.info/wip/temporal_landscapes/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In this paper, we looked at several phenomena that emerge from the increasing use
of technology and social media that affect landscape perception over time. We use
the Social-Ecological-Technological System (SETS) framework (McPhearson et al. 2022)
to systematize biases in five case studies and to assess perceived landscape change
from different perspectives.&lt;/p&gt;</description><content type="html"><![CDATA[<hr>
<p>
  <img src="/imgs/2024-07-17_Fig.01.svg" alt="TemporalLandscapes">
</p>
<div style="width:100%;display:flex">
<span style="text-align: center;">Figure 1. SETS framework for separating three types of couplings influencing opportunistic data collection through geosocial media and VGI over time (left) and space (right).</span>
</div>
<hr>
<blockquote>
<p>Dunkel, A., Burghardt, D. (2024). Assessing Perceived Landscape Change from Opportunistic Spatiotempo-
ral Occurrence Data. Special issue: Exploring Multisensory Landscapes: 2023 Visual Resource Stewardship
Conference, Land 2024, 13, 1091. <a href="https://doi.org/10.3390/land13071091">DOI</a></p>
</blockquote>
<p>Overview: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/">https://code.ad.ioer.info/wip/temporal_landscapes/</a></p>
<p>In this paper, we looked at several phenomena that emerge from the increasing use
of technology and social media that affect landscape perception over time. We use
the Social-Ecological-Technological System (SETS) framework (McPhearson et al. 2022)
to systematize biases in five case studies and to assess perceived landscape change
from different perspectives.</p>
<p>The findings support that trends such as <em>fake news</em> (Terren et al. 2021), <em>social
bubbles</em> (Elmas et al. 2021), and <em>GenAI</em> are creating an &ldquo;era of artificial illusions&rdquo;
(Casu et al. 2024) in which the senses are increasingly challenged to distinguish
between the real and the imagined.</p>
<p>The final article:
<a href="https://doi.org/10.3390/land13071091">https://doi.org/10.3390/land13071091</a></p>
<p>The preprint:<br>
<a href="https://www.preprints.org/manuscript/202407.0527/v1">https://www.preprints.org/manuscript/202407.0527/v1</a>, <a href="https://doi.org/10.20944/preprints202407.0527.v1">DOI</a></p>
<p>The Gitlab repository:<br>
<img src="https://code.ad.ioer.info/wip/temporal_landscapes/version.svg" style="float:left"></img>  
<a href="https://gitlab.hrz.tu-chemnitz.de/ad/temporal_landscapes">https://gitlab.hrz.tu-chemnitz.de/ad/temporal_landscapes</a></p>
<h2 id="links-to-html-converted-notebooks">Links to HTML-converted Notebooks</h2>
<ul>
<li>S1 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/01_mass_invasion.html">01_mass_invasion.html</a></li>
<li>S2 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/02_reddit_api.html">02_reddit_api.html</a></li>
<li>S3 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/03_reddit_pmaw.html">03_reddit_pmaw.html</a></li>
<li>S4 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/04_reddit_privacy.html">04_reddit_privacy.html</a></li>
<li>S5 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/05_reddit_vis.html">05_reddit_vis.html</a></li>
<li>S6 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/06_cherry_blossoms.html">06_cherry_blossoms.html</a></li>
<li>S7 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/07_hotspots.html">07_hotspots.html</a></li>
<li>S8 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/08_milvus_conversion.html">08_milvus_conversion.html</a></li>
<li>S9 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/09_milvus_maps.html">09_milvus_maps.html</a></li>
<li>S10 Jupyter Notebook: <a href="https://code.ad.ioer.info/wip/temporal_landscapes/html/10_milvus_chi.html">10_milvus_chi.html</a></li>
</ul>
<h2 id="supplementary-data-publication">Supplementary Data Publication</h2>
<p>The Data repository submission:<br>
<a href="https://opara.zih.tu-dresden.de/handle/123456789/806">https://opara.zih.tu-dresden.de/handle/123456789/806</a>. <a href="https://doi.org/10.25532/OPARA-572">DOI</a></p>
<p>How to cite the data repository submission:</p>
<blockquote>
<ol start="31">
<li>Dunkel, A.; Burghardt, D. Supplementary materials for the publication
&ldquo;Assessing Perceived Landscape Change from Opportunistic Spatio-Temporal Occurrence
Data&rdquo;. Opara digital research archive. DOI: <a href="https://doi.org/10.25532/OPARA-572">10.25532/OPARA-572</a>.</li>
</ol>
</blockquote>
<p>In addition to Jupyter Notebook <code>*.ipynb</code> files, code, comments, output graphics and <em>chore</em>; this also includes
the following data to reproduce findings:</p>
<table>
	<thead>
			<tr>
					<th>Filename</th>
					<th>Case Study</th>
					<th>Description</th>
					<th>Size</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>massinvasions_all_months.csv</td>
					<td>1</td>
					<td>Post Frequences (HLL) for 13 Vantage Points in Europe from Instagram</td>
					<td>1.08 MB</td>
			</tr>
			<tr>
					<td>reddit_all_months.csv</td>
					<td>2</td>
					<td>Post Frequences (HLL) for 20 National Parks from Reddit Subreddits</td>
					<td>429 KB</td>
			</tr>
			<tr>
					<td>reddit_comments_all_months.csv</td>
					<td>2</td>
					<td>Comment Frequences (HLL) for 20 National Parks from Reddit Subreddits</td>
					<td>1.2 MB</td>
			</tr>
			<tr>
					<td>flickr_cherries_hll.csv</td>
					<td>3</td>
					<td>Observed Frequencies (HLL) Users/Posts for Flickr Cherry Blossoming a</td>
					<td>181 KB</td>
			</tr>
			<tr>
					<td>hotspot_all_months.csv</td>
					<td>4</td>
					<td>Observed Frequencies Biodiversity Hotspots (HLL)</td>
					<td>8.81 MB</td>
			</tr>
			<tr>
					<td>flickr_all_months.csv</td>
					<td>5</td>
					<td>Expected Frequencies (HLL) for Flickr Post and User Counts</td>
					<td>941 KB</td>
			</tr>
			<tr>
					<td>inaturalist_all_months.csv</td>
					<td>5</td>
					<td>Expected Frequencies (HLL) for iNaturalist Post and User Counts</td>
					<td>990 KB</td>
			</tr>
			<tr>
					<td>flickr_milvusmilvus_months.csv</td>
					<td>5</td>
					<td>Observed Frequencies (HLL) for iNaturalist Milvus Post and User Counts</td>
					<td>119 KB</td>
			</tr>
			<tr>
					<td>milvus_focus_flickr_inat_all_months.csv</td>
					<td>5</td>
					<td>Observed Frequencies (HLL) Focus Region, iNaturalist and Flickr</td>
					<td>1.01 MB</td>
			</tr>
			<tr>
					<td>milvus_range_inat_all_months.csv</td>
					<td>5</td>
					<td>Observed Frequencies (HLL) Milvus range, iNaturalist and Flickr</td>
					<td>1.24 MB</td>
			</tr>
			<tr>
					<td>inaturalist_birds_month.csv</td>
					<td>5</td>
					<td>Expected/Observed Frequencies (HLL) Aves-Group, iNaturalist</td>
					<td>550 KB</td>
			</tr>
	</tbody>
</table>
<h2 id="full-resolution-figures-and-svg">Full Resolution Figures and SVG</h2>
<p>Below are the high resolution PNG and SVG I submitted to the journal.</p>
<p>Figures:</p>
<style>
.services {
  display: flex;
  justify-content: center; /* horizontally centers the images */
  align-items: center; /* vertically centers the images */
}

.services figure {
  flex-basis: 50%; /* sets the width of the images */
  padding: 5px 5px;
}
</style>
<div class="services">
<figure><a href="2024-07-17_temporal_landscapes/Fig.01.svg"><img src="2024-07-17_temporal_landscapes/Fig.01.svg" width="400"></img></a>
<figcaption>Figure 1. SVG</figcaption>
</figure>
<figure><a href="2024-07-17_temporal_landscapes/Fig.02.png"><img src="2024-07-17_temporal_landscapes/Fig.02.png" width="400"></img></a>
<figcaption>Figure 2. PNG</figcaption>
</figure>
<figure><a href="2024-07-17_temporal_landscapes/Fig.03.svg"><img src="2024-07-17_temporal_landscapes/Fig.03.svg" width="400"></img></a>
<figcaption>Figure 3. SVG</figcaption>
</figure>
<figure><a href="2024-07-17_temporal_landscapes/Fig.04.svg"><img src="2024-07-17_temporal_landscapes/Fig.04.svg" width="400"></img></a>
<figcaption>Figure 4. SVG</figcaption>
</figure>
<figure><a href="2024-07-17_temporal_landscapes/Fig.05.png"><img src="2024-07-17_temporal_landscapes/Fig.05.png" width="400"></img></a>
<figcaption>Figure 5. PNG</figcaption>
</figure>
<figure><a href="2024-07-17_temporal_landscapes/Fig.06.png"><img src="2024-07-17_temporal_landscapes/Fig.06.png" width="400"></img></a>
<figcaption>Figure 6. PNG</figcaption>
</figure>
</div>
<p>Appendices:</p>
<div class="services">
<figure><a href="2024-07-17_temporal_landscapes/Appendix_A1.svg"><img src="2024-07-17_temporal_landscapes/Appendix_A1.png" width="400"></img></a>
<figcaption>Appendix A1. SVG</figcaption>
</figure>
<figure><a href="2024-07-17_temporal_landscapes/Appendix_A2.svg"><img src="2024-07-17_temporal_landscapes/Appendix_A2.png" width="400"></img></a>
<figcaption>Appendix A2. SVG</figcaption>
</figure>
<figure><a href="2024-07-17_temporal_landscapes/Appendix_A3.svg"><img src="2024-07-17_temporal_landscapes/Appendix_A3.png" width="400"></img></a>
<figcaption>Appendix A3. SVG</figcaption>
</figure>
</div>
<h2 id="references">References</h2>
<ul>
<li>
<blockquote>
<p>Casu, M.; Guarnera, L.; Caponnetto, P.; Battiato, S. GenAI Mirage: The Impostor
Bias and the Deepfake Detection Challenge in the Era of Artificial Illusions. Forensic
Science International: Digital Investigation 2024, 50, 301795. DOI: <a href="https://doi.org/10.1016/j.fsidi.2024.301795">10.1016/j.fsidi.2024.301795</a>.</p>
</blockquote>
</li>
<li>
<blockquote>
<p>Elmas, T.; Overdorf, R.; Özkalay, A. F.; Aberer, K. Ephemeral Astroturfing Attacks:
The Case of Fake Twitter Trends. In 2021 IEEE European Symposium on Security and
Privacy (EuroS&amp;P); 2021; pp 403–422. DOI: <a href="https://doi.org/10.1109/EuroSP51992.2021.00035">10.1109/EuroSP51992.2021.00035</a>.</p>
</blockquote>
</li>
<li>
<blockquote>
<p>McPhearson, T.; Cook, E. M.; Berbés-Blázquez, M.; Cheng, C.; Grimm, N. B.; Andersson,
E.; Barbosa, O.; Chandler, D. G.; Chang, H.; Chester, M. V.; Childers, D. L.; Elser,
S. R.; Frantzeskaki, N.; Grabowski, Z.; Groffman, P.; Hale, R. L.; Iwaniec, D. M.;
Kabisch, N.; Kennedy, C.; Markolf, S. A.; Matsler, A. M.; McPhillips, L. E.; Miller,
T. R.; Muñoz-Erickson, T. A.; Rosi, E.; Troxler, T. G. A Social-Ecological-Technological
Systems Framework for Urban Ecosystem Services. One Earth 2022, 5 (5), 505–518. DOI:
<a href="https://doi.org/10.1016/j.oneear.2022.04.007">10.1016/j.oneear.2022.04.007</a>.</p>
</blockquote>
</li>
<li>
<blockquote>
<p>Terren, L.; Borge-Bravo, R.; Echo Chambers on Social Media: A Systematic
Review of the Literature. rev commun res 2021, 9, 99–118.</p>
</blockquote>
</li>
</ul>
]]></content></item><item><title>Slides: Transformative Capacities &amp; Research Data Centre (RDC) - Geosocial Media, Social-Ecological-Technological Systems (SETS), Real World Laboratories</title><link>https://links.alexanderdunkel.com/posts/2024-05-28-fbt-meeting/</link><pubDate>Tue, 28 May 2024 11:30:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-05-28-fbt-meeting/</guid><description>&lt;p&gt;This was the introductory presentation for my IOER-Position at the intersection between Transformative Capacities &amp;amp; Research Data Centre (RDC).
These slides include mainly content that was already shared previously and a bit of outlook for projects that were just started.&lt;/p&gt;
&lt;p&gt;Link to Web Slides:
&lt;a href="https://slides.ad.ioer.info/fbt_meeting/"&gt;https://slides.ad.ioer.info/fbt_meeting/&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p>This was the introductory presentation for my IOER-Position at the intersection between Transformative Capacities &amp; Research Data Centre (RDC).
These slides include mainly content that was already shared previously and a bit of outlook for projects that were just started.</p>
<p>Link to Web Slides:
<a href="https://slides.ad.ioer.info/fbt_meeting/">https://slides.ad.ioer.info/fbt_meeting/</a></p>
]]></content></item><item><title>Slides: Habilitationsvorhaben - Analysis and Visualization of Geosocial Media with Social-Ecological-Technological Systems (SETS)</title><link>https://links.alexanderdunkel.com/posts/2024-05-27-habilitation-fakultaetsrat/</link><pubDate>Mon, 27 May 2024 12:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-05-27-habilitation-fakultaetsrat/</guid><description>&lt;p&gt;This was the application presentation for my habilitation at the TUD-Environmental Research Faculty (Fakultätsrat Umweltwissenschaften).&lt;/p&gt;
&lt;p&gt;The application was accepted.&lt;/p&gt;
&lt;p&gt;My Web Slides:
&lt;a href="https://slides.ad.ioer.info/habil_fakultaetsrat"&gt;https://slides.ad.ioer.info/habil_fakultaetsrat&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p>This was the application presentation for my habilitation at the TUD-Environmental Research Faculty (Fakultätsrat Umweltwissenschaften).</p>
<p>The application was accepted.</p>
<p>My Web Slides:
<a href="https://slides.ad.ioer.info/habil_fakultaetsrat">https://slides.ad.ioer.info/habil_fakultaetsrat</a></p>
]]></content></item><item><title>Slides: Social Cohesion</title><link>https://links.alexanderdunkel.com/posts/2024-04-19-slides-social-cohesion/</link><pubDate>Fri, 19 Apr 2024 10:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-04-19-slides-social-cohesion/</guid><description>&lt;p&gt;This was a Kick-Off meeting between Odile Sauzet (Uni Bielefeld, Statistic and Data analysis) and Jan Goebel (Deutsches Institut für Wirtschaftsforschung e.V., DIW Berlin).&lt;/p&gt;
&lt;p&gt;I shared a number of insights from previous Geosocial Media Research and we discussed what future directions exist for integrating this data
source into decision making in Germany, especially in regard to assessing &amp;ldquo;Social Cohesion&amp;rdquo; of neighborhoods, districts and regions.&lt;/p&gt;
&lt;p&gt;My Web Slides:
&lt;a href="https://slides.ad.ioer.info/social_cohesion/"&gt;https://slides.ad.ioer.info/social_cohesion/&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p>This was a Kick-Off meeting between Odile Sauzet (Uni Bielefeld, Statistic and Data analysis) and Jan Goebel (Deutsches Institut für Wirtschaftsforschung e.V., DIW Berlin).</p>
<p>I shared a number of insights from previous Geosocial Media Research and we discussed what future directions exist for integrating this data
source into decision making in Germany, especially in regard to assessing &ldquo;Social Cohesion&rdquo; of neighborhoods, districts and regions.</p>
<p>My Web Slides:
<a href="https://slides.ad.ioer.info/social_cohesion/">https://slides.ad.ioer.info/social_cohesion/</a></p>
]]></content></item><item><title>Halle-Neustadt - “Plattenbau” Tag Map</title><link>https://links.alexanderdunkel.com/posts/2024-03-21-halle-neustadt/</link><pubDate>Thu, 21 Mar 2024 10:15:11 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-03-21-halle-neustadt/</guid><description>&lt;p&gt;For an upcoming project, I prepared four maps for the Halle-Neustadt &amp;ldquo;Plannenbau&amp;rdquo; district&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://datashare.tu-dresden.de/s/8GDY7D5GgqFFNNb"&gt;https://datashare.tu-dresden.de/s/8GDY7D5GgqFFNNb&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://datashare.tu-dresden.de/s/6aJ2Ff6qsYMStgB"&gt;![](../(/imgs/halle.webp)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Compare the wiki photo from when this was constructed:
&lt;a href="https://de.wikipedia.org/wiki/Block_10_%28Halle-Neustadt%29"&gt;![](../(/imgs/wiki-plattenbau.jpg)&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p>For an upcoming project, I prepared four maps for the Halle-Neustadt &ldquo;Plannenbau&rdquo; district</p>
<ul>
<li><a href="https://datashare.tu-dresden.de/s/8GDY7D5GgqFFNNb">https://datashare.tu-dresden.de/s/8GDY7D5GgqFFNNb</a></li>
</ul>
<p><a href="https://datashare.tu-dresden.de/s/6aJ2Ff6qsYMStgB">![](../(/imgs/halle.webp)</a></p>
<p>Compare the wiki photo from when this was constructed:
<a href="https://de.wikipedia.org/wiki/Block_10_%28Halle-Neustadt%29">![](../(/imgs/wiki-plattenbau.jpg)</a></p>
]]></content></item><item><title>Slides: Habilitation, Fachausschuss Geo (TUD)</title><link>https://links.alexanderdunkel.com/posts/2024-03-20-slides-habil-fachausschuss/</link><pubDate>Wed, 20 Mar 2024 09:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-03-20-slides-habil-fachausschuss/</guid><description>&lt;p&gt;I introduced my Habilitation topic to the Fachausschuss Geo (TUD). The short title is:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Analysis and Visualization of Geosocial Media as Social-Ecological-Technological Systems (SETS)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is the link to the slides: &lt;a href="https://slides.ad.ioer.info/habil_fachausschuss/"&gt;https://slides.ad.ioer.info/habil_fachausschuss/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I included two timelines.&lt;/p&gt;
&lt;h2 id="research-agenda-and-publication-strategy"&gt;Research agenda and publication strategy&lt;/h2&gt;
&lt;p&gt;![Timeline Research Agenda](../(/imgs/timeline-example.drawio.svg?2)&lt;/p&gt;
&lt;h2 id="teaching-concept"&gt;Teaching concept&lt;/h2&gt;
&lt;p&gt;![Timeline Teaching Concept](../(/imgs/timeline-teaching.drawio.svg?4)&lt;/p&gt;
&lt;h2 id="summary"&gt;Summary&lt;/h2&gt;
&lt;p&gt;Most of the work is done. The goal is to frame this whole topic under the umbrella
of the SETS framework. Particularly, the SETS framework treats algorithms as explicit
components in a system that originally only covered humans and ecosystems. This allows
us to better understand, study and shape how Geosocial Media
affects today&amp;rsquo;s sovieties and worldwide ecosystems.&lt;/p&gt;</description><content type="html"><![CDATA[<p>I introduced my Habilitation topic to the Fachausschuss Geo (TUD). The short title is:</p>
<blockquote>
<p>Analysis and Visualization of Geosocial Media as Social-Ecological-Technological Systems (SETS)</p>
</blockquote>
<p>This is the link to the slides: <a href="https://slides.ad.ioer.info/habil_fachausschuss/">https://slides.ad.ioer.info/habil_fachausschuss/</a></p>
<p>I included two timelines.</p>
<h2 id="research-agenda-and-publication-strategy">Research agenda and publication strategy</h2>
<p>![Timeline Research Agenda](../(/imgs/timeline-example.drawio.svg?2)</p>
<h2 id="teaching-concept">Teaching concept</h2>
<p>![Timeline Teaching Concept](../(/imgs/timeline-teaching.drawio.svg?4)</p>
<h2 id="summary">Summary</h2>
<p>Most of the work is done. The goal is to frame this whole topic under the umbrella
of the SETS framework. Particularly, the SETS framework treats algorithms as explicit
components in a system that originally only covered humans and ecosystems. This allows
us to better understand, study and shape how Geosocial Media
affects today&rsquo;s sovieties and worldwide ecosystems.</p>
<p>![Four Facets framed as SETS](../(/imgs/2024-03-04_sets_p2.png)</p>
]]></content></item><item><title>RDC@Campus Sessions Workshop Website in Vuepress v2</title><link>https://links.alexanderdunkel.com/posts/2024-03-15-ioer@campus-vuepress/</link><pubDate>Fri, 15 Mar 2024 12:27:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-03-15-ioer@campus-vuepress/</guid><description>&lt;p&gt;For a Workshop Series in the new IOER Research Data Centre (RDC),
we were looking for a clean and responsive way to organize sessions.&lt;/p&gt;
&lt;p&gt;I am a fan of Vue but never had the chance to try it. Vuepress is a
Static Site generator based on Markdown. Using Vuepress, it was relatively
easy to get to the finished website:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://ioer.gp.hrz.tu-chemnitz.de/fdz/campus/"&gt;https://ioer.gp.hrz.tu-chemnitz.de/fdz/campus/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The webpage is versiond in Git, in a &lt;a href="https://gitlab.hrz.tu-chemnitz.de/ioer/fdz/campus"&gt;public repository on Gitlab from the TU Chemnitz&lt;/a&gt;.&lt;/p&gt;</description><content type="html"><![CDATA[<p>For a Workshop Series in the new IOER Research Data Centre (RDC),
we were looking for a clean and responsive way to organize sessions.</p>
<p>I am a fan of Vue but never had the chance to try it. Vuepress is a
Static Site generator based on Markdown. Using Vuepress, it was relatively
easy to get to the finished website:</p>
<p><a href="https://ioer.gp.hrz.tu-chemnitz.de/fdz/campus/">https://ioer.gp.hrz.tu-chemnitz.de/fdz/campus/</a></p>
<p>The webpage is versiond in Git, in a <a href="https://gitlab.hrz.tu-chemnitz.de/ioer/fdz/campus">public repository on Gitlab from the TU Chemnitz</a>.</p>
<p>I had to contact the Servicedesk to find out the URL for Gitlab pages,
which is <code>gp.hrz.tu-chemnitz.de</code>. The page is then build from Markdown in
Continuos Integration (a Gitlab Runner from TUD) and published under the above public
URL.</p>
<p>For setting up Vuepress, the shortest route I found was this:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># intall NVM</span>
</span></span><span class="line"><span class="cl">curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh <span class="p">|</span> bash
</span></span><span class="line"><span class="cl"><span class="c1"># install latest node and npm with NVM</span>
</span></span><span class="line"><span class="cl">nvm install node
</span></span></code></pre></div><p>Prepare Vuepress template:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">npm init vuepress vuepress-starter
</span></span><span class="line"><span class="cl"><span class="c1"># serve test site under http://localhost:8080/</span>
</span></span><span class="line"><span class="cl">npm run docs:dev
</span></span></code></pre></div><p>For building the latest Release Candidate, I encountered <a href="https://github.com/vuejs/vuepress/issues/3096">an issue</a>
that could be fixed with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">npm add -D vuepress@next
</span></span></code></pre></div><p>Other issues, such as <a href="https://vuepress-theme-hope.github.io/v2/faq/common-error.html#usexxx-is-called-without-provider">usexxx-is-called-without-provider</a>
can be fixed with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">npx vp-update
</span></span></code></pre></div><p>In Gitlab CI, I referenced the same node version (<code>node --version</code>):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">image: node:21.7.1
</span></span></code></pre></div><p>Have a look at the repository, which includes all data, code and configs.</p>
<p>Generally, I found Vuepress easy to setup. But the <code>config.js</code> gets confusing
quickly when adding multiple languages (<code>i8n</code>) and configuration settings, even
for a small site. Also, it is unfortunate that the different languages are stored
in different folders, which makes editing slightly more difficult. Lastly, there
are litte options to automaticall derive teh sidebar links from Markdown headers.
Most configurations for the default theme require manually specifying sidebar texts.</p>
<p>Now, speaking of longevity, Vuepress 2 does not seem <a href="https://blog.coding.kiwi/why-im-not-switching-to-vite-yet/">to have a bright future</a>.
There are plans to phase out Vuepress altogether in favor of Vitepress. However,
since this is a very simple page, I am fine with Vuepress for now.</p>
]]></content></item><item><title>Transformative Capacities &amp; Social-Ecological-Technological Systems (SETS)</title><link>https://links.alexanderdunkel.com/posts/2024-03-05-transformative-capacities-slides/</link><pubDate>Wed, 06 Mar 2024 13:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-03-05-transformative-capacities-slides/</guid><description>&lt;p&gt;Initial discussion slides:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://slides.ad.ioer.info/transformative-capacities-init/#/"&gt;https://slides.ad.ioer.info/transformative-capacities-init/#/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="ioer-web-slides-theme"&gt;IOER Web Slides Theme&lt;/h2&gt;
&lt;p&gt;Next to th presentation above, I also worked on the web sides theme.&lt;/p&gt;
&lt;p&gt;The slides are build on RevealJS 5.0. I updated the slides with an
&lt;a href="https://gitlab.hrz.tu-chemnitz.de/ioer/common/web-presentation-theme"&gt;IOER Web Slide Theme&lt;/a&gt;,
which broadly follows the Power Point style.&lt;/p&gt;
&lt;p&gt;Have a look t a sample presentation here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://ioer.gp.hrz.tu-chemnitz.de/common/presentation/"&gt;https://ioer.gp.hrz.tu-chemnitz.de/common/presentation/&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p>Initial discussion slides:</p>
<ul>
<li><a href="https://slides.ad.ioer.info/transformative-capacities-init/#/">https://slides.ad.ioer.info/transformative-capacities-init/#/</a></li>
</ul>
<h2 id="ioer-web-slides-theme">IOER Web Slides Theme</h2>
<p>Next to th presentation above, I also worked on the web sides theme.</p>
<p>The slides are build on RevealJS 5.0. I updated the slides with an
<a href="https://gitlab.hrz.tu-chemnitz.de/ioer/common/web-presentation-theme">IOER Web Slide Theme</a>,
which broadly follows the Power Point style.</p>
<p>Have a look t a sample presentation here:</p>
<p><a href="https://ioer.gp.hrz.tu-chemnitz.de/common/presentation/">https://ioer.gp.hrz.tu-chemnitz.de/common/presentation/</a></p>
]]></content></item><item><title>Download all Features from all layers of a WFS Service</title><link>https://links.alexanderdunkel.com/posts/2024-01-07-wfs-feature-layer-download/</link><pubDate>Sun, 07 Jan 2024 15:25:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-01-07-wfs-feature-layer-download/</guid><description>&lt;p&gt;Download all Features from all layers of a WFS Service and save
as separate shapefile per layer (e.g. #BfN #LSG)?&lt;/p&gt;
&lt;p&gt;I wanted to get all #WFS features, but neither ArcPro nor QGIS worked here.
Wrote a script with #geopandas and #OWSLib and tada, 5 Minutes later..&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2024-01-07_WFS_get.webp" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;Opensource! 🚀 👍&lt;/p&gt;
&lt;p&gt;These are the steps.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Example to retrieve all WFS Features and store as shapefile with pandas and geopandas.&lt;/p&gt;
&lt;p&gt;&amp;ldquo;BfN Schutzgebiete WFS&amp;rdquo;
&lt;a href="https://geodienste.bfn.de/ogc/wfs/schutzgebiet?REQUEST%3DGetCapabilities&amp;amp;SERVICE%3DWFS&amp;amp;VERSION=2.0.0"&gt;https://geodienste.bfn.de/ogc/wfs/schutzgebiet?REQUEST%3DGetCapabilities&amp;amp;SERVICE%3DWFS&amp;amp;VERSION=2.0.0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Setup:&lt;/p&gt;</description><content type="html"><![CDATA[<p>Download all Features from all layers of a WFS Service and save
as separate shapefile per layer (e.g. #BfN #LSG)?</p>
<p>I wanted to get all #WFS features, but neither ArcPro nor QGIS worked here.
Wrote a script with #geopandas and #OWSLib and tada, 5 Minutes later..</p>
<p>
  <img src="/imgs/2024-01-07_WFS_get.webp" alt="">
</p>
<p>Opensource! 🚀 👍</p>
<p>These are the steps.</p>
<hr>
<p>Example to retrieve all WFS Features and store as shapefile with pandas and geopandas.</p>
<p>&ldquo;BfN Schutzgebiete WFS&rdquo;
<a href="https://geodienste.bfn.de/ogc/wfs/schutzgebiet?REQUEST%3DGetCapabilities&amp;SERVICE%3DWFS&amp;VERSION=2.0.0">https://geodienste.bfn.de/ogc/wfs/schutzgebiet?REQUEST%3DGetCapabilities&amp;SERVICE%3DWFS&amp;VERSION=2.0.0</a></p>
<p>Setup:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">conda</span> <span class="n">create</span> <span class="o">-</span><span class="n">n</span> <span class="n">wfs_env</span> <span class="o">-</span><span class="n">c</span> <span class="n">conda</span><span class="o">-</span><span class="n">forge</span>
</span></span><span class="line"><span class="cl"><span class="n">conda</span> <span class="n">activate</span> <span class="n">wfs_env</span>
</span></span><span class="line"><span class="cl"><span class="n">conda</span> <span class="n">install</span> <span class="n">owslib</span> <span class="n">geopandas</span> <span class="n">requests</span>
</span></span></code></pre></div><p>First, check capabilities in browser
or with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">python</span> <span class="n">get_cap</span><span class="o">.</span><span class="n">py</span>
</span></span></code></pre></div><p>Select your layer, check <code>count</code>.</p>
<p>Edit <code>write_shp.py</code>, update <code>count=1000</code> and <code>startIndex=ix*1000</code> - <code>1000</code> is an example, update with the maximum number of items to retrieve per iteration, based on the capabilities.</p>
<ul>
<li>optionally adapt the WFS format <code>format='GML'</code> (you can also try removing this parameter for automatic matching)
Then run:</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">python</span> <span class="n">write_shp</span><span class="o">.</span><span class="n">py</span>
</span></span></code></pre></div><p>This will loop through all WFS features:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="o">&gt;</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">geodienste</span><span class="o">.</span><span class="n">bfn</span><span class="o">.</span><span class="n">de</span><span class="o">/</span><span class="n">ogc</span><span class="o">/</span><span class="n">wfs</span><span class="o">/</span><span class="n">schutzgebiet</span><span class="err">?</span><span class="n">service</span><span class="o">=</span><span class="n">WFS</span><span class="o">&amp;</span><span class="n">version</span><span class="o">=</span><span class="mf">2.0.0</span><span class="o">&amp;</span><span class="n">request</span><span class="o">=</span><span class="n">GetFeature</span><span class="o">&amp;</span><span class="n">typeName</span><span class="o">=</span><span class="n">bfn_sch_Schutzgebiet</span><span class="o">%</span><span class="mi">3</span><span class="n">ALandschaftsschutzgebiete</span><span class="o">&amp;</span><span class="n">count</span><span class="o">=</span><span class="mi">1000</span><span class="o">&amp;</span><span class="n">startIndex</span><span class="o">=</span><span class="mi">0</span>
</span></span><span class="line"><span class="cl"><span class="o">&gt;</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">geodienste</span><span class="o">.</span><span class="n">bfn</span><span class="o">.</span><span class="n">de</span><span class="o">/</span><span class="n">ogc</span><span class="o">/</span><span class="n">wfs</span><span class="o">/</span><span class="n">schutzgebiet</span><span class="err">?</span><span class="n">service</span><span class="o">=</span><span class="n">WFS</span><span class="o">&amp;</span><span class="n">version</span><span class="o">=</span><span class="mf">2.0.0</span><span class="o">&amp;</span><span class="n">request</span><span class="o">=</span><span class="n">GetFeature</span><span class="o">&amp;</span><span class="n">typeName</span><span class="o">=</span><span class="n">bfn_sch_Schutzgebiet</span><span class="o">%</span><span class="mi">3</span><span class="n">ALandschaftsschutzgebiete</span><span class="o">&amp;</span><span class="n">count</span><span class="o">=</span><span class="mi">1000</span><span class="o">&amp;</span><span class="n">startIndex</span><span class="o">=</span><span class="mi">1000</span>
</span></span><span class="line"><span class="cl"><span class="o">&gt;</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">geodienste</span><span class="o">.</span><span class="n">bfn</span><span class="o">.</span><span class="n">de</span><span class="o">/</span><span class="n">ogc</span><span class="o">/</span><span class="n">wfs</span><span class="o">/</span><span class="n">schutzgebiet</span><span class="err">?</span><span class="n">service</span><span class="o">=</span><span class="n">WFS</span><span class="o">&amp;</span><span class="n">version</span><span class="o">=</span><span class="mf">2.0.0</span><span class="o">&amp;</span><span class="n">request</span><span class="o">=</span><span class="n">GetFeature</span><span class="o">&amp;</span><span class="n">typeName</span><span class="o">=</span><span class="n">bfn_sch_Schutzgebiet</span><span class="o">%</span><span class="mi">3</span><span class="n">ALandschaftsschutzgebiete</span><span class="o">&amp;</span><span class="n">count</span><span class="o">=</span><span class="mi">1000</span><span class="o">&amp;</span><span class="n">startIndex</span><span class="o">=</span><span class="mi">2000</span>
</span></span><span class="line"><span class="cl"><span class="o">&gt;</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">geodienste</span><span class="o">.</span><span class="n">bfn</span><span class="o">.</span><span class="n">de</span><span class="o">/</span><span class="n">ogc</span><span class="o">/</span><span class="n">wfs</span><span class="o">/</span><span class="n">schutzgebiet</span><span class="err">?</span><span class="n">service</span><span class="o">=</span><span class="n">WFS</span><span class="o">&amp;</span><span class="n">version</span><span class="o">=</span><span class="mf">2.0.0</span><span class="o">&amp;</span><span class="n">request</span><span class="o">=</span><span class="n">GetFeature</span><span class="o">&amp;</span><span class="n">typeName</span><span class="o">=</span><span class="n">bfn_sch_Schutzgebiet</span><span class="o">%</span><span class="mi">3</span><span class="n">ALandschaftsschutzgebiete</span><span class="o">&amp;</span><span class="n">count</span><span class="o">=</span><span class="mi">1000</span><span class="o">&amp;</span><span class="n">startIndex</span><span class="o">=</span><span class="mi">3000</span>
</span></span></code></pre></div><p>.. and concat <code>df</code>&rsquo;s (pandas (Geo)DataFrames) and finally store features as shapefile. The <code>CRS</code> is not modified and should match the WFS layer&rsquo;s projection.</p>
<p>Or run:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">python</span> <span class="n">write_shp_all</span><span class="o">.</span><span class="n">py</span>
</span></span></code></pre></div><p>This will loop through all layers and retrieve all features and store them in separate shapefiles.</p>
<p><code>write_shp_all.py</code>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="s2">&#34;&#34;&#34;Fetch all features and all layers of a WFS service 
</span></span></span><span class="line"><span class="cl"><span class="s2">and store as a single shapefile per layer.
</span></span></span><span class="line"><span class="cl"><span class="s2">&#34;&#34;&#34;</span>
</span></span><span class="line"><span class="cl"><span class="n">__version__</span> <span class="o">=</span> <span class="s1">&#39;2024-01-07&#39;</span>
</span></span><span class="line"><span class="cl"><span class="n">__author__</span> <span class="o">=</span> <span class="s1">&#39;Alexander Dunkel&#39;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">requests</span> <span class="kn">import</span> <span class="n">Request</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">owslib.wfs</span> <span class="kn">import</span> <span class="n">WebFeatureService</span>
</span></span><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">geopandas</span> <span class="k">as</span> <span class="nn">gp</span>
</span></span><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># URL for WFS backend</span>
</span></span><span class="line"><span class="cl"><span class="n">url</span> <span class="o">=</span> <span class="s2">&#34;https://geodienste.bfn.de/ogc/wfs/schutzgebiet&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Initialize</span>
</span></span><span class="line"><span class="cl"><span class="n">wfs</span> <span class="o">=</span> <span class="n">WebFeatureService</span><span class="p">(</span><span class="n">url</span><span class="o">=</span><span class="n">url</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">layers</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">wfs</span><span class="o">.</span><span class="n">contents</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">fetch_features</span><span class="p">(</span><span class="n">layer_name</span><span class="p">,</span> <span class="n">fetch_cnt</span><span class="p">:</span> <span class="nb">int</span><span class="p">,</span> <span class="n">ix</span><span class="p">:</span> <span class="nb">int</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">gp</span><span class="o">.</span><span class="n">GeoDataFrame</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;&#34;&#34;Fetch features and return as GeoDataFrame&#34;&#34;&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="n">params</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">service</span><span class="o">=</span><span class="s1">&#39;WFS&#39;</span><span class="p">,</span> <span class="n">version</span><span class="o">=</span><span class="s2">&#34;2.0.0&#34;</span><span class="p">,</span> <span class="n">request</span><span class="o">=</span><span class="s1">&#39;GetFeature&#39;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="n">typeName</span><span class="o">=</span><span class="n">layer_name</span><span class="p">,</span> <span class="n">count</span><span class="o">=</span><span class="n">fetch_cnt</span><span class="p">,</span> <span class="n">startIndex</span><span class="o">=</span><span class="n">ix</span><span class="o">*</span><span class="n">fetch_cnt</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    
</span></span><span class="line"><span class="cl">    <span class="c1"># Parse the URL with parameters</span>
</span></span><span class="line"><span class="cl">    <span class="n">wfs_request_url</span> <span class="o">=</span> <span class="n">Request</span><span class="p">(</span><span class="s1">&#39;GET&#39;</span><span class="p">,</span> <span class="n">url</span><span class="p">,</span> <span class="n">params</span><span class="o">=</span><span class="n">params</span><span class="p">)</span><span class="o">.</span><span class="n">prepare</span><span class="p">()</span><span class="o">.</span><span class="n">url</span>
</span></span><span class="line"><span class="cl">    
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="n">wfs_request_url</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="c1"># df = gp.read_file(wfs_request_url)</span>
</span></span><span class="line"><span class="cl">    <span class="k">try</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="n">df_new</span> <span class="o">=</span> <span class="n">gp</span><span class="o">.</span><span class="n">read_file</span><span class="p">(</span><span class="n">wfs_request_url</span><span class="p">,</span> <span class="nb">format</span><span class="o">=</span><span class="s1">&#39;GML&#39;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="k">except</span> <span class="ne">ValueError</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="k">return</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="n">df_new</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">loop_layer</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">layer_name</span><span class="p">,</span> <span class="n">max_loops</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">100</span><span class="p">,</span> <span class="n">item_fetch_cnt</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">1000</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">gp</span><span class="o">.</span><span class="n">GeoDataFrame</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;&#34;&#34;Specify the parameters for fetching the data
</span></span></span><span class="line"><span class="cl"><span class="s2">    max_loops: how many iterations per layer max
</span></span></span><span class="line"><span class="cl"><span class="s2">    item_fetch_cnt: specificies amount of rows to return per iteration 
</span></span></span><span class="line"><span class="cl"><span class="s2">        (e.g. 10000 or 100); check capabilities in browser first
</span></span></span><span class="line"><span class="cl"><span class="s2">    startIndex: specifies at which offset to start returning rows
</span></span></span><span class="line"><span class="cl"><span class="s2">    &#34;&#34;&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="n">df</span> <span class="o">=</span> <span class="kc">None</span>
</span></span><span class="line"><span class="cl">    <span class="n">cnt</span> <span class="o">=</span> <span class="mi">0</span>
</span></span><span class="line"><span class="cl">    <span class="k">for</span> <span class="n">ix</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">100</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">        <span class="n">df_new</span> <span class="o">=</span> <span class="n">fetch_features</span><span class="p">(</span><span class="n">layer_name</span><span class="p">,</span> <span class="n">item_fetch_cnt</span><span class="p">,</span> <span class="n">ix</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">        <span class="k">if</span> <span class="n">df_new</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">            <span class="nb">print</span><span class="p">(</span><span class="s2">&#34;Empty received, aborting..&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">            <span class="k">break</span>
</span></span><span class="line"><span class="cl">        <span class="n">new_cnt</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="n">df_new</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">        <span class="k">if</span> <span class="n">new_cnt</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">            <span class="c1"># empty result</span>
</span></span><span class="line"><span class="cl">            <span class="c1"># all rows fetched?</span>
</span></span><span class="line"><span class="cl">            <span class="k">break</span>
</span></span><span class="line"><span class="cl">        <span class="n">cnt</span> <span class="o">+=</span> <span class="n">new_cnt</span>
</span></span><span class="line"><span class="cl">        <span class="nb">print</span> <span class="p">(</span><span class="sa">f</span><span class="s2">&#34;Round </span><span class="si">{</span><span class="n">ix</span><span class="si">}</span><span class="s2">, retrieved </span><span class="si">{</span><span class="n">cnt</span><span class="si">}</span><span class="s2"> features&#34;</span><span class="p">,</span> <span class="n">end</span><span class="o">=</span><span class="s2">&#34;</span><span class="se">\r</span><span class="s2">&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">        <span class="k">if</span> <span class="n">df</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">            <span class="n">df</span> <span class="o">=</span> <span class="n">df_new</span>
</span></span><span class="line"><span class="cl">        <span class="k">else</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">            <span class="n">df</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">concat</span><span class="p">([</span><span class="n">df</span><span class="p">,</span> <span class="n">df_new</span><span class="p">])</span>
</span></span><span class="line"><span class="cl">        <span class="k">if</span> <span class="n">new_cnt</span> <span class="o">&lt;</span> <span class="n">item_fetch_cnt</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">            <span class="k">break</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="n">df</span>
</span></span><span class="line"><span class="cl">        
</span></span><span class="line"><span class="cl"><span class="k">for</span> <span class="n">layer_name</span> <span class="ow">in</span> <span class="n">layers</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="c1"># Fetch all features for all layers</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s1">&#39;Fetching layer </span><span class="si">{</span><span class="n">layer_name</span><span class="si">}</span><span class="s1">&#39;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="n">df</span> <span class="o">=</span> <span class="n">loop_layer</span><span class="p">(</span><span class="n">layer_name</span><span class="o">=</span><span class="n">layer_name</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="c1"># sanitize layername</span>
</span></span><span class="line"><span class="cl">    <span class="n">layer_name_fine</span> <span class="o">=</span> <span class="s2">&#34;&#34;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">x</span> <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">layer_name</span> <span class="k">if</span> <span class="n">x</span><span class="o">.</span><span class="n">isalnum</span><span class="p">())</span>
</span></span><span class="line"><span class="cl">    <span class="n">df</span><span class="o">.</span><span class="n">to_file</span><span class="p">(</span><span class="sa">f</span><span class="s1">&#39;2024-01-07_bfn_</span><span class="si">{</span><span class="n">layer_name_fine</span><span class="si">}</span><span class="s1">.shp&#39;</span><span class="p">)</span>
</span></span></code></pre></div><p>See a gist here:
<a href="https://gist.github.com/Sieboldianus/7167d4c93aa073ac327bc03423d4b642">https://gist.github.com/Sieboldianus/7167d4c93aa073ac327bc03423d4b642</a></p>
]]></content></item><item><title>Jupyter Lab Workshop and Lecture Series: Social Media, Data Analysis, &amp; Cartograpy, WS 2023/24</title><link>https://links.alexanderdunkel.com/posts/2024-01-06-jupyter-workshop-lecture-series/</link><pubDate>Sat, 06 Jan 2024 15:17:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2024-01-06-jupyter-workshop-lecture-series/</guid><description>&lt;h2 id="link-to-repository"&gt;Link to repository&lt;/h2&gt;
&lt;p&gt;Shortlink:
&lt;a href="https://tud.link/5vpd"&gt;https://tud.link/5vpd&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Full Link:
&lt;a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_python_datascience"&gt;https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_python_datascience&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Shortlink to tag maps workshop:
&lt;a href="https://tud.link/gjkz"&gt;https://tud.link/gjkz&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Link list discussion:
&lt;a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/samples.html"&gt;https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/samples.html&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="lecture-links"&gt;Lecture Links&lt;/h2&gt;
&lt;p&gt;These are the links to the two lectures from December 2023:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Analysis and Visualization of Geo-Social Media:&lt;br&gt;
&lt;a href="https://kartographie.geo.tu-dresden.de/ad/lbsm-facets-lecture-2023"&gt;https://kartographie.geo.tu-dresden.de/ad/lbsm-facets-lecture-2023&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Python data science 101 for Social Media Cartography (and beyond):&lt;br&gt;
&lt;a href="https://kartographie.geo.tu-dresden.de/ad/python_datascience_2023"&gt;https://kartographie.geo.tu-dresden.de/ad/python_datascience_2023&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The two workshops will be available soon. Find the link to repository below.&lt;/p&gt;
&lt;h2 id="html-versions-of-notebooks"&gt;HTML Versions of Notebooks&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/01_raw_intro.html"&gt;01_raw_intro.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/02_hll_intro.html"&gt;02_hll_intro.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/03_tagmaps.html"&gt;03_tagmaps.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/04_topic_classification.html"&gt;04_topic_classification.html&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="live-questionnaire-slido"&gt;Live questionnaire (slido)&lt;/h2&gt;
&lt;p&gt;It was the first time I tested interactive voting live in the lecture via
&lt;a href="https://www.slido.com/?experience_id=231214-a"&gt;slido.com&lt;/a&gt;,
integrated into web slides. It worked well. One of the advantages was that the
questionnaire was anonymous. Students would take a photograph of the QR-Code from the
projector and answer through their phones, without providing a name. Almost all
participated! (unlike, e.g., when asking students directly)&lt;/p&gt;</description><content type="html"><![CDATA[<h2 id="link-to-repository">Link to repository</h2>
<p>Shortlink:
<a href="https://tud.link/5vpd">https://tud.link/5vpd</a></p>
<p>Full Link:
<a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_python_datascience">https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_python_datascience</a></p>
<p>Shortlink to tag maps workshop:
<a href="https://tud.link/gjkz">https://tud.link/gjkz</a></p>
<p>Link list discussion:
<a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/samples.html">https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/samples.html</a></p>
<h2 id="lecture-links">Lecture Links</h2>
<p>These are the links to the two lectures from December 2023:</p>
<ul>
<li>Analysis and Visualization of Geo-Social Media:<br>
<a href="https://kartographie.geo.tu-dresden.de/ad/lbsm-facets-lecture-2023">https://kartographie.geo.tu-dresden.de/ad/lbsm-facets-lecture-2023</a></li>
<li>Python data science 101 for Social Media Cartography (and beyond):<br>
<a href="https://kartographie.geo.tu-dresden.de/ad/python_datascience_2023">https://kartographie.geo.tu-dresden.de/ad/python_datascience_2023</a></li>
</ul>
<p>The two workshops will be available soon. Find the link to repository below.</p>
<h2 id="html-versions-of-notebooks">HTML Versions of Notebooks</h2>
<ol>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/01_raw_intro.html">01_raw_intro.html</a></li>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/02_hll_intro.html">02_hll_intro.html</a></li>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/03_tagmaps.html">03_tagmaps.html</a></li>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/jupyter_python_datascience/04_topic_classification.html">04_topic_classification.html</a></li>
</ol>
<h2 id="live-questionnaire-slido">Live questionnaire (slido)</h2>
<p>It was the first time I tested interactive voting live in the lecture via
<a href="https://www.slido.com/?experience_id=231214-a">slido.com</a>,
integrated into web slides. It worked well. One of the advantages was that the
questionnaire was anonymous. Students would take a photograph of the QR-Code from the
projector and answer through their phones, without providing a name. Almost all
participated! (unlike, e.g., when asking students directly)</p>
<p>I asked how our international Mobile Cartography Students how they
feel about the &ldquo;Big Five&rdquo;-Personality-Traits and how they would characterize Saxony.
This was the result:</p>
<p><img src="big-five.webp" width="600"></img></p>
<p>Not nice, but this is probably the reality..</p>
<p>A second question was how they used social media so far:
<img src="social-use.webp" width="600"></img></p>
<p>Later, I queried the students for writing prompts for ChatGPT and we compared
the results for the different ways students phrased their prompts (prompt engeneering).</p>
<p>I was pretty happy - it was possible to engage all students, which
is really difficult these days.</p>
]]></content></item><item><title>Biodiversity Hotspot 28: Lübecker Bucht - Tag Map</title><link>https://links.alexanderdunkel.com/posts/2023-12-05-hotspots-28-tagmap/</link><pubDate>Tue, 05 Dec 2023 12:08:02 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-12-05-hotspots-28-tagmap/</guid><description>&lt;p&gt;&lt;a href="https://links.alexanderdunkel.com/imgs/001_LuebeckerBucht_tagmap_crop_TN.webp"&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/001_LuebeckerBucht_tagmap_crop_TN.webp" alt=""&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hotspot 28, “Westmecklenburgische Ostseeküste und Lübecker Becken”, is one of 30 Biodiversity Hotspots in Germany.&lt;/p&gt;
&lt;p&gt;The Tag Map was generated based on clustering of public geotagged content from Instagram, Flickr, Twitter and iNaturalist.&lt;/p&gt;
&lt;p&gt;The PDF files with legend are available here:
&lt;a href="https://datashare.tu-dresden.de/s/HadLbRysW669gcp"&gt;https://datashare.tu-dresden.de/s/HadLbRysW669gcp&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p><a href="/imgs/001_LuebeckerBucht_tagmap_crop_TN.webp">
  <img src="/imgs/001_LuebeckerBucht_tagmap_crop_TN.webp" alt="">
</a></p>
<p>Hotspot 28, “Westmecklenburgische Ostseeküste und Lübecker Becken”, is one of 30 Biodiversity Hotspots in Germany.</p>
<p>The Tag Map was generated based on clustering of public geotagged content from Instagram, Flickr, Twitter and iNaturalist.</p>
<p>The PDF files with legend are available here:
<a href="https://datashare.tu-dresden.de/s/HadLbRysW669gcp">https://datashare.tu-dresden.de/s/HadLbRysW669gcp</a></p>
]]></content></item><item><title>Visual Resource Stewardship Conference, Argonne, US</title><link>https://links.alexanderdunkel.com/posts/2023-10-11-scenic-resource-stewardship-conference-argonne/</link><pubDate>Mon, 13 Nov 2023 09:30:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-10-11-scenic-resource-stewardship-conference-argonne/</guid><description>&lt;p&gt;The post about the &lt;a href="https://links.alexanderdunkel.com/posts/2023-08-19-temporality-scenic-resources/"&gt;conference proceedings&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I will be presenting at the 2023 Visual Resource Stewardship Conference, Argonne, in Chicago, on November 13, 2023, on the topic:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Event Inventories: Estimating the Temporality of Landscape Scenic Resources resources from user-contributed geodata&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://kartographie.geo.tu-dresden.de/ad/vrsc-2023-slides/#/"&gt;https://kartographie.geo.tu-dresden.de/ad/vrsc-2023-slides/#/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Link with slide-numbers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://kartographie.geo.tu-dresden.de/ad/vrsc-2023-slides/?slideNumber=true#/"&gt;https://kartographie.geo.tu-dresden.de/ad/vrsc-2023-slides/?slideNumber=true#/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Shortlink:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://tud.link/tnaf"&gt;https://tud.link/tnaf&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Link to archive slides (PDF):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="files/TBS2B_3_Dunkel.pdf"&gt;TBS2B_3_Dunkel.pdf&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>The post about the <a href="/posts/2023-08-19-temporality-scenic-resources/">conference proceedings</a>.</p>
<p>I will be presenting at the 2023 Visual Resource Stewardship Conference, Argonne, in Chicago, on November 13, 2023, on the topic:</p>
<blockquote>
<p>Event Inventories: Estimating the Temporality of Landscape Scenic Resources resources from user-contributed geodata</p>
</blockquote>
<ul>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/vrsc-2023-slides/#/">https://kartographie.geo.tu-dresden.de/ad/vrsc-2023-slides/#/</a></li>
</ul>
<p>Link with slide-numbers:</p>
<ul>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/vrsc-2023-slides/?slideNumber=true#/">https://kartographie.geo.tu-dresden.de/ad/vrsc-2023-slides/?slideNumber=true#/</a></li>
</ul>
<p>Shortlink:</p>
<ul>
<li><a href="https://tud.link/tnaf">https://tud.link/tnaf</a></li>
</ul>
<p>Link to archive slides (PDF):</p>
<ul>
<li><a href="files/TBS2B_3_Dunkel.pdf">TBS2B_3_Dunkel.pdf</a></li>
</ul>
]]></content></item><item><title>Preprint+Article: Generative text-to-image diffusion for automated map production based on geosocial media data</title><link>https://links.alexanderdunkel.com/posts/2023-11-03-generative-ai/</link><pubDate>Fri, 03 Nov 2023 12:49:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-11-03-generative-ai/</guid><description>&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2023-11-03_generativeai.png" alt="GenerativeAI"&gt;
&lt;/p&gt;
&lt;p&gt;&lt;code&gt;2024-02-13&lt;/code&gt; - The final article is online:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Dunkel, A., Burghardt, D. &amp;amp; Gugulica, M. Generative Text-to-Image Diffusion for Automated Map Production Based on Geosocial Media Data. KN J. Cartogr. Geogr. Inf. (2024). &lt;a href="https://doi.org/10.1007/s42489-024-00159-9"&gt;https://doi.org/10.1007/s42489-024-00159-9&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Link to preprint: &lt;a href="https://www.researchsquare.com/article/rs-3503977/v1"&gt;https://www.researchsquare.com/article/rs-3503977/v1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After &lt;a href="https://links.alexanderdunkel.com/posts/2023-06-27-stable-diffusion-hpc-cluster/"&gt;my tests&lt;/a&gt;
with Stable Diffusion on the TUD HPC cluster, we were
confident that we could implement a fully automated data processing
pipeline for map production. This preprint describes the individual
components. There are many possible improvements at each stage,
but we wanted to demonstrate a single integrated process from data
processing to map visualization before moving on to optimizations.&lt;/p&gt;</description><content type="html"><![CDATA[<p>
  <img src="/imgs/2023-11-03_generativeai.png" alt="GenerativeAI">
</p>
<p><code>2024-02-13</code> - The final article is online:</p>
<blockquote>
<p>Dunkel, A., Burghardt, D. &amp; Gugulica, M. Generative Text-to-Image Diffusion for Automated Map Production Based on Geosocial Media Data. KN J. Cartogr. Geogr. Inf. (2024). <a href="https://doi.org/10.1007/s42489-024-00159-9">https://doi.org/10.1007/s42489-024-00159-9</a></p>
</blockquote>
<p>Link to preprint: <a href="https://www.researchsquare.com/article/rs-3503977/v1">https://www.researchsquare.com/article/rs-3503977/v1</a></p>
<p>After <a href="/posts/2023-06-27-stable-diffusion-hpc-cluster/">my tests</a>
with Stable Diffusion on the TUD HPC cluster, we were
confident that we could implement a fully automated data processing
pipeline for map production. This preprint describes the individual
components. There are many possible improvements at each stage,
but we wanted to demonstrate a single integrated process from data
processing to map visualization before moving on to optimizations.</p>
<p>Preprint:</p>
<blockquote>
<p>Dunkel, A., Burghardt, D., Gugulica, M. (2023). Generative text-to-image diffusion
for automated map production based on geosocial media data, 03 November 2023,
PREPRINT (Version 1), Springer. DOI: <a href="https://doi.org/10.21203/rs.3.rs-3503977/v1">10.21203/rs.3.rs-3503977/v1</a></p>
</blockquote>
<p>The Supplementary Materials with data, code, Jupyter notebooks and additional graphics are available in a separate
data repository:</p>
<blockquote>
<p>Dunkel, A., Burghardt, D., Gugulica, M. (2023). Supplementary materials for the
publication &ldquo;Generative text-to-image diffusion for automated map production based
on geosocial media data.&rdquo; DOI: <a href="http://dx.doi.org/10.25532/OPARA-253">10.25532/OPARA-253</a></p>
</blockquote>
<p>The most recent updates of these files can be found in the
Gitlab <a href="https://gitlab.hrz.tu-chemnitz.de/ad/mapnik_stablediffusion">repository</a>.</p>
<p>Links to HTML-converted Notebooks:</p>
<ul>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/wip/mapnik_stablediffusion/html/01_tagmaps.html">Notebook 1</a>: Data preparation, spatial tag clustering (Tagmaps)</li>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/wip/mapnik_stablediffusion/html/02_generativeai.html">Notebook 2</a>: Generative AI parameters &amp; tests</li>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/wip/mapnik_stablediffusion/html/03_map_processing.html">Notebook 3</a>: Map generation</li>
</ul>
]]></content></item><item><title>A vector &amp; raster tile map service for Germany</title><link>https://links.alexanderdunkel.com/posts/2023-10-05-meingruen-webmap/</link><pubDate>Thu, 05 Oct 2023 09:13:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-10-05-meingruen-webmap/</guid><description>&lt;p&gt;A map tile service with a great custom scheme for green areas from my colleague Dr. Mathias Gröbe:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://maptiles.geo.tu-dresden.de/"&gt;https://maptiles.geo.tu-dresden.de/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/meingruen_webmap.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;This map is based on OpenStreetMap data that is processed on a weekly basis, through Gitlab
Continuous Integration and Continuous Deployment (Docker Swarm).&lt;/p&gt;
&lt;p&gt;I created the CI pipeline. See the projects here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://gitlab.vgiscience.de/tud_ifk/vector-tiles"&gt;vector-tiles: Main Pipeline&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gitlab.vgiscience.de/mathias.groebe/meingruen-mapstyle"&gt;meingruen-mapstyle: theme&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gitlab.vgiscience.de/tud_ifk/maptiles"&gt;maptiles: Service&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There is also a short publication available:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Gröbe, M., Dunkel, A., &amp;amp; Burghardt, D. (2020). A new web map for the MeinGrün app. Abstracts of
the ICA, 2, 1–2. DOI: &lt;a href="https://doi.org/10.5194/ica-abs-2-8-2020"&gt;10.5194/ica-abs-2-8-2020&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;</description><content type="html"><![CDATA[<p>A map tile service with a great custom scheme for green areas from my colleague Dr. Mathias Gröbe:</p>
<ul>
<li><a href="https://maptiles.geo.tu-dresden.de/">https://maptiles.geo.tu-dresden.de/</a></li>
</ul>
<p>
  <img src="/imgs/meingruen_webmap.png" alt="">
</p>
<p>This map is based on OpenStreetMap data that is processed on a weekly basis, through Gitlab
Continuous Integration and Continuous Deployment (Docker Swarm).</p>
<p>I created the CI pipeline. See the projects here:</p>
<ul>
<li><a href="https://gitlab.vgiscience.de/tud_ifk/vector-tiles">vector-tiles: Main Pipeline</a></li>
<li><a href="https://gitlab.vgiscience.de/mathias.groebe/meingruen-mapstyle">meingruen-mapstyle: theme</a></li>
<li><a href="https://gitlab.vgiscience.de/tud_ifk/maptiles">maptiles: Service</a></li>
</ul>
<p>There is also a short publication available:</p>
<blockquote>
<p>Gröbe, M., Dunkel, A., &amp; Burghardt, D. (2020). A new web map for the MeinGrün app. Abstracts of
the ICA, 2, 1–2. DOI: <a href="https://doi.org/10.5194/ica-abs-2-8-2020">10.5194/ica-abs-2-8-2020</a></p>
</blockquote>
]]></content></item><item><title>Conference proceedings: Estimating the temporality of landscape scenic resources</title><link>https://links.alexanderdunkel.com/posts/2023-08-19-temporality-scenic-resources/</link><pubDate>Sat, 19 Aug 2023 12:57:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-08-19-temporality-scenic-resources/</guid><description>&lt;p&gt;&lt;a href="joyplot_reddit.webp"&gt;&lt;img src="joyplot_reddit.webp" alt="joyplot_reddit.webp" style="zoom:50%;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://web.cvent.com/event/d0671a25-6003-4f2a-ac8d-e65b0e4d2b2d/summary"&gt;2023 Visual Resource Stewardship Conference&lt;/a&gt;
will take place in November 13 - 15, 2023 at the Argonne National Laboratory. I will
be speaking as part of &amp;ldquo;Exploring Multisensory Landscapes&amp;rdquo; about the temporal geosocial
media analysis for estimating landscape change.&lt;/p&gt;
&lt;p&gt;The conference proceedings are available at the &lt;a href="https://experts.esf.edu/esploro/activity/events/2023-Visual-Resource-Stewardship-Conference/1991221460004826?institution=01SUNY_ESF"&gt;Expertise at ESF website&lt;/a&gt;,
a copy of the PDF can be found &lt;a href="files/TBS_2B_4_Dunkel_Paper.pdf"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We shared the code in 5 Jupyter Notebooks in a separate data repository that can be cited with:&lt;/p&gt;</description><content type="html"><![CDATA[<p><a href="joyplot_reddit.webp"><img src="joyplot_reddit.webp" alt="joyplot_reddit.webp" style="zoom:50%;" /></a></p>
<p>The <a href="https://web.cvent.com/event/d0671a25-6003-4f2a-ac8d-e65b0e4d2b2d/summary">2023 Visual Resource Stewardship Conference</a>
will take place in November 13 - 15, 2023 at the Argonne National Laboratory. I will
be speaking as part of &ldquo;Exploring Multisensory Landscapes&rdquo; about the temporal geosocial
media analysis for estimating landscape change.</p>
<p>The conference proceedings are available at the <a href="https://experts.esf.edu/esploro/activity/events/2023-Visual-Resource-Stewardship-Conference/1991221460004826?institution=01SUNY_ESF">Expertise at ESF website</a>,
a copy of the PDF can be found <a href="files/TBS_2B_4_Dunkel_Paper.pdf">here</a></p>
<p>We shared the code in 5 Jupyter Notebooks in a separate data repository that can be cited with:</p>
<blockquote>
<p>Dunkel, Alexander, and Burghardt, Dirk (2023). Supplementary materials for the publication
Estimating the temporality of landscape scenic resources from user-contributed geodata.
Opara digital research archive. DOI: <a href="http://dx.doi.org/10.25532/OPARA-237">10.25532/OPARA-237</a></p>
</blockquote>
<ul>
<li>
<p><code>01_temporal_chi.ipynb</code>:</p>
<ul>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/01_temporal_chi_m.html">Aggregation per Month</a></li>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/01_temporal_chi_y.html">Aggregation per Year</a></li>
</ul>
</li>
<li>
<p><a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/02_reddit_nationalparks.html">02_reddit_nationalparks.ipynb</a></p>
</li>
<li>
<p><code>03_wikidata_event_query.ipynb</code>:</p>
<ul>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/03_wikidata_event_query_nevada.html">Nevada</a></li>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/03_wikidata_event_query_leipzig.html">Leipzig</a></li>
</ul>
</li>
<li>
<p><a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/04_milvus_maps.html">04_milvus_maps.ipynb</a></p>
</li>
<li>
<p><a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/05_hotspots.html">05_hotspots.ipynb</a></p>
</li>
</ul>
<p><a href="/posts/2023-03-28-event-inventories">Link to the abstract submission from March 2023.</a></p>
]]></content></item><item><title>Exploration of temporal statistics for Biodiversity Hotspots</title><link>https://links.alexanderdunkel.com/posts/2023-08-10-biodiversity-hotspots/</link><pubDate>Thu, 10 Aug 2023 12:09:00 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-08-10-biodiversity-hotspots/</guid><description>&lt;p&gt;What a blessing it is to hav parametrized code: Just a day after &lt;a href="https://links.alexanderdunkel.com/posts/2023-08-07-reddit-nationalparks/"&gt;studying temporal patterns for Nationalpark Subreddits&lt;/a&gt;,
I was looking into &lt;a href="https://www.bfn.de/bpbv-hotspots"&gt;Biodiversity Hotspots in Germany&lt;/a&gt;, with the goal to get an overview of
monthly average visitor counts for various social media platforms.&lt;/p&gt;
&lt;p&gt;Here, I first intersected Geo-Social Media posts from various sources (Instagram, Flickr, Twitter, iNaturalist)
with the boundaries of the following 30 Biodiversity Hotspots in Germany:&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/hotspots.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;Afterwards, I used HyperLogLog and a stacked bar plot to visualize aggregate data per Hotspot.&lt;/p&gt;</description><content type="html"><![CDATA[<p>What a blessing it is to hav parametrized code: Just a day after <a href="/posts/2023-08-07-reddit-nationalparks/">studying temporal patterns for Nationalpark Subreddits</a>,
I was looking into <a href="https://www.bfn.de/bpbv-hotspots">Biodiversity Hotspots in Germany</a>, with the goal to get an overview of
monthly average visitor counts for various social media platforms.</p>
<p>Here, I first intersected Geo-Social Media posts from various sources (Instagram, Flickr, Twitter, iNaturalist)
with the boundaries of the following 30 Biodiversity Hotspots in Germany:</p>
<p>
  <img src="/imgs/hotspots.png" alt="">
</p>
<p>Afterwards, I used HyperLogLog and a stacked bar plot to visualize aggregate data per Hotspot.</p>
<p><a href="/imgs/hotspots_months.svg">
  <img src="/imgs/hotspots_months.svg" alt="">
</a></p>
<p>Thanks to <code>matplotlib</code>, the plot is available as <code>svg</code>, allowing seamless zooming-in.</p>
<p>All graphics are available in <a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/05_hotspots.html">a jupyter notebook</a>.</p>
]]></content></item><item><title>Exploration of temporal statistics for Nationalpark Subreddits</title><link>https://links.alexanderdunkel.com/posts/2023-08-07-reddit-nationalparks/</link><pubDate>Mon, 07 Aug 2023 13:29:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-08-07-reddit-nationalparks/</guid><description>&lt;p&gt;After describing how to access the (in the meantime deprecated) Reddit API &lt;a href="https://links.alexanderdunkel.com/posts/2023-04-11-reddit-oauth-flow-jupyter/"&gt;in a previous post&lt;/a&gt;,
I took the first steps of exploring some of the temporal patterns.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://links.alexanderdunkel.com/imgs/subreddits_temporal.png"&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/subreddits_temporal.png" alt=""&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Blue are number of submissions and red are number of comments (&lt;code&gt;post_count&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;Below is a &lt;a href="https://github.com/leotac/joypy"&gt;Joyplot&lt;/a&gt; that visualizes how individual parks&amp;rsquo; monthly patterns diverge from the norm (the average monthly patterns for all parks), based on unique user counts.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://links.alexanderdunkel.com/imgs/subreddits_joyplot.png"&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/subreddits_joyplot.png" alt=""&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All graphics are available in &lt;a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/02_reddit_nationalparks.html"&gt;a jupyter notebook&lt;/a&gt;.&lt;/p&gt;</description><content type="html"><![CDATA[<p>After describing how to access the (in the meantime deprecated) Reddit API <a href="/posts/2023-04-11-reddit-oauth-flow-jupyter/">in a previous post</a>,
I took the first steps of exploring some of the temporal patterns.</p>
<p><a href="/imgs/subreddits_temporal.png">
  <img src="/imgs/subreddits_temporal.png" alt="">
</a></p>
<p>Blue are number of submissions and red are number of comments (<code>post_count</code>).</p>
<p>Below is a <a href="https://github.com/leotac/joypy">Joyplot</a> that visualizes how individual parks&rsquo; monthly patterns diverge from the norm (the average monthly patterns for all parks), based on unique user counts.</p>
<p><a href="/imgs/subreddits_joyplot.png">
  <img src="/imgs/subreddits_joyplot.png" alt="">
</a></p>
<p>All graphics are available in <a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/02_reddit_nationalparks.html">a jupyter notebook</a>.</p>
]]></content></item><item><title>iNaturalist species taxonomy mapped to emoji</title><link>https://links.alexanderdunkel.com/posts/2023-08-07-inaturalist-species-taxonomy-mapped-to-emoji/</link><pubDate>Mon, 07 Aug 2023 08:45:09 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-08-07-inaturalist-species-taxonomy-mapped-to-emoji/</guid><description>&lt;p&gt;An Emoji Map based on iNaturalist data (for the Lübecker Bucht, Germany).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://links.alexanderdunkel.com/imgs/Emoji-Map-iNaturalist_LuebeckerBucht.webp"&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/Emoji-Map-iNaturalist_LuebeckerBucht.webp" alt=""&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, there are about 160 Million species observations available worldwide. I wrote a mapping &lt;a href="https://gitlab.vgiscience.de/lbsn/lbsntransform/-/blob/master/resources/mappings/field_mapping_inaturalist_gbif.py"&gt;1&lt;/a&gt;, where species taxonomy is assigned to available, known nature &amp;amp; animal emoji, at different granularities. The map was made based on clustering of emoji observations with tagmaps python package. &lt;a href="https://github.com/Sieboldianus/TagMaps"&gt;2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2023-08-21_emojitaxa.webp" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;Sadly, neither ArcPro nor Mapnik currently support color emoji. Therefore, a next step is to use svg-icons of emoji in mapnik, to use colored emoji.&lt;/p&gt;</description><content type="html"><![CDATA[<p>An Emoji Map based on iNaturalist data (for the Lübecker Bucht, Germany).</p>
<p><a href="/imgs/Emoji-Map-iNaturalist_LuebeckerBucht.webp">
  <img src="/imgs/Emoji-Map-iNaturalist_LuebeckerBucht.webp" alt="">
</a></p>
<p>Currently, there are about 160 Million species observations available worldwide. I wrote a mapping <a href="https://gitlab.vgiscience.de/lbsn/lbsntransform/-/blob/master/resources/mappings/field_mapping_inaturalist_gbif.py">1</a>, where species taxonomy is assigned to available, known nature &amp; animal emoji, at different granularities. The map was made based on clustering of emoji observations with tagmaps python package. <a href="https://github.com/Sieboldianus/TagMaps">2</a></p>
<p>
  <img src="/imgs/2023-08-21_emojitaxa.webp" alt="">
</p>
<p>Sadly, neither ArcPro nor Mapnik currently support color emoji. Therefore, a next step is to use svg-icons of emoji in mapnik, to use colored emoji.</p>
]]></content></item><item><title>Wikidata SPARQL queries in Jupyter</title><link>https://links.alexanderdunkel.com/posts/2023-07-25-wikidata-sparql-query-jupyter/</link><pubDate>Tue, 25 Jul 2023 13:39:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-07-25-wikidata-sparql-query-jupyter/</guid><description>&lt;p&gt;I wanted to query all events in a certain area from Wikipedia (e.g. members of occurrence with a location within a region).&lt;/p&gt;
&lt;p&gt;Wikidata and SPARQL language can be used through query.wikidata.org. This is a notebook where I queried wikidata and converted
the results into a pandas DataFrame:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Notebook (HTML) for Nevada: &lt;a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/03_wikidata_event_query_nevada.html"&gt;https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/03_wikidata_event_query_nevada.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Notebook (HTML) for Leipzig: &lt;a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/03_wikidata_event_query_leipzig.html"&gt;https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/03_wikidata_event_query_leipzig.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The SPARQL query (example: Events in Nevada):&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;#title: All events in Nevada, based on distance query (400km)
SELECT ?event ?eventLabel ?date ?location
WITH {
SELECT DISTINCT ?event ?date ?location
WHERE {
# find events
wd:Q1227 wdt:P625 ?nevada.
?event wdt:P31/wdt:P279* wd:Q1190554.
# wdt:P17 wd:Q30;
# with a point in time or start date
OPTIONAL { ?event wdt:P585 ?date. }
OPTIONAL { ?event wdt:P580 ?date. }
?event wdt:P625 ?location.
FILTER(geof:distance(?location, ?nevada) &amp;lt; 400).
}
LIMIT 1000
} AS %i
WHERE {
INCLUDE %i
SERVICE wikibase:label { bd:serviceParam wikibase:language &amp;#34;[AUTO_LANGUAGE],en&amp;#34; . }
}
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/sparql_nevada.png" alt=""&gt;
&lt;/p&gt;</description><content type="html"><![CDATA[<p>I wanted to query all events in a certain area from Wikipedia (e.g. members of occurrence with a location within a region).</p>
<p>Wikidata and SPARQL language can be used through query.wikidata.org. This is a notebook where I queried wikidata and converted
the results into a pandas DataFrame:</p>
<ul>
<li>Notebook (HTML) for Nevada: <a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/03_wikidata_event_query_nevada.html">https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/03_wikidata_event_query_nevada.html</a></li>
<li>Notebook (HTML) for Leipzig: <a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/03_wikidata_event_query_leipzig.html">https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/03_wikidata_event_query_leipzig.html</a></li>
</ul>
<p>The SPARQL query (example: Events in Nevada):</p>
<pre tabindex="0"><code>#title: All events in Nevada, based on distance query (400km)
SELECT ?event ?eventLabel ?date ?location
WITH {
  SELECT DISTINCT ?event ?date ?location
  WHERE {
    # find events
    wd:Q1227 wdt:P625 ?nevada. 
    ?event wdt:P31/wdt:P279* wd:Q1190554.
           # wdt:P17 wd:Q30;
    # with a point in time or start date
    OPTIONAL { ?event wdt:P585 ?date. }
    OPTIONAL { ?event wdt:P580 ?date. }
    ?event wdt:P625 ?location.
    FILTER(geof:distance(?location, ?nevada) &lt; 400).
  }
  LIMIT 1000
} AS %i
WHERE {
  INCLUDE %i
  SERVICE wikibase:label { bd:serviceParam wikibase:language &#34;[AUTO_LANGUAGE],en&#34; . }
}
</code></pre><p>
  <img src="/imgs/sparql_nevada.png" alt="">
</p>
<blockquote>
<p>117 events queried from wikidata that are located in Nevada</p>
</blockquote>
]]></content></item><item><title>Tag Map Oderbruch &amp; Lübecker Bucht</title><link>https://links.alexanderdunkel.com/posts/2023-07-18-tagmap-oderbruch-lubeckerbucht/</link><pubDate>Tue, 18 Jul 2023 06:32:09 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-07-18-tagmap-oderbruch-lubeckerbucht/</guid><description>&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2023-07-18_TagMap_Oderbruch_TNTN.webp" alt=""&gt;
(&lt;a href="https://cloudstore.zih.tu-dresden.de/index.php/s/qqgeJQJ4jjaAZPw"&gt;PDF Link&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2023-07-17_TagMap_LubeckerBucht.webp" alt=""&gt;
(&lt;a href="https://cloudstore.zih.tu-dresden.de/index.php/s/XcCKL29FqGpHWMP"&gt;PDF Link&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;These were two recent Tag Maps I contributed to landscape planning projects in Germany.&lt;/p&gt;
&lt;p&gt;The data statistics for the Oderbruch are included in the PDF. For the Lübecker Bucht, the data basis included 135,384 geotagged pictures
from Instagram (up to 2020), 161,302 geotagged tweets from Twitter (up to 2022) and 141,237 geotagged photographs from Flickr (up to 2022).&lt;/p&gt;
&lt;p&gt;Both regions are core vacation destinations in Germany and the primary goal of these projects was to understand tourist flow and visitor landscape preferences.&lt;/p&gt;</description><content type="html"><![CDATA[<p>
  <img src="/imgs/2023-07-18_TagMap_Oderbruch_TNTN.webp" alt="">
 (<a href="https://cloudstore.zih.tu-dresden.de/index.php/s/qqgeJQJ4jjaAZPw">PDF Link</a>)</p>
<p>
  <img src="/imgs/2023-07-17_TagMap_LubeckerBucht.webp" alt="">
 (<a href="https://cloudstore.zih.tu-dresden.de/index.php/s/XcCKL29FqGpHWMP">PDF Link</a>)</p>
<p>These were two recent Tag Maps I contributed to landscape planning projects in Germany.</p>
<p>The data statistics for the Oderbruch are included in the PDF. For the Lübecker Bucht, the data basis included 135,384 geotagged pictures
from Instagram (up to 2020), 161,302 geotagged tweets from Twitter (up to 2022) and 141,237 geotagged photographs from Flickr (up to 2022).</p>
<p>Both regions are core vacation destinations in Germany and the primary goal of these projects was to understand tourist flow and visitor landscape preferences.</p>
]]></content></item><item><title>Stable Diffusion on TUD HPC cluster</title><link>https://links.alexanderdunkel.com/posts/2023-06-27-stable-diffusion-hpc-cluster/</link><pubDate>Tue, 27 Jun 2023 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-06-27-stable-diffusion-hpc-cluster/</guid><description>&lt;p&gt;I described my first tests for map making with Stable Diffusion in a &lt;a href="https://links.alexanderdunkel.com/posts/2023-06-01-neural-network/"&gt;previous blog
post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The biggest challenge was getting GPU-resources. Google Colab locked down the use
of Stable Diffusion for their free services
and GPUs from Paperspace turned out to be mostly unavailable, due to high demand.&lt;/p&gt;
&lt;p&gt;The TUD High Performance Cluster has GPU resources available for &lt;a href="https://doc.zih.tu-dresden.de/software/machine_learning/"&gt;Machine &amp;amp; Deep
Learning&lt;/a&gt;,
but I often found software setup quite cumbersome because Docker containers cannot
be used.&lt;/p&gt;</description><content type="html"><![CDATA[<p>I described my first tests for map making with Stable Diffusion in a <a href="/posts/2023-06-01-neural-network/">previous blog
post</a>.</p>
<p>The biggest challenge was getting GPU-resources. Google Colab locked down the use
of Stable Diffusion for their free services
and GPUs from Paperspace turned out to be mostly unavailable, due to high demand.</p>
<p>The TUD High Performance Cluster has GPU resources available for <a href="https://doc.zih.tu-dresden.de/software/machine_learning/">Machine &amp; Deep
Learning</a>,
but I often found software setup quite cumbersome because Docker containers cannot
be used.</p>
<p>Here I&rsquo;ll describe how I set up Stable Diffusion with the
<a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui/">web-ui from automatic1111</a>.</p>
<p>There were some interesting challenges, one of them was using a jump-host to forward
the web-ui served in the HPC cluster to a local port.</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>2023-12-01: The current migration from taurus to barnard and alpha is still in progress. The <code>alpha-interactive</code> partition
does not seem to work yet. I tested running the webui on the login-node directly , and it works. But login nodes are time
constraint, so YMMV. The new connection to the alpha-nodes is <code>ssh -A s-number@login1.alpha.hpc.tu-dresden.de</code>.</p>
</div>
</aside> 
<h2 id="1-register-hpc-project">1. Register HPC project</h2>
<p>Let&rsquo;s start with the prerequisites. First you will need to register a HPC project.
There is a nice guide from <a href="https://biapol.github.io/blog/till_korten/devbio-napari_cluster_setup/readme.html">Till Korten</a>
that describes the overall process. I only found this after setting up our HPC project.</p>
<details><summary>The parameters I used </summary>
<ul>
<li>Accelerator core-h on GPU-nodes <code>250</code></li>
<li>Cores per GPU-job <code>1</code></li>
<li>GB of memory per GPU-job <code>16</code></li>
<li>Progr. scheme <code>CUDA</code></li>
<li>Work/Scratch:
<ul>
<li>Files (in thousand) <code>1000</code></li>
<li>Storage (in GB) <code>50</code></li>
</ul>
</li>
<li>Project:
<ul>
<li>Files (in thousand) <code>50</code></li>
<li>Storage (in GB) <code>100</code></li>
</ul>
</li>
<li>Number of files (in thousand) <code>300</code></li>
<li>Amount of data (in GB) <code>20</code></li>
<li>Amount of files and data written during typical jobs including temporary files
<ul>
<li>Number of files (in thousand) <code>0.1</code></li>
<li>Amount of data (in GB) <code>1</code></li>
</ul>
</li>
<li>Data transfer in total (in GB) <code>1</code></li>
</ul>
</details>
<p>You get a project identifier, I will call this <code>sd_project</code> below.</p>
<h2 id="2-connect-to-taurusalpha-and-setup-dependencies">2. Connect to taurus/alpha and setup dependencies</h2>
<p>For the software setup, we already need CUDA to be available. I use <code>srun</code> to start
a longer running interactice job on the <code>gpu2</code>-partition.</p>
<p><code>gpu2</code>  is slower than the <code>alpha</code>-partition, but we don&rsquo;t need speed during setup.</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>I installed dependencies in my home-folder. This was a test. You should use a dedicated
workspace. Use the command below to register a workspace with 30 days runtime on
<code>ssd</code> partition:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ws_allocate -F ssd -r <span class="m">7</span> -m your.mail@tu-dresden.de sd_project <span class="m">30</span>
</span></span></code></pre></div><p>Then instead of <code>~/</code>, use <code>/lustre/ssd/ws/s1111111-sd_project/</code> below.</p>
<p>Replace <code>s1111111</code> with your TUD s-number.</p>
</div>
</aside> 
<p>The <code>./webui.sh</code> will create a venv with the dependencies.</p>
<p><code>./webui.sh</code> requires Python 3.10.6.</p>
<p>However, on taurus/alpha, only Python 3.7.3 is available.</p>
<p>Therefore, we need to make a detour to get Python 3.10.6 below.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">cd</span> ~/
</span></span><span class="line"><span class="cl">module load Anaconda3
</span></span><span class="line"><span class="cl">git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
</span></span><span class="line"><span class="cl"><span class="nb">cd</span> stable-diffusion-webui
</span></span><span class="line"><span class="cl">git checkout tags/v1.6.0
</span></span></code></pre></div><p>Replace the version number to any of the latest (non RC) releases. Check releases
<a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases">here</a>.</p>
<p>Prepare Python 3.10.6.</p>
<p>Initially, I could not install 3.10.6 directly on taurus/alpha; only 3.10.4,
and afterwards 3.10.6.</p>
<p>You can first try to install 3.10.6 directly:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda create -n automatic1111_setup <span class="nv">python</span><span class="o">=</span>3.10.6 -c conda-forge
</span></span><span class="line"><span class="cl">conda activate automatic1111_setup
</span></span></code></pre></div><p>If it fails, use:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda create -n automatic1111_setup <span class="nv">python</span><span class="o">=</span>3.10
</span></span><span class="line"><span class="cl">conda activate automatic1111_setup
</span></span><span class="line"><span class="cl">conda install -c conda-forge <span class="nv">python</span><span class="o">=</span>3.10.6 <span class="c1"># now 3.10.6 installation works</span>
</span></span></code></pre></div><p>Now that we have a conda env, we don&rsquo;t need the system conda env anymore.</p>
<p>Remove 3.9.2 Anaconda (taurus/alpha) Python from PATH.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">module unload Anaconda3
</span></span></code></pre></div><p>Here, <code>webui.sh</code> still picked up wrong Python 3.7.3 for me. Override by editing <code>webui-user.sh</code>
and specifying a static full path to the correct Python version to use.</p>
<p>Check your python first with <code>python --version</code> and <code>which python</code>. Get the full path
to the python path, e.g.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">which python
</span></span><span class="line"><span class="cl">&gt; ~/.conda/envs/automatic1111_setup/bin/python
</span></span><span class="line"><span class="cl">readlink -f ~/.conda/envs/automatic1111_setup/bin/python
</span></span><span class="line"><span class="cl">&gt; /home/h5/s1111111/.conda/envs/automatic1111_setup/bin/python3.10
</span></span></code></pre></div><p>Copy this path and uncomment/add <code>python_cmd</code> variable in <code>webui-user.sh</code>.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nano webui-user.sh
</span></span><span class="line"><span class="cl">&gt; <span class="nv">python_cmd</span><span class="o">=</span>/home/h5/s1111111/.conda/envs/automatic1111_setup/bin/python3.10
</span></span></code></pre></div><p>Now, start <code>webui.sh</code>, it will prepare the venv and install the dependencies.</p>
<p>Check that the correct Python and webui versions are listed.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">./webui.sh
</span></span><span class="line"><span class="cl">&gt; Python 3.10.6 <span class="o">(</span>main, Oct  <span class="m">7</span> 2022, 20:19:58<span class="o">)</span> <span class="o">[</span>GCC 11.2.0<span class="o">]</span>
</span></span><span class="line"><span class="cl">&gt;Version: v1.6.0
</span></span></code></pre></div><p>You can recreate/start from scratch by moving or deleting the venv folder.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">mv venv venv_bak
</span></span></code></pre></div><p>Lastly, you <em>either</em> need to change <code>python_cmd</code> path in <code>webui-user.sh</code> to
the <code>venv</code> python (<code>&quot;/home/h5/s1111111/stable-diffusion-webui/venv/bin/python&quot;</code>),
or source activate the venv before starting <code>webui.sh</code> (or both):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">source</span> venv/bin/activate
</span></span></code></pre></div><p>There are some remaining errors I got with <code>1.6.0</code>, see below how to I fixed those.</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path d="M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"/></svg>
	</div>
	<div class="admonition-content"><p>You can increase speed by adding the following command line flag, before launching <code>webui.sh</code>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">COMMANDLINE_ARGS</span><span class="o">=</span><span class="s2">&#34;--xformers&#34;</span>
</span></span></code></pre></div></div>
</aside> 
<details><summary> Manual bugfixes</summary>
<p>If you see an error:</p>
<blockquote>
<p>ERROR: Cannot activate python venv, aborting&hellip;</p>
</blockquote>
<p>fix with:</p>
<pre tabindex="0"><code>python3.10 -m venv venv
</code></pre><p><strong>git</strong>
Here I had to fix <code>modules/launch_utils.py</code>:</p>
<ul>
<li>replace all <code> -C</code> with <code>--exec-path</code>: <code>git -C</code> is not available on taurus/alpha, due to an older version used.</li>
<li>there&rsquo;s an <a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/8193">issue report #8193</a> for this</li>
</ul>
<p>An alternative is to install the latest <code>git</code> in our parent conda env (<code>automatic1111_setup</code>),
e.g. <code>conda install git -c conda-forge</code></p>
<p><strong>get_device</strong></p>
<p>.. and I had to fix <code>venv/lib/python3.10/site-packages/basicsr/utils/misc.py</code></p>
<ul>
<li>
<blockquote>
<p>cannot import name &lsquo;get_device&rsquo;</p>
</blockquote>
</li>
<li>Solution described in <a href="https://github.com/sczhou/CodeFormer/issues/193">#193</a>:
<ul>
<li>
<pre tabindex="0"><code>nano venv/lib/python3.10/site-packages/basicsr/utils/misc.py
</code></pre></li>
<li>Add to the top, below imports:
<pre tabindex="0"><code>import torch
def get_device():
    if torch.cuda.is_available():
        return torch.device(&#34;cuda&#34;)
    else:
        return torch.device(&#34;cpu&#34;)

def gpu_is_available():
        return torch.cuda.is_available()
</code></pre></li>
</ul>
</li>
</ul>
<p><strong>dctorch not found</strong></p>
<p>Another error I saw in k-diffusion:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">&gt; from dctorch import functional as df 
</span></span><span class="line"><span class="cl">ModuleNotFoundError dctorch in k-diffusion/k_diffusion/layers.py
</span></span></code></pre></div><p>Likely due to 1.6.0 tag not yet including the dependency.</p>
<p>Fix with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">cd</span> repositories/k-diffusion
</span></span><span class="line"><span class="cl">git checkout c9fe758
</span></span></code></pre></div><p><strong>unexpected keyword argument &lsquo;socket_options&rsquo;</strong></p>
<p>This happened after the migration to barnard/alpha:</p>
<pre tabindex="0"><code>  File &#34;.../.conda/envs/automatic1111_setup/lib/python3.10/site-packages/httpx/_client.py&#34;, line 1445, in _init_transport
    return AsyncHTTPTransport(
  File &#34;.../.conda/envs/automatic1111_setup/lib/python3.10/site-packages/httpx/_transports/default.py&#34;, line 275, in __init__
    self._pool = httpcore.AsyncConnectionPool(
TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument &#39;socket_options&#39;
</code></pre><p>Fix with:</p>
<pre tabindex="0"><code>source venv/bin/activate
pip3 install httpx==0.24.1
</code></pre><p>See <a href="https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13236">#13236</a></p>
<p>Also, once I saw this error, I changed my <code>python_cmd</code> path in <code>webui-user.sh</code> to
<code>&quot;/home/h5/s1111111/stable-diffusion-webui/venv/bin/python&quot;</code>, as described above.</p>
</details>
<h2 id="3-use-reverse-tunnel-to-connect-to-interface">3. Use reverse tunnel to connect to interface</h2>
<p>This was a neat problem I did not encounter before: The taurus/alpha login nodes and interactive jobs run in a cluster. Serving
web apps from this cluster is difficult, even with a ssh reverse tunnel, since it is not possible to directly establish
a reverse tunnel to a specific node. There is <a href="https://gradio.app/">gradio</a> to solve this, but I did not want to expose
ZIH HPC resources to an external service. The solution was to use a jump-host - you can use any dedicated TUD Enterprise or Research Cloud VM
for this.</p>
<p>Here is a graphic. See my explanation below.</p>
<p>
  <img src="/imgs/scheme_tunnel_2.png" alt="">
</p>
<h3 id="first-start-interactive-gpu-session-on-alpha-partition">First, start interactive gpu-session on <code>alpha</code> partition</h3>
<p>For the actual gpu computation, I use the faster <code>alpha</code> partition with an <code>8</code>-hour runtime job.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh -A s1111111@login1.alpha.hpc.tu-dresden.de
</span></span><span class="line"><span class="cl">srun --account<span class="o">=</span>sd_project <span class="se">\
</span></span></span><span class="line"><span class="cl">    --gres<span class="o">=</span>gpu:1 <span class="se">\
</span></span></span><span class="line"><span class="cl">    --pty --ntasks<span class="o">=</span><span class="m">1</span> --cpus-per-task<span class="o">=</span><span class="m">2</span> <span class="se">\
</span></span></span><span class="line"><span class="cl">    --time<span class="o">=</span>8:00:00 --mem-per-cpu<span class="o">=</span><span class="m">16000</span> --pty bash -l
</span></span></code></pre></div>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path d="M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"/></svg>
	</div>
	<div class="admonition-content"><p>Given the limited availability of GPU resources at HPC, you may need to wait indefinitely for your job to get started. In another terminal,
check <code>squeue --me</code> to see pending job requests and then check the reason for why it is still pending with <code>whypending &lt;jobid&gt;</code>. You can
also try to reduce requested resources while the job is pending, e.g.:</p>
<pre tabindex="0"><code>scontrol update timelimit=4:00:00 jobid=&lt;jobid&gt;
</code></pre><p>Sometimes, jobs can crash and you can inspect the reason with <code>sacct</code> (e.g. see <code>OUT_OF_ME+ </code> below, hinting that one of my jobs triggered a out memory exception).</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">&gt; <span class="m">38133355</span>           bash alpha-int+ p_dlmapgen          <span class="m">4</span> CANCELLED+      0:0
</span></span><span class="line"><span class="cl">&gt; 38133798.ex+     extern            p_dlmapgen          <span class="m">4</span>  COMPLETED      0:0
</span></span><span class="line"><span class="cl">&gt; 38133798.0         bash            p_dlmapgen          <span class="m">4</span> OUT_OF_ME+    0:125
</span></span><span class="line"><span class="cl">&gt; 38134153.0         bash            p_dlmapgen          <span class="m">2</span>    RUNNING      0:0
</span></span></code></pre></div></div>
</aside> 
<h3 id="second-from-our-hpc-taurusalpha-session-establish-a-ssh-tunnel-with-a--r-option-to-a-jump-vm-with-a-distinct-ip">Second, from our HPC taurus/alpha session, establish a ssh tunnel with a <code>-R</code> option to a jump-VM with a distinct IP.</h3>
<p>I use <code>141.11.11.1</code> as an example below - assume this is one of my research VMs. Replace <code>ad</code> with your username.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh ad@141.11.11.1 -o <span class="nv">ExitOnForwardFailure</span><span class="o">=</span>yes <span class="se">\
</span></span></span><span class="line"><span class="cl">    -o <span class="nv">ServerAliveInterval</span><span class="o">=</span><span class="m">120</span> -f -R <span class="se">\
</span></span></span><span class="line"><span class="cl">    :7860:127.0.0.1:7860 -p <span class="m">22</span> -N -v<span class="p">;</span> <span class="se">\
</span></span></span><span class="line"><span class="cl">    ./webui.sh
</span></span></code></pre></div><ul>
<li><code>-N</code> do not allow execution of commands on jump-host</li>
<li><code>-f</code> send SSH tunnel to background</li>
<li><code>./webui.sh</code> - start stable-diffusion web-ui, serve to local port <code>7860</code></li>
</ul>
<h3 id="reverse-tunnel-to-jump-vm-from-localhost-with--l-option">Reverse tunnel to jump-VM from localhost with <code>-L</code> option</h3>
<p>From your local computer, e.g. open Windows Subsystem for Linux (WSL), and establish a reverse-tunnel to the jump-host.</p>
<p>This will forward connection to the taurus/alpha-node, using the jump-host as a secure and private connection. Replace <code>ad</code> with your user name.</p>
<pre tabindex="0"><code>ssh ad@141.11.11.1 -L :7860:127.0.0.1:7860 -p 22 -N -v
</code></pre><p>Open <code>http://127.0.0.1:7860/</code> in your local browser and start using the stable diffusion web-ui.</p>
<video class="content bg" style="object-fit: cover;height: 120%;width: 120%;left: -10%;top:-10%" aria-hidden="true" playsinline="" autoplay="" muted="" loop="" id="tagmapsvideo"> 
<source src="reverse_tunnel_R.webm" type="video/webm"></video>
<p>If you are finished, exit the web-ui with <kbd>Q</kbd>, <kbd>Y</kbd>, and <kbd>CTRL-C</kbd>. The background-ssh-tunnel should automatically close. If not, find the <code>pid</code> and kill it manually with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ps -C ssh
</span></span><span class="line"><span class="cl">&gt; <span class="m">13966</span> ?        00:00:00 ssh
</span></span><span class="line"><span class="cl"><span class="nb">kill</span> <span class="m">13966</span>
</span></span></code></pre></div><h2 id="additional-setup-jupyterlab--api">Additional Setup: JupyterLab &amp; API</h2>
<p>If you want to connect from a JupyterLab instance to your Stable Diffusion environment, e.g. to use the API,
the setup is quite similar.</p>
<h3 id="start-webuish-in-api-mode">Start <code>webui.sh</code> in API-mode</h3>
<p>First, start the <code>webui.sh</code> with the flags <code>--api</code> and <code>--nowebui</code>. The latter is not necessary, according to the docs,
but on my side, no <code>/sdapi/v1/</code> endpoints would be available otherwise with <code>v1.6.0</code>.</p>
<p>Secondly, change the listening port to <code>7861</code>, which is where the API is available if <code>--nowebui</code> is used.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">cd</span> stable-diffusion-webui
</span></span><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">COMMANDLINE_ARGS</span><span class="o">=</span><span class="s2">&#34;--xformers --api --nowebui&#34;</span>
</span></span><span class="line"><span class="cl">ssh ad@141.11.11.1 -o <span class="nv">ExitOnForwardFailure</span><span class="o">=</span>yes <span class="se">\
</span></span></span><span class="line"><span class="cl">    -o <span class="nv">ServerAliveInterval</span><span class="o">=</span><span class="m">120</span> -f -R <span class="se">\
</span></span></span><span class="line"><span class="cl">    :7861:127.0.0.1:7861 -p <span class="m">22</span> -N<span class="p">;</span> <span class="se">\
</span></span></span><span class="line"><span class="cl">    ./webui.sh
</span></span></code></pre></div><p><em>Optionally</em>, use a tunnel to forward to your local computer and check <code>127.0.0.1:7861/docs</code> in your browser of choice.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh ad@141.11.11.1 -L :7861:127.0.0.1:7861 -p <span class="m">22</span> -N -v
</span></span></code></pre></div><h3 id="jupyter-lab-host-mode">Jupyter Lab Host Mode</h3>
<p>Assuming you want to query the API from a Jupyter Lab Notebook,
such as in this example notebook
<a href="https://kartographie.geo.tu-dresden.de/ad/wip/mapnik_stablediffusion/html/01_mapnik_generativeai.html">01_mapnik_generativeai.html</a>,
the setup is quite similar.</p>
<p>
  <img src="/imgs/scheme_tunnel_3.webp" alt="">
</p>
<p>Summary of the tunneling context:</p>
<ul>
<li>Our stable-diffusion CUDA environment runs somewhere on the HPC.</li>
<li>Your Jupyter Lab container runs either locally,</li>
<li>or on another remote VM,</li>
<li>likely inside Docker (e.g. if you use <a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab">CartoLab Docker</a>).</li>
</ul>
<p>First, follow the instructions above to create a backward connection from the SD <code>webui.sh</code> port 7861 to the instance running Jupyter Lab.</p>
<p>To be able to forward connect to the port <code>7861</code> from within the Jupyter Lab Docker, we need to change the <code>docker-compose.yml</code>,
disable the custom network (e.g. from CartoLab Docker) and add <code>network_mode: &quot;host&quot;</code>.</p>
<details><summary>The <code>docker-compose.yml</code> may look like this afterwards.</summary>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yml" data-lang="yml"><span class="line"><span class="cl"><span class="nt">version</span><span class="p">:</span><span class="w"> </span><span class="s1">&#39;3.6&#39;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">services</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">jupyterlab</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="l">registry.gitlab.vgiscience.org/lbsn/tools/jupyterlab:${TAG:-latest}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">container_name</span><span class="p">:</span><span class="w"> </span><span class="l">${CONTAINER_NAME:-lbsn-jupyterlab}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">restart</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;no&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">ports</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="m">127.0.0.1</span><span class="p">:</span><span class="l">${JUPYTER_WEBPORT:-8888}:8888</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="m">127.0.0.1</span><span class="p">:</span><span class="l">${REDDIT_TOKEN_WEBPORT:-8063}:8063</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">volumes</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">${JUPYTER_NOTEBOOKS:-~/notebooks}:/home/jovyan/work</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">${CONDA_ENVS:-~/envs}:/envs</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">environment</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">READONLY_USER_PASSWORD=${READONLY_USER_PASSWORD:-eX4mP13p455w0Rd}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-eX4mP13p455w0Rd}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">JUPYTER_PASSWORD=${JUPYTER_PASSWORD:-eX4mP13p455w0Rd}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">JUPYTER_WEBURL=${JUPYTER_WEBURL:-http://localhost:8888}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">network_mode</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;host&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="c"># networks:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="c">#   - lbsn-network</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="c"># networks:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="c">#   lbsn-network:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="c">#     name: ${NETWORK_NAME:-lbsn-network}</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="c">#    external: true</span><span class="w">
</span></span></span></code></pre></div></details>
<p>Note the lines where I commented out the default values.</p>
<p>Afterwards, you can connect from your local PC to your JupyterLab instance that is served on port <code>8888</code> with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh ad@141.11.11.1 -L :8888:127.0.0.1:8888 -p <span class="m">22</span> -N -v
</span></span></code></pre></div>]]></content></item><item><title>Creating a custom environment from a requirements.txt in Jupyter</title><link>https://links.alexanderdunkel.com/posts/2023-06-02-conda-env-jupyter/</link><pubDate>Fri, 02 Jun 2023 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-06-02-conda-env-jupyter/</guid><description>&lt;p&gt;I was given a Github-notebook where the author only provided a &lt;code&gt;requirements.txt&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Inside, the biggest python packages were used (pytorch, tensorflow - you name it).&lt;/p&gt;
&lt;p&gt;This proved particularly difficult to setup. The steps are published in a notebook:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/dependencies.html"&gt;https://wwwpub.zih.tu-dresden.de/~s7398234/dependencies.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The steps cover:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How to setup persistent Python environments from a Jupyter Lab container running in Docker&lt;/li&gt;
&lt;li&gt;How to link the environment Python Kernel to Jupyter&lt;/li&gt;
&lt;li&gt;How to combine both &lt;code&gt;conda&lt;/code&gt; and &lt;code&gt;pip&lt;/code&gt; to solve dependency issues&lt;/li&gt;
&lt;li&gt;How to gradually define/loosen dependency pinnings&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>I was given a Github-notebook where the author only provided a <code>requirements.txt</code>.</p>
<p>Inside, the biggest python packages were used (pytorch, tensorflow - you name it).</p>
<p>This proved particularly difficult to setup. The steps are published in a notebook:</p>
<p><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/dependencies.html">https://wwwpub.zih.tu-dresden.de/~s7398234/dependencies.html</a></p>
<p>The steps cover:</p>
<ul>
<li>How to setup persistent Python environments from a Jupyter Lab container running in Docker</li>
<li>How to link the environment Python Kernel to Jupyter</li>
<li>How to combine both <code>conda</code> and <code>pip</code> to solve dependency issues</li>
<li>How to gradually define/loosen dependency pinnings</li>
</ul>
]]></content></item><item><title>A neural network for Alex</title><link>https://links.alexanderdunkel.com/posts/2023-06-01-neural-network/</link><pubDate>Thu, 01 Jun 2023 12:23:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-06-01-neural-network/</guid><description>&lt;p&gt;This was a first test for training neural network models.&lt;/p&gt;
&lt;p&gt;My goal was to train a Model for stable diffusion based on 16 images of myself.&lt;/p&gt;
&lt;p&gt;These were the 16 input images, cropped to a resolution of 512x512:
&lt;img src="https://links.alexanderdunkel.com/imgs/2023-06-01_sd-test_input.webp" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;The training of the model took about 45 Minutes. I used a GPU (A5000) from paperspace,
and a paperspace (jupyter) notebook for &lt;a href="https://arxiv.org/abs/2208.12242"&gt;Dreambooth&lt;/a&gt; training from &lt;a href="https://github.com/TheLastBen/PPS"&gt;TheLastBen/PPS&lt;/a&gt;.
The steps I used for training loosely follow &lt;a href="https://bytexd.com/how-to-use-dreambooth-to-fine-tune-stable-diffusion-colab/"&gt;what is described here&lt;/a&gt;.&lt;/p&gt;</description><content type="html"><![CDATA[<p>This was a first test for training neural network models.</p>
<p>My goal was to train a Model for stable diffusion based on 16 images of myself.</p>
<p>These were the 16 input images, cropped to a resolution of 512x512:

  <img src="/imgs/2023-06-01_sd-test_input.webp" alt="">
</p>
<p>The training of the model took about 45 Minutes. I used a GPU (A5000) from paperspace,
and a paperspace (jupyter) notebook for <a href="https://arxiv.org/abs/2208.12242">Dreambooth</a> training from <a href="https://github.com/TheLastBen/PPS">TheLastBen/PPS</a>.
The steps I used for training loosely follow <a href="https://bytexd.com/how-to-use-dreambooth-to-fine-tune-stable-diffusion-colab/">what is described here</a>.</p>
<p>Two key concepts apply:</p>
<ul>
<li>there are concepts, such as <code>man</code>, where Stable Diffusion already has base knowledge through its initial training.</li>
<li>there are instances of concepts, such as <code>alex</code> - a model can be trained on a specific instance (which is what I did using the 16 images above)</li>
</ul>
<p>After the training, images can be generated using text prompts.</p>
<p>The first step is to test the model with the prompt <code>photo of alex man</code></p>
<p><img src="00002-3296312215.png" width="200"></img></p>
<p>Afterwards, specific prompts can be used to generate other images.</p>
<p>
  <img src="/imgs/stable-diffusion-alex.png" alt="">
</p>
<p>Here is my prompt for (some) of the images above.</p>
<blockquote>
<p>face photo of (alex man:1.2) as a knight, long hair, friendly, energetic, artstation, concept art, cinematic lighting, insanely detailed, octane, digital painting, smooth, sharp focus, illustration, vibrant colors, 3d render, photorealistic, hdr, 8k, exquisite, trending on artstation</p>
</blockquote>
<p>Note:</p>
<ul>
<li><code>alex</code> is replaced with a specific instance token in the real prompt</li>
<li><code>:1.2</code> is a specific weight attached to a concept (in this case, the attention weight is increased)</li>
<li>similar to weights, parentheses <code>(...)</code> can be used to highlight concept which should get particular attention</li>
</ul>
<p>I also used the following negative prompt:</p>
<blockquote>
<p>((bw)), ((black and white)), blurry, bad, worse, worst, cheap, sketch, basic, juvenile, unprofessional, failure, oil, signature, watermark, amateur, grotesque, misshapen, deformed, distorted, malformed, unsightly, terrible, awful, repellent, disgusting, revolting, loathsome, mangled, awkward, ugly, offensive, repulsive, ghastly, hideous, unappealing, frightful, odious, obnoxious, hateful, vile</p>
</blockquote>
<p>The base for these prompts was shared by other authors and emerged from experience.</p>
<p>Afterwards, I just exchanged <code>as a knight</code> with other descriptions, such as <code>as an old coal miner in 19th century</code> or <code>as a peasant, medieval times</code>.</p>
<p>This was a test. The next step is to train specific Models for map making and cartography.</p>
<h2 id="img2img">img2img</h2>
<p>There are also other approaches to use Stable Diffusion. One test I made was using sattelite imagery and
Stable Diffusion img2img generation. Here, both a prompt and an image are used to generate a new image.</p>
<p>Here&rsquo;s a comparison, with the original satellite image on the left side, and a stable diffusion modified version on the right side.</p>
<p>
  <img src="/imgs/ddvsdunes.webp" alt="">
</p>
<p>prompt: <code>aerial image, desert, dunes, dry, sand, rock</code></p>
<p>.. or, another one for <code>cartoon style, medieval, village, landscape, map</code>:

  <img src="/imgs/7_vgl.png" alt="">
</p>
<p>It is also possible to create individual map icons for landmarks. The Frauenkirche, for instance, appears to be known to the original Stable Diffusion 1.5 training data set. At least somewhat known:</p>
<p>
  <img src="/imgs/5_people_upscale.png" alt="">
</p>
<p>While the results can be improved, such as through additional training, the technique has potential for generating background and foreground cartographic material for illustration purposes, for instance landscape or regional planning scenarios (in the wake of climate change).</p>
]]></content></item><item><title>Reddit API queries in Jupyter</title><link>https://links.alexanderdunkel.com/posts/2023-04-11-reddit-oauth-flow-jupyter/</link><pubDate>Tue, 11 Apr 2023 11:04:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-04-11-reddit-oauth-flow-jupyter/</guid><description>&lt;video autoplay loop muted no-controls&gt;
&lt;source src="reddit_loop.webm" type="video/webm" /&gt;
Your browser does not support the video tag.
&lt;/video&gt;
&lt;video autoplay loop muted no-controls&gt;
&lt;source src="reddit_loop_comments.webm" type="video/webm" /&gt;
Your browser does not support the video tag.
&lt;/video&gt;
&lt;p&gt;&lt;a href="https://praw.readthedocs.io/"&gt;PRAW&lt;/a&gt; is the &lt;em&gt;Python Reddit API Wrapper&lt;/em&gt;. In this notebook,
I use the &lt;a href="https://praw.readthedocs.io/en/latest/getting_started/authentication.html#code-flow"&gt;Code Flow&lt;/a&gt;
with &lt;a href="https://praw.readthedocs.io/en/latest/tutorials/refresh_token.html#refresh-token"&gt;Refresh Tokens&lt;/a&gt;
to authenticate in Jupyter (running in Docker) and request sample submissions and comments.&lt;/p&gt;
&lt;p&gt;Since the &lt;code&gt;submissions.new()&lt;/code&gt; API endpoint is limited to the latest &lt;code&gt;1000&lt;/code&gt; submissions,
I am using &lt;a href="https://github.com/mattpodolak/pmaw"&gt;&lt;code&gt;pmaw&lt;/code&gt;&lt;/a&gt; to collect all original submissions
for a single subreddit (&lt;code&gt;r/yosemite&lt;/code&gt;) from &lt;a href="https://pushshift.io/"&gt;pushshift.io&lt;/a&gt;, &lt;em&gt;a website and database which logs of all of
the posts that go on Reddit when they get posted&lt;/em&gt;. &lt;a href="https://news.ycombinator.com/item?id=31101455"&gt;^1&lt;/a&gt;.
Additional attributes are fetched alongside using the original Reddit API.&lt;/p&gt;</description><content type="html"><![CDATA[<video autoplay loop muted no-controls>
  <source src="reddit_loop.webm" type="video/webm" />
  Your browser does not support the video tag.
</video>
<video autoplay loop muted no-controls>
  <source src="reddit_loop_comments.webm" type="video/webm" />
  Your browser does not support the video tag.
</video>
<p><a href="https://praw.readthedocs.io/">PRAW</a> is the <em>Python Reddit API Wrapper</em>. In this notebook,
I use the <a href="https://praw.readthedocs.io/en/latest/getting_started/authentication.html#code-flow">Code Flow</a>
with <a href="https://praw.readthedocs.io/en/latest/tutorials/refresh_token.html#refresh-token">Refresh Tokens</a>
to authenticate in Jupyter (running in Docker) and request sample submissions and comments.</p>
<p>Since the <code>submissions.new()</code> API endpoint is limited to the latest <code>1000</code> submissions,
I am using <a href="https://github.com/mattpodolak/pmaw"><code>pmaw</code></a> to collect all original submissions
for a single subreddit (<code>r/yosemite</code>) from <a href="https://pushshift.io/">pushshift.io</a>, <em>a website and database which logs of all of
the posts that go on Reddit when they get posted</em>. <a href="https://news.ycombinator.com/item?id=31101455">^1</a>.
Additional attributes are fetched alongside using the original Reddit API.</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Witrh the deprecation of the reddit-api, pushshift.io seems to be discontinued, too.</p>
</div>
</aside> 
<ul>
<li>First notebook (HTML): <a href="https://kartographie.geo.tu-dresden.de/ad/wip/reddit_api_query/html/notebook.html">https://kartographie.geo.tu-dresden.de/ad/wip/reddit_api_query/html/notebook.html</a></li>
<li>Second notebook (HTML): <a href="https://kartographie.geo.tu-dresden.de/ad/wip/reddit_api_query/html/pmaw.html">https://kartographie.geo.tu-dresden.de/ad/wip/reddit_api_query/html/pmaw.html</a></li>
</ul>
<p>Interestingly, there are about 200 new submissions for the <a href="https://www.reddit.com/r/Yosemite/">r/Yosemite</a>
subreddit shared on average each month, which is more than I expected. Our goal is to study this data regarding differences
and commonalities when communicating about National Parks in the US and Europe.</p>
<p>In the <a href="https://kartographie.geo.tu-dresden.de/ad/wip/reddit_api_query/html/pmaw.html">Second notebook</a> I also show how to gradually turn a Jupyter Notebook into  package. With the help of
<a href="https://github.com/mwouts/jupytext">Jupytext</a>, all methods defined in the notebook can be imported in a standalone
python script (<code>get_all_submissions.py</code>, <code>get_all_comments.py</code>), to be directly accessible via command line. The
trick here is to add <code>active-ipynb</code> tags to all cells that should not be available in the python version of the notebook.</p>
<p>Then everything else defined in the notebook can be imported with <code>from _pmaw import *</code>, see the <code>get_all_submissions.py</code> below.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="ch">#!/usr/bin/env python</span>
</span></span><span class="line"><span class="cl"><span class="c1"># -*- coding: utf-8 -*-</span>
</span></span><span class="line"><span class="cl"><span class="s2">&#34;&#34;&#34;
</span></span></span><span class="line"><span class="cl"><span class="s2">Load all submissions for a list of subreddits.
</span></span></span><span class="line"><span class="cl"><span class="s2">&#34;&#34;&#34;</span>
</span></span><span class="line"><span class="cl"><span class="n">__author__</span> <span class="o">=</span> <span class="s2">&#34;Alexander Dunkel&#34;</span>
</span></span><span class="line"><span class="cl"><span class="n">__license__</span> <span class="o">=</span> <span class="s2">&#34;GNU GPLv3&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">List</span><span class="p">,</span> <span class="n">Dict</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">_pmaw</span> <span class="kn">import</span> <span class="o">*</span> <span class="c1"># import all methods from notebook</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">main</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;&#34;&#34;Main cli method to query all submissions and comments for a list of subreddits&#34;&#34;&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="n">total_dict</span><span class="p">:</span> <span class="n">Dict</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="nb">int</span><span class="p">]</span> <span class="o">=</span> <span class="p">{}</span>
</span></span><span class="line"><span class="cl">    <span class="n">API</span><span class="o">.</span><span class="n">shards_down_behavior</span> <span class="o">=</span> <span class="s2">&#34;stop&#34;</span> <span class="c1"># default: warn</span>
</span></span><span class="line"><span class="cl">    <span class="k">for</span> <span class="n">subreddit</span> <span class="ow">in</span> <span class="n">PARKS_SUBREDDITS</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="n">SUBREDDIT</span> <span class="o">=</span> <span class="n">subreddit</span>
</span></span><span class="line"><span class="cl">        <span class="p">(</span><span class="n">OUTPUT</span> <span class="o">/</span> <span class="n">SUBREDDIT</span><span class="p">)</span><span class="o">.</span><span class="n">mkdir</span><span class="p">(</span><span class="n">exist_ok</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">        <span class="n">total_queried</span> <span class="o">=</span> <span class="n">query_time</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">            <span class="n">start_year</span><span class="o">=</span><span class="mi">2010</span><span class="p">,</span> <span class="n">start_month</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="n">end_year</span><span class="o">=</span><span class="mi">2023</span><span class="p">,</span> <span class="n">end_month</span><span class="o">=</span><span class="mi">4</span><span class="p">,</span> <span class="n">subreddit</span><span class="o">=</span><span class="n">SUBREDDIT</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">        <span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s1">&#39;Finished </span><span class="si">{</span><span class="n">subreddit</span><span class="si">}</span><span class="s1"> with </span><span class="si">{</span><span class="n">total_queried</span><span class="si">}</span><span class="s1"> submissions queried&#39;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">        <span class="n">total_dict</span><span class="p">[</span><span class="n">subreddit</span><span class="p">]</span> <span class="o">=</span> <span class="n">total_queried</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="vm">__name__</span> <span class="o">==</span> <span class="s2">&#34;__main__&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">main</span><span class="p">()</span>
</span></span></code></pre></div>]]></content></item><item><title>NFDI₄Earth Call</title><link>https://links.alexanderdunkel.com/posts/2023-03-31-nfdi4earth/</link><pubDate>Fri, 31 Mar 2023 15:30:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-03-31-nfdi4earth/</guid><description>&lt;p&gt;We submitted an application for funding to the &lt;a href="https://www.nfdi4earth.de/2participate/pilots"&gt;2nd NFDI4Earth Call&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Privacy-compliant geosocial data stream transformation&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Abstract
Developments in recent years have shown that crowdsourced and geosocial data streams are
important sources for understanding and predicting the effects of human activity on Earth, which
is critical for solving problems in areas such as transportation, climate change, urban and
landscape planning or disaster management. These data are generated on the basis of people’s
participation and thus pose a particular challenge for data protection, especially when they are
used for wider applications that are not known to the contributing user ahead of time. The goal is
to advance existing approaches for privacy-preserving transformation of geosocial data streams,
such as HyperLogLog (HLL), by using Locality Sensitive Hashing (LSH). LSH allows detailed modeling
of spatial and semantic relationships without identifying individuals. Expected results are
published methods for transforming crowdsourced and geosocial streaming data using LSH into
privacy-preserving data structures, measures for determining the transformation properties (data
volume, resolution, privacy budget) and generated benchmark data. For demonstration purposes,
LSH is applied to geosocial data streams in the context of landscape and urban planning, e.g. to
derive privacy-compliant indicators for ecosystem service monitoring. In the context of NFDI4Earth
and research data management, availability and integration of these human-activity focused data
sources plays an increasingly important role and the application of LSH for privacy-compliant
transformation, storage, and use has the potential to foster a wide range of applications.&lt;/p&gt;
&lt;/blockquote&gt;</description><content type="html"><![CDATA[<p>We submitted an application for funding to the <a href="https://www.nfdi4earth.de/2participate/pilots">2nd NFDI4Earth Call</a>:</p>
<blockquote>
<p>Privacy-compliant geosocial data stream transformation</p>
</blockquote>
<blockquote>
<p>Abstract
Developments in recent years have shown that crowdsourced and geosocial data streams are
important sources for understanding and predicting the effects of human activity on Earth, which
is critical for solving problems in areas such as transportation, climate change, urban and
landscape planning or disaster management. These data are generated on the basis of people’s
participation and thus pose a particular challenge for data protection, especially when they are
used for wider applications that are not known to the contributing user ahead of time. The goal is
to advance existing approaches for privacy-preserving transformation of geosocial data streams,
such as HyperLogLog (HLL), by using Locality Sensitive Hashing (LSH). LSH allows detailed modeling
of spatial and semantic relationships without identifying individuals. Expected results are
published methods for transforming crowdsourced and geosocial streaming data using LSH into
privacy-preserving data structures, measures for determining the transformation properties (data
volume, resolution, privacy budget) and generated benchmark data. For demonstration purposes,
LSH is applied to geosocial data streams in the context of landscape and urban planning, e.g. to
derive privacy-compliant indicators for ecosystem service monitoring. In the context of NFDI4Earth
and research data management, availability and integration of these human-activity focused data
sources plays an increasingly important role and the application of LSH for privacy-compliant
transformation, storage, and use has the potential to foster a wide range of applications.</p>
</blockquote>
<style>
td, th {
   border: none!important;
}
</style>
<table>
	<thead>
			<tr>
					<th style="text-align: center"><img src="2023-03-31_NFDI4Earth.png" alt="2023-03-31_NFDI4Earth.png" style="zoom:40%;" /></th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td style="text-align: center">Figure 1. Illustration of the data lifecycle and the two cases of possible adversaries addressed by the privacy compliant transformation using LSH.</td>
			</tr>
	</tbody>
</table>
<p>The total grant size was €71,410 for a one-year funding.</p>
]]></content></item><item><title>Event Inventories (abstract submission)</title><link>https://links.alexanderdunkel.com/posts/2023-03-28-event-inventories/</link><pubDate>Tue, 28 Mar 2023 06:57:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-03-28-event-inventories/</guid><description>&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/temporal_analysis_flickr_absolute.svg" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;I have submitted an abstract for the ASLA &lt;a href="https://www.aslany.org/call-for-abstracts-2023-visual-resource-stewardship-conference/"&gt;Visual Stewardship Conference 2023&lt;/a&gt;,
based on an idea that emerged from our &lt;a href="https://doi.org/10.1371/journal.pone.0280423"&gt;sunset-sunrise article&lt;/a&gt;.
In the abstract we attempt to estimate the temporality of landscape scenic resources based on user-contributed data and
the signed chi-equation. The chi measurement was useful due to its ability to subtract global, underlying and generic patterns from local observations,
such as crowd frequentation or temporal visitation patterns.&lt;/p&gt;
&lt;p&gt;The approach is feasible, based on my initial tests (see the two Jupyter notebooks below).&lt;/p&gt;</description><content type="html"><![CDATA[<p>
  <img src="/imgs/temporal_analysis_flickr_absolute.svg" alt="">
</p>
<p>I have submitted an abstract for the ASLA <a href="https://www.aslany.org/call-for-abstracts-2023-visual-resource-stewardship-conference/">Visual Stewardship Conference 2023</a>,
based on an idea that emerged from our <a href="https://doi.org/10.1371/journal.pone.0280423">sunset-sunrise article</a>.
In the abstract we attempt to estimate the temporality of landscape scenic resources based on user-contributed data and
the signed chi-equation. The chi measurement was useful due to its ability to subtract global, underlying and generic patterns from local observations,
such as crowd frequentation or temporal visitation patterns.</p>
<p>The approach is feasible, based on my initial tests (see the two Jupyter notebooks below).</p>
<ul>
<li>Abstract, <a href="files/Manuscript.pdf">Event inventories: Estimating the temporality of landscape scenic resources from user-contributed geodata.</a></li>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/00_raw_hll_conversion.html">00_raw_hll_conversion.ipynb - HTML version of notebook</a></li>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/wip/ephemeral_events/html/01_temporal_chi.html">01_temporal_chi.ipynb - HTML version of notebook</a></li>
</ul>
]]></content></item><item><title>CartoLab-Docker</title><link>https://links.alexanderdunkel.com/posts/2023-03-27-cartolab-docker/</link><pubDate>Mon, 27 Mar 2023 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-03-27-cartolab-docker/</guid><description>&lt;p&gt;&lt;a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab"&gt;CartoLab-Docker&lt;/a&gt; was released in version &lt;code&gt;0.13.0&lt;/code&gt;
and I thought it deserves a dedicated post.&lt;/p&gt;
&lt;p&gt;CartoLab is a Docker container that runs a JupyterLab-Server, with a prepared environment
&lt;em&gt;for cartographic visualizations&lt;/em&gt;, called &lt;code&gt;worker_env&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;I pretty much use CartoLab-Docker every day and it has advanced a lot over the past two years.&lt;/p&gt;
&lt;p&gt;This is an (incomplete) list of features:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;completely versioned using multiple docker tags (&lt;code&gt;latest&lt;/code&gt;, &lt;code&gt;stable&lt;/code&gt;, &lt;code&gt;mapnik&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;all versions are available as docker images from our registry, to be used (e.g.)
in the provided &lt;code&gt;docker-compose.yml&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;we take extra care to make sure that all provided cartographic packages in the default &lt;code&gt;worker_env&lt;/code&gt; are compatible,
have a look at the list of packages in the &lt;a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/blob/master-latest/README.md"&gt;Readme&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;the Docker tag &lt;code&gt;mapnik&lt;/code&gt; provides the option to run access Mapnik in Jupyter, see an example &lt;a href="https://ad.vgiscience.org/tagmaps-mapnik-jupyter/01_mapnik-tagmaps.html"&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;JupyterLab comes with several extensions such as Jupytext, for git versioning for notebooks&lt;/li&gt;
&lt;li&gt;the Docker container will automatically shutdown after an inactivity timeout (no running notebooks) of 30 Minutes&lt;/li&gt;
&lt;li&gt;the JupyterLab is password protected, using a password provided through the &lt;code&gt;.env&lt;/code&gt; file&lt;/li&gt;
&lt;li&gt;there are many options to customize the image through environmental variables in the &lt;a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/blob/master-latest/.env.example"&gt;&lt;code&gt;.env&lt;/code&gt; file&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;we have also a deployment of CartoLab-Docker in a Kubernetes cluster, together with JupyterHub, have a look at the repository &lt;a href="https://gitlab.vgiscience.de/lbsn/tools/singleuser-carto-k8s"&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Roadmap&lt;/strong&gt;: My goal is to build a complete python-based cartographic visualization workflow and publication system around CartoLab-Docker.
One example is a &lt;a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_base_template"&gt;Jupyter Base Template&lt;/a&gt; I created for CartoLab, with a git structure that sets up a project,
initialized CI/CD and prepares notebooks with custom layout/html exports (etc.). Common tools that I need in many cartographic visualization
workflows are made available from a git submodule and maintained centrally for all notebooks. The next step for &lt;code&gt;CartoLab-Docker&lt;/code&gt; is to prepare a
thorough documentation, illustrating common use cases and example workflows.&lt;/p&gt;</description><content type="html"><![CDATA[<p><a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab">CartoLab-Docker</a> was released in version <code>0.13.0</code>
and I thought it deserves a dedicated post.</p>
<p>CartoLab is a Docker container that runs a JupyterLab-Server, with a prepared environment
<em>for cartographic visualizations</em>, called <code>worker_env</code>.</p>
<p>I pretty much use CartoLab-Docker every day and it has advanced a lot over the past two years.</p>
<p>This is an (incomplete) list of features:</p>
<ul>
<li>completely versioned using multiple docker tags (<code>latest</code>, <code>stable</code>, <code>mapnik</code>)</li>
<li>all versions are available as docker images from our registry, to be used (e.g.)
in the provided <code>docker-compose.yml</code></li>
<li>we take extra care to make sure that all provided cartographic packages in the default <code>worker_env</code> are compatible,
have a look at the list of packages in the <a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/blob/master-latest/README.md">Readme</a></li>
<li>the Docker tag <code>mapnik</code> provides the option to run access Mapnik in Jupyter, see an example <a href="https://ad.vgiscience.org/tagmaps-mapnik-jupyter/01_mapnik-tagmaps.html">here</a></li>
<li>JupyterLab comes with several extensions such as Jupytext, for git versioning for notebooks</li>
<li>the Docker container will automatically shutdown after an inactivity timeout (no running notebooks) of 30 Minutes</li>
<li>the JupyterLab is password protected, using a password provided through the <code>.env</code> file</li>
<li>there are many options to customize the image through environmental variables in the <a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/blob/master-latest/.env.example"><code>.env</code> file</a></li>
<li>we have also a deployment of CartoLab-Docker in a Kubernetes cluster, together with JupyterHub, have a look at the repository <a href="https://gitlab.vgiscience.de/lbsn/tools/singleuser-carto-k8s">here</a></li>
</ul>
<p><strong>Roadmap</strong>: My goal is to build a complete python-based cartographic visualization workflow and publication system around CartoLab-Docker.
One example is a <a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_base_template">Jupyter Base Template</a> I created for CartoLab, with a git structure that sets up a project,
initialized CI/CD and prepares notebooks with custom layout/html exports (etc.). Common tools that I need in many cartographic visualization
workflows are made available from a git submodule and maintained centrally for all notebooks. The next step for <code>CartoLab-Docker</code> is to prepare a
thorough documentation, illustrating common use cases and example workflows.</p>
<p>Have a look at the <a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/blob/master-latest/CHANGELOG.md?plain=0">changelog</a>, which provides an overview of the recent changes:</p>
<h2 id="v0130-2023-03-27">v0.13.0 (2023-03-27)</h2>
<h3 id="feature">Feature</h3>
<ul>
<li>Add default persistent environment path and update docs (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/9b85dd5d45a39be9717c4108725df5739c88972b"><code>9b85dd5</code></a>)</li>
</ul>
<h3 id="fix">Fix</h3>
<ul>
<li>Disable Jupyter news (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/88116236186b4680247c7aba607e10eb6d6b5d32"><code>8811623</code></a>)</li>
</ul>
<h2 id="v0123-2023-02-21">v0.12.3 (2023-02-21)</h2>
<h3 id="fix-1">Fix</h3>
<ul>
<li>Incompatibility between numpy&gt;1.2 and Shapely&lt;1.8 (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/6dcade084283712bc5631fec46dc9360e1bffd4a"><code>6dcade0</code></a>)</li>
</ul>
<h3 id="documentation">Documentation</h3>
<ul>
<li>Update reference to docker-compose build with explicit compose file (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/80d4cd953255690d63880f17258db7413e40773c"><code>80d4cd9</code></a>)</li>
</ul>
<h2 id="v0110-2023-02-03">v0.11.0 (2023-02-03)</h2>
<h3 id="feature-1">Feature</h3>
<ul>
<li>Add TAG environemnt-variable to pin specific versions in docker-compose.yml (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/e8144b87a6601e8a550c81b67a79f36fe05ea23c"><code>e8144b8</code></a>)</li>
<li>Bump nbconvert from 6.5.* to 7.2.* (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/ee20a5744569ec5163ed46192ebc0a827b6a2988"><code>ee20a57</code></a>)</li>
</ul>
<h3 id="fix-2">Fix</h3>
<ul>
<li>YAML syntax (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/da3a8e81ec510808b355bddc146c4482042100d4"><code>da3a8e8</code></a>)</li>
</ul>
<h3 id="documentation-1">Documentation</h3>
<ul>
<li>Add explicit docker network create (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/023e4c7497c0cb5ad5d7b71ec193b06a4cfebaed"><code>023e4c7</code></a>)</li>
<li>Suggest to pull registry image, to prevent build of image by default (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/0879b513b7aa555f1a31637e7bd2bd51fd26ec2f"><code>0879b51</code></a>)</li>
<li>Clarify steps to setup svg_export (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/cbb888e26a69ee4d39cf31ca4f22a69215588f5d"><code>cbb888e</code></a>)</li>
<li>Update readme header (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/5e26d21dee3b875d48fb6b779ac078382b948003"><code>5e26d21</code></a>)</li>
</ul>
<h2 id="v090-2022-08-30">v0.9.0 (2022-08-30)</h2>
<h3 id="feature-2">Feature</h3>
<ul>
<li>Add .version to Dockerfile, to be able to get the Container version at runtime (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/31ed7cbe4337020fd7eebd540dd00d88a182ca79"><code>31ed7cb</code></a>)</li>
</ul>
<h3 id="fix-3">Fix</h3>
<ul>
<li>Ipywidgets compatibility (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/bb1c0beaa8718ffaba49e282da81df979d291ca7"><code>bb1c0be</code></a>)</li>
<li>CI extract version from file (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/9d10722215ae99394294ded3005c0dafa2cb8eb7"><code>9d10722</code></a>)</li>
<li>Use master-latest for versioned releases (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/6d390ef36ac9316b3a423a2ba5c3c6c49c30b259"><code>6d390ef</code></a>)</li>
</ul>
<h3 id="documentation-2">Documentation</h3>
<ul>
<li>Add instructions to install selenium and webdriver (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/cb4038a19bdd849a9abdd9bae4d7ae566fc4ddf0"><code>cb4038a</code></a>)</li>
<li>Add COMPOSE_FILE to .env examples (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/5cf73a2654a869dce9d394a1f1951cd057ce64e9"><code>5cf73a2</code></a>)</li>
<li>Update header (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/c57caa3c0a7b2e43fc24b593ec852b909e790eb8"><code>c57caa3</code></a>)</li>
</ul>
<h2 id="v081-2022-08-25">v0.8.1 (2022-08-25)</h2>
<h3 id="ci">CI</h3>
<ul>
<li>Automatic versioning of registry images</li>
</ul>
<h3 id="feature-3">Feature</h3>
<ul>
<li>Add Mapnik docker and tag (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/3ce9d064a4829ef2870fb6ee9c6009d8d6c1d49e"><code>3ce9d06</code></a>)</li>
</ul>
<h3 id="fix-4">Fix</h3>
<ul>
<li>Nbconvert pinned to old version (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/fb611fc04ef08db9e222597ca92e27e9d6623d54"><code>fb611fc</code></a>)</li>
<li>Incompatible geoviews package for latest holoviews release (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/5baa575acfcff1ec6c861adfc700f7aaf8a46865"><code>5baa575</code></a>)</li>
</ul>
<h3 id="documentation-3">Documentation</h3>
<ul>
<li>Update readme to include collaborative editing feature (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/7b40eb97dd38b83b95566476d6cf924711fe3f38"><code>7b40eb9</code></a>)</li>
<li>Add note to use registry images in readme (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/05528e481c4dce7ed41346e45c02d2354efe50d9"><code>05528e4</code></a>)</li>
<li>Add warning to update pinnings regularly (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/5b40fbcea47ecfbe90027844899e086400ab31a7"><code>5b40fbc</code></a>)</li>
</ul>
<h2 id="v060-2021-07-12">v0.6.0 (2021-07-12)</h2>
<h3 id="feature-4">Feature</h3>
<ul>
<li>Add flopy to default packages (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/e92819b0688f079ca80830e4df9fcad014b3cb33"><code>e92819b</code></a>)</li>
<li>Add pyvizcomm for Holoviews/Jupyter Lab 3.0 compatibility (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/7a7eacf634c3f8a8f0fc7c14925e6df39ae04c85"><code>7a7eacf</code></a>)</li>
<li>Add datashader to worker_env (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/ee8a49ac6edbecc66ba9636903a6bd840a05e29e"><code>ee8a49a</code></a>)</li>
<li>Add package adjust_text (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/00bbfe8461c871c1278f1458f24678d5e7be76a0"><code>00bbfe8</code></a>)</li>
<li>Remove firefox, geckodriver and selenium dependencies, as they are not reliable enough (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/fd18aae5c8a20502ff60b4e32988acf543c3fc7f"><code>fd18aae</code></a>)</li>
<li>Add pyepsg package to worker_env (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/2e2ea2fa8458e4a5b93b632f5ab3c6e7f1021382"><code>2e2ea2f</code></a>)</li>
<li>Update Dockerfile to JupyterLab 3.0 compatibility (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/65615aab3fe6407360f41669c89aec99c3b48e0b"><code>65615aa</code></a>)</li>
</ul>
<h3 id="fix-5">Fix</h3>
<ul>
<li>Incompatible geoviews package for latest holoviews release (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/5baa575acfcff1ec6c861adfc700f7aaf8a46865"><code>5baa575</code></a>)</li>
<li>Move config to ServerApp transition (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/fbd83fe3c389740f5b5dda69e6c22807676b3012"><code>fbd83fe</code></a>)</li>
<li>Remove nodejs not needed anymore for Jupyter Lab 3.0 (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/a6008a33b0c8d3a3a55be6691485f7727ce06984"><code>a6008a3</code></a>)</li>
<li>/home/alex reference to notebooks in compose; update readme (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/97f35259a2039613379158bb259ee0cf83b9614e"><code>97f3525</code></a>)</li>
<li>Do not use nbextensions install in jupyterlab 3.0 (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/0edd4661d0e6476377b1ce8e607f8a9ff0dfbfde"><code>0edd466</code></a>)</li>
<li>Use commented default values in .env.example (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/8ea44015777c574dba95f7eafff15b9ae4b681f7"><code>8ea4401</code></a>)</li>
<li>Ipywidgets not yet released (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/96ac9ba21b3677ee7b3abdbb5997c65c6352cf22"><code>96ac9ba</code></a>)</li>
<li>Environment_default.yml ipywidgets pinning (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/89c2f1edf6973ed0a2918d1b453746bb20877c2f"><code>89c2f1e</code></a>)</li>
</ul>
<h3 id="documentation-4">Documentation</h3>
<ul>
<li>Add warning to update pinnings regularly (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/5b40fbcea47ecfbe90027844899e086400ab31a7"><code>5b40fbc</code></a>)</li>
<li>Add list of packages and links to documentations to readme (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/2229554742d0508dc1815ccea44cecb5676016e2"><code>2229554</code></a>)</li>
<li>Update Readme.md with branch shuffle (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/b261af9a3542b927b1fbd247f50a9a1343145a69"><code>b261af9</code></a>)</li>
<li>Fix link to lbsn-ctl (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/0494fad2093f9be24c1a671ea05bc38b53a82f4b"><code>0494fad</code></a>)</li>
<li>Add master-stable branch note (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/5add9153c04474bfd324855208f7689dcf48fb6b"><code>5add915</code></a>)</li>
<li>Add linebreaks to Readme (<a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab/-/commit/34756cd1a5351aa86f1844003a5e939a3f9dbeca"><code>34756cd</code></a>)</li>
</ul>
]]></content></item><item><title>JupyterLab base project template</title><link>https://links.alexanderdunkel.com/posts/2023-03-16-jupyter-template/</link><pubDate>Thu, 16 Mar 2023 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-03-16-jupyter-template/</guid><description>&lt;p&gt;JupyterLab has become integral to my daily workflow. Whether it is creating a single processing
pipeline or multi-notebook data visualizations.&lt;/p&gt;
&lt;p&gt;It was always a pain to set up the repositories, with automatic versioning, and a Continuous Integration (CI) pipeline
that pushes results and HTML conversions to a public web server.&lt;/p&gt;
&lt;p&gt;I have created a git template repository that does all that automatically:
&lt;a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_base_template"&gt;https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_base_template&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is based on &lt;a href="https://github.com/cookiecutter/cookiecutter"&gt;cookiecutter&lt;/a&gt; and asks a number of questions, before
initializing the repository and CI, using the Gitlab API.&lt;/p&gt;</description><content type="html"><![CDATA[<p>JupyterLab has become integral to my daily workflow. Whether it is creating a single processing
pipeline or multi-notebook data visualizations.</p>
<p>It was always a pain to set up the repositories, with automatic versioning, and a Continuous Integration (CI) pipeline
that pushes results and HTML conversions to a public web server.</p>
<p>I have created a git template repository that does all that automatically:
<a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_base_template">https://gitlab.hrz.tu-chemnitz.de/tud-ifk/jupyter_base_template</a></p>
<p>It is based on <a href="https://github.com/cookiecutter/cookiecutter">cookiecutter</a> and asks a number of questions, before
initializing the repository and CI, using the Gitlab API.</p>
<p>These are the full steps:</p>
<ol>
<li>The project is cloned into a subdirectory with name <code>project_slug</code>.</li>
<li>README.md is updated with title, referenced (badge-urls, internal links) are updated.</li>
<li>Semantic-release config <code>setup.cfg</code> is configured with the Gitlab Domain</li>
<li><code>.gitlab-ci.yml</code> is configured with the remote pages namespace (<code>project_slug</code>)</li>
<li>The template notebook in <code>md/notebook.md</code> is updated with <code>project_name</code> and <code>description</code>. Links to badged and repository are updated.</li>
<li>The git submodule <code>py/modules/base</code> is cloned and added to the project</li>
<li>The git remote repository and remote path are set</li>
<li>The Gitlab repository is created via API</li>
<li>All protected variables that exist in the Gitlab template repository are fetched and set in the new Gitlab repository.</li>
</ol>
<p>Here&rsquo;s an example for <a href="https://kartographie.geo.tu-dresden.de/ad/2022-12-22_OpenAI_Summary/html/gpt4-summary.html">the final layout of HTML conversion</a>.</p>
<p>There&rsquo;s also a submodule automatically added to projects that includes my base-python tools (downloading unzipping etc.) that I can
use in many notebooks, but only want to version in a single central repository.</p>
<p>The CI pipeline is set up using a restricted SSH key (see <a href="https://download.samba.org/pub/rsync/rrsync.1">rrsync</a>) that is limited (server-side)
to a specific directory - should it become compromised.</p>
<h2 id="see-in-action">See in action</h2>
<p>Here&rsquo;s a recording of the tool, where I create a sample project from the IOER template.</p>
<p><a href="https://asciinema.org/a/671388">
  <img src="https://asciinema.org/a/671388.svg" alt="asciicast">
</a></p>
]]></content></item><item><title>Mobile Cartography Workshop Results 2023</title><link>https://links.alexanderdunkel.com/posts/2023-03-13-datascience-workshops-2023/</link><pubDate>Mon, 13 Mar 2023 16:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-03-13-datascience-workshops-2023/</guid><description>&lt;p&gt;I wanted to share some sample results of this year&amp;rsquo;s Jupyter and Tag Maps workshop.
The goal was not completeness, but experimenting with APIs, data and code.
I think the students did a wonderful job to create a lot of variety and creativity
in the short time frame from these 2x 1DS workshops.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Mobile Cartography Results Jupyter Workshop (9 and 10 January 2023)&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tag Maps Workshop (16 and 17 January 2023)&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://kartographie.geo.tu-dresden.de/results/datascience2023/2023-03-13_MobileCartography_Results.html"&gt;Selected results&lt;/a&gt;:&lt;/p&gt;</description><content type="html"><![CDATA[<p>I wanted to share some sample results of this year&rsquo;s Jupyter and Tag Maps workshop.
The goal was not completeness, but experimenting with APIs, data and code.
I think the students did a wonderful job to create a lot of variety and creativity
in the short time frame from these 2x 1DS workshops.</p>
<ul>
<li><strong>Mobile Cartography Results Jupyter Workshop (9 and 10 January 2023)</strong></li>
<li><strong>Tag Maps Workshop (16 and 17 January 2023)</strong></li>
</ul>
<p><a href="https://kartographie.geo.tu-dresden.de/results/datascience2023/2023-03-13_MobileCartography_Results.html">Selected results</a>:</p>
<h3 id="instagram-api">Instagram API</h3>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">hashtag</span> <span class="o">=</span> <span class="s2">&#34;donut&#34;</span>
</span></span></code></pre></div><img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230313132741266.png" alt="image-20230313132741266" style="zoom:50%;" />
<p>Oskar Baumann</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">hashtag</span> <span class="o">=</span> <span class="s2">&#34;cat&#34;</span>
</span></span></code></pre></div><img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317111614421.png" alt="image-20230317111614421" style="zoom:50%;" />
<p>Carolin Rünger</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">hashtag</span> <span class="o">=</span> <span class="s2">&#34;dog&#34;</span>
</span></span></code></pre></div><img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317112446585.png" alt="image-20230317112446585" style="zoom: 50%;" />
<p>Vanessa Henkes</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">hashtag</span> <span class="o">=</span> <span class="s2">&#34;map&#34;</span>
</span></span></code></pre></div><p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317112931828.png" alt="image-20230317112931828">
</p>
<p>Yagiz Kara</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">hashtag</span> <span class="o">=</span> <span class="s2">&#34;chalamet&#34;</span>
</span></span></code></pre></div><img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320101235933.png" alt="image-20230320101235933" style="zoom: 50%;" />
<p>Myrto Panagiota Bouloukou</p>
<h3 id="wikimedia-api-query">Wikimedia API Query</h3>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230313131715662.png" alt="image-20230313131715662">
</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230313131842869.png" alt="image-20230313131842869">
</p>
<p>Zihan Liu</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230313132811553.png" alt="image-20230313132811553">
</p>
<p>Oskar Baumann</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317105109375.png" alt="image-20230317105109375">
</p>
<p>Joel David Salazar Alvarez</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317110026252.png" alt="image-20230317110026252">
</p>
<p>Camila Narbaitz Sarsur</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317112544505.png" alt="image-20230317112544505">
</p>
<p>Vanessa Henkes</p>
<img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320090444704.png" alt="image-20230320090444704" style="zoom:67%;" />
<p>Chih-Yu Chen</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320091226393.png" alt="image-20230320091226393">
</p>
<p>Eliezer Fajardo</p>
<img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320095544384.png" alt="image-20230320095544384" style="zoom:67%;" />
<p>Tianqi Li</p>
<img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320091947683.png" alt="image-20230320091947683" style="zoom:67%;" />
<p>Julia Borghs</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320101327524.png" alt="image-20230320101327524">
</p>
<p>Myrto Panagiota Bouloukou</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320103017187.png" alt="image-20230320103017187">
</p>
<p>Sacha Schlumpf</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320103914913.png" alt="image-20230320103914913">
</p>
<p>Malte Stüllein</p>
<h3 id="hll-intersection">HLL Intersection</h3>
<img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230313132049969.png" alt="image-20230313132049969" style="zoom:67%;" />
<p>Zihan Liu</p>
<img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317105217234.png" alt="image-20230317105217234" style="zoom:67%;" />
<p>Joel David Salazar Alvarez</p>
<img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317111745471.png" alt="image-20230317111745471" style="zoom: 25%;" />
<p>Carolin Rünger</p>
<img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317110755708.png" alt="image-20230317110755708" style="zoom: 80%;" />
<p>Martin Wex</p>
<img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320090630784.png" alt="image-20230320090630784" style="zoom:67%;" />
<p>Chih-Yu Chen</p>
<img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320095647078.png" alt="image-20230320095647078" style="zoom:67%;" />
<p>Tianqi Li</p>
<img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320100508946.png" alt="image-20230320100508946" style="zoom:67%;" />
<p>Manuela Londoño Jimenez</p>
<img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320101702664.png" alt="image-20230320101702664" style="zoom:67%;" />
<p>Myrto Panagiota Bouloukou</p>
<h3 id="topic-heat-map-tag-maps">Topic Heat Map (tag maps)</h3>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230313132438363.png" alt="image-20230313132438363">
</p>
<p>Zihan Liu</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317105332449.png" alt="image-20230317105332449">
</p>
<p>Joel David Salazar Alvarez</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317110119901.png" alt="image-20230317110119901">
</p>
<p>Camila Narbaitz Sarsur</p>
<img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320084538414.png" alt="image-20230320084538414" style="zoom:67%;" />
<p>Lisa Wey</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320084719263.png" alt="image-20230320084719263">
</p>
<p>Lisa Wey</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320091409320.png" alt="image-20230320091409320">
</p>
<p>Eliezer Fajardo</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320092641678.png" alt="image-20230320092641678">
</p>
<p>Monika Krautschneider</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320100642764.png" alt="image-20230320100642764">
</p>
<p>Manuela Londoño Jimenez</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320104137125.png" alt="image-20230320104137125">
</p>
<p>Malte Stüllein</p>
<h3 id="word-cloud-topic-classification">Word Cloud Topic Classification</h3>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">topic_list</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;christmas&#39;</span><span class="p">,</span><span class="s1">&#39;snow&#39;</span><span class="p">,</span><span class="s1">&#39;elbe&#39;</span><span class="p">,</span><span class="s1">&#39;history&#39;</span><span class="p">,</span><span class="s1">&#39;architecture&#39;</span><span class="p">]</span>
</span></span></code></pre></div><img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317103541709.png" alt="image-20230317103541709" style="zoom:67%;" />
<p>Jiapan Wang</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">topic_list</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;festival&#39;</span><span class="p">,</span><span class="s1">&#39;concert&#39;</span><span class="p">,</span><span class="s1">&#39;noisy&#39;</span><span class="p">,</span><span class="s1">&#39;boring&#39;</span><span class="p">,</span> <span class="s1">&#39;toilet&#39;</span><span class="p">]</span>
</span></span></code></pre></div><img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317105414886.png" alt="image-20230317105414886" style="zoom:67%;" />
<p>Joel David Salazar Alvarez</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">topic_list</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;bakery&#39;</span><span class="p">,</span><span class="s1">&#39;tea&#39;</span><span class="p">,</span><span class="s1">&#39;cafe&#39;</span><span class="p">,</span><span class="s1">&#39;cake&#39;</span><span class="p">]</span>
</span></span></code></pre></div><img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317105826880.png" alt="image-20230317105826880" style="zoom:67%;" />
<p>Camila Narbaitz Sarsur</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">topic_list</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;sonne&#39;</span><span class="p">,</span><span class="s1">&#39;feiern&#39;</span><span class="p">,</span><span class="s1">&#39;freunde&#39;</span><span class="p">,</span> <span class="s1">&#39;abends&#39;</span><span class="p">]</span>
</span></span></code></pre></div><img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317111022618.png" alt="image-20230317111022618" style="zoom:67%;" />
<p>Martin Wex</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">topic_list</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;cafe&#39;</span><span class="p">,</span><span class="s1">&#39;coffee&#39;</span><span class="p">,</span><span class="s1">&#39;bar&#39;</span><span class="p">,</span> <span class="s1">&#39;drink&#39;</span><span class="p">,</span> <span class="s1">&#39;beer&#39;</span><span class="p">]</span>
</span></span></code></pre></div><img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320103151942.png" alt="image-20230320103151942" style="zoom:67%;" />
<p>Sacha Schlumpf</p>
<h3 id="tag-maps">Tag Maps</h3>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317103954711.png" alt="image-20230317103954711">
</p>
<p>Jiapan Wang</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317104112214.png" alt="image-20230317104112214">
</p>
<p>Jiongyan Zhang</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317104428924.png" alt="image-20230317104428924">
</p>
<p>Badrinath Poornima</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317105611236.png" alt="image-20230317105611236">
</p>
<p>Joel David Salazar Alvarez</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317110503128.png" alt="image-20230317110503128">
</p>
<p>Camila Narbaitz Sarsur</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230317134113880.png" alt="image-20230317134113880">
</p>
<p>Yagiz Kara</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320090149813.png" alt="image-20230320090149813">
</p>
<p>Chih-Yu Chen</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320091054685.png" alt="image-20230320091054685">
</p>
<p>Eliezer Fajardo</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320102105474.png" alt="image-20230320102105474">
</p>
<p>Julia Schiller</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320102815063.png" alt="image-20230320102815063">
</p>
<p>Sacha Schlumpf</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320103804317.png" alt="image-20230320103804317">
</p>
<p>Malte Stüllein</p>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/results/datascience2023/image-20230320104653386.png" alt="image-20230320104653386">
</p>
<p>Mihir Desai</p>
]]></content></item><item><title>BMBF Funding: Wissenschaftskommunikation</title><link>https://links.alexanderdunkel.com/posts/2023-02-01-bmbf-funding-2/</link><pubDate>Thu, 02 Mar 2023 16:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-02-01-bmbf-funding-2/</guid><description>&lt;p&gt;After our initial funding application for &lt;code&gt;Die digitale Kommune&lt;/code&gt; (October 2022),
we submitted a second application for the &lt;code&gt;Wissenschaftskommunikation&lt;/code&gt;-Call:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Digitaler Dialog zu lokaler Klimawandelanpassung für mehr öffentliches Engagement (#Klimadialog)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This time, Kassel took the lead part.&lt;/p&gt;
&lt;p&gt;Our topic was:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;#4K: Kreative Kommunikation für Klima &amp;amp; Kultur&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Zur Anpassung an die Folgen des Klimawandels ist eine breite Unterstützung durch die Öffentlichkeit
notwendig. Wissenschaftskommunikation mit dem Ziel von Public Engagement spielt daher eine
entscheidende Rolle für die Akzeptanz von Klimawandelanpassungsmaßnahmen und die Bereitschaft zur
Umsetzung im privaten Umfeld. Digitale Kommunikationsstrategien erlauben es, breitere Zielgruppen
anzusprechen, einen niedrigschwelligen Zugang zu schaffen und lokalisierte Handlungsoptionen
aufzuzeigen. Gleichzeitig bereitet digitale Kommunikation besondere Herausforderungen, was sogenannte
Echo-Chambers und Internet-Trolle sowie den Einsatz als einseitige Kommunikationsstrategie in Online-
Portalen angeht. Bisher fehlt es an einer systematischen Verbindung und Evaluation der Wirksamkeit von
analogen und digitalen Methoden und Formaten für lokale Klimawandelanpassung.
Das hier skizzierte Projekt zielt darauf ab, neue Methoden des Dialogs zur Klimawandelanpassung zu
erproben und zu evaluieren, welche (1) die Lösungsorientierung und das soziale Miteinander betonen, (2)
auf lokalisierte Klimainformationen und lokalem Wissen begründet sind und (3) die digitalen und analogen
Formate unter Integration sozialer Medien verbinden. Dazu soll am Beispiel der nordhessischen Stadt
Kassel eine digitale Plattform zum Klimadialog eingerichtet werden, die soziale Medien und lokales Wissen
einbindet und auswertet, lokalisierte Klimawandelanpassungsoptionen bereitstellt und einen breiten
öffentlichen Dialog anregt.
Die Evaluation der Methoden und Formate findet durch qualitative Interviews statt, ergänzt durch
quantitative Online-Umfragen und Nutzer:innen-Daten der Plattform, sodass ein umfassendes Bild der
Wirksamkeit generiert wird. Das Projekt leistet somit einen wesentlichen Beitrag für das Verständnis der
Wirksamkeit der Wissenschaftskommunikation und zielt darauf ab, in der lokalen Praxis das Public
Engagement zur Klimawandelanpassung zu verbessern.&lt;/p&gt;
&lt;/blockquote&gt;</description><content type="html"><![CDATA[<p>After our initial funding application for <code>Die digitale Kommune</code> (October 2022),
we submitted a second application for the <code>Wissenschaftskommunikation</code>-Call:</p>
<blockquote>
<p>Digitaler Dialog zu lokaler Klimawandelanpassung für mehr öffentliches Engagement (#Klimadialog)</p>
</blockquote>
<p>This time, Kassel took the lead part.</p>
<p>Our topic was:</p>
<blockquote>
<p>#4K: Kreative Kommunikation für Klima &amp; Kultur</p>
</blockquote>
<blockquote>
<p>Zur Anpassung an die Folgen des Klimawandels ist eine breite Unterstützung durch die Öffentlichkeit
notwendig. Wissenschaftskommunikation mit dem Ziel von Public Engagement spielt daher eine
entscheidende Rolle für die Akzeptanz von Klimawandelanpassungsmaßnahmen und die Bereitschaft zur
Umsetzung im privaten Umfeld. Digitale Kommunikationsstrategien erlauben es, breitere Zielgruppen
anzusprechen, einen niedrigschwelligen Zugang zu schaffen und lokalisierte Handlungsoptionen
aufzuzeigen. Gleichzeitig bereitet digitale Kommunikation besondere Herausforderungen, was sogenannte
Echo-Chambers und Internet-Trolle sowie den Einsatz als einseitige Kommunikationsstrategie in Online-
Portalen angeht. Bisher fehlt es an einer systematischen Verbindung und Evaluation der Wirksamkeit von
analogen und digitalen Methoden und Formaten für lokale Klimawandelanpassung.
Das hier skizzierte Projekt zielt darauf ab, neue Methoden des Dialogs zur Klimawandelanpassung zu
erproben und zu evaluieren, welche (1) die Lösungsorientierung und das soziale Miteinander betonen, (2)
auf lokalisierte Klimainformationen und lokalem Wissen begründet sind und (3) die digitalen und analogen
Formate unter Integration sozialer Medien verbinden. Dazu soll am Beispiel der nordhessischen Stadt
Kassel eine digitale Plattform zum Klimadialog eingerichtet werden, die soziale Medien und lokales Wissen
einbindet und auswertet, lokalisierte Klimawandelanpassungsoptionen bereitstellt und einen breiten
öffentlichen Dialog anregt.
Die Evaluation der Methoden und Formate findet durch qualitative Interviews statt, ergänzt durch
quantitative Online-Umfragen und Nutzer:innen-Daten der Plattform, sodass ein umfassendes Bild der
Wirksamkeit generiert wird. Das Projekt leistet somit einen wesentlichen Beitrag für das Verständnis der
Wirksamkeit der Wissenschaftskommunikation und zielt darauf ab, in der lokalen Praxis das Public
Engagement zur Klimawandelanpassung zu verbessern.</p>
</blockquote>
<style>
td, th {
   border: none!important;
}
</style>
<table>
	<thead>
			<tr>
					<th style="text-align: center">
  <img src="/imgs/2023-03-02_Wissenschaftskommunikation2.webp" alt="">
</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td style="text-align: center">Abbildung 1: Übersicht der Projektziele und -inhalte</td>
			</tr>
	</tbody>
</table>
<p>The total grant size was €751,079</p>
]]></content></item><item><title>VGIscience final colloquium, Hamburg</title><link>https://links.alexanderdunkel.com/posts/2023-03-02-vgiscience-hamburg/</link><pubDate>Thu, 02 Mar 2023 12:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-03-02-vgiscience-hamburg/</guid><description>&lt;p&gt;An Internal meeting on research output and outlook of the SPP Priority Programme.&lt;/p&gt;
&lt;p&gt;I revised the EvaVGI project page from the ground up, which now includes all publications and research output from our group:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.vgiscience.org/projects/eva-vgi-2.html"&gt;https://www.vgiscience.org/projects/eva-vgi-2.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>An Internal meeting on research output and outlook of the SPP Priority Programme.</p>
<p>I revised the EvaVGI project page from the ground up, which now includes all publications and research output from our group:</p>
<ul>
<li><a href="https://www.vgiscience.org/projects/eva-vgi-2.html">https://www.vgiscience.org/projects/eva-vgi-2.html</a></li>
</ul>
]]></content></item><item><title>Publication: From sunrise to sunset</title><link>https://links.alexanderdunkel.com/posts/2023-02-28-sunsetsunrise/</link><pubDate>Tue, 28 Feb 2023 09:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-02-28-sunsetsunrise/</guid><description>&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2023-02-28-sunsetsunrise.jpg" alt="Fig.3"&gt;
&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;The final paper was published!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Abstract&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Events profoundly influence human-environment interactions. Through repetition,
some events manifest and amplify collective behavioral traits, which significantly
affects landscapes and their use, meaning, and value. However, the majority of research
on reaction to events focuses on case studies, based on spatial subsets of data.
This makes it difficult to put observations into context and to isolate sources of
noise or bias found in data. As a result, inclusion of perceived aesthetic values,
for example, in cultural ecosystem services, as a means to protect and develop landscapes,
remains problematic. In this work, we focus on human behavior worldwide by exploring
global reactions to sunset and sunrise using two datasets collected from Instagram
and Flickr. By focusing on the consistency and reproducibility of results across
these datasets, our goal is to contribute to the development of more robust methods
for identifying landscape preference using geo-social media data, while also exploring
motivations for photographing these particular events. Based on a four facet context
model, reactions to sunset and sunrise are explored for Where, Who, What, and When.
We further compare reactions across different groups, with the aim of quantifying
differences in behavior and information spread. Our results suggest that a balanced
assessment of landscape preference across different regions and datasets is possible,
which strengthens representativity and exploring the How and Why in particular event
contexts. The process of analysis is fully documented, allowing transparent replication
and adoption to other events or datasets.&lt;/p&gt;
&lt;/blockquote&gt;</description><content type="html"><![CDATA[<p>
  <img src="/imgs/2023-02-28-sunsetsunrise.jpg" alt="Fig.3">
</p>
<hr>
<p>The final paper was published!</p>
<p><strong>Abstract</strong></p>
<blockquote>
<p>Events profoundly influence human-environment interactions. Through repetition,
some events manifest and amplify collective behavioral traits, which significantly
affects landscapes and their use, meaning, and value. However, the majority of research
on reaction to events focuses on case studies, based on spatial subsets of data.
This makes it difficult to put observations into context and to isolate sources of
noise or bias found in data. As a result, inclusion of perceived aesthetic values,
for example, in cultural ecosystem services, as a means to protect and develop landscapes,
remains problematic. In this work, we focus on human behavior worldwide by exploring
global reactions to sunset and sunrise using two datasets collected from Instagram
and Flickr. By focusing on the consistency and reproducibility of results across
these datasets, our goal is to contribute to the development of more robust methods
for identifying landscape preference using geo-social media data, while also exploring
motivations for photographing these particular events. Based on a four facet context
model, reactions to sunset and sunrise are explored for Where, Who, What, and When.
We further compare reactions across different groups, with the aim of quantifying
differences in behavior and information spread. Our results suggest that a balanced
assessment of landscape preference across different regions and datasets is possible,
which strengthens representativity and exploring the How and Why in particular event
contexts. The process of analysis is fully documented, allowing transparent replication
and adoption to other events or datasets.</p>
</blockquote>
<p><strong>Citation</strong></p>
<blockquote>
<p>Dunkel, A., Hartmann, M. C., Hauthal, E., Burghardt, Dirk, &amp; Purves, R. S. (2023).
From sunrise to sunset: Exploring landscape preference through global reactions to
ephemeral events captured in georeferenced social media. PLoS ONE, 17(1). <a href="https://doi.org/10.1371/journal.pone.0280423">DOI</a></p>
</blockquote>
<p><a href="https://gitlab.vgiscience.de/ad/sunset-sunrise-paper">The repository</a> contains all Jupyter notebooks to reproduce the paper and results.</p>
<p>I also made <a href="/posts/2023-02-22-sunsetsunrise-benchmark/">a demo</a> available on how to use the data provided as supplementary materials.</p>
<h2 id="repository-flickr-sunset-sunrise-grid-aggregation--chi">Repository: Flickr Sunset Sunrise grid aggregation &amp; chi</h2>
<p>The notebooks are stored as markdown files with <a href="https://github.com/mwouts/jupytext">jupytext</a> for better git compatibility.</p>
<p>These notebooks can be run with <a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab">CartoLab Docker</a>.</p>
<h3 id="results">Results</h3>
<p>In addition to the <a href="https://gitlab.vgiscience.de/ad/sunset-sunrise-paper/-/tree/master/resources/html?ref_type=heads">resource</a> folder, the latest HTML converts of notebooks are also available here:</p>
<ul>
<li><strong><a href="https://ad.vgiscience.org/sunset-sunrise-paper/01_grid_agg.html">01_grid_agg.html</a></strong>
<ul>
<li>Results: <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/compare_figures.html">16 static maps</a> for Instagram and Flickr (Sunrise + Sunset) and Flickr Totals,
absolute User Count, Post Count and User Days</li>
</ul>
</li>
<li><strong><a href="https://ad.vgiscience.org/sunset-sunrise-paper/02_visualization.html">02_visualization.html</a></strong>
<ul>
<li>Results: Interactive Visualization using Bokeh, with most popular Flickr CC Images shown on hover</li>
<li>Example outputs:
<ul>
<li>Absolute User Days <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/flickr_sunset_userdays_est.html">Flickr Sunset</a></li>
<li>Absolute User Days <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/flickr_sunrise_userdays_est.html">Flickr Sunrise with CC Images on Hover</a></li>
</ul>
</li>
</ul>
</li>
<li><strong><a href="https://ad.vgiscience.org/sunset-sunrise-paper/03_chimaps.html">03_chimaps.html</a></strong>
<ul>
<li>Results: Chi maps for Flickr and Instagram Sunset and Sunrise, for User Count and User Days, and
for Natural Breaks and Head Tail Breaks classification schemes, excluding non-significant chi values</li>
<li>Outputs:
<ul>
<li>with non-significant:
<ul>
<li><a href="https://ad.vgiscience.org/sunset-sunrise-paper/03_chimaps.html#Output-with-non-significant-values">see notebook output</a></li>
</ul>
</li>
<li>without non-significant:
<ul>
<li>User Count:
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunset_flickr_chi_usercount_naturalbreaks.html">Flickr Sunset chi (Natural Breaks)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunrise_flickr_chi_usercount_naturalbreaks.html">Flickr Sunrise chi (Natural Breaks)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunrise_instagram_chi_usercount_naturalbreaks.html">Instagram Sunset chi (Natural Breaks, Instagram Random 20M as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunset_instagram_chi_usercount_naturalbreaks.html">Instagram Sunrise chi (Natural Breaks, Instagram Random 20M as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunset_instagram_chi_fe_usercount_naturalbreaks.html">Instagram Sunset chi (Natural Breaks, Flickr Totals as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunrise_instagram_chi_fe_usercount_naturalbreaks.html">Instagram Sunrise chi (Natural Breaks, Flickr Totals as expected)</a></li>
</ul>
</li>
<li>User Days:
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunset_flickr_chi_userdays_naturalbreaks.html">Flickr Sunset chi (Natural Breaks)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunrise_flickr_chi_userdays_naturalbreaks.html">Flickr Sunrise chi (Natural Breaks)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunset_instagram_chi_fe_userdays_naturalbreaks.html">Instagram Sunset chi (Natural Breaks, Flickr Totals as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunrise_instagram_chi_fe_userdays_naturalbreaks.html">Instagram Sunrise chi (Natural Breaks, Flickr Totals as expected)</a></li>
</ul>
</li>
<li>Post Count:
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunset_flickr_chi_postcount_naturalbreaks.html">Flickr Sunset chi (Natural Breaks)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunrise_flickr_chi_postcount_naturalbreaks.html">Flickr Sunrise chi (Natural Breaks)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunset_instagram_chi_fe_postcount_naturalbreaks.html">Instagram Sunset chi (Natural Breaks, Flickr Totals as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunrise_instagram_chi_fe_postcount_naturalbreaks.html">Instagram Sunrise chi (Natural Breaks, Flickr Totals as expected)</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><strong><a href="https://ad.vgiscience.org/sunset-sunrise-paper/04_combine.html">04_combine.html</a></strong>
<ul>
<li>Results: Merged chi values (positive), to combine Instagram and Flickr results for comparison</li>
<li>Outputs:
<ul>
<li>Head Tail Breaks:
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_flickr_postcount.html">Flickr Post Count</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_flickr_userdays.html">Flickr User Days</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_flickr_usercount.html">Flickr User Count</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_postcount.html">Instagram Post Count (Sunset+Sunrise as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_userdays.html">Instagram User Days (Sunset+Sunrise as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_usercount.html">Instagram User Count (Sunset+Sunrise as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_flickrexpected_postcount.html">Instagram Post Count (Flickr Totals as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_flickrexpected_userdays.html">Instagram User Days (Flickr Totals as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_flickrexpected_usercount.html">Instagram User Count (Flickr Totals as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_randomexpected_postcount.html">Instagram Post Count (Instagram Random 20M as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_randomexpected_userdays.html">Instagram User Days (Instagram Random 20M as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_randomexpected_usercount.html">Instagram User Count (Instagram Random 20M as expected)</a></li>
</ul>
</li>
<li>Natural Breaks:
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_flickr_naturalbreaks_postcount.html">Flickr Post Count</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_flickr_naturalbreaks_userdays.html">Flickr User Days</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_flickr_naturalbreaks_usercount.html">Flickr User Count</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_naturalbreaks_postcount.html">Instagram Post Count (Sunset+Sunrise as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_naturalbreaks_userdays.html">Instagram User Days (Sunset+Sunrise as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_naturalbreaks_usercount.html">Instagram User Count (Sunset+Sunrise as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_flickrexpected_naturalbreaks_postcount.html">Instagram Post Count (Flickr Totals as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_flickrexpected_naturalbreaks_userdays.html">Instagram User Days (Flickr Totals as expected)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_flickrexpected_naturalbreaks_usercount.html">Instagram User Count (Flickr Totals as expected)</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><strong><a href="https://ad.vgiscience.org/sunset-sunrise-paper/05_countries.html">05_countries.html</a></strong>
<ul>
<li>Results: Country aggregate chi values, also for producing relationship plots</li>
<li>Outputs:
<ul>
<li>Head Tail Breaks:
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/countries_sunset_flickr_chi_usercount_HeadTailBreaks.html">Flickr Sunset Chi</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/countries_sunrise_flickr_chi_usercount_HeadTailBreaks.html">Flickr Sunrise Chi</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/countries_sunset_instagram_chi_usercount_HeadTailBreaks.html">Instagram Sunset Chi</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/countries_sunrise_instagram_chi_usercount_HeadTailBreaks.html">Instagram Sunrise Chi</a></li>
</ul>
</li>
<li>Natural Breaks:
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/countries_sunset_flickr_chi_usercount_NaturalBreaks.html">Flickr Sunset Chi</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/countries_sunrise_flickr_chi_usercount_NaturalBreaks.html">Flickr Sunrise Chi</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/countries_sunset_instagram_chi_usercount_NaturalBreaks.html">Instagram Sunset Chi</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/countries_sunrise_instagram_chi_usercount_NaturalBreaks.html">Instagram Sunrise Chi</a></li>
</ul>
</li>
<li>Quantiles:
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/countries_sunset_flickr_chi_usercount_quantiles.html">Flickr Sunset Chi</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/countries_sunrise_flickr_chi_usercount_quantiles.html">Flickr Sunrise Chi</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/countries_sunset_instagram_chi_usercount_quantiles.html">Instagram Sunset Chi</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/countries_sunrise_instagram_chi_usercount_quantiles.html">Instagram Sunrise Chi</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><strong><a href="https://ad.vgiscience.org/sunset-sunrise-paper/06_semantics.html">06_semantics.html</a></strong>
<ul>
<li>Results: Visualization of cosine similarity and tf-idf values for countries</li>
<li>Output: <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunset_cosine_flickr_UGA.html">Map for Uganda (UGA)</a></li>
<li>Output: <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunset_cosine_flickr_IDN.html">Map for Uganda (IDN)</a></li>
<li>Output: <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunset_cosine_flickr_ZMB.html">Map for Uganda (ZMB)</a></li>
</ul>
</li>
<li><strong><a href="https://ad.vgiscience.org/sunset-sunrise-paper/07_time.html">07_time.html</a></strong>
<ul>
<li>Temporal aggregate data per month, for Flickr and Instagram</li>
</ul>
</li>
<li><strong><a href="https://ad.vgiscience.org/sunset-sunrise-paper/08_relationships.html">08_relationships.html</a></strong>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/compare_relationships.html">Relationship plots for comparison</a>:
<ul>
<li>Flickr Sunrise + Flickr Sunset</li>
<li>Instagram Sunrise + Instagram Sunset (Flickr expected)</li>
<li>Sunrise Flickr + Sunrise Instagram</li>
<li>Sunset Flickr + Sunset Instagram</li>
<li>and a test with Instagram Sunset+Sunrise as expected</li>
</ul>
</li>
<li>For comparison, we also created these relationship plots
for the chi values for each country: <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/compare_relationships_chi.html">Relationship chi plots for comparison</a>.
Albeit interesting, there was not enough space in the paper to discuss these results.</li>
</ul>
</li>
<li><strong><a href="https://ad.vgiscience.org/sunset-sunrise-paper/09_statistics.html">09_statistics.html</a></strong>
<ul>
<li>Total aggregates, Summary Statistics</li>
</ul>
</li>
</ul>
<p>Among other outputs, there are two core result maps produced in notebooks:</p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_flickr_usercount.html">Sunset-Sunrise Chi-Map for Flickr</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/sunset-sunrise/sunsetsunrise_chimap_instagram_randomexpected_usercount.html">Sunset-Sunrise Chi-Map for Instagram</a></li>
</ul>
<h3 id="convert-to-ipynb-files">Convert to ipynb files</h3>
<p>First, either download release files or convert the markdown files to working jupyter notebooks.</p>
<p>To convert jupytext markdown files to ipynb-format:</p>
<p>If you&rsquo;re using the <a href="https://gitlab.vgiscience.de/lbsn/tools/jupyterlab">docker image</a>, open a terminal inside jupyter and follow these commands:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">bash
</span></span><span class="line"><span class="cl">conda activate jupyter_env <span class="o">&amp;&amp;</span> <span class="nb">cd</span> /home/jovyan/work/
</span></span></code></pre></div><p>Afterwards, re-create the <code>.ipynb</code> notebook(s) with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">mkdir notebooks
</span></span><span class="line"><span class="cl">jupytext --set-formats notebooks///ipynb,md///md,py///_/.py --sync md/01_grid_agg.md
</span></span><span class="line"><span class="cl">jupytext --set-formats notebooks///ipynb,md///md,py///_/.py --sync md/02_visualization.md
</span></span><span class="line"><span class="cl">jupytext --set-formats notebooks///ipynb,md///md,py///_/.py --sync md/03_chimaps.md
</span></span><span class="line"><span class="cl">jupytext --set-formats notebooks///ipynb,md///md,py///_/.py --sync md/04_combine.md
</span></span></code></pre></div>]]></content></item><item><title>From sunrise to sunset - Demo for benchmark data use</title><link>https://links.alexanderdunkel.com/posts/2023-02-22-sunsetsunrise-benchmark/</link><pubDate>Wed, 22 Feb 2023 14:10:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-02-22-sunsetsunrise-benchmark/</guid><description>&lt;p&gt;
&lt;img src="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/sunsetsunrise-example-benchmarkdata/-/raw/main/resources/hll_intersection_deusca.png?raw=true" alt="Example map"&gt;
&lt;/p&gt;
&lt;p&gt;In the paper by Dunkel et al. (2023a), we shared benchmark data as Supporting Information in
a repository (Dunkel et al 2023b). The data was abstracted using HyperLogLog and can be (limitedly)
used beyond the original application described in the article.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Dunkel, A., Hartmann, M. C., Hauthal, E., Burghardt, Dirk, &amp;amp; Purves, R. S. (2023a).
From sunrise to sunset: Exploring landscape preference through global reactions to
ephemeral events captured in georeferenced social media. PLoS ONE, 17(1). &lt;a href="https://doi.org/10.1371/journal.pone.0280423"&gt;DOI&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;</description><content type="html"><![CDATA[<p>
  <img src="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/sunsetsunrise-example-benchmarkdata/-/raw/main/resources/hll_intersection_deusca.png?raw=true" alt="Example map">
</p>
<p>In the paper by Dunkel et al. (2023a), we shared benchmark data as Supporting Information in
a repository (Dunkel et al 2023b). The data was abstracted using HyperLogLog and can be (limitedly)
used beyond the original application described in the article.</p>
<blockquote>
<p>Dunkel, A., Hartmann, M. C., Hauthal, E., Burghardt, Dirk, &amp; Purves, R. S. (2023a).
From sunrise to sunset: Exploring landscape preference through global reactions to
ephemeral events captured in georeferenced social media. PLoS ONE, 17(1). <a href="https://doi.org/10.1371/journal.pone.0280423">DOI</a></p>
</blockquote>
<blockquote>
<p>Dunkel, A., Hartmann, M. C., Hauthal, E., Burghardt, Dirk, &amp; Purves, R. S. (2023b).
Supplementary materials for the publication “From sunrise to sunset:
Exploring landscape preference through global reactions to ephemeral
events captured in georeferenced social media” [Data set]. OpARA. <a href="https://doi.org/10.25532/OPARA-200">DOI</a></p>
</blockquote>
<p><a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/sunsetsunrise-example-benchmarkdata">The repository</a> contains a short Jupyter notebook that illustrates how the shared HyperLogLog data can be loaded and used.</p>
<ul>
<li>see the folder <a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/sunsetsunrise-example-benchmarkdata/-/tree/main/notebooks">notebooks/</a> for the <code>ipynb</code> notebook</li>
<li>the notebook converted to HTML can be found <a href="https://kartographie.geo.tu-dresden.de/ad/sunsetsunrise-demo/html/intro.html">here</a>.</li>
</ul>
]]></content></item><item><title>Joul Outreach Video</title><link>https://links.alexanderdunkel.com/posts/2023-01-25-joul-video/</link><pubDate>Wed, 25 Jan 2023 12:14:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-01-25-joul-video/</guid><description>&lt;p&gt;Together with &lt;a href="https://joul.de/"&gt;Joul&lt;/a&gt; we created this film about our work:&lt;/p&gt;
&lt;p&gt;Watch the video &lt;a href="https://www.vgiscience.org/2022/12/21/visualizing-opinions-emotions-and-perceptions-in-social-media-data-while-preserving-user-s-privacy.html"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;My colleagues Eva and Marc, and I, explain the background and motivation behind our DFG funded project EvaVGI.&lt;/p&gt;
&lt;p&gt;I want to thank the Joul team, who did a terrific job, especially with us camera-inexperienced scientists!&lt;/p&gt;
&lt;p&gt;See a summary &lt;a href="https://tu-dresden.de/bu/umwelt/geo/ifk/das-institut/news/vgi-video"&gt;here&lt;/a&gt; and &lt;a href="https://www.vgiscience.org/2022/12/21/visualizing-opinions-emotions-and-perceptions-in-social-media-data-while-preserving-user-s-privacy.html"&gt;here&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p>Together with <a href="https://joul.de/">Joul</a> we created this film about our work:</p>
<p>Watch the video <a href="https://www.vgiscience.org/2022/12/21/visualizing-opinions-emotions-and-perceptions-in-social-media-data-while-preserving-user-s-privacy.html">here</a>.</p>
<p>My colleagues Eva and Marc, and I, explain the background and motivation behind our DFG funded project EvaVGI.</p>
<p>I want to thank the Joul team, who did a terrific job, especially with us camera-inexperienced scientists!</p>
<p>See a summary <a href="https://tu-dresden.de/bu/umwelt/geo/ifk/das-institut/news/vgi-video">here</a> and <a href="https://www.vgiscience.org/2022/12/21/visualizing-opinions-emotions-and-perceptions-in-social-media-data-while-preserving-user-s-privacy.html">here</a></p>
]]></content></item><item><title>Signing commit messages with GPG in Linux</title><link>https://links.alexanderdunkel.com/posts/2023-01-19-gpg-linux/</link><pubDate>Thu, 19 Jan 2023 12:03:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-01-19-gpg-linux/</guid><description>&lt;p&gt;Signing git messages with GPG keys is important, otherwise someone may easily
spoof your commit messages on (e.g.) Github (&lt;a href="https://blog.gruntwork.io/how-to-spoof-any-user-on-github-and-what-to-do-to-prevent-it-e237e95b8deb"&gt;^1&lt;/a&gt;). There are different ways
to sign commit messages such as with GPG, SSH, or S/MIME.&lt;/p&gt;
&lt;p&gt;I prefer to keep my SSH-Keys I use for signing into accounts separate from my
keys I use to sign commit messages. Therefore, for signing commit
messages, I use explicit GPG keys. I have two GPG keys, one for my private mail and
one for my work mail. For both, I added the public key parts to Gitlab(s) and Github,
so I can commit from both private and work laptops.&lt;/p&gt;</description><content type="html"><![CDATA[<p>Signing git messages with GPG keys is important, otherwise someone may easily
spoof your commit messages on (e.g.) Github (<a href="https://blog.gruntwork.io/how-to-spoof-any-user-on-github-and-what-to-do-to-prevent-it-e237e95b8deb">^1</a>). There are different ways
to sign commit messages such as with GPG, SSH, or S/MIME.</p>
<p>I prefer to keep my SSH-Keys I use for signing into accounts separate from my
keys I use to sign commit messages. Therefore, for signing commit
messages, I use explicit GPG keys. I have two GPG keys, one for my private mail and
one for my work mail. For both, I added the public key parts to Gitlab(s) and Github,
so I can commit from both private and work laptops.</p>
<p>Some of these steps are not as obvious, which is why I wrote down the process here.</p>
<h2 id="prerequises">Prerequises</h2>
<p>In Linux or your Windows Subystem for Linux (WSL), install the dependencies:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt install gnupg2
</span></span><span class="line"><span class="cl">sudo apt-get install -y pinentry-curses
</span></span></code></pre></div><blockquote>
<p><strong>pinentry-curses</strong>  is  a  program  that  allows for secure entry of PINs or pass phrases.  That
means it tries to take care that the  entered  information  is  not  swapped  to  disk  or
temporarily  stored anywhere.</p>
</blockquote>
<p>Create <code>~/.gnupg/gpg-agent.conf</code>.</p>
<pre tabindex="0"><code>mkdir -p ~/.gnupg/
nano ~/.gnupg/gpg-agent.conf
</code></pre><p>.. and add:</p>
<pre tabindex="0"><code>pinentry-program /usr/bin/pinentry-curses
</code></pre><p>Add the following line to your <code>.bashrc</code>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">GPG_TTY</span><span class="o">=</span><span class="k">$(</span>tty<span class="k">)</span>
</span></span></code></pre></div><p>e.g.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nano ~/.bashrc
</span></span><span class="line"><span class="cl"><span class="c1"># CTRL+O</span>
</span></span><span class="line"><span class="cl"><span class="nb">source</span> ~/.bashrc
</span></span></code></pre></div><p>Test:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;test&#34;</span> <span class="p">|</span> gpg2 --clearsign
</span></span></code></pre></div><h2 id="create-gpg-key">Create GPG key</h2>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gpg --full-generate-key
</span></span></code></pre></div><ul>
<li>Key type:
<ul>
<li>either RSA and RSA, an asymmetric key pair for encryption and decryption</li>
<li>or a more modern and lean Elliptic Curve key</li>
</ul>
</li>
<li>Bit length: 4096 for the highest amount of entropy.</li>
<li>Expiration date: <code>1y</code>. Entirely up to you and your use case, you only want to
prove your identity for Git, not guard state-sponsored secrets.</li>
</ul>
<p>Export the public part:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gpg --armor --export mail@yourmail.com &gt; /tmp/gpgkey.pub
</span></span><span class="line"><span class="cl"><span class="c1"># better use the exact id:</span>
</span></span><span class="line"><span class="cl">gpg --armor <span class="se">\
</span></span></span><span class="line"><span class="cl">    --export OU34752JOWOI278732JDJJ732407z9874328 &gt; /tmp/gpgkey.pub
</span></span></code></pre></div><p>To backup your private key:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gpg -o /tmp/private.gpg <span class="se">\
</span></span></span><span class="line"><span class="cl">    --export-options backup <span class="se">\
</span></span></span><span class="line"><span class="cl">    --export-secret-keys OU34752JOWOI278732JDJJ732407z9874328
</span></span></code></pre></div><p>To later restore your private key from backup (<a href="https://www.jwillikers.com/backup-and-restore-a-gpg-key">^2</a>):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gpg --import-options restore --import private.gpg
</span></span><span class="line"><span class="cl">gpg --edit-key mail@yourmail.com
</span></span><span class="line"><span class="cl">&gt; trust
</span></span><span class="line"><span class="cl">&gt; <span class="m">5</span>
</span></span><span class="line"><span class="cl">&gt; Y
</span></span><span class="line"><span class="cl">&gt; quit
</span></span></code></pre></div><h2 id="test">Test</h2>
<p>Enable signing of commit messages globally for <code>git</code>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git config --global gpg.program gpg2
</span></span><span class="line"><span class="cl">git config --global commit.gpgsign <span class="nb">true</span>
</span></span><span class="line"><span class="cl">git config --global alias.logs <span class="s2">&#34;log --show-signature&#34;</span>
</span></span><span class="line"><span class="cl">git config --global user.signingkey OU34752JOWOI278732JDJJ732407z9874328
</span></span></code></pre></div><p>Test:</p>
<pre tabindex="0"><code>cd /tmp/
mkdir test &amp;&amp; cd test
echo &#34;Some content&#34; &gt;&gt; example.txt
git init
git add example.txt
git commit -m &#34;test&#34;
git logs
</code></pre><p>Cleanup:</p>
<pre tabindex="0"><code>cd ..
rm -rf test
</code></pre><h2 id="add-to-gitlab">Add to Gitlab</h2>
<pre tabindex="0"><code>gpg --armor --export OU34752JOWOI278732JDJJ732407z9874328
</code></pre><p>Go to your Gitlab <a href="https://gitlab.yourgitlab.com/-/profile/gpg_keys">https://gitlab.yourgitlab.com/-/profile/gpg_keys</a> and add the public key part of your GPG key.</p>
<h2 id="extending-gpg-keys">Extending GPG keys</h2>
<p>Check expiration:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gpg -K
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">&gt; /home/user/.gnupg/pubring.kbx
</span></span><span class="line"><span class="cl">&gt; -----------------------------
</span></span><span class="line"><span class="cl">&gt; sec   rsa4096 2022-01-13 <span class="o">[</span>SC<span class="o">]</span> <span class="o">[</span>expires: 2023-01-13<span class="o">]</span>
</span></span><span class="line"><span class="cl">&gt;       ...
</span></span><span class="line"><span class="cl">&gt; uid           <span class="o">[</span>ultimate<span class="o">]</span> Your Name &lt;mail@yourmail.com&gt;
</span></span><span class="line"><span class="cl">&gt; ssb   rsa4096 2022-01-13 <span class="o">[</span>E<span class="o">]</span> <span class="o">[</span>expires: 2023-01-13<span class="o">]</span>
</span></span></code></pre></div><p>Run this command to list the private GPG key you just created, replacing <EMAIL> with the email address for your key:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gpg --list-secret-keys <span class="se">\
</span></span></span><span class="line"><span class="cl">    --keyid-format LONG mail@yourmail.com
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">&gt; sec   rsa4096/IJAO23IDSALK324DASD 2022-01-13 <span class="o">[</span>SC<span class="o">]</span> <span class="o">[</span>expires: 2023-01-13<span class="o">]</span>
</span></span><span class="line"><span class="cl">&gt;       OU34752JOWOI278732JDJJ732407z9874328
</span></span><span class="line"><span class="cl">&gt; uid                 <span class="o">[</span>ultimate<span class="o">]</span> Your Name &lt;mail@yourmail.com&gt;
</span></span><span class="line"><span class="cl">&gt; ssb   rsa4096/9LD7324JSAL435 2022-01-13 <span class="o">[</span>E<span class="o">]</span> <span class="o">[</span>expires: 2023-01-13<span class="o">]</span>
</span></span></code></pre></div><p>First, note that there&rsquo;s a short form for the ID (<code>IJAO23IDSALK324DASD </code>)
and a long form (<code>OU34752JOWOI278732JDJJ732407z9874328</code>). You can use both
forms to select keys.</p>
<p>There may be multiple subkeys available:</p>
<ul>
<li><code>E</code> means the key is used for used for encryption</li>
<li><code>SC</code> means the key is used for Signing/Pubkey</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gpg --edit-key mail@yourmail.com
</span></span><span class="line"><span class="cl">gpg --edit-key IJAO23IDSALK324DASD
</span></span></code></pre></div><blockquote>
<p>Now you can set the expiration for the selected key:</p>
</blockquote>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gpg&gt; expire
</span></span><span class="line"><span class="cl"><span class="o">(</span>follow prompts<span class="o">)</span>
</span></span><span class="line"><span class="cl">gpg&gt; save
</span></span></code></pre></div><blockquote>
<p>You have to make a decision about extending validity of vs. replacing the subkey(s).
Replacing them gives you limited forward security (limited to rather large time frames).
If that is important to you then you should have (separate) subkeys for both encryption
and signing (the default is one for encryption only).</p>
</blockquote>
<blockquote>
<p>Private keys never expire. Only public keys do. Otherwise, the world would never
notice the expiration as (hopefully) the world never sees the private keys.</p>
</blockquote>
<p>Also, to expire (all) subkeys:</p>
<ul>
<li>instead of <code>1</code>, select <code>key 1</code></li>
<li><code>*</code> will be shown in front of &ldquo;ssb&rdquo;</li>
</ul>
<pre tabindex="0"><code>key 1
...
save
</code></pre><pre tabindex="0"><code>&gt;sec  rsa4096/IJAO23IDSALK324DASD
&gt;     created: 2022-01-13  expires: 2024-01-03  usage: SC
&gt;     trust: ultimate      validity: ultimate
&gt;ssb* rsa4096/9LD7324JSAL435
&gt;     created: 2022-01-13  expires: 2023-01-13  usage: E
</code></pre><p>Update git, gitlab:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git config --global user.signingkey IJAO23IDSALK324DASD
</span></span></code></pre></div><p>Copy new public key, and update in gitlab:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gpg --armor --export IJAO23IDSALK324DASD
</span></span></code></pre></div><h2 id="increase-password-timeout">Increase password timeout</h2>
<p>The password timeout was too short for me. I want to unlock my GPG Key once per
day, meaning I would need to increase the timeout to 8 hours.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nano ~/.gnupg/gpg-agent.conf
</span></span></code></pre></div><p>Add:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># increase gpg timout for password to 8 hours</span>
</span></span><span class="line"><span class="cl">default-cache-ttl <span class="m">28800</span>
</span></span><span class="line"><span class="cl">max-cache-ttl <span class="m">28800</span>
</span></span></code></pre></div><p>Restart:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gpgconf --kill gpg-agent
</span></span><span class="line"><span class="cl">gpg-agent --daemon
</span></span></code></pre></div><h2 id="public-key-exchange">Public key exchange</h2>
<p>In order to receive keys from other people, keyservers can be used.</p>
<p>For example, in case your public key was published on <a href="https://keys.openpgp.org/">keys.openpgp.org</a>, someone else may receive
it to their local store by:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gpg --keyserver keys.openpgp.org --recv-keys IJAO23IDSALK324DASD
</span></span></code></pre></div>]]></content></item><item><title>Slides: Tag Maps Workshop 2023</title><link>https://links.alexanderdunkel.com/posts/2023-01-16-tagmaps-2023/</link><pubDate>Mon, 16 Jan 2023 12:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-01-16-tagmaps-2023/</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="https://kartographie.geo.tu-dresden.de/ad/tagmapsworkshop_tud_2023/"&gt;Workshop Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;img src="https://kartographie.geo.tu-dresden.de/ad/tagmapsworkshop_tud_2023/images/01_emojotagmap_campus.png" alt=""&gt;
&lt;/p&gt;</description><content type="html"><![CDATA[<ul>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/tagmapsworkshop_tud_2023/">Workshop Slides</a></li>
</ul>
<p>
  <img src="https://kartographie.geo.tu-dresden.de/ad/tagmapsworkshop_tud_2023/images/01_emojotagmap_campus.png" alt="">
</p>
]]></content></item><item><title>Jupyter Lab Workshop: Social Media, Data Analysis, &amp; Cartograpy, WS 2022/23</title><link>https://links.alexanderdunkel.com/posts/2023-01-09-jupyter-workshop/</link><pubDate>Mon, 09 Jan 2023 12:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-01-09-jupyter-workshop/</guid><description>&lt;h2 id="link-to-repository"&gt;Link to repository&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/python_datascience_2022"&gt;https://gitlab.hrz.tu-chemnitz.de/tud-ifk/python_datascience_2022&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="html-versions-of-notebooks"&gt;HTML Versions of Notebooks&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://kartographie.geo.tu-dresden.de/python_datascience_course/01_raw_intro.html"&gt;01_raw_intro.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://kartographie.geo.tu-dresden.de/python_datascience_course/02_hll_intro.html"&gt;02_hll_intro.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://kartographie.geo.tu-dresden.de/python_datascience_course/03_tagmaps.html"&gt;03_tagmaps.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://kartographie.geo.tu-dresden.de/python_datascience_course/04_topic_classification.html"&gt;04_topic_classification.html&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><content type="html"><![CDATA[<h2 id="link-to-repository">Link to repository</h2>
<p><a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/python_datascience_2022">https://gitlab.hrz.tu-chemnitz.de/tud-ifk/python_datascience_2022</a></p>
<h2 id="html-versions-of-notebooks">HTML Versions of Notebooks</h2>
<ol>
<li><a href="https://kartographie.geo.tu-dresden.de/python_datascience_course/01_raw_intro.html">01_raw_intro.html</a></li>
<li><a href="https://kartographie.geo.tu-dresden.de/python_datascience_course/02_hll_intro.html">02_hll_intro.html</a></li>
<li><a href="https://kartographie.geo.tu-dresden.de/python_datascience_course/03_tagmaps.html">03_tagmaps.html</a></li>
<li><a href="https://kartographie.geo.tu-dresden.de/python_datascience_course/04_topic_classification.html">04_topic_classification.html</a></li>
</ol>
]]></content></item><item><title>Python data science 101, Slides</title><link>https://links.alexanderdunkel.com/posts/2023-01-05-python-lecture/</link><pubDate>Thu, 05 Jan 2023 08:20:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2023-01-05-python-lecture/</guid><description>&lt;p&gt;This was a slight update for the 2022/23 lecture on &amp;ldquo;Python data science 101&amp;rdquo;.
Our aim was to have a more practical introduction to Python visual analytics and introduce
some best practices, before we head into the workshop weeks.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Title: Python data science 101 for Social Media Cartography (and beyond)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Slides (HTML): &lt;a href="https://kartographie.geo.tu-dresden.de/ad/python_datascience_2022/"&gt;https://kartographie.geo.tu-dresden.de/ad/python_datascience_2022/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Repository: &lt;a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/python_datascience_2022_slides"&gt;gitlab.hrz.tu-chemnitz.de/tud-ifk/python_datascience_2022_slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This semester, I revised the slides for better code legibility. RevealJS 4.4.0
allows to use new animations (e.g. see &lt;a href="https://kartographie.geo.tu-dresden.de/ad/python_datascience_2022/#/61"&gt;slide 61-63&lt;/a&gt;), which I used to better explain concepts, such as code formatting conventions. The code line highlighting is also
good to break content down into individual pieces (e.g. see &lt;a href="https://kartographie.geo.tu-dresden.de/ad/python_datascience_2022/#/57/0/0"&gt;slide 57-61&lt;/a&gt;).&lt;/p&gt;</description><content type="html"><![CDATA[<p>This was a slight update for the 2022/23 lecture on &ldquo;Python data science 101&rdquo;.
Our aim was to have a more practical introduction to Python visual analytics and introduce
some best practices, before we head into the workshop weeks.</p>
<blockquote>
<p>Title: Python data science 101 for Social Media Cartography (and beyond)</p>
</blockquote>
<ul>
<li>Slides (HTML): <a href="https://kartographie.geo.tu-dresden.de/ad/python_datascience_2022/">https://kartographie.geo.tu-dresden.de/ad/python_datascience_2022/</a></li>
<li>Repository: <a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/python_datascience_2022_slides">gitlab.hrz.tu-chemnitz.de/tud-ifk/python_datascience_2022_slides</a></li>
</ul>
<p>This semester, I revised the slides for better code legibility. RevealJS 4.4.0
allows to use new animations (e.g. see <a href="https://kartographie.geo.tu-dresden.de/ad/python_datascience_2022/#/61">slide 61-63</a>), which I used to better explain concepts, such as code formatting conventions. The code line highlighting is also
good to break content down into individual pieces (e.g. see <a href="https://kartographie.geo.tu-dresden.de/ad/python_datascience_2022/#/57/0/0">slide 57-61</a>).</p>
<p>We also explored how <a href="https://chat.openai.com/">ChatGPT</a> can be used to program.</p>
<p>The question was:</p>
<blockquote>
<p>Write a really short python method to download a zip file from an URL and unzip it to a folder.</p>
</blockquote>
<p>This is the code that was returned:</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">urllib.request</span>
</span></span><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">zipfile</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">download_and_unzip</span><span class="p">(</span><span class="n">url</span><span class="p">,</span> <span class="n">target_dir</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">  <span class="c1"># Download the zip file</span>
</span></span><span class="line"><span class="cl">  <span class="n">zip_file</span><span class="p">,</span> <span class="n">headers</span> <span class="o">=</span> <span class="n">urllib</span><span class="o">.</span><span class="n">request</span><span class="o">.</span><span class="n">urlretrieve</span><span class="p">(</span><span class="n">url</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="c1"># Extract the contents of the zip file to the target directory</span>
</span></span><span class="line"><span class="cl">  <span class="k">with</span> <span class="n">zipfile</span><span class="o">.</span><span class="n">ZipFile</span><span class="p">(</span><span class="n">zip_file</span><span class="p">,</span> <span class="s1">&#39;r&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">zf</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">zf</span><span class="o">.</span><span class="n">extractall</span><span class="p">(</span><span class="n">target_dir</span><span class="p">)</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>Pretty good.</p>
<p>Compare this to my code on <a href="https://kartographie.geo.tu-dresden.de/ad/python_datascience_2022/#/35/0/0">slide 35</a>:</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">requests</span><span class="o">,</span> <span class="nn">zipfile</span><span class="o">,</span> <span class="nn">io</span>
</span></span><span class="line"><span class="cl"><span class="n">r</span> <span class="o">=</span> <span class="n">requests</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="sa">f</span><span class="s1">&#39;</span><span class="si">{</span><span class="n">URI</span><span class="si">}{</span><span class="n">FILENAME</span><span class="si">}</span><span class="s1">&#39;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">z</span> <span class="o">=</span> <span class="n">zipfile</span><span class="o">.</span><span class="n">ZipFile</span><span class="p">(</span><span class="n">io</span><span class="o">.</span><span class="n">BytesIO</span><span class="p">(</span><span class="n">r</span><span class="o">.</span><span class="n">content</span><span class="p">))</span>
</span></span><span class="line"><span class="cl"><span class="n">z</span><span class="o">.</span><span class="n">extractall</span><span class="p">(</span><span class="n">DATA_PATH</span><span class="p">)</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>Instead of the native <code>requests</code> library, ChatGPT suggests to use <code>urllib.request</code>
(which requests uses under the hood, too). However, <code>requests</code> provides for a more
simple API. I tested the function from ChatGPT, and it did work out of the box. The customizations
turn out to be more complex using ChatGPT <code>urllib.request</code> instead of <code>requests</code>.
For instance, I later had to add headers/user agent to request the zip file, which is easier
in <code>requests</code>.</p>
<p>Here&rsquo;s a full code example based on the ChatGPT function</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span><span class="lnt">20
</span><span class="lnt">21
</span><span class="lnt">22
</span><span class="lnt">23
</span><span class="lnt">24
</span><span class="lnt">25
</span><span class="lnt">26
</span><span class="lnt">27
</span><span class="lnt">28
</span><span class="lnt">29
</span><span class="lnt">30
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">urllib.request</span>
</span></span><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">zipfile</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">pathlib</span> <span class="kn">import</span> <span class="n">Path</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">download_and_unzip</span><span class="p">(</span><span class="n">url</span><span class="p">,</span> <span class="n">target_dir</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="n">opener</span> <span class="o">=</span> <span class="n">urllib</span><span class="o">.</span><span class="n">request</span><span class="o">.</span><span class="n">build_opener</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">    <span class="n">opener</span><span class="o">.</span><span class="n">addheaders</span> <span class="o">=</span> <span class="p">[</span>
</span></span><span class="line"><span class="cl">        <span class="p">(</span><span class="s1">&#39;User-agent&#39;</span><span class="p">,</span> 
</span></span><span class="line"><span class="cl">         <span class="s1">&#39;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) &#39;</span>
</span></span><span class="line"><span class="cl">         <span class="s1">&#39;AppleWebKit/537.36 (KHTML, like Gecko) &#39;</span>
</span></span><span class="line"><span class="cl">         <span class="s1">&#39;Chrome/102.0.0.0 Safari/537.36&#39;</span><span class="p">)]</span>
</span></span><span class="line"><span class="cl">    <span class="n">urllib</span><span class="o">.</span><span class="n">request</span><span class="o">.</span><span class="n">install_opener</span><span class="p">(</span><span class="n">opener</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="c1"># Download the zip file</span>
</span></span><span class="line"><span class="cl">    <span class="n">zip_file</span><span class="p">,</span> <span class="n">headers</span> <span class="o">=</span> <span class="n">urllib</span><span class="o">.</span><span class="n">request</span><span class="o">.</span><span class="n">urlretrieve</span><span class="p">(</span><span class="n">url</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    
</span></span><span class="line"><span class="cl">    <span class="c1"># Extract the contents of the zip file to the target directory</span>
</span></span><span class="line"><span class="cl">    <span class="k">with</span> <span class="n">zipfile</span><span class="o">.</span><span class="n">ZipFile</span><span class="p">(</span><span class="n">zip_file</span><span class="p">,</span> <span class="s1">&#39;r&#39;</span><span class="p">)</span> <span class="k">as</span> <span class="n">zf</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">      <span class="n">zf</span><span class="o">.</span><span class="n">extractall</span><span class="p">(</span><span class="n">target_dir</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">      
</span></span><span class="line"><span class="cl"><span class="n">DATA_PATH</span> <span class="o">=</span> <span class="n">Path</span><span class="o">.</span><span class="n">cwd</span><span class="p">()</span> <span class="o">/</span> <span class="s2">&#34;out&#34;</span>
</span></span><span class="line"><span class="cl"><span class="n">URI</span> <span class="o">=</span> <span class="s2">&#34;https://www.naturalearthdata.com/http//www.&#34;</span> \
</span></span><span class="line"><span class="cl">      <span class="s2">&#34;naturalearthdata.com/download/50m/cultural/&#34;</span>
</span></span><span class="line"><span class="cl"><span class="n">FILENAME</span> <span class="o">=</span> <span class="s2">&#34;ne_50m_admin_0_map_subunits.zip&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s1">&#39;</span><span class="si">{</span><span class="n">URI</span><span class="si">}{</span><span class="n">FILENAME</span><span class="si">}</span><span class="s1">&#39;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="o">&gt;</span> <span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">www</span><span class="o">.</span><span class="n">naturalearthdata</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">http</span><span class="o">//</span><span class="n">www</span><span class="o">.</span><span class="n">naturalearthdata</span><span class="o">.</span><span class="n">com</span><span class="o">/</span> \
</span></span><span class="line"><span class="cl"><span class="o">&gt;</span> <span class="n">download</span><span class="o">/</span><span class="mi">50</span><span class="n">m</span><span class="o">/</span><span class="n">cultural</span><span class="o">/</span><span class="n">ne_50m_admin_0_map_subunits</span><span class="o">.</span><span class="n">zip</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">download_and_unzip</span><span class="p">(</span><span class="sa">f</span><span class="s1">&#39;</span><span class="si">{</span><span class="n">URI</span><span class="si">}{</span><span class="n">FILENAME</span><span class="si">}</span><span class="s1">&#39;</span><span class="p">,</span> <span class="n">DATA_PATH</span><span class="p">)</span>
</span></span></code></pre></td></tr></table>
</div>
</div>]]></content></item><item><title>GPT3-Summary for text via API</title><link>https://links.alexanderdunkel.com/posts/2022-12-22-chatgpt-research-summary/</link><pubDate>Thu, 22 Dec 2022 13:01:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-12-22-chatgpt-research-summary/</guid><description>&lt;p&gt;ChatGPT (GPT-3) can be used to summarize text.
In this notebook, I am testing GPT-3 for summarizing research papers.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Notebook (HTML): &lt;a href="https://kartographie.geo.tu-dresden.de/ad/2022-12-22_OpenAI_Summary/html/gpt3-summary.html"&gt;https://kartographie.geo.tu-dresden.de/ad/2022-12-22_OpenAI_Summary/html/gpt3-summary.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Repository: &lt;a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/chatgpt3-summarize"&gt;gitlab.hrz.tu-chemnitz.de/tud-ifk/chatgpt3-summarize&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>ChatGPT (GPT-3) can be used to summarize text.
In this notebook, I am testing GPT-3 for summarizing research papers.</p>
<ul>
<li>Notebook (HTML): <a href="https://kartographie.geo.tu-dresden.de/ad/2022-12-22_OpenAI_Summary/html/gpt3-summary.html">https://kartographie.geo.tu-dresden.de/ad/2022-12-22_OpenAI_Summary/html/gpt3-summary.html</a></li>
<li>Repository: <a href="https://gitlab.hrz.tu-chemnitz.de/tud-ifk/chatgpt3-summarize">gitlab.hrz.tu-chemnitz.de/tud-ifk/chatgpt3-summarize</a></li>
</ul>
]]></content></item><item><title>Analysis and Visualization of Geo-Social Media, Slides</title><link>https://links.alexanderdunkel.com/posts/2022-12-15-facets-lecture/</link><pubDate>Thu, 15 Dec 2022 08:20:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-12-15-facets-lecture/</guid><description>&lt;p&gt;This year&amp;rsquo;s &amp;ldquo;4 Facets&amp;rdquo; Lecture was significantly revised,
I tried to include a broader, more systematic overview of
the field, with less graphics from my own research, but more
links to other researcher&amp;rsquo;s results. Also some
more detailed explanations are included for methods such as
Cosine Similarity, Geohash, or Binary Search. Overall,
the lecture should give a good overview of important components
used in the analysis and visualization of geo-social media.&lt;/p&gt;</description><content type="html"><![CDATA[<p>This year&rsquo;s &ldquo;4 Facets&rdquo; Lecture was significantly revised,
I tried to include a broader, more systematic overview of
the field, with less graphics from my own research, but more
links to other researcher&rsquo;s results. Also some
more detailed explanations are included for methods such as
Cosine Similarity, Geohash, or Binary Search. Overall,
the lecture should give a good overview of important components
used in the analysis and visualization of geo-social media.</p>
<ul>
<li><a href="https://kartographie.geo.tu-dresden.de/ad/lbsm-facets-lecture-2022/">Link to Slides</a></li>
</ul>
]]></content></item><item><title>VGI and Smart Cities Workshop at SCCON &amp; Poster</title><link>https://links.alexanderdunkel.com/posts/2022-10-18-sccon/</link><pubDate>Tue, 18 Oct 2022 09:30:09 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-10-18-sccon/</guid><description>&lt;style&gt;
.square {
float:left;
position: relative;
width: 28%;
padding-bottom : 39.6%; /* = width for a 1:x aspect ratio */
margin:2.66%;
background-color:#FFFFFF;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.square:hover {
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2), 0 6px 40px 0 rgba(0, 0, 0, 0.19);
transition: box-shadow .3s;
}
.content {
position:relative;
height:100%; /* = 100% - 2*5% padding */
width:100%; /* = 100% - 2*5% padding */
}
/* For responsive images */
.content {
width:auto;
height:auto;
max-height:100%;
max-width:100%;
}
/* For responsive images as background */
.bg {
background-position:center center;
background-repeat:no-repeat;
background-size:cover;
}
.title {
position:absolute;
bottom:-45px;
}
&lt;/style&gt;
&lt;p&gt;I created a poster and a &lt;a href="https://www.vgiscience.org/2022/10/20/sccon.html"&gt;website&lt;/a&gt;
for the VGIscience Meeting at the Smart Country Convention (SCCON) in Berlin.&lt;/p&gt;</description><content type="html"><![CDATA[<style>
        
.square {
    float:left;
    position: relative;
    width: 28%;
    padding-bottom : 39.6%; /* = width for a 1:x aspect ratio */
    margin:2.66%;
    background-color:#FFFFFF;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.square:hover {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2), 0 6px 40px 0 rgba(0, 0, 0, 0.19);
  transition: box-shadow .3s;
}

.content {
    position:relative;
    height:100%; /* = 100% - 2*5% padding */
    width:100%; /* = 100% - 2*5% padding */
}

/*  For responsive images */

.content {
    width:auto;
    height:auto;
    max-height:100%;
    max-width:100%;
}

/*  For responsive images as background */

.bg {
    background-position:center center;
    background-repeat:no-repeat;
    background-size:cover;
}

.title {
    position:absolute;
    bottom:-45px;
}
</style>
<p>I created a poster and a <a href="https://www.vgiscience.org/2022/10/20/sccon.html">website</a>
for the VGIscience Meeting at the Smart Country Convention (SCCON) in Berlin.</p>
<div class="content">
    <a href="https://downloads.vgiscience.org/conferences/2022-10-20_SCCON_Berlin/EVA-VGI.pdf">
    <img src="EVA-VGI.webp"></a>
</div>
]]></content></item><item><title>BMBF Funding Application</title><link>https://links.alexanderdunkel.com/posts/2022-10-11-bmbf-funding/</link><pubDate>Tue, 11 Oct 2022 09:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-10-11-bmbf-funding/</guid><description>&lt;p&gt;BMBF Funding Application for &lt;code&gt;Die digitale Kommune: Interaktive, partizipative und datengetriebene Planungsprozesse unterstützen&lt;/code&gt;. The actual funding document is not available
online, at the moment.&lt;/p&gt;
&lt;p&gt;Our topic was:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;#4K: Kreative Kommunikation für Klima &amp;amp; Kultur&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/4k.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;The total grant size was €1,470,556.&lt;/p&gt;</description><content type="html"><![CDATA[<p>BMBF Funding Application for <code>Die digitale  Kommune: Interaktive,  partizipative und datengetriebene Planungsprozesse unterstützen</code>. The actual funding document is not available
online, at the moment.</p>
<p>Our topic was:</p>
<blockquote>
<p>#4K: Kreative Kommunikation für Klima &amp; Kultur</p>
</blockquote>
<p>
  <img src="/imgs/4k.png" alt="">
</p>
<p>The total grant size was €1,470,556.</p>
]]></content></item><item><title>BMBF Scoping Meeting, Slides</title><link>https://links.alexanderdunkel.com/posts/2022-09-02-bmbf-meeting/</link><pubDate>Fri, 02 Sep 2022 09:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-09-02-bmbf-meeting/</guid><description>&lt;p&gt;BMBF Scoping Meeting, 02. September 2022, Online.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Topic: &lt;strong&gt;Die digitale Kommune: Interaktive, partizipative und datengetriebene Planungsprozesse unterstützen&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/bmbf_digitale_kommune"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>BMBF Scoping Meeting, 02. September 2022, Online.</p>
<ul>
<li>Topic: <strong>Die digitale Kommune: Interaktive, partizipative und datengetriebene Planungsprozesse unterstützen</strong></li>
<li><a href="https://ad.vgiscience.org/bmbf_digitale_kommune">Slides</a></li>
</ul>
]]></content></item><item><title>Tag Maps rendering with Python and Mapnik</title><link>https://links.alexanderdunkel.com/posts/2022-07-27-tagmaps-mapnik/</link><pubDate>Wed, 27 Jul 2022 09:07:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-07-27-tagmaps-mapnik/</guid><description>&lt;p&gt;This notebook illustrates the process for rendering of tag maps shapefiles in Mapnik.&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://ad.vgiscience.org/tagmaps-mapnik-jupyter/mapnik_tagmap.png" alt="final map"&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Notebook with graphics: &lt;a href="https://ad.vgiscience.org/tagmaps-mapnik-jupyter/01_mapnik-tagmaps.html"&gt;https://ad.vgiscience.org/tagmaps-mapnik-jupyter/01_mapnik-tagmaps.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Repository: &lt;a href="https://gitlab.vgiscience.de/ad/tagmaps-mapnik-jupyter"&gt;https://gitlab.vgiscience.de/ad/tagmaps-mapnik-jupyter&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>This notebook illustrates the process for rendering of tag maps shapefiles in Mapnik.</p>
<p>
  <img src="https://ad.vgiscience.org/tagmaps-mapnik-jupyter/mapnik_tagmap.png" alt="final map">
</p>
<ul>
<li>Notebook with graphics: <a href="https://ad.vgiscience.org/tagmaps-mapnik-jupyter/01_mapnik-tagmaps.html">https://ad.vgiscience.org/tagmaps-mapnik-jupyter/01_mapnik-tagmaps.html</a></li>
<li>Repository: <a href="https://gitlab.vgiscience.de/ad/tagmaps-mapnik-jupyter">https://gitlab.vgiscience.de/ad/tagmaps-mapnik-jupyter</a></li>
</ul>
]]></content></item><item><title>VGIlinks: Joul</title><link>https://links.alexanderdunkel.com/posts/2022-07-06-vgilinks/</link><pubDate>Tue, 05 Jul 2022 08:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-07-06-vgilinks/</guid><description>&lt;p&gt;For the work with Joul &lt;a href="https://tu-dresden.de/bu/umwelt/geo/ifk/das-institut/news/dreharbeiten_joul"&gt;video shooting&lt;/a&gt;,
we created a summary page with visual project output:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://ad.vgiscience.org/vgilinks/"&gt;https://ad.vgiscience.org/vgilinks/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/vgilinks.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;The page is responsive, extendable in blocks, and &lt;a href="https://gitlab.vgiscience.de/ad/vgilinks"&gt;maintained in git through CI&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s a picture from Marc, sowing me preparing during the shooting.&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/picture.jpeg" alt="picture"&gt;
&lt;/p&gt;</description><content type="html"><![CDATA[<p>For the work with Joul <a href="https://tu-dresden.de/bu/umwelt/geo/ifk/das-institut/news/dreharbeiten_joul">video shooting</a>,
we created a summary page with visual project output:</p>
<p><a href="https://ad.vgiscience.org/vgilinks/">https://ad.vgiscience.org/vgilinks/</a></p>
<p>
  <img src="/imgs/vgilinks.png" alt="">
</p>
<p>The page is responsive, extendable in blocks, and <a href="https://gitlab.vgiscience.de/ad/vgilinks">maintained in git through CI</a>.</p>
<p>Here&rsquo;s a picture from Marc, sowing me preparing during the shooting.</p>
<p>
  <img src="/imgs/picture.jpeg" alt="picture">
</p>
]]></content></item><item><title>Tag Maps label placement animation</title><link>https://links.alexanderdunkel.com/posts/2022-07-04-label-animation/</link><pubDate>Mon, 04 Jul 2022 08:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-07-04-label-animation/</guid><description>&lt;p&gt;For the &lt;a href="https://links.alexanderdunkel.com/posts/2022-07-06-vgilinks/"&gt;video shooting with joul&lt;/a&gt;,
I wanted to create a short animation that illustrates the label placement algorithm for tag maps,
placing labels in descending order and in several classes on the map.&lt;/p&gt;
&lt;video class="content bg" style="object-fit: cover;height: 120%;width: 120%;left: -10%;top:-10%" aria-hidden="true" playsinline="" autoplay="" muted="" loop="" id="tagmapsvideo"&gt;
&lt;source src="https://wwwpub.zih.tu-dresden.de/~s7398234/map_000_4k.webm" type="video/webm"&gt;&lt;/video&gt;
&lt;p&gt;Since tag maps visualization is still only implemented in ArcMap / ArcPro, I needed to automate the
map generation.&lt;/p&gt;
&lt;p&gt;This was done with ArcPy, a python package that allows automation of the ArcMap interface.&lt;/p&gt;</description><content type="html"><![CDATA[<p>For the <a href="/posts/2022-07-06-vgilinks/">video shooting with joul</a>,
I wanted to create a short animation that illustrates the label placement algorithm for tag maps,
placing labels in descending order and in several classes on the map.</p>
<video class="content bg" style="object-fit: cover;height: 120%;width: 120%;left: -10%;top:-10%" aria-hidden="true" playsinline="" autoplay="" muted="" loop="" id="tagmapsvideo"> 
<source src="https://wwwpub.zih.tu-dresden.de/~s7398234/map_000_4k.webm" type="video/webm"></video>
<p>Since tag maps visualization is still only implemented in ArcMap / ArcPro, I needed to automate the
map generation.</p>
<p>This was done with ArcPy, a python package that allows automation of the ArcMap interface.</p>
<p>Here&rsquo;s the script that will iterate over <code>Weights</code> and output individual maps (~350),
gradually including less weighted tags and emoji in the map.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="c1"># coding=utf-8</span>
</span></span><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">arcpy</span><span class="o">,</span> <span class="nn">os</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">unique_values_where</span><span class="p">(</span><span class="n">table</span> <span class="p">,</span> <span class="n">field</span><span class="p">,</span> <span class="n">where_clause</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;&#34;&#34;Get values from table for specific field in descending order, 
</span></span></span><span class="line"><span class="cl"><span class="s2">       optional include a limiting where query
</span></span></span><span class="line"><span class="cl"><span class="s2">    &#34;&#34;&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="k">with</span> <span class="n">arcpy</span><span class="o">.</span><span class="n">da</span><span class="o">.</span><span class="n">SearchCursor</span><span class="p">(</span><span class="n">table</span><span class="p">,</span> <span class="p">[</span><span class="n">field</span><span class="p">],</span> <span class="n">where_clause</span><span class="p">)</span> <span class="k">as</span> <span class="n">cursor</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="k">return</span> <span class="nb">list</span><span class="p">(</span><span class="nb">reversed</span><span class="p">(</span><span class="nb">sorted</span><span class="p">({</span><span class="n">row</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="k">for</span> <span class="n">row</span> <span class="ow">in</span> <span class="n">cursor</span><span class="p">})))</span>
</span></span><span class="line"><span class="cl">        
</span></span><span class="line"><span class="cl"><span class="c1"># Specify output path and final output PDF</span>
</span></span><span class="line"><span class="cl"><span class="n">out_path</span> <span class="o">=</span> <span class="sa">r</span><span class="s2">&#34;C:\temp\out&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Specify the map document and the data frame</span>
</span></span><span class="line"><span class="cl"><span class="n">mxd</span> <span class="o">=</span> <span class="n">arcpy</span><span class="o">.</span><span class="n">mapping</span><span class="o">.</span><span class="n">MapDocument</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="sa">r</span><span class="s2">&#34;CampusMap_MapSeries.mxd&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">ix</span> <span class="o">=</span> <span class="mi">0</span>
</span></span><span class="line"><span class="cl"><span class="k">for</span> <span class="n">layer_ref</span> <span class="ow">in</span> <span class="p">[</span><span class="s2">&#34;Top10&#34;</span><span class="p">,</span> <span class="s2">&#34;HImp&#34;</span><span class="p">,</span> <span class="s2">&#34;Other&#34;</span><span class="p">]:</span>
</span></span><span class="line"><span class="cl">    <span class="n">layer</span> <span class="o">=</span> <span class="n">arcpy</span><span class="o">.</span><span class="n">mapping</span><span class="o">.</span><span class="n">ListLayers</span><span class="p">(</span><span class="n">mxd</span><span class="p">,</span> <span class="n">layer_ref</span><span class="p">)[</span><span class="mi">0</span><span class="p">]</span>
</span></span><span class="line"><span class="cl">    <span class="n">layer</span><span class="o">.</span><span class="n">visible</span> <span class="o">=</span> <span class="kc">True</span>
</span></span><span class="line"><span class="cl">    
</span></span><span class="line"><span class="cl">    <span class="n">def_query_old</span> <span class="o">=</span> <span class="n">layer</span><span class="o">.</span><span class="n">definitionQuery</span> 
</span></span><span class="line"><span class="cl">    <span class="c1"># print &#34;def query: &#34; + def_query_old</span>
</span></span><span class="line"><span class="cl">    
</span></span><span class="line"><span class="cl">    <span class="c1"># now we need to get the unique values for &#34;Join_Count&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="c1"># and use those to loop over Definition Query,</span>
</span></span><span class="line"><span class="cl">    <span class="c1"># starting with the smallest values (for Photo Count)</span>
</span></span><span class="line"><span class="cl">    <span class="n">values_source</span> <span class="o">=</span> <span class="n">layer</span><span class="o">.</span><span class="n">dataSource</span>
</span></span><span class="line"><span class="cl">    
</span></span><span class="line"><span class="cl">    <span class="c1"># process top10 first</span>
</span></span><span class="line"><span class="cl">    <span class="n">unique_values</span> <span class="o">=</span> <span class="n">unique_values_where</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">values_source</span><span class="p">,</span> <span class="s2">&#34;Weights&#34;</span><span class="p">,</span> <span class="n">def_query_old</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span> <span class="nb">len</span><span class="p">(</span><span class="n">unique_values</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span> <span class="n">unique_values</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
</span></span><span class="line"><span class="cl">    
</span></span><span class="line"><span class="cl">    <span class="c1"># set what is given in mxd layers</span>
</span></span><span class="line"><span class="cl">    <span class="k">if</span> <span class="n">layer_ref</span> <span class="o">==</span> <span class="s2">&#34;Top10&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="n">base_query</span> <span class="o">=</span> <span class="s1">&#39;&#34;HImpTag&#34; = 1 AND &#34;Weights&#34; &gt;=&#39;</span>
</span></span><span class="line"><span class="cl">    <span class="k">elif</span> <span class="n">layer_ref</span> <span class="o">==</span> <span class="s2">&#34;HImp&#34;</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="n">base_query</span> <span class="o">=</span> <span class="s1">&#39;&#34;HImpTag&#34; = 1 AND &#34;Weights&#34; &lt; 300 AND NOT &#34;FID&#34; = 6232 AND NOT &#34;FID&#34; = 2361 AND &#34;Weights&#34; &gt;=&#39;</span>
</span></span><span class="line"><span class="cl">    <span class="k">else</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="n">base_query</span> <span class="o">=</span> <span class="s1">&#39;&#34;HImpTag&#34; = 0 AND &#34;Weights&#34; &lt; 200 AND &#34;Weights&#34; &gt;=&#39;</span>
</span></span><span class="line"><span class="cl">        
</span></span><span class="line"><span class="cl">    <span class="k">for</span> <span class="n">unique_value_step</span> <span class="ow">in</span> <span class="n">unique_values</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="n">def_query_new</span> <span class="o">=</span> <span class="n">base_query</span> <span class="o">+</span> <span class="nb">str</span><span class="p">(</span><span class="n">unique_value_step</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">        <span class="n">layer</span><span class="o">.</span><span class="n">definitionQuery</span> <span class="o">=</span> <span class="n">def_query_new</span>
</span></span><span class="line"><span class="cl">        <span class="nb">print</span> <span class="n">def_query_new</span>
</span></span><span class="line"><span class="cl">        <span class="n">arcpy</span><span class="o">.</span><span class="n">mapping</span><span class="o">.</span><span class="n">ExportToPNG</span><span class="p">(</span><span class="n">mxd</span><span class="p">,</span> <span class="n">out_path</span> <span class="o">+</span> <span class="sa">r</span><span class="s2">&#34;\map_&#34;</span> <span class="o">+</span> <span class="s2">&#34;</span><span class="si">%03d</span><span class="s2">&#34;</span> <span class="o">%</span> <span class="p">(</span><span class="n">ix</span><span class="p">,)</span> <span class="o">+</span> <span class="s2">&#34;.png&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">        <span class="n">ix</span> <span class="o">+=</span> <span class="mi">1</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># clear memory/close the map</span>
</span></span><span class="line"><span class="cl"><span class="k">del</span> <span class="n">mxd</span>
</span></span></code></pre></div><p>Afterwards, the generated image sequence was combined to a webm video in Adobe Premiere, using the <a href="https://www.fnordware.com/WebM/">WebM Plugin</a>.</p>
]]></content></item><item><title>Sav[f?]ePlace: Interreg Scoping Meeting</title><link>https://links.alexanderdunkel.com/posts/2022-07-07-interreg-scoping-meeting/</link><pubDate>Tue, 28 Jun 2022 09:30:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-07-07-interreg-scoping-meeting/</guid><description>&lt;p&gt;An Internal scoping Meeting for the 2nd call, together with Vienna.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/interreg-scoping-slides/#/"&gt;https://ad.vgiscience.org/interreg-scoping-slides/#/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>An Internal scoping Meeting for the 2nd call, together with Vienna.</p>
<ul>
<li><a href="https://ad.vgiscience.org/interreg-scoping-slides/#/">https://ad.vgiscience.org/interreg-scoping-slides/#/</a></li>
</ul>
]]></content></item><item><title>Scientific Exchange Meeting</title><link>https://links.alexanderdunkel.com/posts/2022-04-25-scientific-exchange-meeting/</link><pubDate>Mon, 25 Apr 2022 10:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-04-25-scientific-exchange-meeting/</guid><description>&lt;p&gt;An Internal meeting on research status and outlook.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/scientific-exchange-meeting-2022/"&gt;https://ad.vgiscience.org/scientific-exchange-meeting-2022/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>An Internal meeting on research status and outlook.</p>
<ul>
<li><a href="https://ad.vgiscience.org/scientific-exchange-meeting-2022/">https://ad.vgiscience.org/scientific-exchange-meeting-2022/</a></li>
</ul>
]]></content></item><item><title>Twitter 395 Million reactions visualized with datashader and parquet</title><link>https://links.alexanderdunkel.com/posts/2022-04-21-datashader-parquet-twitter-global/</link><pubDate>Thu, 21 Apr 2022 13:08:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-04-21-datashader-parquet-twitter-global/</guid><description>&lt;p&gt;Visualization of 350 Million Geo-Social Media posts from Twitter
(Europe, 2016-2018; USA, 2021-2022) with parquet (streamed processing) and datashader.&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/twitter_europe.png" alt=""&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Notebook with graphics: &lt;a href="https://ad.vgiscience.org/twitter-global-preview/00_Twitter_datashader.html"&gt;https://ad.vgiscience.org/twitter-global-preview/00_Twitter_datashader.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Repository: &lt;a href="https://gitlab.vgiscience.de/ad/twitter-global-preview"&gt;gitlab.vgiscience.de/ad/twitter-global-preview&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Visualization of 350 Million Geo-Social Media posts from Twitter
(Europe, 2016-2018; USA, 2021-2022) with parquet (streamed processing) and datashader.</p>
<p>
  <img src="/imgs/twitter_europe.png" alt="">
</p>
<ul>
<li>Notebook with graphics: <a href="https://ad.vgiscience.org/twitter-global-preview/00_Twitter_datashader.html">https://ad.vgiscience.org/twitter-global-preview/00_Twitter_datashader.html</a></li>
<li>Repository: <a href="https://gitlab.vgiscience.de/ad/twitter-global-preview">gitlab.vgiscience.de/ad/twitter-global-preview</a></li>
</ul>
]]></content></item><item><title>Mainstreet 2021: Waynesboro Visualizations</title><link>https://links.alexanderdunkel.com/posts/2022-04-11-waynesboro/</link><pubDate>Mon, 11 Apr 2022 08:01:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-04-11-waynesboro/</guid><description>&lt;p&gt;This was part of a small seed fund for Waynesboro in Virginia.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Nature-related topics:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/waynesboro/waynesboro_freq_nature.html"&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/06_nature_heatmap.png" alt=""&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Urban-related topics:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/waynesboro/waynesboro_freq_urban.html"&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/07_urban_heatmap_annotated.png" alt=""&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the background, the algorithm first creates a &amp;ldquo;surface&amp;rdquo; (heat map) for all available
social media posts, then for the selected topic (based on a set of terms), and afterwards
normalizes the topic surface based on overall density.&lt;/p&gt;
&lt;p&gt;Note that there&amp;rsquo;s only limited data available for Waynesboro (90969 posts), so
the results may contain noise.&lt;/p&gt;</description><content type="html"><![CDATA[<p>This was part of a small seed fund for Waynesboro in Virginia.</p>
<ul>
<li>Nature-related topics:</li>
</ul>
<p><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/waynesboro/waynesboro_freq_nature.html">
  <img src="/imgs/06_nature_heatmap.png" alt="">
</a></p>
<ul>
<li>Urban-related topics:</li>
</ul>
<p><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/waynesboro/waynesboro_freq_urban.html">
  <img src="/imgs/07_urban_heatmap_annotated.png" alt="">
</a></p>
<p>In the background, the algorithm first creates a &ldquo;surface&rdquo; (heat map) for all available
social media posts, then for the selected topic (based on a set of terms), and afterwards
normalizes the topic surface based on overall density.</p>
<p>Note that there&rsquo;s only limited data available for Waynesboro (90969 posts), so
the results may contain noise.</p>
<h2 id="tag-maps">Tag Maps</h2>
<p>Waynesboro close (dark theme):
<a href="https://cloudstore.zih.tu-dresden.de/index.php/s/p2QZzaaim57LS5c#pdfviewer">
  <img src="/imgs/2022-04-05_Waynesboro_TagMap_Close_Dark.png" alt="">
</a></p>
<p>Waynesboro close:
<a href="https://cloudstore.zih.tu-dresden.de/index.php/s/Y7bD4a9s7ppoaz2#pdfviewer">
  <img src="/imgs/2022-04-05_Waynesboro_TagMap_Overview.png" alt="">
</a></p>
<p>Waynesboro Overview:
<a href="https://cloudstore.zih.tu-dresden.de/index.php/s/HcJB5zpcJjRpdxg#pdfviewer">
  <img src="/imgs/2022-04-05_Waynesboro_TagMap_Close.png" alt="">
</a></p>
<h2 id="dashboard">Dashboard</h2>
<p>Dominik Weckmüller (MSc) has also created a HLL Dashboard prototype for Waynesboro,
which can be viewed interactively here:
<a href="https://geo.rocks/dashboards/waynesboro/">https://geo.rocks/dashboards/waynesboro/</a></p>
<h2 id="data-flow">Data Flow</h2>
<p>This is a overview scheme for the data flow, processing, and integration:

  <img src="/imgs/03_dashboard_data_flow_scheme.png" alt="">
</p>
<p>Together with the dashboard, we are making progress in supporting cities regarding
four sources of VGI data:

  <img src="/imgs/05_progress_annotated.png" alt="">
</p>
]]></content></item><item><title>EvaVGI-II Summary, VGIscience Working Meeting, Bonn</title><link>https://links.alexanderdunkel.com/posts/2022-03-31-bonn-meeting/</link><pubDate>Thu, 31 Mar 2022 09:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-03-31-bonn-meeting/</guid><description>&lt;p&gt;VGIscience Working Meeting, 30.-31. March 2022, Bonn (Statusreport).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Topic: &lt;strong&gt;EvaVGI-II Summary, @ VGIscience&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/evavgi_bonn"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>VGIscience Working Meeting, 30.-31. March 2022, Bonn (Statusreport).</p>
<ul>
<li>Topic: <strong>EvaVGI-II Summary, @ VGIscience</strong></li>
<li><a href="https://ad.vgiscience.org/evavgi_bonn">Slides</a></li>
</ul>
]]></content></item><item><title>Nutzung von Social Media für die partizipative, grüne Stadtentwicklung</title><link>https://links.alexanderdunkel.com/posts/2022-01-28-chemnitz-meeting/</link><pubDate>Fri, 28 Jan 2022 11:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-01-28-chemnitz-meeting/</guid><description>&lt;p&gt;Chemnitz Auftaktmeeting zur Projektkoordination.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Topic: &lt;strong&gt;Nutzung von Social Media für die partizipative, grüne Stadtentwicklung&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/meeting_chemnitz"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Chemnitz Auftaktmeeting zur Projektkoordination.</p>
<ul>
<li>Topic: <strong>Nutzung von Social Media für die partizipative, grüne Stadtentwicklung</strong></li>
<li><a href="https://ad.vgiscience.org/meeting_chemnitz">Slides</a></li>
</ul>
]]></content></item><item><title>Slides: Tag Maps Workshop 2022</title><link>https://links.alexanderdunkel.com/posts/2022-01-26-tagmaps-2022/</link><pubDate>Wed, 26 Jan 2022 07:30:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2022-01-26-tagmaps-2022/</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/tagmapsworkshop_tud_2022/"&gt;Workshop Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Revised:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Updated to ArcPro 2.9&lt;/li&gt;
&lt;li&gt;Conda workflow setup&lt;/li&gt;
&lt;li&gt;Fixed a bug in Regional Settings/Localization&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2020-01-23_tagmaps_lecture.png" alt=""&gt;
&lt;/p&gt;</description><content type="html"><![CDATA[<ul>
<li><a href="https://ad.vgiscience.org/tagmapsworkshop_tud_2022/">Workshop Slides</a></li>
</ul>
<p>Revised:</p>
<ul>
<li>Updated to ArcPro 2.9</li>
<li>Conda workflow setup</li>
<li>Fixed a bug in Regional Settings/Localization</li>
</ul>
<p>
  <img src="/imgs/2020-01-23_tagmaps_lecture.png" alt="">
</p>
]]></content></item><item><title>Slides: Python data science 101</title><link>https://links.alexanderdunkel.com/posts/2021-13-09-python_lecture/</link><pubDate>Thu, 09 Dec 2021 09:20:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2021-13-09-python_lecture/</guid><description>&lt;ul&gt;
&lt;li&gt;Lecture, &lt;strong&gt;Python data science 101 for Social Media Cartography (and beyond)&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/lbsm-python-lecture"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<ul>
<li>Lecture, <strong>Python data science 101 for Social Media Cartography (and beyond)</strong></li>
<li><a href="https://ad.vgiscience.org/lbsm-python-lecture">Slides</a></li>
</ul>
]]></content></item><item><title>Visualizing spatio-temporal Social Media data</title><link>https://links.alexanderdunkel.com/posts/2021-11-29-facets_lecture/</link><pubDate>Thu, 25 Nov 2021 09:20:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2021-11-29-facets_lecture/</guid><description>&lt;ul&gt;
&lt;li&gt;Revised Lecture, &lt;strong&gt;Visualizing spatio-temporal Social Media data for application to landscape and urban planning (and beyond)&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/lbsm-facets-lecture/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<ul>
<li>Revised Lecture, <strong>Visualizing spatio-temporal Social Media data for application to landscape and urban planning (and beyond)</strong></li>
<li><a href="https://ad.vgiscience.org/lbsm-facets-lecture/">Slides</a></li>
</ul>
]]></content></item><item><title>meinGrün final meeting</title><link>https://links.alexanderdunkel.com/posts/2021-06-28-meingruen_abschlusstreffen/</link><pubDate>Mon, 28 Jun 2021 10:30:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2021-06-28-meingruen_abschlusstreffen/</guid><description>&lt;p&gt;After 3 years, the &lt;a href="http://meingruen.ioer.info/"&gt;meinGrün-project&lt;/a&gt; is coming to an end.&lt;/p&gt;
&lt;p&gt;There is an internal and public part. The IfK will have a presentation for each part:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;(Internal) slides&lt;/li&gt;
&lt;li&gt;(Public) slides, &lt;strong&gt;&lt;a href="https://ad.vgiscience.org/meingruen_socialmedia_api/"&gt;Planungsergänzende Daten mit der Social Media API&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The schedule for the internal part:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Zeit&lt;/th&gt;
&lt;th&gt;Thema&lt;/th&gt;
&lt;th&gt;Vortragende&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;10.00 - 10.30&lt;/td&gt;
&lt;td&gt;Begrüßung und kurze Projektvorstellung, Partner, Ziele&lt;/td&gt;
&lt;td&gt;Hecht, Brzoska&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10.30 - 12.30 &lt;em&gt;10.30 - 10.50&lt;/em&gt; &lt;em&gt;10.50 - 11.10&lt;/em&gt; &lt;em&gt;11.10 - 11.30&lt;/em&gt; &lt;em&gt;11.30 - 11.50&lt;/em&gt; &lt;em&gt;11.50 - 12.10&lt;/em&gt; &lt;em&gt;12.10 - 12.25&lt;/em&gt; &lt;em&gt;12.25 - 12.40&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Ergebnisse der Projektpartner (Ziele der Partner und Ergebnisse, ggf. Deliverables vorstellen) &lt;em&gt;HeiGIT&lt;/em&gt; &lt;em&gt;IÖR&lt;/em&gt; &lt;em&gt;ISB&lt;/em&gt; &lt;em&gt;TUD&lt;/em&gt; &lt;em&gt;DLR&lt;/em&gt; &lt;em&gt;Mundraub&lt;/em&gt; &lt;em&gt;urbanista&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;Alle (7 Partner jeweils 20-15 Min)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;em&gt;12.40 - 13.30&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;&lt;em&gt;Mittagspause&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;13.30 - 14.00&lt;/td&gt;
&lt;td&gt;Vorstellung der App und des Webportals&lt;/td&gt;
&lt;td&gt;Hecht (App), Brzoska (Webportal)?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14.00 - 15.00&lt;/td&gt;
&lt;td&gt;Fragen &amp;amp; Diskussion zum Projekt, Fragen an PTIOER2&lt;/td&gt;
&lt;td&gt;alle&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;15.00 - 15.10&lt;/td&gt;
&lt;td&gt;Ende des projektinternen Teils, Anleitung für digitale Einwahl in den öffentl. Teil, Fahrt ins SteigenbergerIOER3&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The schedule for the public part, for the DFNS:&lt;/p&gt;</description><content type="html"><![CDATA[<p>After 3 years, the <a href="http://meingruen.ioer.info/">meinGrün-project</a> is coming to an end.</p>
<p>There is an internal and public part. The IfK will have a presentation for each part:</p>
<ul>
<li>(Internal) slides</li>
<li>(Public) slides, <strong><a href="https://ad.vgiscience.org/meingruen_socialmedia_api/">Planungsergänzende Daten mit der Social Media API</a></strong></li>
</ul>
<p>The schedule for the internal part:</p>
<table>
	<thead>
			<tr>
					<th>Zeit</th>
					<th>Thema</th>
					<th>Vortragende</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>10.00 - 10.30</td>
					<td>Begrüßung und kurze Projektvorstellung, Partner, Ziele</td>
					<td>Hecht, Brzoska</td>
			</tr>
			<tr>
					<td>10.30 - 12.30        <em>10.30 - 10.50</em>     <em>10.50 - 11.10</em>     <em>11.10 - 11.30</em>     <em>11.30 - 11.50</em>     <em>11.50 - 12.10</em>     <em>12.10 - 12.25</em>     <em>12.25 - 12.40</em></td>
					<td>Ergebnisse der Projektpartner (Ziele der Partner und  Ergebnisse, ggf. Deliverables vorstellen)     <em>HeiGIT</em>     <em>IÖR</em>     <em>ISB</em>     <em>TUD</em>     <em>DLR</em>     <em>Mundraub</em>     <em>urbanista</em></td>
					<td>Alle (7 Partner jeweils 20-15 Min)</td>
			</tr>
			<tr>
					<td><em>12.40 - 13.30</em></td>
					<td><em>Mittagspause</em></td>
					<td></td>
			</tr>
			<tr>
					<td>13.30 - 14.00</td>
					<td>Vorstellung der App und des Webportals</td>
					<td>Hecht (App), Brzoska (Webportal)?</td>
			</tr>
			<tr>
					<td>14.00 - 15.00</td>
					<td>Fragen &amp; Diskussion zum Projekt, Fragen an PTIOER2</td>
					<td>alle</td>
			</tr>
			<tr>
					<td>15.00 - 15.10</td>
					<td>Ende des projektinternen Teils, Anleitung für digitale  Einwahl in den öffentl. Teil, Fahrt ins SteigenbergerIOER3</td>
					<td></td>
			</tr>
	</tbody>
</table>
<p>The schedule for the public part, for the DFNS:</p>
<table>
	<thead>
			<tr>
					<th>Zeit</th>
					<th>Thema</th>
					<th>Vortragende</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>16.00 - 17.30</td>
					<td>Moderation: Sören Rothert (urbanista)  Technik: N.NA6 .      meinGrün – Projekteinführung und Output (Hecht, IÖR) (5  min, „Fachaustausch“)     Mit App und Webportal besser über Grünflächen  informieren und neue Planungsgrundlagen generieren (Brzoska/  Stanley/Cakir/Hecht, IÖR) (8 min+10 min Disk.)     Planungsergänzende Daten mit der Social Media API  (Gugulica/Dunkel/Burghardt) (8 min+10  min Disk.)     Mit den neuartigen Routingalgorithmen die nachhaltige  Nahmobilität stärken (Ludewig/Lautenbach/Zipf, HeiGIT) (8 min+10 min Disk)</td>
					<td>meinGrün-Team</td>
			</tr>
	</tbody>
</table>
]]></content></item><item><title>Slides for 'Decoding the perceived City', UVA, Charlottesville (Online)</title><link>https://links.alexanderdunkel.com/posts/2021-05-19-decoding-the-perceived-city/</link><pubDate>Wed, 19 May 2021 17:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2021-05-19-decoding-the-perceived-city/</guid><description>&lt;ul&gt;
&lt;li&gt;Presentation, &lt;strong&gt;Decoding the perceived City&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/decoding-the-perceived-city/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2021-05-19_uva_img.png" alt=""&gt;
&lt;/p&gt;</description><content type="html"><![CDATA[<ul>
<li>Presentation, <strong>Decoding the perceived City</strong></li>
<li><a href="https://ad.vgiscience.org/decoding-the-perceived-city/">Slides</a></li>
</ul>
<p>
  <img src="/imgs/2021-05-19_uva_img.png" alt="">
</p>
]]></content></item><item><title>VGIscience Lecture Series: Slides Eva VGI II, Sunset - Sunrise</title><link>https://links.alexanderdunkel.com/posts/2021-04-06-evavgi2-status/</link><pubDate>Thu, 01 Apr 2021 12:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2021-04-06-evavgi2-status/</guid><description>&lt;p&gt;These slides were prepared for the Eva VGI II progress report,
as part of the &lt;a href="https://www.vgiscience.org/lecture-series.html"&gt;VGIscience 2021 lecture series&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Topic: &lt;strong&gt;Eva VGI II: Sunset - Sunrise&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/lecture-series-evavgi-ii-slides/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2021-04-01_vgi-sunset.png" alt="Cover Figures"&gt;
&lt;/p&gt;</description><content type="html"><![CDATA[<p>These slides were prepared for the Eva VGI II progress report,
as part of the <a href="https://www.vgiscience.org/lecture-series.html">VGIscience 2021 lecture series</a>.</p>
<ul>
<li>Topic: <strong>Eva VGI II: Sunset - Sunrise</strong></li>
<li><a href="https://ad.vgiscience.org/lecture-series-evavgi-ii-slides/">Slides</a></li>
</ul>
<p>
  <img src="/imgs/2021-04-01_vgi-sunset.png" alt="Cover Figures">
</p>
]]></content></item><item><title>Tag Maps Lecture &amp; Workshop 2021, Mobile Cartography</title><link>https://links.alexanderdunkel.com/posts/2021-01-23-tagmaps-lecture/</link><pubDate>Wed, 10 Feb 2021 15:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2021-01-23-tagmaps-lecture/</guid><description>&lt;ul&gt;
&lt;li&gt;Revised Lecture, &lt;strong&gt;Development of custom mapping techniques for user-generated content&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/tagmaps-lecture/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/tagmapsworkshop_tud_2021/"&gt;Corresponding Workshop Slides&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Updated to ArcPro 2.5&lt;/li&gt;
&lt;li&gt;Added &lt;a href="https://ad.vgiscience.org/tagmapsworkshop_tud_2021/#/22/4"&gt;instructions&lt;/a&gt; to install Emoji Font&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;img src="https://ad.vgiscience.org/tagmapsworkshop_tud_2021/images/GrosserGarten_Tagmap.png" alt=""&gt;
&lt;/p&gt;</description><content type="html"><![CDATA[<ul>
<li>Revised Lecture, <strong>Development of custom mapping techniques for user-generated content</strong></li>
<li><a href="https://ad.vgiscience.org/tagmaps-lecture/">Slides</a></li>
<li><a href="https://ad.vgiscience.org/tagmapsworkshop_tud_2021/">Corresponding Workshop Slides</a>
<ul>
<li>Updated to ArcPro 2.5</li>
<li>Added <a href="https://ad.vgiscience.org/tagmapsworkshop_tud_2021/#/22/4">instructions</a> to install Emoji Font</li>
</ul>
</li>
</ul>
<p>
  <img src="https://ad.vgiscience.org/tagmapsworkshop_tud_2021/images/GrosserGarten_Tagmap.png" alt="">
</p>
]]></content></item><item><title>Publication: landschaftliche Wahrnehmung in sozialen Netzwerken am Beispiel der Planungsregion Leipzig-Westsachsen</title><link>https://links.alexanderdunkel.com/posts/2021-02-03-stadt-land-navi-pub/</link><pubDate>Wed, 03 Feb 2021 09:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2021-02-03-stadt-land-navi-pub/</guid><description>&lt;p&gt;This was a contribution to the project &lt;a href="https://www.stadtlandnavi.de/"&gt;StadtLandNavi&lt;/a&gt;,
a project that focused on cultural landscape development
in Western Saxony. Part of it was looking at Social Media
patterns in this region, to supplement authoritative data
sources and increase representativity.&lt;/p&gt;
&lt;p&gt;There is &lt;a href="https://www.stadtlandnavi.de/images/Kurzbroschuere_Tag_Maps_Westsachsen_web.pdf"&gt;a publication available&lt;/a&gt; that summarizes results
and &lt;a href="https://gruenerring-leipzig.de/wp-content/uploads/2021/03/210302-broschuere-kulturlandschaftskonzept-final-150dpi.pdf"&gt;a longer booklet&lt;/a&gt; with overall results.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.stadtlandnavi.de/images/Kurzbroschuere_Tag_Maps_Westsachsen_web.pdf"&gt;https://www.stadtlandnavi.de/images/Kurzbroschuere_Tag_Maps_Westsachsen_web.pdf&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p>This was a contribution to the project <a href="https://www.stadtlandnavi.de/">StadtLandNavi</a>,
a project that focused on cultural landscape development
in Western Saxony. Part of it was looking at Social Media
patterns in this region, to supplement authoritative data
sources and increase representativity.</p>
<p>There is <a href="https://www.stadtlandnavi.de/images/Kurzbroschuere_Tag_Maps_Westsachsen_web.pdf">a publication available</a> that summarizes results
and <a href="https://gruenerring-leipzig.de/wp-content/uploads/2021/03/210302-broschuere-kulturlandschaftskonzept-final-150dpi.pdf">a longer booklet</a> with overall results.</p>
<p><a href="https://www.stadtlandnavi.de/images/Kurzbroschuere_Tag_Maps_Westsachsen_web.pdf">https://www.stadtlandnavi.de/images/Kurzbroschuere_Tag_Maps_Westsachsen_web.pdf</a></p>
]]></content></item><item><title>Mobile Cartography 2021 Workshop: Social Media, Jupyter Lab &amp; Tag Maps</title><link>https://links.alexanderdunkel.com/posts/2021-01-04-mobile-cart-workshop/</link><pubDate>Mon, 04 Jan 2021 10:30:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2021-01-04-mobile-cart-workshop/</guid><description>&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-05-23_emojimap_campus.png" alt="Cover Figures"&gt;
&lt;/p&gt;
&lt;div style="width: 100%; margin: 0 auto; float: left; text-align: left; "&gt;
&lt;p&gt;
&lt;img src="https://ad.vgiscience.org/mobile_cart_workshop2020/version.svg" style="float: left; "&gt;&lt;/img&gt;&amp;nbsp;&lt;a href="https://gitlab.vgiscience.de/ad/mobile_cart_workshop2020"&gt;Gitlab Link&lt;/a&gt;
&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;This workshop introduced students to Python spatial visualizations using Jupyter Lab,
accessible through the Jupyter HUB ZIH TUD service.&lt;/p&gt;
&lt;h2 id="html-versions-of-notebooks"&gt;HTML Versions of Notebooks&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/mobile_cart_workshop2020/01_raw_intro.html"&gt;01_raw_intro.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/mobile_cart_workshop2020/02_hll_intro.html"&gt;02_hll_intro.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/mobile_cart_workshop2020/03_tagmaps.html"&gt;03_tagmaps.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/mobile_cart_workshop2020/04_topic_classification.html"&gt;04_topic_classification.html&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="process-to-start-jupyter-in-zih-jupyter-hub"&gt;Process to start Jupyter in ZIH Jupyter HUB&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Make sure to connect to TUD network using &lt;a href="https://tu-dresden.de/zih/dienste/service-katalog/arbeitsumgebung/zugang_datennetz/vpn?set_language=de"&gt;a VPN connection&lt;/a&gt; (Cisco VPN or OpenVPN), otherwise you will not be able to use any of ZIH HPC Services&lt;/li&gt;
&lt;li&gt;Add your ZIH-Login to the HPC project, using &lt;a href="https://hpcprojekte.zih.tu-dresden.de/managers/Members/addToProject/be5bbfb31f26121ec587c0b81fb360638f6d9d7b267979565803ebb5fc5576be"&gt;this&lt;/a&gt; link
&lt;ul&gt;
&lt;li&gt;this needs to be done only once&lt;/li&gt;
&lt;li&gt;it may take up to two hours before your login is available&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Click &lt;a href="https://taurus.hrsk.tu-dresden.de/jupyter/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgitlab.vgiscience.de%2Fad%2Fmobile_cart_workshop2020.git&amp;amp;urlpath=lab%2Ftree%2Fmobile_cart_workshop2020.git%2Fnotebooks%2F01_raw_intro.ipynb#/~(project~'p_lv_mobicart_2021~runtime~'5*3a00*3a00~cpuspertask~'3~mempercpu~'4000)"&gt;this link&lt;/a&gt;&lt;/strong&gt; to spawn a Jupyter Lab instance on the TUD ZIH Jupyter Hub.
&lt;ul&gt;
&lt;li&gt;You&amp;rsquo;ll be requested to login using your TUD Account&lt;/li&gt;
&lt;li&gt;Click &amp;ldquo;Start My Server&amp;rdquo;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Important: Do not change configuration:&lt;/strong&gt; If the Server doesn&amp;rsquo;t start automatically, click the &lt;a href="https://taurus.hrsk.tu-dresden.de/jupyter/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgitlab.vgiscience.de%2Fad%2Fmobile_cart_workshop2020.git&amp;amp;urlpath=lab%2Ftree%2Fmobile_cart_workshop2020.git%2Fnotebooks%2F01_raw_intro.ipynb#/~(project~'p_lv_mobicart_2021~runtime~'5*3a00*3a00~cpuspertask~'3~mempercpu~'4000)"&gt;ZIH Jupyter link&lt;/a&gt; one more time&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Afterwards, once the notebook has opened, execute the first cell, with &lt;code&gt;SHIFT+ENTER&lt;/code&gt;, to
link the conda &lt;code&gt;workshop_env&lt;/code&gt; to your user folder. Follow any instructions in the notebook.&lt;/p&gt;</description><content type="html"><![CDATA[<p>
  <img src="https://links.alexanderdunkel.com/imgs/2019-05-23_emojimap_campus.png" alt="Cover Figures">
</p>
<div style="width: 100%; margin: 0 auto; float: left; text-align: left; ">
<p>
<img src="https://ad.vgiscience.org/mobile_cart_workshop2020/version.svg" style="float: left; "></img>&nbsp;<a href="https://gitlab.vgiscience.de/ad/mobile_cart_workshop2020">Gitlab Link</a>
</p>
</div>
<p>This workshop introduced students to Python spatial visualizations using Jupyter Lab,
accessible through the Jupyter HUB ZIH TUD service.</p>
<h2 id="html-versions-of-notebooks">HTML Versions of Notebooks</h2>
<ol>
<li><a href="https://ad.vgiscience.org/mobile_cart_workshop2020/01_raw_intro.html">01_raw_intro.html</a></li>
<li><a href="https://ad.vgiscience.org/mobile_cart_workshop2020/02_hll_intro.html">02_hll_intro.html</a></li>
<li><a href="https://ad.vgiscience.org/mobile_cart_workshop2020/03_tagmaps.html">03_tagmaps.html</a></li>
<li><a href="https://ad.vgiscience.org/mobile_cart_workshop2020/04_topic_classification.html">04_topic_classification.html</a></li>
</ol>
<h2 id="process-to-start-jupyter-in-zih-jupyter-hub">Process to start Jupyter in ZIH Jupyter HUB</h2>
<ol>
<li>Make sure to connect to TUD network using <a href="https://tu-dresden.de/zih/dienste/service-katalog/arbeitsumgebung/zugang_datennetz/vpn?set_language=de">a VPN connection</a> (Cisco VPN or OpenVPN), otherwise you will not be able to use any of ZIH HPC Services</li>
<li>Add your ZIH-Login to the HPC project, using <a href="https://hpcprojekte.zih.tu-dresden.de/managers/Members/addToProject/be5bbfb31f26121ec587c0b81fb360638f6d9d7b267979565803ebb5fc5576be">this</a> link
<ul>
<li>this needs to be done only once</li>
<li>it may take up to two hours before your login is available</li>
</ul>
</li>
<li><strong>Click <a href="https://taurus.hrsk.tu-dresden.de/jupyter/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgitlab.vgiscience.de%2Fad%2Fmobile_cart_workshop2020.git&amp;urlpath=lab%2Ftree%2Fmobile_cart_workshop2020.git%2Fnotebooks%2F01_raw_intro.ipynb#/~(project~'p_lv_mobicart_2021~runtime~'5*3a00*3a00~cpuspertask~'3~mempercpu~'4000)">this link</a></strong> to spawn a Jupyter Lab instance on the TUD ZIH Jupyter Hub.
<ul>
<li>You&rsquo;ll be requested to login using your TUD Account</li>
<li>Click &ldquo;Start My Server&rdquo;.</li>
<li><strong>Important: Do not change configuration:</strong> If the Server doesn&rsquo;t start automatically, click the <a href="https://taurus.hrsk.tu-dresden.de/jupyter/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgitlab.vgiscience.de%2Fad%2Fmobile_cart_workshop2020.git&amp;urlpath=lab%2Ftree%2Fmobile_cart_workshop2020.git%2Fnotebooks%2F01_raw_intro.ipynb#/~(project~'p_lv_mobicart_2021~runtime~'5*3a00*3a00~cpuspertask~'3~mempercpu~'4000)">ZIH Jupyter link</a> one more time</li>
</ul>
</li>
</ol>
<p>Afterwards, once the notebook has opened, execute the first cell, with <code>SHIFT+ENTER</code>, to
link the conda <code>workshop_env</code> to your user folder. Follow any instructions in the notebook.</p>
<h2 id="faq">FAQ</h2>
<p>Based on the first workshop on January 6,
we have collected some frequent questions and answers.</p>
<p>Please click on the links below to see possible routes to solve these issues.</p>
<ol>
<li><a href="https://gitlab.vgiscience.de/ad/mobile_cart_workshop2020/-/blob/master/resources/faq/01_error_500.md"><strong>500: Internal Server Error</strong> after clicking spawn the link?</a></li>
<li><a href="https://gitlab.vgiscience.de/ad/mobile_cart_workshop2020/-/blob/master/resources/faq/02_explorer_empty.md">Jupyter Lab Starts, but <strong>the explorer on the left is empty</strong>?</a></li>
<li><a href="https://gitlab.vgiscience.de/ad/mobile_cart_workshop2020/-/blob/master/resources/faq/03_activate_workshop_env.md"><strong>Cannot activate <code>workshop_env</code></strong>/ the first code cell returns an error?</a></li>
<li><a href="https://gitlab.vgiscience.de/ad/mobile_cart_workshop2020/-/blob/master/resources/faq/04_offline_setup.md">How can I run these notebooks offline (locally)?</a></li>
</ol>
]]></content></item><item><title>Sunset-sunrise meeting</title><link>https://links.alexanderdunkel.com/posts/2020-12-04-sunset-sunrise-slides/</link><pubDate>Fri, 04 Dec 2020 11:30:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2020-12-04-sunset-sunrise-slides/</guid><description>&lt;ul&gt;
&lt;li&gt;Topic: &lt;strong&gt;Sunset-sunrise: Results, Discussion, Schedule&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/sunset-sunrise_dec2020/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<ul>
<li>Topic: <strong>Sunset-sunrise: Results, Discussion, Schedule</strong></li>
<li><a href="https://ad.vgiscience.org/sunset-sunrise_dec2020/">Slides</a></li>
</ul>
]]></content></item><item><title>Collection of git best practices</title><link>https://links.alexanderdunkel.com/posts/2020-12-04-git-best-practices/</link><pubDate>Fri, 04 Dec 2020 00:11:19 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2020-12-04-git-best-practices/</guid><description>&lt;p&gt;This is a random collection of best practices for using git.
I use it to keep track of what I&amp;rsquo;ve tested and used found notable.&lt;/p&gt;
&lt;h2 id="truncating-git-history"&gt;Truncating git history&lt;/h2&gt;
&lt;p&gt;Sometimes, I copy git repositories as a means to speed up setup for
repeating tasks. For example, when preparing presentations. The
problem with this approach: All prior history will be kept. The tasks
is to discard all commits prior to a particular one.&lt;/p&gt;</description><content type="html"><![CDATA[<p>This is a random collection of best practices for using git.
I use it to keep track of what I&rsquo;ve tested and used found notable.</p>
<h2 id="truncating-git-history">Truncating git history</h2>
<p>Sometimes, I copy git repositories as a means to speed up setup for
repeating tasks. For example, when preparing presentations. The
problem with this approach: All prior history will be kept. The tasks
is to discard all commits prior to a particular one.</p>
<p>Source: <a href="https://passingcuriosity.com/2017/truncating-git-history/">passingcuriosity.com</a></p>
<ol>
<li>Get the commit reference. I use my alias <code>gh</code>, which relates to:</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git log --graph --decorate --pretty<span class="o">=</span>oneline --abbrev-commit
</span></span></code></pre></div><ol start="2">
<li>Use rebase on a separate branch (called &ldquo;temp&rdquo;) to clean up all previous commits:</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git checkout --orphan temp 14c3e19
</span></span><span class="line"><span class="cl">git commit -m <span class="s2">&#34;Truncate history&#34;</span>
</span></span><span class="line"><span class="cl">git rebase --onto temp 14c3e19 master
</span></span></code></pre></div><p>The last command will apply changes back to master, <em>and remove all commits before the specified one</em>.</p>
<h2 id="remove-any-uncommited-changes">Remove any uncommited changes</h2>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git reset --hard
</span></span></code></pre></div><h2 id="aliases">Aliases</h2>
<p>Instead of git aliases, I use the following bash aliases to shorten command line work:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">gs</span><span class="o">=</span><span class="s1">&#39;git status&#39;</span>
</span></span><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">gr</span><span class="o">=</span><span class="s1">&#39;git remote --verbose&#39;</span>
</span></span><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">gc</span><span class="o">=</span><span class="s1">&#39;git commit -m&#39;</span>
</span></span><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">gp</span><span class="o">=</span><span class="s1">&#39;git push&#39;</span>
</span></span><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">gd</span><span class="o">=</span><span class="s1">&#39;git diff&#39;</span>
</span></span><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">ga</span><span class="o">=</span><span class="s1">&#39;git add&#39;</span>
</span></span><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">gh</span><span class="o">=</span><span class="s1">&#39;git log --graph --decorate --pretty=oneline --abbrev-commit&#39;</span>
</span></span><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">gb</span><span class="o">=</span><span class="s1">&#39;git branch&#39;</span>
</span></span><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">gp</span><span class="o">=</span><span class="s1">&#39;git push&#39;</span>
</span></span><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">gpl</span><span class="o">=</span><span class="s1">&#39;git pull&#39;</span>
</span></span><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">gprep</span><span class="o">=</span><span class="s1">&#39;git config --local core.filemode false&#39;</span>
</span></span></code></pre></div><p>Add these to your <code>~/.bash_aliases</code> file. Make sure that none of these interfere
with any other packages or commands on your system.</p>
]]></content></item><item><title>Slides EvaVGI2 Meeting LBSN HLL</title><link>https://links.alexanderdunkel.com/posts/2020-11-25-lbsn-hll-slides-v2/</link><pubDate>Tue, 24 Nov 2020 11:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2020-11-25-lbsn-hll-slides-v2/</guid><description>&lt;p&gt;I prepared this presentation for an internal meeting with the
Remote Sensing Image Analysis (RSiM) Group from TU Berlin. It
was aimed at future collaboration and the road map for our
privacy-aware data structure. The slides contain updated
graphics that help better explain possible applications.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Topic: &lt;strong&gt;HyperLogLog for Real Time LBSM Visual Analytics&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/lbsn-hll-slides/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The presentation includes the following new figures:&lt;/p&gt;
&lt;p&gt;
&lt;figure&gt;
&lt;img src="https://ad.vgiscience.org/lbsn-hll-slides/images/contxt_blk.png" alt="contxt_blk.png"&gt;
&lt;figcaption&gt;Application and Privacy Context Application and Privacy Context&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;figure&gt;
&lt;img src="https://ad.vgiscience.org/lbsn-hll-slides/images/hll_conversion_3.png" alt="contxt_blk.png"&gt;
&lt;figcaption&gt;HLL Conversion steps and related GDPR data classification&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;/p&gt;</description><content type="html"><![CDATA[<p>I prepared this presentation for an internal meeting with the
Remote Sensing Image Analysis (RSiM) Group from TU Berlin. It
was aimed at future collaboration and the road map for our
privacy-aware data structure. The slides contain updated
graphics that help better explain possible applications.</p>
<ul>
<li>Topic: <strong>HyperLogLog for Real Time LBSM Visual Analytics</strong></li>
<li><a href="https://ad.vgiscience.org/lbsn-hll-slides/">Slides</a></li>
</ul>
<p>The presentation includes the following new figures:</p>
<p>
  <figure>
    <img src="https://ad.vgiscience.org/lbsn-hll-slides/images/contxt_blk.png" alt="contxt_blk.png">
    <figcaption>Application and Privacy Context Application and Privacy Context</figcaption>
  </figure>
</p>
<p>
  <figure>
    <img src="https://ad.vgiscience.org/lbsn-hll-slides/images/hll_conversion_3.png" alt="contxt_blk.png">
    <figcaption>HLL Conversion steps and related GDPR data classification</figcaption>
  </figure>
</p>
<p>
  <figure>
    <img src="https://ad.vgiscience.org/lbsn-hll-slides/images/intersection_wordcloud.png" alt="contxt_blk.png">
    <figcaption>Semantic-similarity of post-terms groups through hll intersection</figcaption>
  </figure>
</p>
<p>
  <figure>
    <img src="https://ad.vgiscience.org/lbsn-hll-slides/images/two_component.png" alt="contxt_blk.png">
    <figcaption>Two component setup</figcaption>
  </figure>
</p>
<p>
  <figure>
    <img src="https://ad.vgiscience.org/lbsn-hll-slides/images/spatial_facet.png" alt="contxt_blk.png">
    <figcaption>Privacy-aware DB: Spatial facet example</figcaption>
  </figure>
</p>
<p>
  <figure>
    <img src="https://ad.vgiscience.org/lbsn-hll-slides/images/temporal_facet.png" alt="contxt_blk.png">
    <figcaption>Privacy-aware DB: Temporal facet example</figcaption>
  </figure>
</p>
<p>
  <figure>
    <img src="https://ad.vgiscience.org/lbsn-hll-slides/images/topical_facet.png" alt="contxt_blk.png">
    <figcaption>Privacy-aware DB: Topical facet example</figcaption>
  </figure>
</p>
<p>
  <figure>
    <img src="https://ad.vgiscience.org/lbsn-hll-slides/images/social_facet.png" alt="contxt_blk.png">
    <figcaption>Privacy-aware DB: Social facet example</figcaption>
  </figure>
</p>
<p>
  <figure>
    <img src="https://ad.vgiscience.org/lbsn-hll-slides/images/social_facet.png" alt="contxt_blk.png">
    <figcaption>Privacy-aware DB: Social facet example</figcaption>
  </figure>
</p>
<p>
  <figure>
    <img src="https://ad.vgiscience.org/lbsn-hll-slides/images/union_intersection.png" alt="contxt_blk.png">
    <figcaption>Union and intersection</figcaption>
  </figure>
</p>
<p>
  <figure>
    <img src="https://ad.vgiscience.org/lbsn-hll-slides/images/data_flow_2.png" alt="contxt_blk.png">
    <figcaption>Privacy-aware DB data flow</figcaption>
  </figure>
</p>
]]></content></item><item><title>Setting up a SSH key pair with remote host (TUD)</title><link>https://links.alexanderdunkel.com/posts/2020-11-03-ssh-hosts-tud/</link><pubDate>Tue, 03 Nov 2020 00:08:05 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2020-11-03-ssh-hosts-tud/</guid><description>&lt;p&gt;Setting up SSH keys for specific remote connections can become complex: You can have
multiple SSH keys that serve specific tasks, or general ones that are used for multiple
servers.&lt;/p&gt;
&lt;p&gt;Here I&amp;rsquo;ll go through setting up a SSH key that can be used to connect to
a remote login server using a host configured in &lt;code&gt;~/.ssh/config&lt;/code&gt; file and &lt;code&gt;ssh-copy-id&lt;/code&gt;
to setup the remote server side. TU Dresden login server is used as an example.&lt;/p&gt;</description><content type="html"><![CDATA[<p>Setting up SSH keys for specific remote connections can become complex: You can have
multiple SSH keys that serve specific tasks, or general ones that are used for multiple
servers.</p>
<p>Here I&rsquo;ll go through setting up a SSH key that can be used to connect to
a remote login server using a host configured in <code>~/.ssh/config</code> file and <code>ssh-copy-id</code>
to setup the remote server side. TU Dresden login server is used as an example.</p>
<p>We use Windows Subsystem for Linux (Ubuntu). See
<a href="2019-05-27-setup-wsl-win10.md">this step by step tutorial for setting up WSL</a> and a general guide to <a href="2019-05-27-wsl-software.md#ssh">
set up ssh in WSL and Windows 10</a>.</p>
<h2 id="setup-host-in-ssh-config">Setup host in ssh config</h2>
<p>This is entirely cosmetic, but it helps keep track of ssh servers.
Another way, described below, would be to add an <a href="#add-alias">ssh alias</a></p>
<p>If you haven&rsquo;t done so far, create the user ssh folder in your home folder:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">mkdir -p ~/.ssh <span class="o">&amp;&amp;</span> chmod <span class="m">700</span> ~/.ssh
</span></span></code></pre></div><p>The following command will create an empty ssh config file i this folder:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">touch ~/.ssh/config
</span></span></code></pre></div><p>This file must be readable and writable only by the user, and not accessible by others:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">chmod <span class="m">600</span> ~/.ssh/config
</span></span></code></pre></div><p>Now, add a named host entry into <code>~/.ssh/config</code>. Replace <code>sample-user-name</code> with your user login.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nano ~/.ssh/config
</span></span></code></pre></div><pre tabindex="0"><code class="language-config" data-lang="config">Host zih
    Hostname login.zih.tu-dresden.de
    User sample-user-name
</code></pre><h2 id="generate-private--public-ssh-key-pair">Generate private &amp; public ssh key pair</h2>
<p>Lets assume you want to generate a specific key pair that is only used for one task.</p>
<p>You will first need to create a key pair consisting of private and public key. The
private key part is password protected. The public key part is copied to the remote
server, in order to identify incoming connections.</p>
<p>Create a new ssh key.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh-keygen -t ed25519 -C <span class="s2">&#34;gitlab-ci@gitlab.vgiscience.org&#34;</span>
</span></span></code></pre></div><ul>
<li><code>-t</code> refers to the type of the key, with <code>ed25519</code> referring
to <a href="https://medium.com/risan/upgrade-your-ssh-key-to-ed25519-c6e8d60d3c54">recommended public-key algorithm available today.</a></li>
<li><code>-C</code> is used to add a comment, which is entirely optional.
In the example above, a comment is added that hins to the intended use of the key.</li>
</ul>
<p>Now, copy the public key part to the server, into <code>authorized_keys</code>. There are
several ways to do this, using <code>ssh-copy-id</code> <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-1804-de">is one of the recommended ways</a>.</p>
<p>See <a href="#manual-ak">Manual update of authorized_keys</a> below for an alternative way.</p>
<p>If there&rsquo;s no existing ssh connection for the remote server, you&rsquo;ll need to enter your
remote server password for the following command to work.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh-copy-id -i ~/.ssh/id_ed25519.pub zih
</span></span></code></pre></div><p>The output should be:</p>
<blockquote>
<p>Number of key(s) added: 1</p>
</blockquote>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Note that instead of the IP, the host name from <code>~/.ssh/config</code> is used.</p>
</div>
</aside> 


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path d="M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"/></svg>
	</div>
	<div class="admonition-content"><p>Best Practice: ”separate ssh-key per host and user“ vs. ”one ssh-key for all hosts“</p>
<p>How many SSH key pairs you keep is entirely up to you. However, consider that having multiple
private keys does not increase security. Therefore, it is typically recommended that you have
one key-pair that you use to connect to all of your servers. Sometimes, it makes sense having
two SSH key pairs, one for your home-user and one for your work-user.</p>
<p>Another situation arises if you want authenticate services, e.g. to connect to a server. In our
task-specific situation, it does make sense creating a new key-pair. This allows adding
specific restrictions. If, for some reason, the private key is compromised (e.g. because
the service where the task runs is compromised), it is possible to deactivate only
the public key that belongs to the service&rsquo;s private key. In other words,
the &ldquo;service&rdquo; (or &ldquo;task&rdquo;) is considered a separate, single identity.</p>
</div>
</aside> 
<h3 id="manual-ak">Manual update of authorized_keys (optional)</h3>
<p>Sometimes, <code>ssh-copy-id</code> may not work. For example, you&rsquo;re working in <a href="https://docs.microsoft.com/de-de/windows/wsl/install-win10">WSL</a>,
and your keys are stored in <a href="https://github.com/dlech/KeeAgent">KeyAgent</a> in <a href="https://keepass.info/">KeePass</a> in Windows.</p>
<p>If you have your public key as a string, e.g.:</p>
<blockquote>
<pre tabindex="0"><code>ssh-ed25519 EiCCGO6JfYVOvwE9FsnOq3xCKd1fyxSlFpapxOsXDe3GR0mK+tbYzSrnDZy7ecoja3CU gitlab-ci@gitlab.vgiscience.org
</code></pre></blockquote>
<p>You can connect to the server and add it manually to authorized_keys as follows.</p>
<ol>
<li>Copy the public key to a local file on the remote server (optional).</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;ssh-ed25519 EiCCGO6... gitlab-ci@gitlab.vgiscience.org&#34;</span> &gt;&gt; ~/.ssh/id_ed25519.pub
</span></span></code></pre></div><ol start="2">
<li>Add public key to authorized file using <code>cat</code>.</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">cat ~/.ssh/id_ed25519.pub &gt;&gt; ~/.ssh/authorized_keys
</span></span></code></pre></div><ol start="3">
<li>Remove the local public key file.</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">rm ~/.ssh/id_ed25519.pub
</span></span></code></pre></div>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path d="M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"/></svg>
	</div>
	<div class="admonition-content"><p>If you see a warning that the host key differs from the key for the IP address in <code>/home/user/.ssh/known_hosts</code>,
first check if this is a false error and then remove the offending key with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh-keygen -R 111.11.11.11
</span></span></code></pre></div><p>..where <code>111.11.11.11</code> must be replaced with the actual IP address.</p>
</div>
</aside> 
<h3 id="add-alias">Add an alias (optional)</h3>
<p>Another way to memorize ssh connection parameters
is to add an alias to the <code>~/.bashrc</code> file.</p>
<ol>
<li>
<p>Open the bashrc file for editing.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nano ~/.bashrc
</span></span></code></pre></div></li>
<li>
<p>Add an ssh alias for connecting to the server.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">connectzih</span><span class="o">=</span><span class="s1">&#39;ssh -A sample-user-name@login.zih.tu-dresden.de&#39;</span>
</span></span></code></pre></div></li>
</ol>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>According to the <a href="https://linux.die.net/man/1/ssh">ssh man</a>, <code>-A</code> enables forwarding of the
authentication agent connection, which allows you to use your ssh agent
on the remote server (e.g. to connect to other servers etc.).</p>
</div>
</aside> 
<ol start="3">
<li>
<p>Save and close file with CTRL+X</p>
</li>
<li>
<p>Reload bashrc to apply changes.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">source</span> ~/.bashrc
</span></span></code></pre></div></li>
<li>
<p>Test connection with <code>connectzih</code></p>
</li>
</ol>
<h2 id="check-the-connection">Check the connection</h2>
<p>Try the connection.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh <span class="s1">&#39;zih&#39;</span>
</span></span></code></pre></div><p>.. and check authorized_keys file, which should contain your public key part.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">cat ~/.ssh/authorized_keys
</span></span></code></pre></div><p>An example output with random key:</p>
<blockquote>
<pre tabindex="0"><code>ssh-ed25519 EiCCGO6JfYVOvwE9FsnOq3xCKd1fyxSlFpapxOsXDe3GR0mK+tbYzSrnDZy7ecoja3CU gitlab-ci@gitlab.vgiscience.org
</code></pre></blockquote>
<h2 id="setup-client-connection">Setup client connection</h2>
<p>.. will be continued..</p>
]]></content></item><item><title>HyperLogLog Tutorial on exploration of Nature Reactions from Flickr YFCC100M</title><link>https://links.alexanderdunkel.com/posts/2020-10-25-yfcc-hll-nature-reactions/</link><pubDate>Sun, 25 Oct 2020 20:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2020-10-25-yfcc-hll-nature-reactions/</guid><description>&lt;p&gt;This tutorial covers the basic steps for converting the
raw lbsn data structure to the hll privacy-aware version,
including exploration of hll data through interactive maps.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Tutorial link: &lt;a href="https://lbsn.vgiscience.org/tutorial/yfcc-geohash/"&gt;lbsn.vgiscience.org/tutorial/yfcc-geohash/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Result:&lt;/li&gt;
&lt;/ul&gt;
&lt;iframe width="100%" height="400" name="iframe" frameBorder="0" src="https://ad.vgiscience.org/lbsn-hll-slides/assets/fig_nature_tourism_updated.html"&gt;&lt;/iframe&gt;</description><content type="html"><![CDATA[<p>This tutorial covers the basic steps for converting the
raw lbsn data structure to the hll privacy-aware version,
including exploration of hll data through interactive maps.</p>
<ul>
<li>Tutorial link: <a href="https://lbsn.vgiscience.org/tutorial/yfcc-geohash/">lbsn.vgiscience.org/tutorial/yfcc-geohash/</a></li>
<li>Result:</li>
</ul>
<iframe width="100%" height="400" name="iframe" frameBorder="0" src="https://ad.vgiscience.org/lbsn-hll-slides/assets/fig_nature_tourism_updated.html"></iframe>]]></content></item><item><title>Slides Jupyter Workflow (IfK)</title><link>https://links.alexanderdunkel.com/posts/2020-10-13-jupyter-workflow-meeting/</link><pubDate>Tue, 13 Oct 2020 11:30:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2020-10-13-jupyter-workflow-meeting/</guid><description>&lt;div width="100%" style="text-align:center;"&gt;
&lt;video width="320" playsinline autoplay muted loop&gt;
&lt;source type="video/webm" src="https://ad.vgiscience.org/jupyter_workflow_meeting/images/00_jupyterlab_v4.webm"&gt;&lt;/source&gt;
&lt;p&gt;Your browser does not support the video element.&lt;/p&gt;
&lt;/video&gt;
&lt;/div&gt;
&lt;p&gt;A small presentation for discussion of best practice jupyter workflow in research and teaching.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Topic: &lt;strong&gt;Jupyter Workflow: Best practices for research (&amp;amp; lectures)&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/jupyter_workflow_meeting/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<div width="100%" style="text-align:center;">
    <video width="320" playsinline autoplay muted loop>
        <source type="video/webm" src="https://ad.vgiscience.org/jupyter_workflow_meeting/images/00_jupyterlab_v4.webm"></source>
        <p>Your browser does not support the video element.</p>
    </video>
</div>
<p>A small presentation for discussion of best practice jupyter workflow in research and teaching.</p>
<ul>
<li>Topic: <strong>Jupyter Workflow: Best practices for research (&amp; lectures)</strong></li>
<li><a href="https://ad.vgiscience.org/jupyter_workflow_meeting/">Slides</a></li>
</ul>
]]></content></item><item><title>Heidelberg Schlossgarten Heatmap</title><link>https://links.alexanderdunkel.com/posts/2020-10-01-heidelberg-schlossgarten-heatmap/</link><pubDate>Thu, 01 Oct 2020 16:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2020-10-01-heidelberg-schlossgarten-heatmap/</guid><description>&lt;p&gt;Heatmap für den Bereich Schlossgarten
Heidelberg für grünbezogene Begriffe.&lt;/p&gt;
&lt;iframe width="100%" height="400" name="iframe" frameBorder="0" src="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/heidelberg_heatmap/heidelberg_heatmap.html"&gt;&lt;/iframe&gt;
&lt;p&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/heidelberg_heatmap/heidelberg_heatmap.html"&gt;View in separate tab&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Zusätzlich sind jeweils relevante Places mit Namen
für Topic Cluster dargestellt (aus Facebook Places/ Instagram Places).&lt;/p&gt;</description><content type="html"><![CDATA[<p>Heatmap für den Bereich Schlossgarten
Heidelberg für grünbezogene Begriffe.</p>
<iframe width="100%" height="400" name="iframe" frameBorder="0" src="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/heidelberg_heatmap/heidelberg_heatmap.html"></iframe>
<p><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/heidelberg_heatmap/heidelberg_heatmap.html">View in separate tab</a></p>
<p>Zusätzlich sind jeweils relevante Places mit Namen
für Topic Cluster dargestellt (aus Facebook Places/ Instagram Places).</p>
]]></content></item><item><title>Slides VGIscience Young Researchers Seminar</title><link>https://links.alexanderdunkel.com/posts/2020-09-07-vgi-youngresearchers-seminar/</link><pubDate>Mon, 07 Sep 2020 10:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2020-09-07-vgi-youngresearchers-seminar/</guid><description>&lt;ul&gt;
&lt;li&gt;Topic: &lt;strong&gt;EvaVGI-II Summary, VGIscience Young Researchers Seminar&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/evavgi2_yrs/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<ul>
<li>Topic: <strong>EvaVGI-II Summary, VGIscience Young Researchers Seminar</strong></li>
<li><a href="https://ad.vgiscience.org/evavgi2_yrs/">Slides</a></li>
</ul>
]]></content></item><item><title>Martinsville Visualizations</title><link>https://links.alexanderdunkel.com/posts/2020-08-26-martinsville/</link><pubDate>Wed, 26 Aug 2020 10:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2020-08-26-martinsville/</guid><description>&lt;p&gt;Mapping frequentation patterns for selected topics,
similar to a &amp;ldquo;topic frequentation surface&amp;rdquo;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Nature-related topics (Martinsville and surrounding region): &lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/martinsville/martinsville_map_nature.html"&gt;Map 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Urban-related topics (Martinsville city): &lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/martinsville/martinsville_map_urban.html"&gt;Map 2&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;iframe width="100%" height="400" name="iframe" frameBorder="0" src="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/martinsville/martinsville_map_nature.html"&gt;&lt;/iframe&gt;
&lt;p&gt;In the background, the algorithm first creates a &amp;ldquo;surface&amp;rdquo; (heat map) for all available
social media posts, then for the selected topic (based on a set of terms), and afterwards
normalizes the topic surface based on overall density.&lt;/p&gt;
&lt;p&gt;Additional data is added from Facebook places dataset: For each topic cluster
(derived from the tagmaps package), the most popular Facebook Place name is added
as a label to the map.&lt;/p&gt;</description><content type="html"><![CDATA[<p>Mapping frequentation patterns for selected topics,
similar to a &ldquo;topic frequentation surface&rdquo;:</p>
<ul>
<li>Nature-related topics (Martinsville and surrounding region): <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/martinsville/martinsville_map_nature.html">Map 1</a></li>
<li>Urban-related topics (Martinsville city): <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/martinsville/martinsville_map_urban.html">Map 2</a></li>
</ul>
<iframe width="100%" height="400" name="iframe" frameBorder="0" src="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/martinsville/martinsville_map_nature.html"></iframe>
<p>In the background, the algorithm first creates a &ldquo;surface&rdquo; (heat map) for all available
social media posts, then for the selected topic (based on a set of terms), and afterwards
normalizes the topic surface based on overall density.</p>
<p>Additional data is added from Facebook places dataset: For each topic cluster
(derived from the tagmaps package), the most popular Facebook Place name is added
as a label to the map.</p>
<p>Note that there&rsquo;s only limited data available for Martinsville (21577 posts), so
the results may contain quite some noise. Still, it appears possible to says that
the close area in the South of Martinsville (e.g. Doe Run Park Trails) is quite important
for nature-related leisure. Also, some outliers around Martinsville can be observed
(Fairstone National Park, Rooster Walk, Chestnut Knob, Martinsville Reservoir). This information
need verification with other data sources though.</p>
<h2 id="temporal-patterns">Temporal patterns</h2>
<p>This is the post count per day for the total available data for
Martinsville region (Flickr and Instagram):</p>
<p>
  <img src="/imgs/2020-11-06_martinsville_postcount_perday_FlickrInstagram.png" alt="">
</p>
<p>There appear to be two peaks per year, which relate to the nascar race events.</p>
<p>The peaks are (from right to left):</p>
<ul>
<li>10/2017</li>
<li>04/2017</li>
<li>10/2016</li>
<li>05/2016</li>
</ul>
<h2 id="tag-map">Tag Map</h2>
<p>
  <img src="/imgs/2020-11-06_Martinsville_TagMap.png" alt="">
</p>
<p>The PDF version of the map is available on request.</p>
<p>statistics:</p>
<ul>
<li>Total post count (PC): 22253</li>
<li>Total tag count (PTC): 76918</li>
<li>Total emoji count (PEC): 8092</li>
<li>Total user count (UC): 6519</li>
<li>Total user post locations (UPL): 9425</li>
<li>Number of locations with names: 633 (Facebook Places)</li>
<li>Total distinct tags (DTC): 14673</li>
<li>Total distinct emoji (DEC): 872</li>
<li>Total distinct locations (DLC): 2231</li>
</ul>
]]></content></item><item><title>Western Saxony (County District) Visualizations</title><link>https://links.alexanderdunkel.com/posts/2020-06-15-stadt-land-navi/</link><pubDate>Mon, 15 Jun 2020 09:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2020-06-15-stadt-land-navi/</guid><description>&lt;p&gt;This was a contribution to the project &lt;a href="https://www.stadtlandnavi.de/"&gt;StadtLandNavi&lt;/a&gt;,
a project that focused on cultural landscape development
in Western Saxony. Part of it was looking at Social Media
patterns in this region, to supplement authoritative data
sources and increase representativity.&lt;/p&gt;
&lt;p&gt;There is &lt;a href="https://www.stadtlandnavi.de/images/Kurzbroschuere_Tag_Maps_Westsachsen_web.pdf"&gt;a publication available&lt;/a&gt; that summarizes results
and &lt;a href="https://gruenerring-leipzig.de/wp-content/uploads/2021/03/210302-broschuere-kulturlandschaftskonzept-final-150dpi.pdf"&gt;a longer booklet&lt;/a&gt; with overall results.&lt;/p&gt;
&lt;p&gt;A sample map section with the power plant &amp;ldquo;Lippendorf&amp;rdquo;,
with its clouds visible from large parts
of the district.&lt;/p&gt;</description><content type="html"><![CDATA[<p>This was a contribution to the project <a href="https://www.stadtlandnavi.de/">StadtLandNavi</a>,
a project that focused on cultural landscape development
in Western Saxony. Part of it was looking at Social Media
patterns in this region, to supplement authoritative data
sources and increase representativity.</p>
<p>There is <a href="https://www.stadtlandnavi.de/images/Kurzbroschuere_Tag_Maps_Westsachsen_web.pdf">a publication available</a> that summarizes results
and <a href="https://gruenerring-leipzig.de/wp-content/uploads/2021/03/210302-broschuere-kulturlandschaftskonzept-final-150dpi.pdf">a longer booklet</a> with overall results.</p>
<p>A sample map section with the power plant &ldquo;Lippendorf&rdquo;,
with its clouds visible from large parts
of the district.</p>
<p>
  <img src="/imgs/2021-07-14_figure3.png" alt="">
</p>
<p>Overall, six maps have been created for various parts
and zoom levels:</p>
<p>Overview Westsachsen:
<a href="https://wwwpub.zih.tu-dresden.de/~s7398234/assets/2020-06-15_Karte-x.x.1_Westsachsen.pdf">
  <img src="/imgs/2020-06-15_Karte-x.x.1_Westsachsen.png" alt="">
</a></p>
<p>Region South:
<a href="https://wwwpub.zih.tu-dresden.de/~s7398234/assets/2020-06-15_Karte-x.x.2_Westsachsen_RegionS%C3%BCdwest.pdf">
  <img src="/imgs/2020-06-15_Karte-x.x.2_Westsachsen_RegionS%c3%bcdwest.png" alt="">
</a></p>
<p>Region Northwest:
<a href="https://wwwpub.zih.tu-dresden.de/~s7398234/assets/2020-06-15_Karte-x.x.3_Westsachsen_RegionNordwest.pdf">
  <img src="/imgs/2020-06-15_Karte-x.x.3_Westsachsen_RegionNordwest.png" alt="">
</a></p>
<p>Leipzig City:
<a href="https://wwwpub.zih.tu-dresden.de/~s7398234/assets/2020-06-15_Karte-x.x.4_Westsachsen_LeipzigStadt.pdf">
  <img src="/imgs/2020-06-15_Karte-x.x.4_Westsachsen_LeipzigStadt.png" alt="">
</a></p>
<p>Leipzig Bezirk Mitte:
<a href="https://wwwpub.zih.tu-dresden.de/~s7398234/assets/2020-06-15_Karte-x.x.5_Westsachsen_LeipzigStadt_BezirkMitte.pdf">
  <img src="/imgs/2020-06-15_Karte-x.x.5_Westsachsen_LeipzigStadt_BezirkMitte.png" alt="">
</a></p>
<p>Leipzig Center:
<a href="https://wwwpub.zih.tu-dresden.de/~s7398234/assets/2020-06-15_Karte-x.x.6_Westsachsen_LeipzigStadt_Zentrum.pdf">
  <img src="/imgs/2020-06-15_Karte-x.x.6_Westsachsen_LeipzigStadt_Zentrum.png" alt="">
</a></p>
]]></content></item><item><title>HyperLogLog (HLL) Intersections</title><link>https://links.alexanderdunkel.com/posts/2020-05-15-hll-intersection/</link><pubDate>Fri, 15 May 2020 16:10:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2020-05-15-hll-intersection/</guid><description>&lt;p&gt;HyperLogLog Intersections are interesting in that they allow to derive more information than what would normally
be available with &lt;code&gt;union&lt;/code&gt; or &lt;code&gt;cardinality&lt;/code&gt;. Based on intersections, it is possible to describe relationships
between two sets &lt;em&gt;quantitatively&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/intersection_wordcloud.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;What this means is shown in the image above. In this example, when using two HLL sets, based on post ids that
relate to different terms used on Social Media, it is possible to return the &lt;em&gt;percentage&lt;/em&gt; of posts containing a common list of words,
based on intersection.&lt;/p&gt;</description><content type="html"><![CDATA[<p>HyperLogLog Intersections are interesting in that they allow to derive more information than what would normally
be available with <code>union</code> or <code>cardinality</code>. Based on intersections, it is possible to describe relationships
between two sets <em>quantitatively</em>.</p>
<p>
  <img src="/imgs/intersection_wordcloud.png" alt="">
</p>
<p>What this means is shown in the image above. In this example, when using two HLL sets, based on post ids that
relate to different terms used on Social Media, it is possible to return the <em>percentage</em> of posts containing a common list of words,
based on intersection.</p>
<p>These two lists of words may first be combined by union of individual HLL sets, for each term,
and only afterwards intersected, allowing to study arbitrary semantic relationships.</p>
<p>I&rsquo;ve discussed and shown HLL intersections on several occasions, this is a list of link with further information:</p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/instagram/Instagram_sunrise_sample.html">Link Jupyter Notebook HTML</a> containing simple SQL code to perform HLL intersections, based on sunset-sunrise posts example.</li>
<li><a href="https://ad.vgiscience.org/yfcc_gridagg/04_interpretation.html">Link Jupyter Notebook HTML</a> containing sample code to spatially union HLL sets for different countries and then intersecting these, to derive common visitor counts (YFCC dataset)</li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/yfcc/Privacy_test_alex.html">Link Jupyter Notebook HTML</a> it is tested whether intersections allow identifications of individual users, e.g. to compromise privacy (YFCC dataset)</li>
<li><a href="https://ad.vgiscience.org/lbsn-hll-slides/#/">Slides HLL Union &amp; Intersections</a>, from a meeting with TU Berlin, from where the picture above is taken. Also see <a href="https://links.alexanderdunkel.com/posts/2020-11-25-lbsn-hll-slides-v2/">this post</a></li>
<li><a href="https://gitlab.vgiscience.de/-/snippets/16#intersections">Code Snippets for HLL intersections</a></li>
</ul>
]]></content></item><item><title>YFCC tutorial: privacy-aware visualization</title><link>https://links.alexanderdunkel.com/posts/2020-05-08-yfcc-raw-hll-tutorial/</link><pubDate>Fri, 08 May 2020 08:41:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2020-05-08-yfcc-raw-hll-tutorial/</guid><description>&lt;p&gt;The lbsn structure data scheme is in active development. We started writing a documentation &lt;a href="https://lbsn.vgiscience.org/structure/"&gt;here&lt;/a&gt;, but we&amp;rsquo;re far away from completeness.
For this reason, I created this complete and working guide for demonstrating privacy-aware processing of lbsn data
on a specific visualization type (grid based aggregation).&lt;/p&gt;
&lt;aside class="admonition-highlight"&gt;
&lt;div class="admonition-icon"&gt;
&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"&gt;&lt;path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/&gt;&lt;/svg&gt;
&lt;/div&gt;
&lt;div class="admonition-content"&gt;&lt;p&gt;&lt;strong&gt;Publication&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Dunkel, A., Löchner, M., &amp;amp; Burghardt, D. (2020).
Privacy-aware visualization of volunteered geographic information (VGI) to analyze spatial activity:
A benchmark implementation. ISPRS International Journal of Geo-Information, 9(10).
DOI: &lt;a href="https://doi.org/10.3390/ijgi9100607"&gt;10.3390/ijgi9100607&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/aside&gt;</description><content type="html"><![CDATA[<p>The lbsn structure data scheme is in active development. We started writing a documentation <a href="https://lbsn.vgiscience.org/structure/">here</a>, but we&rsquo;re far away from completeness.
For this reason, I created this complete and working guide for demonstrating privacy-aware processing of lbsn data
on a specific visualization type (grid based aggregation).</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p><strong>Publication</strong></p>
<blockquote>
<p>Dunkel, A., Löchner, M., &amp; Burghardt, D. (2020).
Privacy-aware visualization of volunteered geographic information (VGI) to analyze spatial activity:
A benchmark implementation. ISPRS International Journal of Geo-Information, 9(10).
DOI: <a href="https://doi.org/10.3390/ijgi9100607">10.3390/ijgi9100607</a></p>
</blockquote>
</div>
</aside> 
<h2 id="results">Results</h2>
<p>
  <img src="/imgs/2020-05-08_yfcc_usercount_worldmap_int.png" alt="">
</p>
<p>In addition to the release file, latest HTML converts of notebooks are available here:</p>
<ul>
<li><a href="http://ad.vgiscience.org/yfcc_gridagg/01_preparations.html">01_preparations.html</a></li>
<li><a href="http://ad.vgiscience.org/yfcc_gridagg/02_yfcc_gridagg_raw.html">02_yfcc_gridagg_raw.html</a></li>
<li><a href="http://ad.vgiscience.org/yfcc_gridagg/03_yfcc_gridagg_hll.html">03_yfcc_gridagg_hll.html</a></li>
<li><a href="http://ad.vgiscience.org/yfcc_gridagg/04_interpretation.html">04_interpretation.html</a></li>
</ul>
<p>There are two additional HTMLs produced in notebooks:</p>
<ul>
<li><a href="http://ad.vgiscience.org/yfcc_gridagg/yfcc_compare_raw_hll.html">yfcc_compare_raw_hll.html</a> includes all figures and allows to compare raw/HLL through HTML tabs.</li>
<li><a href="http://ad.vgiscience.org/yfcc_gridagg/yfcc_usercount_est.html">yfcc_usercount_est.html</a> interactive map of worldwide user count, for comparison of raw/HLL per bin.</li>
</ul>
<p>There are a couple of additional notebooks available:</p>
<ul>
<li>the <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/yfcc/01_hll_intro.html">HLL Introduction (01_hll_intro.ipynb)</a> explains basic concepts and tools for working with the privacy-aware lbsn data</li>
<li>the <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/yfcc/Privacy_test_alex.html">Privacy Test Alex</a> explores two possible attack vectors through an intersection attack</li>
<li>the <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/yfcc/Figure2_outlier_analysis.html">Outlier Analysis</a> shows how to analyze outliers across multiple geo-accuracy levels (Geohash)</li>
</ul>
<style>
table, tr, td {
    border: none !important;
}
</style>
<table cellspacing="0" cellpadding="0" style="width:100%;border:none">
  <tr>
  <td>raw:</td>
  </tr>
  <tr>
    <td><img style="width:100%;background:white"  src="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/yfcc/02_yfcc_gridagg_raw_files/02_yfcc_gridagg_raw_122_0.png"/></td>
    <td><img style="width:100%;background:white"  src="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/yfcc/02_yfcc_gridagg_raw_files/02_yfcc_gridagg_raw_143_0.png"/></td>
    <td><img style="width:100%;background:white"  src="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/yfcc/02_yfcc_gridagg_raw_files/02_yfcc_gridagg_raw_157_0.png"/></td>
  </tr>
  <tr>
  <td>hll:</td>
  </tr>
  <tr>
    <td><img style="width:100%;background:white"  src="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/yfcc/03_yfcc_gridagg_hll_files/03_yfcc_gridagg_hll_121_0.png"/></td>
    <td><img style="width:100%;background:white"  src="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/yfcc/03_yfcc_gridagg_hll_files/03_yfcc_gridagg_hll_137_0.png"/></td>
    <td><img style="width:100%;background:white"  src="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/yfcc/03_yfcc_gridagg_hll_files/03_yfcc_gridagg_hll_147_0.png"/></td>
  </tr>
</table>]]></content></item><item><title>Slides meinGrün 4. Konsortiumstreffen, Online</title><link>https://links.alexanderdunkel.com/posts/2020-04-24-konsortiumstreffen-meingruen-online/</link><pubDate>Fri, 24 Apr 2020 10:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2020-04-24-konsortiumstreffen-meingruen-online/</guid><description>&lt;ul&gt;
&lt;li&gt;Topic: &lt;strong&gt;meinGrün: Zusammenfassung IfK Beiträge&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/ifk-meingruen-konsortiumstreffen/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/slide_assets/meinGr%C3%BCn%204.%20Konsortiumstreffen,%20IfK%20(Social%20Media).pdf"&gt;Presentation-PDF (Archive File)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2020-04-24_meingruen_konsortiumstreffen_pres.png" alt=""&gt;
&lt;/p&gt;</description><content type="html"><![CDATA[<ul>
<li>Topic: <strong>meinGrün: Zusammenfassung IfK Beiträge</strong></li>
<li><a href="https://ad.vgiscience.org/ifk-meingruen-konsortiumstreffen/">Slides</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/slide_assets/meinGr%C3%BCn%204.%20Konsortiumstreffen,%20IfK%20(Social%20Media).pdf">Presentation-PDF (Archive File)</a></li>
</ul>
<p>
  <img src="/imgs/2020-04-24_meingruen_konsortiumstreffen_pres.png" alt="">
</p>
]]></content></item><item><title>Tag Maps Lecture &amp; Workshop, Mobile Cartography</title><link>https://links.alexanderdunkel.com/posts/2020-01-23-tagmaps-lecture/</link><pubDate>Thu, 23 Jan 2020 10:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2020-01-23-tagmaps-lecture/</guid><description>&lt;ul&gt;
&lt;li&gt;Revised Lecture, &lt;strong&gt;Development of custom mapping techniques for user-generated content&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/tagmaps-lecture//"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/tagmapsworkshop_tud"&gt;Corresponding Workshop Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2020-01-23_tagmaps_lecture.png" alt=""&gt;
&lt;/p&gt;</description><content type="html"><![CDATA[<ul>
<li>Revised Lecture, <strong>Development of custom mapping techniques for user-generated content</strong></li>
<li><a href="https://ad.vgiscience.org/tagmaps-lecture//">Slides</a></li>
<li><a href="https://ad.vgiscience.org/tagmapsworkshop_tud">Corresponding Workshop Slides</a></li>
</ul>
<p>
  <img src="/imgs/2020-01-23_tagmaps_lecture.png" alt="">
</p>
]]></content></item><item><title>Slides Städtebau Decoding the City</title><link>https://links.alexanderdunkel.com/posts/2019-12-04-staedtebau-data-city/</link><pubDate>Wed, 04 Dec 2019 11:10:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-12-04-staedtebau-data-city/</guid><description>&lt;ul&gt;
&lt;li&gt;Topic: &lt;strong&gt;Visualizing the perceived Environment from crowdsourced Social Media data&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/decoding-the-city/#/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<ul>
<li>Topic: <strong>Visualizing the perceived Environment from crowdsourced Social Media data</strong></li>
<li><a href="https://ad.vgiscience.org/decoding-the-city/#/">Slides</a></li>
</ul>
]]></content></item><item><title>Slides meinGrün Konsortiumstreffen IÖR</title><link>https://links.alexanderdunkel.com/posts/2019-10-17-konsortiumstreffen-meingruen/</link><pubDate>Thu, 17 Oct 2019 09:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-10-17-konsortiumstreffen-meingruen/</guid><description>&lt;ul&gt;
&lt;li&gt;Topic: &lt;strong&gt;meinGrün: ergänzende Social Media Analyse&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/meingruen-konsortiumstreffen/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<ul>
<li>Topic: <strong>meinGrün: ergänzende Social Media Analyse</strong></li>
<li><a href="https://ad.vgiscience.org/meingruen-konsortiumstreffen/">Slides</a></li>
</ul>
]]></content></item><item><title>Slides Nationalpark Berchtesgaden</title><link>https://links.alexanderdunkel.com/posts/2019-10-15-nationalpark-berchtesgaden/</link><pubDate>Tue, 15 Oct 2019 13:30:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-10-15-nationalpark-berchtesgaden/</guid><description>&lt;p&gt;Click on the image to see the full list of vantage points examined:
&lt;a href="https://links.alexanderdunkel.com/imgs/mass_invasion_v2.png"&gt;
&lt;img src="https://ad.vgiscience.org/nationalpark-berchtesgaden/images/comparison_pois.png" alt=""&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Topic: &lt;strong&gt;Social Media Analyse &amp;amp; ThePlink App&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/nationalpark-berchtesgaden/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Click on the image to see the full list of vantage points examined:
<a href="/imgs/mass_invasion_v2.png">
  <img src="https://ad.vgiscience.org/nationalpark-berchtesgaden/images/comparison_pois.png" alt="">
</a></p>
<ul>
<li>Topic: <strong>Social Media Analyse &amp; ThePlink App</strong></li>
<li><a href="https://ad.vgiscience.org/nationalpark-berchtesgaden/">Slides</a></li>
</ul>
]]></content></item><item><title>Freiberg Tag Map: Presentation</title><link>https://links.alexanderdunkel.com/posts/2019-10-07-freiberg-presentation/</link><pubDate>Sun, 06 Oct 2019 09:30:09 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-10-07-freiberg-presentation/</guid><description>&lt;p&gt;
&lt;img src="https://ad.vgiscience.org/bergakademie-freiberg/images/Freiberg_TagMap_Map1_Overview.png" alt=""&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/bergakademie-freiberg/#/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Discussion notes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;hellip;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>
  <img src="https://ad.vgiscience.org/bergakademie-freiberg/images/Freiberg_TagMap_Map1_Overview.png" alt="">
</p>
<ul>
<li><a href="https://ad.vgiscience.org/bergakademie-freiberg/#/">Slides</a></li>
</ul>
<p>Discussion notes:</p>
<ul>
<li>&hellip;</li>
</ul>
]]></content></item><item><title>EvaVGI-2-Meeting: Presentation</title><link>https://links.alexanderdunkel.com/posts/2019-09-09-evavgi2-meeting/</link><pubDate>Mon, 09 Sep 2019 09:30:09 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-09-09-evavgi2-meeting/</guid><description>&lt;p&gt;
&lt;img src="https://ad.vgiscience.org/evavgi-v2-slides/images/triangu.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://ad.vgiscience.org/evavgi-v2-slides/images/interactive_link.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://ad.vgiscience.org/evavgi-v2-slides/images/hll_comp.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://ad.vgiscience.org/evavgi-v2-slides/images/hll_continuum.png" alt=""&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/evavgi-v2-slides/#/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Discussion notes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;hellip;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>
  <img src="https://ad.vgiscience.org/evavgi-v2-slides/images/triangu.png" alt="">
</p>
<p>
  <img src="https://ad.vgiscience.org/evavgi-v2-slides/images/interactive_link.png" alt="">
</p>
<p>
  <img src="https://ad.vgiscience.org/evavgi-v2-slides/images/hll_comp.png" alt="">
</p>
<p>
  <img src="https://ad.vgiscience.org/evavgi-v2-slides/images/hll_continuum.png" alt="">
</p>
<ul>
<li><a href="https://ad.vgiscience.org/evavgi-v2-slides/#/">Slides</a></li>
</ul>
<p>Discussion notes:</p>
<ul>
<li>&hellip;</li>
</ul>
]]></content></item><item><title>Social Media Popularity/Frequentation weighting for meinGrün Target Polygons</title><link>https://links.alexanderdunkel.com/posts/2019-09-05-meingruen-poly-mapping/</link><pubDate>Thu, 05 Sep 2019 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-09-05-meingruen-poly-mapping/</guid><description>&lt;p&gt;This page contains information on the process of weighting meinGrün Target shapes with additional data derived from Location Based Social Media (LBSM)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;External Links:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/zielgeometrien-intersect_v6.html"&gt;Code Processing (Jupyter NB - Flickr UPL HTML)&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Jupyter Notebook itself + the target shapes available on request&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Interactive maps Dresden (Flickr+Twitter+Instagram)
&lt;em&gt;(in case of viewing problems, check Antivirus or Adblock)&lt;/em&gt;
&lt;ul&gt;
&lt;li&gt;L0: &lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-11_Dresden_weighted_green_targets_L0_v4.1.html"&gt;UP Normalized&lt;/a&gt;, &lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2020-03-31_Dresden_green_targets_v5_L0_weighted_v1.2.html"&gt;Version 5.0 (2020-03-31)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;L1: &lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-11_Dresden_weighted_green_targets_L1_v4.1.html"&gt;UP Normalized&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;L2: &lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-11_Dresden_weighted_green_targets_L2_v4.1.html"&gt;UP Normalized&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;L3: &lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-11_Dresden_weighted_green_targets_L3_v4.1.html"&gt;UP Normalized&lt;/a&gt; (&lt;em&gt;careful: can be slow on slow hardware!&lt;/em&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Interactive maps Heidelberg:
&lt;ul&gt;
&lt;li&gt;L0: &lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-12_Heidelberg_green_targets_v4.1_L0_weighted_v1.1.html"&gt;UP Normalized&lt;/a&gt;, &lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2020-03-31_Heidelberg_green_targets_v5_L0_weighted_v1.2.html"&gt;Version 5.0 (2020-03-31)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;L1: &lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-12_Heidelberg_green_targets_v4.1_L1_weighted_v1.1.html"&gt;UP Normalized&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;L2: &lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-12_Heidelberg_green_targets_v4.1_L2_weighted_v1.1.html"&gt;UP Normalized&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;L3: &lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-12_Heidelberg_green_targets_v4.1_L3_weighted_v1.1.html"&gt;UP Normalized&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Summary&lt;/strong&gt;:&lt;/p&gt;</description><content type="html"><![CDATA[<p>This page contains information on the process of weighting meinGrün Target shapes with additional data derived from Location Based Social Media (LBSM)</p>
<p><strong>External Links:</strong></p>
<ul>
<li><a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/zielgeometrien-intersect_v6.html">Code Processing (Jupyter NB - Flickr UPL HTML)</a>
<ul>
<li>Jupyter Notebook itself + the target shapes available on request</li>
</ul>
</li>
<li>Interactive maps Dresden (Flickr+Twitter+Instagram)
<em>(in case of viewing problems, check Antivirus or Adblock)</em>
<ul>
<li>L0: <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-11_Dresden_weighted_green_targets_L0_v4.1.html">UP Normalized</a>, <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2020-03-31_Dresden_green_targets_v5_L0_weighted_v1.2.html">Version 5.0 (2020-03-31)</a></li>
<li>L1: <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-11_Dresden_weighted_green_targets_L1_v4.1.html">UP Normalized</a></li>
<li>L2: <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-11_Dresden_weighted_green_targets_L2_v4.1.html">UP Normalized</a></li>
<li>L3: <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-11_Dresden_weighted_green_targets_L3_v4.1.html">UP Normalized</a>  (<em>careful: can be slow on slow hardware!</em>)</li>
</ul>
</li>
<li>Interactive maps Heidelberg:
<ul>
<li>L0: <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-12_Heidelberg_green_targets_v4.1_L0_weighted_v1.1.html">UP Normalized</a>, <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2020-03-31_Heidelberg_green_targets_v5_L0_weighted_v1.2.html">Version 5.0 (2020-03-31)</a></li>
<li>L1: <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-12_Heidelberg_green_targets_v4.1_L1_weighted_v1.1.html">UP Normalized</a></li>
<li>L2: <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-12_Heidelberg_green_targets_v4.1_L2_weighted_v1.1.html">UP Normalized</a></li>
<li>L3: <a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/2019-09-12_Heidelberg_green_targets_v4.1_L3_weighted_v1.1.html">UP Normalized</a></li>
</ul>
</li>
</ul>
<p><strong>Summary</strong>:</p>
<p>Overall, extracted tourist and public popularity per green area target appears to match subjective experiences. In Dresden, for example, the following areas are characterized with high frequentation/popularity.</p>
<ul>
<li>Historische Gebäude Altstadt</li>
<li>Elbufer Innenstadt</li>
<li>Blaues Wunde</li>
<li>Fährgarten Johannstadt</li>
<li>Botanischer Garten</li>
<li>Palais im Großen Garten</li>
<li>Hauptbahnhof</li>
<li>Zoo</li>
<li>Neustadt</li>
<li>Elbschlösser</li>
</ul>
<p>
  <img src="/imgs/2019-09-17_Dresden_Center_ArcMap.png" alt="">
</p>
<p>In Heidelberg, popular and highly frequented areas are equally found in the center, around Schloss Heidelberg; and around Schloss Schwetzingen.</p>
<p>
  <img src="/imgs/2019-09-17_Heidelberg_Center_ArcMap.png" alt="">
</p>
<p><strong>Considerations for measuring/ processing data and common pitfalls:</strong></p>
<ul>
<li>
<p>the measure of density of social media posts may be referenced with &ldquo;popularity&rdquo; or &ldquo;overall frequentation&rdquo; (Beliebtheit/Frequentierung),</p>
<p>but there are edge cases where such references don&rsquo;t work well (e.g. event locations that are only highly frequented on specific dates/times)</p>
<ul>
<li>it is unlikely, that any location that has many social media posts is not also frequented highly in reality</li>
<li>however, there may be additional locations that are highly frequented that are not visible on Social Media
<ul>
<li>(e.g. work-places where it is unlikely that people share photos or posts; places that are visited by particular age-groups not represented on social media etc.)</li>
</ul>
</li>
<li>most, but not all of these locations where many photos are shared from, do also have some aesthetic quality
<ul>
<li>there may be locations, however, where many photos are shared from that would not be considered of high aesthetic quality</li>
</ul>
</li>
</ul>
</li>
<li>
<p>it is intended to improve these initial evaluations based on topic and time filtering , which may</p>
<ul>
<li>improve the measure of &ldquo;popularity&rdquo; or &ldquo;overall frequentation&rdquo;
<ul>
<li>e.g. exclude negatively perceived topics; or information that is not relevant to the experience of green spaces (e.g. &ldquo;shopping&rdquo;)</li>
<li>e.g. exclude temporal outliers such as event areas that are only interesting during certain times</li>
</ul>
</li>
<li>used to extract more detailed measurements for specific contexts
<ul>
<li>e.g. only posts for certain activities etc.</li>
<li>specific filter for extracting &lsquo;aesthetic&rsquo; attribution of meaning</li>
</ul>
</li>
</ul>
</li>
<li>
<p>social media is generally biased towards tourist experiences (on average, about 70% of posts are from tourists)</p>
<ul>
<li>filter based on user origin may be used to produce filtered results for &ldquo;locals&rdquo; and &ldquo;tourist&rdquo;</li>
</ul>
</li>
<li>
<p>Twitter is not fully converted into our common LBSM structure.</p>
<ul>
<li>We&rsquo;re expecting to end the conversion of about 5TB of Twitter archive by the end of September 2019</li>
</ul>
</li>
</ul>
<p>Notwithstanding these (current) limitations, the process of relating a post to a target
shape presented here will remain the same for all approaches:</p>
<ul>
<li>for 1st level target shapes (=L0), direct intersection (including a search radius) will be used</li>
<li>for 2nd and 3rd level target shapes and raster points (L1-L3), assignment will be handled using an
intermediate Kernel Density Estimation Layer, as a means to avoid outliers</li>
</ul>
<p><strong>Two datasets are explored here:</strong></p>
<ul>
<li>
<p>Filtered &amp; Cleaned up data (referred to as</p>
<p>Flickr UPL in the following):</p>
<ul>
<li>Flickr User Post Locations (Dresden: 66.000 UPL; Heidelberg: 29.000 UPL)</li>
<li>this data is of high quality, has been cleaned up and normalized based on UPL measurement</li>
<li>normalization based on UPL is only for high geoaccuracy data, which is only available for a subset
of the LBSM posts (most Flickr posts, some Twitter posts, no Instagram posts)</li>
</ul>
</li>
<li>
<p>Raw data:</p>
<ul>
<li>Flickr + Twitter + Instagram User Posts (Dresden: about 950.000 UP; Heidelberg about 479.000 UP)</li>
<li>as a means to improve the data representativity, using this source it is possible to take more data into account</li>
<li>this comes with the caveat of having to deal with lower geoaccuracies and other inaccuracies
<ul>
<li>for example, Instagram data is user-assigned to &ldquo;places&rdquo;, whereas a place can be everything
(e.g. Instagram places exist for &ldquo;Dresden&rdquo;, &ldquo;Germany&rdquo;, &ldquo;Saxony&rdquo; and &ldquo;Home Sweet Home&rdquo;,
with each of these places having only one lat-lng coordinate-pair assigned)</li>
</ul>
</li>
<li>we&rsquo;re working on improving this extended source of information, at the moment,
use information with caution</li>
</ul>
</li>
</ul>
<p><strong>Abbreviations:</strong></p>
<ul>
<li>L0-L3: These are the meinGrün target shape levels
<ul>
<li>L0 - main targets (<em>targets.json</em>)</li>
<li>L1 - main target parts (<em>targetParts_Wege.json</em>)</li>
<li>L2 - mein target LC parts (<em>targetParts_Wege_LC.json</em>)</li>
<li>L3 - main target LULC parts (<em>targetParts_Wege_LULC.json</em>)</li>
</ul>
</li>
<li>UP, UPL, UD: These are measurements for Social Media posts
<ul>
<li>UP: Number of Photos</li>
<li>UD: User days (each user is only counted once per day)</li>
<li>UPL: User Post Locations (each user is only counted once per distinct location)</li>
</ul>
</li>
<li>A0, A1, A2, A3: These are short references to areas selected as example regions below for Heidelberg and Dresden</li>
</ul>
<p><strong>Data Structure Results:</strong></p>
<p>Filename conventions for results: filenames follow the following pattern:</p>
<pre tabindex="0"><code>filename = {TODAY}_meingruenshapes_{TARGETSHAPE_VERSION}_{CITY_NAME.lower()}_{LEVEL}_weighted_{INTERSECT_VERSION}
</code></pre><p>where:</p>
<ul>
<li><code>{TODAY}</code> - the date of processing (yyyy-mm-dd)</li>
<li><code>{TARGETSHAPE_VERSION}</code> - version of target shapes (e.g. as of 2019-09-12, <strong>v4.1</strong> is the most recent version)</li>
<li><code>{CITY_NAME.lower()}</code> - either Dresden or Heidelberg</li>
<li><code>{LEVEL}</code> - the target shape level (L0-L3, see above)</li>
<li><code>{INTERSECT_VERSION}</code> - the version of the intersection code used, as of 2019-09-12, <strong>v1.1</strong> is the most recent version</li>
</ul>
<p>Columns:</p>
<p>Both shapefile and CSV include the following columns</p>
<ul>
<li>TARGET_ID - reference ID to input target shapes</li>
<li>UP - Number of total user posts per shape</li>
<li>UP_Flickr - Number of total Flickr user posts per shape</li>
<li>UP_Twitter - Number of total Twitter user posts per shape</li>
<li>UP_Instagram - Number of total Instagram user posts per shape</li>
<li>UP_Norm - Normalized/Weighted total User posts based on Area, interpolated to 1-1000 range</li>
<li><strong>UP_Norm_Origin - Normalized/Weighted total User posts based on Area and Source of Origin, interpolated to 1-1000 range</strong></li>
<li>popularity - Natural breaks applied to UP_Norm_Origin for generating 6 bins of classes. These classes are suggestions for the overall city scale (but not meaningful when zoomed in):
<ul>
<li><strong>5 : &lsquo;very high&rsquo;,</strong></li>
<li><strong>4 : &lsquo;high&rsquo;,</strong></li>
<li><strong>3 : &lsquo;average&rsquo;,</strong></li>
<li><strong>2 : &rsquo;low&rsquo;,</strong></li>
<li><strong>1 : &lsquo;very low&rsquo;,</strong></li>
<li><strong>0 : &rsquo;no data&rsquo;</strong></li>
</ul>
</li>
</ul>
<p><strong>Column UP_Norm_Origin is the primary meinGrün Indicator for Frequentation/Popularity</strong></p>
<h1 id="1-data-processing">1. Data processing</h1>
<h2 id="11-intersection-examples-l0">1.1 Intersection Examples (L0)</h2>
<p>The intersection, as it is implemented uses a search radius of 25m for Flickr and 50m for Instagram and Twitter surrounding meinGrün Target Shapes.
The coordinates of Twitter and Instagram posts are usually less accurate, which is why a larger search radius is used for these two. The Graphic below
illustrates a Target Shape (blue) in the Park of Schwetzingen Palace, the two Search_Radius distances (yellow and red dashed lines) and the Social Media
posts (yellow) that were preselected using a bounding box. All Twitter and Instagram posts inside the orange dashed lines will be counted. For Flickr,
every post inside the red dashed line is counted (25m).</p>
<p>![](/imgs/2019-09-17_Heidelberg_Selection (1).png)</p>
<p><strong>The images below illustrate a range of other test cases, with short discussions, for intersecting post with target shapes.</strong></p>
<p>The following map shows a meinGrün Target Shape and two social media posts (yellow dots), which will be counted for the given shape.</p>
<p>
  <img src="/imgs/2019-09-17_03_b.png" alt="">
</p>
<p>The question whether it is better to use exact intersection or intersection based on a search radius is not clear cut for all examples.</p>
<p>In the following case, one could argue that both solutions work. We decided for search radius in this case,
because there clearly is a relation between the post and the two flower beds in the Zwinger.</p>
<p>Using a search radius of 25 m means all 3 target shapes will be incremented by 1 User Post Location (UPL), the assignment in this case therefore bears some ambiguity.</p>
<p>
  <img src="/imgs/2019-09-17_05.png" alt="">
</p>
<p>Other cases are more clear-cut:</p>
<p>
  <img src="/imgs/2019-09-17_05_b.png" alt="">
</p>
<p>Some issues arise, when there&rsquo;re complex and large target polygons:
(at this level of target shapes, there is not much that can be done - we&rsquo;ll illustrate the fine grained target shapes later)</p>
<ul>
<li>note that this specific example has been resolved by subdividing target shapes of the Großer Garten</li>
</ul>
<p>
  <img src="/imgs/2019-09-17_05_d.png" alt="">
</p>
<p>In the following case, using a search radius is clearly preferred,
since the post location falls in the middle of the Großer Garten target shapes and wouldn&rsquo;t be counted on exact intersection:</p>
<p>
  <img src="/imgs/2019-09-17_05_e.png" alt="">
</p>
<p>This example is again not clear-cut. However, if someone took a photo from these stairs along the Elbe river terrace,
one may argue that the photo is not of the stairs but of the perceived river shore lying in front.
Therefore it makes sense to increment both target shapes.</p>
<p>
  <img src="/imgs/2019-09-17_05_f.png" alt="">
</p>
<p>These are two other edge cases, where accurate assignment to either one of the two shapes seems difficult:</p>
<p>
  <img src="/imgs/2019-09-17_HD3.png" alt="">
</p>
<p>
  <img src="/imgs/2019-09-17_HD4b.png" alt="">
</p>
<p>Another example for L2 Target Layer and 50m Search Radius (Instagram/Twitter):</p>
<p>
  <img src="/imgs/2019-09-17_DD_1.png" alt="">
</p>
<h2 id="12-normalizing-and-weighting-data">1.2 Normalizing and Weighting data</h2>
<p>There are different measurements that provide different insights into social media patterns. What is counted:</p>
<ul>
<li><strong>User Posts (UP):</strong>
A User Post is the simplest measurement, but it includes also many biases that affect accuracy of results:
- some users and cultural groups always take and share more photos than others, these groups will be over-represented in User Post Measure
- manually geolocated social media posts with low geoaccuracy may distort results,
for example, if a user drops all 200 (e.g.) posts of an album on a single coordinate, the final map may show a misleading peak of user posts in this area
- some topics on social media are typically always represented with more photos than other topics, such as tourist landmarks or places where people and groups frequently meet,
these places will be over-represented in UP measurement</li>
<li><strong>User Days (UD):</strong>
Each user will be counted once per day for each location or meinGrün Target shape. The advantage of using User Days as measurement is that locals will
have a higher effect on results than tourists, because locals usually visit their favorite places consecutively/frequently on multiple days.</li>
<li><strong>User Post Location (UPL):</strong>
UPL count users at each location only once, whereas location can be defined as a tuple of coordinates (lat lng) or other bases such as a &ldquo;meinGrün target shape&rdquo;.
This will specifically reduce the affect of low geoaccuracy information in georeferenced social media posts. For example, when users on Flickr manually
georeference their content, many will simply drop all posts of a photo album on a single coordinate. Counting each photo of these albums separately
will introduce inaccuracies and biases in final results. A UPL simply has all posts of a single user at a single coordinate merged, e.g. a reduced list of terms,
tags and emoji based on global occurrence (i.e. no duplicates).
UPL have the caveat that amount of available data is heavily reduced, therefore UPL are usually not suited for large scale evaluations</li>
</ul>
<p>We calculate these measurements per meinGrün target shape. The resulting table looks similar to this one:</p>
<table>
	<thead>
			<tr>
					<th></th>
					<th>TARGET_ID</th>
					<th>UP</th>
					<th>UD</th>
					<th>UPL</th>
					<th>UP_Instagram</th>
					<th>UP_Flickr</th>
					<th>UP_Twitter</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>24384</td>
					<td>dd_EBK-TSP-OSM_30690</td>
					<td>35621</td>
					<td>28946</td>
					<td>24810</td>
					<td>35054</td>
					<td>567</td>
					<td>0</td>
			</tr>
			<tr>
					<td>1758</td>
					<td>dd_EBK-TSP-OSM_33708</td>
					<td>8011</td>
					<td>6375</td>
					<td>5965</td>
					<td>6983</td>
					<td>1028</td>
					<td>0</td>
			</tr>
			<tr>
					<td>22702</td>
					<td>dd_EBK-TSP-OSM_20688</td>
					<td>37789</td>
					<td>31835</td>
					<td>28202</td>
					<td>34809</td>
					<td>2967</td>
					<td>13</td>
			</tr>
			<tr>
					<td>8449</td>
					<td>dd_EBK-TSP-OSM_26112</td>
					<td>3457</td>
					<td>2375</td>
					<td>1895</td>
					<td>3025</td>
					<td>432</td>
					<td>0</td>
			</tr>
			<tr>
					<td>16013</td>
					<td>dd_EBK-TSP-OSM_24972</td>
					<td>3368</td>
					<td>2368</td>
					<td>1879</td>
					<td>3025</td>
					<td>343</td>
					<td>0</td>
			</tr>
	</tbody>
</table>
<p>It becomes obvious that Instagram dominates results. We need to normalize measurements:</p>
<ul>
<li>using the target shape&rsquo;s area (otherwise, larger shapes would dominate results)</li>
<li>using the overall distribution of service origin
<ul>
<li>For Dresden, the distribution is:
<ul>
<li>Instagram posts have a percentage of: 81.34%</li>
<li>Flickr posts have a percentage of: 18.49%</li>
<li>Twitter posts have a percentage of: 0.17%</li>
</ul>
</li>
<li>For Heidelberg, the distribution is:
<ul>
<li>Instagram posts have a percentage of:  70.52%</li>
<li>Flickr posts have a percentage of: 29.20%</li>
<li>Twitter posts have a percentage of: 0.28%</li>
</ul>
</li>
<li>each data source should have an equal base effect on final results</li>
</ul>
</li>
<li>finally, we manually reduce Twitter &amp; Instagram influence, since these source have overall lower geoaccuracies. Twitter, in addition, can introduce sampling effects due to low data density.
<ul>
<li>therefore, after global origin normalization, we added the following modifiers:
<ul>
<li>40% Influence by Instagram (reduced because Instagram has low geoaccuracy)</li>
<li>50% Influence by Flickr (increased because Flickr featurss highest geoaccuracy)</li>
<li>10% Influence by Twitter (reduced because twitter features sampling noise)</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><strong>Examples Normalization</strong></p>
<p>The following graphics shows the top target shape for Dresden, based on Post Count (UP)</p>
<ul>
<li>yellow: top target polygon without area normalization</li>
<li>red: top target polygon with area normalization</li>
</ul>
<p>
  <img src="/imgs/2019-09-17_DD_94_1.png" alt="">
</p>
<p>The same for the L2 Layer shows that assignment remain stable across different granularities:</p>
<p>
  <img src="/imgs/2019-09-17_DD_ZW.png" alt="">
</p>
<p>In Heidelberg, the difference is more easily visible:</p>
<p>
  <img src="/imgs/2019-09-17_HD_NORM_COMp.png" alt="">
</p>
<p>Final values are stretched to a 1 to 1000 range. This range of values is assigned to a measurement of &ldquo;popularity&rdquo;, based on natural breaks algorithm:</p>
<ul>
<li>very high</li>
<li>high</li>
<li>average</li>
<li>low</li>
<li>very low</li>
<li>no data</li>
</ul>
<p><strong>Example Results</strong></p>
<p>Lets compare some of these results.</p>
<p>Interactive maps:</p>
<h1 id="2-results">2. Results</h1>
<h2 id="21-dresden">2.1 Dresden</h2>
<h3 id="211-a1">2.1.1 A1</h3>
<ul>
<li><strong>L0</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_Dresden_A1_L0.png" alt="">
</p>
<ul>
<li><strong>L1</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_Dresden_A1_L1.png" alt="">
</p>
<ul>
<li><strong>L2</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_Dresden_A1_L2.png" alt="">
</p>
<ul>
<li><strong>L3</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_Dresden_A1_L3.png" alt="">
</p>
<h3 id="212-a2">2.1.2 A2</h3>
<ul>
<li><strong>L0</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_Dresden_A2_L0.png" alt="">
</p>
<ul>
<li><strong>L1</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_Dresden_A2_L1.png" alt="">
</p>
<ul>
<li><strong>L2</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_Dresden_A2_L2.png" alt="">
</p>
<ul>
<li><strong>L3</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_Dresden_A2_L3.png" alt="">
</p>
<h3 id="213-a3">2.1.3 A3</h3>
<ul>
<li><strong>L0</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_Dresden_A3_L0.png" alt="">
</p>
<ul>
<li><strong>L1</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_Dresden_A3_L1.png" alt="">
</p>
<ul>
<li><strong>L2</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_Dresden_A3_L2.png" alt="">
</p>
<ul>
<li><strong>L3</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_Dresden_A3_L3.png" alt="">
</p>
<h5 id="arcmap-natural-breaks-l3"><strong>ArcMap Natural Breaks (L3):</strong></h5>
<p>
  <img src="/imgs/2019-09-17_Dresden_All_L3.png" alt="">
</p>
<h2 id="22-heidelberg">2.2 Heidelberg</h2>
<h3 id="221-a0">2.2.1 A0</h3>
<ul>
<li><strong>L0</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_HD_All_L0.png" alt="">
</p>
<ul>
<li><strong>L1</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_HD_All_L1.png" alt="">
</p>
<ul>
<li><strong>L2</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_HD_All_L2.png" alt="">
</p>
<ul>
<li><strong>L3</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_HD_All_L3.png" alt="">
</p>
<h3 id="222-a1">2.2.2 A1</h3>
<ul>
<li><strong>L0</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_HD_A0_L0.png" alt="">
</p>
<ul>
<li><strong>L1</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_HD_A0_L1.png" alt="">
</p>
<ul>
<li><strong>L2</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_HD_A0_L2.png" alt="">
</p>
<ul>
<li><strong>L3</strong></li>
</ul>
<p>
  <img src="/imgs/2019-09-17_HD_A0_L3.png" alt="">
</p>
<h2 id="23-selected-areas">2.3 Selected areas</h2>
<p>L1 Level provides a more fine grained picture:</p>
<h3 id="pillnitz">Pillnitz</h3>
<p>
  <img src="/imgs/2019-09-17_DD_3.png" alt="">
</p>
<h3 id="dresden-altstadt">Dresden Altstadt</h3>
<p>
  <img src="/imgs/2019-09-17_DD_2.png" alt="">
</p>
<h3 id="schloss-heidelberg">Schloss Heidelberg</h3>
<p>
  <img src="/imgs/2019-09-17_HD_1.png" alt="">
</p>
<h3 id="schloss-und-schlossgarten-schwetzingen">Schloss und Schlossgarten Schwetzingen</h3>
<p>
  <img src="/imgs/2019-09-17_HD_2.png" alt="">
</p>
<p>.. but also remote places, such as the Babisnauer Pappel, show I higher popularity than surrounding areas:</p>
<p>
  <img src="/imgs/2019-09-17_DD_4.png" alt="">
</p>
<h1 id="3-datasets">3. Datasets</h1>
<p><strong>Exported datasets include:</strong></p>
<ul>
<li>a CSV with column TARGET_ID (meinGrün Target-geometry ref) and LBSM columns
<ul>
<li>UP,UP_Flickr,UP_Twitter,UP_Instagram,UD,UPL,UP_Norm,UP_Norm_Origin,popularity</li>
</ul>
</li>
<li>a Shapefile with the same columns</li>
</ul>
<p><strong>The two recommended measurement:</strong></p>
<ul>
<li><em>popularity</em>: labeled based on natural breaks and UP_Norm_Origin - recommended classes for overall city level</li>
<li><em>UP_Norm_Origin</em>: 1 to 1000 interpolated range weights for Social Media - apply individual classes</li>
</ul>
<p><strong>The exported datasets are available on request.</strong></p>
]]></content></item><item><title>Waynesboro Workshop Presentation: theplink-docker</title><link>https://links.alexanderdunkel.com/posts/2019-06-24-waynesboro-workshop/</link><pubDate>Mon, 24 Jun 2019 11:00:09 -0500</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-06-24-waynesboro-workshop/</guid><description>&lt;ul&gt;
&lt;li&gt;Community Workshop, June 25, 2019, Waynesboro, VA&lt;/li&gt;
&lt;li&gt;Title: A spatial interface to support city planning and local community discourse&lt;/li&gt;
&lt;li&gt;&lt;a href="https://mainstreet21.vgiscience.org/waynesboro-workshop/"&gt;Link&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This was our introduction presentation to the city council of Waynesboro in Virginia, where we will deploy our first instance of theplink-docker app. The app will run at &lt;a href="https://map.waynesboro.va.gov"&gt;map.waynesboro.va.gov&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A picture from our presentation/workshop:&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-06-24_waynesboro-workshop.jpg" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;.. and the city tour afterwards:&lt;br&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-06-24_waynesboro-panorama.jpg" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;This was from the landfill area outlook above Waynesboro, where a community park is planned. On the left, the old Dupont facility can be seen, the city centre lies straight ahead; to the left, where the Appalachian trail traverses, Waynesboro is connected to the Freeway to Charlottesville.&lt;/p&gt;</description><content type="html"><![CDATA[<ul>
<li>Community Workshop, June 25, 2019, Waynesboro, VA</li>
<li>Title: A spatial interface to support city planning and local community discourse</li>
<li><a href="https://mainstreet21.vgiscience.org/waynesboro-workshop/">Link</a></li>
</ul>
<p>This was our introduction presentation to the city council of Waynesboro in Virginia, where we will deploy our first instance of theplink-docker app. The app will run at <a href="https://map.waynesboro.va.gov">map.waynesboro.va.gov</a>.</p>
<p>A picture from our presentation/workshop:</p>
<p>
  <img src="/imgs/2019-06-24_waynesboro-workshop.jpg" alt="">
</p>
<p>.. and the city tour afterwards:<br>

  <img src="/imgs/2019-06-24_waynesboro-panorama.jpg" alt="">
</p>
<p>This was from the landfill area outlook above Waynesboro, where a community park is planned. On the left, the old Dupont facility can be seen, the city centre lies straight ahead; to the left, where the Appalachian trail traverses, Waynesboro is connected to the Freeway to Charlottesville.</p>
]]></content></item><item><title>Part I: Setup Dev Environment in Windows 10/11</title><link>https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10/</link><pubDate>Mon, 27 May 2019 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10/</guid><description>&lt;p&gt;I&amp;rsquo;ve decided to split the blog post on setting up a dev environment in Windows 10/11 and WSL into 3 1/2 parts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10"&gt;Part I&lt;/a&gt;: Setup Dev Environment in Windows&lt;/li&gt;
&lt;li&gt;&lt;a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-wsl-win10"&gt;Part IIa&lt;/a&gt;: Windows Subsystem for Linux (WSL)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-wsl-docker"&gt;Part IIb&lt;/a&gt;: WSL &amp;amp; Docker setup&lt;/li&gt;
&lt;li&gt;&lt;a href="https://links.alexanderdunkel.com/posts/2019-05-27-wsl-software"&gt;Part III&lt;/a&gt;: Installation of additional packages and tools in WSL&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These blog posts serve as ongoing updated notes on how I configured my Windows 10/11
and WSL environment. It&amp;rsquo;s also a way to describe the tools I use as part of my daily
work.&lt;/p&gt;</description><content type="html"><![CDATA[<p>I&rsquo;ve decided to split the blog post on setting up a dev environment in Windows 10/11 and WSL into 3 1/2 parts:</p>
<ul>
<li><a href="/posts/2019-05-27-setup-win10">Part I</a>: Setup Dev Environment in Windows</li>
<li><a href="/posts/2019-05-27-setup-wsl-win10">Part IIa</a>: Windows Subsystem for Linux (WSL)</li>
<li><a href="/posts/2019-05-27-setup-wsl-docker">Part IIb</a>: WSL &amp; Docker setup</li>
<li><a href="/posts/2019-05-27-wsl-software">Part III</a>: Installation of additional packages and tools in WSL</li>
</ul>
<p>These blog posts serve as ongoing updated notes on how I configured my Windows 10/11
and WSL environment. It&rsquo;s also a way to describe the tools I use as part of my daily
work.</p>
<p>Things change frequently here, whenever I spot a better way of doing things, I&rsquo;ll
update these blog posts to remember <em>how</em> I did it. If you follow my examples, make
sure to check version numbers - sometimes the official installation guides have been
updated and this may not be reflected here.</p>
<h1 id="windows-10">Windows 10</h1>
<p>Some general settings:</p>
<ul>
<li>Windows Sound Scheme: &ldquo;No Sound&rdquo;</li>
<li>For easier access to frequently used folders, tools and drives:
<ul>
<li>Taskbar / right-click / add toolbar / &ldquo;This PC&rdquo;
<ul>
<li>right click / use small taskbar icons and disable text/title</li>
</ul>
</li>
<li>add Win7 Quick Launch bar: Taskbar / right-click / add toolbar / <code>%APPDATA%\Microsoft\Internet Explorer\Quick Launch</code><br>

  <img src="/imgs/2019-12-20_win10bar.png" alt="bar-sample">
</li>
</ul>
</li>
<li>Remove User Folders (3D Objects and other silly stuff):
<ul>
<li>get <a href="files/remove-userfolders-win10.reg">remove-userfolders-win10.reg</a></li>
<li>open it and uncomment any user folder you want to keep (Documents and Pictures is commented out - i.e. kept)</li>
<li>run it - stupid user folders gone &#x1f44d;</li>
</ul>
</li>
<li>Make Windows 10 accept file paths over 260 characters (<a href="https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/">source</a>:
<ul>
<li>Remove limit with <a href="files/Remove260CharacterPathLimit.reg">this</a> registry file<br>
(- Restore limit with <a href="files/Restore260CharacterPathLimit(Default).reg">this</a> registry file)</li>
</ul>
</li>
<li>Windows Bloatware &amp; Privacy settings:
<ul>
<li>I apply the <code>Standard</code> settings from <a href="https://github.com/undergroundwires/privacy.sexy">https://privacy.sexy/</a> (<a href="https://github.com/undergroundwires/privacy.sexy">Github Repo</a>), to get a minimum set of privacy in Windows 10/11</li>
</ul>
</li>
<li>Disable Windows Search completely: The Windows Search indexer uses a lot of resources. I don&rsquo;t use Windows Search, since the early days of Windows in the 1990s, Windows Search has never worked for me. It was not capable of finding even and direct simple file name matches. I use bash in WSL1 to search my Windows partitions.
<ul>
<li>Open File Explorer</li>
<li>Right-click on your hard drive(s) (Usually C), and click Properties.</li>
<li>Uncheck the box next to <code>Allow files on this drive to have contents indexed in addition to file properties</code>.</li>
<li>Click on OK.</li>
</ul>
</li>
</ul>
<h1 id="chocolatey">Chocolatey</h1>
<p>For managing and updating my Windows Software, I prefer <a href="https://chocolatey.org/">Chocolatey package manager</a>. Choco will configure everything without manual need to intervene - default settings are mostly following the principle of <strong>sane defaults</strong>, which means: choose whats least interrupting.</p>
<p>To install Chcolatey:</p>
<ul>
<li>Open cmd with administrator privileges:
<ul>
<li>in Windows 10, click on start (or hit the ⊞ Win-Key), type &ldquo;cmd&rdquo;, right click on <strong>Open Command Prompt</strong> and select &ldquo;Run as Administrator&rdquo; 
  <img src="/imgs/2019-05-23_cmd-run-as-admin.png" alt="">
</li>
</ul>
</li>
<li>enter the following command (taken from the choco <a href="https://chocolatey.org/install">installation instructions</a>):</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">@<span class="s2">&#34;%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe&#34;</span> -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command <span class="s2">&#34;iex ((New-Object System.Net.WebClient).DownloadString(&#39;https://chocolatey.org/install.ps1&#39;))&#34;</span> <span class="o">&amp;&amp;</span> SET <span class="s2">&#34;PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin&#34;</span>
</span></span></code></pre></div><ul>
<li>Once choco is installed, restart the administrator console once to make <code>choco</code> available as a command</li>
<li>Now you can install packages, e.g. Firefox with <code>choco install firefox</code></li>
<li>I suggest using <strong>choco</strong> for any software install on Windows, simply run <code>choco upgrade all -Y</code> once a week to keep all your software up to date</li>
</ul>
<h2 id="create-a-shortcut-choco-update-all">Create a shortcut &ldquo;Choco Update All&rdquo;</h2>
<p>To create a shortcut to update all Windows Software installed with choco, create a shortcut (e.g. on Desktop) and add the following target:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">C<span class="p">:</span><span class="nl">\Windows\System32\cmd.exe</span><span class="c1"> /K &#34;choco upgrade all -Y&#34;</span>
</span></span></code></pre></div><p>In addition:</p>
<ul>
<li>right click/ properties/ advanced</li>
<li>Check &ldquo;Run as Administrator&rdquo;</li>
</ul>
<p>Further, at TUD, we are required to submit a list of all installed software daily to a central unit, using <a href="https://github.com/glpi-project">GLPI</a>.
I don&rsquo;t like the GLPI agent running all the time in the background, which is why I disabled it to send a manual
update through my choco-update-all shortcut every morning, after updates are finished:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">C<span class="p">:</span><span class="nl">\Windows\System32\cmd.exe</span><span class="c1"> /K &#34;choco upgrade all -Y &amp;&amp; cd C:\Program files\GLPI-Agent &amp;&amp; glpi-inventory --json &gt; inventory.json &amp;&amp; glpi-injector --verbose --debug --file inventory.json --url https://glpi.tu-dresden.de/marketplace/glpiinventory/&#34;</span>
</span></span></code></pre></div><h2 id="the-tools-i-use">The tools I use</h2>
<p>The following is a list of tools I installed with choco and the additional settings for some:</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Type e.g. <code>choco install googlechrome</code> to install apps of the list below. Replace <code>googlechrome</code> with the app name.</p>
</div>
</aside> 
<ul>
<li>Browsers:
<ul>
<li>
<p>I prefer having a variety of browsers, for different purposes and testing</p>
</li>
<li>
<p><code>googlechrome</code> (-&gt; <code>choco install googlechrome</code>)</p>
<ul>
<li>disable password, language, autfill etc.</li>
<li>install momentum (default screen)</li>
<li>extensions:
<ul>
<li><a href="https://momentumdash.com/">momentum</a></li>
<li><a href="https://github.com/OhMyGuus/I-Still-Dont-Care-About-Cookies">I still don&rsquo;t care about cookies</a>
<ul>
<li>Note: the original extension was bought by Avast; better avoid</li>
</ul>
</li>
<li><a href="https://github.com/SimonBrazell/privacy-redirect">Privacy Redirect</a></li>
<li><a href="https://ublockorigin.com/">uBlock Origin</a>
<ul>
<li>Allow in Incognito Mode</li>
</ul>
</li>
</ul>
</li>
<li>disable push notifications:
<ol>
<li><a href="chrome://settings/content/notifications">chrome://settings/content/notifications</a> (copy &amp; paste this link, direct click is disallowed)</li>
<li>Scroll down and click <strong>Advanced</strong></li>
<li>Click <strong>content settings</strong></li>
<li>Click <strong>Notifications</strong></li>
<li>Next to the <strong>Ask before sending (recommended)</strong> text, click the toggle button. It should now say Blocked.</li>
</ol>
</li>
<li>set standard language to English:
<ol>
<li>Chrome will automatically display in the default system language for your computer.</li>
<li><a href="chrome://settings/languages">chrome://settings/languages</a></li>
<li>Next to the language you&rsquo;d like to use, click &ldquo;Move to the Top&rdquo;.</li>
</ol>
</li>
<li>disable &ldquo;Google Translate&rdquo;</li>
<li>disable &ldquo;Payment Methods&rdquo;</li>
<li>disable &ldquo;Addresses and more&rdquo;</li>
<li>disable &ldquo;Google Password Manager&rdquo;</li>
<li>disable &ldquo;Sites can ask for your Location&rdquo;</li>
<li>disable &ldquo;Ad topics&rdquo;</li>
<li>disable &ldquo;Site-suggested ads&rdquo;</li>
<li>disable &ldquo;Ad measurements&rdquo;</li>
<li>shortcuts:
<ul>
<li><kbd>CTRL+SHIFT+S</kbd> - Capture Full Size Webpage Screenshot</li>
</ul>
</li>
<li><a href="https://www.webshare.io/blog/how-to-configure-proxies-on-chrome">webshare.io Extension</a>: For avoiding the increasingly used geoblocks, I prefer a SOCKS5 Proxy over VPN because it is more lightweight. The webshare.io proxy service
offers a dropdown selection for quickly chosing the country to proxy to.</li>
</ul>
</li>
<li>
<p><code>firefox</code></p>
<ul>
<li>same extensions and settings as for chrome</li>
<li>I generally follow the recommendations for Firefox setup from <a href="https://digitalcourage.de/digitale-selbstverteidigung/sicher-surfen-pc">Digitalcourage</a></li>
<li>Specific settings:
<ul>
<li>&ldquo;Bookmarks toolbar&rdquo;: Never show</li>
<li>type <code>about:config</code>
<ul>
<li>set <code>browser.urlbar.autoFill.adaptiveHistory.enabled</code> to <code>true</code>
<ul>
<li>this will enable URL autocomplete as it is available in Chrome</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<p><code>chromium</code></p>
</li>
<li>
<p><code>microsoft-edge</code></p>
<ul>
<li><code>edge://settings/languages</code> &gt; <code>Use writing assistance</code> &gt; Select <code>Basic</code></li>
<li><code>edge://flags/#edge-show-feature-recommendations</code> &gt; Disable <code>Show feature and workflow recommendations</code></li>
<li>Disable/Remove &ldquo;discover&rdquo; Button:
<ul>
<li><code>regedit</code></li>
<li><code>HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft</code></li>
<li>add a key (folder) <code>Edge</code>, add <code>DWORD</code> with name <code>HubsSidebarEnabled</code> and a value of <code>0</code>.</li>
<li>in Edge, go to <code>edge://policy</code> and click on <code>Reload Policies</code></li>
</ul>
</li>
<li>Prevent microsoft-edge from hijacking PDF-Default-App <a href="https://github.com/sumatrapdfreader/sumatrapdf/discussions/2707#discussioncomment-3813435">1</a>:</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl"><span class="n">reg</span> <span class="n">add</span> <span class="s2">&#34;HKLM\Software\Policies\Microsoft\Edge&#34;</span> <span class="p">/</span><span class="n">v</span> <span class="s2">&#34;AlwaysOpenPdfExternally&#34;</span> <span class="p">/</span><span class="n">t</span> <span class="n">REG_DWORD</span> <span class="p">/</span><span class="n">d</span> <span class="s2">&#34;1&#34;</span> <span class="p">/</span><span class="n">f</span>
</span></span><span class="line"><span class="cl"><span class="n">reg</span> <span class="n">add</span> <span class="s2">&#34;HKLM\Software\Policies\Microsoft\Edge&#34;</span> <span class="p">/</span><span class="n">v</span> <span class="s2">&#34;ShowPDFDefaultRecommendationsEnabled&#34;</span> <span class="p">/</span><span class="n">t</span> <span class="n">REG_DWORD</span> <span class="p">/</span><span class="n">d</span> <span class="s2">&#34;0&#34;</span> <span class="p">/</span><span class="n">f</span>
</span></span></code></pre></div></li>
<li>
<p><code>mullvad</code></p>
<ul>
<li>I added this browser recently to my list and now use it in combination with their VPN Service ($5/month), which lets me avoid geoblocking and also provides the best privacy</li>
<li>my choice was based on a quick review of <a href="https://duckduckgo.com/?t=h_&amp;q=mullvad+site%3Anews.ycombinator.com&amp;ia=web">Hacker News comments</a> and <a href="https://www.kuketz-blog.de/sichere-und-datenschutzfreundliche-browser-meine-empfehlungen-teil-1/">this blog post</a></li>
<li>under <code>about:preferences#privacy</code>, enable (at least) the <code>safer</code> mode (no js on http sites, media is click-to-play)</li>
</ul>
</li>
</ul>
</li>
<li><code>docker-desktop</code> (software virtualization)</li>
<li><code>adobereader</code> - Adobe Acrobat PDF Reader
<ul>
<li>Hide bookmark and tools pane by default:
<ol>
<li>Go to Edit &gt; Preferences &gt; Documents, and then select &ldquo;Restore last view settings when reopening Documents&rdquo;.</li>
<li>Open a PDF document in Reader, and then collapse the Tools pane.</li>
<li>Click OK. Relaunch Acrobat Reader. Acrobat Reader now remembers the state of the Tools pane.</li>
</ol>
</li>
</ul>
</li>
<li><code>keypirinha</code> (awesome tool to quick open any app with Alt+Space)
<ul>
<li>type &ldquo;kconfig&rdquo; in keypirinha, to open User Config File, add:
<pre tabindex="0"><code class="language-conf" data-lang="conf">[app]
hotkey_run = Alt+Space
launch_at_startup = yes
</code></pre></li>
<li>I also add manual shortlinks to webpages I often need to open, with <a href="">a trick</a>
<ul>
<li>e.g. <code>microsoft-edge:http://localhost:4444</code> (my Docker-based pgadmin)</li>
<li>type this into the Keypirinha search box, add a keyword, e.g. <code>#pg</code>, press enter</li>
<li>now, whenever you want to open the webpage again, just type the keyword:

  <img src="/imgs/pg.webp" alt="">
</li>
</ul>
</li>
</ul>
</li>
<li><code>nextcloud-client</code>
<ul>
<li>the Windows nextcloud-client can be buggy after a new release</li>
<li>I usually pin stable versions and update manually</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">choco install nextcloud-client --version=3.17.3 -y
</span></span><span class="line"><span class="cl">choco pin add -n=nextcloud-client #prevent it from being accidentally updated
</span></span><span class="line"><span class="cl">...
</span></span><span class="line"><span class="cl">choco pin remove -n=nextcloud-client #once a fix is available
</span></span></code></pre></div></li>
<li><code>notepadplusplus</code> (quick text editor)
<ul>
<li>vscode-dark2015 style: <a href="https://github.com/Ludomancer/VS2015-Dark-Npp">https://github.com/Ludomancer/VS2015-Dark-Npp</a>
<ul>
<li>store to <code>%APPDATA%\Notepad++\themes</code></li>
<li>activate <code>global background color</code> in settings</li>
</ul>
</li>
<li>markdown-zenburn language: <a href="https://github.com/Edditoria/markdown-plus-plus">https://github.com/Edditoria/markdown-plus-plus</a>
<ul>
<li>store to <code>%APPDATA%\Notepad++\userDefineLangs</code></li>
</ul>
</li>
<li>under <code>Preferences / Backup</code> disable <code>Remember current session for next launch</code></li>
<li>under <code>Preferences / New Document</code>, select <code>Unix (LF)</code> for the standard Format Line ending</li>
<li>Settings / Preferences / Language &gt; &ldquo;Replace Tab by Space&rdquo;</li>
<li>Plugins:
<ul>
<li>Compare</li>
<li>DSpellCheck</li>
<li>JSON Viewer</li>
<li>JSTool</li>
<li>MarkdownViewer++</li>
</ul>
</li>
</ul>
</li>
<li><code>choco install irfanview --package-parameters=&quot;'/assoc=1'&quot;</code>, for image file association
<ul>
<li>also remove the default Windows &ldquo;Photo App&rdquo;:
<ul>
<li>Elevated Powershell: <code>Get-AppxPackage -allusers *photos* | Remove-AppxPackage</code></li>
</ul>
</li>
<li>add <a href="https://www.irfanview.com/64bit.htm">64-bit Plugins</a> to <code>C:\Program Files\IrfanView\Plugins</code></li>
</ul>
</li>
<li><code>libreoffice-still</code>
<ul>
<li><code>choco install libreoffice-still</code></li>
<li>stable, less frequently updated libre office version</li>
</ul>
</li>
<li><code>vlc</code> (videos)</li>
<li><code>keepass</code> (password manager)
<ul>
<li>Options
<ul>
<li>Lock workspace after 1200 seconds</li>
<li>enable lock global workspace inactivity</li>
<li>enter master key on secure desktop</li>
<li>Shortcut: CTRL+Alt+D</li>
<li>Turn off &ldquo;Play UAC sound when switching to secure desktop&rdquo; (Advanced Menu)</li>
</ul>
</li>
<li>extension: <a href="https://github.com/dlech/KeeAgent">KeeAgent</a> for auto ssh authentication
<ul>
<li><code>choco install keepass-plugin-keeagent</code></li>
</ul>
</li>
</ul>
</li>
<li><code>7zip-zstd</code>
<ul>
<li>the <code>-zstd</code> variant includes modern compression algorithms such as Google Brotli</li>
</ul>
</li>
<li><code>Putty</code> (SSH agent)</li>
<li><code>WinSCP</code> (file transfer)
<ul>
<li>to restore settings, import Site List from backup (<code>WinSCP.ini</code>)</li>
</ul>
</li>
<li><code>windowsfirewallcontrol</code> - This little app is not intrusive and provides the ability to
block unwanted outgoing connections for certain programs
and generally monitor traffic.</li>
<li><code>autohotkey</code>
<ul>
<li>I have two ahk scripts, one for creating folders (date: <code>YYYY-MM-DD</code>), with <kbd>Alt+F</kbd>,
and one for creating files (default: <code>notes.md</code>), with <kbd>Alt+N</kbd></li>
<li>see the <a href="https://gist.github.com/Sieboldianus/11a9c89af4f7444e368d74a6c2dfbaaa">gist</a></li>
</ul>
</li>
<li><code>spacesniffer</code> (awesome tool to identify how your drive space is used)</li>
<li><code>opensans</code> (default font)</li>
<li><code>font-awesome-font</code> (best icon font)</li>
<li><code>rclone</code>
<ul>
<li>I use rclone to sync/copy files from Google Drive (often shared manuscripts etc. by colleagues) to my local drive</li>
<li>Getting a GDrive token requires installing rclone in Windows with chocolatey first</li>
<li>I then use rclone in WSL to sync/copy files, e.g.:</li>
<li>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">rclone copy gdrive:<span class="s2">&#34;Documents&#34;</span> ./ --bwlimit 4325k -P -v --drive-shared-with-me
</span></span></code></pre></div></li>
</ul>
</li>
<li><code>python</code> (system python, but its rarely used)</li>
<li><code>vscode</code> (code editing)
<ul>
<li>accept install WSL extension</li>
<li>test <code>code .</code> in wsl</li>
<li>Settings File Locations
<ul>
<li>in Windows, the user settings file is located here:
<ul>
<li><code>%APPDATA%\Code\User\settings.json</code></li>
<li>you can also hit <code>CTRL+Shift+P</code> and enter <code>Preferences: Configure Language Specific Settings</code> (select any language)</li>
<li>currently, my settings.json file looks like <a href="files/settings.json">this</a>
<ul>
<li>one of the most important settings is <code>&quot;files.eol&quot;: &quot;\n&quot;,</code>, which will use Linux style linebreaks in Windows (Git &amp; WSL compatibility)</li>
</ul>
</li>
</ul>
</li>
<li>I also use the VS Code Extension <code>Settings Sync</code> to sync my <code>settings.json</code> to a private <a href="https://gist.github.com">Gist</a> on Github (called &ldquo;cloudSettings&rdquo;)
<ul>
<li>use SHIFT + ALT + U to upload settings</li>
<li>use SHIFT + ALT + D to download settings (e.g. after a reinstallation of VS Code)</li>
<li>Note: as long as <a href="https://github.com/shanalikhan/code-settings-sync/issues/979">Issue 979</a> is not fixed, this will not work in WSL Remote Development</li>
</ul>
</li>
</ul>
</li>
<li>extensions (WSL - my main development):
<ul>
<li>autoDocstring</li>
<li>Docker</li>
<li>GitLens</li>
<li>pgFormatter</li>
<li>PostgrSQL</li>
<li>pyright</li>
<li>python</li>
<li>Settings sync</li>
<li>shfmt
<ul>
<li>Install dependency with
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">curl -sS https://github.com/mvdan/sh/releases/download/v3.4.3/shfmt_v3.4.3_linux_amd64 <span class="p">|</span> bash
</span></span></code></pre></div></li>
</ul>
</li>
<li>Gruvbox Themes &gt; Gruvbox Hard (Dark)</li>
</ul>
</li>
<li>extensions (Windows):
<ul>
<li>Settings Sync
<ul>
<li>connect to github gist settings</li>
</ul>
</li>
<li>Night Owl</li>
<li>Remote - Containers</li>
<li>Remote - SSH</li>
<li>Remote - WSL</li>
<li>Remote Development</li>
<li>Python</li>
<li>Bracket Pair Colorizer</li>
<li>Vetur (Vue specific)</li>
<li>JavaScript (ES6) code snippets (Vue specific)</li>
</ul>
</li>
</ul>
</li>
<li><code>thunderbird</code> (mail client)</li>
<li><code>typora</code> (markdown docs renderer)
<ul>
<li>File &gt; Preferences.. &gt; Editor
<ul>
<li>LF (Unix Style) Line Endings</li>
</ul>
</li>
<li>File &gt; Preferences.. &gt; General &gt; Open Advanced Settings &gt; conf.user.json
<ul>
<li>Add Custom Key Binding for Source Code Mode:</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-json" data-lang="json"><span class="line"><span class="cl"> <span class="c1">// Custom key binding, which will override the default ones.
</span></span></span><span class="line"><span class="cl"><span class="s2">&#34;keyBinding&#34;</span><span class="err">:</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">    <span class="c1">// for example: 
</span></span></span><span class="line"><span class="cl">    <span class="c1">// &#34;Always on Top&#34;: &#34;Ctrl+Shift+P&#34;
</span></span></span><span class="line"><span class="cl">    <span class="nt">&#34;Source Code Mode&#34;</span><span class="p">:</span> <span class="s2">&#34;Ctrl+Shift+M&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl"><span class="p">}</span><span class="err">,</span>
</span></span></code></pre></div></li>
</ul>
</li>
<li><code>dexpot</code> to switch between multiple virtual desktops</li>
<li><code>drawio</code> for diagram and schema drawing
<ul>
<li>add <a href="https://github.com/webketje/drawio-font-awesome/releases">fontawesome icon set</a>:
<ul>
<li>File / Load Library..</li>
<li><a href="https://cdn.jsdelivr.net/gh/webketje/drawio-font-awesome@online/FontAwesome">https://cdn.jsdelivr.net/gh/webketje/drawio-font-awesome@online/FontAwesome</a></li>
</ul>
</li>
</ul>
</li>
<li><code>openvpn</code></li>
<li><code>miniconda3</code>
<ul>
<li><code>choco pin add -n=miniconda3</code> to pin version</li>
<li>I update conda always manually with <code>conda update -n base conda</code></li>
<li>follow instructions <a href="#miniconda">for some more specifics</a> how I work with conda below</li>
</ul>
</li>
<li><code>qgis</code> (alternative GIS), Plugins:
<ul>
<li><code>Get WKT</code> - <a href="https://plugins.qgis.org/plugins/QGIS3-getWKT/">WKT Feature Conversion</a></li>
<li><code>QuickMapServices</code> - <a href="https://plugins.qgis.org/plugins/quick_map_services/">Basemaps</a>, see <a href="https://qms.nextgis.com/">the list</a>.</li>
<li><code>Terrain Shading</code> <a href="http://www.zoran-cuckovic.from.hr/QGIS-terrain-shading/">plugin for modelling natural illumination over digital terrain models</a></li>
</ul>
</li>
<li><code>oldcalc</code> (Windows 7 calculator)</li>
<li><code>jcpicker</code> (color picker)</li>
<li><code>obs-studio</code> for audio &amp; screen recording</li>
<li><code>screentogif</code> for screencast recording (output to <code>*.webm</code> or <code>*.gif</code>)</li>
<li><code>visualstudio2019community</code>
<ul>
<li>for development of some windows based interfaces,
I sometimes still require Visual Studio
(instead of VS Code)</li>
<li>after chocolatey installation, further extensions
are required that will be automatically installed
upon first load of a solution:
<ul>
<li><code>.NET Desktop Development (5 GB)</code></li>
</ul>
</li>
</ul>
</li>
<li><code>zotero</code>
<ul>
<li>disable sync</li>
<li>set &ldquo;Base directory&rdquo; (Preferences &gt; Advanced &gt; Files and Folders) to local literature folder</li>
<li>set PDF View to &ldquo;System default&rdquo; (Preferences &gt; General &gt; &ldquo;Open PDFs using..&rdquo;)</li>
<li>Enable recursive quick search in folders: go to Preferences &gt; Advanced &gt; Config Editor, search for <code>recursiveCollections</code>, double click (set to True)</li>
<li>use <kbd>CTRL-SHIFT-DRAG</kbd> to drop files into Zotero as Links, see <a href="https://github.com/zotero/zotero/issues/77">#77</a></li>
<li>use <kbd>CTRL-Shift-C</kbd> to copy bibliography to clipboard</li>
<li><a href="https://github.com/Rosmaninho/Zotero-Dark-Theme">Dark Theme</a>:
<ul>
<li>since Zotero 7, a native Dark Mode is available (Settings &gt; General), so below steps are End Of Life (EOL)</li>
<li>Go to <code>%AppData%\Zotero\Zotero\Profiles\</code> (<code>XXXXXXXX.default</code>)</li>
<li>Create <code>chrome</code> folder</li>
<li>Place the <code>userChrome.css</code></li>
<li>Start Zotero</li>
</ul>
</li>
<li>Add-Ons:
<ul>
<li><a href="https://github.com/sharpevo/zotero-pdfkit/">zotero-pdfkit</a>
<ul>
<li>allows to modify/select a &ldquo;default&rdquo; PDF attachment to be opened</li>
</ul>
</li>
<li><a href="https://github.com/frangoud/ZoteroDuplicatesMerger">ZoteroDuplicatesMerger</a>
<ul>
<li>easier merging of duplicates</li>
</ul>
</li>
<li><a href="https://github.com/retorquere/zotero-folder-import">zotero-folder-import</a>
<ul>
<li>bulk import PDFs from a folder</li>
</ul>
</li>
<li><a href="https://github.com/windingwind/zotero-tag">zotero-tag</a>
<ul>
<li>allows to add stars to items (Num Key <code>1</code>, <code>2</code>, <code>3</code> etc.):

  <img src="/imgs/zotero_stars.webp" alt="">
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li><code>inkscape</code> for editing SVGs and creating logos</li>
<li>PDF Tools:
<ul>
<li>Since Adobe is pushing a more aggressive stance for monetization of Acrobat,
I am trying to replace selected PDF workflows with OSS. Here are some of the tools I use.</li>
<li>qpdf
<ul>
<li>removing passwords, unlocking PDFs, conversion</li>
<li>install in WSL with <code>apt-get install qpdf</code></li>
<li>remove password with <code>qpdf --decrypt --password=&quot;&quot; input.pdf output.pdf</code></li>
</ul>
</li>
<li>PDF4QT - Open Source PDF Editing
<ul>
<li>Deleting, Sorting, Extracting Pages</li>
<li>Currently, no choco release available, must be installed manually from <a href="https://github.com/JakubMelka/PDF4QT/releases">PDF4QT/releases</a></li>
</ul>
</li>
<li><code>LibreOffice Draw</code>, <code>Inkscape</code>
<ul>
<li>editing PDFs, adding text (e.g. filling forms)</li>
</ul>
</li>
<li><code>Mupdf</code>
<ul>
<li>Command line tool and Python package for parsing, filling forms, adding text</li>
</ul>
</li>
<li><code>SumatraPDF</code>
<ul>
<li>the best PDF tool of all</li>
<li>Viewing of PDFs and adding annotations (highlight, comment etc.)</li>
<li>it is much faster than Adobe Acrobat</li>
</ul>
</li>
<li><a href="https://github.com/jsvine/pdfplumber">pdfplumber</a>
<ul>
<li>Awesome python package to extract tables from PDFs into data pipelines. Use with Jupyter Lab.</li>
</ul>
</li>
<li><a href="https://www.tracker-software.com/product/pdf-xchange-editor">PDF X-Change viewer</a>, <code>choco install pdfxchangeviewer</code>
<ul>
<li>for manual OCR of pages/PDFs</li>
<li>adding text via typewriter (forms)</li>
</ul>
</li>
</ul>
</li>
</ul>
<details>
<summary><strong>Click here to see</strong>: Remove all Microsoft "Apps" (bloatware)</summary>
<p>I don&rsquo;t use these apps. Run in elevated powershell:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">photos</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">3dbuilder</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">windowsalarms</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">windowscalculator</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">windowscommunicationsapps</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">skypeapp</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">getstarted</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">zunemusic</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">windowsmaps</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">solitairecollection</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">bingfinance</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">zunevideo</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">bingnews</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">onenote</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">windowsphone</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">windowsstore</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">bingsports</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">soundrecorder</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">bingweather</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span><span class="line"><span class="cl"><span class="nb">Get-AppxPackage</span> <span class="n">-allusers</span> <span class="p">*</span><span class="n">xboxapp</span><span class="p">*</span> <span class="p">|</span> <span class="nb">Remove-AppxPackage</span>
</span></span></code></pre></div></details>
<h2 id="miniconda">Miniconda</h2>
<p>I maintain separate miniconda installations in WSL and Windows. Mostly I use conda in WSL these days, but for some software I have to use conda in Windows (e.g. TagMaps, due to the graphical interface that cannot run in WSL).
It is likely you will only need one conda installation (in WSL).</p>
<ul>
<li>there&rsquo;s a separate <a href="/posts/2019-05-24-install-tagmaps-windows/">blog post</a> that explaines installation of conda and tagmaps in Windows</li>
</ul>
<p>In WSL, I like to move the folder that contains all created conda environments to an external location,
for persistence. This is done via symlinking. This works on both Linux and Windows. Below commands are for Linux WSL.</p>
<pre tabindex="0"><code>cd ~
ls -alh miniconda3/envs/
cp miniconda3/envs /d/conda/
rm -rf miniconda3/envs
ln -s /d/conda/envs miniconda3/envs
# test
conda env list
# also good, once in a while
conda clean --all
</code></pre>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>I use WSL<code>1</code>, not WSL<code>2</code>, as my main WSL distro. This means that calls to the Windows file system are much faster
(but some modifications exist within the WSL Linux Kernel). If you use WSL2, I advice to stick with the native Linux file system (i.e. not <code>/d/</code> above, etc.).</p>
</div>
</aside> 
<h2 id="ssh">SSH</h2>
<ul>
<li>create a private ssh-key-pair with puttygen (protected by a good password)
<ul>
<li>Export SSH Key with puttygen, two different ways:</li>
<li>Windows: to <code>%USERPROFILE%\.ssh\id_rsa</code>
<ul>
<li>use Keepass - KeeAgent Plugin for SSH key access, settings:</li>
<li>Tools/options:
<ul>
<li>Cygwin socket file <code>C:\Users\[User]\Documents\cyglockfile</code> (replace [User])</li>
<li>Msysgit socket file <code>C:\Users\[User]\Documents\syslockfile</code> (replace [User])</li>
</ul>
</li>
</ul>
</li>
<li>Linux/WSL:
<ul>
<li>Linux: Conversions/Export OpenSSH key</li>
<li>see this <a href="/posts/2019-05-27-wsl-software/#ssh">blog post</a></li>
</ul>
</li>
<li>for VSCode Remote SSH Key connections:
<ul>
<li>Go to Options &gt; KeeAgent, then scroll down to Agent Mode Options and activate <code>Enable agent for Windows OpenSSH (experimental)</code>: (default: disabled)
<ul>
<li>this enable an SSH agent socket compatible with the built-in Windows 10 SSH client.</li>
</ul>
</li>
<li>in VSCode, use <kbd>F1</kbd> and type <code>Remote: SHow Remote Menu</code> &gt; <code>Connect to Host</code> &gt; enter your user and remote host <code>user@111.111.111.11</code> and connect</li>
<li>the key will be unlocked from KeeAgent in KeePass through the Windows SSH Agent</li>
<li>start working in local VSCode on any remote server/folder
<ul>
<li>hint: if the user who owns files is someone different to the user you used to ssh into your remote machine,
add the ssh user to the file-owner&rsquo;s group, e.g. <code>sudo usermod -a -G examplegroup sshuser &amp;&amp; su sshuser</code>, then use <code>sudo chmod g+w</code> to allow editing by group members for selected folders</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<h2 id="cmd">cmd</h2>
<p>Command line is your friend. Either open it with Keypirinha and <code>cmd</code> or type <kbd>⊞ Win</kbd> + <kbd>R</kbd> and then <code>cmd</code> (confirm with <kbd>CTRL+SHIFT+Enter</kbd> for elevated permissions).</p>
<p>These are my most used other commands in the Run-Dialogue:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">cmd             # Command Line
</span></span><span class="line"><span class="cl">services.msc    # Services
</span></span><span class="line"><span class="cl">taskmgr         # Task Manager
</span></span><span class="line"><span class="cl">taskschd.msc    # Task Scheduler
</span></span><span class="line"><span class="cl">eventvwr.msc    # Event Viewer
</span></span><span class="line"><span class="cl">shell:startup   # automatic startup apps
</span></span><span class="line"><span class="cl">ncpa.cpl        # The old <span class="s2">&#34;network connections&#34;</span> that is hard to reach in Windows 11
</span></span><span class="line"><span class="cl">gpedit.msc      # Group Policies
</span></span><span class="line"><span class="cl">rsop.msc        # Microsoft Management Console/ Group Policies currently active
</span></span><span class="line"><span class="cl">gpresult /r     # RSOP data, Group Policies Results
</span></span><span class="line"><span class="cl">firefox.exe -P  # firefox profile manager
</span></span><span class="line"><span class="cl">regedit         # Registry Editor
</span></span><span class="line"><span class="cl"><span class="nv">%temp%</span>          # C:\Users\[USER]\AppData\Local\Temp (clean up)
</span></span><span class="line"><span class="cl">msconfig        # System configuration (disable services startup)
</span></span><span class="line"><span class="cl">diskmgmt.msc    # Disk Management (formatting, partitions etc.)
</span></span><span class="line"><span class="cl">hdwwiz.cpl      # Device manager
</span></span><span class="line"><span class="cl">winver          # Windows version information
</span></span></code></pre></div><h2 id="netspeedmonitor">Netspeedmonitor</h2>
<p>I like to have a quick glance at netspeed throughput, netspeedmonitor is a great tool but it is not available for Windows 10.</p>
<p>For Windows 11 I prefer the alternative <a href="https://github.com/Ashfaaq18/OpenNetMeter">OpenNetMeter</a></p>
<p>Before installing it, install <code>dotnet-6.0-desktopruntime</code> with chocolatey:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">choco install dotnet-6.0-desktopruntime
</span></span></code></pre></div><p>In order to autostart OpenNetMeter with elevated rights, use the <a href="https://stackoverflow.com/a/61384790/4556479">Task Scheduler</a>.</p>
<details><summary>Alternative: Windows 10</summary>
<p>The latest msi of <code>Netspeedmonitor</code> is available on various sites, <a href="https://www.heise.de/download/product/netspeedmonitor-35095">e.g.</a>.
It can be installed with Compatibility mode in Windows 10.</p>
<ul>
<li>Right-click on the .msi installer file</li>
<li>Go to Properties</li>
<li>Go to the Compatibility tab</li>
<li>Click “Change settings for all users”</li>
<li>Tick “Run this program in compatibility mode for:”</li>
<li>Choose “Previous version of Windows” in the drop-down menu</li>
<li>Click OK and run the installer</li>
<li>Now to run NetSpeedMonitor on startup:
<ul>
<li>Go to <code>C:\Program Files\NetSpeedMonitor</code></li>
<li>Right click on nsmc.exe</li>
<li>“Send to” “Desktop (create shortcut)”</li>
<li>Go to Desktop and move the shortcut to <code>%appdata%\Microsoft\Windows\Start Menu\Programs\Startup</code></li>
</ul>
</li>
</ul>
</details>
<h1 id="microphone-and-video-privacy-settings-windows-education">Microphone and Video privacy settings (Windows Education)</h1>
<p>Now this is Windows Education specific and it caused me some headache:</p>
<p>I could neither use Microphone nor Video recording, which was caused by some default privacy settings hidden deeply.</p>
<ul>
<li>Open the Group Policy Editor (⊞-key and enter <code>gpedit.msc</code>)</li>
<li>Go to Computer Configuration &gt; Administrative Templates &gt; Windows Components &gt; App Privacy
<ul>
<li>Select &ldquo;Let windows apps access the microphone&rdquo;, enable (should be on already))</li>
<li>Select &ldquo;Let windows apps access the camera&rdquo;, enable (should be on already))</li>
<li>In the “default for all apps” box, set: <strong>User is in control</strong> (default: DenyAll) for both (microphone and camera)
-&gt; means that users may change the privacy setting using the Settings application.</li>
</ul>
</li>
<li>Now go to <code>Windows + I</code> key
<ul>
<li>Enter &ldquo;privacy&rdquo; in search, select &ldquo;Microphone Privacy&rdquo;</li>
<li>should indicate &ldquo;Microphone Access for this Device is On&rdquo;</li>
</ul>
</li>
</ul>
]]></content></item><item><title>Part IIa: Setup Windows Subsystem for Linux</title><link>https://links.alexanderdunkel.com/posts/2019-05-27-setup-wsl-win10/</link><pubDate>Mon, 27 May 2019 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-05-27-setup-wsl-win10/</guid><description>&lt;p&gt;This is Part IIa of a 3 1/2-part blog post on how I configured my working environment.
Here I&amp;rsquo;ll explain how to configure Windows Subsystem for Linux (WSL).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10"&gt;Part I&lt;/a&gt;: Setup Dev Environment in Windows&lt;/li&gt;
&lt;li&gt;&lt;a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-wsl-win10"&gt;Part IIa&lt;/a&gt;: Windows Subsystem for Linux (WSL)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-wsl-docker"&gt;Part IIb&lt;/a&gt;: WSL &amp;amp; Docker setup&lt;/li&gt;
&lt;li&gt;&lt;a href="https://links.alexanderdunkel.com/posts/2019-05-27-wsl-software"&gt;Part III&lt;/a&gt;: Installation of additional packages and tools in WSL&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Since Microsoft announced WSL, Windows 10 became a possible alternative to Linux
and MacOS for software development. WSL combines the advantages of having a Linux
Kernel backend (running Python, bash etc.) and a Windows graphical frontend, e.g.
for working with Visual Studio Code.&lt;/p&gt;</description><content type="html"><![CDATA[<p>This is Part IIa of a 3 1/2-part blog post on how I configured my working environment.
Here I&rsquo;ll explain how to configure Windows Subsystem for Linux (WSL).</p>
<ul>
<li><a href="/posts/2019-05-27-setup-win10">Part I</a>: Setup Dev Environment in Windows</li>
<li><a href="/posts/2019-05-27-setup-wsl-win10">Part IIa</a>: Windows Subsystem for Linux (WSL)</li>
<li><a href="/posts/2019-05-27-setup-wsl-docker">Part IIb</a>: WSL &amp; Docker setup</li>
<li><a href="/posts/2019-05-27-wsl-software">Part III</a>: Installation of additional packages and tools in WSL</li>
</ul>
<p>Since Microsoft announced WSL, Windows 10 became a possible alternative to Linux
and MacOS for software development. WSL combines the advantages of having a Linux
Kernel backend (running Python, bash etc.) and a Windows graphical frontend, e.g.
for working with Visual Studio Code.</p>
<details><summary><strong>WSL1 or WSL2?</strong></summary>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path d="M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"/></svg>
	</div>
	<div class="admonition-content"><p>There are two types of WSL available. It depends, which one is best
for your needs. Most users will select WSL2, but there are Pros and Cons:</p>
<ul>
<li>
<p>If you work a lot from your Windows File System, mounted inside your WSL distros,
then WSL1 will offer a better performance.
<strong>If you transition from Windows to Linux, I recommend WSL1.</strong></p>
</li>
<li>
<p>On the other hand, WSL2 will allow improving performance for any Docker container.
If you come from Linux or Docker,
select WSL2 as it will give you better performance when working from the Linux
filesystem. There are also minor inconsistencies in the Microsoft-tainted Kernel
for WSL1 that will break some complex builds (speaking of e.g. npm). The WSL2
Kernel is a native Linux Kernel that won&rsquo;t have these problems.</p>
</li>
<li>
<p>you can have multiple distros for both WSL1 and WSL2 installed in parallel</p>
</li>
</ul>
<p>Personally, I still use WSL1 because I keep most of my files organized on the Windows
side, and the performance drop is considerable between WSL1 and WSL2 in this case.</p>
<p>You can convert back and forth between WSL1 and WSL2. Note that for Docker (not WSL),
switching results in a complete wipe of containers. Chose WSL2 as the Docker backend.</p>
</div>
</aside> 
</details>
<h2 id="preparations">Preparations</h2>
<p>Enable Windows Features:</p>
<ul>
<li>WSL</li>
<li>Virtual Machine Platform Windows (&ldquo;VM Plattform)</li>
<li>Hyper-V</li>
</ul>
<details><summary>Non-admin user?</summary>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path d="M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"/></svg>
	</div>
	<div class="admonition-content"><p>If you are on a non-admin Windows account, you need to ask your administrator
to activate the above Windows features for you. They may not all be necessary. Since the <a href="https://devblogs.microsoft.com/commandline/the-windows-subsystem-for-linux-in-the-microsoft-store-is-now-generally-available-on-windows-10-and-11/">WSL GA</a>
release, you can directly install WSL from the MS AppStore.</p>
<p>I was able to setup WSL with this guide: I suggest to install all software
below in the users home folder (<code>C:\Users\You</code>). Also, download <code>lxrunoffline</code> and
other packages (e.g. <code>wsltty</code>) and install in user-mode. As of March 2024, the WSL Kernel version I found
most reliable were <code>2.1.5.0</code> and <code>2.0.15.0</code>.</p>
</div>
</aside> 
</details>
<h2 id="install-a-linux-distro-with-lxrunoffline">Install a Linux distro with LxRunOffline</h2>
<p>Setup of WSL is pretty straight forward if you use the Linux images available from
the Microsoft Store. However, this is not always possible - e.g. if you&rsquo;re running
Windows 10 Education, the Microsoft Store may be disabled for reasons of security.
With <a href="https://github.com/DDoSolitary/LxRunOffline">LxRunOffline</a>, it is possible to
set up WSL with any Linux image, and also chose where WSL default folder is located.</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Even if your App Store is available, I suggest using LxRunOffline for WSL setup,
primarily because it provides <em>open sourced</em> independence of Microsoft. Most importantly, with the official
repositories, you can directly upgrade distros.</p>
</div>
</aside> 
<p>To install LxRunOffline, I prefer <a href="https://chocolatey.org/">Chocolatey package manager</a>.
But you can also install lxrunoffline manually.</p>
<p>Open CMD with elevated privileges.</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Click <code>Start</code> and in the Search box, type cmd.exe.
Do <em>not</em> press Enter. In the search results window, right-click on the program
<code>cmd.exe</code> and in the pop-up menu, select <em>Run As Administrator</em>.</p>
</div>
</aside> 
<p>If you have choco, run the following to install <code>LxRunOffline</code>.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-Bash" data-lang="Bash"><span class="line"><span class="cl">choco install lxrunoffline
</span></span></code></pre></div><details><summary>2024-02-19 Note for outdated <code>lxrunoffline</code> on <code>choco</code></summary>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path d="M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"/></svg>
	</div>
	<div class="admonition-content"><p>As of writing this, the latest release <code>3.5.0</code> of <code>lxrunoffline</code> is not available on <code>choco</code>.
Without using the latest version, you may encounter issues with the latest WSL Kernel such as
<a href="https://github.com/DDoSolitary/LxRunOffline/issues/188">#188</a>
To solve these, you need to manually download and install
<a href="https://nulldev.org/cdn/LxRunOffline-v3.5.0-11-msvc.zip">LxRunOffline-v3.5.0-11-msvc.zip</a> (see also <a href="https://github.com/DDoSolitary/LxRunOffline/releases">releases</a> and <a href="https://github.com/DDoSolitary/LxRunOffline/issues/204">#204</a>).</p>
</div>
</aside> 
</details>
<h3 id="decide-whether-to-use-wsl1-or-2">Decide whether to use WSL1 or 2</h3>
<p>See the <a href="#update-from-wsl-1-to-wsl-2">section at the end of this page</a> for instructions to switch between
WSL1 and WSL2. By default, as of 2023, WSL2 will be used.</p>
<h3 id="install-linux-image">Install Linux Image</h3>
<p>It is up to you what Linux distro to use. These days, it seems developers prefer Debian over Ubuntu,
but both are valid choices.</p>
<ul>
<li>Download the latest Ubuntu Linux Image <code>*.tar.gz</code> from
<a href="https://partner-images.canonical.com/core/focal/current/">canonical.com/core/</a></li>
<li>Download the latest Debian Linux Image <code>*.tar.xz</code> from <a href="https://docker.debian.net/">docker.debian.net</a>. These are the official Debian Images used in Docker.
For example, this is the link to the latest <a href="https://github.com/debuerreotype/docker-debian-artifacts/raw/48072f1bd234114bb51470bba31a4e4a0040a2a4/bullseye/rootfs.tar.xz">bullseye image</a>,
go to the folder and download <code>rootfs.tar.xz</code>.</li>
</ul>
<p>Below, I use the Debian Bullseye image.</p>
<p>Run the following command to install this image in WSL:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">LxRunOffline i -n UF <span class="se">^
</span></span></span><span class="line"><span class="cl"><span class="se"> </span>   -d c:\WSL\UFDebian <span class="se">^
</span></span></span><span class="line"><span class="cl"><span class="se"> </span>   -f <span class="s2">&#34;c:\temp\rootfs.tar.xz&#34;</span> -s
</span></span></code></pre></div><p>.. where</p>
<ul>
<li><code>-d c:\WSL\UFDebian</code> is the path to the WSL Install. You can also set this to your
second hard drive, to safe space on <code>C</code>, e.g. <code>d:\WSL\UFDebian</code>.</li>
<li><code>-f c:\temp\rootfs.tar.xz</code> is the path to
the image you just downloaded.</li>
<li><code>-s</code> means, create a Desktop Shortcut</li>
</ul>
<p>By filling up the absolute path to the <code>rootfs.tar.xz</code> file,
the command will create a distribution named as <code>UF</code>, in directory <code>c:\WSL\UFDebian</code></p>
<p>You can open the WSL Bash by creating a Shortcut, e.g. on your Desktop, with the following Target:</p>
<pre tabindex="0"><code class="language-output" data-lang="output">C:\tools\lxrunoffline\LxRunOffline.exe run -w -n &#34;UF&#34;
</code></pre><p>(the path may be different, depending on how you installed lxrunoffline)</p>
<p>Once you opened WSL bash, install base packages.</p>
<pre tabindex="0"><code>apt-get update \
    &amp;&amp; apt-get install -y \
        lsb-release sudo nano git wget rsync \
    &amp;&amp; apt-get clean all
</code></pre><p>.. and check your installation with: <code>lsb_release -a</code>.</p>
<p>It should output something along these lines:</p>
<pre tabindex="0"><code>&gt; No LSB modules are available.
&gt; Distributor ID: Debian
&gt; Description:    Debian GNU/Linux 11 (bullseye)
&gt; Release:        11
&gt; Codename:       bullseye
</code></pre><details><summary>Error: 0x800703fa Illegal operation attempted on a registry key that has been marked for deletion</summary>
<p>If the following error occurs:</p>
<pre tabindex="0"><code class="language-output" data-lang="output">Error: 0x800703fa Illegal operation attempted on a registry key that has been marked for deletion
</code></pre><p>Restart lxssmanager (in Windows command prompt)</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sc stop lxssmanager
</span></span><span class="line"><span class="cl">sc start lxssmanager
</span></span></code></pre></div><p>Or in powershell:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl"><span class="nb">Restart-Service</span> <span class="n">LxssManager</span><span class="p">*</span>
</span></span></code></pre></div></details>
<p>I also recommend adding a password to user <code>root</code>.
The password doesn&rsquo;t have to be bullet proof, since you&rsquo;re working in WSL inside Windows,
which provides the main security layer. I&rsquo;d recommend using a simple, easy to remember
password that can be typed fast here. Set password with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">passwd root
</span></span></code></pre></div><details><summary><strong>Additional commands: lxrunoffline</strong></summary>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>The following commands need to be executed in elevated administrator command line in Windows.</p>
</div>
</aside> 
<p>To keep lxrunoffline up to date (in choco):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">choco update lxrunoffline
</span></span></code></pre></div><p>To remove an existing WSL distro (e.g. named <code>UF</code>):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">lxrunoffline uninstall -n UF
</span></span></code></pre></div><p>If, for any reason, a WSL distro got corrupt, it is possible to unlink (=remove)
it with the following command (e.g. named <code>UF</code>):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">lxrunoffline unlink -n UF
</span></span></code></pre></div><p>If you later decide you want to move your WSL installation
(e.g. from <code>C:/wsl/</code> to <code>D:/wsl/</code>) <a href="https://stackoverflow.com/a/51767786/4556479">^1</a>
instructions:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">lxrunoffline move -n UF -d d:<span class="se">\w</span>sl<span class="se">\U</span>F
</span></span></code></pre></div><p>To view additional information for a distro (such as the path it is installed to):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">lxrunoffline sm -n UF
</span></span></code></pre></div></details>
<h3 id="add-wsl-to-your-right-click-menu">Add WSL to your right-click menu</h3>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>If you are going to install WSLtty (<a href="#use-a-different-wsl-terminal">see below</a>), you don&rsquo;t need this.</p>
</div>
</aside> 
<p>
  <img src="/imgs/2019-05-27_open-wsl-bash-here.png" alt="">
</p>
<p>We want to be able to open WSL console from any folder location. To achieve this,
we add WSL to the right click context menu with the following steps.</p>
<p>First, open the registry editor by pressing the Windows key, typing “regedit” into
the Start menu, and pressing “Enter”.</p>
<p>Navigate to the following key:</p>
<pre tabindex="0"><code>HKEY_CLASSES_ROOT\Directory\Background\shell
</code></pre><ul>
<li>Right-click the “shell” key and select New &gt; Key.</li>
<li>Name the key “bash” or something similar. You can name it anything you want. This
name doesn’t appear in Windows anywhere, and is just used to keep track of the entry
in the registry.</li>
<li>Select “bash” (or whatever you named the key) in the left pane.</li>
<li>Double-click “(Default)” in the right pane and enter whatever name you want to
appear in File Explorer’s context menu. For example, you could enter “Open WSL Bash
here” or just “Bash”.</li>
<li>Next, right-click the “bash” key and select New &gt; Key.</li>
<li>Name it “command”.</li>
<li>With the “command” key selected in the left pane, double-click “(Default)”  in
the right pane and enter the following value: <code>C:\Windows\System32\bash.exe</code></li>
</ul>
<p>You are done. You can now right-click a folder in File Explorer and select “Open
WSL Bash here” (or whatever you named the option) to quickly open a Bash shell to
that specific folder. This option will appear immediately, so you don’t have to sign
out or reboot first.</p>
<h3 id="create-wsl-default-user">Create WSL default user</h3>
<p>You don&rsquo;t want to work with the <code>root</code> user by default.</p>
<p>Follow the steps below to create a new user account and give it sudo access. If you
want to configure sudo for an existing user, skip to step 3.</p>
<ol>
<li>
<p>Open your WSL-Bash</p>
</li>
<li>
<p>Create a new user account.</p>
<p>Create a new user account using the <code>adduser</code> command.
Don’t forget to replace <code>{your-username-here}</code> with the user name that you want to create:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">username</span><span class="o">={</span>your-username-here<span class="o">}</span>
</span></span><span class="line"><span class="cl">adduser <span class="nv">$username</span>
</span></span></code></pre></div><p>You will be prompted to set and confirm the new user password.</p>
<p>Similar to the root user, you can use a relatively weak password that is easy to remember.</p>
<pre tabindex="0"><code class="language-output" data-lang="output">Adding user `username&#39; ...
Adding new group `username&#39; (1001) ...
Adding new user `username&#39; (1001) with group `username&#39; ...
Creating home directory `/home/username&#39; ...
Copying files from `/etc/skel&#39; ...
New password:
Retype new password:
passwd: password updated successfully
</code></pre><p>Once you set the password the command will create a home directory for the user,
copy several configuration files in the home directory and prompts you to set the
new user’s information. If you want to leave all of this information blank
just press <code>ENTER</code> to accept the defaults.</p>
<pre tabindex="0"><code class="language-output" data-lang="output">Changing the user information for username
Enter the new value, or press ENTER for the default
    Full Name []:
    Room Number []:
    Work Phone []:
    Home Phone []:
    Other []:
Is the information correct? [Y/n]
</code></pre></li>
<li>
<p>Add the new user to the <code>sudo</code> group</p>
<p>By default on Ubuntu systems, members of the group <code>sudo</code> are granted with sudo access.
To add the user you created to the sudo group use the usermod command:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">usermod -aG sudo <span class="nv">$username</span>
</span></span></code></pre></div></li>
</ol>
<h3 id="change-default-user-for-wsl">Change default user for WSL</h3>
<p>According to this <a href="https://github.com/DDoSolitary/LxRunOffline/issues/62">issue</a>,
WSL sometimes starts with the wrong user account (e.g. you don&rsquo;t want to use root by default).
To correct this, first find out which user-id you need to provide (in WSL terminal):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">id <span class="nv">$username</span>
</span></span></code></pre></div><p>will show something like this:</p>
<pre tabindex="0"><code class="language-output" data-lang="output">uid=1000(my-user-name) gid=1000(my-user-name) groups=1000(my-user-name),27(sudo)
</code></pre><p>Then use the given <code>uid</code> to update the default user (<em>in Windows Command Line</em>):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">lxrunoffline su -n UF -v 1000
</span></span></code></pre></div>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>If you later wish to start with the root user, e.g. to fix
startup issues:</p>
<pre tabindex="0"><code>lxrunoffline su -n UF -v 0
</code></pre><p>Check the current active default user with:</p>
<pre tabindex="0"><code>lxrunoffline gu -n UF
&gt; 0
</code></pre></div>
</aside> 
<h3 id="fix-wsl-mount">Fix WSL mount</h3>
<p>By default, folders outside of WSL will have a <code>/mnt/</code> in front of the actual path
(because external paths are mounted into Linux WSL).
This makes working with WSL a bit cumbersome, we can remove this /mnt/ with a WSL
configuration file.</p>
<p>Create and modify the new WSL configuration file:</p>
<p><code>sudo nano /etc/wsl.conf</code></p>
<ul>
<li>Now make it look like this and save the file when you&rsquo;re done:</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="o">[</span>automount<span class="o">]</span>
</span></span><span class="line"><span class="cl"><span class="nv">root</span> <span class="o">=</span> /
</span></span><span class="line"><span class="cl"><span class="nv">options</span> <span class="o">=</span> <span class="s2">&#34;metadata&#34;</span>
</span></span></code></pre></div><p>Afterwards, in <code>cmd</code>, shutdown WSL with <code>wsl --shutdown</code> and reopen the WSL shell. You should see
your paths starting with the drive letters, without <code>/mnt</code>:</p>
<pre tabindex="0"><code>/c/User/...
</code></pre><h3 id="install--configure-packages">Install &amp; configure packages</h3>
<p>This is rather open ended, but there are some packages
that you may want to install and configure such as
locales or configuration of time zone.</p>
<p>Locales:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo bash -c <span class="s1">&#39;apt-get clean &amp;&amp; apt-get update &amp;&amp; apt-get install -y locales&#39;</span>
</span></span><span class="line"><span class="cl">sudo dpkg-reconfigure --frontend readline locales
</span></span><span class="line"><span class="cl"><span class="c1"># when asked, select the number for en_US.UTF-8 (e.g. 158) and confirm</span>
</span></span><span class="line"><span class="cl"><span class="c1"># when asked again, select the number for `en_US.UTF-8` as default locale</span>
</span></span></code></pre></div><p>Time zone:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo dpkg-reconfigure tzdata
</span></span></code></pre></div><details><summary><strong>Keep WSL distro up to date</strong></summary>
<p>To upgrade your WSL installation and packages, use:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt-get update <span class="o">&amp;&amp;</span> sudo apt-get upgrade
</span></span></code></pre></div></details>
<details><summary><strong>Good things to know when working with WSL-Bash</strong></summary>
<ul>
<li><strong>Never edit any files of the WSL distro with Windows</strong></li>
</ul>
<p>E.g. anything below <code>C:\WSL\UFDebian</code> is holy Linux territory that should never be touched
from Windows. Windows will mess with Linux file permissions, which is quite difficult to fix afterwards.</p>
<ul>
<li><strong>Exit Shell Shortcut</strong></li>
</ul>
<p>Use <kbd>Ctrl</kbd> + <kbd>D</kbd> to exit the current shell.</p>
<ul>
<li><strong>Add Command Shortcuts</strong></li>
</ul>
<p>The <code>.bashrc</code> file can be used to add aliases for commands.
The following instructions will add an alias <code>update_wsl</code> that will update WSL.</p>
<p>Open .bashrc in nano text editor:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nano ~/.bashrc
</span></span></code></pre></div><p>Add the following line at any position:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">update_wsl</span><span class="o">=</span><span class="s2">&#34;sudo bash -c &#39;apt-get update &amp;&amp; apt-get upgrade &amp;&amp; apt-get dist-upgrade &amp;&amp; apt-get autoremove&#39;&#34;</span>
</span></span></code></pre></div><p>Reload <code>.bashrc</code> file:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">source</span> ~/.bashrc
</span></span></code></pre></div></details>
<h2 id="use-a-different-wsl-terminal">Use a different WSL terminal</h2>
<p>The default Ubuntu Terminal is fine for most situations. If you like to optimize
workflows, it can be tempting to check some of the other WSL Terminals available
for WSL, such as MobaXTerm, ConEmu or Hyper.</p>
<p>I&rsquo;ve changed to <strong><a href="https://github.com/mintty/wsltty">wsltty</a></strong> because this terminal
is small, has a lot of nice features that help reduce daily work, and there are many
nice themes available.</p>
<p>You can install wsltty with choco:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">choco install wsltty
</span></span></code></pre></div>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>The latest WSL Version (<code>2.0.9.0</code>) <a href="https://github.com/mintty/wsltty/issues/343#issuecomment-1944041668">is incompatible</a> with the latest <code>wsltty</code> (3.6.4) that is installed with <code>choco</code>. The WSL window will directly close after opening.
You need to manually download at least <code>3.7.0.2</code> from <a href="https://github.com/mintty/wsltty/releases/tag/3.7.0.2">releases</a> and install manually (use <code>wsltty-3.7.0.2-x86_64-install.exe</code>).</p>
<p>Note: The latest <code> wsltty-3.8.0.3-x86_64-install.exe</code> is detected by Endpoint Security as a false-positive. I reported this, but so far no reaction. However, <code>wsltty-3.8.0.3-x86_64-install-quiet.exe</code> works.</p>
<p>Check your installed wsltty version with:</p>
<pre tabindex="0"><code>&#34;%LOCALAPPDATA%\wsltty\bin\mintty.exe&#34; --version
</code></pre></div>
</aside> 
<p>Some things you may want to do after installation:</p>
<ul>
<li>go to WSLtty entry folder in start menu and run
<ul>
<li>&ldquo;add default to context menu&rdquo; (this will add the &ldquo;open&rdquo;-shortcut to right-click menu)</li>
<li>&ldquo;configure WSL shortcuts&rdquo; (this should be automatically run with choco)</li>
</ul>
</li>
<li>on the upper left, click on the Linux icon:
<ul>
<li>set &ldquo;right click to paste&rdquo;</li>
<li>set &ldquo;copy on select&rdquo; (all selected text is copied)</li>
<li>set &ldquo;CTRL+SHIFT+ letter shortcuts&rdquo; (allows you to use CTRL+SHIFT+V to paste)</li>
</ul>
</li>
<li>install theme, for example <a href="https://github.com/morhetz/gruvbox-contrib/blob/master/mintty/gruvbox.minttyrc">gruvbox.minttyrc</a>
<ul>
<li>open WSL, then go to this folder (replace AD with your username):
<pre tabindex="0"><code>/c/Users/AD/AppData/Roaming/wsltty/themes/
</code></pre>(Explorer: <code>%AppData%/wsltty/themes/</code>)</li>
<li>then:
<pre tabindex="0"><code>wget https://raw.githubusercontent.com/morhetz/gruvbox-contrib/master/mintty/gruvbox.minttyrc
</code></pre></li>
<li>optional: <code>nano gruvbox.minttyrc</code> and use <code>38,38,38</code> as BackgroundColor
(slightly darker - nice tip from <a href="https://nickjanetakis.com/blog/configuring-wsltty-which-is-my-favorite-windows-wsl-terminal">this guy</a>)</li>
<li>now you can chose the theme under options</li>
<li>additional settings for WSLtty:
<ul>
<li>activate CTRL+Shift+letter shortcuts (lets you use e.g. CTRL+Shift+V for copy -
note that any mouse selection is also always copied)</li>
<li>Window size 180x24 (wider display)</li>
<li>&ldquo;no beep&rdquo;</li>
<li>&ldquo;no scrollbar&rdquo; (I can use CTRL+scroll for zoom/shrink)</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>Here&rsquo;s how wsltty with the gruvbox.minttyrc theme looks:

  <img src="/imgs/2019-12-08_wsltty.png" alt="">
</p>
<h2 id="backup-wsl-distro">Backup WSL distro</h2>
<p>Use LxRunOffline, to back up (or restore) your WSL distro in/from a <code>tar.gz</code> file.</p>
<p>Optionally, clean up the <code>tmp</code> folder, before backing up:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo find /tmp -type f -atime +10 -delete
</span></span></code></pre></div><p>Optionally, <a href="https://www.cyberciti.biz/faq/ubuntu-18-04-remove-all-unused-old-kernels/">purge unused old Linux Kernels</a>:</p>
<pre tabindex="0"><code>sudo apt --purge autoremove
</code></pre><p>Then, shutdown WSL and store or load from <code>.tar.gz</code>.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">wsl --list --all -v
</span></span><span class="line"><span class="cl">wsl --shutdown
</span></span><span class="line"><span class="cl">LxRunOffline.exe export -n UF -f c:/temp/UF.tar.gz
</span></span><span class="line"><span class="cl">LxRunOffline.exe install -n UF2 -d D:/wsl/UF2 -f c:/temp/UF.tar.gz
</span></span></code></pre></div><h2 id="update-from-wsl-1-to-wsl-2">Update from WSL 1 to WSL 2</h2>
<p>You can upgrade distros from WSL1 to WSL2 (and vice versa).
It is a good idea to make a backup before upgrading.</p>
<p>Use <code>cmd</code> for the following commands.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">dism.exe /online <span class="se">^
</span></span></span><span class="line"><span class="cl"><span class="se"> </span>   /enable-feature <span class="se">^
</span></span></span><span class="line"><span class="cl"><span class="se"> </span>   /featurename:VirtualMachinePlatform <span class="se">^
</span></span></span><span class="line"><span class="cl"><span class="se"> </span>   /all /norestart
</span></span></code></pre></div><blockquote>
<p>WSL 2 requires an update to its kernel component. For information please visit <a href="https://aka.ms/wsl2kernel">https://aka.ms/wsl2kernel</a>
For information on key differences with WSL 2 please visit <a href="https://aka.ms/wsl2">https://aka.ms/wsl2</a></p>
</blockquote>
<p>Convert existing WSL distros:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">wsl --list --verbose
</span></span></code></pre></div><blockquote>
<p>NAME    STATE           VERSION</p>
<ul>
<li>UF      Running         1</li>
</ul>
</blockquote>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">wsl --set-version UF 2
</span></span></code></pre></div><p>Note: If you ever have trouble starting a specific distro through a shortcut, try opening it directly
from within cmd:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">wsl -d UF
</span></span></code></pre></div><h3 id="importing-the-distribution-failed">Importing the distribution failed.</h3>
<p>This may happen for various reasons. In my case,
hard links used in ruby gems caused this failure.</p>
<p>After removing all gems, conversion did work.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gem cleanup --dryrun
</span></span><span class="line"><span class="cl">gem cleanup
</span></span><span class="line"><span class="cl">apt remove ruby
</span></span><span class="line"><span class="cl">rm -rf /home/<span class="nv">$USER</span>/gems
</span></span></code></pre></div><p>See <a href="https://github.com/microsoft/WSL/issues/4457">WSL/issues/4457</a>.</p>
<h3 id="update-default-distro">Update default distro</h3>
<p>If you have multiple WSL distros,
set the default one to open with the command line or power shell:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">wsl --list --all -v
</span></span><span class="line"><span class="cl"><span class="p">&gt;</span> UF <span class="p">(</span>Default<span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">&gt;</span> UF2
</span></span><span class="line"><span class="cl">wsl --setdefault UF2
</span></span></code></pre></div><p>If using WSLtty,
<a href="#use-different-wsl-terminal">don&rsquo;t forget to update your shortcuts and default context menu</a>.</p>
<p>To remove a distro completely:</p>
<pre tabindex="0"><code>wsl --unregister &lt;distro name&gt;
</code></pre><h3 id="update-wsl-kernel">Update WSL Kernel</h3>
<p>This should be as simple as running:</p>
<pre tabindex="0"><code>wsl --update
</code></pre><p>Just that it isn&rsquo;t, sometimes.</p>
<p>I would get (Windows Education with disabled App Store):</p>
<blockquote>
<p>To install this application you need either a Windows
developer license or a sideloading-enabled system.</p>
</blockquote>
<p>These steps worked for me:</p>
<ol>
<li>
<p>Download latest AppX WSL manually from <a href="https://github.com/microsoft/WSL/releases">WSL Releases</a></p>
</li>
<li>
<p>Use Admin PowerShell and run <code>Add-AppxPackage ./Microsoft.WSL_2.1.5.0_x64_ARM64.msixbundle</code></p>
</li>
<li>
<p>This failed, for the following reason as stated above.</p>
</li>
<li>
<p>Enable Developer mode. Use <code>Show-WindowsDeveloperLicenseRegistration</code> (powerShell)</p>
</li>
<li>
<p>The Button is grayed out</p>
</li>
<li>
<p>Open Policies <code>gpedit.msc</code></p>
</li>
<li>
<p>Go to Computer Configuration &gt; Administrative Templates &gt; Windows Components &gt;
App Package Deployment.</p>
<ul>
<li>Click &ldquo;Allows development of Windows Store apps.&rdquo;</li>
<li>Change to &ldquo;Enabled&rdquo;</li>
</ul>
</li>
<li>
<p>Developer Mode should now be active</p>
</li>
<li>
<p>Run <code>Add-AppxPackage ./Microsoft.WSL_2.1.5.0_x64_ARM64.msixbundle</code></p>
</li>
<li>
<p>If it works, disable developer mode in policies afterwards.</p>
</li>
</ol>
<p>Check the version afterwards (<code>cmd</code>):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">wsl --version # (or wsl --status) 
</span></span><span class="line"><span class="cl"><span class="p">&gt;</span> WSL-Version: 2.1.5.0
</span></span><span class="line"><span class="cl"><span class="p">&gt;</span> Kernelversion: 5.15.146.1-2
</span></span><span class="line"><span class="cl"><span class="p">&gt;</span> WSLg-Version: 1.0.60
</span></span><span class="line"><span class="cl"><span class="p">&gt;</span> MSRDC-Version: 1.2.5105
</span></span><span class="line"><span class="cl"><span class="p">&gt;</span> Direct3D-Version: 1.611.1-81528511
</span></span><span class="line"><span class="cl"><span class="p">&gt;</span> DXCore-Version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
</span></span><span class="line"><span class="cl"><span class="p">&gt;</span> Windows-Version: 10.0.22631.3155
</span></span></code></pre></div>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>If you updated your WSL Kernel and you have <a href="#use-a-different-wsl-terminal">wsltty</a> installed,
you may need to update this, too. If wsltty is not up to date, your WSL-Shell may close immediately.
You can check by logging into your WSL distro via command line <code>wsl -d UF --user root</code> - if this works,
it is a hint that the wsltty is at fault why regular WSL windows close immediately. Check the latest
<a href="https://github.com/mintty/wsltty/releases">wsltty releases</a> and run <code>add default to context menu</code> and
<code>configure WSL shortcuts</code> afterwards.</p>
</div>
</aside> 
<h3 id="upgrade-linux-distro">Upgrade Linux distro</h3>
<p>This is not related to WSL. You can follow any of the official instructions to
update (e.g.) from Bionic Beaver 18.04 to Focal Fossa 20.04.</p>
<p><strong>Make a <a href="#backup-wsl-distro">backup</a> before you upgrade!</strong></p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt update <span class="o">&amp;&amp;</span> sudo apt upgrade
</span></span><span class="line"><span class="cl">sudo apt install update-manager-core
</span></span></code></pre></div><p>You may need to uninstall screen to get <code>do-release-upgrade</code> to work in WSL:</p>
<pre tabindex="0"><code>sudo apt-get remove screen
</code></pre><p>Edit <code>release-upgrades</code></p>
<pre tabindex="0"><code>sudo nano /etc/update-manager/release-upgrades
</code></pre><p>And change:</p>
<pre tabindex="0"><code>prompt=lts
</code></pre><p>to:</p>
<pre tabindex="0"><code>prompt=normal
</code></pre><p>Restart, then:</p>
<pre tabindex="0"><code>sudo do-release-upgrade
sudo reboot
</code></pre><p>Validate afterwards:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">lsb_release -a
</span></span></code></pre></div><p>After the upgrade, you may need to enable 3rd-Party repos.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">cd</span> /etc/apt/sources.list.d/
</span></span><span class="line"><span class="cl">ls -l
</span></span></code></pre></div><p>Edit the files with <code>nano</code> to uncomment repos.</p>
<p>Afterwards, run:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt update
</span></span><span class="line"><span class="cl">sudo apt upgrade
</span></span></code></pre></div><h3 id="maintenance">Maintenance</h3>
<p>Use <code>debian-security-support</code> to audit installed packages against active security lifecycles and identify abandoned or limited-support components.</p>
<p>Run the following command to check if any installed packages have dropped out of regular security maintenance:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt update <span class="o">&amp;&amp;</span> sudo apt install debian-security-support -y
</span></span><span class="line"><span class="cl">check-support-status
</span></span><span class="line"><span class="cl">sudo apt purge libmfx1 <span class="c1"># e.g. remove problematic packages that are not required in WSL</span>
</span></span></code></pre></div><p>To keep the WSL instance minimal, clean, and free of untracked dependencies, run this cleanup sequence periodically:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt update <span class="o">&amp;&amp;</span> sudo apt upgrade -y
</span></span><span class="line"><span class="cl">sudo apt autoremove --purge -y
</span></span><span class="line"><span class="cl">check-support-status
</span></span></code></pre></div><h2 id="list-of-wsl-issues">List of WSL issues</h2>
<p>Over the years, I have seen many different issues with WSL under different systems. This is a collection
of issues and solutions.</p>
<details><summary><strong>1. WSL window closes immediately</strong></summary>
<p>There are several reasons why this can happen.</p>
<p>The first is to check for an outdated <code>wsltty</code> (see my comment above).</p>
<p>The next is to check whether you can login with <code>wsl -d UF</code>, where <code>UF</code> is the name of your WSL distro. Check with <code>wsl --list -v</code>.</p>
<p>If you <em>can</em> login this way, but your right-click menu does not work (WSL window closes immediately), check the following.</p>
<p>Go to:</p>
<pre tabindex="0"><code>%AppData%\Microsoft\Windows\Start Menu\Programs
</code></pre><p>Check if any of the Shortcuts to WSL work. If so, it might be that the &ldquo;Default Shortcut&rdquo; wsltty Script did not work properly.</p>
<p>This can be solved: Copy the path from a shortcut that does work. For example:</p>
<pre tabindex="0"><code>%LocalAppData%\wsltty\bin\mintty.exe --WSL=&#34;UF4&#34; --configdir=&#34;%AppData%\wsltty&#34; -~  -
</code></pre><p>Open registry editor, go to:</p>
<pre tabindex="0"><code>Computer\HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell\WSL_Terminal\command
</code></pre><p>&hellip; and manually update the command. The updated command will look slightly different from the one above:</p>
<pre tabindex="0"><code>&#34;%LocalAppData%\wsltty\bin\mintty.exe&#34; -i &#34;%LocalAppData%\wsltty\wsl.ico&#34; --WSL=&#34;UF4&#34; --configdir=&#34;%AppData%\wsltty&#34;  -
</code></pre></details>
<details><summary><strong>2. Logon failure</strong></summary>
<p>On some rainy day, I suddenly saw this for my WSL2:</p>
<pre tabindex="0"><code>wsl -d UF
&gt; Logon failure: the user has not been granted the requested logon type at this computer.
&gt; Error code: Wsl/Service/CreateInstance/CreateVm/HCS/0x80070569
</code></pre><p>Solved <a href="https://stackoverflow.com/a/65736070/4556479">with</a>:</p>
<pre tabindex="0"><code class="language-poweshell" data-lang="poweshell">Get-Service vmcompute | Restart-Service
</code></pre></details>
<details><summary><strong>3. wsltty: Failed to run 'wsl': No such file or directory</strong></summary>
<p>After updating <code>wsltty</code> (to version 3.8.0 or newer), the terminal might open and
immediately show a red error message: <code>Failed to run 'wsl': No such file or directory</code>.</p>
<p>This happens because newer versions of <code>wsltty</code> changed the default method of launching
WSL. They now call <code>wsl.exe</code> directly, whereas older versions used a helper program
called <code>wslbridge2</code>. The error indicates that the <code>mintty.exe</code> process cannot find
or execute <code>wsl.exe</code> correctly.</p>
<p>This is an immediate workaround: You can force <code>wsltty</code> to revert to its older, reliable method of launching WSL.</p>
<ol>
<li>Navigate to your <code>wsltty</code> configuration directory by pasting this path into Windows Explorer&rsquo;s address bar: <code>%APPDATA%\wsltty</code></li>
<li>Open the <code>config</code> file with a text editor.</li>
<li>Add the following line to the file and save it:
<pre tabindex="0"><code>WSLbridge=2
</code></pre></li>
</ol>
<p>This instructs <code>wsltty</code> to use the <code>wslbridge2</code> helper program again, bypassing the issue with the direct <code>wsl.exe</code> call.</p>
</details>]]></content></item><item><title>Part IIb: Setup WSL and Docker</title><link>https://links.alexanderdunkel.com/posts/2019-05-27-setup-wsl-docker/</link><pubDate>Mon, 27 May 2019 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-05-27-setup-wsl-docker/</guid><description>&lt;p&gt;This is Part IIb of a 3 1/2-part blog post on how I configured my working environment.
Here I&amp;rsquo;ll explain how to configure WSL together with Docker. Note that I do not use Docker on Windows
very often these days. I mainly connect to VMs via WSL and use Docker remotely. However,
sometimes, Docker on Windows may become handy - have a look at the instructions below on
how to configure WSL together with Docker on Windows.&lt;/p&gt;</description><content type="html"><![CDATA[<p>This is Part IIb of a 3 1/2-part blog post on how I configured my working environment.
Here I&rsquo;ll explain how to configure WSL together with Docker. Note that I do not use Docker on Windows
very often these days. I mainly connect to VMs via WSL and use Docker remotely. However,
sometimes, Docker on Windows may become handy - have a look at the instructions below on
how to configure WSL together with Docker on Windows.</p>
<ul>
<li><a href="/posts/2019-05-27-setup-win10">Part I</a>: Setup Dev Environment in Windows</li>
<li><a href="/posts/2019-05-27-setup-wsl-win10">Part IIa</a>: Windows Subsystem for Linux (WSL)</li>
<li><a href="/posts/2019-05-27-setup-wsl-docker">Part IIb</a>: WSL &amp; Docker setup</li>
<li><a href="/posts/2019-05-27-wsl-software">Part III</a>: Installation of additional packages and tools in WSL</li>
</ul>
<h2 id="install-docker">Install Docker</h2>
<p>You want to be able to run docker-compose and docker client from <strong>WSL1</strong>, but the backend
needs to be run through native Windows 10 Docker Server.
Therefore, install Docker Desktop for Windows 10 first.</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path d="M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"/></svg>
	</div>
	<div class="admonition-content"><p>Connecting to the Windows Docker Server is only necessary for WSL1 because WSL1 does not support nested virtualization.
In WSL2, you can install the native Docker server by following the official docs.</p>
</div>
</aside> 
<p>Option 1: Install with <a href="https://chocolatey.org/">Chocolatey Package Manager</a> with <code>choco install docker-desktop</code></p>
<p>Option 2: Download from <a href="https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe">here</a> and install manually</p>
<h2 id="setup-docker">Setup Docker</h2>
<p>In Docker Desktop (Windows), under General, make sure you uncheck <code>Expose daemon on tcp://localhost/2375 without TLS</code>.</p>
<p>Also, disable <code>Use the WSL 2 based engine</code>.</p>
<p>Under <strong>Shared Drives</strong>,
select the drive where you keep your project folders (e.g. <code>docker-compose.yml</code> etc.).</p>
<p>
  <img src="/imgs/2019-08-01_docker-share-drive.png" alt="">
</p>
<p>This will allow docker from WSL1 access files on this drive,
which is necessary if you want to execute docker-compose in a folder on <code>d:</code>.</p>
<p>I&rsquo;ve also changed some of the Resource/Advanced settings to fit my needs:</p>
<p>
  <img src="/imgs/2020-01-08_docker-desktop-settings.png" alt="">
</p>
<p>As you can see, I&rsquo;ve also changed the location where Docker stores my virtual containers to <code>D:</code></p>
<p>From now on, we&rsquo;re working in the WSL bash (open with right-click and <code>Open WSL bash here</code>).</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Make sure to always follow the latest instructions for installing Docker in Linux, e.g. <a href="https://docs.docker.com/engine/install/ubuntu/">for Ubuntu</a> or <a href="https://docs.docker.com/engine/install/debian/">Debian</a>. Below commands may be outdated.</p>
</div>
</aside> 
<ul>
<li>Update the apt package list.</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt-get update
</span></span></code></pre></div><ul>
<li>Install Docker&rsquo;s package dependencies.</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt-get install <span class="se">\
</span></span></span><span class="line"><span class="cl">    ca-certificates <span class="se">\
</span></span></span><span class="line"><span class="cl">    curl <span class="se">\
</span></span></span><span class="line"><span class="cl">    gnupg <span class="se">\
</span></span></span><span class="line"><span class="cl">    lsb-release
</span></span></code></pre></div><ul>
<li>Download and add Docker&rsquo;s official public PGP key.</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo mkdir -m <span class="m">0755</span> -p /etc/apt/keyrings
</span></span><span class="line"><span class="cl">curl -fsSL https://download.docker.com/linux/debian/gpg <span class="p">|</span> sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
</span></span></code></pre></div><ul>
<li>Use the following command to set up the repository</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">echo</span> <span class="se">\
</span></span></span><span class="line"><span class="cl">  <span class="s2">&#34;deb [arch=</span><span class="k">$(</span>dpkg --print-architecture<span class="k">)</span><span class="s2"> signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
</span></span></span><span class="line"><span class="cl"><span class="s2">  </span><span class="k">$(</span>lsb_release -cs<span class="k">)</span><span class="s2"> stable&#34;</span> <span class="p">|</span> sudo tee /etc/apt/sources.list.d/docker.list &gt; /dev/null
</span></span></code></pre></div><ul>
<li>Install Docker Engine</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo chmod a+r /etc/apt/keyrings/docker.gpg
</span></span><span class="line"><span class="cl">sudo apt-get update
</span></span></code></pre></div><ul>
<li>Install Docker Engine, containerd, and Docker Compose.</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
</span></span></code></pre></div><ul>
<li>Allow your user to access the Docker CLI without needing root access.</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo usermod -aG docker <span class="nv">$USER</span>
</span></span></code></pre></div><p><strong>Docker Compose</strong></p>
<p>There is no need to install docker-compose anymore.</p>
<p><code>docker compose</code> is now available by default (note the missing <code>-</code> in the command)</p>
<h2 id="setup-secure-wsl1-docker-connection">Setup secure WSL1-Docker connection</h2>
<p>A secure connection between WSL1 and Docker Desktop is available
through <code>socat</code><a href="https://linux.die.net/man/1/socat"><sup>1</sup></a> and
<a href="https://github.com/jstarks/npiperelay">npiperelay</a>.</p>
<details><summary><strong>Connect WSL1<->Docker the insecure way?</strong></summary>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path d="M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"/></svg>
	</div>
	<div class="admonition-content"><p>This is the insecure (but easy) way. I suggest to <em>not</em> follow this route.</p>
<p>If you use WSL1, you can connect to Docker in Windows through exposing the Daemon on <code>tcp://localhost:2375</code>.</p>
<p>Open Docker Desktop setup (task manager/right-click/setup) and select</p>
<pre tabindex="0"><code>Expose daemon on tcp://localhost:2375 without TLS
</code></pre><p>
  <img src="/imgs/2019-05-27_docker-desktip-win10-setup.png" alt="">
</p>
<p>You also need to configure WSL to connect to Docker for Windows through <code>tcp://localhost:2375</code>.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s2">&#34;export DOCKER_HOST=tcp://localhost:2375&#34;</span> &gt;&gt; ~/.bashrc <span class="o">&amp;&amp;</span> <span class="nb">source</span> ~/.bashrc
</span></span></code></pre></div><p>This is simple, but <strong>not recommended</strong> because of various security concerns.</p>
<p>Follow the steps below to set up a secure WSL1&lt;-&gt;Docker connection.</p>
</div>
</aside> 
</details>
<p>The steps to set up <code>npiperelay</code>:</p>
<ol>
<li>Install Socat and tmux</li>
</ol>
<ul>
<li>tmux for starting the relay in a background session</li>
<li>socat for the docker relay stream</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt update <span class="o">&amp;&amp;</span> sudo apt install socat tmux
</span></span></code></pre></div><ol start="2">
<li>Get the the <code>npiperelay.exe</code> and setup connection</li>
</ol>
<p>You need to use your Windows username (<code>/c/Users/&lt;username&gt;</code>).</p>
<p>Export your Windows user name as a variable:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">wuser</span><span class="o">=</span>&lt;username&gt;
</span></span></code></pre></div><p>Get <code>npiperelay.exe</code> from Github releases,
build, and store in Windows user directory:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">cd</span> /c/Users/<span class="nv">$wuser</span>/
</span></span><span class="line"><span class="cl">mkdir -p go/bin/
</span></span><span class="line"><span class="cl">wget -O <span class="se">\
</span></span></span><span class="line"><span class="cl">    go/bin/npiperelay_windows_amd64.zip <span class="se">\
</span></span></span><span class="line"><span class="cl">    https://github.com/jstarks/npiperelay/releases/download/v0.1.0/npiperelay_windows_amd64.zip
</span></span><span class="line"><span class="cl">unzip -d go/bin/ go/bin/npiperelay_windows_amd64.zip
</span></span><span class="line"><span class="cl">rm go/bin/npiperelay_windows_amd64.zip
</span></span></code></pre></div><p>Symlink <code>npiperelay.exe</code> from Windows to WSL1:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo ln -s <span class="se">\
</span></span></span><span class="line"><span class="cl">    /c/Users/<span class="nv">$wuser</span>/go/bin/npiperelay.exe <span class="se">\
</span></span></span><span class="line"><span class="cl">    /usr/local/bin/npiperelay.exe
</span></span></code></pre></div><p>Get <code>docker-relay</code> script and run as background task:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">cd</span> ~
</span></span><span class="line"><span class="cl">git clone https://github.com/jstarks/npiperelay.git
</span></span><span class="line"><span class="cl">sudo ln -s ~/npiperelay/scripts/docker-relay /usr/local/bin/
</span></span><span class="line"><span class="cl">chmod +x /usr/local/bin/docker-relay
</span></span></code></pre></div><p>We modify docker-relay so it starts the Socket inside the user directory.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">mkdir ~/sockets
</span></span><span class="line"><span class="cl">nano /usr/local/bin/docker-relay
</span></span></code></pre></div><p>Add the following. Make sure to replace <code>{replace-with-your-username}</code> with your WSL1 username.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="cp">#!/bin/sh
</span></span></span><span class="line"><span class="cl"><span class="nv">SOCKET</span><span class="o">=</span>/home/<span class="o">{</span>replace-with-your-username<span class="o">}</span>/sockets/docker.sock
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[</span> -e <span class="nv">$SOCKET</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span> rm <span class="nv">$SOCKET</span><span class="p">;</span> <span class="k">fi</span>
</span></span><span class="line"><span class="cl"><span class="nb">exec</span> socat UNIX-LISTEN:<span class="nv">$SOCKET</span>,fork,group<span class="o">=</span>docker,umask<span class="o">=</span><span class="m">007</span> EXEC:<span class="s2">&#34;npiperelay.exe -ep -s //./pipe/docker_engine&#34;</span>,nofork
</span></span></code></pre></div><p>Store with CTRL+O.</p>
<p>I also had to manually remove the <code>docker.sock</code> and symlink with the new one:</p>
<pre tabindex="0"><code>cd /var/run
sudo rm docker.sock
sudo ln -s /home/alex/sockets/docker.sock /var/run/docker.sock
</code></pre><p>Test it with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo docker-relay <span class="p">&amp;</span>
</span></span><span class="line"><span class="cl">docker info
</span></span></code></pre></div><pre tabindex="0"><code class="language-output" data-lang="output">&gt; Client:
&gt;  Context:    default
&gt;  Debug Mode: false
&gt;  Plugins:
&gt;   app: Docker App (Docker Inc., v0.9.1-beta3)
&gt;   buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)
&gt;   scan: Docker Scan (Docker Inc., v0.8.0)
</code></pre><p>You <em>may</em> need to add permissions to the <code>docker-sock</code>:</p>
<pre tabindex="0"><code>sudo chown $USER:$USER /home/$USER/sockets/docker.sock
</code></pre><p>To autostart the relay, we need to add these lines to <code>~/.bashrc</code>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># set WSL env; configure secure Docker connection through</span>
</span></span><span class="line"><span class="cl"><span class="c1"># socat and npiperelay</span>
</span></span><span class="line"><span class="cl"><span class="k">if</span> cat /proc/version <span class="p">|</span> grep Microsoft &gt; /dev/null<span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">  <span class="nb">export</span> <span class="nv">WSL</span><span class="o">=</span><span class="nb">true</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[</span> <span class="s2">&#34;</span><span class="nv">$WSL</span><span class="s2">&#34;</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">  <span class="nb">export</span> <span class="nv">DOCKER_HOST</span><span class="o">=</span><span class="s2">&#34;unix://</span><span class="nv">$HOME</span><span class="s2">/sockets/docker.sock&#34;</span>
</span></span><span class="line"><span class="cl">  <span class="k">if</span> ! pgrep socat &gt; /dev/null<span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">    tmux new -s docker-relay-session -d docker-relay
</span></span><span class="line"><span class="cl">  <span class="k">fi</span>
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span></code></pre></div><p>(<code>nano ~/.bashrc</code>)</p>
<p>Finally, some commands may use <code>sudo</code> to start docker. In this case,
<code>DOCKER_HOST</code> will not be available. Modify sudoers to keep this entry:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo nano /etc/sudoers
</span></span></code></pre></div><p>and add the following line:</p>
<pre tabindex="0"><code>Defaults env_keep += DOCKER_HOST
</code></pre><p><strong>Test docker in WSL</strong></p>
<p>Restart Docker for windows!</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">docker run hello-world
</span></span></code></pre></div><p>Some additional information for working with WSL &amp; Docker follow below.</p>
<details><summary><strong>Fix Docker Connectivity Bug</strong></summary>
<p>There seems to be a <a href="https://github.com/docker/for-win/issues/2722">bug</a>,
where Docker on Windows 10 may see errors similar to this after restarting the computer:</p>
<pre tabindex="0"><code class="language-output" data-lang="output">Cannot restart container my_container: driver failed programming external connectivity on endpoint my_container 
...
</code></pre><p>The steps described below may solve this issue.</p>
<p><strong>How to disable fast startup on Windows 10</strong></p>
<p>Disable it in just a few steps:</p>
<ol>
<li>Right-click the Start button.</li>
<li>Click Search.</li>
<li>Type <code>Control Panel</code> and hit Enter on your keyboard.</li>
<li>Click <code>Power Options</code>.</li>
<li>Click <code>Choose what the power buttons do</code>.</li>
<li>Click <code>Change settings that are currently unavailable</code>.</li>
<li>Click <code>Turn on fast startup (recommended)</code> so that the check-mark disappears.</li>
<li>Click <code>Save changes</code>.</li>
</ol>
</details>
<details><summary><strong>Annoying WSL bug: Missing Access rights</strong></summary>
<p>Now this may occur on very few occasions, only for WSL1 - for me it happened mainly when building
python packages (e.g. <code>setuptools</code>, <code>distutils</code>, <code>pypi</code>). Since the latest Windows Update,
some access rights changed and those affect how
packages in WSL can access folders.</p>
<p>Wherever you keep your code, right click main folder, select Security and allow
&ldquo;Full Access&rdquo; to authenticated users.</p>
<p>
  <img src="/imgs/2019-12-12_full_control.png" alt="full access">
</p>
</details>
<h2 id="update-from-wsl-1-to-wsl-2">Update from WSL 1 to WSL 2</h2>
<h3 id="fix-docker-connectivity-after-wsl2-upgrade">Fix Docker Connectivity after WSL2 upgrade</h3>
<p>If you used WSL1 before, there may be an entry in <code>~/.bashrc</code> file that must be removed.</p>
<ol>
<li>
<p>Removed <code>export DOCKER_HOST=tcp://localhost:2375</code> from <code>~/.bashrc</code>;</p>
</li>
<li>
<p>Disabled <code>Expose daemon on tcp://localhost:2375 without TLS</code> in Docker Desktop;</p>
</li>
<li>
<p>Enabled <code>Use the WSL 2 based engine</code> in Docker Desktop</p>
</li>
</ol>
<p>See <a href="https://github.com/microsoft/WSL/issues/4321">WSL/issues/4321</a></p>
]]></content></item><item><title>Part III: Additional package install in Windows Subsystem for Linux (WSL)</title><link>https://links.alexanderdunkel.com/posts/2019-05-27-wsl-software/</link><pubDate>Mon, 27 May 2019 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-05-27-wsl-software/</guid><description>&lt;p&gt;This is Part III of a 3-part blog post on how I configured my system. Here I&amp;rsquo;ll explain how to install additional packages in Windows Subsystem for Linux (WSL)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10"&gt;Part I&lt;/a&gt;: Setup Dev Environment in Windows&lt;/li&gt;
&lt;li&gt;&lt;a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-wsl-win10"&gt;Part IIa&lt;/a&gt;: Windows Subsystem for Linux (WSL)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-wsl-docker"&gt;Part IIb&lt;/a&gt;: WSL &amp;amp; Docker setup&lt;/li&gt;
&lt;li&gt;&lt;a href="https://links.alexanderdunkel.com/posts/2019-05-27-wsl-software"&gt;Part III&lt;/a&gt;: Installation of additional packages and tools in WSL&lt;/li&gt;
&lt;/ul&gt;
&lt;aside class="admonition-highlight"&gt;
&lt;div class="admonition-icon"&gt;
&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"&gt;&lt;path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/&gt;&lt;/svg&gt;
&lt;/div&gt;
&lt;div class="admonition-content"&gt;&lt;p&gt;This is not directly connected to WSL Setup. The steps to install packages in WSL are usually identical to installation in native Linux.&lt;/p&gt;
&lt;/div&gt;
&lt;/aside&gt;</description><content type="html"><![CDATA[<p>This is Part III of a 3-part blog post on how I configured my system. Here I&rsquo;ll explain how to install additional packages in Windows Subsystem for Linux (WSL)</p>
<ul>
<li><a href="/posts/2019-05-27-setup-win10">Part I</a>: Setup Dev Environment in Windows</li>
<li><a href="/posts/2019-05-27-setup-wsl-win10">Part IIa</a>: Windows Subsystem for Linux (WSL)</li>
<li><a href="/posts/2019-05-27-setup-wsl-docker">Part IIb</a>: WSL &amp; Docker setup</li>
<li><a href="/posts/2019-05-27-wsl-software">Part III</a>: Installation of additional packages and tools in WSL</li>
</ul>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>This is not directly connected to WSL Setup. The steps to install packages in WSL are usually identical to installation in native Linux.</p>
</div>
</aside> 
<h2 id="miniconda3">Miniconda3</h2>
<p>Open WSL Bash (anywhere), then:</p>
<ul>
<li>
<p>download Miniconda3 installer for Linux with <code>wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh</code></p>
</li>
<li>
<p><code>bash Miniconda3-latest-Linux-x86_64.sh</code></p>
</li>
<li>
<p>&ldquo;Do you wish the installer to initialize Miniconda3 by running conda init?&rdquo; yes</p>
</li>
<li>
<p>afterwards: <code>conda update -n base conda -c defaults</code></p>
</li>
<li>
<p>optionally, move the conda <code>envs</code> directory <a href="/posts/2019-05-27-setup-win10/#miniconda">to a persistent location</a></p>
</li>
</ul>
<p>Create an env, e.g. for jupyter lab:</p>
<ul>
<li><code>conda create -n jupyter_env</code></li>
</ul>
<p>Add conda-forge only to specific envs, e.g.:</p>
<ul>
<li><code>conda activate jupyter_env</code></li>
<li><code>conda config --add channels conda-forge</code></li>
<li>Optionally add <code>conda config --set channel_priority strict</code></li>
</ul>
<p>Install Jupyter Lab to <code>jupyter_env</code></p>
<ul>
<li><code>conda activate jupyter_env</code></li>
<li><code>conda install -c conda-forge jupyterlab</code> (conda-forge flag is not necessary if conda-forge has been added to default channels)</li>
</ul>
<p>To update all packages in a specific env to latest possible versions:</p>
<ul>
<li><code>conda activate jupyter_env</code></li>
<li><code>conda update --all -c conda-forge</code></li>
</ul>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path d="M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"/></svg>
	</div>
	<div class="admonition-content"><p>Have a look at the list of updates before agreeing with &ldquo;Yes&rdquo; - some packages may be downgraded by this command as a means to solve dependency conflicts. Make sure that the package versions that will be downgraded are not central to your project.</p>
</div>
</aside> 
<p>Test Jupyter Lab with commands:</p>
<ul>
<li><code>conda activate jupyter_env</code></li>
<li><code>jupyter lab</code></li>
</ul>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Further reading:</p>
<ul>
<li><a href="/posts/2019-05-07-install-conda-env-windows/">Setup of jupyter nb env with conda (Windows)</a>: Additional examples and best practice for using conda (the provided examples work with WSL, too)</li>
</ul>
</div>
</aside> 
<h2 id="visual-studio-code">Visual Studio Code</h2>
<p>To use Visual Studio Code in WSL and connect to it using Windows as a frontend.</p>
<p>Visual Studio Code Insiders is available in Choco, install with <code>choco install vscode</code></p>
<p>After installation, open WSL bash in any folder and type <code>code .</code></p>
<p>This will open the folder in Visual Studio Code and let VS Code connect to WSL.</p>
<h2 id="git">Git</h2>
<p>For git, the following instructions are taken from the <a href="https://www.digitalocean.com/community/tutorials/how-to-install-git-on-ubuntu-18-04">official docs</a>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt update
</span></span><span class="line"><span class="cl">sudo apt install git
</span></span></code></pre></div><details><summary>Latest version of git? *Click*</summary> 
<p>If you want the latest &ldquo;upstream&rdquo; stable version from git for Ubuntu, use <sup><a href="http://git-scm.com/download/linux">[1]</a></sup>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt remove git
</span></span><span class="line"><span class="cl">sudo add-apt-repository ppa:git-core/ppa
</span></span><span class="line"><span class="cl">sudo apt-get update
</span></span><span class="line"><span class="cl">sudo apt-get install git
</span></span></code></pre></div></details>
<p>You can confirm that you have installed Git correctly by running the following command:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git --version
</span></span></code></pre></div><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">Output
</span></span><span class="line"><span class="cl">git version 2.17.1
</span></span></code></pre></div><p><strong>Line endings fix:</strong></p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path d="M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"/></svg>
	</div>
	<div class="admonition-content"><p>Because we work in WSL, this additional step is important: Force git to use <code>LF</code> line-endings.</p>
</div>
</aside> 
<p>Some pograms in Windows (such as Notepad) will convert LF line-endings to CRLF without notice, rendering those files unusable in Linux WSL.</p>
<p>The following command will tell git to always change (accidental) CRLF (Windows) line-endings to Unix Style LF line-endings. You can still use <code>LF</code> line-endings in Windows with programs like VS Code or Notepad++, which understand <code>LF</code>.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git config --global core.autocrlf input
</span></span></code></pre></div>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path d="M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"/></svg>
	</div>
	<div class="admonition-content"><p>If you use standard Visual Studio Code (not Visual Studio Code Insiders connected to WSL), you need to tell VS Code to use LF endings by adding <code>&quot;files.eol&quot;: &quot;\n&quot;</code> to your VS Code Settings.</p>
</div>
</aside> 
<p><strong>File permissions fix:</strong></p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path d="M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"/></svg>
	</div>
	<div class="admonition-content"><p>Editing any file in Windows will change linux file permissions back to 755 (executable), e.g. from 644 (non-executable). This can cause problems.</p>
</div>
</aside> 
<p>When you look up this problem, people will usually recommend doing the following:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git config --global core.filemode <span class="nb">false</span>
</span></span></code></pre></div><p>Sadly, <code>git init</code> and <code>git clone</code> always set filemode to true, no matter what is set with <code>git config --global</code>. Therefore, you need to set this manually for each repository you&rsquo;re working on with</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git config --local core.filemode <span class="nb">false</span>
</span></span></code></pre></div><p>If you once forgot to set this, and you&rsquo;re seeing a staged change in git with  <code>644 -&gt; 755</code>, you can undo those changes by typing:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">chmod -x file.xyz
</span></span></code></pre></div><p>There&rsquo;s also the following command:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git update-index --chmod<span class="o">=</span>-x file.xyz
</span></span></code></pre></div><p>.. or the alternative for newer git versions:</p>
<pre tabindex="0"><code>&gt; `git add --chmod=-x` / `--chmod=+x`
</code></pre><p>Here&rsquo;s an <a href="https://stackoverflow.com/a/38285435/4556479">explanation</a>:</p>
<blockquote>
<p>The executable bit will not be detected (and therefore will not be
set) for paths in a repository with <code>core.filemode</code> set to false,
though the users may still wish to add files as executable for
compatibility with other users who <em>do</em> have <code>core.filemode</code>
functionality.<br>
For example, Windows users adding shell scripts may wish to add them as executable for compatibility with users on non-Windows.</p>
</blockquote>
<blockquote>
<p>Although this can be done with a plumbing command (<code>git update-index --add --chmod=+x foo</code>), <strong>teaching the <code>git-add</code> command allows users to set a file executable with a command that they&rsquo;re already familiar with</strong>.</p>
</blockquote>
<p><strong>Git branch display</strong></p>
<p>This tipp comes from Marc: it will display the current branch you&rsquo;re on, if the folder is a git repo.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nano ~/.bashrc
</span></span></code></pre></div><p>Copy the following with paste (right-click) or CTRL+Shift+V, depending on your terminal:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># Git branch in prompt</span>
</span></span><span class="line"><span class="cl"><span class="c1"># https://stackoverflow.com/a/35218509/1329744</span>
</span></span><span class="line"><span class="cl">parse_git_branch<span class="o">()</span> <span class="o">{</span>
</span></span><span class="line"><span class="cl">    git branch 2&gt; /dev/null <span class="p">|</span> sed -e <span class="s1">&#39;/^[^*]/d&#39;</span> -e <span class="s1">&#39;s/- \(.*\)/ (\1)/&#39;</span>
</span></span><span class="line"><span class="cl"><span class="o">}</span>
</span></span><span class="line"><span class="cl"><span class="c1"># create the prompt if not root / else</span>
</span></span><span class="line"><span class="cl">    <span class="nv">PS1</span><span class="o">=</span><span class="s2">&#34;\t \u@\h \w\$(parse_git_branch) &#34;</span>
</span></span></code></pre></div><p>Symbolic links in Git for Windows:
<a href="https://www.joshkel.com/2018/01/18/symlinks-in-windows/">see</a></p>
<h3 id="git-aliases-and-further-config-settings">Git Aliases and further config settings</h3>
<p>Follow the steps described here to further simplify git usage in WSL:</p>
<p><a href="https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases">https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases</a></p>
<p>Also, I like adding git <a href="https://git-scm.com/book/ms/v2/Git-Tools-Rerere">rerere</a> by default:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">git config --global rerere.enabled <span class="nb">true</span>
</span></span></code></pre></div><p>This means that if any merge conflicts appear again, git will remember how they&rsquo;re solved.</p>
<p>These are some other aliases, added to <code>~/.bashrc</code>, that I frequently use. Have a look at <a href="#2020-12-04-git-best-practices">this</a> post.</p>
<h3 id="gpg">gpg</h3>
<p>I added a <a href="../2023-01-19-gpg-linux">dedicated blog post for using git with GPG</a></p>
<h2 id="ssh">SSH</h2>
<p>When you&rsquo;re using git, chances are high you&rsquo;re also authenticating with SSH (e.g. to push/pull from and to a remote repository).</p>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>SSH keys consist of a private part that you keep on your local device and never share with others and a public part, which you can hand others who need to authenticate you, e.g. Github, a Server etc.</p>
</div>
</aside> 
<p>How SSH is supposed to be used:</p>
<ul>
<li>each physical device you&rsquo;re authenticating from should have its own key-pair</li>
<li>that means: it is recommended to not use private keys across several computers (e.g. home and work)</li>
<li>if one of your physical devices got compromised, you can remove that computers public key from remote servers/ websites etc. as a means to disable the compromised private key</li>
<li>commonly, only one key is needed for each device you use and this is used across all serves/targets; creating multiple key-pairs does not increase security</li>
</ul>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>I moved some of the obsolete SSH steps <a href="../2024-08-16-wsl-software-ssh-eol-unlisted">to an unlisted post</a> for archival purposes.</p>
</div>
</aside> 
<h3 id="generate-a-key-pair">Generate a key-pair</h3>
<p>You can generate SSH Key-pairs in Windows (with e.g. Puttygen) or in WSL.</p>
<p>Here I&rsquo;ll describe the Windows route. Have a look at <a href="/posts/2020-11-03-ssh-hosts-tud/">this post</a> that describes how to create an ssh-key-pair in WSL/Linux.</p>
<p>If you create your ssh-key with Puttygen, there&rsquo;s a pitfall because there are two ways to export the private id_rsa from <strong>Puttygen</strong>:</p>
<ol>
<li>The first option is using *<em>Save private key</em>- in puttygen</li>
</ol>
<p>
  <img src="/imgs/2019-10-23_ssh1.png" alt="">
</p>
<p>(Note: <strong>of course, this is a sample key generated</strong>, not any of my personal keys)</p>
<p>Keys exported this way can only be used in Windows, e.g. copy to <code>%USERPROFILE%\.ssh\id_rsa</code>.</p>
<p>If this key is saved to <code>~/.ssh/</code> in Linux (e.g. Windows Subsystem for Linux), it won&rsquo;t work because of the wrong format.</p>
<ol start="2">
<li>The correct way is to export key for WSL/Linux from Windows Puttygen is from the menu *<em>Conversions/Export OpenSSH key</em>- in puttygen</li>
</ol>
<p>
  <img src="/imgs/2019-10-23_ssh2.png" alt="">
</p>
<ol start="3">
<li>Copy the public key (see image from puttygen, above, the field &ldquo;Public key for pasting..&rdquo;) to</li>
</ol>
<p>e.g. Gitlab:</p>
<p><a href="https://gitlab.vgiscience.de/profile/keys">https://gitlab.vgiscience.de/profile/keys</a></p>
<p>
  <img src="/imgs/2019-12-13_SSH_key.png" alt="ssh-key-gitlab">
</p>
<p>e.g. an Ubuntu Server:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo adduser john
</span></span><span class="line"><span class="cl">sudo mkdir /home/john/.ssh/
</span></span><span class="line"><span class="cl">sudo bash -c <span class="s1">&#39;echo &#34;ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAl8hZ0nZRDeFGflhmtuKFCCkxif58z11L+21daz3pglyVg7IZF5HiDBtyNj6Y9wNFef013cOgim5rjRz5D+sco+9zXwxaurM6/cRnffDNiC9bsfMPnAv63AZ7qu8Locb9PC41JH0gDkXuLzuXlKoge2Mjuoe4Ux3SuIdcz9V++P+OJ55QtAcDMC5nQLKiUA1wTiTwEoOmfhw3vlTA083UHk52LCQQ6CufvpjeEFgZbHhDPdY7HgX6jT9XnwpqqlbUvr0dpfOwr8ujxm4xA7gxyBvEx/SlcNchXmExfTOq+eW05ah6uIDdoMywL1/M2qb/sbDgd4KumoqPg7agOYLUBQ== rsa-key-20200110&#34; &gt;&gt; /home/john/.ssh/authorized_keys&#39;</span>
</span></span></code></pre></div><h3 id="ssh-agent-setup-overview">SSH-Agent Setup Overview</h3>
<p>You&rsquo;ve generated your key-pair, but you haven&rsquo;t setup an SSH Agent that manages your keys and is used for authentication.</p>
<p>You&rsquo;ve several options:</p>
<ul>
<li>Use Linux SSH Agent in WSL
<ul>
<li>easy to setup</li>
<li>caveat: you can&rsquo;t use the SSH Agent from WSL to authenticate in Windows (e.g. cmd/git-for-windows)</li>
</ul>
</li>
<li>Use Pageant in Windows 10:
<ul>
<li>easy to setup (use <a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10/#ssh">choco</a>)</li>
<li>you can use <a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10/#ssh">Keepass and the KeeAgent Plugin</a> to manage your ssh keys in windows</li>
<li>caveat: you can&rsquo;t use pageant-keys in your WSL without extra work</li>
</ul>
</li>
<li>Use <a href="https://polansky.co/blog/a-better-windows-wsl-openssh-experience/">Windows 10 OpenSSH Agent</a>
<ul>
<li>supported out of the box</li>
<li>difficult to integrate with Keepass/KeeAgent</li>
</ul>
</li>
<li>Use <a href="https://github.com/benpye/wsl-ssh-pageant">wsl-ssh-pageant</a> or other solutions to connect from WSL to your Windows SSH Agent
<ul>
<li>convenient once it is setup properly</li>
<li>there&rsquo;s a <a href="#2024-wsl2--windows-ssh-agent">list of steps</a> that need to be taken</li>
</ul>
</li>
</ul>
<p>This is my current setup:</p>
<ul>
<li>Putty &amp; Pageant installed with choco</li>
<li>Keepass with KeeAgent plugin, KeeAgend in <code>Agent</code> Mode, adds SSH Keys to Putty</li>
<li>Pageant-Keys from Windows are made available to WSL through a socket (WSL1 &amp; WSL2)</li>
</ul>
<h3 id="basic-ssh-setup-in-wsl">Basic SSH Setup in WSL</h3>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Note: These steps are only necessary if you don&rsquo;t want to <a href="#2024-wsl2--windows-ssh-agent">use windows ssh agent in wsl</a>.</p>
</div>
</aside> 
<p>If you generated a private <code>id_rsa</code> with the above instructions, copy it to the linux ssh folder with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">cp /c/temp/id_rsa ~/.ssh/
</span></span></code></pre></div><p>If the file was generated in Windows,
you also need to update permissions, e.g.:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">cd</span> ~/.ssh/
</span></span><span class="line"><span class="cl">chmod <span class="m">700</span> id_rsa
</span></span></code></pre></div><p>In  case your <code>.ssh</code> folder doesn&rsquo;t exist:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">mkdir ~/.ssh/
</span></span></code></pre></div><p><strong>Optional</strong>: auto ssh</p>
<p>Now, each time you authenticate, SSH will ask for the ssh key password. If you want to authenticate once for the whole session (that is: as long as you keep the WSL Window open), follow these steps:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nano ~/.bashrc
</span></span></code></pre></div><p>Add anywhere the following line:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">alias</span> <span class="nv">autossh</span><span class="o">=</span><span class="s1">&#39;eval `ssh-agent -s`;ssh-add&#39;</span>
</span></span></code></pre></div><p>Hit CTRL+O (save), then reload .bashrc:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">source</span> ~/.bashrc
</span></span></code></pre></div><p>When you open a WSL window now, simply type <code>autossh</code>.
It will ask you for a password. You will stay authenticated during the full WSL session.
Another tip: if you do this in a <code>byobu</code> session, you will stay authenticated even when shutting down your computer (this may or may not be a security risk).</p>
<h3 id="setup-windows-ssh-agent-with-pageant">Setup Windows ssh agent with Pageant</h3>
<ul>
<li><a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10/">install Putty with Choco</a></li>
<li>optionally, install and setup <a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10/#ssh">Keepass and the KeeAgent Plugin</a> to manage your keys with KeePass</li>
</ul>
<p>Optionally unlock your ssh key on Windows Startup:</p>
<ul>
<li>Copy your private key (that is password protected) to <code>%USERPROFILE%\.ssh\id_rsa</code></li>
<li>Use ⊞ + R and run <code>shell:startup</code> to open your startup folder</li>
<li>right-click / Add shortcut and name it &ldquo;load_ssh_key&rdquo;
<ul>
<li>Target:</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">C<span class="p">:</span><span class="nl">\ProgramData\chocolatey\lib\putty.portable\tools\PAGEANT.EXE</span><span class="c1"> &#34;C:\Users\[User]\.ssh\id_rsa.ppk&#34;</span>
</span></span></code></pre></div><ul>
<li>replace [User] by your username - you can get the full path from explorer by using <code>%USERPROFILE%\.ssh</code> and Shift + Right Click on <code>id_raw.ppk</code> (&ldquo;Copy as Path&rdquo;)</li>
<li>use the path to your pageant executable, example above shows path to PAGEANT.EXE if you installed putty with choco</li>
<li>Start in: <code>C:\ProgramData\chocolatey\lib\putty.portable\tools</code></li>
</ul>
</li>
</ul>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Each time you login to Windows, a prompt will open asking you to unlock your key. It will be available (unlocked) through the whole Windows session.</p>
</div>
</aside> 
<h3 id="keepass-and-keeagent">Keepass and KeeAgent</h3>
<p>An alternative (or complementary) option is to use KeePass with the <a href="https://github.com/dlech/KeeAgent">KeeAgent plugin</a>.</p>
<p>Everytime you unlock your KeePass password store, selected keys are made available through KeeAgent in Pageant SSH Agent, there&rsquo;s no need to enter the password for the key.
This allows me to make keys available that I do not use as often (e.g. my Home SSH key, when I&rsquo;m at work).</p>
<ul>
<li>install <a href="https://links.alexanderdunkel.com/posts/2019-05-27-setup-win10/#ssh">KeePass with choco</a></li>
<li>install <a href="https://github.com/dlech/KeeAgent">KeeAgent plugin</a>
<ul>
<li>in KeePass Options / KeeAgent Tab, add (replace <code>[User]</code> with your user or use any other path):
<ul>
<li>Cygwin socket file <code>C:\Users\[User]\Documents\workspace\cyglockfile</code></li>
<li>Msysgit socket file <code>C:\Users\[User]\Documents\syslockfile</code></li>
<li>Check &ldquo;Create WSL1 compatible Socket file&rdquo;</li>
</ul>
</li>
<li>select the KeeAgent Mode <code>Agent</code></li>
</ul>
</li>
</ul>
<p>Screenshot:

  <img src="/imgs/2024-08-16_keeagent.webp" alt="">
</p>
<p>I also set the following options for KeeAgent:

  <img src="/imgs/2020-01-11_KeeAgent.png" alt="">
</p>
<ul>
<li>Add your ssh-key to KeePass, enable KeeAgent availability for each key you want to make available on KeePass unlock</li>
<li>it is a good practice to have only one or two keys made available, otherwise your login may fail due to too many login attempts</li>
<li>Check which keys are unlocked in KeePass under Tools/KeeAgent
<ul>
<li>you can also use this Window to manually remove/add keys from the SSH Agent</li>
</ul>
</li>
</ul>
<p><strong>FAQ</strong>:</p>
<ul>
<li>Make sure that Windows OpenSSH is on the latest version. It is very infrequently updated using Windows updates. You can get the latest <a href="https://github.com/powershell/win32-openssh/releases">Windows OpenSSH from the Github releases page</a>.</li>
<li>Make sure that the <code>OpenSSH Authentication Agent</code> Service is disabled. Check with <kbd>WIN-Key+R</kbd> -&gt; <code>services.msc</code></li>
</ul>
<h3 id="2024-wsl2--windows-ssh-agent">2024: WSL2 &amp; Windows SSH Agent</h3>
<p>WSL2 kept me busy with SSH issues. After a few months of trying to fix these, I found a pretty nice solution for connecting
from WSL2 to my SSH Agent in Windows (KeePass with KeeAgent).</p>
<p>This was described by <a href="https://github.com/benpye/wsl-ssh-pageant/issues/33#issuecomment-1546169272"> zoredache</a> on Github.
It is based on the idea to connect to WSL2 via OpenSSH from the Windows side to symlink the Windows SSH authentication socket into WSL2.</p>
<ol>
<li>First, check that you can actually see your windows keys on windows. Use <code>cmd</code>:</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-cmd" data-lang="cmd"><span class="line"><span class="cl">ssh-add.exe -L
</span></span><span class="line"><span class="cl"><span class="p">&gt;</span> ssh-rsa ...
</span></span></code></pre></div><p>If not, install OpenSSH in Windows.</p>
<ol start="2">
<li>Install OpenSSH Server in WSL2</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt-get install openssh-server
</span></span></code></pre></div><ol start="3">
<li>Change the port openssh is listening in WSL2</li>
</ol>
<pre tabindex="0"><code>sudo nano /etc/ssh/sshd_config
</code></pre><p>Add:</p>
<pre tabindex="0"><code>Port 2222
</code></pre><ol start="4">
<li><a href="https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/">Enable systemd support in WSL2</a></li>
</ol>
<pre tabindex="0"><code>sudo nano /etc/wsl.conf
</code></pre><p>Add:</p>
<pre tabindex="0"><code>[boot]
systemd=true
</code></pre><p>For completeness, my full <code>wsl.conf</code> looks like this:</p>
<pre tabindex="0"><code>[automount]
root = /
options = &#34;metadata&#34;

[network]
generateResolvConf = false

[boot]
systemd=true
</code></pre><ol start="5">
<li>Shutdown WSL2</li>
</ol>
<p>In CMD, use:</p>
<pre tabindex="0"><code>wsl.exe --shutdown -n WSL_UF2
</code></pre><p>..where <code>WSL_UF2</code> must be replaced with your WSL name. Use <code>&gt;wsl --list -v</code> to get a list of names.</p>
<ol start="6">
<li>Add your public SSH key to WSL2</li>
</ol>
<p>In order for Windows to connect to WSL2, you must add the <em>public</em> key part to WSL2 <code>authorized_keys</code>.</p>
<pre tabindex="0"><code>nano ~/.ssh/authorized_keys
</code></pre><p>Add:</p>
<pre tabindex="0"><code>ssh-ed25519 ...
</code></pre><ol start="7">
<li>Test SSH connection from Windows to WSL2</li>
</ol>
<p>In CMD:</p>
<pre tabindex="0"><code>cd C:\Windows\System32\OpenSSH
ssh.exe alex@localhost -p 2222
&gt; Last login: Fri Aug  9 10:02:22 2024
&gt; ...
</code></pre><p>..where <code>alex</code> must be replaced with your WSL2 username.</p>
<ol start="8">
<li>Create a systemd service to update <code>SSH_AUTH_SOCK</code> in WSL2</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo nano /etc/systemd/system/ssh_agent.service
</span></span></code></pre></div><p>Add:</p>
<pre tabindex="0"><code class="language-conf" data-lang="conf">[Unit]
Description=SSH Agent
After=ssh.service
ConditionPathExists=/c/Windows/System32/OpenSSH/ssh.exe

[Service]
ExecStart=/c/Windows/System32/OpenSSH/ssh.exe \
    alex@localhost -p 2222 -A -t -t bash -c \
    &#39;: ; ln -sf &#34;$SSH_AUTH_SOCK&#34; ~/.ssh/agent ; exec sleep 1d&#39;
KillMode=process
Restart=on-failure
Type=simple

[Install]
WantedBy=multi-user.target
</code></pre><ol start="9">
<li>Start the agent</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo systemctl start ssh_agent
</span></span></code></pre></div><p>Check that it is active:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">systemctl is-active ssh_agent
</span></span></code></pre></div><ol start="10">
<li>Test to get SSH keys from WSL2</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">ssh-add -l
</span></span><span class="line"><span class="cl">&gt; <span class="m">2048</span> SHA256: ...
</span></span></code></pre></div><ol start="11">
<li>Update your <code>~/.bashrc</code> to start the daemon automatically</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="k">if</span> <span class="o">[</span> -L ~/.ssh/agent -a -z <span class="si">${</span><span class="nv">SSH_AUTH_SOCK</span><span class="p">+x</span><span class="si">}</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">    <span class="c1"># wait a bit for systemd to start sshd and ssh_agent units.</span>
</span></span><span class="line"><span class="cl">    <span class="nv">wait_tries</span><span class="o">=</span><span class="m">20</span>
</span></span><span class="line"><span class="cl">    <span class="k">until</span> <span class="nb">test</span> <span class="k">$((</span>wait_tries--<span class="k">))</span> -eq <span class="m">0</span> -o -S ~/.ssh/agent <span class="p">;</span> <span class="k">do</span> sleep 0.5<span class="p">;</span> <span class="k">done</span>
</span></span><span class="line"><span class="cl">    <span class="nb">unset</span> wait_seconds
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span><span class="line"><span class="cl"><span class="c1"># set our socket</span>
</span></span><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">SSH_AUTH_SOCK</span><span class="o">=</span>~/.ssh/agent
</span></span></code></pre></div><p>I still had problems that the <code>ssh_agent</code> service would not start automatically. I solved this by adding:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo systemctl start ssh_agent
</span></span></code></pre></div><p><em>before</em> the above in <code>~/.bashrc</code>.</p>
<p>To not always enter my <code>sudo</code> password, I updated <code>visudo</code> for an exception for user <code>alex</code> and the <code>systemctl</code> command.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo visudo
</span></span></code></pre></div><p>Add:</p>
<pre tabindex="0"><code>alex ALL=NOPASSWD: /bin/systemctl
</code></pre><p>.. and replace user <code>alex</code> with your username.</p>
<p><em>Finally I can skip WSL1 and move all my work to WSL2.</em></p>
<h2 id="php--composer">PHP &amp; Composer</h2>
<p>Instructions as per <a href="https://blog.devsense.com/2018/04/wsl">this</a> guide. Watch out for version variables within the following instructions - all php versions must match - e.g. replace <code>7.2</code> with your version of choice.</p>
<p><strong>Install Apache and PHP</strong></p>
<p>For PHP development in WSL, we need to get a web server and <strong>PHP</strong>. We&rsquo;re using *<em>Apache</em>- here,
but feel free to install the web server of your preference.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt-get install php
</span></span><span class="line"><span class="cl">sudo apt-get install php-dom <span class="c1"># optional</span>
</span></span></code></pre></div><p><strong>Install Composer inside Ubuntu in WSL</strong></p>
<p>Following the <a href="https://getcomposer.org/download/">official instructions for downloading and installing Composer</a>, copy and paste this command into the CLI:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">php -r <span class="s2">&#34;copy(&#39;https://getcomposer.org/installer&#39;, &#39;composer-setup.php&#39;);&#34;</span>
</span></span><span class="line"><span class="cl">php -r <span class="s2">&#34;if (hash_file(&#39;sha384&#39;, &#39;composer-setup.php&#39;) === &#39;a5c698ffe4b8e849a443b120cd5ba38043260d5c4023dbf93e1558871f1f07f58274fc6f4c93bcfd858c6bd0775cd8d1&#39;) { echo &#39;Installer verified&#39;; } else { echo &#39;Installer corrupt&#39;; unlink(&#39;composer-setup.php&#39;); } echo PHP_EOL;&#34;</span>
</span></span><span class="line"><span class="cl">php composer-setup.php
</span></span><span class="line"><span class="cl">php -r <span class="s2">&#34;unlink(&#39;composer-setup.php&#39;);&#34;</span>
</span></span></code></pre></div><p>To make Composer easier to use, run the following command to move Composer into your global path:</p>
<pre tabindex="0"><code>sudo mv composer.phar /usr/local/bin/composer
</code></pre><p>Now you can run <code>composer</code></p>
<p><strong>Finally, to start a local webserver running php in the current dictionary, enter the following command:</strong></p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">php -S 127.0.0.1:8000
</span></span></code></pre></div><p>..and open <code>http://127.0.0.1:8000/</code> in your browser of choice.</p>
<h2 id="nvm-npm-and-nodejs">NVM, NPM and NodeJS</h2>
<p>.. with JS, things can get confusing:</p>
<blockquote>
<p>Nvm is a nodejs version manager. It let&rsquo;s you easily install and switch between versions. It retains globally installed packages for each version.</p>
</blockquote>
<blockquote>
<p>Npm is a package manager. It let&rsquo;s you install software (libraries, plugins, frameworks and applications). Typically this software is installed to build Node applications. Sometimes it isn&rsquo;t.</p>
</blockquote>
<p>That means, NPM and NodeJS can be installed with NVM.</p>
<p>And <em>Yarn</em>? Yarn and NPM are both package managers for JS - if you have NPM, you don&rsquo;t need Yarn. In other words, these two commands are interchangeable:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># install local dependencies with yarn</span>
</span></span><span class="line"><span class="cl">yarn install .
</span></span><span class="line"><span class="cl"><span class="c1"># install local dependencies with npm</span>
</span></span><span class="line"><span class="cl">npm install .
</span></span></code></pre></div><p>However, sometimes packages are only available with yarn.lock - for those situations, you installing yarn and npm in parallel is possible.</p>
<h3 id="install-nvm">Install NVM</h3>
<p>Check newest <a href="https://github.com/nvm-sh/nvm/releases">release</a> and download, following the <a href="https://github.com/nvm-sh/nvm">instructions</a>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh <span class="p">|</span> bash
</span></span></code></pre></div>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>To upgrade NVM, run the command above again with the newest version.</p>
</div>
</aside> 
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">NVM_DIR</span><span class="o">=</span><span class="s2">&#34;</span><span class="k">$(</span><span class="o">[</span> -z <span class="s2">&#34;</span><span class="si">${</span><span class="nv">XDG_CONFIG_HOME</span><span class="p">-</span><span class="si">}</span><span class="s2">&#34;</span> <span class="o">]</span> <span class="o">&amp;&amp;</span> <span class="nb">printf</span> %s <span class="s2">&#34;</span><span class="si">${</span><span class="nv">HOME</span><span class="si">}</span><span class="s2">/.nvm&#34;</span> <span class="o">||</span> <span class="nb">printf</span> %s <span class="s2">&#34;</span><span class="si">${</span><span class="nv">XDG_CONFIG_HOME</span><span class="si">}</span><span class="s2">/nvm&#34;</span><span class="k">)</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="o">[</span> -s <span class="s2">&#34;</span><span class="nv">$NVM_DIR</span><span class="s2">/nvm.sh&#34;</span> <span class="o">]</span> <span class="o">&amp;&amp;</span> <span class="se">\.</span> <span class="s2">&#34;</span><span class="nv">$NVM_DIR</span><span class="s2">/nvm.sh&#34;</span> <span class="c1"># This loads nvm</span>
</span></span></code></pre></div><ul>
<li>Check install with <code>nvm --version</code></li>
</ul>
<h3 id="install-node-and-npm">Install Node and NPM</h3>
<p>Install Node and NPM with NVM (<a href="https://linuxize.com/post/how-to-install-node-js-on-ubuntu-18.04/">see</a>).</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nvm install --lts node
</span></span><span class="line"><span class="cl">nvm use node
</span></span></code></pre></div><p>Check with <code>node --version</code></p>
<p>This will automatically install NPM, too.</p>
<p>With NVM, you can install multiple versions of node in parallel, e.g.:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nvm install 6.14.4 <span class="c1"># or 10.10.0, 8.9.1, etc</span>
</span></span><span class="line"><span class="cl">nvm use 6.14.4
</span></span></code></pre></div>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Your node version must be compatible with the OS you are using.
For instance, the latest node version 19 is not compatible with Ubuntu 18.04 (glibc error),
so you would need to install a lower version node, such as <code>nvm install 16.17.0</code>.</p>
</div>
</aside> 
<p>Using Node and NPM with NVM makes it much easier managing JS environments.</p>
<p>To use NPM packages globally, use prefix <code>npx</code>, e.g.:</p>
<pre tabindex="0"><code>npx markdown-toc -i markdown.md
</code></pre><h3 id="install-yarn">Install yarn</h3>
<p>We first install <code>node</code> with <code>nvm</code> and then use <code>npm</code> (which comes with node) to
install yarn.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">nvm install node
</span></span><span class="line"><span class="cl">npm install --global yarn
</span></span><span class="line"><span class="cl">yarn --version
</span></span></code></pre></div><p>Then install dependencies of your project with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">yarn install
</span></span></code></pre></div><h2 id="install-rvm-ruby-gem-bundler">Install RVM, Ruby, Gem, Bundler</h2>
<p>E.g., for locally testing running jekyll-reveal web presentations.</p>
<p>Similar to NVM, RVM is the Ruby Version Manager.</p>
<ul>
<li>First, follow the <a href="https://rvm.io/rvm/install">official instructions</a> to install RVM in Linux</li>
</ul>
<p>e.g.:</p>
<pre tabindex="0"><code>gpg --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable --ruby
</code></pre>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>On Debian bullseye, some commands would fail for not finding <code>mkdir</code>. I fixed this with:</p>
<pre tabindex="0"><code>sudo ln -s /bin/mkdir /usr/bin/mkdir
</code></pre></div>
</aside> 
<p>Afterwards, restart WSL and install ruby with RVM:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">rvm install ruby-3.1.0
</span></span></code></pre></div><details><summary>Ruby/RVM issues</summary>
<p>Many issues with RVM and Ruby installation are related
to minimal versions required by distros. For instance,
Ubuntu 22.04 ships with OpenSSL 3.0.0, which limits the
lower Ruby version to 3.1.0.</p>
<p>You can check this <a href="https://bundler.io/guides/rubygems_tls_ssl_troubleshooting_guide.html#automated-ssl-check">with</a>:</p>
<pre tabindex="0"><code>curl -Lks &#39;https://git.io/rg-ssl&#39; | ruby
</code></pre><p>If you see OpenSSL issues during installation, try explicitly
setting openssl dir during installation (update <code>[user]</code> below, watch
for the path output by the previous command):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">rvm autolibs <span class="nb">enable</span> <span class="c1"># activate</span>
</span></span><span class="line"><span class="cl">rvm install ruby-3.1.0 --with-openssl-dir<span class="o">=</span>/home/<span class="o">[</span>user<span class="o">]</span>/.rvm/usr
</span></span></code></pre></div><p>Or <a href="https://github.com/rbenv/ruby-build/discussions/2199">follow this hint and install linuxbrew</a> and then use:</p>
<pre tabindex="0"><code>/bin/bash -c &#34;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&#34;
rvm install ruby-3.1.0 --with-openssl-dir=$(brew --prefix openssl@3)
</code></pre><p>There is also a wider range of recommendations available from <a href="https://bundler.io/guides/rubygems_tls_ssl_troubleshooting_guide.html#installed-with-rvm">bundler.io</a>.</p>
</details>
<p>Check if ruby is installed:</p>
<pre tabindex="0"><code class="language-console-bash" data-lang="console-bash">ruby --version
</code></pre><p>The <a href="https://stackoverflow.com/a/17552710/4556479">recommended way</a> is to install ruby in your home directory. Below, replace with your version:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">rvm use 3.1.0 --default
</span></span></code></pre></div>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Install the ruby version you want. As of 2021-11-29, I had trouble getting ruby 3.0.0 to work with jekyll,
which is why I pinned 2.7.0. 3.1.0 worked as of 2024-11-08. You can always install and switch between multiple
versions, too.</p>
</div>
</aside> 
<p>The output should be similar to</p>
<pre tabindex="0"><code>Using /home/[user]/.rvm/gems/ruby-3.1.0
</code></pre><p>Update gems once:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gem update
</span></span><span class="line"><span class="cl">gem update --system
</span></span></code></pre></div><p>Install bundler and jekyll:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">gem install bundler jekyll
</span></span><span class="line"><span class="cl">bundle update --bundler
</span></span></code></pre></div><p>For <a href="https://github.com/github/pages-gem/issues/752#issuecomment-764647862">jekyll on ruby 3.09</a>,
I also had to manually install webrick:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">bundle add webrick
</span></span></code></pre></div><p>Then prepare and run your presentation, e.g.:</p>
<pre tabindex="0"><code>bundle install
bundle exec jekyll serve -o
</code></pre><p>If your rvm install fills up after a while, use the following to cleanup:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="o">[</span>rvmsudo<span class="o">]</span> rvm cleanup all
</span></span></code></pre></div>

<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>In WSL2, <a href="https://github.com/microsoft/WSL/issues/216#issuecomment-1597610661">live-reloading may not work out of box</a> during development.
Try starting the presentation with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">bundle <span class="nb">exec</span> jekyll serve --force_polling --livereload
</span></span></code></pre></div></div>
</aside> 
<h3 id="troubleshooting">Troubleshooting</h3>
<ul>
<li>If you see a message like</li>
</ul>
<pre tabindex="0"><code class="language-output" data-lang="output">/usr/share/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/rubygems/ext/builder.rb:76: warning: Insecure world writable dir /home/userxxx/.rvm/gems in PATH, mode 040777
</code></pre><p>Fix <a href="https://stackoverflow.com/questions/6192003/insecure-world-writable-dir-users-username-in-path-mode-040777-when-running-ru">with</a>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo chmod go-w /usr/share/rvm/
</span></span></code></pre></div><ul>
<li>If you see a message like</li>
</ul>
<pre tabindex="0"><code class="language-output" data-lang="output">/usr/share/rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:1656: warning: already initialized constant FileUtils::METHODS
</code></pre><p>run</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">uninstall fileutils
</span></span></code></pre></div><p>to fix it.</p>
<h2 id="hugo">Hugo</h2>
<p>For building static sites, I often use <a href="https://github.com/gohugoio/hugo/releases">Hugo</a> (in fact, this page is generated from markdown with Hugo).</p>
<p>To install Hugo in WSL (for local testing), get the latest release from Github Release page (check the version number):</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">wget https://github.com/gohugoio/hugo/releases/download/v0.131.0/hugo_extended_0.131.0_linux-amd64.deb
</span></span></code></pre></div><p>.. and install to user folder (<code>/usr/local/bin/</code>) with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo apt-get install -f ./hugo_extended_0.131.0_linux-amd64.deb
</span></span></code></pre></div><p>Now build and serve your site locally with:</p>
<pre tabindex="0"><code>hugo serve
</code></pre><h2 id="byobu">byobu</h2>
<p>**<a href="https://byobu.org/">byobu</a>*- is a window manager and terminal multiplexer. I like to use it when I have long running sessions on remote computers, where
I want to detach and continue letting scripts run.</p>
<ol>
<li>it allows opening multiple windows next to each other and</li>
<li>running commands in background.</li>
</ol>
<p>It can be installed with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">apt-get install byobu
</span></span></code></pre></div><p>Start it with <code>byobu</code>. Here&rsquo;s a list with the most frequent shortcuts I use:</p>
<ul>
<li><kbd>F2</kbd> - Create a new window</li>
<li><kbd>F3/F4</kbd> - Move focus among windows</li>
<li><kbd>F6</kbd> - Detach session and then logout (byobu window keeps running, even if WSL is closed)</li>
<li><kbd>Ctrl</kbd>-<kbd>F6</kbd> - Kill current Window in focus   (window closed)</li>
<li><kbd>F7</kbd> - Enter scrollback history</li>
<li><kbd>F8</kbd> - Rename the current window</li>
</ul>
<p>When you close WSL and reopen it later, type <code>byobu</code> and you&rsquo;ll have all your Sessions still running.</p>
<p>To enable <code>byobu</code> automatically on startup:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">byobu-enable
</span></span></code></pre></div><p><strong>SSH-Agent forwarding:</strong></p>
<p>It can be challenging to get SSH Agend forwarding (<code>-A</code>) to work with byobu (in case
you want to use <code>ssh</code> from within a byobu session).</p>
<p><a href="https://gist.github.com/jvkersch/e7ef80dea675524d332f">This</a> worked for me, slightly adapted for byobu:</p>
<ol>
<li>In <code>~/.ssh/rc</code>, add</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="k">if</span> <span class="nb">test</span> <span class="s2">&#34;</span><span class="nv">$SSH_AUTH_SOCK</span><span class="s2">&#34;</span><span class="p">;</span> <span class="k">then</span>
</span></span><span class="line"><span class="cl">	ln -sf <span class="nv">$SSH_AUTH_SOCK</span> ~/.ssh/ssh_auth_sock
</span></span><span class="line"><span class="cl"><span class="k">fi</span>
</span></span></code></pre></div><p>This will create a symlink from the auth socket to a fixed path, so that we can refer to it in the next step.</p>
<ol start="2">
<li>In <code>~/.byobu/.tmux.conf</code>, add</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">setenv -g SSH_AUTH_SOCK <span class="nv">$HOME</span>/.ssh/ssh_auth_sock
</span></span><span class="line"><span class="cl"><span class="nb">set</span> -g update-environment -r
</span></span></code></pre></div><p>On attaching to a tmux session, this will set <code>SSH_AUTH_SOCK</code> to the path we just created.</p>
<p>Afterwards:</p>
<ul>
<li>reload <code>byobu</code> with <kbd>F5</kbd></li>
<li>logout and login again</li>
<li>test with <code>ssh-add</code></li>
</ul>
]]></content></item><item><title>Install tagmaps package in Windows</title><link>https://links.alexanderdunkel.com/posts/2019-05-24-install-tagmaps-windows/</link><pubDate>Thu, 23 May 2019 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-05-24-install-tagmaps-windows/</guid><description>&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-05-23_emojimap_campus.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;This is a brief guide for installing &lt;a href="https://github.com/Sieboldianus/TagMaps"&gt;Tagmaps&lt;/a&gt;
package in Windows.&lt;/p&gt;
&lt;p&gt;There are many ways to install python tools. As lined out in the &lt;a href="https://ad.vgiscience.org/tagmaps/docs/quick-guide/"&gt;docs&lt;/a&gt;,
these are the 2 most common:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;The recommended way to install the package is with &lt;code&gt;conda install tagmaps -c conda-forge&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you need to install with pip, it is recommended to install all dependencies
first and then run &lt;code&gt;pip install tagmaps&lt;/code&gt;. &lt;em&gt;However&lt;/em&gt;, I strongly recommend to move to conda on Windows.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;</description><content type="html"><![CDATA[<p>
  <img src="/imgs/2019-05-23_emojimap_campus.png" alt="">
</p>
<p>This is a brief guide for installing <a href="https://github.com/Sieboldianus/TagMaps">Tagmaps</a>
package in Windows.</p>
<p>There are many ways to install python tools. As lined out in the <a href="https://ad.vgiscience.org/tagmaps/docs/quick-guide/">docs</a>,
these are the 2 most common:</p>
<ol>
<li>
<p>The recommended way to install the package is with <code>conda install tagmaps -c conda-forge</code></p>
</li>
<li>
<p>If you need to install with pip, it is recommended to install all dependencies
first and then run <code>pip install tagmaps</code>. <em>However</em>, I strongly recommend to move to conda on Windows.</p>
</li>
</ol>
<p>For a detailed guide to setup tagmaps package in Windows 10, see the <a href="https://ad.vgiscience.org/tagmaps/docs/user-guide/installation/">documentation</a>
.</p>
]]></content></item><item><title>IfK Spatial Discourse Slides</title><link>https://links.alexanderdunkel.com/posts/2019-05-21-ifk-spatial-discourse/</link><pubDate>Tue, 21 May 2019 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-05-21-ifk-spatial-discourse/</guid><description>&lt;p&gt;
&lt;img src="https://frontend-data.netlify.com/" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://ad.vgiscience.org/ifk-spatial-discourse/images/mabox_draw.gif" alt=""&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/ifk-spatial-discourse/#/"&gt;Link to Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The presentation is strcutured in 3 parts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/ifk-spatial-discourse/#/2"&gt;1&lt;/a&gt; meinGrün procedural visualizations&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/ifk-spatial-discourse/#/3"&gt;2&lt;/a&gt; theplink-docker architecture based on FastAPI&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/ifk-spatial-discourse/#/9"&gt;3&lt;/a&gt; motivation/outlook for theplink docker interface&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-05-21_spatialdiscussions.png" alt=""&gt;
&lt;/p&gt;</description><content type="html"><![CDATA[<p>
  <img src="https://frontend-data.netlify.com/" alt="">
</p>
<p>
  <img src="https://ad.vgiscience.org/ifk-spatial-discourse/images/mabox_draw.gif" alt="">
</p>
<ul>
<li><a href="https://ad.vgiscience.org/ifk-spatial-discourse/#/">Link to Slides</a></li>
</ul>
<p>The presentation is strcutured in 3 parts:</p>
<ul>
<li><a href="https://ad.vgiscience.org/ifk-spatial-discourse/#/2">1</a> meinGrün procedural visualizations</li>
<li><a href="https://ad.vgiscience.org/ifk-spatial-discourse/#/3">2</a> theplink-docker architecture based on FastAPI</li>
<li><a href="https://ad.vgiscience.org/ifk-spatial-discourse/#/9">3</a> motivation/outlook for theplink docker interface</li>
</ul>
<p>
  <img src="/imgs/2019-05-21_spatialdiscussions.png" alt="">
</p>
]]></content></item><item><title>Konsortialtreffen meinGrün: presentation progress TUD IfK (Heidelberg)</title><link>https://links.alexanderdunkel.com/posts/2019-05-07-konsortialtreffen-heidelberg/</link><pubDate>Tue, 07 May 2019 15:00:00 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-05-07-konsortialtreffen-heidelberg/</guid><description>&lt;p&gt;As requested by Robert Hecht, slides have been prepared in Power Point and merged with IöR slides:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/meinGruenMeeting_TUDFolien.pptx"&gt;Download Slides pptx&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-05-07_heidelberg_slides_tud.png" alt=""&gt;
&lt;/p&gt;</description><content type="html"><![CDATA[<p>As requested by Robert Hecht, slides have been prepared in Power Point and merged with IöR slides:</p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/meinGruenMeeting_TUDFolien.pptx">Download Slides pptx</a></li>
</ul>
<p>
  <img src="/imgs/2019-05-07_heidelberg_slides_tud.png" alt="">
</p>
]]></content></item><item><title>Setup of jupyter nb env with conda (Windows)</title><link>https://links.alexanderdunkel.com/posts/2019-05-07-install-conda-env-windows/</link><pubDate>Tue, 07 May 2019 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-05-07-install-conda-env-windows/</guid><description>&lt;p&gt;Setup of dependencies for python code development can be frustrating. No fits-all
solution is available. However, using conda and a &lt;code&gt;environment.yml&lt;/code&gt;-file offers one of
the most robust approaches. A *.yml file tells conda which dependencies (i.e. packages)
with the exact version to install and from where (that is: conda channels).&lt;/p&gt;
&lt;p&gt;This post describes how to setup a conda environment for running &lt;a href="https://links.alexanderdunkel.com/posts/2019-05-03-osm-graph-lbsm-frequency/"&gt;this&lt;/a&gt;
Jupyter notebook. To start, download the example *.yml file:&lt;/p&gt;</description><content type="html"><![CDATA[<p>Setup of dependencies for python code development can be frustrating. No fits-all
solution is available. However, using conda and a <code>environment.yml</code>-file offers one of
the most robust approaches. A *.yml file tells conda which dependencies (i.e. packages)
with the exact version to install and from where (that is: conda channels).</p>
<p>This post describes how to setup a conda environment for running <a href="/posts/2019-05-03-osm-graph-lbsm-frequency/">this</a>
Jupyter notebook. To start, download the example *.yml file:</p>
<ul>
<li><a href="files/environment_ipynb.yml">environment_ipynb.yml</a></li>
</ul>
<h2 id="install-conda">Install conda</h2>
<p>You can install Conda in Linux and Windows. For Linux instructions, see <a href="/posts/2019-05-27-wsl-software/#miniconda3">this</a>
post. The instructions below describe how to installall/use conda in Windows</p>
<p>If you haven&rsquo;t done so far, you can either install <a href="https://anaconda.org/">Anaconda</a>
or <a href="https://docs.conda.io/en/latest/miniconda.html">Miniconda</a>. Miniconda is suitable
if you only want the package manager. I suggest using <a href="https://chocolatey.org/">Choco</a>
to install Miniconda3 in Windows:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">choco install miniconda3 --params<span class="o">=</span><span class="s2">&#34;&#39;/AddToPath:1&#39;&#34;</span>
</span></span></code></pre></div><p>This will install conda and add it to your Path. In other words, whenever you open
a Windows command line and type <code>conda</code>, it will be available.</p>
<p>I update conda always manually with <code>conda update -n base conda</code>. The following command
will prevent choco to upgrade conda automatically:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">choco pin add -n<span class="o">=</span>miniconda3
</span></span></code></pre></div><p>Afterwards, open a cmd window and type:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda --version
</span></span></code></pre></div><p>It should show something like this: <code>conda 4.7.12</code></p>
<p>Update conda package manager to the latest release with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda update -n base conda
</span></span></code></pre></div><p>Here, &ldquo;base&rdquo; is the base environment of conda.</p>
<p>A good practice is to never touch the base environment except for conda updates.
For all other package installs, create an explicit environment.</p>
<h2 id="conda-basics">Conda basics</h2>
<p>You can create a new conda env from scratch with the following command:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda create --name jupyter_testenv
</span></span></code></pre></div><p>Afterwards, activate it with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda activate jupyter_testenv
</span></span></code></pre></div><p>Everything you do now will be done inside the activated env. For example, it is a good practive to install <code>pip</code> inside every conda env:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda install pip
</span></span></code></pre></div><p>If you run pip afterwards, it will be used from within the env:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pip install requests
</span></span></code></pre></div><p>Generally, you should avoid installing packages with <code>pip</code> if they&rsquo;re available on conda. E.g., the better command would be:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda install requests
</span></span></code></pre></div><p><strong>Use channels</strong></p>
<p>Conda has several channels from where packages can be installed. You should not mix packages from different channels in the same env.</p>
<p>The most famous channel is <code>conda-forge</code>, a community managed conda channel. Usually, most of my conda envs contain packages installed from conda-forge.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda install pip -c conda-forge
</span></span><span class="line"><span class="cl">conda install requests -c conda-forge
</span></span></code></pre></div><p>Check the output of any install operation. If you see that a large list of packages was formerly installed from the base channel, and you issued <code>-c conda-forge</code>, all existing packages in the env will be reinstalled from <code>conda-forge</code>.</p>
<p>This may not be what you want. Either always use <code>-c conda-forge</code> or never inside one env. It is also recommended to <a href="https://conda-forge.org/docs/user/tipsandtricks.html#using-multiple-channels">never</a> mix packages from multiple channels.</p>
<p>Sometimes, you must install packages with pip because they&rsquo;re not yet on conda. You can do this and most of the time it will work (depending on the package).</p>
<p>However, while <code>conda update --all -c conda-forge</code> will update all packages in the env installed with conda , <strong>not those installed with pip</strong> - you must update pip dependencies manually (e.g. <code>pip install --upgrade requests</code>).</p>
<h2 id="install-packages-from-existing-environment-file-yml">Install packages from existing environment file (.yml)</h2>
<p>Once conda is installed, download <a href="files/environment_ipynb.yml">environment_ipynb.yml</a> to a folder.</p>
<p>Have a look at the files&rsquo;s contents:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">jupyter_env</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">channels</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">pyviz</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">conda-forge</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">defaults</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">dependencies</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">python</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">jupyterlab</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">fiona</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">geoviews</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">shapely</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">hvplot</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">geopandas&gt;=0.5.0</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">pandas</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">holoviews</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">cartopy</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">pyproj</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">rtree</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">numpy</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">matplotlib</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">emoji&gt;=0.5.1</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">hdbscan&gt;=0.8.20</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">gdal</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">attrs</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">seaborn</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">descartes</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">regex</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">scipy</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">tagmaps</span><span class="w">
</span></span></span></code></pre></div><p>The first line contains the name of the environment to create. Then channels are
listed - note that these are ordered, e.g. conda-forge has a higher priority than
the anaconda default channel.</p>
<p>Following this, packages are listed with minimum version requirements. Therefore,
if newer versions are available, conda will install these latest available versions.
This provides some flexibility.</p>
<p>Sometimes conda won&rsquo;t install the latest versions, depending on your OS and other
factors. Most of the time, fall back to older versions happens when there&rsquo;re conflicts
between different package dependencies.</p>
<p>To install these dependencies, open the Anaconda prompt:</p>
<ul>
<li>
<p>either press Windows and type <code>anaconda prompt</code> (if you installed anaconda)</p>
</li>
<li>
<p>or, if conda is on your <code>Path</code> Environment (if you followed the miniconda approach
described above), go to the folder where you downloaded the <code>*.yml</code>, hold down <code>Shift</code>-Key
and Right-Click. You will either see an entry <code>Open Power Shell Window here</code> or <code>Open  command line Window here</code>. Both of these work. Here&rsquo;s a screenshot: 
  <img src="/imgs/2019-05-07_shortcut_cmd.png" alt="">
</p>
</li>
</ul>
<p>In (Ana)conda prompt (or command line/ console/ bash), run the following command:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda env create -f environment_ipynb.yml
</span></span></code></pre></div><p>Make sure you provide the full path to the downloaded file, e.g. <code>/c/temp/environment_ipynb.yml</code>.</p>
<p>Conda will now resolve dependencies and create the environment with the name <code>jupyter_env</code>.
You can use this approach to re-create the environment on any platform. In the screenshot
below, I am creating the environment inside of WSL (Windows Subsystem for Linux)
running Ubuntu 18.04:</p>
<p>
  <img src="/imgs/2019-05-07_wsl_bash.png" alt="">
</p>
<p>Once conda finished, activate the env by running:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda activate jupyter_env
</span></span></code></pre></div><p>The command line will change and show <code>jupyter_env</code> at the beginning, indicating
that you&rsquo;re now working within this environment. Start Jupyter Lab Server by typing
<code>jupyter lab</code> and hit <code>Enter</code>.</p>
<h2 id="optional-install-jupyter-labextension">Optional: Install Jupyter labextension</h2>
<p>The notebook <strong>may</strong> ask you to install the jupyter labextension. You can do this
in the console with active jupyter_env:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda activate jupyter_env
</span></span><span class="line"><span class="cl">jupyter labextension install @pyviz/jupyterlab_pyviz
</span></span></code></pre></div><p>In case you happen to use WSL as well, make sure to close all Jupyter Lab instances
and restart the WSL shell and jupyter_env  before issuing this command, otherwise
you might stumble into <a href="https://github.com/jupyterlab/jupyterlab/issues/5071">this</a>
issue.</p>
<h2 id="open-jupyter-lab">Open Jupyter Lab</h2>
<p>Type:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">jupyter lab
</span></span></code></pre></div><p>to open jupyter lab in your browser.</p>
<h2 id="troubleshooting">Troubleshooting</h2>
<p>First, check what&rsquo;s on your Path in Windows:</p>
<ul>
<li>click start (or hit the ⊞ Win-Key)
<ul>
<li>type &ldquo;Environment&rdquo;, select &ldquo;Edit the system environment variables&rdquo;</li>
<li>select &ldquo;Environment Variables..&rdquo;</li>
<li>under system variables, search for the entry for Path</li>
<li>click edit and check the list of folders and the order.
E.g. if you type <code>python</code> or <code>conda</code> in your cmd, Windows
will go through this list of folders and the first
<code>python.exe</code> or <code>conda.exe</code> found will be used.</li>
<li>Notes:
<ul>
<li>you only need one python system installation</li>
<li>if you use conda, you don&rsquo;t need to install python</li>
<li>if you use miniconda, you don&rsquo;t need anaconda</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>Show existing conda envs:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda env list
</span></span></code></pre></div><p>Show list of packages in current conda env with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda activate jupyter_env
</span></span><span class="line"><span class="cl">conda list
</span></span></code></pre></div><p>Remove conda env and all packages in this env with:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">conda remove --name jupyter_env --all
</span></span></code></pre></div><p>Make sure that you&rsquo;re on the latest conda version:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># this command needs to be executed without any active env</span>
</span></span><span class="line"><span class="cl">conda update --name base conda
</span></span></code></pre></div>]]></content></item><item><title>Jupyter Notebook intersecting OSM Graph and LBSM points (user frequentation)</title><link>https://links.alexanderdunkel.com/posts/2019-05-03-osm-graph-lbsm-frequency/</link><pubDate>Fri, 03 May 2019 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-05-03-osm-graph-lbsm-frequency/</guid><description>&lt;h2 id="intersecting-osm-graph-with-lbsm-user-post-locations"&gt;Intersecting OSM Graph with LBSM user-post locations&lt;/h2&gt;
&lt;p&gt;for measuring user frequentation (routing, meingruen)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/meingruen/heidelberg_streets.html"&gt;Final Map (Heidelberg)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/dresden_streets.html"&gt;Final Map (Dresden)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/osm_frequency_map_V3.html"&gt;Jupyter HTML&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Jupyter Notebook (&lt;a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/osm_frequency_map_V3.ipynb"&gt;Download&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Weighted OSM Graph for Heidelberg:&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-05-03_Heidelberg_weighted_osm_graph.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;For Dresden:&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-05-03_Dresden_weighted_osm_graph.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;A post is counted for lines based on proximity, e.g. in the example below, the shown use-post-location is counted for both line segments:&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-05-03_point_osm_segment_intersect.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;Default distance is 25m:&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-05-03_osm_graph_sel_25m.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;With smaller distances, more accurate assignment is possible:&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-05-03_osm_graph_sel_10m.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;However, many other points will also fail to be assigned to a line segment. A possible solution could be to use IDW-Measure based on distance: the line nearest to the post will be updated most significantly, others will be updated less.&lt;/p&gt;</description><content type="html"><![CDATA[<h2 id="intersecting-osm-graph-with-lbsm-user-post-locations">Intersecting OSM Graph with LBSM user-post locations</h2>
<p>for measuring user frequentation (routing, meingruen)</p>
<ul>
<li><a href="https://ad.vgiscience.org/meingruen/heidelberg_streets.html">Final Map (Heidelberg)</a></li>
<li><a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/dresden_streets.html">Final Map (Dresden)</a></li>
<li><a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/osm_frequency_map_V3.html">Jupyter HTML</a></li>
<li>Jupyter Notebook (<a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/osm_frequency_map_V3.ipynb">Download</a>)</li>
</ul>
<p>Weighted OSM Graph for Heidelberg:</p>
<p>
  <img src="/imgs/2019-05-03_Heidelberg_weighted_osm_graph.png" alt="">
</p>
<p>For Dresden:</p>
<p>
  <img src="/imgs/2019-05-03_Dresden_weighted_osm_graph.png" alt="">
</p>
<p>A post is counted for lines based on proximity, e.g. in the example below, the shown use-post-location is counted for both line segments:</p>
<p>
  <img src="/imgs/2019-05-03_point_osm_segment_intersect.png" alt="">
</p>
<p>Default distance is 25m:</p>
<p>
  <img src="/imgs/2019-05-03_osm_graph_sel_25m.png" alt="">
</p>
<p>With smaller distances, more accurate assignment is possible:</p>
<p>
  <img src="/imgs/2019-05-03_osm_graph_sel_10m.png" alt="">
</p>
<p>However, many other points will also fail to be assigned to a line segment. A possible solution could be to use IDW-Measure based on distance: the line nearest to the post will be updated most significantly, others will be updated less.</p>
<p>Theres are two other examples where it is obvious that accurate assignment to a single line-segment is not always possible:</p>
<p>
  <img src="/imgs/2019-05-03_point_osm_segment_intersect2.png" alt="">
</p>
<p>
  <img src="/imgs/2019-05-03_point_osm_segment_intersect3.png" alt="">
</p>
<p>Also, to reduce the impact of small line-segments on average user/ segment-length calculation, a minimum length can be specified.</p>
<p>Minimum length 50m (default):</p>
<p>
  <img src="/imgs/2019-05-03_Dresden_weighted_osm_graph_50m_lengthclip.png" alt="">
</p>
<p>Minimum length 25m:</p>
<p>
  <img src="/imgs/2019-05-03_Dresden_weighted_osm_graph_25m_lengthclip.png" alt="">
</p>
]]></content></item><item><title>Jupyter Notebook querying Facebook Places Graph</title><link>https://links.alexanderdunkel.com/posts/2019-04-19-westsachsen-facebook-places/</link><pubDate>Fri, 19 Apr 2019 16:15:09 +0800</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-04-19-westsachsen-facebook-places/</guid><description>&lt;h2 id="query-of-facebook-places-graph-westsachsen"&gt;Query of Facebook Places Graph (Westsachsen)&lt;/h2&gt;
&lt;aside class="admonition-highlight"&gt;
&lt;div class="admonition-icon"&gt;
&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"&gt;&lt;path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/&gt;&lt;/svg&gt;
&lt;/div&gt;
&lt;div class="admonition-content"&gt;&lt;p&gt;Facebook Places API is discontinued as of 2020.&lt;/p&gt;
&lt;/div&gt;
&lt;/aside&gt;
&lt;p&gt;&lt;a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/westsachsen_fb_places.html"&gt;Final Map&lt;/a&gt;, &lt;a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/westsachsen_fb_places_ipynb.html"&gt;Jupyter HTML&lt;/a&gt;, &lt;a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis//westsachsen_fb_places.ipynb"&gt;Jupyter IPYNB&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-04-19_FB_Places_map.png" alt=""&gt;
&lt;/p&gt;
&lt;p&gt;A subset of categories was found to be of specific relevance to the planning disciplines:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ID 964585346994407 - Sports&lt;/li&gt;
&lt;li&gt;ID 226326230802065 - Charity Organization&lt;/li&gt;
&lt;li&gt;ID 186004504854452 - Country Club / Clubhouse&lt;/li&gt;
&lt;li&gt;ID 170968163319233 - Community Service&lt;/li&gt;
&lt;li&gt;ID 191523214199822 - Environmental Conservation Organization&lt;/li&gt;
&lt;li&gt;ID 189018581118681 - Sports Club&lt;/li&gt;
&lt;li&gt;ID 181053558607965 - Youth Organization&lt;/li&gt;
&lt;li&gt;ID 2235 - Non-Governmental Organization (NGO)&lt;/li&gt;
&lt;li&gt;ID 2603 - Nonprofit Organization&lt;/li&gt;
&lt;li&gt;ID 147714868971098 - Public &amp;amp; Government Service&lt;/li&gt;
&lt;li&gt;ID 133436743388217 - Arts &amp;amp; Entertainment&lt;/li&gt;
&lt;li&gt;ID 186982054657561 - Sports &amp;amp; Recreation&lt;/li&gt;
&lt;li&gt;Main: ID 683513901834713 - Non-Business Places&lt;/li&gt;
&lt;li&gt;ID 1713595685546855 - City Infrastructure&lt;/li&gt;
&lt;li&gt;ID 1874409019452971 - Locality&lt;/li&gt;
&lt;li&gt;ID 635235176664335 - Outdoor Recreation&lt;/li&gt;
&lt;li&gt;ID 2607 - Religious Place of Worship&lt;/li&gt;
&lt;li&gt;ID 209889829023118 - Landmark &amp;amp; Historical Place&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Full list of place categories for FB Places Graph (retrievd from API endpoint &lt;code&gt;https://graph.facebook.com/v3.2/fb_page_categories&lt;/code&gt;)&lt;/p&gt;</description><content type="html"><![CDATA[<h2 id="query-of-facebook-places-graph-westsachsen">Query of Facebook Places Graph (Westsachsen)</h2>


<aside class="admonition-highlight">
	<div class="admonition-icon">
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"/></svg>
	</div>
	<div class="admonition-content"><p>Facebook Places API is discontinued as of 2020.</p>
</div>
</aside> 
<p><a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/westsachsen_fb_places.html">Final Map</a>, <a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/westsachsen_fb_places_ipynb.html">Jupyter HTML</a>, <a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis//westsachsen_fb_places.ipynb">Jupyter IPYNB</a></p>
<p>
  <img src="/imgs/2019-04-19_FB_Places_map.png" alt="">
</p>
<p>A subset of categories was found to be of specific relevance to the planning disciplines:</p>
<ul>
<li>ID 964585346994407 - Sports</li>
<li>ID 226326230802065 - Charity Organization</li>
<li>ID 186004504854452 - Country Club / Clubhouse</li>
<li>ID 170968163319233 - Community Service</li>
<li>ID 191523214199822 - Environmental Conservation Organization</li>
<li>ID 189018581118681 - Sports Club</li>
<li>ID 181053558607965 - Youth Organization</li>
<li>ID 2235 - Non-Governmental Organization (NGO)</li>
<li>ID 2603 - Nonprofit Organization</li>
<li>ID 147714868971098 - Public &amp; Government Service</li>
<li>ID 133436743388217 - Arts &amp; Entertainment</li>
<li>ID 186982054657561 - Sports &amp; Recreation</li>
<li>Main: ID 683513901834713 - Non-Business Places</li>
<li>ID 1713595685546855 - City Infrastructure</li>
<li>ID 1874409019452971 - Locality</li>
<li>ID 635235176664335 - Outdoor Recreation</li>
<li>ID 2607 - Religious Place of Worship</li>
<li>ID 209889829023118 - Landmark &amp; Historical Place</li>
</ul>
<p>Full list of place categories for FB Places Graph (retrievd from API endpoint <code>https://graph.facebook.com/v3.2/fb_page_categories</code>)</p>
<pre tabindex="0"><code>ID 1500 - Interest
      Subcats:
      ID 856055631167537 - Literary Arts
      ID 756092301147942 - Performance Art
      ID 1758092431143387 - Performing Arts
      ID 2900 - Science
      ID 964585346994407 - Sports
      ID 1080612391976317 - Visual Arts
ID 152880021441864 - Community Organization
      Subcats:
      ID 188166377871384 - Armed Forces
      ID 226326230802065 - Charity Organization
      ID 186004504854452 - Country Club / Clubhouse
      ID 170968163319233 - Community Service
      ID 191523214199822 - Environmental Conservation Organization
      ID 161422927240513 - Government Organization
      ID 192775991124365 - Labor Union
      ID 373543049350668 - Political Organization
      ID 2618 - Political Party
      ID 314375185582911 - Private Members Club
      ID 187714557925874 - Religious Organization
      ID 215343825145859 - Social Club
      ID 165264720195968 - Sorority &amp; Fraternity
      ID 189018581118681 - Sports Club
      ID 181053558607965 - Youth Organization
ID 1314020451960517 - Media
      Subcats:
      ID 2903 - Art
      ID 979978068761972 - Books &amp; Magazines
      ID 1208 - Concert Tour
      ID 1724531564506407 - Media Restoration Service
      ID 1290986887644410 - Show
      ID 1205 - Music
      ID 943469559038367 - Theatrical Play
      ID 1784293938474260 - Theatrical Productions
      ID 1728442777392577 - TV &amp; Movies
ID 1602 - Public Figure
      Subcats:
      ID 1602034176774683 - Actor
      ID 1601 - Artist
      ID 1600 - Athlete
      ID 1301 - Author
      ID 792007097567368 - Band
      ID 180164648685982 - Musician/Band
      ID 361282040719868 - Blogger
      ID 1606 - Chef
      ID 1610 - Comedian
      ID 1614 - Dancer
      ID 1615 - Designer
      ID 2347428775505624 - Digital Creator
      ID 1617 - Entrepreneur
      ID 1784467105117322 - Fashion Model
      ID 502966423232592 - Film Director
      ID 301500100194179 - Fitness Model
      ID 1701 - Government Official
      ID 622132518208039 - Editor
      ID 1604 - Journalist
      ID 1720316034885300 - Motivational Speaker
      ID 1109 - Writer
      ID 1335670856447673 - Musician
      ID 1605 - News Personality
      ID 103436486409265 - Orchestra
      ID 1108 - Producer
      ID 471120789926333 - Gamer
      ID 494338820719492 - Scientist
      ID 1888910144659710 - Spiritual Leader
      ID 124584130946507 - Sports Promoter
      ID 1030515153650195 - Talent Agent
      ID 1817904601806120 - Video Creator
ID 1896171907331974 - Businesses
      Subcats:
      ID 1757592557789532 - Advertising/Marketing
      ID 1574325646194878 - Agriculture
      ID 243290832429433 - Commercial &amp; Industrial
      ID 2250 - Education
      ID 1022050661163852 - Finance
      ID 1562965077339698 - Food &amp; Beverage
      ID 505091123022329 - Hotel &amp; Lodging
      ID 241113486274430 - Legal
      ID 1758418281071392 - Local Service
      ID 2233 - Media/News Company
      ID 145118935550090 - Medical &amp; Health
      ID 2235 - Non-Governmental Organization (NGO)
      ID 2603 - Nonprofit Organization
      ID 147714868971098 - Public &amp; Government Service
      ID 297544187300691 - Science, Technology &amp; Engineering
      ID 139225689474222 - Beauty, Cosmetic &amp; Personal Care
      ID 133436743388217 - Arts &amp; Entertainment
      ID 180410821995109 - Automotive, Aircraft &amp; Boat
      ID 198327773511962 - Real Estate
      ID 200600219953504 - Shopping &amp; Retail
      ID 186982054657561 - Sports &amp; Recreation
      ID 128232937246338 - Travel &amp; Transportation
ID 683513901834713 - Non-Business Places
      Subcats:
      ID 1057744077629687 - Automated Teller Machine (ATM)
      ID 216161991738736 - Campus Building
      ID 1713595685546855 - City Infrastructure
      ID 1032965636792826 - Government Building
      ID 1874409019452971 - Locality
      ID 210261102322291 - Meeting Room
      ID 635235176664335 - Outdoor Recreation
      ID 1384896128224370 - Public Toilet
      ID 2607 - Religious Place of Worship
      ID 192049437499122 - Residence
      ID 209889829023118 - Landmark &amp; Historical Place
ID 369730359717478 - Other
      Subcats:
      ID 1605186416478696 - Brand
      ID 2606 - Cause
      ID 3001 - Color
      ID 2612 - Community
      ID 1901 - Cuisine
      ID 3003 - Diseases
      ID 1702 - Election
      ID 188159097871782 - Exchange Program
      ID 3010 - Harmonized Page
      ID 2403 - Language
      ID 2904 - Mood
      ID 3009 - Nationality
      ID 134694380732246 - University (NCES)
      ID 2620 - Political Ideology
      ID 2623 - Profile
      ID 2619 - Course
      ID 1806 - Sports Season
      ID 3004 - Surgeries
      ID 166975666684060 - Ticket Sales
      ID 2614 - Topic
      ID 192119584190796 - Event
      ID 129417183848258 - Just For Fun
      ID 1059544340792177 - TypeAhead
      ID 2635 - University Status
      ID 2611 - Work Position
      ID 2617 - Work Project
      ID 2636 - Work Status
ID 160648811266809 - Feed for Workplace
      Subcats:
</code></pre>]]></content></item><item><title>Activity bias for selected (ATKIS) Land use categories (DE)</title><link>https://links.alexanderdunkel.com/posts/2019-03-25-meingruen-activity-landuse/</link><pubDate>Mon, 25 Mar 2019 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-03-25-meingruen-activity-landuse/</guid><description>&lt;h2 id="actvity-bias-for-selected-atkis-land-use-categories-de"&gt;Actvity bias for selected (ATKIS) Land use categories (DE)&lt;/h2&gt;
&lt;p&gt;Intersection of 30M Social Media Posts with Land Use Categories&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/meingruen_activities_userdays.html"&gt;Result: Landuse-Activity Heatmap&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/meingruen/ATKIS-LBSM-intersect.html"&gt;Jupyter Notebook (HTML)&lt;/a&gt; for DE-Intersection and LBSM Data (1st step)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/meingruen/meingruen_activities_ipynb.html"&gt;Jupyter Notebook (HTML)&lt;/a&gt; for creating activity heatmap for ATKIS land use categories (2nd step)&lt;/li&gt;
&lt;li&gt;&lt;a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/ATKIS-LBSM-intersect_V2.ipynb"&gt;2nd Jupyter Notebook Download&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://ad.vgiscience.org/meingruen/meingruen_activities.html"&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-03-15_clusterheatmap_userdays_greens.png" alt=""&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Activities are defined parametric by sets of terms and emoji:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;topics&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;hiking&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;hike&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;hiking&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;wandern&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;wanderung&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;wanderer&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;wanderweg&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;wanderroute&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;🥾&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;# optional: 🚶 (person walking)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# biking, this is a very specific ativity&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;topics&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;biking&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;bike&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;biking&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;bicycle&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;cycling&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;fahrrad&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;velo&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;🚲&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;🚴&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# just plain walking&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;topics&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;walking&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;walk&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;walking&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;spazieren&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;stroll&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;fußweg&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;spazierweg&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;spaziergang&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;# optional: 🚶 (person walking)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# broad category with a bias towards jogging&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;topics&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;sport&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;sport&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;jogging&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;running&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;exercise&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;run&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;workout&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;rennen&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;dauerlauf&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;🏃&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;topics&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;relaxing&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;relaxing&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;sitting&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;relaxation&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;entspannen&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;innehalten&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;erholen&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;ausruhen&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;recreation&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# meeting with friends, this can encompass a group of activities&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# note that we use &amp;#39;meeting&amp;#39;; in green-space land use, this likely hints to meeting with friends, not within work environment&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;topics&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;friends&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;friends&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;friends&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;meeting&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;socialize&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;freunde&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;treffen&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;hang around&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;abhängen&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# anything related to family and kinder/kids&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;topics&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;family&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;family&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;familie&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;kinder&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;baby&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;familienausflug&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;familytrip&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;👪&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# tourist/sighseeing group&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;topics&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;tourist&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;tourist&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;sighseeing&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;sehenswürdigkeit&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;excursion&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;exkursion&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;sight-seeing&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;tour&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;travel&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;reise&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;🌇&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# very general: spielen/playing&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;topics&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;playing&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;spielen&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;playing&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;play&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;spiel&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;game&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;🎲&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;🎮&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# lets add some specific activities: picknick-grillen, soccer ..&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;topics&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;picnic&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;picnic&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;barbecure&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;picknick&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;picknickkorb&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;grillen&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;grill&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;topics&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;soccer&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;soccer&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;fussball&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;fußball&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;football&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;⚽&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description><content type="html"><![CDATA[<h2 id="actvity-bias-for-selected-atkis-land-use-categories-de">Actvity bias for selected (ATKIS) Land use categories (DE)</h2>
<p>Intersection of 30M Social Media Posts with Land Use Categories</p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/vis/meingruen_activities_userdays.html">Result: Landuse-Activity Heatmap</a></li>
<li><a href="https://ad.vgiscience.org/meingruen/ATKIS-LBSM-intersect.html">Jupyter Notebook (HTML)</a> for DE-Intersection and LBSM Data (1st step)</li>
<li><a href="https://ad.vgiscience.org/meingruen/meingruen_activities_ipynb.html">Jupyter Notebook (HTML)</a> for creating activity heatmap for ATKIS land use categories (2nd step)</li>
<li><a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/ATKIS-LBSM-intersect_V2.ipynb">2nd Jupyter Notebook Download</a></li>
</ul>
<p><a href="https://ad.vgiscience.org/meingruen/meingruen_activities.html">
  <img src="/imgs/2019-03-15_clusterheatmap_userdays_greens.png" alt="">
</a></p>
<p>Activities are defined parametric by sets of terms and emoji:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">topics</span><span class="p">[</span><span class="s1">&#39;hiking&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="s1">&#39;hike&#39;</span><span class="p">,</span> <span class="s1">&#39;hiking&#39;</span><span class="p">,</span> <span class="s1">&#39;wandern&#39;</span><span class="p">,</span> <span class="s1">&#39;wanderung&#39;</span><span class="p">,</span> <span class="s1">&#39;wanderer&#39;</span><span class="p">,</span> <span class="s1">&#39;wanderweg&#39;</span><span class="p">,</span> <span class="s1">&#39;wanderroute&#39;</span><span class="p">,</span> <span class="s1">&#39;🥾&#39;</span><span class="p">)</span> <span class="c1"># optional: 🚶 (person walking)</span>
</span></span><span class="line"><span class="cl"><span class="c1"># biking, this is a very specific ativity</span>
</span></span><span class="line"><span class="cl"><span class="n">topics</span><span class="p">[</span><span class="s1">&#39;biking&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="s1">&#39;bike&#39;</span><span class="p">,</span> <span class="s1">&#39;biking&#39;</span><span class="p">,</span> <span class="s1">&#39;bicycle&#39;</span><span class="p">,</span> <span class="s1">&#39;cycling&#39;</span><span class="p">,</span> <span class="s1">&#39;fahrrad&#39;</span><span class="p">,</span> <span class="s1">&#39;velo&#39;</span><span class="p">,</span> <span class="s1">&#39;🚲&#39;</span><span class="p">,</span> <span class="s1">&#39;🚴&#39;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="c1"># just plain walking</span>
</span></span><span class="line"><span class="cl"><span class="n">topics</span><span class="p">[</span><span class="s1">&#39;walking&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="s1">&#39;walk&#39;</span><span class="p">,</span> <span class="s1">&#39;walking&#39;</span><span class="p">,</span> <span class="s1">&#39;spazieren&#39;</span><span class="p">,</span> <span class="s1">&#39;stroll&#39;</span><span class="p">,</span> <span class="s1">&#39;fußweg&#39;</span><span class="p">,</span> <span class="s1">&#39;spazierweg&#39;</span><span class="p">,</span> <span class="s1">&#39;spaziergang&#39;</span><span class="p">)</span> <span class="c1"># optional: 🚶 (person walking)</span>
</span></span><span class="line"><span class="cl"><span class="c1"># broad category with a bias towards jogging</span>
</span></span><span class="line"><span class="cl"><span class="n">topics</span><span class="p">[</span><span class="s1">&#39;sport&#39;</span><span class="p">]</span>  <span class="o">=</span> <span class="p">(</span><span class="s1">&#39;sport&#39;</span><span class="p">,</span> <span class="s1">&#39;jogging&#39;</span><span class="p">,</span> <span class="s1">&#39;running&#39;</span><span class="p">,</span> <span class="s1">&#39;exercise&#39;</span><span class="p">,</span> <span class="s1">&#39;run&#39;</span><span class="p">,</span> <span class="s1">&#39;workout&#39;</span><span class="p">,</span> <span class="s1">&#39;rennen&#39;</span><span class="p">,</span> <span class="s1">&#39;dauerlauf&#39;</span><span class="p">,</span> <span class="s1">&#39;🏃&#39;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">topics</span><span class="p">[</span><span class="s1">&#39;relaxing&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="s1">&#39;relaxing&#39;</span><span class="p">,</span> <span class="s1">&#39;sitting&#39;</span><span class="p">,</span> <span class="s1">&#39;relaxation&#39;</span><span class="p">,</span> <span class="s1">&#39;entspannen&#39;</span><span class="p">,</span> <span class="s1">&#39;innehalten&#39;</span><span class="p">,</span> <span class="s1">&#39;erholen&#39;</span><span class="p">,</span> <span class="s1">&#39;ausruhen&#39;</span><span class="p">,</span> <span class="s1">&#39;recreation&#39;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="c1"># meeting with friends, this can encompass a group of activities</span>
</span></span><span class="line"><span class="cl"><span class="c1"># note that we use &#39;meeting&#39;; in green-space land use, this likely hints to meeting with friends, not within work environment</span>
</span></span><span class="line"><span class="cl"><span class="n">topics</span><span class="p">[</span><span class="s1">&#39;friends&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="s1">&#39;friends&#39;</span><span class="p">,</span> <span class="s1">&#39;friends&#39;</span><span class="p">,</span> <span class="s1">&#39;meeting&#39;</span><span class="p">,</span> <span class="s1">&#39;socialize&#39;</span><span class="p">,</span> <span class="s1">&#39;freunde&#39;</span><span class="p">,</span> <span class="s1">&#39;treffen&#39;</span><span class="p">,</span> <span class="s1">&#39;hang around&#39;</span><span class="p">,</span> <span class="s1">&#39;abhängen&#39;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="c1"># anything related to family and kinder/kids</span>
</span></span><span class="line"><span class="cl"><span class="n">topics</span><span class="p">[</span><span class="s1">&#39;family&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="s1">&#39;family&#39;</span><span class="p">,</span> <span class="s1">&#39;familie&#39;</span><span class="p">,</span> <span class="s1">&#39;kinder&#39;</span><span class="p">,</span> <span class="s1">&#39;baby&#39;</span><span class="p">,</span> <span class="s1">&#39;familienausflug&#39;</span><span class="p">,</span> <span class="s1">&#39;familytrip&#39;</span><span class="p">,</span> <span class="s1">&#39;👪&#39;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="c1"># tourist/sighseeing group</span>
</span></span><span class="line"><span class="cl"><span class="n">topics</span><span class="p">[</span><span class="s1">&#39;tourist&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="s1">&#39;tourist&#39;</span><span class="p">,</span> <span class="s1">&#39;sighseeing&#39;</span><span class="p">,</span> <span class="s1">&#39;sehenswürdigkeit&#39;</span><span class="p">,</span> <span class="s1">&#39;excursion&#39;</span><span class="p">,</span> <span class="s1">&#39;exkursion&#39;</span><span class="p">,</span> <span class="s1">&#39;sight-seeing&#39;</span><span class="p">,</span> <span class="s1">&#39;tour&#39;</span><span class="p">,</span> <span class="s1">&#39;travel&#39;</span><span class="p">,</span> <span class="s1">&#39;reise&#39;</span><span class="p">,</span> <span class="s1">&#39;🌇&#39;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="c1"># very general: spielen/playing</span>
</span></span><span class="line"><span class="cl"><span class="n">topics</span><span class="p">[</span><span class="s1">&#39;playing&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="s1">&#39;spielen&#39;</span><span class="p">,</span> <span class="s1">&#39;playing&#39;</span><span class="p">,</span> <span class="s1">&#39;play&#39;</span><span class="p">,</span> <span class="s1">&#39;spiel&#39;</span><span class="p">,</span> <span class="s1">&#39;game&#39;</span><span class="p">,</span> <span class="s1">&#39;🎲&#39;</span><span class="p">,</span> <span class="s1">&#39;🎮&#39;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="c1"># lets add some specific activities: picknick-grillen, soccer ..</span>
</span></span><span class="line"><span class="cl"><span class="n">topics</span><span class="p">[</span><span class="s1">&#39;picnic&#39;</span><span class="p">]</span>  <span class="o">=</span> <span class="p">(</span><span class="s1">&#39;picnic&#39;</span><span class="p">,</span> <span class="s1">&#39;barbecure&#39;</span><span class="p">,</span> <span class="s1">&#39;picknick&#39;</span><span class="p">,</span> <span class="s1">&#39;picknickkorb&#39;</span><span class="p">,</span> <span class="s1">&#39;grillen&#39;</span><span class="p">,</span> <span class="s1">&#39;grill&#39;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">topics</span><span class="p">[</span><span class="s1">&#39;soccer&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="s1">&#39;soccer&#39;</span><span class="p">,</span> <span class="s1">&#39;fussball&#39;</span><span class="p">,</span> <span class="s1">&#39;fußball&#39;</span><span class="p">,</span> <span class="s1">&#39;football&#39;</span><span class="p">,</span> <span class="s1">&#39;⚽&#39;</span><span class="p">)</span>
</span></span></code></pre></div>]]></content></item><item><title>Slides meinGrün Wahrnehmungs Workshop (IÖR)</title><link>https://links.alexanderdunkel.com/posts/2019-03-05-meingruen-workshop/</link><pubDate>Tue, 05 Mar 2019 10:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-03-05-meingruen-workshop/</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/meingruen_socialmedia_workshop/"&gt;Link&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Title: &lt;strong&gt;Ergänzende Auswertung kollektiver subjektiver Wahrnehmung aus LBSM&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<ul>
<li><a href="https://ad.vgiscience.org/meingruen_socialmedia_workshop/">Link</a></li>
<li>Title: <strong>Ergänzende Auswertung kollektiver subjektiver Wahrnehmung aus LBSM</strong></li>
</ul>
]]></content></item><item><title>Parametrized local LBSM land use patterns (Großer Garten example)</title><link>https://links.alexanderdunkel.com/posts/2019-03-01-meingruen-park-use/</link><pubDate>Fri, 01 Mar 2019 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-03-01-meingruen-park-use/</guid><description>&lt;h2 id="parametrized-local-lbsm-land-use-patterns-großer-garten-example"&gt;Parametrized local LBSM land use patterns (Großer Garten example)&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Jupyter Notebook (&lt;a href="https://ad.vgiscience.org/meingruen/meingruen_ipynb.html"&gt;HTML&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;&lt;a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/meinGruen_V1.ipynb"&gt;Jupyter Notebook Download&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/meingruen/meingruen_gg.html"&gt;Großer Garten Map&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://ad.vgiscience.org/meingruen/meingruen_gg.html"&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-03-01_parametrized_park_use_patterns.png" alt=""&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Terms and bounding box are defined initially:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Term definition&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;topic&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;grass-nature-park&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;points&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tm&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;clusterer&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;TOPICS&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_np_points&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;topic&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;silent&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Großer Garten Bounding Box&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;lies_within&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="c1"&gt;# optional filtering for bounding box&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lim_lng_min&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;lim_lng_max&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lim_lat_min&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;lim_lat_max&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;lim_lng_max&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;13.7881851196289&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;lim_lng_min&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;13.7279319763184&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;lim_lat_max&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;51.051862274016&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;lim_lat_min&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;51.0257408831289&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# list comprehension&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;idx&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;points&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;enumerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;points_list&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="n"&gt;points_list&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;idx&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;array&lt;/span&gt;&lt;span class="p"&gt;([[&lt;/span&gt;&lt;span class="n"&gt;point&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;point&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;point&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;points&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;lies_within&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;point&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;point&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;])])&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Total coordinates after filtering: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;points_list&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s1"&gt; (selected Topic) &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;points_list&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s1"&gt; (all)&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description><content type="html"><![CDATA[<h2 id="parametrized-local-lbsm-land-use-patterns-großer-garten-example">Parametrized local LBSM land use patterns (Großer Garten example)</h2>
<ul>
<li>Jupyter Notebook (<a href="https://ad.vgiscience.org/meingruen/meingruen_ipynb.html">HTML</a>)</li>
<li><a href="http://wwwpub.zih.tu-dresden.de/~s7398234/vis/meinGruen_V1.ipynb">Jupyter Notebook Download</a></li>
<li><a href="https://ad.vgiscience.org/meingruen/meingruen_gg.html">Großer Garten Map</a></li>
</ul>
<p><a href="https://ad.vgiscience.org/meingruen/meingruen_gg.html">
  <img src="/imgs/2019-03-01_parametrized_park_use_patterns.png" alt="">
</a></p>
<p>Terms and bounding box are defined initially:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="c1"># Term definition</span>
</span></span><span class="line"><span class="cl"><span class="n">topic</span> <span class="o">=</span> <span class="s2">&#34;grass-nature-park&#34;</span>
</span></span><span class="line"><span class="cl"><span class="n">points</span> <span class="o">=</span> <span class="n">tm</span><span class="o">.</span><span class="n">clusterer</span><span class="p">[</span><span class="n">TOPICS</span><span class="p">]</span><span class="o">.</span><span class="n">get_np_points</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">            <span class="n">item</span><span class="o">=</span><span class="n">topic</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="n">silent</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="c1"># Großer Garten Bounding Box</span>
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">lies_within</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="c1"># optional filtering for bounding box</span>
</span></span><span class="line"><span class="cl">    <span class="k">if</span> <span class="p">(</span><span class="n">lim_lng_min</span> <span class="o">&lt;</span> <span class="n">x</span> <span class="o">&lt;</span> <span class="n">lim_lng_max</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="n">lim_lat_min</span> <span class="o">&lt;</span> <span class="n">y</span> <span class="o">&lt;</span> <span class="n">lim_lat_max</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">        <span class="k">return</span> <span class="kc">True</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">lim_lng_max</span> <span class="o">=</span> <span class="mf">13.7881851196289</span>
</span></span><span class="line"><span class="cl"><span class="n">lim_lng_min</span> <span class="o">=</span> <span class="mf">13.7279319763184</span>
</span></span><span class="line"><span class="cl"><span class="n">lim_lat_max</span> <span class="o">=</span> <span class="mf">51.051862274016</span>
</span></span><span class="line"><span class="cl"><span class="n">lim_lat_min</span> <span class="o">=</span> <span class="mf">51.0257408831289</span>
</span></span><span class="line"><span class="cl"><span class="c1"># list comprehension</span>
</span></span><span class="line"><span class="cl"><span class="k">for</span> <span class="n">idx</span><span class="p">,</span> <span class="n">points</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">points_list</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="n">points_list</span><span class="p">[</span><span class="n">idx</span><span class="p">]</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([[</span><span class="n">point</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">point</span><span class="p">[</span><span class="mi">1</span><span class="p">]]</span> <span class="k">for</span> <span class="n">point</span> <span class="ow">in</span> <span class="n">points</span> <span class="k">if</span> <span class="n">lies_within</span><span class="p">(</span><span class="n">point</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">point</span><span class="p">[</span><span class="mi">1</span><span class="p">])])</span>
</span></span><span class="line"><span class="cl"><span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s1">&#39;Total coordinates after filtering: </span><span class="si">{</span><span class="nb">len</span><span class="p">(</span><span class="n">points_list</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span><span class="si">}</span><span class="s1"> (selected Topic) </span><span class="si">{</span><span class="nb">len</span><span class="p">(</span><span class="n">points_list</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span><span class="si">}</span><span class="s1"> (all)&#39;</span><span class="p">)</span>
</span></span></code></pre></div>]]></content></item><item><title>Meingruen Flickr Frequentation</title><link>https://links.alexanderdunkel.com/posts/2019-02-15-meingruen-map/</link><pubDate>Fri, 15 Feb 2019 00:00:00 +0000</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-02-15-meingruen-map/</guid><description>&lt;h2 id="meingrün"&gt;meinGrün&lt;/h2&gt;
&lt;p&gt;meinGrün Flickr Frequentation Heidelberg and Dresden&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/meingruen/?city=Heidelberg"&gt;Heidelberg&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/meingruen/?city=Dresden"&gt;Dresden&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://ad.vgiscience.org/meingruen/"&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-02-15_meingruen_map.png" alt=""&gt;
&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<h2 id="meingrün">meinGrün</h2>
<p>meinGrün Flickr Frequentation Heidelberg and Dresden</p>
<ul>
<li><a href="https://ad.vgiscience.org/meingruen/?city=Heidelberg">Heidelberg</a></li>
<li><a href="https://ad.vgiscience.org/meingruen/?city=Dresden">Dresden</a></li>
</ul>
<p><a href="https://ad.vgiscience.org/meingruen/">
  <img src="/imgs/2019-02-15_meingruen_map.png" alt="">
</a></p>
]]></content></item><item><title>Social Media Information Spread: Nudging strategies? (IÖR)</title><link>https://links.alexanderdunkel.com/posts/2019-02-06-nudging-ioer/</link><pubDate>Wed, 06 Feb 2019 13:45:00 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-02-06-nudging-ioer/</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/nudging_ioer/"&gt;Link&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Title: Social Media Information Spread: Nudging strategies?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Topic&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;Einladung zum Brown Bag Meeting «Nudging im Kontext des digitalen Wandels»&lt;/p&gt;
&lt;p&gt;Welche Potenziale birgt Nudging, gerade im Rahmen des digitalen Wandels? Wie funktioniert diese Methode? Welche praktischen Erfahrungen gibt es damit? Wo verlaufen die praktischen und ethischen Grenzen?&lt;/p&gt;
&lt;p&gt;Diese Fragen möchten wir gern im Rahmen eines kleinen «Working Lunch» adressieren. Für den thematischen Einstieg haben wir drei Kurzvorträge (je fünf bis zehn Minuten) konzipiert:&lt;/p&gt;</description><content type="html"><![CDATA[<ul>
<li><a href="https://ad.vgiscience.org/nudging_ioer/">Link</a></li>
<li>Title: Social Media Information Spread: Nudging strategies?</li>
</ul>
<p><strong>Topic</strong>:</p>
<p>Einladung zum Brown Bag Meeting «Nudging im Kontext des digitalen Wandels»</p>
<p>Welche Potenziale birgt Nudging, gerade im Rahmen des digitalen Wandels? Wie funktioniert diese Methode? Welche praktischen Erfahrungen gibt es damit? Wo verlaufen die praktischen und ethischen Grenzen?</p>
<p>Diese Fragen möchten wir gern im Rahmen eines kleinen «Working Lunch» adressieren. Für den thematischen Einstieg haben wir drei Kurzvorträge (je fünf bis zehn Minuten) konzipiert:</p>
<ul>
<li>Psychologische Grundlagen: Was ist Nudging? Warum ist es wirksam? Welche kognitiven Defizite werden dabei genutzt?</li>
<li>Juristische Betrachtungsweise: Wie sollte mit dem Ansatz umgegangen werden? Welche rechtlichen Grenzen und Potenziale sind zu beachten?</li>
<li>Praktisches Beispiel: Kann und sollte Nudging genutzt werden, um eine gezielte Nutzung städtischer Grünflächen anzustoßen? Was können geeignete Methoden sein?</li>
</ul>
<p>Danach würden wir gern miteinander ins Gespräch kommen. Sie sind herzlich dazu eingeladen.</p>
]]></content></item><item><title>Waynesboro Tag Map</title><link>https://links.alexanderdunkel.com/posts/2019-02-02_waynesboro_tagmap/</link><pubDate>Sat, 02 Feb 2019 17:35:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-02-02_waynesboro_tagmap/</guid><description>&lt;p&gt;These two maps were created as a first overview of social media patterns for Waynesboro.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/waynesboro_tagmap/Waynesboro_TagMap.pdf"&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-02-02_Waynesboro_TagMap.png" alt=""&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Just for graphics, here is an inverse version - this is &lt;em&gt;not&lt;/em&gt; based on night imagery.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/waynesboro_tagmap/Waynesboro_TagMap_InverseColors.pdf"&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2019-02-02_Waynesboro_TagMap_night.png" alt=""&gt;
&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p>These two maps were created as a first overview of social media patterns for Waynesboro.</p>
<p><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/waynesboro_tagmap/Waynesboro_TagMap.pdf">
  <img src="/imgs/2019-02-02_Waynesboro_TagMap.png" alt="">
</a></p>
<p>Just for graphics, here is an inverse version - this is <em>not</em> based on night imagery.</p>
<p><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/waynesboro_tagmap/Waynesboro_TagMap_InverseColors.pdf">
  <img src="/imgs/2019-02-02_Waynesboro_TagMap_night.png" alt="">
</a></p>
]]></content></item><item><title>TagMaps Repository Update</title><link>https://links.alexanderdunkel.com/posts/2019-01-30-tagmaps-repo-update/</link><pubDate>Fri, 25 Jan 2019 16:15:09 +0800</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-01-30-tagmaps-repo-update/</guid><description>&lt;h2 id="tagmaps"&gt;Tagmaps&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://gitlab.vgiscience.de/ad/tagmaps"&gt;TagMaps Repo&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<h2 id="tagmaps">Tagmaps</h2>
<p><a href="https://gitlab.vgiscience.de/ad/tagmaps">TagMaps Repo</a></p>
]]></content></item><item><title>Tagmaps Intro presentation (Lecture TUD)</title><link>https://links.alexanderdunkel.com/posts/2019-01-10-tagmaps-intro/</link><pubDate>Thu, 10 Jan 2019 10:00:00 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2019-01-10-tagmaps-intro/</guid><description>&lt;ul&gt;
&lt;li&gt;Lecture, 10 January 2019, Mobile Cartography&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/tagmaps_intro/"&gt;Link&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Title: Spatio-temporal Tag Clouds (Tag Maps) Development of custom mapping techniques for user-generated content&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Introduction to Tagmaps lecture and workshop, theoretic overview in preparation for the workshop.&lt;/p&gt;</description><content type="html"><![CDATA[<ul>
<li>Lecture, 10 January 2019, Mobile Cartography</li>
<li><a href="https://ad.vgiscience.org/tagmaps_intro/">Link</a></li>
<li>Title: Spatio-temporal Tag Clouds (Tag Maps) Development of custom mapping techniques for user-generated content</li>
</ul>
<p>Introduction to Tagmaps lecture and workshop, theoretic overview in preparation for the workshop.</p>
]]></content></item><item><title>meinGrün Kick-Off-Meeting presentation (IÖR)</title><link>https://links.alexanderdunkel.com/posts/2018-11-12-meingruen-kickoff/</link><pubDate>Mon, 12 Nov 2018 10:00:00 +0200</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2018-11-12-meingruen-kickoff/</guid><description>&lt;ul&gt;
&lt;li&gt;12.11.2018, meinGrün Kick-Off-Meeting, IÖR; meinGrün Teilvorhaben: IfK, TU Dresden&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/meingruen_auftakt/"&gt;Link&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Overview of IfK (TUD) tasks in the meingruen project.&lt;/p&gt;</description><content type="html"><![CDATA[<ul>
<li>12.11.2018, meinGrün Kick-Off-Meeting, IÖR; meinGrün Teilvorhaben: IfK, TU Dresden</li>
<li><a href="https://ad.vgiscience.org/meingruen_auftakt/">Link</a></li>
</ul>
<p>Overview of IfK (TUD) tasks in the meingruen project.</p>
]]></content></item><item><title>Jekyll Slides for HLL-LBSN and Privacy Integration</title><link>https://links.alexanderdunkel.com/posts/2018-10-10-hll-slides/</link><pubDate>Wed, 10 Oct 2018 16:15:09 +0800</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2018-10-10-hll-slides/</guid><description>&lt;p&gt;&lt;a href="https://ad.vgiscience.org/hll-slides/#/"&gt;Hll-Slides&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Concept of HLL-LBSN and Privacy Integration&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p><a href="https://ad.vgiscience.org/hll-slides/#/">Hll-Slides</a></p>
<ul>
<li>Concept of HLL-LBSN and Privacy Integration</li>
</ul>
]]></content></item><item><title>Database Session Heidelberg VGIscience meeting</title><link>https://links.alexanderdunkel.com/posts/2018-05-22-heidelberg-dev-week/</link><pubDate>Tue, 22 May 2018 10:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2018-05-22-heidelberg-dev-week/</guid><description>&lt;ul&gt;
&lt;li&gt;Presenters: Alexander, Filip, Marc, Nida, (Tobias), (Loai)&lt;/li&gt;
&lt;li&gt;Topic: &lt;strong&gt;A common database design for analysing location-based social network (LBSN) data&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://ad.vgiscience.org/db_session_heidelberg/"&gt;Slides&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<ul>
<li>Presenters: Alexander, Filip, Marc, Nida, (Tobias), (Loai)</li>
<li>Topic: <strong>A common database design for analysing location-based social network (LBSN) data</strong></li>
</ul>
<p><a href="https://ad.vgiscience.org/db_session_heidelberg/">Slides</a></p>
]]></content></item><item><title>DFNS Social Media presentation</title><link>https://links.alexanderdunkel.com/posts/2018-05-17-dfns/</link><pubDate>Sat, 05 May 2018 11:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2018-05-17-dfns/</guid><description>&lt;p&gt;Title:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Berücksichtigung der öffentlichen Wahrnehmung in der Raumentwicklung: Chancen durch nutzergenerierte Daten&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://ad.vgiscience.org/DFNS_SocialMedia_presentation/#/"&gt;Slides&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p>Title:</p>
<ul>
<li><strong>Berücksichtigung der öffentlichen Wahrnehmung in der Raumentwicklung: Chancen durch nutzergenerierte Daten</strong></li>
</ul>
<p><a href="https://ad.vgiscience.org/DFNS_SocialMedia_presentation/#/">Slides</a></p>
]]></content></item><item><title>Data Dialogue 9, School of Architecture, University of Virginia, Charlottesville</title><link>https://links.alexanderdunkel.com/posts/2018-03-15-virginia-datadialogue/</link><pubDate>Thu, 15 Mar 2018 17:00:00 -0600</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2018-03-15-virginia-datadialogue/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Visualizing peoples&amp;rsquo; perceptual responses to space through crowdsourced spatial photo content&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/2018-03-13_Slides_DataDialogue.pdf"&gt;PDF Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Visualizing peoples&rsquo; perceptual responses to space through crowdsourced spatial photo content</strong></p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/2018-03-13_Slides_DataDialogue.pdf">PDF Slides</a></li>
</ul>
]]></content></item><item><title>Workshop 'Methoden visueller Kommunikation in der räumlichen Planung', Universität Kassel</title><link>https://links.alexanderdunkel.com/posts/2018-02-15-methoden-visueller-kommunikation-kassel/</link><pubDate>Thu, 15 Feb 2018 09:45:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2018-02-15-methoden-visueller-kommunikation-kassel/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Berücksichtigung der Öffentlichen Wahrnehmung in Stadt-und Landschaftsplanung: Big Data Potentiale und Hürden&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/2018-02-12_Slides_TUD_MVisuellPlanung.pdf"&gt;PDF Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Berücksichtigung der Öffentlichen Wahrnehmung in Stadt-und Landschaftsplanung: Big Data Potentiale und Hürden</strong></p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/2018-02-12_Slides_TUD_MVisuellPlanung.pdf">PDF Slides</a></li>
</ul>
]]></content></item><item><title>VGIscience Statusmeeting Hannover, Interim Report EvaVGI</title><link>https://links.alexanderdunkel.com/posts/2018-02-05-statusmeeting-vgiscience-hannover/</link><pubDate>Mon, 05 Feb 2018 10:30:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2018-02-05-statusmeeting-vgiscience-hannover/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Hannover Status Meeting Interim Report EvaVGI&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/db_session_hannover"&gt;Slides&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;[PDF Slides](&amp;ldquo;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/AlexanderDunkel_Presentation_Hannover"&gt;https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/AlexanderDunkel_Presentation_Hannover&lt;/a&gt; Status Meeting Interim Reports.pdf&amp;rdquo;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/db_session_hannover"&gt;DB Session Slides&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/hannover-report/#/2"&gt;Appalachian Trail Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Hannover Status Meeting Interim Report EvaVGI</strong></p>
<ul>
<li><a href="https://ad.vgiscience.org/db_session_hannover">Slides</a>
<ul>
<li>[PDF Slides](&ldquo;<a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/AlexanderDunkel_Presentation_Hannover">https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/AlexanderDunkel_Presentation_Hannover</a> Status Meeting Interim Reports.pdf&rdquo;)</li>
</ul>
</li>
<li><a href="https://ad.vgiscience.org/db_session_hannover">DB Session Slides</a></li>
<li><a href="https://ad.vgiscience.org/hannover-report/#/2">Appalachian Trail Slides</a></li>
</ul>
]]></content></item><item><title>VGIscience Statusmeeting Hannover, Concept Paper Strategy</title><link>https://links.alexanderdunkel.com/posts/2018-02-04-statusmeeting-concept-paper/</link><pubDate>Sun, 04 Feb 2018 10:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2018-02-04-statusmeeting-concept-paper/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Concept Paper Revision&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/concept_paper_revision_HannoverPresentation/"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ad.vgiscience.org/concept-paper/readme.html"&gt;Gitlab Pages Organisation Page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Concept Paper Revision</strong></p>
<ul>
<li><a href="https://ad.vgiscience.org/concept_paper_revision_HannoverPresentation/">Slides</a></li>
<li><a href="https://ad.vgiscience.org/concept-paper/readme.html">Gitlab Pages Organisation Page</a></li>
</ul>
]]></content></item><item><title>Tag Maps Introduction Presentation, Mobile Cartography</title><link>https://links.alexanderdunkel.com/posts/2018-01-10-tagmaps-intro/</link><pubDate>Wed, 10 Jan 2018 09:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2018-01-10-tagmaps-intro/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Development of a custom mapping technique: Spatio-temporal Tag Clouds (Tag Maps)&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/2018-01-09_Slides_TUD_VGIScience.pdf"&gt;Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Development of a custom mapping technique: Spatio-temporal Tag Clouds (Tag Maps)</strong></p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/2018-01-09_Slides_TUD_VGIScience.pdf">Slides</a></li>
</ul>
]]></content></item><item><title>Slides Dresden Nexus Conference (DNC)</title><link>https://links.alexanderdunkel.com/posts/2017-05-17-nexus-conference/</link><pubDate>Sun, 17 Sep 2017 09:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2017-05-17-nexus-conference/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Identifying Perceived Characteristics and the Collective Attribution of Values and Meaning from Social Media&lt;/strong&gt;&lt;br&gt;
Session: X.2 New and Refined Approaches Supporting the Implementation of a Nexus Approach&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/2017-05-15_8359_Slides_V04.pdf"&gt;PDF Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Identifying Perceived Characteristics and the Collective Attribution of Values and Meaning from Social Media</strong><br>
Session: X.2 New and Refined Approaches Supporting the Implementation of a Nexus Approach</p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/2017-05-15_8359_Slides_V04.pdf">PDF Slides</a></li>
</ul>
]]></content></item><item><title>Slides VGIscienceSummer School TU Dresden</title><link>https://links.alexanderdunkel.com/posts/2017-09-15-vgiscience-summerschool/</link><pubDate>Fri, 15 Sep 2017 14:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2017-09-15-vgiscience-summerschool/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Visualising VGI for application to the fields of landscape and urban planning&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/2017-01-30_Slides_TUD_VGIScience.pdf"&gt;PDF Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Visualising VGI for application to the fields of landscape and urban planning</strong></p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/2017-01-30_Slides_TUD_VGIScience.pdf">PDF Slides</a></li>
</ul>
]]></content></item><item><title>HCluster presentation, VGIscience Meeting Stuttgart</title><link>https://links.alexanderdunkel.com/posts/2017-04-03-vgiscience-meeting-stuttgart/</link><pubDate>Mon, 03 Apr 2017 11:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2017-04-03-vgiscience-meeting-stuttgart/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Hierarchical clustering for multi-scale view analysis&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/2017-01-30_Slides_TUD_VGIScience.pdf"&gt;PDF Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Hierarchical clustering for multi-scale view analysis</strong></p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/2017-01-30_Slides_TUD_VGIScience.pdf">PDF Slides</a></li>
</ul>
]]></content></item><item><title>Slides EVA-VGI Meeting Dresden</title><link>https://links.alexanderdunkel.com/posts/2017-02-01-tud-evavgi-meeting/</link><pubDate>Wed, 01 Feb 2017 10:30:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2017-02-01-tud-evavgi-meeting/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Visualizing VGI for application to the fields of landscape and urban planning&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/2017-01-30_Slides_TUD_VGIScience.pdf"&gt;PDF Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Visualizing VGI for application to the fields of landscape and urban planning</strong></p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/2017-01-30_Slides_TUD_VGIScience.pdf">PDF Slides</a></li>
</ul>
]]></content></item><item><title>Disputation TU Dresden, Fakultät Architektur</title><link>https://links.alexanderdunkel.com/posts/2016-06-23-disputation-tud/</link><pubDate>Thu, 23 Jun 2016 10:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2016-06-23-disputation-tud/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Assessing the perceived environment through crowdsourced spatial photo content for application to the fields of landscape and urban planning&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/00_Slides_TUD2.pdf"&gt;PDF Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Assessing the perceived environment through crowdsourced spatial photo content for application to the fields of landscape and urban planning</strong></p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/00_Slides_TUD2.pdf">PDF Slides</a></li>
</ul>
]]></content></item><item><title>Slides, California Colledge of the Arts (CCA), San Francisco</title><link>https://links.alexanderdunkel.com/posts/2016-04-23-cca-sf/</link><pubDate>Sat, 23 Apr 2016 11:00:00 -0900</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2016-04-23-cca-sf/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Information visualization as part of Graphic Design/ Interaction Design Demonstration: Visualizing human behavior patterns through crowdsourced spatial photo content&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/00_Slides_02b.pdf"&gt;PDF Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Information visualization as part of Graphic Design/ Interaction Design Demonstration: Visualizing human behavior patterns through crowdsourced spatial photo content</strong></p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/00_Slides_02b.pdf">PDF Slides</a></li>
</ul>
]]></content></item><item><title>Vortrag Rehwaldt Landschaftsarchitekten, Dresden</title><link>https://links.alexanderdunkel.com/posts/2016-03-04-vortrag-rehwald-landschaftsarchitekten-dresden/</link><pubDate>Thu, 24 Mar 2016 15:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2016-03-04-vortrag-rehwald-landschaftsarchitekten-dresden/</guid><description>&lt;p&gt;Title: &lt;strong&gt;GIS &amp;laquo; ? &amp;raquo; Landschaftsarchitektur - Daten und GIS-Visualisierung für die städtische und lokale Landschaftsarchitekturebene&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/00_Slides.pdf"&gt;PDF Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>GIS &laquo; ? &raquo; Landschaftsarchitektur - Daten und GIS-Visualisierung für die städtische und lokale Landschaftsarchitekturebene</strong></p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/00_Slides.pdf">PDF Slides</a></li>
</ul>
]]></content></item><item><title>Tagmaps Workshop Toronto &amp; Empathy &amp; Data Symposium Waterloo</title><link>https://links.alexanderdunkel.com/posts/2015-01-08-tagmaps-workshop-toronto/</link><pubDate>Thu, 08 Jan 2015 09:00:00 -0600</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2015-01-08-tagmaps-workshop-toronto/</guid><description>&lt;p&gt;Title: &lt;strong&gt;On Empathy and Data_crowdsourced mental maps&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/perceptualresponses.pdf"&gt;PDF Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Title: &lt;strong&gt;TagMaps Workshop&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/00_Introduction.pdf"&gt;Introduction (PDF Slides)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/01_TagMaps.pdf"&gt;Tag Maps (PDF Slides)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/02_PhotoDensityMaps.pdf"&gt;Photo Density Maps (PDF Slides)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/03_Sightlines.pdf"&gt;Sightlines (PDF Slides)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/04_UserOrigin.pdf"&gt;User Origin (PDF Slides)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>On Empathy and Data_crowdsourced mental maps</strong></p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/perceptualresponses.pdf">PDF Slides</a></li>
</ul>
<p>Title: <strong>TagMaps Workshop</strong></p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/00_Introduction.pdf">Introduction (PDF Slides)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/01_TagMaps.pdf">Tag Maps (PDF Slides)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/02_PhotoDensityMaps.pdf">Photo Density Maps (PDF Slides)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/03_Sightlines.pdf">Sightlines (PDF Slides)</a></li>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/04_UserOrigin.pdf">User Origin (PDF Slides)</a></li>
</ul>
]]></content></item><item><title>Promotionstag Landschaftsplanung TUD</title><link>https://links.alexanderdunkel.com/posts/2014-04-29-promotionstag-tud/</link><pubDate>Tue, 29 Apr 2014 15:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2014-04-29-promotionstag-tud/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Network-Landscapes – Assessing the perceived landscape through the use of internet-based, international, locative media data streams&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/promotionstag.pdf"&gt;PDF Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Network-Landscapes – Assessing the perceived landscape through the use of internet-based, international, locative media data streams</strong></p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/promotionstag.pdf">PDF Slides</a></li>
</ul>
]]></content></item><item><title>Promotionstag Landschaftsplanung TUD</title><link>https://links.alexanderdunkel.com/posts/2013-03-22-promotionstag-tud/</link><pubDate>Fri, 22 Mar 2013 10:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2013-03-22-promotionstag-tud/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Netzwerk-Landschaften, Kevin Lynch …und Landschaftsplanung&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/promotionstag-2013.pdf"&gt;PDF Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Netzwerk-Landschaften, Kevin Lynch …und Landschaftsplanung</strong></p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/promotionstag-2013.pdf">PDF Slides</a></li>
</ul>
]]></content></item><item><title>Interview: What Flickr Can Teach Us About the Way We Photograph Cities (The Atlantic Cities)</title><link>https://links.alexanderdunkel.com/posts/2013-01-15-the-atlantic-cities/</link><pubDate>Tue, 15 Jan 2013 09:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2013-01-15-the-atlantic-cities/</guid><description>&lt;p&gt;This was an interview with Henry Grabar for &lt;em&gt;The Atlantic Cities&lt;/em&gt;, now available on
&lt;a href="https://www.bloomberg.com/news/articles/2013-01-15/what-flickr-can-teach-us-about-the-way-we-photograph-cities"&gt;https://www.bloomberg.com/news/articles/2013-01-15/what-flickr-can-teach-us-about-the-way-we-photograph-cities&lt;/a&gt;&lt;/p&gt;</description><content type="html"><![CDATA[<p>This was an interview with Henry Grabar for <em>The Atlantic Cities</em>, now available on
<a href="https://www.bloomberg.com/news/articles/2013-01-15/what-flickr-can-teach-us-about-the-way-we-photograph-cities">https://www.bloomberg.com/news/articles/2013-01-15/what-flickr-can-teach-us-about-the-way-we-photograph-cities</a></p>
]]></content></item><item><title>Promotionstag Landschaftsplanung TUD</title><link>https://links.alexanderdunkel.com/posts/2012-06-27-promotionstag-tud/</link><pubDate>Wed, 27 Jun 2012 11:00:00 +0100</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2012-06-27-promotionstag-tud/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Netzwerk-Landschaften - Neue Steuerungsmöglichkeiten für die Landschaftsplanung durch die Nutzung internetbasierter, internationaler und raumbezogener Datenströme&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/Netzwerklandschaften.pdf"&gt;PDF Slides&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Netzwerk-Landschaften - Neue Steuerungsmöglichkeiten für die Landschaftsplanung durch die Nutzung internetbasierter, internationaler und raumbezogener Datenströme</strong></p>
<ul>
<li><a href="https://wwwpub.zih.tu-dresden.de/~s7398234/presentation-archive/Netzwerklandschaften.pdf">PDF Slides</a></li>
</ul>
]]></content></item><item><title>Slides, Panel Discussion and Exhibition, California College of the Arts, San Francisco</title><link>https://links.alexanderdunkel.com/posts/2012-04-16-cca-open-source-cartography/</link><pubDate>Mon, 16 Apr 2012 19:00:00 -0900</pubDate><author>mail@alexanderdunkel.com (Alexander Dunkel)</author><guid>https://links.alexanderdunkel.com/posts/2012-04-16-cca-open-source-cartography/</guid><description>&lt;p&gt;Title: &lt;strong&gt;Open Source Cartography - Mapping Patterns of Crowd Sourced Data&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
&lt;img src="https://links.alexanderdunkel.com/imgs/2012-04-16_flyer_ccs.png" alt="Flyer"&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.aaronland.info/weblog/2012/03/13/godhelpus/#wanderdrone"&gt;Presentation Aaron&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><content type="html"><![CDATA[<p>Title: <strong>Open Source Cartography - Mapping Patterns of Crowd Sourced Data</strong></p>
<p>
  <img src="/imgs/2012-04-16_flyer_ccs.png" alt="Flyer">
</p>
<ul>
<li><a href="https://www.aaronland.info/weblog/2012/03/13/godhelpus/#wanderdrone">Presentation Aaron</a></li>
</ul>
]]></content></item></channel></rss>