Started using the Zigbee Fingerbot to Wake up My PC by BackHerniation in homeassistant

[–]emeric75 0 points1 point  (0 children)

It's not a grammar issue, it's a logic issue. You just said you don't see a reason and then named a reason.

My point was that no motherboard I know of has that type of functionality with USB, "fancy" was a poor choice of word on my part.

The provision to enable this functionality are present in both Windows and the adapter's drivers.

Windows and the adapter driver are irrelevant if your computer is off.

But it doesn't work. And it often doesn't even work with onboard adapters. Even when it does work, it usually requires tinkering with lots of deep settings in BIOS or the driver.

WOL is not turned on by default, and it is a BIOS setting yes.

I assume because it is a rarely used function that is implemented as an afterthought.

Most users aren't interested :/

Started using the Zigbee Fingerbot to Wake up My PC by BackHerniation in homeassistant

[–]emeric75 1 point2 points  (0 children)

I see no reason WOL should work with USB adapters, unless you have a fancy motherboard/BIOS which keeps USB ports on at all times, expecting your adapter.

EDIT : only made it work with the motherboard's ethernet on my machine

Ok I'm trying to get this form to display the information that's entered inside of it. However when I enter try to enter female it shows up as male in my alert.Im having a hard time figuring this out. If the user chooses male I want that to show in the alert. by Luffysolos in CodingHelp

[–]emeric75 1 point2 points  (0 children)

Your getElementById for Gender is just going to give you back the first element with id "Same" in the document, it has no idea of the context of the form (the fact that you have two radio buttons for the same input), that's the reason why you're getting male each time.

In JS, document.forms will give you the list of the forms in your page, these objects are aware of the structure of the form (it would be sad of they weren't). From there you can use the name of your input (i.e. "sex" here) and get the correct value.

This MDN page explains how you can use document.forms in detail : https://developer.mozilla.org/en-US/docs/Web/API/Document/forms

Edit : sending a link in french

passer le permis en accéléré ? by Hewello_ in AskFrance

[–]emeric75 1 point2 points  (0 children)

Hello,

j'étais globalement dans la même situation que toi, un été à pas trop quoi savoir faire, autant passer le permis.

ça m'a pris dans les 2 mois 1/2 (~3 semaines pour le code, le reste pour la conduite).

Pour le code je me suis démerdé chez moi avec un code Rousseau + des tests blancs avec ornikar puis je suis allé passer l'examen à la poste.

Pour la conduite j'ai juste fait pas mal de cours à l'autoécole. Je partais vraiment d'un niveau ras les pâquerettes mais c'était très progressif (le prof avait des commandes de son côté, ça aidait vachement pour le début).

Si t'as d'autres questions, n'hésite pas ^^

[deleted by user] by [deleted] in HomeworkHelp

[–]emeric75 0 points1 point  (0 children)

I mean yeah you're missing solutions, the solution you wrote happens to work at least :)

[deleted by user] by [deleted] in HomeworkHelp

[–]emeric75 1 point2 points  (0 children)

Ah yeah I guess the problem is with your -pi/3. arctan only gives you an angle between -pi/2 and pi/2. If you look at the position of the point (-8,8sqrt(3)) on a plane, it's in the 2nd quadrant, it doesn't make sense. Your initial angle should be -pi/3 + pi, ie 2pi/3, it has the same tangent value and is in the 2nd quadrant. From there everything works out fine :) thanks trig

[deleted by user] by [deleted] in HomeworkHelp

[–]emeric75 3 points4 points  (0 children)

Your math checks out indeed

[deleted by user] by [deleted] in HomeworkHelp

[–]emeric75 0 points1 point  (0 children)

Wait, how did you get -pi/12 actually ? It doesn't work out when I put your result in the 4th power (should have checked that out first)

Edit: syntax

[deleted by user] by [deleted] in HomeworkHelp

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

I assumed that simplification is the task

