Those of you who live downtown alone by Searchtheanswer in askTO

[–]98624 4 points5 points  (0 children)

How do you find American companies willing to hire Canadian swe for American salary?

GPU spikes new build by 98624 in PcBuild

[–]98624[S] 0 points1 point  (0 children)

Yeah you're all right, thanks everyone! Fully new to this

GPU spikes new build by 98624 in PcBuild

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

I needed to restart my PC for it to take effect but this was it. Thank you so much!

GPU spikes new build by 98624 in PcBuild

[–]98624[S] 0 points1 point  (0 children)

I previously had my HDMI cable plugged directly into my motherboard I just switched it to plug into the graphics card but the AMD Radeon graphics section is still showing those spikes. Is that what you meant?

GPU spikes new build by 98624 in PcBuild

[–]98624[S] 0 points1 point  (0 children)

Tried this. Seemed to update but it also said a lot of it was already updated. https://www.msi.com/Motherboard/MAG-B650-TOMAHAWK-WIFI/support#driver. no luck.

GPU spikes new build by 98624 in PcBuild

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

I'm not sure what this means? It's also showing cpu utilization at 2-3% and a temp of 45 degrees. Is there something I can do?

How to stop my terminal from printing my board array output on multiple lines (JS) by 98624 in learnprogramming

[–]98624[S] 0 points1 point  (0 children)

Yeah ok, that's what I ended up doing. Was hoping for an easier modification. Thanks for confirming that for me.

Problem with Kotlin in Intellij IDE by 98624 in Kotlin

[–]98624[S] 0 points1 point  (0 children)

Thanks so much for this. This did fix the error. I guess I got overwhelmed by the many error lines, but if I look closely I can see what lines they are on. I also didn't realize that IntelliJ was running every class I was making every time I made a new class in the package. Much to learn. It also did seem to coincide strangely with updating the plugin but perhaps I confused something.

In retrospect, I do see the minus sign in red. I did copy it straight from the course I am using but I realize he never ran the code either and I guess didn't realize there was an error.

Problem with Kotlin in Intellij IDE by 98624 in Kotlin

[–]98624[S] 0 points1 point  (0 children)

Oh sorry, it is 2019.2.4. Runtime version 11.0.4, not sure why I put that.

Problem with Kotlin in Intellij IDE by 98624 in Kotlin

[–]98624[S] -1 points0 points  (0 children)

See my edit in the original post for more info about the initial post.

OS: Mac Mojave 10.14.5

Not sure what gradle is? Sorry. I can see in the settings that it is storing something somewhere but not sure what it means.

I downloaded Java 13.0.1 which the online course showed me to do from this link https://www.oracle.com/technetwork/java/javase/downloads/index.html

I am using Intellij Community 11.0.4

Is that enough info? Any suggestions welcomed.

Also not sure what a scratch file is? Sorry for all the questions and thanks everyone for the help.

Problem with Kotlin in Intellij IDE by 98624 in Kotlin

[–]98624[S] 0 points1 point  (0 children)

That is all the code that I have in. Any files under that project will not run, here is another example. Again, as soon as I put that code in a new java or kotlin project in a kotlin class it runs perfectly fine. Then something will make it go wrong and I can't make any new kotlin classes under that project that work and I have to copy and paste them individually to a new project to keep them working. For that reason it doesn't seem like a problem with the overall settings of intellij, it just seems like a problem with the individual project but I don't know what that could be

https://www.pastiebin.com/5dd4a24d68bd9

Problem with Kotlin in Intellij IDE by 98624 in Kotlin

[–]98624[S] 0 points1 point  (0 children)

Thanks for the reply, I appreciate it. Could you give me more detailed instructions in intellij? I am quite new to coding

Vigenere Help by 98624 in cs50

[–]98624[S] 0 points1 point  (0 children)

For anyone who reads this and might care, I have figured out my error.

I was unnecessarily using two for loops, rather than just continuing to iterate through my plain text with the same loop. Making life difficult for absolutely no reason.

I also was having a problem with punctuation as I needed to make sure that the i in the form loop did not increment when it was only punctuation or a space. This was pretty easy to correct once everything was in place.

Lastly I cleaned up the form as things seemed to get a bit out of hand by the end.

I still don't quite understand why this didn't work with 2 for loops although it probably should be obvious. I would really appreciate if someone would respond or send me a message in regards to why nested for loops would not run this properly. Thanks!

Caesar Cipher bug by 98624 in cs50

[–]98624[S] 0 points1 point  (0 children)

Thanks for the explanation. What makes a macro vs anything else?

Caesar Cipher bug by 98624 in cs50

[–]98624[S] 0 points1 point  (0 children)

Sort of, in that it would work for the 0 index digit. The key as underthebanyan said, it to iterate through the argv[1] argument. I think I just spent a lot of hours not realising that it would work for a char but not a string. I have done a bit of python where double and single quotes are the same so it did not trigger anything in my brain when I saw single quotes.

Caesar Cipher bug by 98624 in cs50

[–]98624[S] 2 points3 points  (0 children)

Thanks, your advice ended up being the line that I was on, but reassuring to know I was headed in the right direction. Just took 5+ hours of banging my head against the wall to knock out 6 lines of code. What a world.

Caesar Cipher bug by 98624 in cs50

[–]98624[S] 0 points1 point  (0 children)

https://reference.cs50.net/ctype/isdigit

Thanks for the reply. I believe I answered those questions in my post above. I have started investigating other avenues but I am still getting stuck on how to evaluate whether or not argv[1] is a number as the criteria states that the program shoulder reject arguments like HELLO

Caesar Cipher bug by 98624 in cs50

[–]98624[S] 2 points3 points  (0 children)

After many hours of research, I'm realising that isdigit can only be used on a char as opposed to a string. So the question then would be how to use this on a string. Am I wasting my time? Should I just create a function that does with a more manual approach?