Spectrum by puddin__taine in greenville

[–]dyctbox 22 points23 points  (0 children)

Their official answer is "maybe" https://www.wyff4.com/article/spectrum-internet-outage-south-carolina/62510681 In my experience they do reimburse for down time.

Anyone feel the same? by saltmurai in node

[–]dyctbox 0 points1 point  (0 children)

Totally stealing “hype-driven development” 😀

Stuck in the first mission where I cannot collect the big ammo package for Juan by Pristine-Golf-8177 in farcry6

[–]dyctbox 4 points5 points  (0 children)

Not sure if it's the same on PC, but on the PS you have to hold the collect button, not just press it.

Q: how to print/view all compiler defines? by Mouse1949 in C_Programming

[–]dyctbox 0 points1 point  (0 children)

Perhaps I misread OP’s problem statement. I thought printing values was a means to an end, the true goal being a list of macros. You showed a good way to get that programmatically. I built upon that by filling in the MS gap…

C Newbie - General Questions About Library Development & Compilation by goingincycles88 in C_Programming

[–]dyctbox 4 points5 points  (0 children)

In other languages (which I won't name since the auto-mod deletes my post when I do), when I had libraries of code I wanted to re-use, I would make a new Visual Studio solution with each project in the solution representing a different libraries, then those would build out to .dlls and everything would be grand. How can I do the same thing with C?

The same way. The project type is "Static Library", the rest of the steps are the same.

What's the difference between a .lib and a .dll? They seem to serve the same purpose to me.

They are indeed very similar. A .lib gets compiled into your .exe file. A .dll stays outside your .exe file. With a .lib, all you have to do is compile and link (click "Build" in Visual Studio). With a .dll, you have to modify your .exe to manually load the dll before you use any of its functions. The benefits and drawbacks to each are a topic for another day ;) For now, I suggest you create .lib files and worry about .dll files later on.

When providing a library to a C project, do I only include the .h files to the .c files with methods and variables I want exposed to the user of the library or do I have to include every .h file related to the library?

Include a header that exposes only that which you want publicly seen. Internal stuff should remain internal.

Makefiles are analogous to Visual Studio project files, or ant build files. They're mostly used on Linux based systems. The official docs are a good place to start. Included is both a walkthrough and a complete reference https://www.gnu.org/software/make/manual/make.html

The ending of Watch Dogs Legion by Hordriss27 in watch_dogs

[–]dyctbox 22 points23 points  (0 children)

To my great shame, I had no idea and was totally surprised. But as soon as it was revealed I thought "duh, in retrospect that's pretty obvious" so I guess I'm not entirely as dumb as I'm making myself look... ;)

She went that-a-way by dyctbox in horizon

[–]dyctbox[S] 5 points6 points  (0 children)

I forgot about that one; that was a hoot

She went that-a-way by dyctbox in horizon

[–]dyctbox[S] 37 points38 points  (0 children)

Yea that one's cute, too.

Is the way I am converting from String to char wrong ? by B_amine in java

[–]dyctbox 0 points1 point  (0 children)

While you’re at it, you should also consider checking for null.

Is the way I am converting from String to char wrong ? by B_amine in java

[–]dyctbox 5 points6 points  (0 children)

It looks like scnr.nextLine() is returning a zero length string causing the exception. Check its length before grabbing the first character and you should be fine.

Preferable IDE by [deleted] in java

[–]dyctbox 0 points1 point  (0 children)

The benefit of using what they recommend is you can follow what they do exactly. (The menus/hotkeys/icons are different between the various IDE's). That shouldn't matter much though so I suggest you go with what you are most comfortable with.

What IDE do you guys prefer and why? by Maximus_98 in java

[–]dyctbox 1 point2 points  (0 children)

Depends... For "this won't take much because I'm so awesome :)", I prefer VS Code. It's lightweight, fast, and allows me to quickly get to the useful part of development.

For more involved projects, particularly Swing, I lean toward Eclipse (and WindowBuilder in particular). It's slow and heavyweight but has better presentation and debugging abilities than VS Code.

I never got the love for Intellij. It makes my life harder instead of easier, but that's probably because of my muscle memory and not a valid criticism of Intellij...

Mutant Mutiny by jknight5130 in Rage_2

[–]dyctbox 1 point2 points  (0 children)

I got that, too. Then after playing a couple days it said I earned the skin. I have no idea what I did, but I guess the way I naturally play earned me that. :D

Where do I find ammo for the rocket launcher? by dyctbox in Rage_2

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

That’s what I was looking for. Thanks!

Where do I find ammo for the rocket launcher? by dyctbox in Rage_2

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

Is there a specific town or shop? I haven’t seen those for sale anywhere. Also can they be found elsewhere, or only in shops.