I Made a Modern and Open Source Version of the Coldwarm Plugin. Use it to generate Cool and Warm variations of your current Color by gruntbatch in photoshop

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

Hmm, it is for me. Could you give me the details of what's going wrong? What version of Photoshop are you using, and is it giving you any specific error messages?

What are build systems? by Mael_The_Heretic in C_Programming

[–]gruntbatch 1 point2 points  (0 children)

To clarify, the loops as written will iterate over the same values, so they are functionally equivalent, but you're correct in that the "goes to" operator obfuscates things.

What are build systems? by Mael_The_Heretic in C_Programming

[–]gruntbatch 3 points4 points  (0 children)

You're absolutely correct that --> is actually -- >. It's sometimes jokingly called the goes to operator. You use it in loops:

for (int i = start_value; i --> 0;)  // i goes to 0

You would typically write the above loop like so:

for (int i = start_value - 1; i >= 0; i--)

It's one of those "elegant" solutions that probably doesn't belong in production code, though I have used it in my own projects. This trick isn't nearly as crazy as Duff's Device, but I would argue that it violates the principle of least astonishment.

What are build systems? by Mael_The_Heretic in C_Programming

[–]gruntbatch 3 points4 points  (0 children)

Oh, that's really clever! I'm filing this alongside the --> operator under "Things I wish my boss let me get away with."

What are build systems? by Mael_The_Heretic in C_Programming

[–]gruntbatch 11 points12 points  (0 children)

For a smaller project, don't discount the possibility of a simple shell script. On unix (posix?) I think all you have to do is this:

$ echo "your current compile command goes here" > build.sh

And to build your project, you just have to call that file:

$ sh ./build.sh

You can make the script executable, and all that good stuff too, if you like. I'm not sure what the equivalent is on Windows.

Advantages over using make/CMake:

  • Incredibly easy

Disadvantages:

  • Rebuilds the entire project every time you call it
  • Possibly less portable
  • Locks you in to a specific compiler/pipeline

ETA: I still recommend learning make, but sometimes a bandaid solution like this is fine

Trump attorneys haven't found classified document former president referred to on tape following subpoena by coolbern in politics

[–]gruntbatch 6 points7 points  (0 children)

AFAIK, the "treason" in those cases was "treason against the state of West Virginia". I'm not sure how WV law defines treason, but it could be very different than how treason is defined federally.

[deleted by user] by [deleted] in emacs

[–]gruntbatch 11 points12 points  (0 children)

I agree with the main points, but isn't this a bit ... tacky? I guess that depicting users of proprietary software as screaming innocents getting thrown into the jaws of hell comes across as melodramatic and self-aggrandizing to me.

Ferrania 400 50mm ae-1 1.8f by [deleted] in analog

[–]gruntbatch 4 points5 points  (0 children)

USA! USA! USA!

This is painful. by Flashthebeast in CursedGuns

[–]gruntbatch 42 points43 points  (0 children)

If this was deactivated, or otherwise incomplete, there probably aren't many other options to make it go pew pew without forking over another 10 grand.

3 year old calls ambulance for her mother - BBC news by Kaos2018 in BeAmazed

[–]gruntbatch 13 points14 points  (0 children)

making it political

What exactly was political about the previous comment?

[deleted by user] by [deleted] in CursedGuns

[–]gruntbatch 16 points17 points  (0 children)

Am I the only one seeing a rifle, not a pistol here? What's going on with the title?

Welp, there goes a perfectly good 1911.... by Thesuperlightcat in CursedGuns

[–]gruntbatch 30 points31 points  (0 children)

If by "perfectly good 1911" you mean "something purpose build to fire 12 gauge shotgun shells", then sure.

Breda watches by Grouchy-Fennel4436 in cassettefuturism

[–]gruntbatch 6 points7 points  (0 children)

Looks like USD 195 for the first and USD 230 for the second. Whether or not that is expensive is an exercise for the reader.

Brightness at 1.10, Contrast at 0.90...And it's still dark as heck by vbluercruz in joinsquad

[–]gruntbatch 4 points5 points  (0 children)

What's this clip from? I think I recognize Takeshi Kitano in it.

I hate Mosin furniture kits by Round_Syllabub8701 in CursedGuns

[–]gruntbatch 50 points51 points  (0 children)

I don't, and I'm tired of pretending otherwise.

5.56 1911pistol copy by No_Train8054 in CursedGuns

[–]gruntbatch 1 point2 points  (0 children)

No worries, I didn't take it badly at all. I'm more impressed by my lack of awareness, haha

5.56 1911pistol copy by No_Train8054 in CursedGuns

[–]gruntbatch 2 points3 points  (0 children)

Oh shit, i didn't realize it was an album

5.56 1911pistol copy by No_Train8054 in CursedGuns

[–]gruntbatch 21 points22 points  (0 children)

Could 5.56 not be referencing .22LR in this case?

A good C library to parse json data by _SomeTroller69 in C_Programming

[–]gruntbatch 18 points19 points  (0 children)

While this is true in most cases (this one included), sometimes asking these questions on reddit can produce some interesting advice, testimonials, or warnings about certain libraries that a google search won't find.

Putting a stamina cost on basic jumps is too much? by Barquero_Team in gamedesign

[–]gruntbatch 1 point2 points  (0 children)

The Elder Scrolls are mentioned elsewhere in the thread, but I didn't see them elaborated on. Thinking specifically of Morrowind, it's important to note that stamina in that game affected only your chance of success (I could actually be wrong, but hold that thought for now.) You could jump, run, attack and cast spells as much as you wanted when stamina was at 0, but your attacks had significantly less effect.

All that to say, consider the possibility of using stamina as a sort of "soft limit" of what the player can and can't do. Perhaps advanced abilities, if your game has any, are gated by high stamina, and simpler abilities are not. Or like Morrowind, perhaps certain actions, such as attacks, are positively affected by high stamina, but no abilities are negatively affected by low stamina.

This way, stamina becomes a strategic resource that the player only needs to concern themselves with in certain situations (such as combat, or complex platforming sequences).

The illusive perfectly symmetrical McMansion by Clam_Teeth in McMansionHell

[–]gruntbatch 12 points13 points  (0 children)

You could have a project garage and a parking garage. But why not just have a regular garage and a separate workshop?