Migrar de novo para gitea 🙏

This commit is contained in:
2025-12-25 04:35:39 -03:00
parent 9d45b0adde
commit 6eab2ae945
237 changed files with 18444 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
---
title: "Eclipse de Lua março 2025"
date: 2025-03-14T04:07:18-03:00
draft: false
tags: ['astronomy', 'photos']
---
No dia 14 de março de 2025 tive o privilégio de assistir ao espetáculo da Lua se escondendo na sombra da Terra.
Este foi o setup: uma ultramoderna câmera Canon PowerShot A2600 com firmware CHDK (para virar semi profissional)
![Descrição](/images/20250314-LunarEclipse/IMG_20250314_025852_hdr.jpg)
![Descrição](/images/20250314-LunarEclipse/IMG_20250314_025902_NV.jpg)
Seguem algumas fotos do eclipse (perdoem a má qualidade, a câmera tem 12 anos de existência e não é profissional)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1348.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1349.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1350.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1351.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1352.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1353.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1354.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1355.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1356.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1357.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1358.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1359.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1360.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1361.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1362.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1363.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1364.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1365.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1366.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1367.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1368.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1369.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1370.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1371.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1372.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1373.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1374.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1375.JPG)
![Lua sendo eclipsada](/images/20250314-LunarEclipse/IMG_1376.JPG)

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,14 @@
---
title: "Find Text in Files on Linux"
date: 2022-12-24T14:40:55-03:00
draft: false
tags: ['linux']
---
I ~~shamelessly copied from~~ found [on stackoverflow.com](https://stackoverflow.com/a/16957078) how to use `grep` to find a specific text (or [regular expression](https://en.wikipedia.org/wiki/Regular_expression)) inside a directory:
```bash
grep -rnw '/path/to/somewhere/' -e 'pattern'
```
And I think that's very useful for coders when trying to find references from a class.

View File

@@ -0,0 +1,57 @@
---
title: "Linux on a Samsung Tab 2 (7 inches)"
date: 2022-12-24T10:02:38-03:00
draft: false
tags: ['linux', 'postmarketOS', 'ancient hardware']
---
When my mother-in-law gave me an old Samsung Tablet, specifically a Samsung Galaxy Tab 2 (7 inches), I was wondering what could I do with that, and the first thing I thought was "What if you install linux on it?"
There is a linux distribution for old tablets and telephones called [postmarketOS](https://postmarketos.org/), and I decided to give it a try.
## Was my device supported?
There is a list of [supported devices](https://wiki.postmarketos.org/wiki/Devices) on postmarketOS Wiki, and fortunately I found that my tablet has support (only for the ```Edge``` branch, in community support). That means that I can run linux on my tablet, but there is some features that are not working:
* 3D Acceleration
* GPS
* Cameras
* Sound
So, I decided to use my tablet for making a simple linux server, instead of a more complete desktop environment.
## How to install postmarketOS on my tablet
1. ### Installing TWRP for getting into Recovery Mode
I rebooted my tablet in [Odin mode](https://www.thecustomdroid.com/samsung-galaxy-download-odin-mode-guide/) for downloading [TWRP](https://twrp.me/samsung/samsunggalaxytab270wifi.html) and installing it with [Odin](https://odindownload.com/). Then I restarted my tablet on [recovery mode](https://www.hardreset.info/devices/samsung/samsung-p3110-galaxy-tab-2-70/recovery-mode/) and confirmed that TWRP was running.
1. ### Getting postmarketOS
I opened a linux console and installed ```pmbootstrap```, a tool for getting and installing postmarketOS:
```bash
$ pip3 install --user pmbootstrap
```
And then I initialize ```pmbootstrap```
```bash
$ pmbootstrap init
```
That command make some questions about the channel (edge vs stable), the device manufacturer (samsung) and the model codename (espresso-wifi).
Finally, I typed the magic commands for getting a postmarketOS installer that runs from recovery mode:
```bash
$ pmbootstrap install --android-recovery-zip --recovery-install-partition=data
```
and then:
```bash
$ pmbootstrap export
```
Then I copied the generated zip file to an SD card, put the card in my tablet, and rebooted into recovery mode.
1. ### Installing from recovery mode
This is the easiest part, after booting into recovery mode we need to select the option "Install from zip file", select the External SD Card storage, and wait until finishing. This may take a couple of minutes. After that, you can reboot and enjoy Linux on a tablet.

View File

@@ -0,0 +1,28 @@
---
title: "Markdown Is Life"
date: 2022-12-23T22:32:35-03:00
draft: false
tags: ['markdown', 'hugo']
---
Some years ago, I made a website for me, to show my abilities... and I was frustrated!
I was wasting too much time trying to styling my website, and my main focus at the time was backend developing, so my website was an ugly mix of bootstrap and infantile HTML. That site was created in a home server that was exposed to the internet using [ngrok](https://ngrok.com/).
Some days ago I decided to make a more professional website for me, and I stumbled with a tool called [Hugo](https://gohugo.io/). I was mesmerized with the easiness to create a website using [Markdown](https://commonmark.org/), and I decided to give a try.
The syntax of Markdown is easy enough to write focusing more on the content and less in the style of your site. Creating a page in hugo is as easy as writing in Markdown:
```markdown
---
title: "Markdown Is Life"
date: 2022-12-23T22:32:35-03:00
draft: false
---
Some years ago, I made a website for me, to show my abilities... and I was frustrated!
I was wasting too much time trying to styling my website, and my main focus at the time was backend developing, so my website was an ugly mix of bootstrap and infantile HTML. That site was created in a home server that was exposed to the internet using [ngrok](https://ngrok.com/).
```
I was instantly hooked on Markdown. I will learn more about ```Hugo``` and try to improve the presentation of this website. For now, the simple template I'm using is enough for me.

140
content/posts/marp.md Normal file
View File

@@ -0,0 +1,140 @@
---
title: "Making slides in Marp (and saying 'Goodbye' to PowerPoint)"
date: 2022-12-24T11:43:50-03:00
draft: false
tags: ['markdown', 'marp']
---
Writing slides in PowerPoint is so 20th century!!! So I watched this video:
{{< youtube EzQ-p41wNEE >}}
And I replicated the slide:
{{< highlight md >}}
---
marp: true
theme: uncover
class: invert
math: mathjax
style: |
.columns {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
---
# <!--fit-->An intro to Marp :rocket:
<span style="color:grey;">By:</span> Daniel Bedoya Alzate
---
## Slide Header
* Use Markdown to write slides!
* Tons of cool features!
---
## Code!
```csharp
/** A Super helpful function! */
void Add (int a, int b)
{
return a + b;
}
```
---
## Math!
A single line expression...
$\mathcal{O}(n\log{n})$
OR, a multi-line expression.
$$
\begin{align}
x &= 1 + \frac{1}{2} \\
&= 1.5
\end{align}
$$
---
## Images
![height:8cm](Linkedin.png)
---
## Images
Marp has a variety of image modifiers
```markdown
![height:8cm bg.hue-rotate:90deg saturate](Linkedin.png)
```
![height:8cm bg.hue-rotate:90deg saturate](Linkedin.png)
---
![height:8cm bg blur](Linkedin.png)
![height:8cm bg greyscale](Linkedin.png)
![height:8cm bg sepia](Linkedin.png)
You can stack backgrounds horizontally
---
![height:8cm bg vertical blur](Linkedin.png)
![height:8cm bg greyscale](Linkedin.png)
![height:8cm bg sepia](Linkedin.png)
... or vertically!
---
## Two columns!
![bg left height:8cm](Linkedin.png)
* a
* b
---
<!--_color: red-->
<!--_backgroundColor: black-->
# <!--fit-->Huge
---
## Two text columns!
<div class="columns">
<div>
* a
* b
* c
</div>
<div>
* d
* e
* f
</div>
</div>
{{< / highlight >}}
The result are [here](/slides/marp/)

View File

@@ -0,0 +1,28 @@
---
title: "More on Marp"
date: 2024-05-05T07:54:33-03:00
draft: false
tags: ['markdown', 'marp']
---
## Introduction
I wrote a post about Marp that doesn't include info on how to create the html output from the original markdown file.
The following guide describes how to create a html file from marp.
## Steps
1. Install Marp.
Follow the guide [here](https://github.com/marp-team/marp-cli/).
1. Create your markdown file.
Suppose the file is named ```slides.md```.
![Creating a markdown file](/images/marp-emacs.png)
1. Convert the markdown file to html
We can use ```marp slides.md -o slides.html```.
![Converting a markdown file into html](/images/marp-convert.png)
## Result
The markdown file is converted into a beautiful html slide.
![HTML Result](/images/marp-result.png)

View File

@@ -0,0 +1,28 @@
---
title: "My Best Friend"
date: 2022-12-24T03:21:20-03:00
draft: false
tags: ['drawing', 'friendship']
---
This is my best friend, and with that I will write the history of this special relationship:
![My best friend, Sebastián Suaza Palacio](/images/ssp01.png)
All started when I was in eight grade, I was a lonely, strange student who was intelligent but socially inept. Immediately, I made a friendship with him that lasts onto today.
We used to program together in QBasic in the computers of our school, and we had quite a bunch of similarities, we both were quite shy and reclusive.
We tried to draw some person evolving from child to elder:
* Sebastian version:
![Sebastián Version](/images/Escanear0006.jpg)
* My version:
![My version](/images/Escanear0005.jpg)
We played the guitar and played endlessly _Age of Empires_ in our free time.
When going to university, sadly, he took the course of History, and I was very sad because he had all the potential to be a Software Developer.
But now he's working as an editor for various historian articles, and he is very happy at his job. I wonder what would happen if he decided to study programming instead of history.

View File

@@ -0,0 +1,20 @@
---
title: "Olá a Todos"
date: 2022-12-20T11:53:32-03:00
draft: false
tags: ['hello world']
---
## Introdução
Eu sou Daniel Bedoya Alzate, desenvolvedor de software Colombiano e moro atualmente no Brasil, trabalhando com .NET.
## Especialidades
* Automação de processos.
* Migração de sistemas legados.
* Windows Forms/WPF, ASP.NET/ASP.NET Core.
* Entity Framework/Entity Framework Core, Dapper.
## Hobbies
* Programação
* Astronomia
* Desenho e caricatura

View File

@@ -0,0 +1,16 @@
---
title: "Open your Windows Files with WSL using Windows Explorer"
date: 2023-11-05T11:00:00-03:00
draft: false
tags: ['wsl', 'linux', 'explorer', 'net-6.0']
---
Hi! I just created a project from opening your Windows Files, from Windows Explorer, with a context menu action. The project is hosted at [Github](https://github.com/developerbedoya/OpenWithWSL). Basically, you first need to install WSL and your preferred distro, compile the .NET 6.0 project from Windows and execute it the first time using the `--register` flag:
```cmd
OpenWithWSL.exe --register
```
And you can now left-click in any file and open it with WSL:
![Open with WSL Context Menu](/images/open-with-wsl-context-menu.png)

View File

@@ -0,0 +1,39 @@
---
title: "Some Drawings"
date: 2022-12-23T22:10:33-03:00
draft: false
tags: ['drawing']
---
I started to draw some ten or twelve years ago...
Actually, I started drawing when I was a teenager. There is a drawing I made from one of my first crushes:
![Drawing of one of my first crushes](/images/Escanear0019.jpg)
Wneh I started college for the first time (when I was living in Colombia yet) I made some drawings and doodlings in my free time:
![Some doodlings from college](/images/Escanear0023.jpg)
Sometimes, I tried to draw imaginary women, reflecting some lack of relationships at the time:
![Drawing an idealistic woman](/images/Escanear0022.jpg)
I have to admit that I wasn't drawing very well, but it was entertaining for me. Some time after, I decided to draw with more detail:
![Drawing of a friend from college](/images/Escanear0053.jpg)
That cycle of drawing ended with the portrait of my grandfather:
![Drawing of my grandfather](/images/Escanear0061.jpg)
Then I forgot that hobby for some years...
and I'm making a comeback!
![A bird I googled and then draw](/images/bird01.png)
And I'm currently trying some cartooning:
![My wife](/images/Naty03.png)
Some time ago I was feeling bored, without hobbies, but now I'm making a comeback and feeling more energic, making more hobbies that I will show later on this site.

View File

@@ -0,0 +1,44 @@
---
title: "Installing Windows 98 using Qemu in postmarketOS"
date: 2022-12-25T19:46:13-03:00
draft: false
tags: ['linux', 'postmarketOS', 'windows', 'emulation']
---
So, in the [previous article](/posts/linux-on-a-samsung-tab-2-7-inches) I installed postmarketOS on my Samsung Galaxy Tab 2 (7 inches), and I wanted to create a website on it. But I was encouraged to create my personal website on Azure, so in the end I didn't install a web server on the tablet.
I was wondering what will be the performance of Qemu on my tablet, emulating a x86 processor on a ARM device, and I installed qemu in the tablet, in the first place:
```bash
sudo apk add qemu qemu-img qemu-system-i386
```
Then I tried to run qemu directly from the console. Qemu has a built-in VNC server, so I was hoping to connect from my PC using TightVNC, but it was a complete failure, because I didn't knew that postmarketOS has a firewall that I had to deal with. So, after hours of googling, I found that I could install a package that enables VNC access from the firewall without having to mess with configuration files:
```bash
sudo apk add -i postmarketos-config-nftables-vncserver
```
Now I can run qemu, but I first [downloaded Windows 98 SE](https://winworldpc.com/product/windows-98/98-second-edition) from WinWorldPC and unzipped the file containing the ISO file of the installation disk.
After that, I created a small (1 GB) hard disk image, because my tablet only has about 2 GB free on disk:
```bash
qemu-img create -f qcow2 w98.qcow2 1G
```
Now I can run the Windows Setup from qemu. I am emulating a machine with 64 MB of RAM, booting from CD-ROM:
```bash
qemu-system-i386 -cdrom win98.iso -boot order=dc -drive file=w98.qcow2 -m 64
```
The setup process was very slow, but I felt happy when the graphical setup started:
![Windows 98 Setup starting](/images/windows-98-qemu-01.png)
After passing through the installation steps, I left the installer make its work:
![Windows 98 Installing](/images/windows-98-qemu-02.png)
It is sad that only remains __301 minutes__ for the installation to complete...