[-] CameronDev@programming.dev 1 points 2 days ago

I agree in general, but not every country has a simple and easy licencing system. And if your just acquiring radios for shit-hits-the-fan scenarios, rather than regular use, expending the effort for a licence doesnt make sense to me.

In Aus, its a multiday in person class, with exams at fixed times during the year. And I've seen the course work, its mindnumbingly easy, it should be an online multiple choice. I would do it in a heartbeat if it were online.

[-] CameronDev@programming.dev 7 points 3 days ago

And make it melanine tested

[-] CameronDev@programming.dev 3 points 4 days ago

I have converted some tuya bulbs in the past, but its never been a good time. The exploit methods tend to get patched, so I had to open the bulbs and solder wires to flash, and the bulbs don't go back together nicely. Better to just avoid that headache imo.

[-] CameronDev@programming.dev 1 points 4 days ago

Yeah, there would be a lot of potential for leaks, but if they are one-time-codes that wouldn't be too bad.

[-] CameronDev@programming.dev 14 points 4 days ago

Esphome or ZigBee bulbs are the way to go, avoid tuya for WiFi bulbs

https://www.athom.tech/esphome

ZigBee bulbs I have gotten from aliexpress, they are usually pretty good, but you'll need a ZigBee antenna or bridge.

Tuya require a cloud connection, so best to avoid.

[-] CameronDev@programming.dev 2 points 4 days ago

Your website is dead.

[-] CameronDev@programming.dev 6 points 4 days ago

If the merchant is hoarding the data, they want to do it. If they want to do it, why would they use your framework?

Also, merchants need your name and address to ship the product to you...

[-] CameronDev@programming.dev 5 points 5 days ago

Sure, you might today, but tomorrow? How can anyone trust that you wont start serving malicious links?

[-] CameronDev@programming.dev 10 points 5 days ago

Better is a wild claim.

You're right, gists do seem to update with the static url, however that isnt necessarily better, it now means your gist is effectively under your control, and you can replace the installers with malware packed ones. Operating a software repository/installer requires that people trust you, and that is basically impossible for a no-name dev with no history.

You ideally should be doing checksum checks as well.

[-] CameronDev@programming.dev 10 points 5 days ago

Solar, battery, EV, make sure your appliances are efficient and electric, pay for green energy. Encourage your neighbours to do the same.

Other than that, brace for impact. Seek out a local "climate cafe", they likely have resources to help:

https://www.psychologyforasafeclimate.org/climate-cafes

[-] CameronDev@programming.dev 6 points 5 days ago

Some feedback:

let remote_url = "https://gist.githubusercontent.com/ZeSystem-Inc/20ddc1ac41d73c6033cee3b4a5ab1a85/raw";

You have effectively hardcoded the list of software you support, ideally you should be able to dynamically update the list, otherwise you have no way to revoke or update versions if required. And if its hardcoded, why bother network requesting for it, just build it into the binary. Would be a little larger binary, but even faster.

No dependency resolution – eliminates fragility.

Meaningless, there is no dependency resolution because thats done for you by the installers.

Written in Rust – memory-safe, zero-cost, ultra-fast.

The task you are doing is entirely IO bound, rusts performance is irrelevant.

[-] CameronDev@programming.dev 26 points 5 days ago* (last edited 5 days ago)

KYC is not just for funsies, they are legal requirements for a lot of businesses. If they don't legally have to store information, they can just choose not to. It doesnt require a framework, Lemmy manages just fine without storing personal data.

38
9

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

22

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

28

I dunno if this is appropriate for this community, so mods, please delete if not.

I have been writing a screen clone in rust.

https://github.com/cameroncros/PoorMansScreen/tree/better_screen (The main branch is how I currently use it, not at all screen-like, the better_screen branch is much closer to a screen replacement.)

It all currently works fine, albeit quite simple, and I suspect not following best practices. Please talk shit about my code so I can fix that :D

For my next stage of development, I would like to use some combo of vt100 and ratatui to wrap the shell in a border, or add a menu bar at the top or bottom to make it clear when the user is inside a "screen". Does anyone have any thoughts on how to go about doing that? I am very unskilled at ratatui.

5
Visualisation Megathread (programming.dev)
submitted 2 years ago* (last edited 2 years ago) by CameronDev@programming.dev to c/advent_of_code@programming.dev

Visualizations are hard, and take time, so here is a thread to highlight the visualizations that we have found/created.

Please feel free to post your visualisations!

3
submitted 2 years ago* (last edited 2 years ago) by CameronDev@programming.dev to c/advent_of_code@programming.dev

Those of you running behind, keep at it, but this is the leaderboard as it stands at the end of 2024.

Happy new year!

5
Using LLMs to solve AOC (www.jerpint.io)

A lot lower success rate than I suspected, I guess a lot of the scoreboard times were probably legit?

78
submitted 2 years ago* (last edited 2 years ago) by CameronDev@programming.dev to c/advent_of_code@programming.dev

Well, that was a month. Congrats everyone who has reached the end, and thanks to everyone who has contributed solutions and advice.

Sometime in January I will create a megathread for visualizations. If anyone has any other ideas, happy to hear them, otherwise, take a well earned 11 month rest until next year :D

15

Day 25: Code Chronicle

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

7
submitted 2 years ago* (last edited 2 years ago) by CameronDev@programming.dev to c/advent_of_code@programming.dev

I am wondering if manual inspection is the way to go for pt2? Seems almost achievable with some formatting. Anyone been down this road?

13
submitted 2 years ago* (last edited 2 years ago) by CameronDev@programming.dev to c/advent_of_code@programming.dev

Day 24: Crossed Wires

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

14

Day 23: LAN Party

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

view more: ‹ prev next ›

CameronDev

0 post score
0 comment score
joined 3 years ago
MODERATOR OF