Migrar de novo para gitea 🙏
This commit is contained in:
76
content/posts/eclipse-de-lua-marco-2025.md
Normal file
76
content/posts/eclipse-de-lua-marco-2025.md
Normal 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)
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
Seguem algumas fotos do eclipse (perdoem a má qualidade, a câmera tem 12 anos de existência e não é profissional)
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
|
||||
1136
content/posts/find-all-possible-words-from-two-sillabes.md
Normal file
1136
content/posts/find-all-possible-words-from-two-sillabes.md
Normal file
File diff suppressed because it is too large
Load Diff
14
content/posts/find-text-in-files-on-linux.md
Normal file
14
content/posts/find-text-in-files-on-linux.md
Normal 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.
|
||||
57
content/posts/linux-on-a-samsung-tab-2-7-inches.md
Normal file
57
content/posts/linux-on-a-samsung-tab-2-7-inches.md
Normal 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.
|
||||
28
content/posts/markdown-is-life.md
Normal file
28
content/posts/markdown-is-life.md
Normal 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
140
content/posts/marp.md
Normal 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
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## Images
|
||||
|
||||
Marp has a variety of image modifiers
|
||||
|
||||
```markdown
|
||||

|
||||
```
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
You can stack backgrounds horizontally
|
||||
|
||||
---
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
... or vertically!
|
||||
|
||||
---
|
||||
|
||||
## Two columns!
|
||||
|
||||

|
||||
|
||||
* 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/)
|
||||
28
content/posts/more-on-marp.md
Normal file
28
content/posts/more-on-marp.md
Normal 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```.
|
||||

|
||||
|
||||
1. Convert the markdown file to html
|
||||
We can use ```marp slides.md -o slides.html```.
|
||||

|
||||
|
||||
## Result
|
||||
The markdown file is converted into a beautiful html slide.
|
||||

|
||||
28
content/posts/my-best-friend.md
Normal file
28
content/posts/my-best-friend.md
Normal 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:
|
||||
|
||||

|
||||
|
||||
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:
|
||||

|
||||
|
||||
* My version:
|
||||

|
||||
|
||||
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.
|
||||
20
content/posts/ola-a-todos.md
Normal file
20
content/posts/ola-a-todos.md
Normal 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
|
||||
@@ -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:
|
||||
|
||||

|
||||
39
content/posts/some-drawings.md
Normal file
39
content/posts/some-drawings.md
Normal 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:
|
||||
|
||||

|
||||
|
||||
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:
|
||||
|
||||

|
||||
|
||||
Sometimes, I tried to draw imaginary women, reflecting some lack of relationships at the time:
|
||||
|
||||

|
||||
|
||||
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:
|
||||
|
||||

|
||||
|
||||
That cycle of drawing ended with the portrait of my grandfather:
|
||||
|
||||

|
||||
|
||||
Then I forgot that hobby for some years...
|
||||
and I'm making a comeback!
|
||||
|
||||

|
||||
|
||||
And I'm currently trying some cartooning:
|
||||
|
||||

|
||||
|
||||
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.
|
||||
44
content/posts/win98-qemu-postmarketos.md
Normal file
44
content/posts/win98-qemu-postmarketos.md
Normal 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:
|
||||
|
||||

|
||||
|
||||
After passing through the installation steps, I left the installer make its work:
|
||||
|
||||

|
||||
|
||||
It is sad that only remains __301 minutes__ for the installation to complete...
|
||||
Reference in New Issue
Block a user