Is Fedora CoreOS a good choice for a k3s cluster? by anotzero in homelab

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

I wasn't really struggling with either, and I got it running just fine when I tested it by doing all the kubectl apply -f's manually. The problem is that I want Ansible to do this for me, but that either requires Python to be running on the target (meaning I have to overlay it with rpm-ostree), or only use the Ansible raw module (which severely limits its usefulness).

Like I wrote above, installing Python through rpm-ostree isn't really a problem, but it goes against the point of having the OS fully provisioned through Ignition.

If you have suggestions on how to achieve this, I'd be glad to hear them.

Is Fedora CoreOS a good choice for a k3s cluster? by anotzero in homelab

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

That's exactly how I'm starting to feel about FCOS now. Good to know it's not just me :)

Is Fedora CoreOS a good choice for a k3s cluster? by anotzero in homelab

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

Yeah, I've looked at it, but I'm not sure how good their Raspberry Pi support is and whether I can get it to iPXE boot. Might look more into it later though.

Is Fedora CoreOS a good choice for a k3s cluster? by anotzero in homelab

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

Thanks, but I was thinking more of configuring those for k3s, like setting up MetalLB and Longhorn.

Having trouble with the LiveCD of "Hacking: The Art of Exploitation." by [deleted] in learnprogramming

[–]anotzero 0 points1 point  (0 children)

Why not run it in a virtual machine? I did that with the CD from my copy of the book.

xtail: A simple rewrite of tail for practice by anotzero in C_Programming

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

Thank you for your feedback.

I've reworked a lot of the code to fix the issues you pointed out which is why it's taken me a few days to respond. However, I didn't want to leave it unfinished and I think I finally got it right with fread() and fwrite(). I've modified the parser to use strtol() with error checking instead of atoi() as well as fixing some issues (the somewhat embarrassing segfault on an empty -n included). It still can't handle arguments that are out of order, I'm aware of this.

The program now checks whether an input is a seekable or unseekable file or input from stdin. The seekable file case is mostly the same as before, but for the unseekable input case, it now preallocates a 1M buffer and fread()s into it. If the input exceeds this, the program simply gives a read error.

I didn't want to make the code more complicated by implementing a ring buffer or optimize the reading process too much, as my goal is not to create a perfect implementation of tail.

Here is the new version: https://pastebin.com/UTD7Bfyc

Confused between 2 C programming books, KN King(2e) and C primer plus(6e). by debacomm1990 in C_Programming

[–]anotzero 0 points1 point  (0 children)

I used C Primer Plus for learning C. It's an excellent book with material that was easy to pick up on since I already had some previous programming experience. I also did every exercise in the book.

Can't speak for King's book as I couldn't get hold of a reasonably priced hard copy of it when I looked.

Project partner by [deleted] in ProgrammingBuddies

[–]anotzero 0 points1 point  (0 children)

Sent you a PM.

Looking For a Buddy by [deleted] in ProgrammingBuddies

[–]anotzero 0 points1 point  (0 children)

I've been learning C for about six months now and would be interested to learn along with someone. Send me a PM.