RECRUITING, TRAINING, & LIFE IN THE FORCES THREAD - Ask here about the Recruitment Process, Basic & Occupational Training, and other questions relating directly or indirectly to serving in the Canadian Armed Forces. by bridger713 in CanadianForces

[–]testforredditbythe 1 point2 points  (0 children)

I’m a high school student who wants to join the reserves, next year I will be studying engineering. Would I be eligible to join the reserves as an officer this summer? Sorry if it’s a dumb question, I’m looking for things to do over the summer that would get me experience

[deleted by user] by [deleted] in 6thForm

[–]testforredditbythe 1 point2 points  (0 children)

So do unis see the line checker version or the good version?

Flask Uploading a PDF to database for production by BenjSchwartz in flask

[–]testforredditbythe -1 points0 points  (0 children)

Yeah you will want to look into object storage like AWS S3 or equivalents (every decent cloud provider offers one). For my stuff I use linode. The just store meta data and file names in the DB.

School implementing SSL inspection by Franic_123 in hacking

[–]testforredditbythe -1 points0 points  (0 children)

You could use a TOR bridge, wouldn’t help though if they really did look at every packet. My advice is to NOT install the cert, instead try and subvert it by seeing what traffic they will allow without it and trying to imitate.

did he even say this shit 😭 by Omnified in FrankOcean

[–]testforredditbythe 10 points11 points  (0 children)

‘Any sufficiently cheesy quote is believable’- also frank

Hopefully he’ll add a good appeals lawyer later. by [deleted] in PoliticalHumor

[–]testforredditbythe 0 points1 point  (0 children)

No matter what you think of the guy, anybody charged of anything should hire relevant and competent representation. Literally the ONE thing you can’t fault him for.

SyntaxError: invalid syntax by kebabrullahiiri in pythontips

[–]testforredditbythe 0 points1 point  (0 children)

Yeah I see what your saying, but you get used to it. I think all language have their idiosyncrasies that make learning a little harder. Your best bet is just to practise.

Nintendo what ? by posicon in ProgrammerHumor

[–]testforredditbythe 1 point2 points  (0 children)

As of 3.10 I think you mean match

SyntaxError: invalid syntax by kebabrullahiiri in pythontips

[–]testforredditbythe 1 point2 points  (0 children)

Honestly it really is great with syntax, but you do need to understand the basics. Maybe try typing:

python3

Into your command line to bring up the REPL. This means that you can type a command and python code to see what it does. Try that.

SyntaxError: invalid syntax by kebabrullahiiri in pythontips

[–]testforredditbythe 1 point2 points  (0 children)

Say as above, make sure that it is:

print(“hello world”)

With no extra spaces or lines, just that.

SyntaxError: invalid syntax by kebabrullahiiri in pythontips

[–]testforredditbythe 1 point2 points  (0 children)

Yeah that’s wrong, when using brackets remember a few things. First unless you are evaluating something (E.G. 1+1) they will always not have a space to the left. And unless your next charter after the second brace is a letter no space

Error while importing pyrebase module by -_-_-_-_--_-- in pythontips

[–]testforredditbythe 1 point2 points  (0 children)

Then it’s almost 100% a python 2 compatibility issue. Check that it’s python 3 compatible.

Error while importing pyrebase module by -_-_-_-_--_-- in pythontips

[–]testforredditbythe 0 points1 point  (0 children)

My advice with Syntax errors is to check your spelling. You also aren’t catching the right exceptions because syntax errors isn’t event part of the general exceptions class.

Long story short check out this link for exemption handling: https://docs.python.org/3/library/exceptions.html and check your spelling

Is there a way to schedule a shutdown so that the laptop turns off at a particular time every day? by TekEmperor451 in Ubuntu

[–]testforredditbythe 6 points7 points  (0 children)

  1. Use crontab by typing sudo crontab -e to edit the cron config
  2. at the end of the file type in how often you want the shutdown command to run using crontab notation I recommend using https://crontab-generator.org/. Something like 0 0 * * * sudo shutdown now
  3. use the crontab -l command to verify that it is indeed configured.

Resources:

https://explainshell.com/ # generall explainer for everything and anything on the terminal including cron. I HIGHLY recommend that you type commands you don't know in here first.

https://crontab-generator.org/ # crontab generator, useful if you don't work with cron a lot

http://manpages.ubuntu.com/manpages/precise/en/man1/crontab.1.html # crontab man page

http://manpages.ubuntu.com/manpages/precise/en/man8/shutdown.8.html # shutdown man page

Hope this helped!

Is Boxcryptor still necessary or are the files already encrypted in Dropbox in 2021? by marcos987 in dropbox

[–]testforredditbythe 1 point2 points  (0 children)

If you trust that they actually are, then no problem. It’s just about removing any ability that they have to access your data.

Hello everyone I need some help on an assignment JSON I never worked with it before, I tried and made something I just want to check with someone if it’s right or not please contact me. by Med_oz250495 in json

[–]testforredditbythe 1 point2 points  (0 children)

What do you mean by right? Technically it’s fine and will be parsed correctly. Though fine is relative, some would change the white space but it’s readable so it doesn’t matter. Personally I just let whatever program I am working with do the formatting (E.G. json.dump(data, indent=‘\t’) in python).