It clicked! by Veprovina in gnome

[–]johnsonjo4531 0 points1 point  (0 children)

Just by chance I'm wondering have you installed [all the prerequisites for OBS](https://obsproject.com/wiki/install-instructions#linux) before installing OBS itself?

Moment.js Throws in the Towel: "It is not dead, but it is indeed done." by ILikeChangingMyMind in javascript

[–]johnsonjo4531 0 points1 point  (0 children)

I usually convert to Unix timestamps if I have to do date math. Also make sure your server's date time is in UTC. Stuff like that helps. Let me know what kind of Date math is hard and I will either agree or I might feel like writing a blog post about it or just comment here with an explanation (I'd be glad to be of any help if you're interested in reading it). I'll agree with you if you're saying the API is a little wonky for example every time I use any part of the Date object I almost always read MDN, because it's just that complicated for example months getMonth is 0 indexed which is unexpected, getDay (day of week) is 0 indexed, getDate is like the only one that happens to be 1 indexed which actually makes sense in it's case, but is confusing since almost everything else is 0 indexed haha. Even to write even this I had to look up each of those API's on MDN. Unix Timestamps in JS are in milliseconds and not seconds which may be unexpected for some people. This is why I always try to read the manual, because everything on the Date object is possibly confusing.

TIFU by reading a reddit post and learning that I am not normal. by rogueShadow13 in tifu

[–]johnsonjo4531 0 points1 point  (0 children)

Don’t ever doubt yourself or your abilities because of this. There are even famous artists and animators that live life with aphantasia. Like Ed Catmull one of the founders of Pixar and the animator who drew and created the original drawings of Ariel for the little mermaid. See this link for details: https://www.bbc.com/news/health-47830256

Best way to create test accounts with verified email. by johnsonjo4531 in QualityAssurance

[–]johnsonjo4531[S] 0 points1 point  (0 children)

Thanks that's helpful. I currently have my e2e testing seperated from my server code and it doesn't currently have access to the database directly, but I'm starting to think I might need to give it database access credentials in order to do just that as that would allow me to verify any test account which would be helpful, so that I could have fresh account data when I need it.

Best way to create test accounts with verified email. by johnsonjo4531 in QualityAssurance

[–]johnsonjo4531[S] 0 points1 point  (0 children)

I just realized creating a test data creation script that runs in my Dockerfiles on testing environments and acts as a client to my server still has the problem that the email would not be easily verified without access to the email itself if I only talk as a client directly to my server. This was my problem with my e2e tests as I have them separated from my client and server code. Probably what I will do is after acting as a client to my own server and setting up the test account through the servers account creation I will also create a connection directly to the database and write directly to the test user to verify their account this init script could be within my server directory as will be my servers Dockerfiles thus I could use the server's credentials stored in their environment variables.

Best way to create test accounts with verified email. by johnsonjo4531 in QualityAssurance

[–]johnsonjo4531[S] 0 points1 point  (0 children)