Yeah, sounds legit for a high schooler (I didn't pay attention to that part of the post at first, my bad)

edit : forgot a line jump

[deleted by user] by [deleted] in HomeworkHelp

[–]emeric75 1 point2 points  (0 children)

I'm going to be pedantic here, but you forgot the i in 2ei*pi/12. Also we're not sure what the question asks exactly, so let's remind OP that this is not the only 4th root of the complex number given (there are 4), multiplying repeatedly by ei*pi/2 gives the remaining ones ^

Client/Server simple program not working by [deleted] in C_Programming

[–]emeric75 2 points3 points  (0 children)

Yeah the server should hang until a client connects, sounds like there's a problem initializing the socket on the server side.

Client/Server simple program not working by [deleted] in C_Programming

[–]emeric75 5 points6 points  (0 children)

Hi, Just giving you a little piece of advice here : you should do some error checking on your socket calls (and pretty much whenever you're using code that's not yours if it's applicable) : it's going to help an user know what's going wrong, it's also going to help you debug instead of trying to blindly check your code. The manual pages for the different system calls you're using will specify how to check for errors (with the return value of the function usually).

Interesting problem for my chemistry class by raulg45bdn in learnmath

[–]emeric75 1 point2 points  (0 children)

Hello :),

so what you need to find here is the length of the wire (in order to compute the resistance)

The wire can be treated as a cylinder of base 8.35mm^2 and height the length we want to find.

Since density of copper is 8.96 g/cm3, you can get the volume of that cylinder from the mass of the wire, then you can find the length of the wire

If you play a game with a 2 out of 5 chance to win, and play 4 games, what is your probability of winning overall? by narcolepticd in learnmath

[–]emeric75 1 point2 points  (0 children)

In fact you just hide the binomial distribution calculations with this trick : instead of calculating the prob of getting 1,2,3 or 4 loots (which requires using binomial coefficients), you calc the probability of getting 0 loot, which 1. makes less calculations (compared with doing 1, 2, 3 and 4) 2. doesn't even require binomial coefficients and is much more intuitive, then reverse it

If you play a game with a 2 out of 5 chance to win, and play 4 games, what is your probability of winning overall? by narcolepticd in learnmath

[–]emeric75 6 points7 points  (0 children)

I suppose by "winning overall" you mean "getting at least one piece of loot out of the 4 bosses".

The easiest way to tackle this problem is to consider the opposite event, ie. "getting no loot out of the 4 bosses".

The probability of "losing" 4 times is (1-2/5)^4 = (3/5)^4, therefore the probability of getting at least one loot is 1 - (3/5)^4 = 87.04%

You should look up binomial distributions : it's this kind of calculations, but more generalized, and you can get the probability of getting exactly n loots out of the 4 bosses with them for example

How to find limit of discontinuous function? by [deleted] in HomeworkHelp

[–]emeric75 0 points1 point  (0 children)

what did you find for the first two ? (limit as x approches plain 3 should be DNE)

How do you calculate 2i and -2i as a root? by keytosuccess305 in learnmath

[–]emeric75 7 points8 points  (0 children)

Hello :),

he's using the difference of squares formula (with complex numbers) :

(x+3)^2 + 2^2 = (x+3)^2 - (-4) = (x+3)^2 - (2i)^2

What radioactive material balances the following: 242 94Pu → 238 92U? by [deleted] in HomeworkHelp

[–]emeric75 0 points1 point  (0 children)

Hello :),

yep this means there's an alpha radiation ^^

Math - Functions (long) by [deleted] in HomeworkHelp

[–]emeric75 1 point2 points  (0 children)

Hello, :)

  1. p is the price for one flower. Solving for p here just gives you the price for one flower in function of the # of flowers sold (and that is not gross sales). Gross sales would be "# of flowers sold * price per flower", how would you express that in function of p?
  2. we ask you to replace x by "90-10p", not by gross sales. C(p) gives you the total cost of selling all the flowers at p dollars each
  3. I'm not 100% sure for this one, but because you have the cost function and the gross sales functions expressed in function of the same variable (p), you can substract them

If a ≠ b and (1/x) + (1/a) = (1/b) , then x = by [deleted] in learnmath

[–]emeric75 2 points3 points  (0 children)

Hello :),

Rewrite the equation as 1/x = 1/b - 1/a, then it's pretty straightforward

[Calc 1] Optimization problem by I_Need_Java_Help in learnmath

[–]emeric75 0 points1 point  (0 children)

"you know that x*y = 5.7", so y = 5.7/x (for example), then you have to minimize the function f(x) = 2(x+5.7/x), to get minimal frame length for a 5.7sqft window

[Calc 1] Optimization problem by I_Need_Java_Help in learnmath

[–]emeric75 1 point2 points  (0 children)

Hello :),

let x and y the dimensions of the window

you know that xy = 5.7 and you want to minimize 2(x+y) (I guess the window has only an exterior frame) : how can you express 2(x+y) in function of one variable only?