~andreafeletto

Italy

https://andreafeletto.com

I study Electronics and Robotics at the University of Trento.

~andreafeletto/public-inbox

Last active 5 months ago
View more

Recent activity

Re: [zig-spoon] missing constants when linking with libc 3 months ago

From Andrea Feletto to ~leon_plickat/public-inbox

Thank you for the response.

> In the C world, those are provided by termios.h, which AFAIK is part
> of the POSIX spec. Have you tried including that? (This definitely
> needs to be documented, I just haven't gotten around to it yet,
> busy semester).

Just discovered that @cImport(@cInclude("termios.h")) becomes
std.os.linux.termios, which is a struct with only 8 fields, no constants.

> If that does not work, than I'll special case linkin libc in zig-spoon
> and include termios.h in there as a temporary workaround.

My workaround for now is putting the following in main.zig. It works.

[zig-spoon] missing constants when linking with libc 3 months ago

From Andrea Feletto to ~leon_plickat/public-inbox

Hello,
I'm beginning a project that uses both zig-spoon and zig-sqlite. The latter
requires linking with libc. The std.os.system variable therefore points to
std.c, which does not have many of the constants used by zig-spoon.
Some of them are ECHO, ICANON, ISIG and IEXTEN, which are used in Term.uncook.

I've tried forcing std.os.system to point to std.os.linux by adding the
following code to main.zig, but doing so makes the compiler complain about
many missing variables in std.os.system referenced in std.os.

```
pub const os = struct {
    pub const system = std.os.linux;
};

Re: Failed to build (debian) and launch (archlinux). 5 months ago

From Andrea Feletto to ~andreafeletto/public-inbox

Hello,
I've just added the minimum required versions for every dependency in README.md.
That may be useful for compiling on debian.

About the battery... Could you check, and edit if necessary, the battery name in
`src/config.zig`? By default it's BAT1, but you may have a different one in
`/sys/class/power_supply/`.
If you have no battery (desktop pc) I have yet to implement support for that,
sorry. Feel free to submit a patch if interested :).

Re: [PATCH zig-fcft] Allow null for x and y in fcft_kerning() 6 months ago

From Andrea Feletto to ~andreafeletto/public-inbox

Thank you for the contribution.
I'm sorry if I didn't merge it earlier, but I wasn't subscribed to the list for some reason.

Re: Seeking feedback for kiln 0.2.0 1 year, 3 months ago

From Andrea Feletto to ~adnano/kiln-discuss

Hi,
I don't really have anything negative to say about kiln.
I quite like the recent changes to the handling of the title and the
first newline of the content. It makes templates more robust I think.

If you need a use case, please have a look at my capsule source [0].
It's gemini-only and it uses the latest upstream commit of kiln.

[0]: https://git.sr.ht/~andreafeletto/geminicapsule

Re: Gemini hosting mimetypes 1 year, 3 months ago

From to ~sircmpwn/sr.ht-discuss

> This seems to happen because the ".txt" mimetype is not registered, and
> so the mimetype detection fails. I'm not sure what the solution here
> should be. Perhaps we should use the mimetype "application/octet-stream"
> if detecting the mimetype by extension fails, and also make sure that
> more mimetypes are registered.
> 
> In more concrete terms: this happens because mime.TypeByExtension
> returns an empty string for unknown mimetypes.

The database for the mimetypes can be configured at build-time and
defaults to /etc/mime.types which in my system (archlinux) has the
record for txt.
So either the mime.types file in the system used by sr.ht pages is
different, or a different database is used.

Gemini hosting mimetypes 1 year, 3 months ago

From to ~sircmpwn/sr.ht-discuss

Hi,
I host a gemini capsule here on sourcehut. The source code is made
available directly in the capsule thanks to gmnigit [0].
This tool adds a `.txt` extension to every file in the source tree,
since these files are obviously not supposed to be rendered as gemtext.
The problem is that sourcehut serves every file with `text/gemini`
mimetype, regardless of the extension.
Is this a missing feature or should it stay like that?

Thanks,
Andrea

[0]: https://sr.ht/~kornellapacz/gmnigit/

[PATCH v2] Demonstrate that I can use git send-email 1 year, 4 months ago

From Andrea Feletto to ~sircmpwn/email-test-drive

---
 your-name | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 your-name

diff --git a/your-name b/your-name
new file mode 100644
index 0000000..ed8abe6
--- /dev/null
+++ b/your-name
@@ -0,0 +1 @@
Changessss
-- 
2.31.1
[message trimmed]

[PATCH] Demonstrate that I can use git send-email 1 year, 4 months ago

From Andrea Feletto to ~sircmpwn/email-test-drive

---
 your-name | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 your-name

diff --git a/your-name b/your-name
new file mode 100644
index 0000000..6d0ecfd
--- /dev/null
+++ b/your-name
@@ -0,0 +1 @@
I'm about to try git send-email
-- 
2.31.1
[message trimmed]

Italian Translation of sr.ht Guides and Docs 1 year, 11 months ago

From Andrea Feletto to ~sircmpwn/sr.ht-discuss

Hi,

I am available to translate the documentation in
Italian when multi-language support will be added.

By documentation I mean User Manuals and
Tutorials.

P.S. I'm a italian robotics engineering student
and I've been into FOSS for a while now.
I'm not an experienced developer by any means
by I sure have enough knowledge of git and
other tools to make a comprehensive translation.