frankfurt_schoolgirl [she/her]

  • 0 Posts
  • 19 Comments
Joined 2 years ago
cake
Cake day: July 25th, 2022

help-circle






  • If you want to accept a user input of any length, you have to read the input piece by piece and allocate a new buffer if the original becomes full. Basic steps would be:

    1. Use malloc to make a char * buffer
    2. Read one character at a time in a while loop, keep track of your position in the buffer
    3. If you get an EOF character, add a \0 to your buffer and break the loop. You’re done!
    4. If the position is greater than the length, allocate a new buffer that has twice the length. Use memcpy to copy the stuff from the old buffer to the new one. Use free to get rid of the old buffer.

    This will work until you fill the entire memory of your computer. You should probably set a max length and print an error if it is reached.







  • Yes, it will get better over time. You are using an entirely new operating system. Things are different, but aren’t that hard to learn.

    My big tip for installing Linux is to use the package managers when possible. Every distro comes with at least one package manager, which can install many pieces of software. On Ubuntu, there are two: snap and apt. (Yes, this is confusing. Canonical is trying to change the way they package software, and it has made their distro harder to use).

    Also, what kind of software are you installing that requires different permissions or ports? If you’re trying to set up servers you many be better off with a different approach.



  • I have this hazy, memory from when I was about 8. I was exploring a peat bog, which was fun because everything was soft and squishy and I could just run around. I saw some weird looking bushes, and decided to go check them out. But, as I ran up, it turned out there were growing over this sort of wet hole, where maybe there was a spring or something. I suddenly fell about 8 feet, and was in this mud pit slowly sinking. Luckily, I managed to grab some of those bushes I’d seen, and pull myself out. But it was very hard, because the mud was pulling me down like quicksand. Eventually, I crawled back out on the bog, covered in mud.

    Nobody I was with remembers this, and honestly it might not be real. Childhood experiences are super weird.


  • Hi, I’m mtf, but in tech, so maybe I can be a bit helpful.

    I’m thinking you may be right that a lot of guys are stealth. It’s very hard to be stealth mtf in tech because there are already not many women. At my company, there are three women in engineering, me and two cis lesbians. So I kinda stick out. But it would be pretty easy to be unremarkable if you pass as a man. I actually know (well, talk-to-on-the-internet) at least one stealth trans guy in tech, so you do exist. Tech is relatively cool with queer people, depending on the area, so I don’t think being stealth is a requirement for a successful career.

    I really like software engineering as a career for two reasons. First, something about my brain (autism?) Makes solving little puzzles on my computer and putting together virtual systems super satisfying. And also, software is one of the easiest ways to a stable career. Like what other field can get you a 6 figure salary with a 4 year degree? And honestly office work is pretty easy as long as you work for a chill company. Money and stability are big advantages when you’re trans.

    I’m sure you already know this, but there are lots of good careers in tech outside of programming. Some good examples are cyber security, cloud/sre/devops, and data scientist. You can get into all of these with a bachelor’s degree, but some you can do with an associate’s instead and save two years.

    But, like, I guess the job market is weird and messed up rn, so maybe the more education the better. But even with the tech layoffs there are stuff tons of jobs out there. Sure, you might have to work at a bank instead of Google, but it’s still a stable, well-payed office job. Don’t get discouraged by silly undergrad cs students who are doomer about everything because they didn’t get the Facebook internship.

    I’m totally down to answer more questions if you want or chat about tech. Good luck figuring out your path through dystopian late capitalism!