CameronDev

joined 2 years ago
MODERATOR OF
[–] CameronDev@programming.dev 6 points 1 day ago* (last edited 20 hours ago) (2 children)

Its a kernel exploit, so probably. But I just checked my arch installs,and I don't have any of the kernel modules loaded. ~~Loading requires root anyway, so I think this may be fairly limited in reality?~~

Edit: seems the modules get loaded automatically :(

[–] CameronDev@programming.dev 12 points 2 days ago

Cleaner code according to who?

[–] CameronDev@programming.dev 0 points 2 days ago (1 children)

I don't mind the joggers tbh, as long as there isn't a group of 4 people walking side-by-side they are easy enough to go around.

Its a pretty bad walk anyway, nothing really to see.

[–] CameronDev@programming.dev 28 points 2 days ago (2 children)

Lol.

Linux has vulnerabilities found because its a popular OS, so people actually vulnerability hunt on it. No one cares about freeBSD, so it doesn't get the same scrutiny.

This is also the same reason Windows has so many reported vulnerabilities, it is a massive target worth exploiting.

[–] CameronDev@programming.dev 3 points 2 days ago

Mocha can hear my thoughts cant he...

[–] CameronDev@programming.dev 1 points 2 days ago (1 children)

The bump is there regardless of whether the sunroof is open or not. And i dont think you can get the car without the sunroof?

[–] CameronDev@programming.dev 1 points 2 days ago (3 children)

The smaller BYDs do have issues with head space. The dolphins sun roof rolls up into a lump above the rear seats, so if I sit there my head hits the lump. I'm not super tall either. Atto 3 is much better, but the open boot is still a head hazard as it doesn't go high enough for me.

[–] CameronDev@programming.dev 0 points 3 days ago* (last edited 3 days ago) (1 children)

man scanf:

RETURN VALUE
       On success, these functions return the number of input items successfully  matched
       and  assigned;  this can be fewer than provided for, or even zero, in the event of
       an early matching failure.

man getchar:

RETURN VALUE
       fgetc() and getchar() return the character read as an unsigned char cast to an int
       or EOF on end of file or error.

There are a lot of inconsistencies with C functions, so important to check the man pages so you can handle them correctly.

Your call to getchar isn't quite correct either, pressing the 1 key would print out 49, which is the ASCII codepoint for the 1 char.

[–] CameronDev@programming.dev 0 points 3 days ago (3 children)

NO pedestrians

If only, I've only ridden it twice, and both times there were joggers and walkers. Not loads, but some.

[–] CameronDev@programming.dev 68 points 3 days ago

I nominate my parents cat, Neo:

He gets bullied by my cat, which is half his size, and then hides in his homeless box.

[–] CameronDev@programming.dev 6 points 3 days ago (9 children)

Hybrid with a big battery, so if the daily usage is low, it could be functionally a full EV most of the time. I have heard second hand from a tradie that they haven't bought fuel in 6 months since owning one.

[–] CameronDev@programming.dev 0 points 3 days ago

Denying a group their humanity makes it easier to inhumane thing to that group.

We have seen this before: Germany and Jews, Japan and China (and the rest of Asia), Israel and Palestinians, Elliot Rodgers and Women.

Is that really the message you want to send?

 

Day 7: Laboratories

Megathread guidelines

  • Keep top level comments as only solutions, if you want to say something other than a solution put it in a new post. (replies to comments can be whatever)
  • You can send code in code blocks by using three backticks, the code, and then three backticks or use something such as https://topaz.github.io/paste/ if you prefer sending it through a URL

FAQ

 

Day 6: Trash Compactor

Megathread guidelines

  • Keep top level comments as only solutions, if you want to say something other than a solution put it in a new post. (replies to comments can be whatever)
  • You can send code in code blocks by using three backticks, the code, and then three backticks or use something such as https://topaz.github.io/paste/ if you prefer sending it through a URL

FAQ

 

Everyone loves a good visualisation, share any visualisations that you have created here.

 

Day 5: Cafeteria

Megathread guidelines

  • Keep top level comments as only solutions, if you want to say something other than a solution put it in a new post. (replies to comments can be whatever)
  • You can send code in code blocks by using three backticks, the code, and then three backticks or use something such as https://topaz.github.io/paste/ if you prefer sending it through a URL

FAQ

 

Day 4: Printing Department

Megathread guidelines

  • Keep top level comments as only solutions, if you want to say something other than a solution put it in a new post. (replies to comments can be whatever)
  • You can send code in code blocks by using three backticks, the code, and then three backticks or use something such as https://topaz.github.io/paste/ if you prefer sending it through a URL

FAQ

 

Day 3: Lobby

Megathread guidelines

  • Keep top level comments as only solutions, if you want to say something other than a solution put it in a new post. (replies to comments can be whatever)
  • You can send code in code blocks by using three backticks, the code, and then three backticks or use something such as https://topaz.github.io/paste/ if you prefer sending it through a URL

FAQ

 

Day 2: Gift Shop

Megathread guidelines

  • Keep top level comments as only solutions, if you want to say something other than a solution put it in a new post. (replies to comments can be whatever)
  • You can send code in code blocks by using three backticks, the code, and then three backticks or use something such as https://topaz.github.io/paste/ if you prefer sending it through a URL

FAQ

1
Advent of Code 2025 (programming.dev)
submitted 5 months ago* (last edited 5 months ago) by CameronDev@programming.dev to c/advent_of_code@programming.dev
 

Hi All,

With a few days remaining until the 2025 kick off, its time to get ready to save Christmas once more!

This year is only 12 days, but that just leaves the rest of the month for refining solutions and visualizations.

I have setup a bot to post the solutions threads, but as traditional AoC code style, it likely wont work most of the month. I'll try keep on top of it. As always, if there is something I can do better, please let me know!

Also, thanks to @hades for running the Everybody.Codes threads, its a thankless task, but its good to diversify the challenges.

1
submitted 7 months ago* (last edited 7 months ago) by CameronDev@programming.dev to c/boostforlemmy@lemmy.world
 

See: https://lemmy.ml/post/36048067

Attempting to view that community (and I suspect that specific post) in boost causes the app to crash.

I guessing due to the magnet link?

 
 

Seems like its been pinned there somehow, despite being 2 days old. Happens when logged out as well.

 

Hi All. This might not be for everyone, and is very rough around the edges, but I have written a tool to more easily test how custom addressable RGB effects work.

Simply copy the code portion of the lamba into a text file, and then build and run, and it will output on your terminal how the effect will look.

It is very rough, you need a C compiler, and a RGB/TrueColor capable terminal.

If it works for you, let me know, if it doesn't, also let me know.

https://github.com/cameroncros/ESPHome-ARGB-Tester

view more: ‹ prev next ›