<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://alainmauri.eu/feed.xml" rel="self" type="application/atom+xml" /><link href="https://alainmauri.eu/" rel="alternate" type="text/html" /><updated>2026-09-20T16:20:52+01:00</updated><id>https://alainmauri.eu/feed.xml</id><title type="html">Alain Mauri</title><subtitle>First draft of my new personal website</subtitle><entry><title type="html">Creative languages</title><link href="https://alainmauri.eu/2026/09/20/creative-languages/" rel="alternate" type="text/html" title="Creative languages" /><published>2026-09-20T00:00:00+01:00</published><updated>2026-09-20T00:00:00+01:00</updated><id>https://alainmauri.eu/2026/09/20/creative-languages</id><content type="html" xml:base="https://alainmauri.eu/2026/09/20/creative-languages/"><![CDATA[<p>For a long time, I viewed programming and photography as two separate things—two completely different worlds.
One made of logic and computers, the other of images, perceptions, and sensory stimuli.<br />
Then I realised that the creative processes underlying both activities are very similar.</p>

<p>In the beginning, it’s an idea, which is then brought to life—in one case by using a programming language to instruct a computer to
perform a series of actions, and in the other by “manipulating” the available settings on a camera.
Ultimately, both operations lead to the creation of an artefact that previously existed only in the mind of the person who conceived the idea.
A programme, like a photograph, initially exists only as a mental model that must then be then translated into something tangible, something real.
The programmer uses syntax, algorithms, data structures, and architecture. The photographer, meanwhile, uses composition, light, timing, depth of field, and colour.
Yet both also work within limitations: the programmer deals with the constraints of language and hardware, 
while the photographer deals with those of the camera, the light, and the medium; ultimately they are doing something similar:
translating an idea into a form that others can understand.</p>

<p>It seems like a bold comparison, doesn’t it?
The parallel doesn’t stop there.
Taking a photograph or creating a software involves a whole range of challenges that must be sorted out through a creative process, albeit one that employs
techniques governed by precise rules. For instance, how do I ensure the exposure is exactly what I want?<br />
I start with the basic rules of the exposure triangle and adjust them as I see fit until I achieve the desired result for a specific situation.<br />
Or, how do I create a software that compresses a file optimally without significant data loss? I start with basic algorithms that I can then modify to achieve the specific type of compression I want.
In short, both activities require the programmer—or photographer—to use a range of techniques acquired over time to bring to life a result that faithfully reflects their original vision.</p>

<p>When I first thought about it, I was completely confused; it seemed like such a strange idea. Yet, when I pieced together everything I had done up to that point, it felt entirely natural.
In the end, whether it involves analogue or digital photography, technique and art have always gone hand in hand.<br />
These two worlds eventually began to influence one another. I used photography to learn new programming languages by creating small scripts that allowed me to apply unique filters to my photos. 
Conversely, programming drove me to approach the “photographic” problems I encountered in a systematic way, sometimes trying to bypass the limitations of the camera or post-processing software, wherever possible, in a true hacking spirit.
At other times, I simply applied a philosophy akin to TDD (Test-Driven Development—writing tests before the software that verifies them) to analogue photography: I would take digital shots first to gauge the composition, 
and then, once I knew what I wanted, I would shoot using analogue film. Photography, on the other hand, has taught me patience—not pursuing a result (often a mediocre one) as quickly as possible, but to wait and reflect, 
just as one does when waiting for the right light; to observe the world and its problems from a different perspective, while awaiting the precise moment.<br />
Ultimately, both have taught me the same thing: the value lies not only in the final result but also in the process of creating it.</p>

<p>This post appeared in the first issue of <a href="#todays-links">RogueLight</a> (<em>in Italian</em>)</p>

<hr />

<h4 id="things-i-like---in-random-order--usually-my-pictures-smirk">Things I like - in random order ( Usually my pictures :smirk:)</h4>

<p>I sent this picture to LensCulture for their <a href="https://www.lensculture.com/photo-competitions/black-and-white-photography-awards">Blanck and White Photography Awards 2026</a> and it’s been accepted :smile:</p>

<p><br />
<img src="https://pxscdn.com/public/m/_v2/424813098022428933/f0975049d-79c41a/AMNWKhee5kHU/g0y2MxrFJSO3Kx1QWmUw6rBv5u2VkUFgXBwzO57D.jpg" alt="A black-and-white photograph shows two mushrooms growing from dark, textured woodland soil. The larger mushroom stands on the right, its broad, rounded cap rising above a thick, slightly curved stem. Its pale surface is marked with irregular dark patches, stains, and fine texture, giving it a weathered appearance. A smaller mushroom emerges in the lower centre, partially hidden by the surrounding earth and vegetation." class="post-image" />
<br />
<br />
<br />
I found this during one of my walks around Sheffield and instantly I imagined it in monochrome</p>

<p><img src="https://pxscdn.com/public/m/_v2/424813098022428933/f0975049d-79c41a/fLTSxV85KOus/MUlmprGmNxwfW2rCAbe6dxrPLzTZ72s2h2A2CF09.jpg" alt="A black and white photograph of a used leather sofa placed outside an industrial building. The sofa is on the lower left side of the picture, on a concrete pavement which stretches through the lower part of the picture. Behind the sofa there’s a tall corrugated metal wall and on the left side of it a large dark roller shutter" class="post-image" />
<br />
<br /></p>

<hr />

<h4 id="todays-links">Today’s Links</h4>

<p>The first number of <a href="https://drive.proton.me/urls/4K3TMTE214#CTXKiUNmH0gG">Rogue Light</a> an Italian photozine I collaborate with.</p>

<p>Ethan Mollick <em>Use your deep knowledge, wide knowledge, taste and agency</em> <a href="https://open.substack.com/pub/oneusefulthing/p/the-overhang?utm_campaign=post-expanded-share&amp;utm_medium=web">The Overhang</a></p>

<p>Ted Gioia <em>An Oscar for the worst performance by an actress?</em> <a href="https://open.substack.com/pub/tedgioia/p/ai-generated-movie-star-has-a-total?r=1yyus2&amp;utm_campaign=post-expanded-share&amp;utm_medium=post%20viewer">AI-Generated Movie Star Has a Total Meltdown on TV</a></p>

<p>Tressie McMillan Cottom <em>tech’s most powerful soothsayers are begging one another to pump the brakes on this whole thing</em> <a href="https://www.nytimes.com/2026/09/19/opinion/ai-hugging-face-big-tech-danger.html?unlocked_article_code=1.ClE.tKs_.fBOvayJrnDfY&amp;smid=url-share">A.I. Is a Threat, but Not in the Way You Think</a></p>

<p>Naomi Klein <em>and</em> Astra Taylor an excerpt from their latest book <a href="https://www.theguardian.com/us-news/ng-interactive/2026/sep/13/end-times-fascists-essay?CMP=share_btn_url">End Times Fascism</a></p>

<p>Aperture <a href="https://aperture.org/editorial/photobooks/">photobooks</a> are always worth someone’s time</p>]]></content><author><name>Wildeng</name></author><summary type="html"><![CDATA[For a long time, I viewed programming and photography as two separate things—two completely different worlds. One made of logic and computers, the other of images, perceptions, and sensory stimuli. Then I realised that the creative processes underlying both activities are very similar.]]></summary></entry><entry><title type="html">Ruby Hidden Gems</title><link href="https://alainmauri.eu/2026/07/20/ruby-unknown-facts/" rel="alternate" type="text/html" title="Ruby Hidden Gems" /><published>2026-07-20T00:00:00+01:00</published><updated>2026-07-20T00:00:00+01:00</updated><id>https://alainmauri.eu/2026/07/20/ruby-unknown-facts</id><content type="html" xml:base="https://alainmauri.eu/2026/07/20/ruby-unknown-facts/"><![CDATA[<p>Ruby is a beautiful and expressive language that gives developers a great deal of flexibility. Along with that flexibility come a number of lesser-known language features that can sometimes produce surprising results.</p>

<p>Let’s have a look at some of them:</p>

<h2 id="operators-precedence">Operators Precedence</h2>

<p>Ruby operators precedence can sometimes lead to some unexpected behaviour, especially when comparing <code class="language-plaintext highlighter-rouge">&amp;&amp;</code> and <code class="language-plaintext highlighter-rouge">and</code></p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>a = true &amp;&amp; false
b = true and false
</code></pre></div></div>
<p>One would expect that <code class="language-plaintext highlighter-rouge">&amp;&amp;</code> and <code class="language-plaintext highlighter-rouge">and</code> are two spellings of same operator, so you might expect a and b to have
the same value, <code class="language-plaintext highlighter-rouge">true</code>.</p>

<p>They don’t</p>

<p>Ruby evaluates the two expressions in a different way because of operator precedence:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>a = true &amp;&amp; false # a =&gt; false   
# parsed as a=(true &amp;&amp; false)

b = true and false # b =&gt; true
# parsed as (b=true) and false
</code></pre></div></div>
<p>The assignment operator (<code class="language-plaintext highlighter-rouge">=</code>) has a lower precedence than <code class="language-plaintext highlighter-rouge">&amp;&amp;</code>, but a higher precedence than <code class="language-plaintext highlighter-rouge">and</code>. This is why <code class="language-plaintext highlighter-rouge">and</code> and <code class="language-plaintext highlighter-rouge">or</code> are commonly used for control flow, while <code class="language-plaintext highlighter-rouge">&amp;&amp;</code> and <code class="language-plaintext highlighter-rouge">||</code> are preferred for boolean expressions.</p>

<p>For example, this common Rails idiom:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">redirect_to</span><span class="p">(</span><span class="n">root_path</span><span class="p">)</span> <span class="ow">and</span> <span class="k">return</span>
</code></pre></div></div>

<p>works exactly because <code class="language-plaintext highlighter-rouge">and</code> has a lower precedence than the method call and <code class="language-plaintext highlighter-rouge">return</code>, making it read almost like natural language.</p>

<h3 id="defined-is-special"><code class="language-plaintext highlighter-rouge">defined?</code> is… special</h3>

<p>Ruby also has a keyword called <code class="language-plaintext highlighter-rouge">defined?</code>, and it’s one of the most unusual constructs in the language.</p>

<p>Consider the following example:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">c</span> <span class="o">=</span> <span class="kp">nil</span>

<span class="n">c</span> <span class="o">+=</span> <span class="mi">1</span> <span class="k">if</span> <span class="k">defined?</span><span class="p">(</span><span class="n">c</span><span class="p">)</span>
</code></pre></div></div>

