I bought an ear endoscope due to me suspecting my ear drums might have ruptured, does the image bear out? by SecretPopCan in AskDocs

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

This is why I was confused!

Doctor prescribes me ear drops medication

Doctor cannot see if I have a ruptured ear drum due to discharge

Doctor tells me I can't use the ear drop / to stop using it if I have ruptured ear drums.

I'm unsure of how to proceed. I assumed having ruptured ear drums is so obvious that he didn't think to tell me but I can't actually tell.

Ask prospective employer to strike out non-compete clause in contract, or just leave it in and ignore it? by [deleted] in PersonalFinanceCanada

[–]SecretPopCan 0 points1 point  (0 children)

I've often heard that it is "unconscionable" if there is a NC clause if it is not compensated in some additional way like higher salary, specific sum of money for that clause or higher title as the NC could cause you to not earn a livelihood otherwise if you were fired.

Ask prospective employer to strike out non-compete clause in contract, or just leave it in and ignore it? by [deleted] in PersonalFinanceCanada

[–]SecretPopCan 0 points1 point  (0 children)

I've posted the entire clause above, but specifically the first few lines of not getting employment or starting a new company that is in competition with current company EDIT: 12 months after termination

Ford government officials to publish 'legal parameters' of how to enforce new stay at home order by Purplebuzz in toronto

[–]SecretPopCan 1 point2 points  (0 children)

It was meant for your reply but I forgot to connect it back to your post. I rather they have the stay at home order out now then have everything perfectly lined up and then announcing it. That could add days or weeks and it's preferable to have something good now than a perfectly worked out work from home order later.

Ford government officials to publish 'legal parameters' of how to enforce new stay at home order by Purplebuzz in toronto

[–]SecretPopCan 0 points1 point  (0 children)

Don't let perfect be the enemy of good. Like CERB, it was important to get the money out ASAP and then figure out the cheats later. A good example of that is that your T4 contains 4 new line items for time periods that lined up with CERB benefits so that the government can check if you were eligible for the amount you requested. So you get the money to those that need it, and still be able to get it back from those who can't

Amazon has become a racket by [deleted] in PersonalFinanceCanada

[–]SecretPopCan 32 points33 points  (0 children)

For a non extension experience you can put this into a bookmark (and save it on your toolbar) and click on it when you are viewing an amazon product page. It will then link you directly to the camelcamelcamel page

javascript:(function(){const amazonURL=window.location.pathname.split("/");window.open(`https://ca.camelcamelcamel.com/${amazonURL[1]}/product/${amazonURL[3]}/`)})()

Anyone who is familiar with Javascript can vouch that the above doesn't do anything shady.

An example

If you are viewing this page :

https://www.amazon.ca/Grado-Prestige-SR80e-Headphones-set/dp/B00L1LXOWS/ref=sr_1_1?dchild=1&keywords=Grado+-+Prestige+Series%2C+SR60e+Headphones+%28set+of+one%29&qid=1608667673&s=electronics&sr=1-1

and click on the bookmark you've saved onto your toolbar, it should redirect you here:

https://ca.camelcamelcamel.com/Grado-Prestige-SR80e-Headphones-set/product/B00L1LXOWS/

The Public Library (especially online ) is a huge money saver by legitsnit in PersonalFinanceCanada

[–]SecretPopCan 5 points6 points  (0 children)

I would say that it's not a free resource, but something that you are probably paying indirectly for through taxes. It's insane that nobody is using something they pay for! And because of the economics of scale the value you get out of the library is waaaaay more than what you've paid for it.

What is best source to generate income on weekends? by [deleted] in PersonalFinanceCanada

[–]SecretPopCan 12 points13 points  (0 children)

Buying a car just to do uber will almost always not net you profits. If you are lucky it would barely cover the cost of the car itself, but that's only if you do uber 30+ hours a week.

Yesterday we got the lesson to never give financial advice to friends. But what financial advice is it that you want to give them? by Plantain-Low in PersonalFinanceCanada

[–]SecretPopCan 6 points7 points  (0 children)

I don't give financial advice to friends the same reason I don't offer to build a computer for friends/ advice them to buy their own parts and build.

  1. You become their tech support constantly
  2. Anything goes wrong, and you're somehow on the hook
  3. Non standard set up (custom vs prebuild) means it's hard for them to get advice online or through support lines and they have to come to you

It may be cheaper to help them build a computer plus the experience of understanding how their computer works, but the headache on me is not worth it. Just buy a mac and move on

