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

"Employees speak new languages." Is what translate gives me, but I would translate it more as "The ones working speak new languages" or "Those who have employment speak new languages". I still dont get the meme though, so the context might matter more and my translation could be off

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

Quality space nerd humour

[-] promitheas@iusearchlinux.fyi 35 points 7 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.

96

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 7 months ago* (last edited 7 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!

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!

30

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 8 months ago* (last edited 8 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 9 months ago

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

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

This thread is pretty much all brother 🤣

[-] promitheas@iusearchlinux.fyi 29 points 10 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

2

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 38 points 10 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

67
submitted 10 months ago* (last edited 10 months ago) by promitheas@iusearchlinux.fyi to c/selfhosted@lemmy.world

Hello everyone. I just tried to create an account with linode and got the automated cancellation email due to fraud, which left a bad taste in my mouth about the company before I even had the chance to get started.

So I am looking for alternatives that won't break the bank, have linux options, and are fairly easy to use once you get up and running. I dont need to do anything complex, just host my small hobby projects that I'm hacking away at. I don't have anything ready now, but I thought that with new years and all that it might be a good time to snag some deals.

Do you guys know of anything that fits? Thanks!

Edit: Decided to go with Oracle's Always Free option, as at this time being a student (i.e. poor) and just wanting to mess around and learn I can't justify going with a non-free option when a free on is available. I am however stuck on the part where I need to create my instance. I'm getting the out of capacity error, which after reading up on means there aren't available resources for my selected region. I can either try again daily to see if at some point they will be available or select a different region (which as far as I can tell means closing and reopening the account which I want to avoid).

[-] promitheas@iusearchlinux.fyi 62 points 10 months ago

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

Bulletproof logic

16

Whenever I click a server invite link in my browser for example, I get the xdg-open popup window which in turn opens my browser with a link in the following format:

discord:///invite-proxy/some numbers

I'm relatively familiar with xdg-mime commands, but I'm not sure what the "filetype" I should be associating with my discord.desktop file should be. Anyone that can help?

Thanks

95

I've been seeing a few of this type of post, so I decided to share mine. Now, you might be wondering "why the heck is this guy posting his steam playtime chart in a Linux gaming community, when most of it is windows?"

Well, that's because Linux is part of the chart. Last year it wasn't. Just like all previous years. However this year, even if late in the year, I have playtime on Linux.

About half a year ago I built my first PC with Linux in mind from before getting the parts (first time I knew I'd be using predominantly Linux from the start). I still have my windows disk because I haven't got round to moving all the files from there yet, so its still formatted as NTFS and just mounted so I have easy access. I havent booted it since building the PC. I havent needed to. Sure I cant play Destiny 2 or Apex for example, but ehh. Never really played Apex much before anyway, and I'll live without destiny 2.

Heres to 2024 being 100% penguin, or at least being far more than windows 🍻

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

Can someone fill me in?

22
submitted 11 months ago* (last edited 11 months ago) by promitheas@iusearchlinux.fyi to c/linux_gaming@lemmy.world

Hello guys.

I am trying to play vanilla wow using private servers with lutris, and can't get anything to work properly.

I stumbled across this post which has people discussing this topic, but interestingly there is a link to github docs.

I follow the instructions in both this and this but even so, when I go through Lutris to add a game and select to search website for installers, then search for battle.net and follow the installation steps I get the error below:

lutris-wrapper: /home/mart/.local/share/lutris/runtime/winetricks/winetricks
Started initial process 513661 from /home/mart/.local/share/lutris/runtime/winetricks/winetricks --unattended arial
Start monitoring process.
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20230212-next - sha256sum: 2d7770aa1f49f42ad9dafb092110dbf49fa6581738f6b80488cf0d7f59b2de72 with wine-8.0-2754-g48789536649 (Staging) and WINEARCH=win64
Executing w_do_call arial
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_arial 
grep: warning: stray \ before /
grep: warning: stray \ before /
Executing cabextract -q -d /home/mart/Games/battlenet/dosdevices/c:/windows/temp /home/mart/.cache/winetricks/corefonts/arial32.exe
------------------------------------------------------
warning: Running /home/mart/.local/share/lutris/runners/wine/wine-ge-8-24-x86_64/bin/wineserver -w. This will hang until all wine processes in prefix=/home/mart/Games/battlenet terminate
------------------------------------------------------
Executing /home/mart/.local/share/lutris/runners/wine/wine-ge-8-24-x86_64/bin/wine C:\windows\syswow64\regedit.exe /S C:\windows\Temp\_register-font.reg
fsync: up and running.
wine: RLIMIT_NICE is &lt;= 20, unable to use setpriority safely
wine: failed to open "C:\\windows\\syswow64\\regedit.exe": c0000135
------------------------------------------------------
warning: Note: command /home/mart/.local/share/lutris/runners/wine/wine-ge-8-24-x86_64/bin/wine C:\windows\syswow64
egedit.exe /S C:\windows\Temp\_register-font.reg returned status 53. Aborting.
------------------------------------------------------
Monitored process exited.
Initial process has exited (return code: 256)
Exit with return code 256

I'm at my wits end. The closest I got was by directly running the WoW.exe file for a client I downloaded with wine from the terminal. The game started up without audio, and then obviously I wouldn't be able to put in my private server's credentials to log in. Please help me

EDIT: I ended up installing battle.net through bottles and I'm currently installing Diablo3 and Hearthstone - will see how they play.

As for WoW classic, whenever I run the 1.12 client I have in its own bottle it opens and then crashes. If I switch the runner to caffe it takes longer to crash, but my mouse seems to disappear when I take it over the launcher and I can't click on anything.

EDIT 2 SOLUTION: I skipped lutris/bottles altogether and as per a commenters suggestion I looked into adding it as a non-steam game to steam. It ended up working beautifully! Here is the video I watched that shows how to do it on a steam deck

[-] promitheas@iusearchlinux.fyi 22 points 11 months ago* (last edited 11 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 1 year ago

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

[-] promitheas@iusearchlinux.fyi 64 points 1 year 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

view more: next ›

promitheas

joined 1 year ago