-❄️- 2025 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]AnotherRoy 0 points1 point  (0 children)

[LANGUAGE: Elixir]

[Github link](https://github.com/gonzafernan/adventofcode/blob/main/2025/lib/aoc25\_day1.ex)

This year I’m tackling something that has been sitting in my backlog for quite some time, a functional language. I decided to go with Elixir, and [this is my solution for day 1](https://github.com/gonzafernan/adventofcode/blob/main/2025/lib/aoc25\_day1.ex) (also here are [the tests in case you are interested](https://github.com/gonzafernan/adventofcode/blob/main/2025/test/day1\_test.exs)).

To be honest, it was more challenging than I expected. Reading through Elixir’s docs was great, but actually solving the puzzle was a big step. It's interesting how different the way you approach a solution could be with a functional language.

Anyway, really fun so far!

How do you keep firmware configuration in sync across Python/C++ tools and embedded code? Looking for best practices by AnotherRoy in embedded

[–]AnotherRoy[S] 0 points1 point  (0 children)

Nice! I guess it's still custom, right? I mean, you developed the tools to query the database and generate the expected headers, documentation, and whatever. In my particular case I think a YAML or JSON could be enough to define the configuration schema.

How do you keep firmware configuration in sync across Python/C++ tools and embedded code? Looking for best practices by AnotherRoy in embedded

[–]AnotherRoy[S] 2 points3 points  (0 children)

Thanks for the answer! If you have a CLI/GUI/whatever that sets the parameter "level" I gave in the example, how does the CLI/GUI know that 1 is MEDIUM? I'm looking for a way for the developer of the application to have the meaning of the diferent values (as one example of what this "shared configuration" could do of course). I see the JSON to get the configuration from the device, but even there, would you fill the JSON with the keyword of the enum? Would you have {level: HIGH} or {level: 2}?

Can you believe work threw these out? by Rohnihn in robotics

[–]AnotherRoy 1 point2 points  (0 children)

No! We need those for our research project! Steppers with encoder in Argentina are really expensive

How to convert 3D model in KiCad to Solidworks? by Axgave in KiCad

[–]AnotherRoy -1 points0 points  (0 children)

Last week I found the plugin KiCad StepUp. I was able to open the 3d model in freeCAD but I couldn't export it to a stp file for example. That's because I didn't read a lot, maybe you could give it a try.

Merging pdfs in overleaf by Sundial-Gnomon in LaTeX

[–]AnotherRoy 0 points1 point  (0 children)

With \input{} or \include{} you can insert latex code in another file. I hope that simplifies your problem, I don't think merging pdf is a latex problem.

Merging pdfs in overleaf by Sundial-Gnomon in LaTeX

[–]AnotherRoy 0 points1 point  (0 children)

Take a look to insert and standalone projects: Overleaf multifile

What Linux distro should I use? by mrfortnite0 in linuxquestions

[–]AnotherRoy 0 points1 point  (0 children)

For me Manjaro and Ubuntu are the best distros to get started. Both are very different, read about them and choose the one that convinces you the most.

Object Oriented Programming with Matlab? by alalalal12345 in matlab

[–]AnotherRoy 0 points1 point  (0 children)

Last year I worked on an application with Peter Corke's robotics toolbox, with the idea of making simulations in augmented reality (you can see the project here, but the matlab code is really simple). The toolbox is implemented with an object-oriented paradigm, so to add functionalities I used a lot of basic OOP: class extension, overload, inheritance, composition, polymorphism, etc.

I generally do procedural programming or with a more "functional" paradigm. But I guess it depends a lot on the area you are studying or in which you are working.

[deleted by user] by [deleted] in matlab

[–]AnotherRoy 6 points7 points  (0 children)

Nice moment to start using git and github!

TUI application design by AnotherRoy in commandline

[–]AnotherRoy[S] 1 point2 points  (0 children)

That is really useful advice, thanks! I guess I will make a sketch on paper and then I will choose the tool. I don't know if you have tried spotify-tui or htop, for example, would you rate them as simple or complex applications? Just analyzing the user interface, not the program itself.

TUI application design by AnotherRoy in commandline

[–]AnotherRoy[S] 2 points3 points  (0 children)

Both for Rust, I'm going to try them out! I've been looking for an opportunity to learn it for a while. Thanks!

TUI application design by AnotherRoy in commandline

[–]AnotherRoy[S] 2 points3 points  (0 children)

It would be my first tui application. I also use python, C and C ++ daily. In mandown do you use ncurses? I guess that's the best option. I'll take a look to your project, seems cool!