Compare commits

...

7 Commits

137 changed files with 473 additions and 9 deletions

View File

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
image:
---

View File

@ -33,13 +33,18 @@ menu:
title: "Posts" title: "Posts"
url: "/posts/" url: "/posts/"
weight: 10 weight: 10
- identifier: "microposts"
name: "Social"
title: "Social"
url: "/microposts/"
weight: 20
- identifier: "archive" - identifier: "archive"
name: "Archive" name: "Archive"
title: "Archive" title: "Archive"
url: "/archive/" url: "/archive/"
weight: 20 weight: 30
- identifier: "about" - identifier: "about"
name: "About" name: "About"
title: "About" title: "About"
url: "/about/" url: "/about/"
weight: 30 weight: 40

View File

@ -0,0 +1,14 @@
---
title: 20221010-1815
date: 2022-10-10 18:15:42 +00:00
draft: false
tags: [micropost]
image:
---
<p>This afternoon I had a meeting, my mate prettified a horrible string into a tabulated and perfectly aligned json in his shinny VSCode. </p><p>Immediately felt that I needed to get the same using my tools. Literally 4 mins later in my .vimrc:</p><p>:command Format :%!jq .<br />:command Unformat :%!jq -c .</p><p><a href="https://mastodon.bofhers.es/tags/vim" class="mention hashtag" rel="tag">#<span>vim</span></a> <a href="https://mastodon.bofhers.es/tags/neovim" class="mention hashtag" rel="tag">#<span>neovim</span></a> <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>
{{< gallery match="gallery/*" sortOrder="asc"
rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos"
previewType="blur" embedPreview="true" >}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -0,0 +1,14 @@
---
title: 20221020-1011
date: 2022-10-20 10:11:21 +00:00
draft: false
tags: [micropost]
image:
---
<p>Little pleasures of 127.0.0.2 &lt;aka the-new-place&gt; ❤️ <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>
{{< gallery match="gallery/*" sortOrder="asc"
rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos"
previewType="blur" embedPreview="true" >}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

View File

@ -0,0 +1,14 @@
---
title: 20221023-2036
date: 2022-10-23 20:36:18 +00:00
draft: false
tags: [micropost]
image:
---
<p>My first Rubik ever. <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>
{{< gallery match="gallery/*" sortOrder="asc"
rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos"
previewType="blur" embedPreview="true" >}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@ -0,0 +1,14 @@
---
title: 20221024-1906
date: 2022-10-24 19:06:56 +00:00
draft: false
tags: [micropost]
image:
---
<p>That feeling of being alive again! <a href="https://mastodon.bofhers.es/tags/irons" class="mention hashtag" rel="tag">#<span>irons</span></a> <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>
{{< gallery match="gallery/*" sortOrder="asc"
rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos"
previewType="blur" embedPreview="true" >}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 KiB

View File

@ -0,0 +1,14 @@
---
title: 20221029-1708
date: 2022-10-29 17:08:05 +00:00
draft: false
tags: [micropost]
image:
---
<p>On the road again <a href="https://mastodon.bofhers.es/tags/vancaciones" class="mention hashtag" rel="tag">#<span>vancaciones</span></a> <a href="https://mastodon.bofhers.es/tags/van" class="mention hashtag" rel="tag">#<span>van</span></a> <a href="https://mastodon.bofhers.es/tags/trip" class="mention hashtag" rel="tag">#<span>trip</span></a> <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>
{{< gallery match="gallery/*" sortOrder="asc"
rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos"
previewType="blur" embedPreview="true" >}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

View File

@ -0,0 +1,14 @@
---
title: 20221031-1701
date: 2022-10-31 17:01:40 +00:00
draft: false
tags: [micropost]
image:
---
<p>Todays backyard <a href="https://mastodon.bofhers.es/tags/van" class="mention hashtag" rel="tag">#<span>van</span></a> <a href="https://mastodon.bofhers.es/tags/trip" class="mention hashtag" rel="tag">#<span>trip</span></a> <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>
{{< gallery match="gallery/*" sortOrder="asc"
rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos"
previewType="blur" embedPreview="true" >}}

View File

@ -0,0 +1,11 @@
---
title: 20221107-1959
date: 2022-11-07 19:59:08 +00:00
draft: false
tags: [micropost]
image:
---
<p>Little summary from our instance in numbers (20221107):</p><p>🔘 Mastodon version 3.5.3<br />🔘 Active users: 35<br />🔘 Interactions: near 1k<br />🔘 Disk: 26Gb (90% are media_attachments)<br />🔘 DB: pg_dump recently baked is about 200Mb (50Mb gzipped)</p><p>My guess is that no big investment is needed - server - for a tiny number of users, but to be honest dunno what happens if it grows as it is doing in some instances that have experienced problems lately.</p><p><a href="https://mastodon.bofhers.es/tags/mastodon" class="mention hashtag" rel="tag">#<span>mastodon</span></a> <a href="https://mastodon.bofhers.es/tags/admin" class="mention hashtag" rel="tag">#<span>admin</span></a> <a href="https://mastodon.bofhers.es/tags/sys" class="mention hashtag" rel="tag">#<span>sys</span></a> <a href="https://mastodon.bofhers.es/tags/stats" class="mention hashtag" rel="tag">#<span>stats</span></a> <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>

View File

@ -0,0 +1,11 @@
---
title: 20221108-0958
date: 2022-11-08 09:58:06 +00:00
draft: false
tags: [micropost]
image:
---
<p>My mate today is <a href="https://twitch.tv/usirin" target="_blank" rel="nofollow noopener noreferrer"><span class="invisible">https://</span><span class="">twitch.tv/usirin</span><span class="invisible"></span></a></p><p>I don&#39;t understand a word of Turkish but you can&#39;t imagine how it helps to see someone else working -with similar tools- same time.</p><p>Remote work is not all about pros and pleasures, it has cons too, such as being alone most of the time.</p><p><a href="https://mastodon.bofhers.es/tags/remotework" class="mention hashtag" rel="tag">#<span>remotework</span></a> <a href="https://mastodon.bofhers.es/tags/dev" class="mention hashtag" rel="tag">#<span>dev</span></a> <a href="https://mastodon.bofhers.es/tags/loneliness" class="mention hashtag" rel="tag">#<span>loneliness</span></a> <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>

View File

@ -0,0 +1,11 @@
---
title: 20221108-1632
date: 2022-11-08 16:32:10 +00:00
draft: false
tags: [micropost]
image:
---
<p>Some words about our little <a href="https://mastodon.bofhers.es/tags/community" class="mention hashtag" rel="tag">#<span>community</span></a>...</p><p>In the beginning I was curious about the challenge to host a <a href="https://mastodon.bofhers.es/tags/mastodon" class="mention hashtag" rel="tag">#<span>mastodon</span></a> instance, then I was a bit worried because of the data responsibility and everything. Now, after chatting and dealing with little problems here and there, I must say I&#39;m glad I did that.</p><p>And proud, because <a href="https://mastodon.bofhers.es/tags/bofhers" class="mention hashtag" rel="tag">#<span>bofhers</span></a> understand that this is a hobby and afaik they understand what <a href="https://mastodon.bofhers.es/tags/fediverse" class="mention hashtag" rel="tag">#<span>fediverse</span></a> + decentralized means + they&#39;re offering hand when some help is needed.</p><p>❤️ </p><p><a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

View File

@ -0,0 +1,14 @@
---
title: 20221108-1945
date: 2022-11-08 19:45:45 +00:00
draft: false
tags: [micropost]
image:
---
<p>Tokyo Night seems a good choice to move away from Gruvbox. I have no problem with <a href="https://mastodon.bofhers.es/tags/gruvbox" class="mention hashtag" rel="tag">#<span>gruvbox</span></a> but feel like I need a change, I&#39;m tired of the orange-ranges and seems like blue tones fit better for now. Will see.</p><p><a href="https://mastodon.bofhers.es/tags/vim" class="mention hashtag" rel="tag">#<span>vim</span></a> <a href="https://mastodon.bofhers.es/tags/neovim" class="mention hashtag" rel="tag">#<span>neovim</span></a> <a href="https://mastodon.bofhers.es/tags/colorscheme" class="mention hashtag" rel="tag">#<span>colorscheme</span></a> <a href="https://mastodon.bofhers.es/tags/themes" class="mention hashtag" rel="tag">#<span>themes</span></a> <a href="https://mastodon.bofhers.es/tags/tokyonight" class="mention hashtag" rel="tag">#<span>tokyonight</span></a> <a href="https://mastodon.bofhers.es/tags/dev" class="mention hashtag" rel="tag">#<span>dev</span></a> <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>
{{< gallery match="gallery/*" sortOrder="asc"
rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos"
previewType="blur" embedPreview="true" >}}

View File

@ -0,0 +1,11 @@
---
title: 20221108-2326
date: 2022-11-08 23:26:26 +00:00
draft: false
tags: [micropost]
image:
---
<p>Thats it for today. Let me just write down the <a href="https://mastodon.bofhers.es/tags/crates" class="mention hashtag" rel="tag">#<span>crates</span></a> I&#39;m using in order to properly read the <a href="https://mastodon.bofhers.es/tags/rss" class="mention hashtag" rel="tag">#<span>rss</span></a> with this <a href="https://mastodon.bofhers.es/tags/rust" class="mention hashtag" rel="tag">#<span>rust</span></a> 🦀 thing:</p><p>- 🔘 <a href="https://docs.rs/rss/latest/rss/" target="_blank" rel="nofollow noopener noreferrer"><span class="invisible">https://</span><span class="">docs.rs/rss/latest/rss/</span><span class="invisible"></span></a><br />- 🔘 <a href="https://docs.rs/reqwest/latest/reqwest/blocking/" target="_blank" rel="nofollow noopener noreferrer"><span class="invisible">https://</span><span class="ellipsis">docs.rs/reqwest/latest/reqwest</span><span class="invisible">/blocking/</span></a></p><p>As today it was so and so, maybe tomorrow I can move forward in a more success way, I&#39;m exhausted. <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>

View File

@ -0,0 +1,11 @@
---
title: 20221109-1857
date: 2022-11-09 18:57:35 +00:00
draft: false
tags: [micropost]
image:
---
<p>After some tries with <a href="https://mastodon.bofhers.es/tags/golang" class="mention hashtag" rel="tag">#<span>golang</span></a> and <a href="https://mastodon.bofhers.es/tags/rust" class="mention hashtag" rel="tag">#<span>rust</span></a>, I&#39;ve opted to have some fun with <a href="https://mastodon.bofhers.es/tags/python" class="mention hashtag" rel="tag">#<span>python</span></a> too.</p><p>And there it is, the script that picks all the &quot;<a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a>&quot; toots and converts them into the proper markdown thing for my <a href="https://mastodon.bofhers.es/tags/hugo" class="mention hashtag" rel="tag">#<span>hugo</span></a> web, media elements are also included.</p><p>Not sure if it can be helpful out there but...</p><p><a href="https://gist.github.com/oscarmlage/bfe9adabad3c2679cb00935f3922ad96" target="_blank" rel="nofollow noopener noreferrer"><span class="invisible">https://</span><span class="ellipsis">gist.github.com/oscarmlage/bfe</span><span class="invisible">9adabad3c2679cb00935f3922ad96</span></a></p><p>note: it&#39;s a pity that <a href="https://mastodon.bofhers.es/tags/gitea" class="mention hashtag" rel="tag">#<span>gitea</span></a> doesn&#39;t have a snippets section.</p>

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

View File

@ -0,0 +1,17 @@
---
title: 20221110-1944
date: 2022-11-10 19:44:52 +00:00
draft: false
tags: [micropost]
image:
---
<p>The other day a friend of mine asked if I&#39;d noted some problem or high load in our little <a href="https://mastodon.bofhers.es/tags/mastodon" class="mention hashtag" rel="tag">#<span>mastodon</span></a> instance. I said no, but then I took a look at <a href="https://mastodon.bofhers.es/tags/sidekiq" class="mention hashtag" rel="tag">#<span>sidekiq</span></a>, and it seemed that -definitely- something was occurring in the background.</p><p>This instance has been installed on 2022-05-26 in a little server, on 2022-09-09 it was migrated to v.3.5.3 and on 2022-09-24 I&#39;ve bought a new -bigger- server.</p><p>- Media storage: 30Gb.<br />- Postgres storage: 400Mb.<br />- Redis storage: 20Mb.</p><p>That&#39;s the toy. <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>
{{< gallery match="gallery/*" sortOrder="asc"
rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos"
previewType="blur" embedPreview="true" >}}
{{< gallery match="gallery/*" sortOrder="asc"
rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos"
previewType="blur" embedPreview="true" >}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 KiB

View File

@ -0,0 +1,14 @@
---
title: 20221112-2041
date: 2022-11-12 20:41:55 +00:00
draft: false
tags: [micropost]
image:
---
<p>November 12, 2022. Walking wearing t-shirt at night. Unbelievable.</p><p><a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>
{{< gallery match="gallery/*" sortOrder="asc"
rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos"
previewType="blur" embedPreview="true" >}}

View File

@ -0,0 +1,11 @@
---
title: 20221112-2146
date: 2022-11-12 21:46:50 +00:00
draft: false
tags: [micropost]
image:
---
<p>The <a href="https://mastodon.bofhers.es/tags/rust" class="mention hashtag" rel="tag">#<span>rust</span></a> solution with buggy / outdated <a href="https://mastodon.bofhers.es/tags/crates" class="mention hashtag" rel="tag">#<span>crates</span></a>: </p><p>Package versions cant be deleted, they can only be yanked. A yanked package can still be used if it is in your projects lock file so existing projects will not break.</p><p>But new projects can not use a buggy version, <a href="https://mastodon.bofhers.es/tags/cargo" class="mention hashtag" rel="tag">#<span>cargo</span></a> will display an error and advise an upgrade. Backwards compatibility without compromising new features.</p><p>🦀 <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p><p><a href="https://youtu.be/oY0XwMOSzq4" target="_blank" rel="nofollow noopener noreferrer"><span class="invisible">https://</span><span class="">youtu.be/oY0XwMOSzq4</span><span class="invisible"></span></a></p>

View File

@ -0,0 +1,11 @@
---
title: 20221115-1150
date: 2022-11-15 11:50:10 +00:00
draft: false
tags: [micropost]
image:
---
<p>In software engineering, <a href="https://mastodon.bofhers.es/tags/rubberduck" class="mention hashtag" rel="tag">#<span>rubberduck</span></a> debugging (or <a href="https://mastodon.bofhers.es/tags/rubberducking" class="mention hashtag" rel="tag">#<span>rubberducking</span></a>) is a method of debugging code by articulating a problem in spoken or written natural language.</p><p>The name is a reference to a story in the book «The Pragmatic Programmer» in which a programmer would carry around a rubber duck and debug their code by forcing themselves to explain it, line-by-line, to the duck.</p><p>🔈🦆 <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>

View File

@ -0,0 +1,11 @@
---
title: 20221116-1046
date: 2022-11-16 10:46:31 +00:00
draft: false
tags: [micropost]
image:
---
<p>I think I&#39;ve said it before, but I&#39;m totally **in love** with <a href="https://mastodon.bofhers.es/tags/gitlab" class="mention hashtag" rel="tag">#<span>gitlab</span></a> <a href="https://mastodon.bofhers.es/tags/cicd" class="mention hashtag" rel="tag">#<span>cicd</span></a> procedure, even being a yml-based thing</p><p>❤️ <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>

View File

@ -0,0 +1,11 @@
---
title: 20221116-1124
date: 2022-11-16 11:24:38 +00:00
draft: false
tags: [micropost]
image:
---
<p>I&#39;ve read you can use <a href="https://mastodon.bofhers.es/tags/cicd" class="mention hashtag" rel="tag">#<span>cicd</span></a> with <a href="https://mastodon.bofhers.es/tags/gitea" class="mention hashtag" rel="tag">#<span>gitea</span></a> too via <a href="https://mastodon.bofhers.es/tags/drone" class="mention hashtag" rel="tag">#<span>drone</span></a> (and also <a href="https://mastodon.bofhers.es/tags/jenkins" class="mention hashtag" rel="tag">#<span>jenkins</span></a> works). It may probably be worth giving it a try.</p><p><a href="https://dev.to/ruanbekker/self-hosted-cicd-with-gitea-and-drone-ci-200l" target="_blank" rel="nofollow noopener noreferrer"><span class="invisible">https://</span><span class="ellipsis">dev.to/ruanbekker/self-hosted-</span><span class="invisible">cicd-with-gitea-and-drone-ci-200l</span></a></p><p><a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 KiB

View File

@ -0,0 +1,14 @@
---
title: 20221117-1034
date: 2022-11-17 10:34:33 +00:00
draft: false
tags: [micropost]
image:
---
<p>Boost morning! <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>
{{< gallery match="gallery/*" sortOrder="asc"
rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos"
previewType="blur" embedPreview="true" >}}

View File

@ -0,0 +1,11 @@
---
title: 20221117-2106
date: 2022-11-17 21:06:44 +00:00
draft: false
tags: [micropost]
image:
---
<p>I had a little whim, wanted to import all the toots from <a href="https://mastodon.bofhers.es/tags/mastodon" class="mention hashtag" rel="tag">#<span>mastodon</span></a> tagged as <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a> in my web (a static site generated by <a href="https://mastodon.bofhers.es/tags/hugo" class="mention hashtag" rel="tag">#<span>hugo</span></a> <a href="https://mastodon.bofhers.es/tags/go" class="mention hashtag" rel="tag">#<span>go</span></a> <a href="https://mastodon.bofhers.es/tags/golang" class="mention hashtag" rel="tag">#<span>golang</span></a>).</p><p>It was a perfect excuse to practice a bit of <a href="https://mastodon.bofhers.es/tags/rust" class="mention hashtag" rel="tag">#<span>rust</span></a> and enjoy all the little lessons I&#39;ve learned.</p><p>I doubt it will be helpful to anyone but just in case I&#39;ve published the repo:</p><p><a href="https://git.oscarmlage.com/oscarmlage/masto-rss" target="_blank" rel="nofollow noopener noreferrer"><span class="invisible">https://</span><span class="ellipsis">git.oscarmlage.com/oscarmlage/</span><span class="invisible">masto-rss</span></a></p><p>I know there is quite room for improvement but feel free to give some feedback ;)</p><p>🦀</p>

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 KiB

View File

@ -0,0 +1,14 @@
---
title: 20221118-0954
date: 2022-11-18 09:54:54 +00:00
draft: false
tags: [micropost]
image:
---
<p>Morning vibes, Friday vibes... 127.0.0.2 gives me so nice pictures :) <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>
{{< gallery match="gallery/*" sortOrder="asc"
rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos"
previewType="blur" embedPreview="true" >}}

View File

@ -0,0 +1,11 @@
---
title: 20221118-2224
date: 2022-11-18 22:24:02 +00:00
draft: false
tags: [micropost]
image:
---
<p>From time to time I get an error like this trying to execute a <a href="https://mastodon.bofhers.es/tags/make" class="mention hashtag" rel="tag">#<span>make</span></a> custom command:</p><p>$ make backup<br />make: &#39;backup&#39; is up to date</p><p>I thought that something was wrong with that backup command but it seems the error is because there is a `backup/` directory sibling to the `Makefile`.</p><p>If you change the directory name or the command name, the error is gone. Weird, indeed.</p><p><a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a> <a href="https://mastodon.bofhers.es/tags/makefile" class="mention hashtag" rel="tag">#<span>makefile</span></a></p>

View File

@ -0,0 +1,11 @@
---
title: 20221124-1619
date: 2022-11-24 16:19:16 +00:00
draft: false
tags: [micropost]
image:
---
<p>Maybe your <a href="https://mastodon.bofhers.es/tags/mastodon" class="mention hashtag" rel="tag">#<span>mastodon</span></a> instance is playing tricks while uploading GIF files (dunno why it&#39;s not happening with other image formats):</p><p>413 Entity too large.</p><p>In our case this is a dockerized instance with `jwilder/nginx-proxy` in the middle, the fix is easy:</p><p>1. Use a nginx config volume: `./data/conf:/etc/nginx/conf.d`<br />2. create a `client_max_body_size.conf`file in the volume with &quot;client_max_body_size 100m;&quot; inside.<br />3. Restart the instance</p><p><a href="https://mastodon.bofhers.es/tags/docker" class="mention hashtag" rel="tag">#<span>docker</span></a> <a href="https://mastodon.bofhers.es/tags/nginx" class="mention hashtag" rel="tag">#<span>nginx</span></a> <a href="https://mastodon.bofhers.es/tags/jwilder" class="mention hashtag" rel="tag">#<span>jwilder</span></a> <a href="https://mastodon.bofhers.es/tags/nginxproxy" class="mention hashtag" rel="tag">#<span>nginxproxy</span></a> <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a> <a href="https://mastodon.bofhers.es/tags/repost" class="mention hashtag" rel="tag">#<span>repost</span></a></p>

View File

@ -0,0 +1,11 @@
---
title: 20221126-1153
date: 2022-11-26 11:53:00 +00:00
draft: false
tags: [micropost]
image:
---
<p>Day in Developer&#39;s Life: Mugcake in 2 mins</p><p><a href="https://youtu.be/mhjnttmri0E" target="_blank" rel="nofollow noopener noreferrer"><span class="invisible">https://</span><span class="">youtu.be/mhjnttmri0E</span><span class="invisible"></span></a></p><p>Follow me for more recipes 🤣 <br /><a href="https://mastodon.bofhers.es/tags/youtube" class="mention hashtag" rel="tag">#<span>youtube</span></a> <a href="https://mastodon.bofhers.es/tags/video" class="mention hashtag" rel="tag">#<span>video</span></a> <a href="https://mastodon.bofhers.es/tags/short" class="mention hashtag" rel="tag">#<span>short</span></a> <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>

View File

@ -0,0 +1,11 @@
---
title: 20221202-0924
date: 2022-12-02 09:24:59 +00:00
draft: false
tags: [micropost]
image:
---
<p>One of the first things I do in my working morning routine is to open twitch and start watching someone else working (to feel some company). Today my &quot;cowork mate&quot; is <a href="https://twitch.tv/ppy" target="_blank" rel="nofollow noopener noreferrer"><span class="invisible">https://</span><span class="">twitch.tv/ppy</span><span class="invisible"></span></a>.</p><p>Man, I love to see the way he works!</p><p><a href="https://mastodon.bofhers.es/tags/cowork" class="mention hashtag" rel="tag">#<span>cowork</span></a> <a href="https://mastodon.bofhers.es/tags/remotework" class="mention hashtag" rel="tag">#<span>remotework</span></a> <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>

Binary file not shown.

After

Width:  |  Height:  |  Size: 954 KiB

View File

@ -0,0 +1,14 @@
---
title: 20221202-1236
date: 2022-12-02 12:36:28 +00:00
draft: false
tags: [micropost]
image:
---
<p>There is this kind of tradition with a group of friends that you gift each other anonymously a low-budget thing. I think it&#39;s called Secret Santa (we call it &quot;amigo invisible&quot; in .es).</p><p>Well, I received mine this morning, and the game is over, my Secret Santa won the game!</p><p><a href="https://mastodon.bofhers.es/tags/bofhers" class="mention hashtag" rel="tag">#<span>bofhers</span></a> <a href="https://mastodon.bofhers.es/tags/lart" class="mention hashtag" rel="tag">#<span>lart</span></a> <a href="https://mastodon.bofhers.es/tags/gift" class="mention hashtag" rel="tag">#<span>gift</span></a> <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>
{{< gallery match="gallery/*" sortOrder="asc"
rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos"
previewType="blur" embedPreview="true" >}}

View File

@ -0,0 +1,11 @@
---
title: 20221229-1935
date: 2022-12-29 19:35:32 +00:00
draft: false
tags: [micropost]
image:
---
<p>Wrote a blog post - and had lot of fun - about benchmarking an API endpoint with different stacks:</p><p>🔘 golang+gorm+custom-router<br />🔘 golang+gorm+echo<br />🔘 golang+gorm+gin<br />🔘 php+laravel<br />🔘 php+vanilla-mysqli_*</p><p><a href="https://oscarmlage.com/posts/benchmarking-with-siege/" target="_blank" rel="nofollow noopener noreferrer"><span class="invisible">https://</span><span class="ellipsis">oscarmlage.com/posts/benchmark</span><span class="invisible">ing-with-siege/</span></a></p><p><a href="https://mastodon.bofhers.es/tags/go" class="mention hashtag" rel="tag">#<span>go</span></a> <a href="https://mastodon.bofhers.es/tags/golang" class="mention hashtag" rel="tag">#<span>golang</span></a> <a href="https://mastodon.bofhers.es/tags/gorm" class="mention hashtag" rel="tag">#<span>gorm</span></a> <a href="https://mastodon.bofhers.es/tags/gingonic" class="mention hashtag" rel="tag">#<span>gingonic</span></a> <a href="https://mastodon.bofhers.es/tags/gin" class="mention hashtag" rel="tag">#<span>gin</span></a> <a href="https://mastodon.bofhers.es/tags/echoserver" class="mention hashtag" rel="tag">#<span>echoserver</span></a> <a href="https://mastodon.bofhers.es/tags/echo" class="mention hashtag" rel="tag">#<span>echo</span></a> <a href="https://mastodon.bofhers.es/tags/php" class="mention hashtag" rel="tag">#<span>php</span></a> <a href="https://mastodon.bofhers.es/tags/laravel" class="mention hashtag" rel="tag">#<span>laravel</span></a> <a href="https://mastodon.bofhers.es/tags/mysql" class="mention hashtag" rel="tag">#<span>mysql</span></a> <a href="https://mastodon.bofhers.es/tags/blog" class="mention hashtag" rel="tag">#<span>blog</span></a> <a href="https://mastodon.bofhers.es/tags/post" class="mention hashtag" rel="tag">#<span>post</span></a> <a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>

View File

@ -0,0 +1,11 @@
---
title: 20230112-1101
date: 2023-01-12 11:01:35 +00:00
draft: false
tags: [micropost]
image:
---
<p>I&#39;m nearly in love with <a href="https://mastodon.bofhers.es/tags/go" class="mention hashtag" rel="tag">#<span>go</span></a> + <a href="https://mastodon.bofhers.es/tags/echo" class="mention hashtag" rel="tag">#<span>echo</span></a> + <a href="https://mastodon.bofhers.es/tags/gorm" class="mention hashtag" rel="tag">#<span>gorm</span></a> + <a href="https://mastodon.bofhers.es/tags/testify" class="mention hashtag" rel="tag">#<span>testify</span></a> + <a href="https://mastodon.bofhers.es/tags/fresh" class="mention hashtag" rel="tag">#<span>fresh</span></a>. Trying now to upgrade fresh to <a href="https://mastodon.bofhers.es/tags/air" class="mention hashtag" rel="tag">#<span>air</span></a> and add <a href="https://mastodon.bofhers.es/tags/delve" class="mention hashtag" rel="tag">#<span>delve</span></a> to the equation. As a side note, the stack seems more complicated to set if you use containers.</p><p><a href="https://mastodon.bofhers.es/tags/micropost" class="mention hashtag" rel="tag">#<span>micropost</span></a></p>

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

View File

@ -0,0 +1,41 @@
---
title: "Benchmarking with Siege"
date: 2022-12-29T18:28:43Z
draft: false
tags: []
image:
---
If you ask me, I enjoy starting a new project, that fresh feeling during the first steps is usually becoming into a not-so-fresh thing with time. Life is so :).
In this concrete case, we're talking about an API, I needed to research and make some benchmarking work to take the best decision possible for the stack. It needs to be as fast as we can, so we can take advantage of some tools like `ab` or `siege` to measure some kinds of requests and scenarios.
With those tools in one hand and some languages in the other (`go-lang` and `php` mainly, in fact, the benchmark would be go-lang using different libraries but I was curious about a compiled language vs the fastest interpreted one I know so I added some php code), let's start having fun!.
All the tests were done in the same machine (macbook pro intel i9-9980hk) + docker containers + a dockerized mysql. The API endpoint makes a couple of SQL queries to return about 50 rows of data from a table, the response is being `jsonized`. There is no auth and no more logic steps, just an endpoint that makes a sql query and returns the data as json.
- Go-Lang + [Gorm](https://gorm.io) + Custom Router: the custom router uses the golang stdlib `"net/http"` to serve GET petitions.
- Go-Lang + [Gorm](https://gorm.io) + [Echo Server](https://echo.labstack.com).
- Go-Lang + [Gorm](https://gorm.io) + [Gin](https://github.com/gin-gonic/gin).
- Laravel + DB raw: as Laravel was the slowest, decided to use raw sql instead Eloquent to balance a bit the results :P, queries were done with `DB::Select()`.
- PHP "vanilla": some memories came to my mind using `mysqli_connect()`, `mysqli_query()`, and `mysqli_fetch_array()`.
I've run `siege` 3 times in different scenarios and calculated the average:
- 100 requests, only 1 concurrent
- 100 requests, 2 concurrents (50x2)
- 100 requests, 5 concurrents (20x5)
- 100 requests, 10 concurrents (10x10)
- 1000 requests, 10 concurrents (100x10)
- 10000 requests, 100 concurrents (100x100)
- Max requests in 30 seconds, 10 concurrents
- Max requests in 30 seconds, 100 concurrents
- Max requests in 30 seconds, 150 concurrents: I got some errors here, so it doesn't matter for the graphics
And the result is quite interesting:
{{< gallery match="gallery/*" sortOrder="asc" rowHeight="150" margins="5" thumbnailResizeOptions="752x436 q90 Lanczos" previewType="blur" embedPreview="true" >}}
In this benchmark **Go+Gorm+Echo** is the clear winner, closely followed by **Go+Gorm+Gin**. About PHP, dunno if I did something wrong but there is a lot of difference between vanilla PHP (the results are kinda acceptable) and Laravel, still dunno why.
I had so much fun with this "exercise".

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

View File

@ -0,0 +1,19 @@
---
title: "Snowy Fun with Family"
date: 2023-01-23T19:57:12Z
draft: false
tags: []
image:
---
This past weekend was one for the books! My wife and I took our children on their first trip to the snow and it was an absolute blast. We live about an hour away from the nearest "snow spot", so it was a short but sweet trip.
Once we arrived, we quickly bundled up and headed outside to play in the snow. The kids were so excited to see all of the snow and they couldn't wait to try out the sleds we had brought with us. We spent hours going down the hill, laughing and having a great time. In the afternoon, we found a familiar restaurant and decided to go for a delicious lunch at a nearby restaurant. It was great to catch up with them and share in the fun of the day.
As the day came to a close and we headed back home, I couldn't help but reflect on how much fun we had as a family. This trip reminded me of the importance of spending quality time together and cherishing the moments we have with our loved ones.
So, I encourage you to make an effort to plan fun and memorable experiences with your family and friends. It doesn't have to be anything extravagant, it can be as simple as a day trip to the snow or a picnic in the park. The important thing is that you're making time for each other and creating lasting memories.
Life is short, and it's important to make the most of it by enjoying the company of the people we love. So, don't wait any longer, plan something fun with your family and friends, you won't regret it! And as a fable, I can tell you, the memories and laughter you'll create will be worth more than any material thing, it's priceless.
{{< gallery match="gallery/*" sortOrder="asc" rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos" previewType="blur" embedPreview="true" >}}

View File

@ -6,13 +6,13 @@ tags: [personal]
image: image:
--- ---
My wife and me were used to camping since long time ago, just put the tent and a couple of sleeping bags in the trunk of the car and drive to somewhere with a beach. Did that since the very beginning, I have lots of good memories and stories about it. My wife and I have been used to camping since a long time ago, just put the tent and a couple of sleeping bags in the trunk of the car and drive to somewhere with a beach. We did that since the very beginning, I have lots of good memories and stories about it.
Obviously life changes when you have children, tried - and did - it a couple of times but in the end it's not just "pick whatever and go" because kids needs more preparation, and not only preparation but stuff (clothes, games, medicines, maybe some food either...) so in the end it means much more work and worries. In that case the easy way -if you can afford it- makes more sense: do a reservation in a hotel and keep the "adventure level" limited to a "what kind of mojito should I order today in the swimming pool". Obviously, life changes when you have children, tried - and did - it a couple of times but in the end it's not just "pick whatever and go" because kids need more preparation, and not only preparation but stuff (clothes, games, medicines, maybe some food either...) so in the end it means much more work and worries. In that case the easy way -if you can afford it- makes more sense: do a reservation in a hotel and keep the "adventure level" limited to a "what kind of mojito should I order today in the swimming pool".
That is totally fine don't get me wrong, but well, we usually need _something else_ in our trips, little adventures, discover new places, not to have closed schedules for everything, etc... So, after a lot of thoughts and doubts, two years ago (_Oct'20_) we decided to buy a van and do a full camperization according to our needs. We were sure that project would help us to find the roots of those first camping trips. That is totally fine don't get me wrong, but well, we usually need _something else_ in our trips, little adventures, discovering new places, not to have closed schedules for everything, etc... So, after a lot of thought and doubts, two years ago (_Oct'20_) we decided to buy a van and do a full camperization according to our needs. We were sure that the project would help us to find the roots of those first camping trips.
I'm really proud and grateful of all the people that offered help and helped us to achieve this, taking in account I was that kind of guy that asked for help even for changing a bulb, you can imagine the amount of "try and error" stuff we had to deal with. Of course Marta and the kids were there the whole time helping and supporting in every single problem we had to arrange, that makes the thing way more easy. I'm really proud and grateful to all the people that offered help and helped us to achieve this, taking in account I was that kind of guy that asked for help even for changing a bulb, you can imagine the amount of "try and error" stuff we had to deal with. Of course, Marta and the kids were there the whole time helping and supporting in every single problem we had to arrange, which makes the thing way easier.
And two years later, after lots of learnings, investments, efforts, worries and much more stuff I can't tell with words... we did our first (and second) trip!. For the moment, even being in autumn and with so and so weather, it's being a total success, children are always pleased to be on the road with that adventure feeling, "where are we going this time?", "where are we going to sleep?", "still a long way?". Of course it's not ideal all the time (#vanlife has "things") we still have to deal with the basic services (clean and dirty water, electricity, park, etc...) but we already knew this stuff from other experiences when rented motorhomes so, in general, there is no big surprises for now. And two years later, after lots of learnings, investments, efforts, worries and much more stuff I can't tell with words... we did our first (and second) trip!. For the moment, even being in autumn and with so and so weather, it's being a total success, children are always pleased to be on the road with that adventure feeling, "where are we going this time?", "where are we going to sleep?", "still a long way?". Of course it's not ideal all the time (#vanlife has "things") we still have to deal with the basic services (clean and dirty water, electricity, park, etc...) but we already knew this stuff from other experiences when rented motorhomes so, in general, there is no big surprises for now.

View File

@ -0,0 +1 @@
{"Exif":{"Lat":0,"Long":0,"Date":"0001-01-01T00:00:00Z","Tags":{"Orientation|int":"1","PixelXDimension|int":"1280","PixelYDimension|int":"1600"}}}

Some files were not shown because too many files have changed in this diff Show More