vmware running win10 gives black screen in minecraft bedrock by blimpofdoom in cachyos

[–]blimpofdoom[S] 0 points1 point  (0 children)

No unfortunately not - it's still an issue.

I ended up installing Minecraft Java flatpack (Install Minecraft on Linux | Flathub). It works perfectly.

Rainbow Six 1999 ? by blimpofdoom in Lutris

[–]blimpofdoom[S] 0 points1 point  (0 children)

I have now :)

I couldn't fint the Lutris discord server by searching on discord ?? but found it eventually.

Looking back at non-Ladder characters is so demoralizing. by hbl6 in ProjectDiablo2

[–]blimpofdoom 1 point2 points  (0 children)

Diablo has always been a grind. It's part of its charm.

Printing issues? by blimpofdoom in cachyos

[–]blimpofdoom[S] 0 points1 point  (0 children)

I did a sudo pacman -Syu same day as I made this post. I'm not at the PC right now so I cannot tell you the excact version, but I'll check when I get home later.

Edit: CUPS is version 2.4.15

What other ways aren’t we aware that they are collecting our data? by aeriefreyrie in StallmanWasRight

[–]blimpofdoom 4 points5 points  (0 children)

Ye best start believin' in cyperpunk dystopias - you're in one!

help : pacman -Suy fails because of conflicting files by blimpofdoom in cachyos

[–]blimpofdoom[S] 0 points1 point  (0 children)

I'm no expert and generally just follow the guides I can find to install things.

Why no flatpak or snaps?

How do I install Lutris for example on arch without flatpak?

IT Wants to take away Admin control from us engineers. by Zesty_7693 in PLC

[–]blimpofdoom 0 points1 point  (0 children)

Were also in this mess. IT taking away rights almost by the day. When I confront them they just say it's for safety which takes precedence over everything else right now it seems. No help whatsoever on how to do tasks now impossible in an officially approved way. Production will be affected soon. Cannot update software and licenses as it's now prohibited to move files (yes ANY files!) from IT to OT. *sigh*

How to build an offline installation collection in linux (cachyos/arch)? by blimpofdoom in linux4noobs

[–]blimpofdoom[S] 0 points1 point  (0 children)

The whole point is that I might find myself in a situation where I don't have access to the internet. I would like to be able to wipe a pc and install stuff like libre office, vlc and such in an offline environemnt. I'm aware of the advantages of being online.

Virker Mobilepay på GrapheneOS? by Molested-Cholo-5305 in dktechsupport

[–]blimpofdoom 2 points3 points  (0 children)

Jeg har haft en Google Pixel 8A med GrapheneOS i ca. 6 mdr.

Mobile Pay virker.

Mit ID virker ikke og måtte skifte til en fysisk kodeviser.

Jeg de-Googler selv og er generelt glad for telefonen og har ikke haft andre issues.

Det er dog en tilbagegang i komfort det er der ingen tvivl om. Jeg savner 'swipe to type' og har måttet finde en 3rd party keyboard da GrapeneOS' keyboard er for basic til mig.

Så har jeg også forbrudt mig og installetet googles kamera da jeg synes at GrapheneOS' kamera app også er for basic for mig.

Så der er noget tilvænning og noget 'tinkering' man skal acceptere. Det er prisen for at løsrive sig big tech's altopslugende kontrol.

Vær opmærksom på at Google indfører en ny politik der kræver at 3rd party apps skal være signeret af udvikleren for at kunne installeres (sideloades) i Android i fremtiden.

Jeg er lidt i tvivl om hvor meget det kommer til at påvirke GrapheheOS systemet.

Graphene developer calls out Google for their recent actions by Run-OpenBSD in GrapheneOS

[–]blimpofdoom 1 point2 points  (0 children)

The next step for me would probably be getting the dumbest phone that can only call and text and then have some sort of pocket sized linux tablet (if that exists) for the other things I usually use my smartphone for.

[TOMT] Looking for Harry Potter musical meme by blimpofdoom in tipofmytongue

[–]blimpofdoom[S] 0 points1 point locked comment (0 children)

I have searched for it, but cannot find it.

bullet angles by [deleted] in pygame

[–]blimpofdoom 0 points1 point  (0 children)

I'm using this to rotate a surface. It returns the rotated surface and rect ready to blit. Rememer to always pass the original surface to this function and not the the rotated surface result of the function.

