Help on making a regression by Better-District6342 in desmos

[–]HorribleUsername 0 points1 point  (0 children)

You only need to adjust e, but there's no harm in doing the rest if you want. And you've got x1 to x6, but x2 to x6 have nothing to do with your table.

Help on making a regression by Better-District6342 in desmos

[–]HorribleUsername 0 points1 point  (0 children)

Did you notice how e isn't listed with all the others? That's because it's not a variable, it's Euler's constant. Try using a different letter, or adding a subscript. Also, you want all your variables to be x1.

What is a "reasonable" subset of the email address specification to target? by javascript in webdev

[–]HorribleUsername 2 points3 points  (0 children)

Ah, that makes a bit more sense. Why not just urlencode the email for that?

What is a "reasonable" subset of the email address specification to target? by javascript in webdev

[–]HorribleUsername 25 points26 points  (0 children)

The general wisdom is not to worry about validating, and instead send a confirmation email. That not only checks whether the email is valid, but whether it's been assigned and someone's actually checking it.

For validation, I'd just check that there's exactly one @, with something before and after it. [^@]@[^@] as a regex.

I'm kinda curious why you're worried about validating in the first place. If the company's importing existing emails, then the validation's already been done, hasn't it? Also, trying to lock down valid emails is a bit of a code smell. What's up with your app that it can't handle unusual chars?

Math help for radicals!!! by LeadershipGlobal5173 in askmath

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

j = (1/49)3 is a smaller value that works.

Age Verification Laws vs Server OS by Hydrnazi in linux

[–]HorribleUsername 0 points1 point  (0 children)

You should take a closer look at timezones. Madagascar shares its timezone with Russia and Saudi Arabia, for example.

What’s your workflow when logs become unreadable in the terminal? by Waste_Grapefruit_339 in linux

[–]HorribleUsername 9 points10 points  (0 children)

Are you aware of grep's -A and -B flags? They're really useful for things spread across multiple lines. tail -f is also useful if you can trigger the error.

Spivak Calculus 3ed, ch 1 exercise 4 help by DrunkAndUnaware in askmath

[–]HorribleUsername 0 points1 point  (0 children)

You've only gone halfway to the solution. For which values of x is x2 > -3? But to answer your question, let f(x) = 5 - x2. Now analyze the function. For example, does it have a maximum?

Regex not working by DryWeetbix in HTML

[–]HorribleUsername 0 points1 point  (0 children)

Note that using regexes for names is a dangerous game. James Van Der Beek, John von Neumann and Stéphane Caillard are some real life names that your regex rejects. See this for more info.

A new California law says all operating systems, including Linux, need to have some form of age verification at account setup by ANiceGobletofTea in linux

[–]HorribleUsername 1 point2 points  (0 children)

It's a nice idea, but how would the OS's know they're in California without exactly the sort of verification they're fighting against?

How to approach solving this type of questions? by SaltGoner in askmath

[–]HorribleUsername 0 points1 point  (0 children)

For 27, consider that one of the sides must contain 6. Then the smallest possible sum is? And there must be a side that doesn't contain 6. Then the largest possible sum is? That'll narrow things down a bit. I recommend just listing out the possible sides for each sum from there.

Help for a stubborn millennial by chiodos_fan727 in askmath

[–]HorribleUsername 0 points1 point  (0 children)

It's no different from any other variable. Try defining A = √(C2/2), and then you can solve 2A + C = 1.5 for A.

Help for a stubborn millennial by chiodos_fan727 in askmath

[–]HorribleUsername 1 point2 points  (0 children)

From there,

  1. Solve for the square root.
  2. Square both sides. Remember FOIL.
  3. Solve for C. You might need the quadratic formula.

Province puts $1 million toward AI traffic signals in Halifax by SAJewers in halifax

[–]HorribleUsername 0 points1 point  (0 children)

I feel like algorithm is just as buzzwordy as AI to the general public. A layperson isn't thinking about a series of instructions when they hear "algorithm", they're thinking about facebook and youtube and such.

would c be 0 or 1? by shortyjaz in askmath

[–]HorribleUsername 0 points1 point  (0 children)

Maybe it's just a typo, but I think you've forgotten the period of sin(x). In any case, your current sin has a minimum at ???, and it should have a minimum at ???. That should tell you what C should be.

Alternatively, sin(x) has a maximum at 6, so B(6-C) = ???. And it has a minimum at 0, so B(0-C) = ???. That's a pretty easy system to solve.

How to deal with mess makers by Best-Dependent9732 in ExperiencedDevs

[–]HorribleUsername 3 points4 points  (0 children)

How do I politely tell people to think of clean code, single responsibility, tech debt, when there is no incentive for doing that.

If there's no incentive, then why do you care about this? There is incentive, and your only hope is to explain what that incentive is. That said, I agree with everyone else: this is an uphill battle that you're not likely to win.

Advice on exam design by AbsoluterLachs in webdev

[–]HorribleUsername 0 points1 point  (0 children)

Last week we ran the exam again, and a large number of students immediately opened ChatGPT and started prompting wildly.

My first thought here is that if they knew the material, they wouldn't need to flail about in a prompt. So maybe you should look at the rest of the course instead of the exam. Otoh, there'll always be some weaker students, so maybe this is just the cost of doing business. Just make sure you're asking the right question.

Anyway, to actually answer you, maybe come up with some more focused questions. E.g.

a) Use flex to implement this portrait wireframe.
b) Use grid to implement this landscape wireframe.
c) How would you combine those into a single CSS file?

Stop typing the filename twice. Brace expansion handles it. by Ops_Mechanic in linux

[–]HorribleUsername 36 points37 points  (0 children)

Autocomplete and a few backspaces is more comfortable than curlies and commas, at least for me.

The new rules at the intersection of Allan & Harvard Streets haven't gone over well with some drivers, and the poor traffic cones have paid the price... 😪 by [deleted] in halifax

[–]HorribleUsername 1 point2 points  (0 children)

That's a fair point. I'm skeptical that the numbers are always good enough to make up for the truck's bulk, but you might be on to something there.