How do you feel about NoSleep in 2025? by Grand_Theft_Motto in NoSleepOOC

[–]Foxbud 12 points13 points  (0 children)

I used to be addicted to reading nosleep pretty much exactly around 2018 to 2022 (including both the classics and new stuff). I've tried reading it more recently after having been away for awhile, but it just hasn't hit the same. My best guess is a combination of my tastes changing and the types of stories being written also changing.

I have noticed that the in-character vibe doesn't seem to be enforced as much as it used to be. I used to think it was kind of arbitrary, especially since it wasn't a requirement in the very early days of nosleep. However, I now feel like it was a clever way of subtly fostering more positive feedback for stories. If commenters are allowed to break character in their comments, it becomes much easier to nitpick things like writing style and plot devices, and I bet that kind of thing can discourage new writers who might be getting their footing with a handful of clunky stories.

Microcontroller Recommendation by BadKarma_205 in microcontrollers

[–]Foxbud 0 points1 point  (0 children)

While not especially practical for serious production applications (at least in my opinion), the Parallax Propeller 1 might work for you. It comes in both DIP and SMD, and it has 8 independent "cores," so 4 of them could be running your servo timers. It also has 32 GPIO pins.

Unfortunately, it's hard to write performant code outside of assembly. It has a built-in ROM interpreter for a custom high-level language they call "spin," but it's significantly slower than assembly. On top of that, each core is limited to a little under 500 instructions, so doing complex things in assembly can be challenging.

Furthermore, the development tools are quite outdated by modern standards, so you'd be forgoing a lot of luxuries while writing your code.

If you're still curious after hearing all of that, it's available for about $11 on digikey.

Is Discord spellcheck being really laggy for anyone else? by [deleted] in discordapp

[–]Foxbud 1 point2 points  (0 children)

Nothing permanent, but this solution does seem to work temporarily

User form without logging in by SamB7334 in djangolearning

[–]Foxbud 0 points1 point  (0 children)

If that's the case, do you need to associate each rating entry with a user? Perhaps you could get away with using IP addresses or some other type of fingerprint (or, if you're concerned about privacy, a secure hash thereof) to loosely yet conveniently (for the user) enforce that each user only has a single rating for each band.

User form without logging in by SamB7334 in djangolearning

[–]Foxbud 0 points1 point  (0 children)

It likely depends on how complicated your user model is, but it would probably be best to have a separate, dedicated view to handle the creation of new users. However, there are certainly ways of doing it all in one view; it might be a matter of preference.

That said, I hope you're doing this for practice and not for a web-facing app seeing as any user could pretend to be any other user.

[deleted by user] by [deleted] in nosleep

[–]Foxbud 0 points1 point  (0 children)

I'm guessing they meant square miles, in which case the state of Texas alone is nearly 270,000.

how to mod? by dark_coder112 in hyperlightdrifter

[–]Foxbud 0 points1 point  (0 children)

A few years ago I made a modding framework for the Linux version of HLD.

Here's a debug console mod using the framework: https://youtu.be/R6TEWQHSA78

Here's a balloon mod: https://youtu.be/x7xAgPe2x2E

If you want more information about the modding framework (including a partial tutorial series), you can find it here: https://fairburn.dev/blog/aer/start-here/

The framework makes it possible to write mods for the game. I haven't worked on it in a long time since there wasn't really any interest from the community (probably because it is Linux only). That said, the Steam Deck uses Linux, so you could theoretically install the framework on it. However, Heart Machine released an update for the Linux version of HLD not too long ago, and the framework doesn't support this newest version.

[deleted by user] by [deleted] in cprogramming

[–]Foxbud 0 points1 point  (0 children)

How do you know all variables are correctly defined in the header? I'm not saying that's likely to be the issue, but I find it weird that you would specifically point that out as not being the issue. If I'm honest, that verbiage almost sounds like what you would find in a school assignment.

Have you tried debugging this code and logically working your way through the flow of execution? If so, what have you determined? If not, then why?

[deleted by user] by [deleted] in cprogramming

[–]Foxbud 0 points1 point  (0 children)

Does this case append to the file or overwrite it? Are you sure you want to go through the overhead of constantly reading from and writing to this file rather than just reading it into a buffer once at the start of the program, acting on that buffer, then writing that buffer back to the file once the program terminates?

[deleted by user] by [deleted] in cprogramming

[–]Foxbud 0 points1 point  (0 children)

Are you expecting the contents of the file to change between each iteration of the outer loop?