<p>At first glance this looks harmless. Since <code class="language-plaintext highlighter-rouge">defined?(c)</code> checks whether <code class="language-plaintext highlighter-rouge">c</code> exists, you might expect the expression to be skipped if <code class="language-plaintext highlighter-rouge">c</code> is <code class="language-plaintext highlighter-rouge">nil</code>.</p>

<p>Instead, Ruby raises:</p>

<div class="language-text highlighter-rouge"><div class="highlight"><pre class="highlight"><code>undefined method `+' for nil:NilClass
</code></pre></div></div>

<p>Why?</p>

<p>The expression is parsed as:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">(</span><span class="n">c</span> <span class="o">+=</span> <span class="mi">1</span><span class="p">)</span> <span class="k">if</span> <span class="k">defined?</span><span class="p">(</span><span class="n">c</span><span class="p">)</span>
</code></pre></div></div>

<p>The condition is evaluated first.</p>

<p>The important detail is that <code class="language-plaintext highlighter-rouge">defined?</code> does <strong>not</strong> inspect the value of <code class="language-plaintext highlighter-rouge">c</code>. Instead, it asks the parser/runtime environment whether the expression exists.</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">c</span> <span class="o">=</span> <span class="kp">nil</span>

<span class="k">defined?</span><span class="p">(</span><span class="n">c</span><span class="p">)</span>
<span class="c1"># =&gt; "local-variable"</span>
</code></pre></div></div>

<p>Since <code class="language-plaintext highlighter-rouge">"local-variable"</code> is a truthy value, Ruby executes:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">c</span> <span class="o">+=</span> <span class="mi">1</span>
</code></pre></div></div>

<p>which becomes:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">c</span> <span class="o">=</span> <span class="n">c</span> <span class="o">+</span> <span class="mi">1</span>
</code></pre></div></div>

<p>and <code class="language-plaintext highlighter-rouge">nil + 1</code> raises a <code class="language-plaintext highlighter-rouge">NoMethodError</code>.</p>

<p>So <code class="language-plaintext highlighter-rouge">defined?(c)</code> can be truthy even when <code class="language-plaintext highlighter-rouge">c</code> is <code class="language-plaintext highlighter-rouge">nil</code>.</p>

<p>Now take a deep breath, because it’s time for something even stranger.</p>

<h2 id="the-flip-flop-operator">The Flip-Flop operator</h2>

<p>For some people, flip-flops are summer footwear.</p>

<p>For others, they’re a fundamental electronic circuit.</p>

<p>For Ruby, they’re an operator.</p>

<p>Let’s briefly talk about the electronic <a href="https://en.wikipedia.org/wiki/Flip-flop_(electronics)">flip-flop</a>.
A flip-flop is a bistable circuit capable of storing one bit of information. It has two stable states and changes state when one or more control inputs are activated.</p>

<p>What does this have in common with Ruby’s flip-flop?</p>
<ul>
  <li>it has an input that turns it <strong>on</strong></li>
  <li>it has an input that turns it <strong>off</strong></li>
</ul>

<p>Let’s look at an example:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1"># Select the multiples of 7 and its immediate subsequent number</span>

<span class="n">mults</span> <span class="o">=</span> <span class="p">[]</span>
<span class="p">(</span><span class="mi">1</span><span class="o">..</span><span class="mi">100</span><span class="p">).</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">x</span><span class="o">|</span>
 <span class="n">mults</span> <span class="o">&lt;&lt;</span> <span class="n">x</span> <span class="k">if</span> <span class="p">(</span><span class="n">x</span> <span class="o">%</span> <span class="mi">7</span><span class="p">)</span><span class="o">==</span><span class="mi">0</span><span class="o">..</span><span class="p">(</span><span class="n">x</span> <span class="o">%</span> <span class="mi">7</span><span class="p">)</span> <span class="o">==</span> <span class="mi">1</span>
<span class="k">end</span>

<span class="nb">p</span> <span class="n">mults</span>
<span class="p">[</span><span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">,</span> <span class="mi">14</span><span class="p">,</span> <span class="mi">15</span><span class="p">,</span> <span class="mi">21</span><span class="p">,</span> <span class="mi">22</span><span class="p">,</span> <span class="mi">28</span><span class="p">,</span> <span class="mi">29</span><span class="p">,</span> <span class="mi">35</span><span class="p">,</span> <span class="mi">36</span><span class="p">,</span> <span class="mi">42</span><span class="p">,</span> <span class="mi">43</span><span class="p">,</span> <span class="mi">49</span><span class="p">,</span> <span class="mi">50</span><span class="p">,</span> <span class="mi">56</span><span class="p">,</span> <span class="mi">57</span><span class="p">,</span> <span class="mi">63</span><span class="p">,</span> <span class="mi">64</span><span class="p">,</span> <span class="mi">70</span><span class="p">,</span> <span class="mi">71</span><span class="p">,</span> <span class="mi">77</span><span class="p">,</span> <span class="mi">78</span><span class="p">,</span> <span class="mi">84</span><span class="p">,</span> <span class="mi">85</span><span class="p">,</span> <span class="mi">91</span><span class="p">,</span> <span class="mi">92</span><span class="p">,</span> <span class="mi">98</span><span class="p">,</span> <span class="mi">99</span><span class="p">]</span>
</code></pre></div></div>
<p>Ruby’s expressiveness shines in this example, in just 4 lines of code we have an elegant solution. 
The interesting part is this expression</p>
<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code> <span class="c1"># on the "if" right there's the flip-flop operator</span>
 <span class="n">mults</span> <span class="o">&lt;&lt;</span> <span class="n">x</span> <span class="k">if</span> <span class="p">(</span><span class="n">x</span> <span class="o">%</span> <span class="mi">7</span><span class="p">)</span> <span class="o">==</span> <span class="mi">0</span><span class="o">..</span><span class="p">(</span><span class="n">x</span> <span class="o">%</span> <span class="mi">7</span><span class="p">)</span> <span class="o">==</span> <span class="mi">1</span>  
</code></pre></div></div>
<p>like its electronic counterpart it does have an input that triggers the <code class="language-plaintext highlighter-rouge">on</code> state <code class="language-plaintext highlighter-rouge">(x % 7) == 0</code> and one that triggers the
<code class="language-plaintext highlighter-rouge">off</code> state <code class="language-plaintext highlighter-rouge">( x % 7 ) == 1</code>. Once the left condition becomes true, the flip-flop remains active until the right condition becomes true, so the selected values are pushed into the array.</p>

<p>Let’s look at another example</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">ff</span> <span class="o">=</span> <span class="o">-&gt;</span><span class="p">(</span><span class="n">x</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="n">x</span> <span class="o">==</span> <span class="mi">2</span><span class="p">)</span><span class="o">..</span><span class="p">(</span><span class="n">x</span> <span class="o">==</span> <span class="mi">4</span><span class="p">)</span> <span class="p">}</span>

<span class="p">(</span><span class="mi">1</span><span class="o">..</span><span class="mi">6</span><span class="p">).</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">i</span><span class="o">|</span>
  <span class="nb">puts</span> <span class="s2">"</span><span class="si">#{</span><span class="n">i</span><span class="si">}</span><span class="s2">: </span><span class="si">#{</span><span class="n">ff</span><span class="p">.</span><span class="nf">call</span><span class="p">(</span><span class="n">i</span><span class="p">)</span><span class="si">}</span><span class="s2">"</span>
<span class="k">end</span>

<span class="mi">1</span><span class="p">:</span> <span class="kp">false</span><span class="o">..</span><span class="kp">false</span>
<span class="p">(</span><span class="n">irb</span><span class="p">):</span><span class="mi">13</span><span class="ss">:in</span> <span class="sb">`block in &lt;top (required)&gt;': bad value for range (ArgumentError)
        from (irb):16:in `</span><span class="n">block</span> <span class="k">in</span> <span class="o">&lt;</span><span class="n">top</span> <span class="p">(</span><span class="n">required</span><span class="p">)</span><span class="o">&gt;</span><span class="s1">'
        from (irb):15:in `each'</span>
        <span class="n">from</span> <span class="p">(</span><span class="n">irb</span><span class="p">):</span><span class="mi">15</span><span class="ss">:in</span> <span class="sb">`&lt;main&gt;'
        from &lt;internal:kernel&gt;:187:in `</span><span class="kp">loop</span><span class="s1">'
        from /Users/alain.mauri/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/irb-1.11.0/exe/irb:9:in `&lt;top (required)&gt;'</span>
        <span class="n">from</span> <span class="sr">/Users/</span><span class="n">alain</span><span class="p">.</span><span class="nf">mauri</span><span class="o">/</span><span class="p">.</span><span class="nf">rbenv</span><span class="o">/</span><span class="n">versions</span><span class="o">/</span><span class="mf">3.3</span><span class="o">.</span><span class="mi">1</span><span class="o">/</span><span class="n">bin</span><span class="o">/</span><span class="n">irb</span><span class="p">:</span><span class="mi">25</span><span class="ss">:in</span> <span class="sb">`load'
        from /Users/alain.mauri/.rbenv/versions/3.3.1/bin/irb:25:in `</span><span class="o">&lt;</span><span class="n">main</span><span class="o">&gt;</span><span class="err">'</span>
</code></pre></div></div>
<p>This throws an exception, but I’ve used the same syntax! Well, it turns out that to be a flip-flop operator it must be used in a 
conditional expression otherwise it would be treated as a <code class="language-plaintext highlighter-rouge">range</code> operator and fail like in this case.
The corrected example is</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">ff</span> <span class="o">=</span> <span class="o">-&gt;</span><span class="p">(</span><span class="n">x</span><span class="p">)</span> <span class="p">{</span> <span class="n">x</span> <span class="k">if</span> <span class="n">x</span> <span class="o">==</span> <span class="mi">2</span><span class="o">..</span><span class="n">x</span> <span class="o">==</span> <span class="mi">4</span> <span class="p">}</span>

<span class="p">(</span><span class="mi">1</span><span class="o">..</span><span class="mi">6</span><span class="p">).</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">i</span><span class="o">|</span>
  <span class="nb">puts</span> <span class="s2">"</span><span class="si">#{</span><span class="n">i</span><span class="si">}</span><span class="s2">: </span><span class="si">#{</span> <span class="n">ff</span><span class="p">.</span><span class="nf">call</span><span class="p">(</span><span class="n">i</span><span class="p">)</span> <span class="si">}</span><span class="s2">"</span>
<span class="k">end</span>

<span class="mi">1</span><span class="p">:</span>
<span class="mi">2</span><span class="p">:</span> <span class="mi">2</span>
<span class="mi">3</span><span class="p">:</span> <span class="mi">3</span>
<span class="mi">4</span><span class="p">:</span> <span class="mi">4</span>
<span class="mi">5</span><span class="p">:</span>
<span class="mi">6</span><span class="p">:</span>
</code></pre></div></div>
<p>Notice what’s happening:</p>

<ul>
  <li>x = 1 → flip-flop is OFF</li>
  <li>x = 2 → left condition becomes true → flip-flop turns ON → returns 2</li>
  <li>x = 3 → stays ON → returns 3</li>
  <li>x = 4 → right condition becomes true → still returns 4, then turns OFF</li>
  <li>x = 5 → OFF</li>
  <li>x = 6 → OFF</li>
</ul>

<p>The flip-flop operator’s state persists across lambda calls. This tells us that the state is not tied to the value of x, but to that particular flip-flop expression. Ruby keeps one hidden bit of state associated with that piece of code, remarkably similar to its electronic counterpart.</p>

<h4 id="throw---catch">Throw - Catch</h4>

<p>Come on, everyone know <code class="language-plaintext highlighter-rouge">throw/catch</code>, almost every language implement them. They are a way to handle exceptions! Well, not in Ruby,
that’s <code class="language-plaintext highlighter-rouge">begin/rescue</code>.<br />
In Ruby these operators are used to control the execution flow, more precisely, as the Ruby Guide <a href="https://docs.ruby-lang.org/en/master/syntax/control_expressions_rdoc.html#throwcatch">says</a></p>
<blockquote>
  <p>throw and catch are used to implement non-local control flow in Ruby. They operate similarly to exceptions, allowing control to pass directly from the
place where throw is called to the place where the matching catch is called. The main difference between throw/catch and the use of exceptions is that
throw/catch are designed for expected non-local control flow, while exceptions are designed for exceptional control flow situations, such as handling
unexpected errors.</p>
</blockquote>

<p>Here is a simple example:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">def</span> <span class="nf">foo</span><span class="p">(</span><span class="n">n</span><span class="p">)</span>
  <span class="kp">throw</span> <span class="ss">:bar</span> <span class="k">if</span> <span class="p">(</span><span class="n">n</span> <span class="o">%</span> <span class="mi">2</span><span class="p">)</span> <span class="o">==</span> <span class="mi">0</span>
<span class="k">end</span>

<span class="k">def</span> <span class="nf">baz</span><span class="p">(</span><span class="n">n</span><span class="p">)</span>
  <span class="nb">puts</span> <span class="n">n</span> <span class="k">if</span> <span class="p">(</span><span class="n">n</span> <span class="o">%</span> <span class="mi">3</span><span class="p">)</span> <span class="o">==</span> <span class="mi">0</span>
  <span class="n">foo</span><span class="p">(</span><span class="n">n</span><span class="p">)</span>
<span class="k">end</span>

<span class="p">(</span><span class="mi">1</span><span class="o">..</span><span class="mi">10</span><span class="p">).</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">n</span><span class="o">|</span>
  <span class="kp">catch</span> <span class="ss">:bar</span> <span class="k">do</span>
    <span class="n">baz</span><span class="p">(</span><span class="n">n</span><span class="p">)</span>
  <span class="k">end</span>
<span class="k">end</span>

<span class="c1"># Results are</span>
<span class="mi">3</span>
<span class="mi">6</span>
<span class="mi">9</span>
</code></pre></div></div>
<p>henever n is even, foo throws :bar, immediately transferring control to the matching catch block and skipping the remainder of the current execution path.
A more practical example is breaking out of nested loops:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">result</span> <span class="o">=</span> <span class="kp">catch</span><span class="p">(</span><span class="ss">:found</span><span class="p">)</span> <span class="k">do</span>
  <span class="p">(</span><span class="mi">1</span><span class="o">..</span><span class="mi">30</span><span class="p">).</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">x</span><span class="o">|</span>
    <span class="p">(</span><span class="mi">1</span><span class="o">..</span><span class="mi">20</span><span class="p">).</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">y</span><span class="o">|</span>
       <span class="k">if</span> <span class="n">x</span><span class="o">*</span><span class="n">y</span> <span class="o">==</span> <span class="mi">25</span>
        <span class="kp">throw</span> <span class="ss">:found</span><span class="p">,</span> <span class="p">[</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">]</span>
       <span class="k">end</span>
     <span class="k">end</span>
  <span class="k">end</span>
<span class="k">end</span>

<span class="c1"># Result is</span>
<span class="p">[</span><span class="mi">5</span><span class="p">,</span> <span class="mi">5</span><span class="p">]</span>
</code></pre></div></div>
<p>Without the throw, exiting nested loops would have required flags, extra conditions or extracting the logic into a separate method.
Using <code class="language-plaintext highlighter-rouge">throw</code> and <code class="language-plaintext highlighter-rouge">catch</code> makes the intent more explicit: as soon as the desired value is found, execution jumps to the matching <code class="language-plaintext highlighter-rouge">catch</code>.</p>

<h2 id="there-are-many-ways-to-solve-the-same-problem">There are many ways to solve the same problem</h2>

<p>None of these features are things you’ll necessarily use every day, and some of them you’ll probably never use in production code. But they reveal something important about Ruby’s philosophy. Ruby isn’t a language that tries to force a single “correct” way of writing code. Instead, it gives developers a rich vocabulary, trusting them to choose the level of expressiveness that best fits the problem at hand.</p>

<p>I think that’s enough Ruby hidden gems for today. I hope this brief journey has shown how Ruby has always valued expressiveness over rigidity. Perhaps that’s one of the reasons so many of us enjoy writing it: every now and then, it still manages to surprise us.</p>

<hr />

<h4 id="things-i-like---in-random-order">Things I like - in random order</h4>

<p>Summer is the perfect time for a challenge. I consider myself an avid reader, so I decided to try something different. I challenged my wife to choose a romance novel for me to read, while I would pick one of my favourite science books for her.</p>

<p>She chose Ali Hazelwood’s <em><a href="https://alihazelwood.com/two-can-play/">Two Can Play</a></em>, and, honestly, the time flew by. It turned out to be a surprisingly relaxing read. Not that my wife has converted me to romance novels—I probably wouldn’t buy one myself—but it’s well written and genuinely entertaining.</p>

<p>Did I pass the challenge? I think so.</p>

<p>Anyway check Oriana’s - my wife - website, she’s a novelist too <a href="https://orianawrites.eu/en/">Oriana</a></p>

<p>Some pictures I recently took in London and Brighton</p>

<p><br />
<img src="https://pxscdn.com/public/m/_v2/424813098022428933/4c90d8e69-c5a1c2/6LiFwiyd14K5/FFc9817nys8vCSVHlaHErswAHIXbM0Tn1QuB2s12.jpg" alt="A bright blue vintage-style fish and chips van stands beneath a wooden canopy in a busy London public space. Large illuminated letters spelling “FISH &amp; CHIPS” crown the stall, while menus and hand-painted signs decorate its sides. Three customers wait at the serving hatch: one young man in a pale T-shirt, another partially hidden beside him, and a man in a pink shirt carrying a striped tote bag as he receives his order" class="post-image" />
<br />
<br />
<img src="https://pxscdn.com/public/m/_v2/424813098022428933/4c90d8e69-c5a1c2/EzYBBJEDsLyi/y2HCJXUb0JF4O0sTWNrbwPqaqXTRR7V6HmTmZWPB.jpg" alt="A wide pebble beach stretches across the foreground, leading to a calm blue-grey sea beneath a pale, hazy sky. Near the centre, two traditional blue-and-white striped deckchairs face the horizon. One is occupied by a person in a white sunhat, while another person reclines beside them, mostly hidden from view. Between the chairs sits a cream tote bag with a large red heart, alongside a woven straw beach bag. To the right, another pair of empty deckchairs stands alone, separated by open space." class="post-image" />
<br />
<br /></p>

<hr />

<h4 id="todays-links">Today’s Links</h4>

<p>Naomi Klein <a href="https://naomiklein.substack.com/p/season-of-smoke">Season of Smoke</a><br />
Langdon Winner <a href="https://www.jstor.org/stable/pdf/20024652">Do Artifacts Have Politics?</a><br />
Cory Doctorow <a href="https://pluralistic.net/2026/07/16/lucky-orifices/#invisible-hands">Deranged billionaires and their syndromes</a><br />
Futurism <a href="https://futurism.com/artificial-intelligence/hacker-ai-music-suno-copyright">Suno stole decades worth of copyrighted music</a> 
Wired <a href="https://www.wired.com/story/madison-square-garden-jim-dolan-surveillance-machine/">Madison Square Surveillance Machine</a></p>]]></content><author><name>Wildeng</name></author><summary type="html"><![CDATA[Ruby is a beautiful and expressive language that gives developers a great deal of flexibility. Along with that flexibility come a number of lesser-known language features that can sometimes produce surprising results.]]></summary></entry><entry><title type="html">Myself and AI, a complex relationship</title><link href="https://alainmauri.eu/2026/04/30/myself-and-ai-a-complex-relationship/" rel="alternate" type="text/html" title="Myself and AI, a complex relationship" /><published>2026-04-30T00:00:00+01:00</published><updated>2026-04-30T00:00:00+01:00</updated><id>https://alainmauri.eu/2026/04/30/myself-and-ai-a-complex-relationship</id><content type="html" xml:base="https://alainmauri.eu/2026/04/30/myself-and-ai-a-complex-relationship/"><![CDATA[<p>Hi all,
a lot has happened since I last wrote in this space. I haven’t been the best host and I’ve neglected my little corner of the web. I’ve personally been through a lot and sought help for my mental health; perhaps  I’ll talk about that in the future. For now, please know that if you need help, there are people and places available to support you.</p>

<p>Let’s get to the main topic, my complex relationship with LLMs. When ChatGPT first launched, I was a bit skeptical, and frankly, unimpressed. But being curious by nature, I started digging into the theory behind the technology. To be fair I found it quite clever and intriguing.</p>

<p>This led me to experiment with different models and build a local version of a Copilot-style coding assistant - which I documented <a href="/2025/06/05/local-ai-code-assistant/">here</a> . 
At the same time, I’ve been reading extensively on the topic, subscribing to newsletters in English and Italian - Andrew Ng’s <a href="https://www.deeplearning.ai/the-batch/">The Batch</a>, Ethan Mollick <a href="https://www.oneusefulthing.org/">One Useful Thing</a> and Alberto Puliafito 
<a href="https://www.albertopuliafito.it/temi/intelligenza-artificiale/">Artificiale</a> - and reading books about how big tech is reshaping the internet - Cory Doctorow <a href="https://app.thestorygraph.com/books/5d972450-a8fa-48bd-98ec-6325a22a8b34">Enshittification</a>,
Tim Berners-Lee <a href="https://app.thestorygraph.com/books/d1436fd3-ee72-4587-aa55-fe84c539f4c1">This is for Everyone</a>, and Kyle Chaka <a href="https://app.thestorygraph.com/books/e5d59805-1122-4fde-b33d-85fdd44f65f4">Filterworld</a></p>

<p>Meanwhile models have improved rapidly, particularly in software engineering. The code these models produce is becoming increasingly refined, which both amazes and scares me. On the top of this my company now expects us to use these tools and while current expectations are low, I have a feeling the ultimate goal is to hand the ‘development keys’ over to the machines.</p>

<p>Ok, a lot in a few lines, but let’s get to the point. I now have a love/hate relationship with these tools.</p>

<p>What I hate:</p>

<ul>
  <li>
    <p>The environmental impact of LLMs and the ginormous server farms needed to train them and make them work. They need tons of energy and water to cool down these huge buildings, and companies are more and more relying on fossil fuels to power them, and they’re using a vast amount of the water resources of an area to cool the servers down and producing a lot of pollution in the area where they’re located.</p>
  </li>
  <li>
    <p>The disruption caused to workplaces and the fact that companies are using AI as an excuse to lay off a lot of workers. Knowledge workers are the ones who will be most affected by this. Talking about software engineering, my area of expertise, there’s always been a high demand for developers and not enough on the offer side. This has led to high salaries compared to other “white-collar” jobs, and I feel like we are a sort of bug in the capitalistic world where lower salaries are what stakeholders expect, thus AI is perfect to replace or deskill us, which will be the perfect excuse to reduce the pay or keep fewer workers, given that in their mind, one employee with the new tools could could match the output of two or more.</p>
  </li>
  <li>
    <p>The “Brain Fry” effect caused when someone has to review a lot of content quickly produced by the models, which is way more than what a human was and is used to.</p>
  </li>
  <li>
    <p>The AI slop. Using the tool without knowing what coding is and what are the best practices will definitely lead to more security problems, more bugs, and badly written code. AI slop is not only a coding problem, but also a general problem affecting websites, content, politics—think about all the lame memes some parties are pushing out—video, etc.</p>
  </li>
  <li>
    <p>AI-generated content has flooded the web and it’s really difficult to understand what is slop and what is human-curated content.</p>
  </li>
  <li>
    <p>The harm caused to all the humans that work as content moderators on the material that will be used to train a model. People that have to watch hours of harmful content that will then be used to train a model to recognise violent material. The harm caused by deepfake videos and fake content used to discredit or hurt minorities or single persons.
It is worth remembering that there have been many episodes of suicide induced by LLMs.</p>
  </li>
  <li>
    <p>Currently, it is not a neutral tool, but is in the hands of a bunch of companies that can decide to make it more or less harmful.</p>
  </li>
  <li>
    <p>It’s trained on a lot of copyrighted material that has been scraped from the Internet without correctly rewarding the original authors.</p>
  </li>
  <li>
    <p>It’s been pushed on a lot of people without asking them if they agreed or not about using it, but it’s been more take it or leave it.</p>
  </li>
  <li>
    <p>I’m afraid of losing the skills I’ve acquired in many years doing my job if I let an LLM do it for me.</p>
  </li>
</ul>

<p>What I like:</p>

<ul>
  <li>
    <p>It’s a powerful technology that if used correctly could potentially help anyone. I’m thinking about science, medicine, education, engineering could all benefit from this tool that will facilitate new discoveries, innovation, and learning. I don’t honestly know the right recipe for this, but maybe this should be one of those tools that needs to be democratised and not held in the hand of a couple of powerful corporations.</p>
  </li>
  <li>
    <p>I have instant feedback about my writings in a language that is not my mother tongue and have suggestions about improvements.</p>
  </li>
  <li>
    <p>I can quickly discover and fix a bug in the code I wrote or experiment with new programming languages.</p>
  </li>
  <li>
    <p>I could use it as a brainstorming tool to discover what to do next or to make up my mind about some ideas or doubts.</p>
  </li>
  <li>
    <p>On a personal level, these tools are quite good as coding assistants.</p>
  </li>
</ul>

<p>All these conflicting feelings are leading me to try to use these new tools with a pinch of salt and try to use them in as much a human way as possible, as an aid and I try to keep my critical thinking as much alive as possible, without conceding to the slop.</p>

<hr />

<h4 id="things-i-like---in-random-order">Things I like - in random order</h4>

<p>Here are some pictures I recently took using a 1963 - circa - Olympus Pen original, an half frame film camera.</p>

<p><br />
<img src="https://pxscdn.com/public/m/_v2/424813098022428933/31410d826-759a86/XFDDSKWsQtZS/WuRIUKLHQ8mDg5HfE7v9UwcTJvYzybd6FP6tghUA.jpg" alt="A diptych made of two photographs placed side by side on a black background. On the left, a close-up view from inside a yellow, textured structure shows a large circular opening at the top, revealing a bright blue sky. Sunlight enters through the opening, casting a curved, glowing patch of light on the inner surface. The scene feels abstract, with rough surfaces and warm yellow tones contrasting with the cool sky. On the right, the same yellow object is seen from the outside in a grassy park. It stands on a metal pole and has several rounded openings, resembling a small sculptural lamp or playground feature. Behind it are leafless trees and a clear blue sky. The object casts a long shadow across the grass. Together, the two images show the same subject from inside and outside" class="post-image" />
<br />
<br />
<img src="https://pxscdn.com/public/m/_v2/424813098022428933/31410d826-759a86/GCzg7xF0PqHU/22L0BMFRXtobAoAaD3hQT3xtTWXyHsROeC05CTVd.jpg" alt="A diptych of two photographs placed side by side. On the left, a quiet residential street stretches into the distance. A tall green lamppost stands prominently in the foreground on the pavement. Behind it, a row of brick terraced houses lines the street, with parked cars along the curb. A red post box is visible further down the pavement. Overhead, thin utility wires cut across a pale blue sky. The scene is sunlit, with soft shadows and a slightly faded, warm tone. On the right, a close-up view isolates the same red post box. It stands on a black pole at the edge of the street, with its front panel and mail slot clearly visible. The surface shows signs of wear, with small marks and fading paint. In the background, slightly out of focus, are more brick houses and a parked car. The bright sunlight casts a shadow of the post box onto the ground. Together, the two images show the same object first within its wider street setting, and then as a detailed, standalone subject." class="post-image" />
<br />
<br /></p>

<hr />

<h4 id="todays-links">Today’s Links</h4>

<p>Today’s links are mostly related to the topics I previously discussed</p>

<p><a href="https://futurism.com/artificial-intelligence/ai-brain-fry">the “Brain Fry” effect</a><br />
<a href="https://www.404media.co/study-finds-a-third-of-new-websites-are-ai-generated/">A third of new websites are AI generated</a><br />
<a href="https://theconversation.com/more-than-half-of-new-articles-on-the-internet-are-being-written-by-ai-is-human-writing-headed-for-extinction-268354?utm_medium=article_clipboard_share&amp;utm_source=theconversation.com">AI generated content on the web</a><br />
<a href="https://www.theguardian.com/global-development/2026/feb/05/in-the-end-you-feel-blank-indias-female-workers-watching-hours-of-abusive-content-to-train-ai?CMP=share_btn_url">Indian female workers and abusive content</a><br />
<a href="https://www.greenpeace.org/international/story/82486/ai-energy-environment-democracy/">Energy impact of AI and democracy</a> <br />
<a href="https://www.weforum.org/stories/2026/01/ai-water-data-centres-opportunity-am26-wef-xylem/">AI and water consumption, a different POV</a><br />
<a href="https://futurism.com/artificial-intelligence/ai-code-tearing-through-corporations">Effects of AI Generated Code</a></p>

<p>There are some Positive ones too:</p>

<p><a href="https://www.nytimes.com/2026/04/23/science/deaf-gene-therapy.html?unlocked_article_code=1.e1A.PSzV.ZgH2J6K83IFZ&amp;smid=url-share">New Gene Therapy Enables Children to Hear</a><br />
<a href="https://www.londonmarathonevents.co.uk/london-marathon/article/2026-tcs-london-marathon-breaks-guinness-world-records-title-largest-number">London Marathon Incredible Record</a><br />
<a href="https://album.link/gb/i/1877913489">Foo Fighters New Album</a></p>]]></content><author><name>Wildeng</name></author><summary type="html"><![CDATA[Hi all, a lot has happened since I last wrote in this space. I haven’t been the best host and I’ve neglected my little corner of the web. I’ve personally been through a lot and sought help for my mental health; perhaps I’ll talk about that in the future. For now, please know that if you need help, there are people and places available to support you.]]></summary></entry><entry><title type="html">Local ai code assistant</title><link href="https://alainmauri.eu/2025/06/05/local-ai-code-assistant/" rel="alternate" type="text/html" title="Local ai code assistant" /><published>2025-06-05T00:00:00+01:00</published><updated>2025-06-05T00:00:00+01:00</updated><id>https://alainmauri.eu/2025/06/05/local-ai-code-assistant</id><content type="html" xml:base="https://alainmauri.eu/2025/06/05/local-ai-code-assistant/"><![CDATA[<h4 id="disclaimer-because-the-readme-file-of-this-project-is-good-i-decided-to-duplicate-it-here-too">Disclaimer: Because the README file of this project is good, I decided to duplicate it here too.</h4>

<h2 id="build-your-personal-code-assistant">Build your personal code assistant</h2>

<p>This is a personal experiment to explore whether it’s possible to build a local, offline-first code assistant on top of an open-source language model.</p>

<p>The assistant maintains context in a <code class="language-plaintext highlighter-rouge">JSON</code> file, which is updated with each interaction — allowing the model to pick up where it left off.</p>

<h2 id="problem-context">Problem Context</h2>

<p>This started because I didn’t want to rely on commercial products like GitHub Copilot, nor be dependent on an internet connection. I wanted something that works even on a train or plane.
The second constraint is about my development environment. I’m a <a href="https://www.lunarvim.org">Lunarvim</a> user and occasionally use <a href="https://neovim.io">Neovim</a>, so my goal was to first create something pluggable in <code class="language-plaintext highlighter-rouge">Lunarvim</code> and then adapt it for use in plain <code class="language-plaintext highlighter-rouge">Neovim</code>.
The third constraint was focusing on the programming language. I’m mainly <code class="language-plaintext highlighter-rouge">Ruby</code> developer and occasionally <code class="language-plaintext highlighter-rouge">Python</code> so I’ve started by focusing on these two only.</p>

<h2 id="how-it-works-high-level">How it Works (High-level)</h2>

<ul>
  <li>Lua plugin captures code context from the buffer</li>
  <li>Lua calls Python script, passing selected code (or surrounding context)</li>
  <li>Python script prompts the model via Ollama and returns code suggestions</li>
  <li>Suggestions are rendered in a floating window (markdown) or inline (ghost text)</li>
</ul>

<h2 id="draft-implementation">Draft Implementation</h2>

<p>To make the agent run I had to do two things first:</p>

<ul>
  <li>Install <a href="https://github.com/ollama/ollama">Ollama</a> and pull my model of choice <a href="https://huggingface.co/deepseek-ai/deepseek-coder-1.3b-instruct">Deepseek Coder 1.3b</a>. The code is general enough to be used with other models, depending on your machine available resources.</li>
  <li>To keep stuff segregated I created a <code class="language-plaintext highlighter-rouge">Python</code> environment where all the libraries should be installed. It’s not strictly necessary though.</li>
</ul>

<p>The first iteration is the <code class="language-plaintext highlighter-rouge">get_suggestions.py</code> and <code class="language-plaintext highlighter-rouge">ai_assistant.lua</code>. These two work together as follows:</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">ai_assistant.lua</code> digests what’s been selected in the current buffer and passed to it. It then calls <code class="language-plaintext highlighter-rouge">get_suggestions.py</code> which returns a markdown formatted suggestion for the selected code and displays everything in a floating window.</li>
  <li>I then added some line to my <code class="language-plaintext highlighter-rouge">Lunarvim</code> configuration file to trigger the process:</li>
</ul>

<div class="language-lua highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1">-- Keymap to trigger the AI assistant</span>
<span class="n">lvim</span><span class="p">.</span><span class="n">keys</span><span class="p">.</span><span class="n">visual_mode</span><span class="p">[</span><span class="s2">"&lt;leader&gt;ai"</span><span class="p">]</span> <span class="o">=</span> <span class="s2">":&lt;C-U&gt;lua require('ai.ai_assistant').run_code_assistant()&lt;CR&gt;"</span>
</code></pre></div></div>

<p>The second iteration is more close to what I had in mind and is made up by two other files <code class="language-plaintext highlighter-rouge">inline_suggest.lua</code> and <code class="language-plaintext highlighter-rouge">get_inline_suggestions.py</code>.</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">inline_suggest.lua</code> gets the position of the cursor and the context around it by going back 100 lines and forward 20. It then calls the <code class="language-plaintext highlighter-rouge">get_inline_suggestions.py</code> and displays the results using “virtual text” or “ghost text”.</li>
  <li><code class="language-plaintext highlighter-rouge">get_inline_suggestions.py</code> is much simpler than the previous one and tries to instruct the model by using a prompt  designed to keep the model concise and avoid excessive commentary. What I need is the code only, without comments or other kind of suggestions.</li>
</ul>

<p>To call this last bit I added to my config the following lines</p>

<div class="language-lua highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">vim</span><span class="p">.</span><span class="n">o</span><span class="p">.</span><span class="n">updatetime</span> <span class="o">=</span> <span class="mi">500</span>  <span class="c1">-- 500 ms (you can tweak this)</span>
<span class="n">vim</span><span class="p">.</span><span class="n">api</span><span class="p">.</span><span class="n">nvim_create_autocmd</span><span class="p">(</span><span class="s2">"CursorHold"</span><span class="p">,</span> <span class="p">{</span>
  <span class="n">pattern</span> <span class="o">=</span> <span class="p">{</span> <span class="s2">"*"</span> <span class="p">},</span>
  <span class="n">callback</span> <span class="o">=</span> <span class="k">function</span><span class="p">()</span>
    <span class="nb">require</span><span class="p">(</span><span class="s2">"ai.inline_suggest"</span><span class="p">).</span><span class="n">run</span><span class="p">()</span>
  <span class="k">end</span><span class="p">,</span>
<span class="p">})</span>
</code></pre></div></div>
<p>This creates an auto command that triggers when the cursor is idle for 500ms and interrogates the model.</p>

<p>This is just a basic idea and a work in progress. My hope is to finally have a product that works well enough for my purposes and that can let me use these new technologies without being to0 dependent on the big corporations.</p>

<h2 id="whats-next">What’s Next</h2>
<ul>
  <li>Support for more languages</li>
  <li>Configurable context window size?</li>
  <li>Automatic memory/context trimming?</li>
  <li>Model fine-tuning (eventually?)</li>
</ul>

<hr />

<h4 id="things-i-like---in-random-order">Things I like - in random order</h4>

<p>Experimenting with colours:
<br />
<img class="post-image" src="https://pxscdn.com/public/m/_v2/424813098022428933/4f692c7f1-e20d1b/uGQzULFTPkrW/F6CAF7vfAQMVvObfZIc4eNbfogHxTTR6YODmYhn2.jpg" loading="lazy" alt="The image captures a quiet urban scene on a bright day. In the foreground, delicate cherry blossoms frame the view, their pale petals glowing warmly in the light. A white car is parked in an almost empty lot, while a cyclist wearing a helmet rides along a path beside the trees. Behind them, tall buildings rise — a red brick one to the left and a modern glass tower to the right. The sky is striking, a surreal mix of turquoise and violet tones, adding a dreamlike mood. The street is calm, evoking a peaceful, almost cinematic pause in the city." />
<br />
<br />
Experimenting with cinematic style:
<br />
<img src="https://pxscdn.com/public/m/_v2/424813098022428933/4f692c7f1-e20d1b/8lMIcI8Kc88G/2mYqpFXjqPEPYodAmWVyVJ5OYWfq7q0ZnA05xx2W.jpg" loading="lazy" alt="A young person in dark clothing crosses a quiet city street beneath a pale, overcast sky. To the left, a brick building marked &quot;BBC Radio Sheffield&quot; stands beside a street sign and a tall clock. Straight ahead, a faded beige building is covered in graffiti, with bare trees and empty benches nearby. Traffic lights show green, but only a few people are visible—two figures walking away on the right pavement, and a few distant cars. The scene feels still and contemplative, with muted colors and cinematic black bars above and below, adding a sense of framing and introspective distance." width="1770" height="1080" onerror="this.onerror=null;this.src='/storage/no-preview.png'" class="post-image" />
<br /></p>

<hr />

<h4 id="todays-links">Today’s Links</h4>

<p>Nintendo Switch 2 is the upgrade of my dreams <a href="https://www.theguardian.com/games/2025/jun/03/nintendo-switch-2-release-mario-kart-world">The Guardian</a></p>

<p>As usual corporate greed is at the base of this race to deploy AI agents:</p>

<blockquote>
  <p>Make no mistake: We’ve talked to scores of CEOs at companies of various sizes and across many industries.
Every single one of them is working furiously to figure out when and how agents or other AI technology can displace human workers at scale.
The second these technologies can operate at a human efficacy level, which could be six months to several years from now, companies will shift from humans to machines.</p>
</blockquote>

<p>Dario Amodei on the future of AI and the job market <a href="https://www.axios.com/2025/05/28/ai-jobs-white-collar-unemployment-anthropic">Behind the Curtain: A white-collar bloodbath</a></p>

<p>20 years ago <a href="https://www.postcrossing.com/20years/meetups">Postcrossing</a> was started. You should get into it, it’s fun!!</p>]]></content><author><name>Wildeng</name></author><summary type="html"><![CDATA[Disclaimer: Because the README file of this project is good, I decided to duplicate it here too.]]></summary></entry><entry><title type="html">The Magic World of Browser’s Privacy</title><link href="https://alainmauri.eu/2025/05/30/search-improved-and-specs/" rel="alternate" type="text/html" title="The Magic World of Browser’s Privacy" /><published>2025-05-30T00:00:00+01:00</published><updated>2025-05-30T00:00:00+01:00</updated><id>https://alainmauri.eu/2025/05/30/search-improved-and-specs</id><content type="html" xml:base="https://alainmauri.eu/2025/05/30/search-improved-and-specs/"><![CDATA[<p>While researching for a guide on how to properly write RSpec tests and avoid flaky specs, I once again ran into the growing frustration of modern web searches — cluttered with SEO spam, AI junk, and irrelevant results.
That experience led me to reflect not just on search engines, but also on the browsers we rely on daily. I realized how many of the popular ones are no longer user-friendly — especially when it comes to respecting our privacy and security.
Curious, I dove into the world of alternative browsers. Beyond the better-known options like Brave, DuckDuckGo, and Vivaldi, I discovered lesser-known but powerful tools like the Mullvad Browser — each with its own strengths and trade-offs.<br />
In the link section you will find some of the source I’ve used for this.
Here’s a comparison of these privacy-focused browsers to help you choose the one that fits your needs:</p>

<h4 id="-1-mullvad-browser">🥇 1. Mullvad Browser</h4>
<p>Pros:
Maximal privacy — no telemetry or fingerprinting.
Based on Tor Browser (without the Tor network).
Comes with uBlock Origin preinstalled.
Built for anonymity and security.</p>

<p>Cons:
Not beginner-friendly.
Lacks sync, bookmarks, and convenience features.</p>

<h4 id="-2-brave">🥈 2. Brave</h4>
<p>Pros:
Built-in tracker and ad blocker.
Fingerprinting protection.
Supports Tor in private windows.
Fast and easy to use.</p>

<p>Cons
Controversy on its founder <a href="https://www.spacebar.news/stop-using-brave-browser/">Brendan Eich</a>
Promotes its own crypto features.
Past controversy: affiliate link injections (2019).</p>

<h4 id="-3-firefox">🥉 3. Firefox</h4>
<p>Pros:
Open source and independent.
Strong Enhanced Tracking Protection.
Supports uBlock Origin and privacy extensions.</p>

<p>Cons:
Needs some customization for maximum privacy.
Slightly heavier on system resources.</p>

<h4 id="4-vivaldi">4. Vivaldi</h4>
<p>Pros:
Built-in ad/tracker blocker.
Highly customizable interface.
No telemetry without consent.</p>

<p>Cons:
Not fully open source.
Based on Chromium.</p>

<h4 id="5-safari">5. Safari</h4>
<p>Pros:
Intelligent Tracking Prevention (ITP).
Optimized for battery and performance on Apple devices.
Good privacy defaults.</p>

<p>Cons:
Limited extension ecosystem.
Locked into Apple ecosystem.</p>

<h4 id="6-arc">6. Arc</h4>
<p>Pros:
Innovative UI with useful features.
Ad/tracker blocking supported via extensions.
Clean, distraction-free design.</p>

<p>Cons:
Closed source and cloud-based account required.
Limited transparency on privacy practices.</p>

<h4 id="7-opera">7. Opera</h4>
<p>Pros:
Built-in ad blocker and free VPN (proxy).
Feature-rich and user-friendly.</p>

<p>Cons:
Owned by a Chinese consortium (privacy concerns).
VPN is not truly private.
Previous involvement in shady Android loan apps.</p>

<h4 id="8-microsoft-edge">8. Microsoft Edge</h4>
<p>Pros:
Integration with Windows security features.
Defender SmartScreen protects against phishing/malware.</p>

<p>Cons:
Heavy telemetry and data collection.
Aggressively pushes Microsoft services.
Can override user settings.</p>

<h4 id="9-chromium-vanilla">9. Chromium (Vanilla)</h4>
<p>Pros:
Open source, no proprietary Google code.
More private than Chrome by default.
Customizable for developers.</p>

<p>Cons:
No auto updates or media codecs by default.
Still leaks some data to Google domains (unless patched).</p>

<h4 id="10-google-chrome">10. Google Chrome</h4>
<p>Pros:
Fast, stable, and widely supported.
Excellent extension ecosystem.</p>

<p>Cons:
Heavy telemetry and user tracking.
No built-in tracker or ad blocking.
Designed around Google’s ad business.</p>

<hr />

<h4 id="things-i-like---in-random-order">Things I like - in random order</h4>

<p>A Monochrome picture I’ve taken in Bologna at the Certosa, the monumental cemetery.
<br />
<img src="https://pxscdn.com/public/m/_v2/424813098022428933/208209554-471e9e/FalbuZnVHjH2/eV059QJNaIZqLcrb5tZZUEwUNA0cqyQsXU36gnoJ.jpg" loading="lazy" alt="The photograph is a black and white image depicting a long, covered colonnade, similar to a hallway with columns on either side.  The colonnade is quite long, extending into the distance where it appears to darken and become less distinct.  The columns are tall and slender, classical in style, with bases and capitals.  Between the columns, there are walls with what appear to be stone or marble plaques or memorials, possibly tombstones, set into them.  Small floral arrangements are visible in some of these niches.  The floor of the colonnade is paved, and the shadows of the columns are cast long and distinctly on the ground, indicating a strong light source from one side.  A small, rectangular object, possibly a drain cover, is visible in the center of the foreground.  A person is visible in the far distance, adding a sense of scale and depth to the image. The overall impression is one of quiet solemnity and architectural grandeur." class="post-image" />
<br />
<br />
The last intact cementation furnace in Britain it’s in <a href="https://en.wikipedia.org/wiki/Cementation_furnace,_Sheffield">Sheffield</a>
<br />
<img data-v-46f39310="" src="https://pxscdn.com/public/m/_v2/424813098022428933/208209554-471e9e/lmrB8K9vBDTo/O5H6e64G6Bv2twAJ4nsxz3nm90y3kfV7uIbbCAN2.jpg" loading="lazy" alt="A large, conical brick tower stands prominently in a sunny urban landscape. The tower, once used for cementation in steel production, is dark reddish-brown with weathered bricks and a faded, patchy surface. A modern white metal structure is mounted at its top. Behind it are several mid-rise buildings with red, grey, and white facades, reflecting contemporary architecture. In the foreground lies a rough, dusty area with rubble, overgrown weeds, and metal fencing. The sky is clear and deep blue, casting strong, sharp shadows. The scene contrasts industrial heritage with urban development." class="post-image" />
<br />
<br />
All the pictures I usually post here are also available in my <a href="https://pixelfed.social/wildeng">Pixelfed Ptofile</a></p>

<hr />

<h4 id="todays-links">Today’s Links</h4>

<ul>
  <li><a href="https://coveryourtracks.eff.org/">EFF Cover Your Tracks</a></li>
  <li><a href="https://mullvad.net/en/browser">Mullvad Browser – Official Site</a></li>
  <li><a href="https://brave.com/privacy/">Brave Privacy Features</a></li>
  <li><a href="https://support.mozilla.org/en-US/products/firefox/privacy-and-security">Firefox Privacy &amp; Security Help</a></li>
  <li><a href="https://spreadprivacy.com/">DuckDuckGo Tracker Blocking</a></li>
  <li><a href="https://vivaldi.com/privacy/browser/">Vivaldi Browser Privacy</a></li>
  <li><a href="https://www.apple.com/privacy/features/">Safari Features – Apple</a></li>
  <li><a href="https://www.opera.com/privacy">Opera Privacy Policy</a></li>
  <li><a href="https://learn.microsoft.com/en-us/microsoft-edge/privacy-whitepaper/">Microsoft Edge Privacy Whitepaper</a></li>
  <li><a href="https://www.google.com/chrome/privacy/whitepaper.html">Chrome Privacy Whitepaper</a></li>
  <li><a href="https://cyberinsider.com/browser/secure/">RestorePrivacy Browser Comparison</a></li>
  <li><a href="https://www.spacebar.news/stop-using-opera-browser/">Stop Using Opera Browser</a></li>
</ul>]]></content><author><name>Wildeng</name></author><summary type="html"><![CDATA[While researching for a guide on how to properly write RSpec tests and avoid flaky specs, I once again ran into the growing frustration of modern web searches — cluttered with SEO spam, AI junk, and irrelevant results. That experience led me to reflect not just on search engines, but also on the browsers we rely on daily. I realized how many of the popular ones are no longer user-friendly — especially when it comes to respecting our privacy and security. Curious, I dove into the world of alternative browsers. Beyond the better-known options like Brave, DuckDuckGo, and Vivaldi, I discovered lesser-known but powerful tools like the Mullvad Browser — each with its own strengths and trade-offs. In the link section you will find some of the source I’ve used for this. Here’s a comparison of these privacy-focused browsers to help you choose the one that fits your needs:]]></summary></entry><entry><title type="html">Coding as art</title><link href="https://alainmauri.eu/2025/03/17/coding-as-art/" rel="alternate" type="text/html" title="Coding as art" /><published>2025-03-17T00:00:00+00:00</published><updated>2025-03-17T00:00:00+00:00</updated><id>https://alainmauri.eu/2025/03/17/coding-as-art</id><content type="html" xml:base="https://alainmauri.eu/2025/03/17/coding-as-art/"><![CDATA[<p>I graduated in electronic engineering — a practical, structured subject where precision matters and creativity often takes a back seat. But long before that, two things shaped how I see the world: playing the guitar and coding on a C64.</p>

<p>I was 12 when I got my hands on that C64. My first coding projects were practical — I even wrote a program to try to win the <em>Totocalcio</em> (Italy’s football pool). It didn’t work, but the thrill of making the machine do what I wanted stuck with me. I also experimented with sprites and graphics, discovering the creative side of code.</p>

<p>At the same time, I was studying classical guitar while trying to replicate the sounds of Hendrix, Clapton, BB King, and Led Zeppelin by ear. Coding and music seemed like opposites — one technical, the other emotional — but over time, I realized they weren’t so different. Both require structure and creativity, precision and expression.</p>

<p>Around my thirties, I tried to get into film photography — this was around 2003 — but it didn’t click. Maybe I didn’t have the right information or the right mindset. So I stopped. Then about a year ago, I picked up digital photography more seriously, and now I’m back to film too. This time it feels different — partly because I’ve found some great people on Pixelfed who’ve shared the right suggestions at the right time.</p>

<p>That’s why, even now as a software engineer, I feel the need to do something artistic. Creativity and logic aren’t opposites — they feed each other and need each other. That’s why I’m sure many software engineers out there are doing some kind of creative work. It’s not just a balance — it’s part of what makes us good at both.</p>

<hr />

<h4 id="things-i-like---in-random-order">Things I like - in random order</h4>
<p><br />
A picture of the river Don that I’ve taken with my film camera in Kelham Island - Sheffield<br />
<img src="https://pxscdn.com/public/m/_v2/424813098022428933/549719332-a3f277/AaNJwLe0PGhh/q3TKHXpeg1uv9FoAMbEQdlxMcGyHBBh6JCe4Vcya.jpg" alt="the picture shows the river don in Kelham Island Sheffield. On the right side some old red brick industrial buildings are reflecting in the river's water which has a brownish colour. On the left leafless trees and bushes. In the middle of the picture two tall modern buildings can be seen  on the background while in the foreground there are other red brick old industrial ones, some ducks are floating on the water" class="post-image" />
<br />
<br />
I like this one that I took with my digital camera. A sweet moment during the Chinese New Year festival in Sheffield<br />
<img src="https://pxscdn.com/public/m/_v2/424813098022428933/758e75a50-ddd61a/ZwroLPxfuxzj/uP9TE7jfRdxxSzugBccrE6FK4LNKw264X6DVlF93.jpg" alt="A man is putting a lion head made of inflated balloons on the head of a toddler. The picture tries to show the happiness of the moment. The shot has been taken during Chinese new year celebrations" class="post-image" />
<br />
<br /></p>

<hr />

<h4 id="todays-links">Today’s Links</h4>
<p>Ruby debugging <a href="https://railsatscale.com/2025-03-14-ruby-debugging-tips-and-recommendations-2025/">tips</a><br />
Stories from US Federal employees <a href="https://www.wethebuilders.org/">We are the builders</a><br />
Wizardzines - Implement DNS in a <a href="https://implement-dns.wizardzines.com/">weekend</a><br />
You will love this: <a href="https://github.com/Jaennaet/pISSStream">pISSStream</a> a menu bar app that shows you how full the urine tank of the ISS is.</p>]]></content><author><name>Wildeng</name></author><summary type="html"><![CDATA[I graduated in electronic engineering — a practical, structured subject where precision matters and creativity often takes a back seat. But long before that, two things shaped how I see the world: playing the guitar and coding on a C64.]]></summary></entry><entry><title type="html">Simplify Ruby Blocks</title><link href="https://alainmauri.eu/2024/12/25/simplify-ruby-blocks/" rel="alternate" type="text/html" title="Simplify Ruby Blocks" /><published>2024-12-25T00:00:00+00:00</published><updated>2024-12-25T00:00:00+00:00</updated><id>https://alainmauri.eu/2024/12/25/simplify-ruby-blocks</id><content type="html" xml:base="https://alainmauri.eu/2024/12/25/simplify-ruby-blocks/"><![CDATA[<p>I didn’t plan to write anything on Christmas, and honestly, I haven’t been great at blogging. But here we are, another 25th of December and another Ruby release!<br />
This time, Ruby 3.4 brings an array of fantastic features, including Prism as the default parser, improved performance, reduced memory usage for YJIT, and much more. I highly encourage you to explore all the updates.
What caught my attention the most, though is the introduction of the <code class="language-plaintext highlighter-rouge">it</code> parameter. Back in Ruby 2.7 the shorthand <code class="language-plaintext highlighter-rouge">_1</code> block parameter was introduced allowing developers to write more concise
and elegant blocks. This enhancement made code more readable and intuitive.
The traditional approach is to use the <code class="language-plaintext highlighter-rouge">|</code> symbol in a block, something like:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">].</span><span class="nf">map</span> <span class="p">{</span> <span class="o">|</span><span class="n">n</span><span class="o">|</span> <span class="n">n</span> <span class="o">*</span> <span class="mi">2</span> <span class="p">}</span>
</code></pre></div></div>
<p>the <code class="language-plaintext highlighter-rouge">_1</code> (and <code class="language-plaintext highlighter-rouge">_2, _3</code>) parameters removes the need to explicit the block variable explicitely and so, the above code could be written as:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">].</span><span class="nf">map</span> <span class="p">{</span> <span class="n">_1</span> <span class="o">*</span> <span class="mi">2</span> <span class="p">}</span>  <span class="c1"># _1 refers to each element in the array</span>
</code></pre></div></div>
<p>Let’s take a look at another example:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">[[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">],</span> <span class="p">[</span><span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">]].</span><span class="nf">map</span> <span class="p">{</span> <span class="n">_1</span> <span class="o">+</span> <span class="n">_2</span> <span class="p">}</span>
</code></pre></div></div>
<p>In this case <code class="language-plaintext highlighter-rouge">_1</code> refers to the first element of the array, <code class="language-plaintext highlighter-rouge">_2</code> to the second and so on. Ruby supports an unlimited number of block parameters allowing you to use <code class="language-plaintext highlighter-rouge">_1,_2,_3</code> and so
on, depending on the number of arguments passed to the block.<br />
Ruby <code class="language-plaintext highlighter-rouge">3.4</code>, released today, introduced <code class="language-plaintext highlighter-rouge">it</code> as a reference to a block parameter with no variable name and it’s especially useful in the case of one parameter only or when the block operation is straightforward providing a more readable alternative
to <code class="language-plaintext highlighter-rouge">_1</code> for developers unfamiliar with <code class="language-plaintext highlighter-rouge">_1</code>.</p>
<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">].</span><span class="nf">map</span> <span class="p">{</span> <span class="n">it</span> <span class="o">*</span> <span class="mi">2</span> <span class="p">}</span>
</code></pre></div></div>
<p>These approaches are particularly useful in situations where block variables have no semantic meaning, such as simple transformations or operations. However, in complex blocks or scenarios where parameter names add clarity, traditional syntax remains preferable.<br />
In conclusion, these block parameters are a useful tool to write more concise and readable block.</p>

<p>I think is enough writing for Christmas day, happy coding!</p>

<hr />

<h4 id="things-i-like---in-random-order">Things I like - in random order</h4>

<p>I love the colours of this sunrise I caught a week ago from my window.
<br />
<img src="https://pxscdn.com/public/m/_v2/424813098022428933/9da63c77d-bc90ba/kxkzDdkmcZuY/Bcbk4cuQtHWulxSy9fN3lg5jUdMsp7vLVHORk0JJ.jpg" alt="Sunrise from my window in Sheffield" class="post-image" />
<br /></p>

<hr />

<h4 id="todays-links">Today’s Links</h4>

<p>A Christmas Cartoon from the <a href="https://www.newyorker.com/cartoons/daily-cartoon/wednesday-december-25th-worth-it?utm_source=nl&amp;utm_brand=tny&amp;utm_mailing=TNY_Humor_122524&amp;utm_campaign=aud-dev&amp;utm_medium=email&amp;bxid=63cda847194f293410074e42&amp;cndid=72627383&amp;esrc=subscribe-page&amp;utm_term=TNY_Humor">New Yorker</a><br />
The 20 most read stories on <a href="https://arstechnica.com/staff/2024/12/the-20-most-read-stories-of-2024-on-ars-technica/">Ars Technica</a><br />
A complete guide for linting <a href="https://freshman.tech/linting-golang/">Go programs</a> <br />
Rails 8 <a href="https://rubyonrails.org/2024/11/7/rails-8-no-paas-required">No PaaS Required</a></p>]]></content><author><name>Wildeng</name></author><summary type="html"><![CDATA[I didn’t plan to write anything on Christmas, and honestly, I haven’t been great at blogging. But here we are, another 25th of December and another Ruby release! This time, Ruby 3.4 brings an array of fantastic features, including Prism as the default parser, improved performance, reduced memory usage for YJIT, and much more. I highly encourage you to explore all the updates. What caught my attention the most, though is the introduction of the it parameter. Back in Ruby 2.7 the shorthand _1 block parameter was introduced allowing developers to write more concise and elegant blocks. This enhancement made code more readable and intuitive. The traditional approach is to use the | symbol in a block, something like:]]></summary></entry><entry><title type="html">My generator works</title><link href="https://alainmauri.eu/2024/09/23/my-generator-works/" rel="alternate" type="text/html" title="My generator works" /><published>2024-09-23T00:00:00+01:00</published><updated>2024-09-23T00:00:00+01:00</updated><id>https://alainmauri.eu/2024/09/23/my-generator-works</id><content type="html" xml:base="https://alainmauri.eu/2024/09/23/my-generator-works/"><![CDATA[<p>I’m quite proud of how my blogpost template generator is taking shape. While there are still some edge cases that I haven’t covered, and a few more improvements to be made, it’s coming along nicely.
If you want to take a look, I linked the repository in a previous post. <a href="https://github.com/wildeng/wildeng.github.io/blob/development/_scripts/blogpost.rb">Here’s the permalink to the latest version of the script</a>.<br />
Shifting gears, I’m finally working on something pretty interesting at my day job. It’s simple codewise, but the theory behind it has been engaging. I’ve been focusing on building predictors for young athletes.
 While these predictors aren’t complex from a technical perspective, they are quite powerful in terms of the insights they provide about athletic potential.</p>

<p>I’m finally doing some interesting things at work. Codewise they’re simple but I’m working on some predictors that are for young athletes and the theory behind them is interesting.<br />
One of the most fascinating methods I’ve encountered is the <a href="https://en.wikipedia.org/wiki/Harry_J._Khamis#:~:text=Roche%2C%20Khamis%20developed%20the%20Khamis,to%20methods%20using%20skeletal%20age.">Khamis-Roche</a> method, which estimates a child’s adult height based on their current height, age, 
and their parents’ heights. This method is widely used and doesn’t require invasive procedures like X-rays, which makes it especially practical.</p>

<p>How the Khamis-Roche Method Works:</p>
<ol>
  <li>Inputs: The method takes the child’s current height, weight, age, and the average of the parents’ heights (mid-parental height).</li>
  <li>Mid-parental Height: This is calculated by averaging the father’s and mother’s heights.</li>
  <li>Gender Adjustment: The formula adds 5 inches (about 13 cm) for boys and subtracts the same amount for girls to account for typical growth patterns.</li>
  <li>Growth Data: The method considers the child’s current growth percentiles for a more accurate prediction.</li>
  <li>Accuracy: It’s around 95% accurate, especially for children aged 4 and older.</li>
  <li>Non-Invasive: Unlike other methods that rely on X-rays to estimate bone age, the Khamis-Roche method is completely non-invasive.</li>
  <li>Gender Differences: The formula is slightly adjusted for boys and girls to reflect different growth trajectories.
This method is straightforward and grounded in general growth trends, making it reliable and easy to apply.</li>
</ol>

<p>I’ve also realized that predicting the potential of a young athlete involves much more than just their technical abilities. It’s been eye-opening to see how various predictors, like growth patterns, influence assessments of athletic potential. 
These small discoveries have made my work feel less routine and more meaningful in recent days.</p>

<hr />

<h4 id="things-i-like---in-random-order">Things I like - in random order</h4>
<p>A photo a took this past summer from the top of <a href="https://en.wikipedia.org/wiki/Redipuglia_War_Memorial">Redipuglia War Memorial</a>. I did like the contrast between the white concrete and the blue sky.
<br />
<img src="/images/IMG_5579.jpeg" alt="a picture taken from the top of redipuglia war memorial in italy" class="post-image" />
<br /></p>

<hr />

<h4 id="todays-links">Today’s Links</h4>

<p>How Telegram became the Underworld’s favourite app <a href="https://www.nytimes.com/2024/09/23/podcasts/the-daily/telegram-terrorism.html?action=click&amp;module=audio-series-bar&amp;region=header&amp;pgtype=Article">The Daily</a><br />
The Real-World cost of AI <a href="https://www.theglobeandmail.com/podcasts/machines-like-us/article-the-real-world-costs-of-ai/">Machines like us podcast</a><br />
Browsing the <a href="https://us20.campaign-archive.com/?e=8d1795a565&amp;u=38bd6154386f64fcd92204a25&amp;id=89d656bce5">Archive</a><br />
Hacker’s Movie <a href="https://cybersecurityventures.com/movies-about-cybersecurity-and-hacking/">Guide</a></p>]]></content><author><name>Wildeng</name></author><summary type="html"><![CDATA[I’m quite proud of how my blogpost template generator is taking shape. While there are still some edge cases that I haven’t covered, and a few more improvements to be made, it’s coming along nicely. If you want to take a look, I linked the repository in a previous post. Here’s the permalink to the latest version of the script. Shifting gears, I’m finally working on something pretty interesting at my day job. It’s simple codewise, but the theory behind it has been engaging. I’ve been focusing on building predictors for young athletes. While these predictors aren’t complex from a technical perspective, they are quite powerful in terms of the insights they provide about athletic potential.]]></summary></entry><entry><title type="html">My Own Generator</title><link href="https://alainmauri.eu/2024/09/21/my-own-generator/" rel="alternate" type="text/html" title="My Own Generator" /><published>2024-09-21T00:00:00+01:00</published><updated>2024-09-21T00:00:00+01:00</updated><id>https://alainmauri.eu/2024/09/21/my-own-generator</id><content type="html" xml:base="https://alainmauri.eu/2024/09/21/my-own-generator/"><![CDATA[<p>Many things are recently going on in my mind, but I guess it’s just part of that process called aging. I’m having that feeling that I still have so many things to do and learn (<a href="https://album.link/i/258622449">Kenny G.</a> is playing in the background) but the time left is not enough.
Despite this and the fact that I’m not that fast as a developer as before - never been a 10x though… more a 2x :smile: - I’m still enjoying writing in that bizarre language called “code” and share my small achievements in blog posts, even though I realized
that I have to write when I feel too and not with a predefined routine. This is what I am and I think I’m not going to change much… 
Anyway I enjoy writing with my usual editor (Neovim or Lunarvim) but I don’t enjoy copy pasting things around. More I was in the process of learning how to use the <a href="http://whatisthor.com">Thor</a> gem so I said to myself that probably the best thing to do learn how it works is building something wih it. 
It took me less than one hour to build an alpha version of my personal blogpost generator and you can find the code <a href="https://github.com/wildeng/wildeng.github.io/blob/55bac77ea91252e72c3c45f8b57593d20f3b0454/_scripts/blogpost.rb">here</a>. 
<br />
More, I already have in my mind some improvements:
<br />
Add some validations to the name and date passed as arguments 
<br />
Add the possibility to set up a customisable path for saving the file. I’m just thinking about how to organise posts e.g. by category 
<br />
Maybe add a file path to a template as a /a/ameter. In this way I could potentially change the structure of my posts and make the generator more general.</p>

<p>I probably have many more improvements in my mind but the music is almost over and the beer is finished - It’s a Saturday evening so I can indulge a bit more with drinks!</p>

<p>Cheers!
<br />
By the way, I also added some animation to my career page, check it out!</p>

<hr />

<h4 id="things-i-like---in-random-order">Things I like - in random order</h4>

<p><br /></p>

<p>Look at the difference between the two! The Webb telescope is amazing! The original is <a href="https://www.flickr.com/photos/nasawebbtelescope/53969828422/in/album-72177720313923911">here</a> <br />
<img src="https://live.staticflickr.com/65535/53969828422_e000c6a967_k.jpg" alt="Question Mark Galaxy - Hubble and Webb | by James Webb Space Telescope" class="post-image" />
<br />
<br />
This one is called “Peeking into Perseus”, I love the colours… original <a href="https://www.flickr.com/photos/nasawebbtelescope/53951942710/in/album-72177720313923911">here</a><br />
<img src="https://live.staticflickr.com/65535/53951942710_5f4cef91ce_b.jpg" alt="Webb Finds Early Galaxies Weren't Too Big for Their Britches After All | by James Webb Space Telescope" class="post-image" />
<br />
<br /></p>

<hr />

<h4 id="todays-links">Today’s Links</h4>

<p>Shady firm are already manipulating <a href="https://futurism.com/shady-firms-manipulating-chatbots">chatbots</a> <br />
Where do music genres come from? <a href="https://www.honest-broker.com/p/where-do-music-genres-come-from">Ted Gioia</a> <br />
Cards against humanity sues Space X <a href="https://arstechnica.com/tech-policy/2024/09/cards-against-humanity-sues-spacex-alleges-invasion-of-land-on-us-mexico-border/">Arstechnica</a><br />
Secret calculator chat brings ChatGPT to TI-84 <a href="https://arstechnica.com/information-technology/2024/09/secret-calculator-hack-brings-chatgpt-to-the-ti-84-enabling-easy-cheating/">Arstechnica</a></p>]]></content><author><name>Wildeng</name></author><summary type="html"><![CDATA[Many things are recently going on in my mind, but I guess it’s just part of that process called aging. I’m having that feeling that I still have so many things to do and learn (Kenny G. is playing in the background) but the time left is not enough. Despite this and the fact that I’m not that fast as a developer as before - never been a 10x though… more a 2x :smile: - I’m still enjoying writing in that bizarre language called “code” and share my small achievements in blog posts, even though I realized that I have to write when I feel too and not with a predefined routine. This is what I am and I think I’m not going to change much… Anyway I enjoy writing with my usual editor (Neovim or Lunarvim) but I don’t enjoy copy pasting things around. More I was in the process of learning how to use the Thor gem so I said to myself that probably the best thing to do learn how it works is building something wih it. It took me less than one hour to build an alpha version of my personal blogpost generator and you can find the code here. More, I already have in my mind some improvements: Add some validations to the name and date passed as arguments Add the possibility to set up a customisable path for saving the file. I’m just thinking about how to organise posts e.g. by category Maybe add a file path to a template as a /a/ameter. In this way I could potentially change the structure of my posts and make the generator more general.]]></summary></entry><entry><title type="html">Thoughts in random order</title><link href="https://alainmauri.eu/2024/08/26/random-thoughts/" rel="alternate" type="text/html" title="Thoughts in random order" /><published>2024-08-26T00:00:00+01:00</published><updated>2024-08-26T00:00:00+01:00</updated><id>https://alainmauri.eu/2024/08/26/random-thoughts</id><content type="html" xml:base="https://alainmauri.eu/2024/08/26/random-thoughts/"><![CDATA[<p>AI-generated images are a problem, no more or less than “natural” ones. Can we determine whether an image is authentic or not? If someone claims an image is fake - e.g., Trump regarding a Kamala Harris rally -
can we produce documentation to prove its authenticity? And if so, will others be willing to accept the truth, or will they continue to believe what suits them best?
Italian researcher Walter Quattrociocchi, in an article for the financial newspaper <a href="https://www.ilsole24ore.com/art/armarsi-contro-fake-news-strumenti-il-prebunking-e-debunking-AGTHB8W">Il Sole 24 ore</a>, explains that debunking doesn’t work, mostly because people stick to their mental models
even when confronted with the truth. This is where prebunking becomes useful.
Prebunking, also known as inoculation theory in communication studies, is a proactive approach to combating misinformation.
The goal of prebunking is to equip people with the skills to spot false and misleading information online before they encounter it, thereby preempting manipulation.
This method works by exposing individuals to weakened forms of misinformation and teaching them how to identify and counter deceptive tactics.</p>

<p>Key aspects of prebunking include:</p>

<ol>
  <li>Education: Teaching critical thinking skills and common manipulation techniques used in misinformation.</li>
  <li>Exposure: Presenting mild doses of misinformation along with explanations of why it’s misleading.</li>
  <li>Practice: Allowing individuals to apply their new knowledge in controlled scenarios.</li>
  <li>Reinforcement: Regularly updating and reinforcing these skills as misinformation tactics evolve.</li>
</ol>

<p>By implementing prebunking strategies, the aim is to make online users more resilient to being misled in the future.
This approach acknowledges that prevention is often more effective than cure when it comes to battling the spread of misinformation in our digital age.</p>

<p>I’ve been back to Italy with the whole family after two years. Many things have changed, and I feel I belong to a different place now.
But still, when I come here, many sweet memories come to my mind, and I start questioning my past choices.
I guess it’s normal, given that I moved to the UK for two main reasons: better job opportunities for a Rubyist and putting some distance between myself and all the pressures my former life was
putting on me. 
Anyway, seeing what my kids have become and the happiness in my wife’s eyes is enough to say that our life has improved a lot,
despite Brexit and all the xenophobic rhetoric that comes from the British far right.</p>

<p>I want to learn how to solve a Rubik’s cube! :smile: I remember when I was a kid, back in the 80s, I had a Rubik’s cube and after scrambling it, I detached all the coloured stickers and
put them back in the right order, pretending I had solved it!</p>

<p>I’m reading “Ruby under a Microscope” again. Sometimes I need to refresh my understanding of the language, and I think that I know more about Ruby than I do about Rails.
This hasn’t always been valued during interviews. What fascinates me is the way the language handles different scenarios, such as <code class="language-plaintext highlighter-rouge">include</code>, <code class="language-plaintext highlighter-rouge">extend</code>, and <code class="language-plaintext highlighter-rouge">prepend</code>,
the algorithms used to parse the code, and generally all the internal mechanisms that make my life as a developer easier.</p>

<hr />

<h4 id="things-i-like---in-random-order">Things I like - in random order</h4>

<p>Some other pictures I recently took:</p>

<p><br />
<img src="https://pxscdn.com/public/m/_v2/424813098022428933/3781ba7d4-1bb9dc/8S7jdImacpHV/VPQAShFmJHjrIN6kSm5rsgAEpqHGsNxA9IEYmgIf.jpg" alt="a woman smiling while walking the dogs in Brighton" class="post-image" />
<br />
<br />
<img src="https://pxscdn.com/public/m/_v2/424813098022428933/530d83cd3-f15549/ShUL7h8BaWYq/b5eRHVRH7oE3gvjTsAuXkrwGUOmNmbb2OreasATo.jpg" alt="a photographer with some dancers posing for him in kelham island sheffield" class="post-image" />
<br />
<br /></p>

<p>:heart: I’ve tried many IDEs in my career but I always come back to Lunarvim or Emacs :heart:</p>

<hr />

<h4 id="todays-links">Today’s Links</h4>

<p>Prebunking with <a href="https://prebunking.withgoogle.com">Google</a></p>

<p>You need just 19 words to provide <a href="https://www.youtube.com/watch?v=8lfQGSV47Y8">wise feedback</a> from Daniel Pink <code class="language-plaintext highlighter-rouge">Pinkcast</code></p>

<p>Microsoft refuses to patch multiple flaws in Microsoft macOS apps <a href="https://www.theregister.com/2024/08/19/cisco_talos_microsoft_macos/">The Register</a></p>

<p>Who uses LLM <a href="https://www.theregister.com/2024/08/13/who_uses_llm_prompt_injection/">prompt injection?</a></p>

<p>The Obamas’ <a href="https://slate.com/news-and-politics/2024/08/barack-obama-crowd-size-michelle-obama-black-jobs-dnc-speech.html">real superpower</a></p>]]></content><author><name>Wildeng</name></author><summary type="html"><![CDATA[AI-generated images are a problem, no more or less than “natural” ones. Can we determine whether an image is authentic or not? If someone claims an image is fake - e.g., Trump regarding a Kamala Harris rally - can we produce documentation to prove its authenticity? And if so, will others be willing to accept the truth, or will they continue to believe what suits them best? Italian researcher Walter Quattrociocchi, in an article for the financial newspaper Il Sole 24 ore, explains that debunking doesn’t work, mostly because people stick to their mental models even when confronted with the truth. This is where prebunking becomes useful. Prebunking, also known as inoculation theory in communication studies, is a proactive approach to combating misinformation. The goal of prebunking is to equip people with the skills to spot false and misleading information online before they encounter it, thereby preempting manipulation. This method works by exposing individuals to weakened forms of misinformation and teaching them how to identify and counter deceptive tactics.]]></summary></entry></feed>