promitheas

joined 2 years ago
[–] [email protected] 4 points 11 months ago

Skyrim for under 4 euro (iirc) in 2012 in a christmas sale.

[–] [email protected] 1 points 11 months ago

No worries, fair mistake :)

[–] [email protected] 17 points 11 months ago (2 children)

Thats github though, not git itself

[–] [email protected] 21 points 11 months ago (5 children)

"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

[–] [email protected] 24 points 11 months ago (1 children)

Evidence of life elsewhere in the universe. It would be so cool. I just hope its far enough we cant get there and fuck everything up for them (or that they cant do the same to us)

[–] [email protected] 2 points 11 months ago

Ive been looking for something like this for a while. Ill need to try it out

[–] [email protected] 2 points 11 months ago

Ah, a man of culture

[–] [email protected] 10 points 11 months ago* (last edited 11 months ago)

Idk but it seems to work pretty well for me

Edit: checked the repo and last activity was 2 months ago in issues. Maybe its still ongoing

[–] [email protected] 1 points 11 months ago

I have a github repo with two themes based on nord. Check it out if you like and I would love any feedback!

[–] [email protected] 1 points 11 months ago

Apologies for piggybacking this post so late especially, but - shameless plug - I have a couple themes based on nord which anyone can add to their instance. I would actually appreciate any feedback on them, so please feel free to check them out (github link)

 

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!

[–] [email protected] 12 points 1 year ago

Some sort of community space, like skate park or exhibition. In the vein of art exhibitions, it could have sections for people to do graffiti

[–] [email protected] 3 points 1 year ago (1 children)

Thanks for the site! What channel are you saying to sign up for? YouTube?

 

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

 

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

 

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.

53
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

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

 

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 🍻

 

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

2
Title (iusearchlinux.fyi)
 
 

Hey everyone. I noticed theres an ootion in the settings to change what the tabs on top are showing, and I changed the last one from All to Multicommunities. However theres nothing there as I havent figured out how to create a multicommunity yet. Anyone have any advise? Thanks!

 

Hey everyone! I currently have an antenna which is a realtek chipset (yuck) that I had to load the drivers myself. Even though I loaded the drivers from this github repo and keep them updated, I'm still getting issues like constant common disconnects, slow speeds (even though on my mobile connected to the same network I may get 6 times the speed), etc... I think I'm ready to pay up and get an antenna that has proper support in Linux, and I found this one after a little bit of searching online: official alfa link.

My question is if this is actually well supported, or even if there is something better I could get (without making me even poorer). What do you guys think, and what are your experiences?

Thanks!

 

Hello everyone.

This semester at uni I'm taking a course which requires me and my group to create a complete software project. Out of the available topics we chose to make an airline ticket booking app, much like skyscanner.com. It is my responsibility to handle the majority of the coding aspect of the project, so I would like your advice.

I would like your thoughts and recommendations on what frameworks/languages/technologies you recommend we use to implement the project. I would like to avoid anything complicated that will take a long time to learn, as I only have a limited number of weeks to deliver. However we do need to be able to have a decent looking frontend, a backend that will allow users to login either as passengers or administrators (them being the ones who manage flights and handle passenger accounts etc.), and passengers should be able to at the very least input a departure city and time, and arrival city and time and get a list of available flights back (the flights don't need to be real-world flights, we can generate that data to simulate the app).

I've checked out pythons flask, but (correct me if I'm wrong) while simple it seems too much so. I would need to handle user authentication, creating and connecting any databases etc. all manually from pretty much scratch. I'm interested in finding that middle ground of simple enough to get up and running with quickly, while not so simple where I need to learn 1000 other things just to get a prototype up and running.

Thanks in advance for your suggestions!

Edit: I asked my professor for advice and as he suggested I decided to go with bootstrap and sqlite. Im still open on suggestions to do the authentications though :)

 

Hey everyone.

Basically I need to do what the title says. I did have xfce4-power-manager installed and had it set there (had the setting disabled so that it wouldn't suspend after inactive), but xfce4-notifyd was creating problems with dunst which I installed and setup last night, so I removed xfce4-power-manager and xfce4-logind.

However now after a few minutes of not doing anything my PC sleeps. There must be a setting somewhere I can edit which is the same thing xfce4 uses to implement this, no? Either a file or another power manager software which will not cause problems with my dunst.

Thanks in advance for all your help and suggestions!

view more: next ›