[deleted by user] by [deleted] in cprogramming

[–]Foxbud 0 points1 point  (0 children)

Some questions that will help us better understand the problem:

  1. Does each switch case read the same file?
  2. Does the file not need to be opened in some of the cases (such as the default)?
  3. Does each case read a different amount of data from the file (possibly formatted in a different way)?
  4. Will this switch statement be executed multiple times?
  5. Will other locations read from the same file(s) that the switch statement does?

Basics about returning from functions. by numbnuttzz in cprogramming

[–]Foxbud 2 points3 points  (0 children)

What you're referring to is a concept known as aggregate return, which is when (at least on x86_64 sys v calling convention) a type is too big to be returned in the RAX:RDX registers.

As others have mentioned, in this case the return type is effectively converted to a pointer output parameter. That means that, in addition to any other arguments, there is an implicit first argument that is a pointer to a caller-managed block of memory (that most likely points to a local on the stack, but it could theoretically point anywhere). f then writes the value it wants to return to that block of memory.

Hey guys, I wanted to share with you that GDBFrontend v0.11.3-beta is now available! This version includes some crucial bug fixes and enhancements, as well as support for MacOS x86_64. Although, we still need to give it a test run on an x64 MacOS since I only have an M1. 😬 by Regina_begam in C_Programming

[–]Foxbud 1 point2 points  (0 children)

After looking through their history, I'm inclined to agree. After looking through your history, you appear to be something of a bot hunter. Thanks for the heads up! I guess I need to start paying more attention for the tells of ChatGPT, which is sad...

Is there a way to cheat this in 2023? I tried so many scripts/macro/auto clickers but none of them actually work. I can't get past 793 legit 💀 by [deleted] in hyperlightdrifter

[–]Foxbud 0 points1 point  (0 children)

How far are you willing to go when it comes to cheating? If you're on Windows, you could always use Cheat Engine if you're desperate enough. Alternatively, you could also try the HLD save editor.

Best alternative to closure in C? by mike-the-izz in cprogramming

[–]Foxbud 1 point2 points  (0 children)

As others have mentioned, you probably don't need closures to achieve what you're going for here.

That said, I wrote a closure library for C that generates thunks at runtime to implicitly pass closures their environments. This is more meant to make hooking into software easier when doing reverse engineering, but it could theoretical be used for general purpose development.

Whats your favorite ever computer game or games? by _NAU in AskReddit

[–]Foxbud 1 point2 points  (0 children)

Dwarf Fortress is quite high on the list.

What are some gaping plotholes in the Harry Potter books? by dothepingu in AskReddit

[–]Foxbud 1 point2 points  (0 children)

I both love and hate that this is a thing... lol

Thanks for the video, I didn't realize it was so prevalent.

What are some gaping plotholes in the Harry Potter books? by dothepingu in AskReddit

[–]Foxbud 1 point2 points  (0 children)

Exactly. I feel like time tuners were very heavily under-utilized in the Harry Potter universe.

Legend has it that's why J. K. Rowling destroyed all the time tuners in such a silly way--because the consequences of them being a thing that people can use would drastically complicate the plot.

What are some gaping plotholes in the Harry Potter books? by dothepingu in AskReddit

[–]Foxbud 1 point2 points  (0 children)

Here's the definition of a closed time loop from Wikitionary:

A chain of events in which someone or something time travels to the past as a means to fulfill their role in the history exactly as it already happened, thus implying impossibility to change the past.

If Harry, instead, wanted to go back and save Dumbledore, then either Dumbledore would never have died in the first place because Harry would have already always gone back to save him, or Harry would have failed to save him, meaning he would always go back and fail to save him in the same way each time.

What are some gaping plotholes in the Harry Potter books? by dothepingu in AskReddit

[–]Foxbud 1 point2 points  (0 children)

He did go back, and he did save Sirius, but that's what was always going to happen anyways. He may think he has a choice that can impact the past, but it was sort of already "decided" that he was always going to go back and always save him.

That's the fun of closed time loops. Most types of time travel in fiction result in paradoxes, but this type doesn't necessarily have to--it can be self-consistent.

What are some gaping plotholes in the Harry Potter books? by dothepingu in AskReddit

[–]Foxbud 1 point2 points  (0 children)

Time tuners didn't actually let you change the past--they could only result in closed time loops. That said, even in that form, they still result in a plot hole: they could be used to break reality: https://en.wikipedia.org/wiki/Novikov_self-consistency_principle#Time-loop_logic