[-] promitheas@iusearchlinux.fyi 30 points 2 months ago

Quality space nerd humour

[-] promitheas@iusearchlinux.fyi 34 points 2 months ago

To add to your analogy if i may, the firewall is kind of like a security guard or doorman at the building entrance. All mail has to go through him first and if something is addressed to a closed flat (port) he simply doesnt let it get delivered.

98

Hello everyone.

A while ago I got the message on both Facebook and Instagram to either consent to viewing targeted ads or paying the subscription fee. I did neither, and it soon went away. Since yesterday though, I got it again and have no access to any part of facebook, most importantly the accounts section of the settings from where I can delete my account.

How can I delete my account without consenting or paying the fee?

Thanks in advance

5
submitted 2 months ago* (last edited 2 months ago) by promitheas@iusearchlinux.fyi to c/c_lang@programming.dev

Hello everyone :)

I recently wrote a small blackjack game where the challenge I set myself (and the learning goal) was to use pointers to do stuff. So for example instead of having all my functions written in such a way as to avoid using pointers I would use them wherever possible.

It works in its current form and seems to do so quite well, but I would like to learn even more from this project. So here I am asking for your experience. Please give me any suggestions, advice, ways to make it more efficient in terms of memory used, ways to make it more efficient in terms of speed (I know memory and speed might not be so important for a small project like this but my goal is to practice and learn the underlying concepts), criticisms, best practices, or anything that comes to mind when you look at the code.

As an example of what I mean, I would like to make it so that the arrays which hold the player and dealer hands are not of fixed size on declaration, but grow and shrink dynamically as cards are added and removed from them (practice memory allocation/deallocation).

I hope I provided enough info about what I am looking for in a clear manner, but if not please do ask for clarification/additional info.

Thanks in advance!

10

Hello everyone!

So earlier tonight the server seemed to be down for a while. What are everyone's thoughts on coming up with some type of alternative independent back-channel communication method to get short-form updates about outages and other important community updates (community as in for our server, not a lemmy community).

Obviously this ultimately depends on how the admins and mods of this instance feel about this; how willing are they to invest time into setting that up if its something that will not be run and modded by us but by them, and how willing they are to actually use it if it does come to pass.

I am thinking something like mastodon is quite good for this task, but of course if anyone has any suggestions or other ideas please share them. Let's get a discussion going, if this seems like a good idea to you write your thoughts about what you think is the best way to go about it, and if it seems like a not so good idea share those thoughts and reasonings too!

4
eviltoast.org Spammers (eviltoast.org)

Hey everyone. Today I started noticing some people from eviltoast.org spamming the same message over and over again in comment sections (might even be the same person). I took a look at their instance and it doesn't seem to be a very old instance, and it seems like its not a bad place, except for this spammer. I already blocked one account but not too long after encountered the account in the link above. So after I block this guy too, and after reading this comment thread it seems its a bot and they will simply be back with more accounts. What do we do in this situation? Is the only option to simply block them every time we encounter one of their accounts?

11

Hello everyone!

I just got my GMMK Tenkeyless keyboard, which is the first one I own with RGB. I would love to be able to customise the RGB, but being brand new to it I'm a bit lost.

A little preface: I am on Linux. I think this is important later on when I mention Via.

