mfontani

u/mfontani


r/MUD•

Hi, I'm building an "ansi to html" project, at https://github.com/mfontani/ansi2html/

It's meant to be useful, amongst other things, to colorize MUD logs. So long as they mostly contains ANSI "colors" and text, that is. It doesn't (yet) understand VT100 things like moving cursor and the like.

It's working well best I can tell, and I've tested it quite extensively with some logs of mine, as well as a pretty varied test suite.

As MUD users are one of the main "real users" of ANSI colored text, I wondered if any of y'all have any ANSI-laden "logs" they could share, so I could test the tool on a wider range of ANSI colored text, and if any of those cause problems in the tool, I'd like to add

42

r/C_Programming•

I've spent some evenings as of late creating some header-only C libraries that I found useful, and I hope they might be useful to others, too.

They're available at https://github.com/mfontani/chol, MIT licensed.

Aside from tap and sagoma, which are stand-alone, the others are "templated" - that is, they're created using #defines using #defines you provide for your own value types, or type names.

By including those headers, you create your own "type" (well, struct) as well as a bunch of functions named after that "type" name. This provides type safety for it, counter to some other "header-only" libs which mostly use void *s.

The non-templated ones:

  • a very minimalistic TAP
262

r/perl•

David Hodgkinson recently blogged at https://www.hodgkinson.org/2023/11/21/turn-of-tainting-in-brewed-perl/ about the impact of turning off taint, and I wanted to see more into it.

So I cribbed the simple tests from that blog post, and created a script to build docker images for multiple recent perl versions; install the required modules for the test suite (Benchmark, basically...) and then run these tests mentioned by David.

I got very surprising results: "nothreads-notaint" doesn't look at all better than "threads-taint". That is... odd.

I wanted to look more into it.

I ended looking at https://metacpan.org/pod/Benchmark::Perl::Formance, which unfortunately didn't fully build for me du

24

r/synology•

I've done something stupid.. and copied a new/incompatible /lib/libz.so.1.2.11 over what was there, and now I can't log in to DSM 7.1 via web. I can access it via ssh/scp fine, so I'm wondering:

Is anyone able to share a copy of /lib/libz.so.1.2.11 from their 7.1 DSM?

That would be very muchly appreciated, thanks.

11

r/woweconomy•

Hi WoWEconomy!

I've just published a useful addon I've been using for a little while, called Competition Tracker: http://mods.curse.com/addons/wow/competitiontracker

Most TSM users add their competitors to their friends list, to ensure they can keep tabs on their competitors and see when they come online/go offline.

Not all friends are competitors, though. My problem is that oftentimes I've missed a crucial competitor coming online.

This addon allows you to specify which of your friends are competitors, and displays a message when they go online/offline, both in the chat and in the centre of the screen, above everything else.

If this doesn't help you repost quickly or not be underc

136

r/git•

Hi,

In my Git workflow, I use branches heavily, as follows: they get created off master, then code-code-code - trying to commit one file at a time / one "logical change" at a time.

Before merging the changes back into master for deployment, the commits are then checked, reworded, reordered, squashed, what-have-you… via git rebase -i master, in order for them to make sense in master's history and provide good archaeology information for $future_self.

Whenever I run a git rebase -i master on a branch I'm actively developing on, I get presented with the standard Git template, such as:

pick f00baa [foo] fix blah problem
pick baaf00 [bar] fix another problem
pick f0f0f0 fixu
53

r/KeybaseProofs•

Keybase proof

I hereby claim:

  • I am mfontani on reddit.
  • I am mfontani on keybase.
  • I have a public key whose fingerprint is 809D 2E19 BAAB 34F0 F06B A9FE 0082 DA0D 3C87 9073

To claim this, I am signing this object:

{
    "body": {
        "key": {
            "eldest_kid": "0101d22ff53bc3832286dcc4c557f04465c7daf3abac15c0c996d9c1e4d10f1debf50a",
            "fingerprint": "809d2e19baab34f0f06ba9fe0082da0d3c879073",
            "host": "keybase.io",
            "key_id": "0082da0d3c879073",
            "kid": "0101d22ff53bc3832286dcc4c557f04465c7daf3abac15c0c996d9c1e4d10f
10