planNine's recent activity

  1. Comment on Let's speak in foreign (non-English) languages! in ~talk

    planNine
    Link Parent
    Ja, zanimivo, da se z našimi južnimi brati boljše razumemo v tujini kot sami med seboj.

    Ja, zanimivo, da se z našimi južnimi brati boljše razumemo v tujini kot sami med seboj.

    1 vote
  2. Comment on Let's speak in foreign (non-English) languages! in ~talk

    planNine
    Link Parent
    Ne vem o čem govoriš... :)

    Ne vem o čem govoriš... :)

    1 vote
  3. Comment on What's on everyone's mind today? in ~talk

    planNine
    Link
    How much university work I have to do and that I'll probably have to go a few days without sleep. Some universities are @#$%&! stupid, but such is a life of a student I guess. :(

    How much university work I have to do and that I'll probably have to go a few days without sleep. Some universities are @#$%&! stupid, but such is a life of a student I guess. :(

    4 votes
  4. Comment on Let's do something different: What are your favorite video game OSTs? in ~music

    planNine
    Link Parent
    Yes! In fact, I saw it a couple of days ago and was just amazed with the amount of effort and dedication that went into it.

    Yes! In fact, I saw it a couple of days ago and was just amazed with the amount of effort and dedication that went into it.

  5. Comment on Let's do something different: What are your favorite video game OSTs? in ~music

  6. Comment on Programming Challenge: Make a Caesar cipher! in ~comp

    planNine
    Link Parent
    In response to the edit: why would you even need such a big key (2000)?

    In response to the edit: why would you even need such a big key (2000)?

  7. Comment on Today I finally beat being a digital pirate despite having to jump a big hurdle in ~talk

    planNine
    Link
    Do they not have this book in a library? Or do you just prefer having your own copy?

    Do they not have this book in a library? Or do you just prefer having your own copy?

  8. Comment on Programming Challenge: Make a Caesar cipher! in ~comp

    planNine
    Link Parent
    I see what you did there...

    So i just gave this a bit of a go

    I see what you did there...

    2 votes
  9. Comment on Be still and know that I am God in ~talk

    planNine
    Link Parent
    It's from The Bible (Psalm 46:10 NIV).

    He says, “Be still, and know that I am God;
    I will be exalted among the nations,
    I will be exalted in the earth.”

    It's from The Bible (Psalm 46:10 NIV).

    8 votes
  10. Comment on Programming Challenge: Translate 24-hour time into words in ~comp

    planNine
    Link Parent
    You could replace a lot of parens with the $ operator.

    You could replace a lot of parens with the $ operator.

    2 votes
  11. Comment on Programming Challenge: Translate 24-hour time into words in ~comp

    planNine
    Link Parent
    Wait. Why do you need numbers from 14-19? Am I missing something? EDIT: nvm, I'm stupid. My solution doesn't even work with those numbers.

    Wait. Why do you need numbers from 14-19? Am I missing something?

    EDIT: nvm, I'm stupid. My solution doesn't even work with those numbers.

  12. Comment on I made a thing: News Desk in ~comp

    planNine
    Link Parent
    Well, according to this definition, it's not even open-source. To the OP (@Scion): I would suggest adding a license, take a look at this page. Also adding a screenshot or something would be really...

    Open source doesn't just mean access to the source code.

    Well, according to this definition, it's not even open-source.

    To the OP (@Scion): I would suggest adding a license, take a look at this page.
    Also adding a screenshot or something would be really nice, so that people can see the program without actually running it.

    2 votes
  13. Comment on Programming Challenge: Translate 24-hour time into words in ~comp

    planNine
    (edited )
    Link
    Implemented in GNU Awk. I hacked this together in a few minutes, it's not the best, but I believe it does the job. EDIT: I just noticed this program doesn't work with minutes 13-19. Oh well,...

    Implemented in GNU Awk. I hacked this together in a few minutes, it's not the best, but I believe it does the job.

    EDIT: I just noticed this program doesn't work with minutes 13-19. Oh well, better luck next time.

    #!/run/current-system/sw/bin/awk -f
    # If on a non-NixOS system, replace with /usr/bin/awk -f
    
    # Write the times in a separate file on each line and then pass that
    # file to the program, something like this:
    # ./talking_clock.awk input.txt
    
    BEGIN {
        FS = ":"
    
        nums[0] = "twelve"
        nums[1] = "one"
        nums[2] = "two"
        nums[3] = "three"
        nums[4] = "four"
        nums[5] = "five"
        nums[6] = "six"
        nums[7] = "seven"
        nums[8] = "eight"
        nums[9] = "nine"
        nums[10] = "ten"
        nums[11] = "eleven"
        nums[12] = "twelve"
    
        other[2] = "twenty"
        other[3] = "thirty"
        other[4] = "forty"
        other[5] = "fifty"
    }
    
    {
        first_num = $1 % 12
        printf "It's"
        printf " %s", nums[first_num]
    
        if ($2 < 10 && $2 != 0) {
            printf " oh %s", nums["0" + $2]
        } else if ($2 != 0) {
            printf " %s", other[int($2 / 10)]
            snd_digit = $2 - int($2 / 10) * 10
            if (snd_digit != 0) {
                printf " %s", nums[snd_digit]
            }
        }
    
        if ($1 < 12) { printf " am\n" }
        else         { printf " pm\n" }
    }
    
    3 votes
  14. Comment on Regrets in ~talk

    planNine
    Link Parent
    I've tried watching the show twice before and never made it past the first episode. A few weeks ago was the first time I did (third time's the charm, I guess) and was hooked. I love how even an...

    I've tried watching the show twice before and never made it past the first episode. A few weeks ago was the first time I did (third time's the charm, I guess) and was hooked.

    I love how even an alternate history like that, has a lot of similarities to our current world (maybe that's just me + I don't really live in the US, so I wouldn't know what's like).

    1 vote
  15. Comment on Post your setup! in ~comp

    planNine
    Link Parent
    Oh I misread it. Yeah, I generally only reboot if the Linux kernel was updated or Systemd (because it's Systemd...). Because I use NixOS, the output during an upgrade is hard to read sometimes...

    Oh I misread it. Yeah, I generally only reboot if the Linux kernel was updated or Systemd (because it's Systemd...).

    Because I use NixOS, the output during an upgrade is hard to read sometimes (they're working on this). When that happens I also just reboot to be safe, but NixOS doesn't update as much as something like Arch :).

    1 vote
  16. Comment on Post your setup! in ~comp

    planNine
    Link Parent
    Why do you have to reboot after installing updates (I'm not familiar with MXLinux)?

    Why do you have to reboot after installing updates (I'm not familiar with MXLinux)?

  17. Comment on Post your setup! in ~comp

    planNine
    Link Parent
    That's why I love Nix. It allows me to create a reproducible development environment no matter the language. All I do is write a default.nix file. The file is read by the nix-shell command when I...

    That's why I love Nix. It allows me to create a reproducible development environment no matter the language. All I do is write a default.nix file. The file is read by the nix-shell command when I invoke it and all dependencies are installed for me, without having to worry about a weird state on my system that is allowing my code to compile.

    2 votes
  18. Comment on What's something new that you're watching that's good? in ~tv

    planNine
    Link Parent
    What? You don't like Storage Wars?!

    What? You don't like Storage Wars?!

    1 vote
  19. Comment on Session Timeout? in ~tildes

    planNine
    Link Parent
    That's interesting. Maybe you can only be logged-in with a single browser. Was Firefox the first browser you used to login?

    That's interesting. Maybe you can only be logged-in with a single browser.

    Was Firefox the first browser you used to login?

    1 vote
  20. Comment on Post your setup! in ~comp

    planNine
    Link Parent
    I don't think it's such a big deal. The nice thing about st is that even if you don't like something , you can easily change it, because the source code is quite simple and short (provided you...

    I don't think it's such a big deal. The nice thing about st is that even if you don't like something , you can easily change it, because the source code is quite simple and short (provided you know C).

    If I'm working with a command that outputs a lot of text I just use something like less and don't use the scrollback, because in most terminals (by default) the scrollback is limited.