Hobbyist developer, Linux enthusiast, and Arch Linux user.

“The only things constant in this world are death and taxes, I’ve got both!”Skeleton Merchant, Terraria

  • 46 Posts
  • 281 Comments
Joined 3 years ago
cake
Cake day: June 29th, 2023

help-circle






  • AstroLightz@lemmy.worldtoAnime@lemmy.mlSpring 2026
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 days ago

    Season 4 of Classroom of the Elite is airing. Looking good so far.

    If you do watch it, be prepared for a lot of changes, as the art style, music, and the intro have completely changed (Probably new studio). Fortunately, the VAs are the same (as far as I can tell).







  • I don’t have spooky, but I’ve almost ‘died’ a few times (At least felt like I was dying):

    • Getting very light-headed and my vision becoming bright, and almost passing out due to dehydration and hunger multiple times in my life (A few when I was young, at work, and I think a few times at home)
    • Getting very dizzy, light-headed, and nauseous. Was my 1st time in an ambulance. Was fucked up on drugs they gave me that made my so exhausted, I couldn’t sleep at all.
    • More light-headedness due to drastic dietary changes
    • A pain that fucked my stomach up so bad, I though I was giving birth (I imagined it hurt as bad as birth, but through the stomach). After 30 agonizing minutes of it, a weird pressure feeling came over it (like a relieving feeling), and it started going away.

    I’ve not had a great time.




  • I’ve been working on my first Python package to upload to PyPI to be used in more of my projects.

    It’s a lot of work compared to some of my hobbyist projects as I’m trying to be (somewhat) professional about it.

    It’s also my first time writing actual documentation designed for others to read. It’s a lot harder than I though to write good documentation. Thankfully, sphinx helps with pulling docstrings from my code. I just wrote a Quick-Start Guide to get people started using the package.

    It’s fun though as I’m learning a new stack for Python package development (hatch/hatchling, ReadTheDocs, sphinx, PyPI). I’m almost done with the initial release too!




  • EDIT: formatting

    A potential mathematical approach to equal taxation that works in any country:

    1. Calculate the average income of every citizen. Let A = the average income (amount per year)
    2. Set a baseline tax amount for the average (e.g. 10%). Let P = baseline tax percentage
    3. Given a person’s income, calculate how far above or below they are compared to the average. Let I = a person’s income. We can calculate the difference, D, with D = I - A. A positive value means the person’s income is above average, whereas negative is below.
    4. Calculate the difference as a percentage. Let Q = D / A
    5. Calculate the percentage of the tax percentage. This will determine how much more or less a person will have to pay: R = Q * P
    6. Finally, calculate the person’s unique tax amount: T = P + R. If R was a positive value, that means the person will pay more. If R was a negative value, they pay less. If R = 0, they pay the base amount.

    Example: Let’s say the average income per year is $50,000 USD, and the baseline tax rate is 10%

    So A =50,000 and P = 10% / 100 = 0.1

    Given a person’s income: $30,000/yr:

    I = 30,000

    Calculate the difference:

    D = 30,000 – 50,000 = –20,000

    Q = –20,000 / 50,000 = –0.4 (–40%)

    Calculate how much more/less the person pays:

    R = –0.4 * 0.1 = –0.04 (–4%)

    Calculate the unique tax amount:

    T = 0.1 + (–0.04) = 0.1 – 0.04 = 0.06 (6%)

    There might be a better set of formulas, but this is what I came up with. Let me know if I made a mistake in my math.





  • Accidentally wrote a 2GB ‘nohup.out’ file when I forgot I had a script running as nohup in the background without redirecting STDOUT and STDERR to /dev/null.

    Basically, I forgot to prevent saving the output of my program to a file, and it created a massive file because of it.

    2GB might not seem like much, but this was on a server with ~5GB free space left. Could have been worse had I not caught it sooner.