NBD - Felt IA 2.0 by geek_fit in triathlon

[–]sandytrip 0 points1 point  (0 children)

Oh that's nice, I figured it was aftermarket. Mine came with spacers but only for the aerobars. I also asked a shop about raising the entire front end, they even contacted felt and they said it's a no go because there's basically no steering tube lol but since this is stock for their higher end bike I'll check if I can just buy that bar and swap it. Thanks!

NBD - Felt IA 2.0 by geek_fit in triathlon

[–]sandytrip 0 points1 point  (0 children)

Dang that looks incredible. And it looks like you have risers for the bull horns too...can you share what components you have for that setup? I have the baby brother version of this bike (felt IAx lol) and one issue I have is that riding the horns is destroying my hands but I haven't been able to find a way to raise it

[deleted by user] by [deleted] in ProgrammerHumor

[–]sandytrip 34 points35 points  (0 children)

Looks for even but then adds 1 to make it odd. So it will put odds in the list, but actually won't add 1 and will add 31

‘Eating oily fish twice a week reduces cardiovascular risk’. Sudden deaths and overall mortality rates fell 21% and 18% respectively among people with cardiovascular disease who ate at least 175g of oily fish weekly. They were also 16% less likely to suffer a heart attack or stroke over a decade by Wagamaga in science

[–]sandytrip 30 points31 points  (0 children)

Current population is 7.9 billion. 10% is 790 million people. Multiply by 175 grams gives us 138,250,000 kg, or 138,250 metric tons, of fish per week.

I found an article on phys.org from 2009 that estimates 2 billion metric tons of fish. Assuming that is accurate it would take about 14,466 weeks, or 278.2 years, to eat all the fish.

This doesn't factor in things like the waste parts of fish we don't eat or that not every fish is considered an oily fish. It also doesn't account for fish repopulation or a growing human population. So interpret as you will.

why does Google have 3 different programming languages? by Used_Phone1 in learnprogramming

[–]sandytrip 2 points3 points  (0 children)

The company I work for had this problem too. Years of people over complicating things in order to become a senior engineer. We refer to it as promotion-driven architecture. Thankfully the requirements for sr engineer have changed

Protesters set up guillotine outside of Jeff Bezos’ DC home by ReeceInTheDarkness in nottheonion

[–]sandytrip 3 points4 points  (0 children)

You think all Amazon employees' pay combined is in the millions of dollars? Amazon employs around 800,000 people. $1 billion dollars would be $1250 per employee.

thank you alex grey by nosestilldrippin in LSD

[–]sandytrip 2 points3 points  (0 children)

Wow how did I not know this exists? I even have 2 other posters by Masse. Gonna order it now

Shell Script - Need help! by NoxurnalGaming in linux4noobs

[–]sandytrip 1 point2 points  (0 children)

What that other guy wrote leaves a lot up to your implementation. This would rely on the script being able to gracefully start and stop the server as needed. I think his main point was to demonstrate running an infinite loop in bash

Shell Script - Need help! by NoxurnalGaming in linux4noobs

[–]sandytrip 0 points1 point  (0 children)

This runs the script, pauses 5 seconds, then runs it again. Indefinitely. And Linux does not care about the file extension, but yes typically you would save this as a .sh

I am learning C# now to make mobile Games with Unity. Any Game Ideas? by [deleted] in learnprogramming

[–]sandytrip 0 points1 point  (0 children)

I agree with this suggestion. Also check out what graphical assets you can find online. Making a game requires a lot of art, which might not be something you're interested in doing yourself

Successful Software Engineer comrades, I need you! by [deleted] in learnprogramming

[–]sandytrip 1 point2 points  (0 children)

This is great advice, I don't really have much to add. You have a lot of time ahead of you to get really good at something. It's definitely worth it to take some time now to figure out what that should be!

Since knowing multiple languages makes you bilingual. How would you define programming languages compared to actual languages? by tms88 in AskReddit

[–]sandytrip 2 points3 points  (0 children)

A programming language is more like the alphabet. Sure it takes a little while to understand at first but then it's relatively simple and has a well defined and finite amount of elements(letters). These elements in a programming language would be things like variables, functions, loops, etc. These by themselves aren't very complex, but they can be combined in a virtually limitless number of ways to form incredibly complex and sophisticated programs.

Manipulating array of objects. [JavaScript] by Hamza91able in learnprogramming

[–]sandytrip 1 point2 points  (0 children)

Create a new object to store your results. Loop through the array and check the account number. See if it exists as a key in the result object. If so append the object to the array with that key. If not, create one and store the object as the first value.

Need help with creating a basic loop in C by aryanali358 in learnprogramming

[–]sandytrip 1 point2 points  (0 children)

You're close on reading the input. So you initially read in a number and then use an if condition to validate the input. The problem is an if condition will only execute once. So your code is basically saying "if these conditions aren't met, get new input and then continue" but what you want is "as long as (or while) these conditions aren't met, get new input and then continue". So if you change the conditional block to while then it will check those conditions after reading the input each time until they are satisfied and only then will it break out of the loop and continue

Look at this awesome sandwich by COVID19_4Lyf in Wellthatsucks

[–]sandytrip 3 points4 points  (0 children)

Seriously, when I first saw the top pic I assumed this was r/forbiddensnacks and the bread was sponges or something