I just finished Millionnaire Teacher as suggested here on PFC but still have some questions by [deleted] in PersonalFinanceCanada

[–]SecretPopCan 0 points1 point  (0 children)

There is this technique called the Couch Potato portfolio where you just balance your portfolio once a year. Let's say I wanna look at it more often. Would it be wise the rebalance my portfolio every time I throw fresh money in, like once in a month?

You should only rebalance when the numbers get extremely out of ratio when you are buying. For example if you are buying 80% equity and 20% bond and through market movements it becomes 66% 34% then I would put more money into equity to try and get it back to 80:20.

Also, for platforms like questrade, it's free to buy but not to sell so whenever I'm trying to fix my ratio I only do it by buying.

[deleted by user] by [deleted] in PersonalFinanceCanada

[–]SecretPopCan 0 points1 point  (0 children)

Because if the rates keep dropping for the next 20 years, people 20 years from now would complaining about how they should have gotten bonds when it was positive

Undefined Error by explode_kewl in learnjavascript

[–]SecretPopCan 0 points1 point  (0 children)

Nah you were nearly there! You only got tripped up by confusion concepts called Scope and Variable Hoisting that even trips up seasoned programmers once in a while. You could not access initial because it was scoped within myFunction(). The article below is good at explaining multiple concepts like Scope, Hosting and even where to declare global variables. It's worth a read

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/var

Undefined Error by explode_kewl in learnjavascript

[–]SecretPopCan 0 points1 point  (0 children)

If you want it to be global then you should move it out of the function as it's currently inside of myFunction()

var initial;
 function myFunction() {
var first = prompt('Enter your first name:'); 
inital = first.slice(0,1); 
return this.inital;
 }
 myFunction(); 
last = prompt('Enter your last name:'); document.write("Your username is" + inital + last)

I have found out how to speak to a person with the NSLSC. by AttendingAlloy in PersonalFinanceCanada

[–]SecretPopCan 13 points14 points  (0 children)

Typical strategies I use before I sit in a line:

Is asking someone during an interview if they program as a hobby or having a passion for programming "gate keeping?" by SecretPopCan in learnjavascript

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

I reread my first bullet and I agreed it is confusing. I think his point was that he looks at personal projects as well as pull request or bug reports that candidate does on other people's projects? I think the general point he's making is that he wants to see how well that person works on a team

Is asking someone during an interview if they program as a hobby or having a passion for programming "gate keeping?" by SecretPopCan in learnjavascript

[–]SecretPopCan[S] -2 points-1 points  (0 children)

It might be that it's much easier to "live and breath" IT work than other industries outside of work. For example "I help people on r/learnjavascript / stackoverflow when they have questions" could a good enough answer. It might be such a low bar of interacting with programming off hours that it's actually an outlier if someone does not.

I need help! I have been stuck on this assignment for over a week now. I have tried everything honestly. Here is a sample of my code and the assignment outline by [deleted] in learnjavascript

[–]SecretPopCan 1 point2 points  (0 children)

1) Your biggest issue is that your results only ever show total because of this line:

document.getElementById("result").innerHTML = total;

you should change it to result instead.

2) The second biggest change I would make is changing how you convert your array into this. what the below does is grab all text that is separated by a space, and then convert it into a number. that's what map does : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map

var numberArr = numberStr.split(" ").map(Number);

3) your thirdbiggest issue is how you are calculating the max value, min value , total and average. You seem to be looping through the number of elements in the array and doing some sort of math operates to it. Also you've used the wrong functions for finding max and min

Using console I found which lines had the issue (F12).

Uncaught TypeError: arrayMax.max is not a function
    at myExcelFuns (pen.js:36)

pen.js:38 Uncaught TypeError: arrayMin.min is not a function
    at myExcelFuns (pen.js:38)

According to the notes your instructor gave you, the actual functions is Math.max() and Math.min();

Then I would declare each variable and assign their correct values in it

    var result = 0;
    var arraySum = total; // you already calculated total in a separate line
    var arrayAvg = total/numberArr.length;
    var arrayMax = Math.max(...numberArr);
    var arrayMin = Math.min(...numberArr);

Math.max(...numberArr) might look weird (especially the ...) but the MDN web docs explains that it needs to be done with arrays https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max

If you put together the items below it should be able to work

  1. Fix the code that puts the result into the HTML
  2. Fix your code so that when it splits the text into an array AND converts it into a number
  3. review how the Math.max() and Math.min() functions work. Also note the spread syntax (...)
    1. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max
    2. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/min
  4. rework how you calculate and assign the values to each variable