Spyke

Posts

privacyguides·Privacy Guidesbypromitheas

Deleting facebook account without consenting to new EU ad policy or paying the subscription

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

View original on iusearchlinux.fyi
95
c_lang·C Programming Languagebypromitheas

Blackjack game as a learning experience - Request for suggestions, ways to make it better, advice etc...

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 you 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!

Blackjack game as a learning experience - Request for suggestions, ways to make it better, advice etc...https://github.com/promitheas17j/blackjack/tree/mainOpen linkView original on iusearchlinux.fyi
5

Server down earlier. Thoughts on having some form of "backchannel" communications?

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!

View original on iusearchlinux.fyi
10

eviltoast.org Spammers

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?

https://eviltoast.org/u/ThuleanPerspectiveOpen linkView original on iusearchlinux.fyi
4
mechanicalkeyboards·Mechanical Keyboardsbypromitheas

GMMK Tenkeyless Gateron Brown - Customise RGB

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!

View original on iusearchlinux.fyi
10
programming·Programmingbypromitheas

[SOLVED] [C] Blackjack game - array has 0s in first 24 elements immediately after initialising with values from 1 to 13

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

View original on iusearchlinux.fyi
11
darksouls·DarkSoulsbypromitheas

Killed Gaping Dragon, proceeded to lose all souls in Blighttown

So after my previous post asking for guidance on where to go, I headed down to the depths. Got pretty good at clearing it and learning the general layout, so I thought I was the sh*t. Then killed the Gaping Dragon first try, which didn't help my ego. I didn't think of getting back to the bonfire before proceeding to Blighttown in my excitement. Long story short, before getting to the first Blighttown bonfire on one of my runs I got cursed and then proceeded to lose all 38k or so of my souls in Blighttown '_'

Sad part is I have the ring that breaks on use but you keep your stuff, I just didn't equip it.

I'll know for next time I guess :)

View original on iusearchlinux.fyi
2
darksouls·DarkSoulsbypromitheas

Going back to my first playthrough after a long time, what do?

Hey guys, so after a long break due to a mix of building a new PC, exams, work, and a bunch of other stuff I am finally going back to try and complete my first ever Dark Souls 1 playthrough. Problem is, I'm a bit lost on what I was doing. I have a checklist in my note app for each boss I've killed, so maybe someone could guide me on what I should probably be doing based on that:

  • Asylum demon
  • Bell gargoyles
  • Taurus demon
  • Capra demon
  • Moonlight butterfly

These have all been defeated.

Thanks in advance!

View original on iusearchlinux.fyi
0
thinkpad·ThinkPadbypromitheas

How to fix T480s/T490 keyboard connector (images for context inside)

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?

View original on iusearchlinux.fyi
2
selfhosted·Selfhostedbypromitheas

Linode Alternative Suggestions for Small Projects

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).

View original on iusearchlinux.fyi
68
archlinux·Arch Linuxbypromitheas

Associate Discord Server Invite Links With Discord Through xdg commands

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

View original on iusearchlinux.fyi
16
linux_gaming·Linux Gamingbypromitheas

Im seeing a lot of these posts so heres mine

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 🍻

View original on iusearchlinux.fyi
99
linux_gaming·Linux Gamingbypromitheas

[Solved] Can not for the life of me get WoW working with Lutris

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

View original on iusearchlinux.fyi
23