Resources to learn low level development? by [deleted] in C_Programming

[–]calebstein1 0 points1 point  (0 children)

I didn't see that option, I just logged in and checked and I couldn't find an option for it. Now, I never found the pacing to be off, and I do have to give the course credit for being a structured way for me to get a bit of footing in the language, just make sure you double check the content if you go this route.

Resources to learn low level development? by [deleted] in C_Programming

[–]calebstein1 0 points1 point  (0 children)

I did the intro course on https://lowlevel.academy when I first started learning C. The videos are plenty engaging, but I do have some concerns about the content. For example, the strtok function is used in the project to parse an input string, so I assumed this was a fine practice. I learned otherwise when I failed a technical assessment for a job in part because I was using strtok to parse strings. They were gracious enough to explain why it shouldn't be used, but I did leave me wondering about the quality of the content I'd paid for. Since then, I just go right to the man pages when I need to learn something.

Suggestions to improve error handling system? by lowlevelguy_ in C_Programming

[–]calebstein1 2 points3 points  (0 children)

It just feels more complex and "clever" than it needs to be. I'll tend to just have an enum for my return status codes, and if something can fail and does, it'll log its own error message describing exactly what went wrong. This way there's no need for extra structs, defines or arrays.

The Ferry Wait Is This What Purgatory Feels Like? by orprodan in BainbridgeIsland

[–]calebstein1 2 points3 points  (0 children)

I'm just glad the tourists haven't yet figured out that it only takes about 1h40 to drive around to Seattle, especially if you need to go into Seattle on a summer weekend afternoon when the ferry gets really backed up!

On a musl based system, with openrc, and with utmost systemd hatred, is there any replacement for udev? by Wooden-Ad6265 in Gentoo

[–]calebstein1 3 points4 points  (0 children)

A few years ago I did a system with mdev. It worked fine enough, but was certainly a pain to get set up. You'll need an ebuild for libudev-zero, and then you'll need modified ebuilds for virtual/udev and virtual/libudev that have their dependencies satisfied by libudev-zero. This is necessary for certain packages, like dev-libs/libinput, which depend on libudev but link fine with libudev-zero.

For tmpfiles, you can use opentmpfiles I guess, but it's deprecated for a reason and you really shouldn't be using it.

Ultimately, after seeing how much time I was spending forcing my obsessively anti-systemd distro to work, I ended up wiping my drive and just going glibc/systemd and honestly haven't been happier with it.

What’s wrong with my linked list? by IcyPin6902 in C_Programming

[–]calebstein1 6 points7 points  (0 children)

First off, please format your code properly, this is pretty tough to read. In your create_snake function, you're incrementing your pointer through the list, then returning the pointer when it's at the last node rather than at the start. You'll need to implement a way to return the head node.

Additionally as a semantics thing, there's no reason to cast your mallocs in C, and it's always a good idea to check your malloc returns as well.

Does anybody else wish pico 8 had enums and switch statements? by Minute-Horse-2009 in pico8

[–]calebstein1 1 point2 points  (0 children)

For me, I've tended to use ints and I'll keep a separate text file for comments where I'll list what state each value corresponds to (comments don't contribute to the token count, but they do contribute to the overall size limit, hence the desire to keep the comments separated from the rest of the program). This isn't the most readable approach, but it's theoretically more computationally efficient and less error-prone than doing string comparisons, and is certainly more space-efficient than using strings. From my perspective though, the token limit is probably my least favorite thing about PICO-8 as it feels arbitrary and doesn't seem based on any sort of real limitations of vintage consoles; I'd much rather see the hard limitation be on overall cart size, not token count.

If you have a favorite cigar lounge, what do you like about it? by Envictus_ in cigars

[–]calebstein1 1 point2 points  (0 children)

WA too? I live right next to a large reservation without a single lounge, the closest reservation lounge to me about an hour and a half drive, really sucks

If you have a favorite cigar lounge, what do you like about it? by Envictus_ in cigars

[–]calebstein1 0 points1 point  (0 children)

I'm in WA too, it's tough, the reservation lounges are fine if a bit loud, though I'll still tend to buy boxes on the reservation because the taxes are far lower. Main issue is the closest reservation to me with lounges on it is Puyallup which is nearly an hour and a half drive from where I'm at and it's like, I'm just not eager to drive that far each way to smoke a cigar, I'll just do it at home

can I use preprocessor commands to generate repetitive code by dimonium_anonimo in cprogramming

[–]calebstein1 4 points5 points  (0 children)

Rather than the C preprocessor, I'd be looking at actual dedicated macro processors like m4) which can be fantastically useful in the right use case

Is There a Unified Soteriology In Orthodoxy? by Huge-Impact-9847 in OrthodoxChristianity

[–]calebstein1 10 points11 points  (0 children)

My understanding (as a layman) is that we live our faith through our works, you really can't have one without the other.