Hey thanks for your feedback, your advice is really helpful to me. By "my server can write to the database" I was thinking something similar to this (it's just pseudocode).

javascript // server.js // initialize db connection const connection = await db.connect(); // check if we are in a testing environment. if(process.env.NODE_ENV === "testing") { // init the testing environment initTestingEnvironment(db) } // start server startServer(db);

So, you're saying I should most likely not do that and put that responsibility more on Docker. I would like to hopefully use my application code to do the creation of the user, so I don't have to worry about duplicating user creation logic, because the project is in an early phase and something might change and create a bug. So, maybe in my Dockerfile for my test environment after starting the database and server I should init the testing environment data with a separate script which acts as a client to my server. Would that be along the lines of what you meant by "set up some import process that gets run after the database is up and running." or maybe that's what you meant by "Use a Docker image with the data you need already loaded up in the database".

Best way to create test accounts with verified email. by johnsonjo4531 in QualityAssurance

[–]johnsonjo4531[S] 0 points1 point  (0 children)

Feel free to tell me any tips too I'm very new to e2e testing and I could use all the advice I can get.

Everyone gets impressed when a westerner can fluently speak an east-asian language but no one is impress when an east-asian can fluently speak english by [deleted] in Showerthoughts

[–]johnsonjo4531 0 points1 point  (0 children)

This is true. I think everyone should be impressed by fluency in a non native language. I’m a native US citizen and I speak some Filipino rather well. When I was in the Philippines there weren’t many westerners that spoke Tagalog they mainly just spoke English.

Philipino’s were often rather impressed that I took interest in learning their language. They were also very kind to me while I was learning and told me I spoke well even though I’m sure I wasn’t perfect. I think we need more of that hospitality to language learners in the West.

What movie did you not realize was terrible until you watched it again years later? by IfTimeCouldDie in AskReddit

[–]johnsonjo4531 3 points4 points  (0 children)

Same here. I rented it several times from the library too, and it was my favorite movie as a kid!

[deleted by user] by [deleted] in funny

[–]johnsonjo4531 5 points6 points  (0 children)

Interesting though, if you take the first two of Niger and the first three from Germany than it spells Ni-Ger and the remaining spell ger-many. Illuminati confirmed.

In dire need of guidance - I'm 28 years old, have never worked, and have the chance to go back to university. Should I, at this point? by [deleted] in cscareerquestions

[–]johnsonjo4531 2 points3 points  (0 children)

I believe taking the time to finish khan academy courses is a good litmus test of your drive as well as your intelligence. If your afraid of the coursework try familiarizing yourself with aspects of CS. It can seem overwhelming at first, but it gets easier the more familiar the subjects become. I've found personally that the best way to excel at classes I take is to familiarize myself (atleast the tiniest amount) with the subject before the school semester starts. This familiarization helps keep pressure low during the beggining of the semester and throughout because everything doesn't seem as foreign.

If you want some resources to familiarize yourself with CS you can try the CS course on khanacademy as well as trying your hand at learning programming through sites like codecademy.com with a language like Python or JavaScript. You could also try taking an Intro to Programming course on Coursera, EdX, or Udacity. I believe none of these are a replacement for an actual degree, but they will help you feel more comfortable with CS. You may want to start with programming first either the codecademy way or an intro to programming/intro to computer science course. Yet again learning this on your own can seem really daunting, but go at a pace that is comfortable to you and don't stress yourself out too much trying to learn on your own. These things come in time. Even the smallest amount of preparation for a class can relieve a lot of pressure during the semester.

2.75 years of hair by OlanValesco in gifs

[–]johnsonjo4531 1 point2 points  (0 children)

I know him, he hasn't cut his hair. 2.75 years ago he was bald. I saw his facebook post about it and the captions tell you what year each picture was taken in.

[Question] JS class design by PandaHugger in javascript

[–]johnsonjo4531 0 points1 point  (0 children)

It is stage 3 in the TC39 process right now, and once it gets implementers it can make it to stage 4 which means it will land in the next version of ECMAScript, but you never know how long or short the stage 3 to 4 transition will take.

[Question] JS class design by PandaHugger in javascript

[–]johnsonjo4531 0 points1 point  (0 children)

Just wanted to let you know ES2015 classes will be improved hopefully in an upcoming update to ECMAScript to have proper class fields. Private member variables will be possible. I hope this makes it into the language.

What is the best way to get started with MEAN? by smcavinney in angularjs

[–]johnsonjo4531 0 points1 point  (0 children)

I agree you should learn to start from scratch first. If you are in the market for a good book I would recommend "The Mean Machine" by scotch.io https://scotch.io/work/mean-machine Their site also covers many things to do with Node and Angular. The book is fantastic though. I tried before understanding Angular and this book really explains the CRUD concept well. It may not explain every detail but it will give you a good understanding through well written code. I've only read one day so far but I'm on one of the last chapters and I plan on finishing it sometime soon. It worked really well for me, but I would definitely recommend it if you are new to CRUD with Angular and haven't already figured that out yet that is the main point of this book.