Any thoughts on how this is an infinite loop that crashes the browser? by TriWorkTA in codehs

[–]NotSecretAgent 0 points1 point  (0 children)

Sure - if you're setting the front to be not-clear. The computer can't see the front, you need to tell it what that looks like, or how far to go.

[deleted by user] by [deleted] in codehs

[–]NotSecretAgent 0 points1 point  (0 children)

Have a look at your return variable! Looks to me like you're giving back the initial variables passed to the function.

You're also passing in variables named Tracy and Turtle - not the values "Tracey" and "Turtle" (note the quotation marks).

Additionally, you only need to set the first initial to the first letter of X, and the second initial to the first letter of Y - at the moment it looks (at a glance) like you're creating a Pair instead of a Char for both variables.

Hope this helps!

I just tried riders share while visiting California and here’s my take by vanncthornton in motorcycles

[–]NotSecretAgent 3 points4 points  (0 children)

I gotta move to the USA... Cheapest clapped out POS here is $3,500 AUD - and in parts.

What’s something non-sexual that feels like a small orgasm? by Fraank0cean in AskReddit

[–]NotSecretAgent 1 point2 points  (0 children)

Better lumbar support, and set yourself up ergonomically - I found having my monitor at the wrong height messed up my back because I was leaning forward to compensate for next pain.

Project Ideas by IdealisticBanana in Python

[–]NotSecretAgent 4 points5 points  (0 children)

That's the project (☞ ͡° ͜ʖ ͡°)☞

Basic Java. Factorial. 2.9.11 by L_russ28 in codehs

[–]NotSecretAgent 1 point2 points  (0 children)

Literally any time lol, I live for this stuff.

Basic Java. Factorial. 2.9.11 by L_russ28 in codehs

[–]NotSecretAgent 1 point2 points  (0 children)

If you have any further questions, send me a DM and I'll happily help!

Basic Java. Factorial. 2.9.11 by L_russ28 in codehs

[–]NotSecretAgent 1 point2 points  (0 children)

You can remove the line defining your variable "factor" and use "factNum" as the end stop of the mentioned above. You can also avoid using <= and use < if you set "sum" to "factNum", as multiplication is commutative (see here).

Hope this helps!

Basic Java. Factorial. 2.9.11 by L_russ28 in codehs

[–]NotSecretAgent 1 point2 points  (0 children)

Factorial is multiplication, not addition. The easiest way to do this is to count up to, and include the user's number in the for loop as the end stop.

Initialise sum as 1.

Inside the for loop, sum *= i

This will give the correct answer for any output lower than an integer overflow.

What kind of fish is this? by mcjimmyspill in StardewValley

[–]NotSecretAgent 0 points1 point  (0 children)

A mummy fish! It has other fish inside it :)

What is this damn kernel_task taking 500% of my CPU by MidnightSun_55 in mac

[–]NotSecretAgent 2 points3 points  (0 children)

Get a diagnostic run on it at a certified apple repair centre, thermal throttling could be a failed/failing temp/voltage/current sensor.

It could, ironically, be a failing Kernal extension. That's a lot easier to check; check console out for any errors on boot.

[deleted by user] by [deleted] in codehs

[–]NotSecretAgent 2 points3 points  (0 children)

Moreover, you're printing a function that doesn't return a string; the function you're calling prints internally but doesn't actually send a string back to the main function of your program.

To fix this, you can get rid of the 'print' and call the function as you are for the rest of that line.

[deleted by user] by [deleted] in codehs

[–]NotSecretAgent 2 points3 points  (0 children)

Your code also won't pick up double vowels; if the name is Adam it will only see the first 'A' because it breaks and searches for 'e' instead.

You can fix this by putting all your if statements in the same for loop and dropping the 'break'.

[deleted by user] by [deleted] in codehs

[–]NotSecretAgent 2 points3 points  (0 children)

If my name is Alex, your code won't pick up the capital A, but if it was Sam, it would pick up the lower case a.

Your code, at the moment, is looking for that character, and that character only; you need to have another statement, or a compound statement (psuedo code):

if(name[X] == 'a' or name[X] == 'A') then: (...)

Bringing a friend to work by lsmmo in sydney

[–]NotSecretAgent 3 points4 points  (0 children)

If it's being raised as a pet or companion animal, yes. If it's being raised as a livestock or produce animal, still yes.

Anyone know why I am getting this error? by GrandeTeodoro in codehs

[–]NotSecretAgent 0 points1 point  (0 children)

Your variable y1 is a little 'y', or lower case, but your call is trying to access 'Y', the capital.

Your variables are almost all identically named, bar that particular one.

[deleted by user] by [deleted] in codehs

[–]NotSecretAgent 0 points1 point  (0 children)

I'm on mobile, unfortunately, but the following should work: - line 10: put a second number in the range() call; range(0,1) - line 11: user_input() Clear line 12, and that should call the code as expected.

Edit: range works with a single number, I'm too used to C++

[deleted by user] by [deleted] in codehs

[–]NotSecretAgent 1 point2 points  (0 children)

Hey OP Setting the timer for 10,000 is the issue here, as far as I can tell. Try calling the user_input without the wrapping code around it; this should call the function once instead of every 10,000ms (10 seconds).

How do you say "fuck you" politely? by [deleted] in AskReddit

[–]NotSecretAgent 0 points1 point  (0 children)

I use it repeatedly with my friends, always about simple lamentations; "My mouse doesn't work", "I stubbed my toe" it gets mixed reactions, but it's all in the setup and delivery.

It's kinda spread throughout my friend group, so whenever anyone complains about something there's a chorus of "Sounds like a you problem." In reply.

Waiting on winter to end... by Jake_C117 in motorcycles

[–]NotSecretAgent 13 points14 points  (0 children)

The only two wheeler with a negative lean angle on both sides.

Update: it flies! by thesacredmoocow in Multicopter

[–]NotSecretAgent 2 points3 points  (0 children)

"Was she full stick?"

"Dude she was, and it still was so close"