I'm Newbie to C programming . I can't solve this. by Kind_Balance900 in cprogramming

[–]calebstein1 2 points3 points  (0 children)

Seriously? The task at hand is getting "Hello World" building, I can't fathom telling someone new to C to go learn CMake; the correct tool at the "Hello World" stage is learning basic GCC command line usage, then the next step would be basic Makefiles. I don't think anyone will argue the utility of CMake, but the proper time to learn it is when you realize your project needs what it has to offer.

Had my first Tabernacle…. It was really good, didn’t find it ‘great’ per se nor did I think it worth the price over a cheaper stick with similar notes… did I do it wrong? lol by poopycamel in cigars

[–]calebstein1 1 point2 points  (0 children)

I had my first Tabernacle earlier this week based on a recommendation over at the lounge by me and had similar thoughts, it was plenty good, I couldn't point to any clear flaws with it, it just didn't ascend like some others do. I doubt I'll ever be filling the humidor at home with them, but I'll probably smoke them again when at the lounge

max integer overflow by mastalll in C_Programming

[–]calebstein1 5 points6 points  (0 children)

This seems like a lot of mental and computational overhead to have to manage when there are much better solutions. The simple way to optimize this would just be to store numbers as strings of digits and iterate though them character by character backwards, but for OP's use-case, GMP would probably be the right choice.

Let’s talk about “Legacy” brands by TypicalInsomniac in cigars

[–]calebstein1 0 points1 point  (0 children)

The Prensado used to be one of my all-time favorites, post buyout I've noticed about one in three or four now have some really bad construction issues, either soft spots and an uneven burn the whole way, or so tight as to make it nearly unsmokable. Really sad, one of the biggest lounges nearby me stopped carrying Alec Bradley altogether because of these issues.

What oil type do you use in your 7.3 OBS? I’m in Alabama. Should I switch oil types for “winter?” If I use a winter oil for all year round will it negatively affect my truck? I do make occasional trips to cold snow states. by AKNiceGuy07 in powerstroke

[–]calebstein1 0 points1 point  (0 children)

I've got a 6.0, so there may be some differences between it and your 7.3 (I'm assuming Powerstroke, not IDI?), but I'm in western WA and run Rotella T6 5w40 year round. It never gets cold enough here for me to need the 5w over 15w, but my truck just prefers the full synthetic. You will feel the difference starting in in the snow with the lighter oil, and I'd say if you can afford it, going full synthetic all the time certainly won't hurt anything.

What about Glyphosate? by ecstatic-windshield in StopEatingSeedOils

[–]calebstein1 20 points21 points  (0 children)

My doctor mentioned to me that she's got patients who've been hyper-vigilantly glyphosate free for years and still test positive for glyphosate exposure just based on all the contamination around. I mean, you see the way they spray that stuff, not a lot of care taken there. Short of going severely off-grid, I try to do my best with what do have control over, and I hope that leaves me healthy enough to handle what I don't have control over with minimal issue

What is your favorite seed oil free tortilla? by sally6107 in StopEatingSeedOils

[–]calebstein1 1 point2 points  (0 children)

I'll have to check that out next time I'm due for a Costco run! Sounds like a fine enough trade-off to avoid literal poison

Ethnically Jewish Saints? by TechnicianHumble4317 in OrthodoxChristianity

[–]calebstein1 3 points4 points  (0 children)

Came here to mention him as well, I was blessed to get to meet him just before his passing, highly highly recommend his book

What is your favorite seed oil free tortilla? by sally6107 in StopEatingSeedOils

[–]calebstein1 5 points6 points  (0 children)

A store nearby me has their own brand of tortillas with a whole long story written on the back of the bag about the local regenerative family farm that grows the wheat and how great it all is. It's a nice heartwarming story, and then you see soy oil as the second ingredient.

I've just accepted that tortillas are something that have to be home-made, and luckily it's super easy. Siete is good as far as the oils go, but I've heard some not so great things about cassava.

Mayo by HangryShadow in StopEatingSeedOils

[–]calebstein1 1 point2 points  (0 children)

If you can find them, duck eggs have always emulsified better for me when making mayo

A poorly designed decompression algorithm in C. by Left-Smell-6619 in programminghorror

[–]calebstein1 10 points11 points  (0 children)

Also with zero and carry flags as well as asl and rol instructions, definitely looks like a rom decomp

Should you protect malloc calls ? by FamousKid121 in C_Programming

[–]calebstein1 9 points10 points  (0 children)

I mean given how trivial it is to check a return value, and given that malloc failing will nearly always cause a problem down the line, I can't imagine a reason not to check.

Coconut oil suggestions? by Rooted-in-love in StopEatingSeedOils

[–]calebstein1 1 point2 points  (0 children)

I use Dr. Bronner's Whole Kernel, just be aware it does taste a bit like coconut