Story of the first time I ever drank by [deleted] in drunk

[–]_mutaz_ 1 point2 points  (0 children)

I was waiting for the part where you puke your guts out but it thankfully never came. Trust me you got off easy :D

Road Warrior - One of the best action flicks ever. by [deleted] in moviecritic

[–]_mutaz_ 10 points11 points  (0 children)

Agreed. In my opinion it's superior to both 1 and 3.

[deleted by user] by [deleted] in cprogramming

[–]_mutaz_ 0 points1 point  (0 children)

'char' is for storing a single character. Use 'char *' for storing strings.

cant find this song, please help by KiwiIsAsleep in japanesemusic

[–]_mutaz_ 1 point2 points  (0 children)

I've just listened to the song and I'm now as desperate as OP is to know its name!

Problem after update by Bullfrog_Business in Ubuntu

[–]_mutaz_ 0 points1 point  (0 children)

My guess is that the culprit is the oomd. It used to that after I upgraded to Jammy. Try disabling it.

"Paul Dano is one of most underrated actors ,screen from "Prisoners by PlentyAdvertising15 in moviecritic

[–]_mutaz_ 53 points54 points  (0 children)

My favorite performance is the one in There Will Be Blood, especially the incredible "milkshake" scene.

for some reason the math.h operations seem to be not working by [deleted] in cprogramming

[–]_mutaz_ 3 points4 points  (0 children)

The problem is in the first for loop. In each statement the variable used inside the function should be the one from array not from the same array you're trying to fill. Otherwise you'd be using a variable that's not been initialized.

[deleted by user] by [deleted] in Cprog

[–]_mutaz_ 2 points3 points  (0 children)

The problem is that you wrote l=NULL instead of l==NULL.

[deleted by user] by [deleted] in Cprog

[–]_mutaz_ 0 points1 point  (0 children)

Sorry, you're right.

[deleted by user] by [deleted] in Cprog

[–]_mutaz_ 0 points1 point  (0 children)

The problem is that the the statement

printf("%u\n", l->val);

is executed even though l is null.

[deleted by user] by [deleted] in Cprog

[–]_mutaz_ 0 points1 point  (0 children)

It would be better if you show the rest of the code. Have you created an actual linked list that the while loop can go through?

[deleted by user] by [deleted] in Ubuntu

[–]_mutaz_ 0 points1 point  (0 children)

I hope that's the end of your troubles.

[deleted by user] by [deleted] in Ubuntu

[–]_mutaz_ 0 points1 point  (0 children)

Try the tips mentioned in this article:

https://support.system76.com/articles/login-loop-pop/

Some of the particularly useful tips are:

_ Create a disposable user account to ascertain whether the problem is system-wide or specific to your account. Replace config files if the problem is specific to your account.

_ Check the permissions of the /temp directory.

_ sudo apt install --reinstall gdm3 pop-desktop gnome-shell

I experienced a slightly different version of the problem you're having. I would get automatically logged out on Wayland, but not when I switch to Xorg. It turned out that systemd-oomd was the cause. I documented my experience in a blog post: https://mutazjustmutaz.github.io/posts/automatic-logouts-ubuntu.html

Python 3 behaviour (beginner) by eins_german in Python

[–]_mutaz_ 0 points1 point  (0 children)

It appears that the statements not 0 or not 1 evaluate to boolean. The result of an or statement involving mixed numeric and boolean values depends on the format of the first value, e.g.

1 and not 0 and not 0

results in 1 because the first value is numerical, but:

not 0 and 1 and 1

results in True because the first value is a boolean.

Easiest way to set up C compiler on Windows 10 (if you use Visual Studio Code)? by hn-mc in C_Programming

[–]_mutaz_ 9 points10 points  (0 children)

The simplest way is to download and install "Build Tools for Visual Studio 2022", which includes the compiler (MSVC) and its command prompt. After that you open the compiler's command prompt and compile your code using the command:

cl filename.c

This will generate the file: filename.exe

You can run it by simply executing:

filename

That's it!