Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)CA
CameronDev @programming.dev
Posts 15
Comments 920
Newbie Q -- Best Design Practices??
  • My engineering degree briefly touched on all those things, but the tldr was "experience".

    If you have a 3d printer, you can trial and error and iterate fairly rapidly, which is often the best thing to do (albeit slightly wasteful)

    I'm pretty sure you can make assemblies in OnShape, and they should automatically update as you change the base part. So I use that if I want to check the fitment. But when you print it won't be precise, so you may need to add gaps. I add 0.2 mm, but it depends on your printers capability.

  • Cosplay
  • From a reddit comment, so could be lies:

    yes...here's an excerpt from the story...

    "An Electrician ended up with stars in his eyes after being zapped by 14,000 volts during a serious accident at work. The 42 year-old man from California developed the eye disease cataracts after the high voltage current surged through his body. His shoulder touched a live wire and the current passed through his entire body - including the optic nerve, which connects the eye to the brain. The effect was two bizarre star-shaped electrical burns in his eyes, according to The New England Journal of Medicine. Dr Bobby Korn, an associate professor of clinical ophthalmology at the University of California, San Diego, treated the unnamed patient. Dr Korn told NBC News: "The extreme current and voltage that passed through this important natural wire caused damage to the optic nerve itself." Cataracts is clouding on the lens inside the eye which leads to limited vision and the most common cause of blindness. The electrician's story was published in the January issue of the journal. The accident happened 10 years ago and the patient still has poor vision in both of his eyes."

    To go through that with only "poor vision", pretty damn lucky

  • Push for battery subsidy as home owners say solar benefits becoming 'marginal'
  • The grid is effectively an (nearly) unlimited sink. So nearly all your power you generate gets pushed into it.

    The catch is that as we all collectively push more and more power in, it increases the frequency (50hz -> 50.1hz), and most inverters have a cuttoff if the frequency gets too high. But as far as I know, that almost never happens, but if it did, that could cause a large set of power generation to drop offline simultaneously, which would then cause a frequency drop and a subsequent brownout.

  • How did you get into coding/programming?
  • As others have said, rather than learn a language, solve a problem. Find something that bothers you, and write some code to fix it. The specific language doesn't matter.

    Its kinda similar to learning a spoken language, there is no point learning French if you cant use it in someway.

  • Privacy Implications of using ISP issued Router?
  • Yeah, probably. Although if a US ISP does something illegal to you, you can take them to court, whereas you have no recourse against mullvad. But of course you may have 0% chance of winning anyway, so :shrug:.

  • No Mercy
  • I think that should do it. I'll try later today and report back.

    Of course, this risks getting into an even worse state, because if the parent later tries to correctly wait for its child, the call will hang.

    Edit: Will clean up the orphan/defunct process.

    If the parent ever tried to wait, they would either get ECHILD if there are no children, or it would block until a child exited.

    Will likely cause follow on issues - reaping someone elses children is generally frowned upon :D.

  • No Mercy
  • Zombie processes are already dead. They aren't executing, the kernel is just keeping a reference to them so their parent process can check their return code (waitpid).

    All processes becomes zombies briefly after they exit, just usually their parents wait on them correctly. If their parents exit without waiting on the child, then the child gets reparented to init, which will wait on it. If the parent stays alive, but doesn't wait on the child, then it will remain zombied until the parent exits and triggers the reparenting.

    Its not really Linux's fault if processes don't clean up their children correctly, and I'm 99% sure you can zombie a child on redox given its a POSIX OS.

    Edit: https://gist.github.com/cameroncros/8ae3def101efc08be2cd69846d9dcc81 - Rust program to generate orphans.

  • Japan's government finally moves on from floppy disks
  • I vaguely recall reading something about some of their departments were not even using the floppy. Like you had to submit with a floppy, but it was never actually written or read from, and you supplied the documents another way. (I could have entirely made this up, don't quote me)

  • Privacy Implications of using ISP issued Router?
  • The DNS risk is not mitigated by a VPN, just shifted.Your VPN has full ability to log your connection if they wish. You have to decide who you trust more. Bear in mind that depending on your location, your ISP may be more legally restricted from snooping on you than a VPN hosted in another country (I know nothing about the US laws, further research would be required).

    Also, unless you are using one of the encrypted DNS variants, just changing your DNS provider does nothing, as the ISP or VPN can snoop the unencrypted traffic regardless of its destination.

  • Do your neighbour's security cameras make you uncomfortable? Here's what you can do
  • I don't hate all public cameras, I live in an area with lots of them, and most are fine enough.

    This one in particular irks me because it doesn't serve a purpose beyond voyeurism. It doesn't cover the any of the persons property, or any entranceways to their property. Its only for monitoring people in the street. It might be technically a public places, and technically legal for anyone to record, but I really don't think that makes it a good idea for everyone to just record everything.

    I have seen kids running around naked in their front yard just down the road from this camera, so that also raises questions.

    I'd prefer if surveillance of public places was left to law enforcement, at least there is a theoretically some form of oversight.

  • Do your neighbour's security cameras make you uncomfortable? Here's what you can do
  • I have cameras. I told my neighbours about them and showed where they were pointed. I blacked out private areas when they were unintentionally picked up. No complaints.

    I also walk past a camera that has been placed so that it only records the public footpath. Pisses me off, because its not protecting their house/property, just recording the public.

  • How do you feel about portrails of Autism in media?

    Hi All. I have been watching a lot of House lately, and just started "Extrodinary Attorney Woo". I am curious to know what you all think of their portrails of Autism. Is it pandering? Representation? Romantisation?

    Also see "The Good Doctor", "Atypical", "Love on the spectrum" etc.

    58

    Cutting Garolite (G10)

    I posted here a while back when my glass bed failed. One of the suggestions was to replace with Garolite or G10. My sheet finally arrived and i set about cutting it down to size.

    ...

    Within 4cm, my basically unused jigsaw blade was worn flat, and by the end of the first cut (20cm), there is basically no more teeth.

    For the second side, I tried using a multitool cutter, and within a few millimeters it was visibly blunt (plastic and metal tools). Finished it off with a standard wood hand saw, which seemed to go better.

    So warning to anyone considering garolite, dont use power tools, it will fuck them up.

    6

    🎄 - 2023 DAY 25 SOLUTIONS -🎄

    Day 25: Snowverload

    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

    • What is this?: Here is a post with a large amount of details: https://programming.dev/post/6637268
    • Where do I participate?: https://adventofcode.com/
    • Is there a leaderboard for the community?: We have a programming.dev leaderboard with the info on how to join in this post: https://programming.dev/post/6631465
    5

    🎲 - 2023 DAY 24 SOLUTIONS - 🎲

    Day 24: Odds

    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

    • What is this?: Here is a post with a large amount of details: https://programming.dev/post/6637268
    • Where do I participate?: https://adventofcode.com/
    • Is there a leaderboard for the community?: We have a programming.dev leaderboard with the info on how to join in this post: https://programming.dev/post/6631465
    3

    👣 - 2023 DAY 23 SOLUTIONS -👣

    Day 22: A Long Walk

    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

    • What is this?: Here is a post with a large amount of details: https://programming.dev/post/6637268
    • Where do I participate?: https://adventofcode.com/
    • Is there a leaderboard for the community?: We have a programming.dev leaderboard with the info on how to join in this post: https://programming.dev/post/6631465
    5

    ⏳ - 2023 DAY 22 SOLUTIONS -⏳

    Day 22: Sand

    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

    • What is this?: Here is a post with a large amount of details: https://programming.dev/post/6637268
    • Where do I participate?: https://adventofcode.com/
    • Is there a leaderboard for the community?: We have a programming.dev leaderboard with the info on how to join in this post: https://programming.dev/post/6631465
    5

    🦶️ - 2023 DAY 21 SOLUTIONS - 🦶️

    Day 21: Step

    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

    • What is this?: Here is a post with a large amount of details: https://programming.dev/post/6637268
    • Where do I participate?: https://adventofcode.com/
    • Is there a leaderboard for the community?: We have a programming.dev leaderboard with the info on how to join in this post: https://programming.dev/post/6631465
    7

    💓 - 2023 DAY 20 SOLUTIONS - 💓

    Day 20: Pulse

    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

    • What is this?: Here is a post with a large amount of details: https://programming.dev/post/6637268
    • Where do I participate?: https://adventofcode.com/
    • Is there a leaderboard for the community?: We have a programming.dev leaderboard with the info on how to join in this post: https://programming.dev/post/6631465
    4

    ⚙️ - 2023 DAY 19 SOLUTIONS -⚙️

    Day 19: Aplenty

    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

    • What is this?: Here is a post with a large amount of details: https://programming.dev/post/6637268
    • Where do I participate?: https://adventofcode.com/
    • Is there a leaderboard for the community?: We have a programming.dev leaderboard with the info on how to join in this post: https://programming.dev/post/6631465
    4

    🛶 - 2023 DAY 18 SOLUTIONS -🛶

    Day 18: Lavaduct Lagoon

    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

    • What is this?: Here is a post with a large amount of details: https://programming.dev/post/6637268
    • Where do I participate?: https://adventofcode.com/
    • Is there a leaderboard for the community?: We have a programming.dev leaderboard with the info on how to join in this post: https://programming.dev/post/6631465
    15

    🍵 - 2023 DAY 17 SOLUTIONS -🍵

    Day 17: Clumsy Crucible

    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

    • What is this?: Here is a post with a large amount of details: https://programming.dev/post/6637268
    • Where do I participate?: https://adventofcode.com/
    • Is there a leaderboard for the community?: We have a programming.dev leaderboard with the info on how to join in this post: https://programming.dev/post/6631465
    10

    HDMI cable/port degrading?

    I have a moderately long HDMI cable running to a screen that has worked for quite a while. Recently the screen lost its connection. I replaced the cable with the exact same model of HDMI cable, and its all good. The cables arent frequently inserted or removed, and they are otherwise in good condition. I have no idea how or why this could happen. Any ideas?

    7

    Gnome + Xorg == Mouse causes

    I have this very weird glitch with Gnome, running on Xorg. I can move my mouse off the right hand edge of the screen, and the entire gnome UI starts to scroll over the the left, giving me a glitchy mess on the right hand side of the screen. The screenshot doesn't really do it justice, because it just became transparent instead, but the transparent region where the terminal is should be off screen.

    Hope I have explained that well, has anyone else hit that? I wonder if its due to multiple monitors, or non-aligned monitors?

    8

    Does alien.top do anything other than mirror reddit comments?

    I have just realised that alien.top seems to be mirroring reddit accounts, posts and comments, without labelling them as such. What is the point of this one way mirroring? As soon as users realise, they are going to just leave. There is no point having a discussion with a bot that cannot respond.

    25

    First glass bed failure with PETG

    I have been printing with PETG on glass for a little while now, and have gone through almost an entire roll. Yesterday I had my first print stick so hard that it delaminated the glass :(. I stopped using hairspray as it made the prints not stick at all, and printing bare glass was just fine. But something about yesterdays print made the glass give up. Is this how PETG + Glass normally fails? Works perfectly for years, and then suddenly fails?

    13