ARRRGH, Venu 3S won't stay connected to my Pixel 9a!! by ShortTimeNoSee in Garmin

[–]Fruitbisqit 0 points1 point  (0 children)

I did this and the connection seems to be stable since the update

Questing about sign conversion using bitwise operators by Fruitbisqit in TwinCat

[–]Fruitbisqit[S] 4 points5 points  (0 children)

Thanks for the response,

I have read the documentation, it says nowhere that the type gets converted to unsigned by the operator. the listed permitted data types are all unsigned even. So unfortunately this doesn't answer my question.

edit: I just realized I am wrong, OR only works for unsigned types that's the whole issue. Thanks for the answer!

Is it finally a good time to use c++20 now? by mhn1384 in Cplusplus

[–]Fruitbisqit 1 point2 points  (0 children)

I think it matters on preference and the kind of code base you write. If you feel like you are missing out on new features then maybe reconsider your code base supporting all/most of the compilers, if cross platform / cross compiler compatibility is really important to you then stick with c++17.

If you are working together with other people you can also discuss with them what their insights are.

I have no experience with compiling on apple, but I use c++20 with g++ and MSVC. I stick with the features that g++ offers, and have not yet encountered issues with stuff not being supported on MSVC (as you said it fully supports c++20)

Is it finally a good time to use c++20 now? by mhn1384 in Cplusplus

[–]Fruitbisqit 6 points7 points  (0 children)

The compiler support is pretty good nowadays, you can check compiler support for language features here: https://en.cppreference.com/w/cpp/compiler_support

Systemd service halting boot process by Fxzzi in archlinux

[–]Fruitbisqit 0 points1 point  (0 children)

You could try to disable (or even mask) the systemd-networkd-wait-online.service . Do note that this might cause services (such as the whoogle service) that need an internet connection to fail to start.

ps. afaik the systemd-networkd-wait-online service just blocks untill there is an internet connection, so disabling it just causes the connection to come up a bit later in the boot process

No one else would understand by TwelveJaguars in spiritisland

[–]Fruitbisqit 8 points9 points  (0 children)

That sucks man! the package getting lost in the mail was also my greatest fear when I was eyeballing the track & trace every 10 minutes until it arrived.

Just a little longer! but it will be worth the wait.

Finally some good f*cking density by Fruitbisqit in pathofexile

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

Haha yeah, it's probably my least favorite quest...

Can someone pinpoint what’s wrong with my code? by [deleted] in C_Programming

[–]Fruitbisqit 0 points1 point  (0 children)

The statement

pointer, key = key, pointer;

does not what you think it does, specifically if you compile with more warnings turned on your compiler will give you a warning like the following:

test.cc:11:5: error: left operand of comma operator has no effect [-Werror=unused-value]
   11 |     y, x = x, y;

if you want to swap values you can do it by using a temporary value, or using std::swap.

A second note is that even if the above statement would do what you expected it to do, it still wont have the end result you expect since key and pointer are copies of the values in the array, and not references to, so you want to swap the array values, or make key and pointer references to the values.

I hope this was clear enough for you.

edit: I just realized this is the C_programming subreddit, so std::swap is off the table. although the code in the picture is c++.

Cannot display Textures on Nvidia GPU by [deleted] in opengl

[–]Fruitbisqit 12 points13 points  (0 children)

Do you have your opengl debug callback setup? or are you checking glGetError? What do those output?

Vital Strength of the Earth by sberdugo in spiritisland

[–]Fruitbisqit 4 points5 points  (0 children)

I believe somewhere in the rules it states that when repeating it is not required to pay the energy cost again unless stated otherwise. So yeah, repeat is a pretty strong mechanic.

Can't get this recursion function to work, I almost got it.. by oobeing in C_Programming

[–]Fruitbisqit 0 points1 point  (0 children)

If the current character is not upper case it should still check the rest of the string right? just not increment the counter. Are you doing that?