So to start, I looked on the supported keyboards page on the qmk website, and couldn't find my keyboard by searching for GMMK. Furthermore, if I go to the Glorious Gaming site I can't find any other keyboards other than what appear to be their current flagship ones (hence I can't find any specific board information or anything like that). One thing i did find is the software for the GMMK 1 TKL from here, but it is an .exe and hence I can't use it. I did think of running it through wine, but given that there will be firmware flashing involved I'd rather not risk going through a compatibility layer or messing anything up.

I also tried the Via webapp, but when I try to Authorize device I get a browser popup in my permissions section which states that there are no compatible devices found. I'm unsure if this is because it is not supported by Via or if its because it can't detect it because I am on Linux.

I also went through the qmk configurator but unsurprisingly my specific model was not in the list seeing as I couldn't find it in the supported keyboards list I mentioned earlier.

So finally for my question: Is there any way I can configure the RGB on my keyboard without having to find a windows machine and using the GMMK 1 software?

Many thanks in advance!

31

Hello everyone! Summer is coming soon which means the Isle of Man TT and in addition to that the other major event that interests me is the MotoGP which has already started. I would like to watch these live, but I can't find any streams for the life of me by the usual methods (search engine, piracy streaming sites).

How does one find such streams normally? There must be someone pirating them and broadcasting live on the internet, right?

Thanks in advance!!!

11
submitted 3 months ago* (last edited 3 months ago) by promitheas@iusearchlinux.fyi to c/programming@programming.dev

EDIT: Literally 1 second after I pressed the post button I got an idea and thats what it was. Why does that always happen? xD

The solution was that my player_hand[] and dealer_hand[] arrays had a size of DECK_SIZE / 2, but I was initialising them to 0 from within the for loop where I was initialising the deck[] array (which has a size of DECK_SIZE), so the last 24 0s of one of those where overflowing into deck[]...

Hello everyone!

I am trying to make a simple blackjack (21) game in C, to practice some pointer stuff, and I am running into an issue with the function that initialises all my arrays. The way I am going about setting everything up, I have an integer array for a standard deck of 52 cards (values from 1 to 13, each 4 times), an integer array for the shuffled deck, and 2 more arrays for the player and dealer hands (irrelevant at this point as they are not used yet).

My issue is that after successfully initialising the deck array (the non-shuffled one) and outputting the values from within the for loop that sets them, I get what I expect to see which is:

1, 2, 3, ..., 13, 1, 2, 3, ..., 13, ... (so on for 52 cards).

But when I output each value from a different for loop in the same function, the first 24 elements (0-23) are 0s each time I run it. I can not figure out why that would be. I ran my program through valgrind which reported that there were no memory leaks.

Here is the relevant code:

#define DECK_SIZE 52

int initialise_decks(int* deck, int* shuffled_deck, int* player_hand, int* dealer_hand, int size)
{
	printf("=================INITIALISING==================\n");
	for (int i = 0; i < size; i++)
	{
		deck[i] = (i % 13) + 1;
		player_hand[i] = 0;
		dealer_hand[i] = 0;

		printf("deck[%d]: %d\n", i, deck[i]);
	}

	printf("+++++++++++++++++++++++++++++++++++++++\n");
	for (int i = 0; i < size; i++)
	{
		printf("deck[%d]: %d\n", i, deck[i]);
	}
	printf("+++++++++++++++++++++++++++++++++++++++\n");


	return INITIALISE_DECKS_SUCCESS;
}

int main() {
	srand(time(0));

	int deck[DECK_SIZE];
	int shuffled_deck[DECK_SIZE];
	int player_hand[DECK_SIZE / 2];
	int dealer_hand[DECK_SIZE / 2];

	int initialise_status = initialise_decks(deck, shuffled_deck, player_hand, dealer_hand, DECK_SIZE);
	if (initialise_status != INITIALISE_DECKS_SUCCESS)
	{
		return INITILIASE_DECKS_FAIL;
	}

	return PROCESS_EXIT_NORMAL;
}

If you need to try it out for yourself here is the link to the github repo

[-] promitheas@iusearchlinux.fyi 24 points 4 months ago

Could someone explain what happened to me like im 5 please?

6
-9
0
[-] promitheas@iusearchlinux.fyi 30 points 5 months ago

This thread is pretty much all brother 🤣

[-] promitheas@iusearchlinux.fyi 30 points 5 months ago

I sincerely hope so, just to imagine the shocked faces at the company that made legal threats to Tachiyomi, when it itself has no content. I mean how stupid can you be

1

Hey everyone. A while ago I ordered a keyboard from ebay for my T480, but I failed to notice that the one I got was for the T480s, therefore not compatible with my laptop. In the process of checking it out I lifted one of the connecting tape thingys (idk what theyre called) and some of the black plastic covering on the back of the keyboard ripped a bit. Its completely unused and new otherwise, and just been sitting in its packaging since then.

A few weeks ago I came across a local shop that also has some thinkpad stock, and I'd like to see if they'll buy it off my hands. I want to repair it first though, and the obvious first thought for someone inexperienced like me is to use some kind of glue. I didn't do anything yet, so here I am asking for advice. Would using some kind of super glue cause any issues? If yes, what is a good way to repair it?

1000011164 1000011163

9

I have two accounts logged in.

A and B.

When I get a notification for something that happened on account A lets say, the "heading" (idk what to call it) lists account B but the notifications under it are clearly for account A.

1000011162

In the image above the two notifications are from account A but the "heading" is account B.

[-] promitheas@iusearchlinux.fyi 37 points 6 months ago

Eternity. I used Infinity when I was on Reddit, so its not new to me, and there are features I like about it

[-] promitheas@iusearchlinux.fyi 61 points 6 months ago

God: All knowing and all powerful But wait, satellites, oh no!

Bulletproof logic

[-] promitheas@iusearchlinux.fyi 21 points 7 months ago

Can someone fill me in?

[-] promitheas@iusearchlinux.fyi 22 points 7 months ago* (last edited 7 months ago)

Greek is nothing like Latin.

Greek is my first language and Ive (tried to) read Latin, unsuccessfully, meaning no words maake sense to me when I view them from the perspective of "this word could have this greek word as a root"

Edit: This should hopefully put a rest to this discussion

[-] promitheas@iusearchlinux.fyi 23 points 7 months ago

Anyone else like miserable weather and doesn't see an issue with the image?

[-] promitheas@iusearchlinux.fyi 65 points 8 months ago

This was the final straw that pushed me to using stuff like piped and libretube exclusively.

I watched an interesting video about the cobra effect and think at least in my case, its relevant

[-] promitheas@iusearchlinux.fyi 39 points 1 year ago

Your last three posts are a roller coaster in wondering "What's this guy up to?". Thanks for the laughs

view more: next ›

promitheas

joined 1 year ago