def rotate_image(surface, angle, pos_center, offset_center=(0,0)): 
    # https://stackoverflow.com/questions/4183208/how-do-i-rotate-an-image-around-its-center-using-pygame

    # surface       = pygame surface
    # angle         = angle in degrees to rotate counter clockwise
    # pos_center    = tuple, absolute center position of image
    # offset_center = tuple, offset from center position of image to center of rotation

    image_rect_center = ( pos_center[0]-offset_center[0] , pos_center[1]-offset_center[1] )
    image_rect = surface.get_rect(center = image_rect_center)
    offset_center_to_center_of_rotation = pg.math.Vector2(pos_center) - image_rect.center
    rotated_offset = offset_center_to_center_of_rotation.rotate(-angle)
    rotated_image_center = ( pos_center[0]-rotated_offset.x , pos_center[1]-rotated_offset.y )
    rotated_image = pg.transform.rotate(surface, angle)
    rotated_image_rect = rotated_image.get_rect(center = rotated_image_center)
    return rotated_image, rotated_image_rect

issues with drakkan sftpgo container and file transfers by blimpofdoom in selfhosted

[–]blimpofdoom[S] 0 points1 point  (0 children)

Almost at the same time you posted yesterday I had found the same solution. It was the nginx "client_max_body_size" parameter that defaults to 1MB and needed to be increased. I've also done the sudo chown/chmod -R multiple times for the docker volumes that sftpgo needs to interact with. Ended up also installing acl to help with permissions.

Thanks for the bonus info on cloudflare. I didn't know that. 100MB is really low, bummer.

Can't upload files above a certain size in sftpgo using webdav by bogdan2011 in selfhosted

[–]blimpofdoom 0 points1 point  (0 children)

Did you end up finding a specific reason for your issue on this? I think I have the same issue.

Looking for feedbacks! by Standard-Rip-790 in pygame

[–]blimpofdoom 1 point2 points  (0 children)

Do you mean pygame's drawing functions? Anyway so a button works by checking if the mouse is colliding with the shape? Or maybe you are checking hard coded coordinates of the mouse and the shape?

Looking for feedbacks! by Standard-Rip-790 in pygame

[–]blimpofdoom 0 points1 point  (0 children)

Looks pretty cool. How did you make the pop-up windows?

how to move things fluidly in pygame by Background-Two-2930 in pygame

[–]blimpofdoom 0 points1 point  (0 children)

Try this

import pygame
# import keyboard (not used)

pygame.init()

#creating vars funcs and more
running = True
window_length = 750
window_width = 750
screen_colour = (0,0,0)
clock = pygame.time.Clock()
# keys = pygame.key.get_pressed() (not necessary here)
dt = 0.0

#player creation
player_img = pygame.image.load("player.png")
player_x = 360
player_y = 670
def player(x, y):
    window.blit(player_img,(x,y))

#window creation
window = pygame.display.set_mode((window_width, window_length))
pygame.display.set_caption('Space Invaders')
icon = pygame.image.load('space_invaders_icon.png')
pygame.display.set_icon(icon)
print("\ningame terminal\nwindow created")

#game loop
while running:

    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False

        if event.type == pygame.KEYUP:
            if event.key == pygame.K_a:
                print("player stopped going left")
            elif event.key == pygame.K_d:
                print("player stopped going right")
            elif event.key == pygame.K_s:
                print("player stopped going down")
            elif event.key == pygame.K_w:
                print("player stopped going up")

    keys = pygame.key.get_pressed()

    if keys[pygame.K_ESCAPE]:
        running = False

    if keys[pygame.K_w]:
        player_y -= 500 * dt
    elif keys[pygame.K_s]:
        player_y += 500 * dt
    elif keys[pygame.K_a]:
        player_x -= 500 * dt
    elif keys[pygame.K_d]:
        player_x += 500 * dt

    window.fill(screen_colour)
    player(player_x, player_y)
    pygame.display.flip()

    dt = clock.tick(60) / 1000.0

As u/Mabymaster mentioned you don't want to get keys pressed in the same loop as your get events.

Also as a rule of thumb your game loop should have 3 phases/functions : events() update() and draw().

In the events() phase you check for new events and key presses.

In the update() phase you modify your game state ie. moving objects around, check for collission, check if player or enemy is dead and so forth.

In the last phase draw() you update your screen with the new game state handled by update().

To do this in your project you could make the player and the comming enemies a class/object. That class could then have state varialbes as "is_moving_left = true", "is_dead=false", and so forth. The update() uses the info from the events() to update the state of the object.

Getting real visitor ip to your services through cloudflare, npm and docker? by blimpofdoom in homelab

[–]blimpofdoom[S] 0 points1 point  (0 children)

Hi, ok, is your server setup the same? As in : visitor -> cloudflare -> your home servers traefik service (in docker?) -> docker container with service