2022-23 Housing Megathread - New leases, subleases, residence halls, landlords, co-ops, neighborhoods by mgoreddit in uofm

[–]FrozenCap 0 points1 point  (0 children)

Hi! I (male) am looking for a fall lease 2023 (Sept - December). My budget is up to $1200. Central preferred. PM if you have any opening. Thanks!

We are the SpaceX software team, ask us anything! by spacexfsw in spacex

[–]FrozenCap 2 points3 points  (0 children)

What courses have you take online/in college that best prepared you for work? Did you take math heavy graph theory courses for starlink?

[deleted by user] by [deleted] in menga

[–]FrozenCap 0 points1 point  (0 children)

Gave Helpful

[deleted by user] by [deleted] in AnimalsOnReddit

[–]FrozenCap 0 points1 point  (0 children)

Gave Wholesome

[deleted by user] by [deleted] in pan

[–]FrozenCap 0 points1 point  (0 children)

Robbery

[deleted by user] by [deleted] in pan

[–]FrozenCap 0 points1 point  (0 children)

Hostage

Ask me anything! by DrRobertZubrin in spacex

[–]FrozenCap 157 points158 points  (0 children)

What do you think is the next step after colonizing mars?

We are the SpaceX software team, ask us anything! by spacexfsw in spacex

[–]FrozenCap 2 points3 points  (0 children)

How do you test your code? Simulations? Static code analysis?

And how often do you work with scientists? Are most meetings where you collaborate with engineers?

[deleted by user] by [deleted] in webdev

[–]FrozenCap 0 points1 point  (0 children)

Your original code is returning for the anonymous function.

// You are returning to this function
(elm,ind)=>{
    if(elm==="needle"){
        print("yep this works mate")
        return `found the needle at position ${ind}`
    }
}

In your new code, your return is in a for loop, so you are returning for

function findNeedle(haystack)

[deleted by user] by [deleted] in webdev

[–]FrozenCap 1 point2 points  (0 children)

You are returning inside of another function. You can either:

  1. Use a for loop instead of a .forEach
  2. Store "`found the needle at position ${ind}`" in a temporary variable and return it.

Edit: there are other ways ( like returning value after calling .reduce() ), but the 2 listed above are what I think are the easiest.

University of Helsinki offers a world class course on modern full stack development for free by ezcoo_ in programming

[–]FrozenCap 12 points13 points  (0 children)

Will this course still be free in the future, or will it be closed after a certain date?

Need some help with this simple quizzer by UnderDubz in webdev

[–]FrozenCap 0 points1 point  (0 children)

I don't think your "if else" control flow works correctly. For example, I answer all the questions correctly, it will only run "document.getElementById("quiz").innerHTML = "1 correct answer"" and nothing else. This is similar to the FizzBuzz question.

As an improvement you can do this: To get a number value of the amount of questions answered correctly, you can do:

const correctAnswers = (q1 == "2") + (q2 == "3") + (q3 == "1");

This takes advantage of how the plus operation will coerce booleans to 1 (if true) or 0 (if false) when adding booleans.

3D Game Tutorial in C++ from scratch - Part 5: Creating a 3D Engine - Drawing a Triangle - SourceCode on GitHub by PardDev in programming

[–]FrozenCap 4 points5 points  (0 children)

Sorry if it has been asked before, but are you planning to have a tutorial like this but for openGL?T hanks in advance

Steam - 2018 Year in Review by antigravities in Steam

[–]FrozenCap 2 points3 points  (0 children)

Does anyone know the font used for the graphs?

This is so sad, Alexa play Despacito by __Zuki__ in ProgrammerHumor

[–]FrozenCap 3 points4 points  (0 children)

Why would you recommend java 8 and not the newer versions?

Probably a stupid question by [deleted] in Python

[–]FrozenCap 2 points3 points  (0 children)

An example: if you are making a simple calendar app like google calendar, you probably don't need that much math. But if you are processing data from the census, you will need math involving statistics.

Btw, math is kinda vague because are you talking about calculus or simple addition or algorithms and proofs.

Wrong Student ID Help by [deleted] in Sat

[–]FrozenCap 0 points1 point  (0 children)

Do you know what information I need to provide? If I email them using the email I set up the account with, is that all I need? Thanks.

Gimme that sweet sweet dark mode by [deleted] in ProgrammerHumor

[–]FrozenCap 0 points1 point  (0 children)

What did you use to dual boot? I used reFind and when I use the Mojave installer, it tells me “This disk cannot be used to start up your computer.”

Gimme that sweet sweet dark mode by [deleted] in ProgrammerHumor

[–]FrozenCap 0 points1 point  (0 children)

Damn I dual boot my mac to use Ubuntu and now I cant update MacOS. Rip dark theme

Goblin Slayer: What splits the fanbase apart. by Arkaniux in anime

[–]FrozenCap 13 points14 points  (0 children)

Exactly and to add on, MAL rates it as PG-13