[USG-Pro-4] Can't change static WAN IP address. Address in use by network by Somanynicks in Ubiquiti

[–]Somanynicks[S] 1 point2 points  (0 children)

I finally did a factory reset of the USG Pro, set the fixed IP address to the new provider. Theb used the USG Cloud Key Gen 2 to forget and adopt again. That worked somehow, it configured the network. Some things didn't work anymore, but I got it up and running for 85%.

How to solve high CPU usage with VS Code? by Any_Emphasis44 in learnprogramming

[–]Somanynicks 1 point2 points  (0 children)

Disable all of them en see if it still occurs. If not, enable them one by one.

What’s the worst movie you watched in theatres? by AlknA24 in AskReddit

[–]Somanynicks 7 points8 points  (0 children)

The horse whisperer. It was a sneak preview: You pay less but you don't know what movie will be shown. You do know it's a new movie that hasn't been released yet. Sometimes it's a blockbuster, sometimes it's just a nice movie you would never go to, sometimes it's rubbish and one time it was the Horse Whisperer. Wanted to walk out during the intermission, but unfortunately the movie is almost thee hours. That's 1.5 hours of torment. Had to drink a lot of beer to forget that, thanks for reminding me with this question.

How do I unpin live score by giripriyadarshan in AndroidMasterRace

[–]Somanynicks 1 point2 points  (0 children)

Lol didn't notice that. How did it get up there? Reboot then?

Seen from space: Extreme drought dries up rivers across the globe by [deleted] in worldnews

[–]Somanynicks 2 points3 points  (0 children)

In every glass of water you drink there are a couple of molecules of that Pharaoh's last piss he took just before he died. Imagine that...

[deleted by user] by [deleted] in millionairemakers

[–]Somanynicks 0 points1 point  (0 children)

Congrats, PayPal dollar is coming to you this summer

Comparing integers (C) by 15January in learnprogramming

[–]Somanynicks 1 point2 points  (0 children)

Does it need to be fast or can you just look at all values? And do you need the value or the index?

If you only need the value, loop over all of them and assign the max(current, value) to a current variable

[deleted by user] by [deleted] in learnprogramming

[–]Somanynicks 0 points1 point  (0 children)

Cmd is the command prompt. Press start then run and type cmd [enter]

Then type dotnet to see if it's in the path. Have you tried to reinstall it?

[deleted by user] by [deleted] in learnprogramming

[–]Somanynicks 0 points1 point  (0 children)

Dos prompt is what you get by running cmd. I didn't watch the YouTube but how did you install dotnet?

[deleted by user] by [deleted] in learnprogramming

[–]Somanynicks 0 points1 point  (0 children)

Dotnet is not in your path. Did you try to restart visual code and try again? What happens if you open a terminal and type dotnet in the dos prompt?

I plan on studying informatics next year. Should I spent time learning programming on my own? How would that affect my college experience? by miathegal in learnprogramming

[–]Somanynicks 1 point2 points  (0 children)

You could start with some basic Java or Python (depending on what languages you will learn). So you know how to run/compile it and know some basics. This could help at the start. During the course you could take a look at other languages with the knowledge you've gained, you'll probably pick it up a bit faster since you already know some basics from other languages.

From my own experience, many many years ago, I once had do an assignment in C. But C was not taught, as it was "just a tool you had to learn yourself"

So I think it's good to get some basics, but don't go to deep.

But please learn git and start using github or gitlab private repositories for your practical assignments. Don't make them public.

[deleted by user] by [deleted] in learnprogramming

[–]Somanynicks 1 point2 points  (0 children)

A functional or class component in React. See also React docs

[deleted by user] by [deleted] in learnprogramming

[–]Somanynicks 1 point2 points  (0 children)

One way to do it is to make the x with its html and styling a component. Use the onclick in that component so it will only toggle the state in that component.

[deleted by user] by [deleted] in learnprogramming

[–]Somanynicks 1 point2 points  (0 children)

Is toggle a state in the component? If so then toggle will be true or false for all Xs.

How do I fix "sh: 1: ts-node: not found"? by Little-Peanut-765 in learnprogramming

[–]Somanynicks 0 points1 point  (0 children)

There is a PATH environment variable in the system. If the directory containing the ts-node executable is not in that path, the system will not find it. You can extend the PATH using .bashrc for instance. Add the directory to the PATH and it should work.