laria.me Bloghttp://laria.me/blogLaria Carolin Chabowskilaria-blog@laria.mehttp://laria.me2021-01-02T17:47:00ZThe smallest Git commithttp://laria.me/blog/2021/1/2/the-smallest-git-commit2021-01-02T17:47:00Z<p>I was wondering: Just how small can a Git repository be?</p> New webpagehttp://laria.me/blog/2021/1/1/new-webpage2021-01-01T15:59:00Z<p>A new year, a new website! I've redone my website again and now use my cool laria.me domain to host it.</p> <p>It's mostly a blog and my plan is to write long-ish articles here from time to time, instead of the mostly really short articles from my old blog, although I've imported some of them, so it's not so empty here.</p> Lloyd Kahn on his NorCal self-reliant half-acre homesteadhttp://laria.me/blog/2016/10/1/14753486992016-10-01T19:04:22Z<p><a href="https://www.youtube.com/watch?v=z6kPzMSvdDA">https://www.youtube.com/watch?v=z6kPzMSvdDA</a></p> Dryland harvesting home hacks sun, rain, food & surroundingshttp://laria.me/blog/2016/8/14/14712089872016-08-14T21:08:18Z<p><a href="http://youtu.be/KcAMXm9zITg">http://youtu.be/KcAMXm9zITg</a></p> Is it a Notebook? Is it a Tablet?http://laria.me/blog/2014/8/24/yoga11s2014-08-24T22:53:16Z<p><a href="/static/images/9e210719.jpg"><img src="/static/images/9e210719.thumb.jpg" alt="Yoga 11s"></a></p> <p>Both! And I love it already! It's an Ideapad Yoga 11s from Lenovo.</p> <p>I needed a small portable computer for my daily commuting. I want to do something useful with that 90 minutes on the train every day (okay, let's be honest, I will mostly surf reddit once I get mobile internet, can't decide on a contract yet, they are all shitty).</p> mass-mp3-retag.shhttp://laria.me/blog/2014/8/18/mass-mp3-retag2014-08-18T22:24:37Z<p>I needed to tag some MP3 files to transfer them to my Hi-MD player (I know, I'm a technological caveman sometimes...). Since I have the most important music infos encoded in the directory structure, I could write a little shell script to automate this.</p> <pre class="chroma"><span class="cp">#!/bin/sh </span><span class="cp"></span> <span class="c1"># Mass retagging of mp3 files that don&#39;t have ID3 tags.</span> <span class="c1"># The MP3 files must be named like this to use this script:</span> <span class="c1"># ./&lt;first letter of artist&gt;/&lt;artist&gt;/&lt;album&gt;/&lt;track number&gt; - &lt;title&gt;.&lt;file extension(s)&gt;</span> <span class="c1"># ^-- The current working directory</span> exsomething<span class="o">()</span> <span class="o">{</span> <span class="nb">echo</span> <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span> <span class="p">|</span> sed <span class="s1">&#39;s#&#39;</span><span class="s2">&#34;</span><span class="nv">$2</span><span class="s2">&#34;</span><span class="s1">&#39;#\1#&#39;</span><span class="p">;</span> <span class="o">}</span> exartist<span class="o">()</span> <span class="o">{</span> exsomething <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span> <span class="s1">&#39;^\././\([^/]*\)/.*$&#39;</span><span class="p">;</span> <span class="o">}</span> exalbum<span class="o">()</span> <span class="o">{</span> exsomething <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span> <span class="s1">&#39;^\././[^/]*/\([^/]*\)/.*$&#39;</span><span class="p">;</span> <span class="o">}</span> extrack<span class="o">()</span> <span class="o">{</span> exsomething <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span> <span class="s1">&#39;^\././[^/]*/[^/]*/0*\([0-9]*\)\s*-.*$&#39;</span><span class="p">;</span> <span class="o">}</span> extitle<span class="o">()</span> <span class="o">{</span> exsomething <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span> <span class="s1">&#39;^\././[^/]*/[^/]*/[0-9]*\s*-\s*\([^\.]*\)\.[^\.]*$&#39;</span><span class="p">;</span> <span class="o">}</span> hasinfo<span class="o">()</span> <span class="o">{</span> id3info <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span> <span class="p">|</span> grep Title &gt;/dev/null<span class="p">;</span> <span class="o">}</span> retag<span class="o">()</span> <span class="o">{</span> id3tag -a<span class="s2">&#34;</span><span class="k">$(</span>exartist <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span><span class="k">)</span><span class="s2">&#34;</span> -A<span class="s2">&#34;</span><span class="k">$(</span>exalbum <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span><span class="k">)</span><span class="s2">&#34;</span> -s<span class="s2">&#34;</span><span class="k">$(</span>extitle <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span><span class="k">)</span><span class="s2">&#34;</span> -t<span class="s2">&#34;</span><span class="k">$(</span>extrack <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span><span class="k">)</span><span class="s2">&#34;</span> <span class="s2">&#34;</span><span class="nv">$1</span><span class="s2">&#34;</span><span class="p">;</span> <span class="o">}</span> find -type f <span class="p">|</span> <span class="k">while</span> <span class="nb">read</span> fn<span class="p">;</span> <span class="k">do</span> <span class="k">if</span> ! hasinfo <span class="s2">&#34;</span><span class="nv">$fn</span><span class="s2">&#34;</span><span class="p">;</span> <span class="k">then</span> retag <span class="s2">&#34;</span><span class="nv">$fn</span><span class="s2">&#34;</span> <span class="k">fi</span> <span class="k">done</span> </pre><p><a href="https://gist.github.com/silvasur/4508b9c695a124f239ac">https://gist.github.com/silvasur/4508b9c695a124f239ac</a></p> <p>This is why a Unix-style system beats Windows: You can combine simple tools with a simple, yet powerful programming language to automate almost everything if you want to. On Windows you'd probably have to download a 3rd party program for that.</p> Bret Victor - The Future of Programminghttp://laria.me/blog/2014/6/14/14027756252014-06-14T21:53:45Z<p><a href="http://vimeo.com/71278954">http://vimeo.com/71278954</a></p> <p>Apparently not many big things have happened in the field of programming in the last 40 years. This talk shows many awesome techniques that were invented back then. They still aren't in widespread use.</p> <p>Via <a href="https://twitter.com/rob_pike/status/476028947449126913">Rob Pike's Twitter</a></p> Robot returns with the Treasure for the first time!http://laria.me/blog/2014/4/30/13988813132014-04-30T20:08:33Z<p><a href="https://www.youtube.com/watch?v=VYP_YL7O2yg">https://www.youtube.com/watch?v=VYP_YL7O2yg</a></p> <p>One of the creators of <a href="http://robotloveskitty.com/LoD/">Legend of Dungeon</a> (A cool game you should check out!) beats his own game for the fisrt time (yes, it's that hard). Highly emotional moment.</p> Cruisin 3 by Abyss explainedhttp://laria.me/blog/2014/4/30/13988141402014-04-30T01:29:00Z<p><a href="https://www.youtube.com/watch?v=NCbb86jphn4">https://www.youtube.com/watch?v=NCbb86jphn4</a></p> <p>This video explains the magic behind the fantastic Cruisin 3 demo (here is the <a href="https://www.youtube.com/watch?v=er8CoAAmv2A">original video</a>).</p> mndlbrthttp://laria.me/blog/2014/4/26/mndlbrt2014-04-26T01:12:00Z<p><a href="http://mndlbrt.onekb.net">http://mndlbrt.onekb.net</a>. The link is dead now, so <a href="/static/mndlbrt/mndlbrt.html">here is a version hosted on this page</a>.</p> <p><a href="http://onekb.net">onekb.net</a> offers ultra cheap hosting... if you can fit your stuff into 1024 bytes!</p> <p>I decided to write a mandelbrot renderer in 1kb. mndlbrt is the result! You can zoom and even share the current image with others (the URL automtaically updates to represent the current area). Also learned a bit about the HTML canvas in the process, which has a surprisingly sane API for webstandards.</p> Concurrency Is Not Parallelismhttp://laria.me/blog/2014/4/9/13969944802014-04-09T00:01:20Z<p><a href="https://www.youtube.com/watch?v=cN_DpYBzKso">https://www.youtube.com/watch?v=cN_DpYBzKso</a></p> <p>A great talk from Rob Pike about concurrency and the Go programming language. Definietely worth the 30 minutes.</p> Some small Go librarieshttp://laria.me/blog/2014/3/28/13960057652014-03-28T12:22:45Z<p>I've published <a href="https://code.laria.me/buzhash">buzhash</a> (a rolling hash implementation) and <a href="https://code.laria.me/binproto">binproto</a> (a binary protocol). Both were part of a larger project that I will probably never publish or finish. But perhaps these libraries will be useful for someone.</p> Whee! My first OpenStreetMap contribution.http://laria.me/blog/2014/2/28/guess-im-an-osmer-now2014-02-28T21:35:54Z<p><a href="https://www.openstreetmap.org/changeset/20834790">https://www.openstreetmap.org/changeset/20834790</a></p> <p>I got a GPS today, the etrex 10 from Garmin. Cool little device :).</p> <p>Recorded a GPS trace and added some previously unmapped paths to OpenStreetMap (which is a cool project BTW).</p> command center: Self-referential functions and the design of optionshttp://laria.me/blog/2014/1/26/13907352522014-01-26T12:20:52Z<p><a href="http://commandcenter.blogspot.de/2014/01/self-referential-functions-and-design.html">http://commandcenter.blogspot.de/2014/01/self-referential-functions-and-design.html</a></p> <p>Cool idea for designing options in Go.</p> very pushhttp://laria.me/blog/2014/1/11/13894561942014-01-11T17:03:14Z<p><a href="https://twitter.com/chris__martin/status/420992421673988096">https://twitter.com/chris__martin/status/420992421673988096</a></p> <p>(found on <a href="http://www.reddit.com/r/ProgrammerHumor/comments/1usyfv/such_git_xpost_rsupershibe/">/r/ProgrammerHumor</a>)</p> The Real Story Behind Wayland and X - Daniel Stonehttp://laria.me/blog/2013/12/31/13885081722013-12-31T17:42:52Z<p><a href="http://www.youtube.com/watch?v=RIctzAQOe44">http://www.youtube.com/watch?v=RIctzAQOe44</a></p> <p>Cool talk about X11 and Wayland.</p> What do you call a group of 8 hobbits?http://laria.me/blog/2013/11/13/13843622382013-11-13T18:03:58Z<p>A hobbyte!</p> Updates for biomedhttp://laria.me/blog/2013/11/4/biomed-updates-22013-11-04T21:59:43Z<p>I have made some improvements to <a href="https://code.laria.me/biomed">biomed</a>, my biome editor for Minecraft maps:</p> Dave Baggett's answer to Programming Interviews: What's the hardest bug you've debugged?http://laria.me/blog/2013/10/31/13831744022013-10-31T00:06:42Z<p><a href="http://www.quora.com/Programming-Interviews/Whats-the-hardest-bug-youve-debugged/answer/Dave-Baggett?srid=pxH3">http://www.quora.com/Programming-Interviews/Whats-the-hardest-bug-youve-debugged/answer/Dave-Baggett?srid=pxH3</a></p> <p>Dave Baggett describes the horror of hardware bugs. Very interesting read!</p> mailremindhttp://laria.me/blog/2013/9/22/mailremind2013-09-22T11:45:15Z<p><a href="https://code.laria.me/mailremind">https://code.laria.me/mailremind</a></p> <p>I've written a web-based service that allows you to send yourself an email based on a schedule: <a href="https://github.com/silvasur/mailremind">mailremind</a>.</p> <p>Why? Because I often send myself an email to remind me of something and I thought it would be useful if I could send mails in the future or based on a schedule (e.g. useful for birthdays).</p> <p>If you also think this is useful, you can have your own installation (it is quite easy to configure), or you can use my public mailremind installation: <a href="http://mailremind.silvasur.net">mailremind.silvasur.net</a></p> gomcmap updatedhttp://laria.me/blog/2013/9/21/gomcmap-update2013-09-21T00:58:27Z<p><a href="https://code.laria.me/gomcmap">https://code.laria.me/gomcmap</a></p> <p>I updated gomcmap, my Go library for handling Minecraft maps.</p> <ul> <li>New Biomes and blocks from the recent snapshots were added.</li> <li>Adding Chunks implemented.</li> <li>Removing chunks implemented.</li> <li>RecalcHeightmap fixed.</li> </ul> biomed was updatedhttp://laria.me/blog/2013/9/20/biomed-updates2013-09-20T21:59:49Z<p>I updated <a href="https://code.laria.me/biomed">biomed</a>. A bug in the weather condition fix code was fixed (snow could fall through glass because of Minecrafts weird definition of a height map).</p> <p>There is now also an experimental <code>minecraft-1.7</code> branch which adds the new biomes that the recently released snapshots introduced. When Minecraft 1.7 is out, I wil merge that branch into master.</p> EndzeitBeats - Chipdreamhttp://laria.me/blog/2013/9/14/endzeitkind-chipmusic2013-09-14T21:02:17Z<p><a href="https://www.youtube.com/watch?v=UrrHelRzGjg">https://www.youtube.com/watch?v=UrrHelRzGjg</a></p> <p>Awesome chiptune-style track from Endzeitkind.</p> <p>Including background artwork from me :-).</p> Banda Pacheco - RevoluciĆ³nhttp://laria.me/blog/2013/9/12/pacheco-revolucion2013-09-12T21:34:21Z<p><a href="http://www.youtube.com/watch?v=LtDY-kBUjUM">http://www.youtube.com/watch?v=LtDY-kBUjUM</a></p> <p>Awesome band that played on the <a href="http://freiheitstattangst.de/">&quot;Freiheit statt Angst&quot;</a> rally in Berlin.</p> Manning Outrage | Matt Borshttp://laria.me/blog/2013/8/29/13777310102013-08-29T01:03:30Z<p><a href="http://www.mattbors.com/blog/2013/08/27/manning-outrage/">http://www.mattbors.com/blog/2013/08/27/manning-outrage/</a></p> CSS summed up in a GIFhttp://laria.me/blog/2013/8/24/13772983482013-08-24T00:52:28Z<p><a href="http://i.imgur.com/Q3cUg29.gif">http://i.imgur.com/Q3cUg29.gif</a></p> Legend of Dungeonhttp://laria.me/blog/2013/8/22/legend-of-dungeon2013-08-22T13:35:23Z<p><a href="http://www.robotloveskitty.com/LoD/">http://www.robotloveskitty.com/LoD/</a></p> <p>An awesome <a href="http://en.wikipedia.org/wiki/Roguelike">roguelike</a> game with nice pixel art and a phantastic lighting system. Tons of fun to play!</p> <p>Thanks to <a href="http://www.youtube.com/watch?v=YmkuBvPJSXU">Endzeitkind</a> for suggesting the game in his &quot;Indie Spotlight&quot; series.</p> biomedhttp://laria.me/blog/2013/8/20/biomed2013-08-20T12:58:30Z<p><a href="https://code.laria.me/biomed">https://code.laria.me/biomed</a></p> <p>I've written a GUI Tool that allows you to edit the biomes of your Minecraft maps, <a href="https://github.com/silvasur/biomed/">biomed</a>.</p> <p>It is written in <a href="http://golang.org">Go</a> and uses my <a href="https://github.com/silvasur/gomcmap">gomcmap</a> library and <a href="https://github.com/mattn/go.gtk">go-gtk</a> as a GUI toolkit.</p> <p>It currently runs under Windows and Linux and should also run on other operating systems, such as OSX.</p> How Microsoft handed the NSA access to encrypted messageshttp://laria.me/blog/2013/7/12/13736298842013-07-12T13:51:24Z<p><a href="http://www.guardian.co.uk/world/2013/jul/11/microsoft-nsa-collaboration-user-data">http://www.guardian.co.uk/world/2013/jul/11/microsoft-nsa-collaboration-user-data</a></p> <p>And that's why you shouldn't use a proprietary operating system...</p> PRISM Break: Opt out of PRISM.http://laria.me/blog/2013/7/5/13729754822013-07-05T00:04:42Z<p><a href="http://prism-break.org/">http://prism-break.org/</a></p>