s12

joined 2 years ago
[–] s12@sopuli.xyz 2 points 1 hour ago

… and the offender is an 8-year-old even-whiter female who was found in the forest graveyard several years ago with no discernible parents.

[–] s12@sopuli.xyz 2 points 2 days ago

Understood. I shall check an ending guide before I play. Thanks for the heads up.

[–] s12@sopuli.xyz 2 points 2 days ago
[–] s12@sopuli.xyz 1 points 2 days ago (2 children)

So, does it stand for My Trans Fighters, or Male To Female, or something?

[–] s12@sopuli.xyz 5 points 2 days ago (4 children)

…?
Someone explain?

[–] s12@sopuli.xyz 2 points 3 days ago (2 children)

Looks kind of like an RPG.

[–] s12@sopuli.xyz 5 points 5 days ago (4 children)

Is “Evenicle” what’s in the pic?

[–] s12@sopuli.xyz 5 points 6 days ago* (last edited 6 days ago) (1 children)

I got an itch that could only be scratched with more games.

Somebody had to do it.

[–] s12@sopuli.xyz 18 points 1 week ago (5 children)

Yay!

Things are going well.

Hoping to see France meet the milestone since that’s where the focus of the campaign was.

I wish I could sign from the UK.

[–] s12@sopuli.xyz 1 points 1 week ago* (last edited 1 week ago)

Who, other than children, do not know this yet?

Their parents, new/casual games, charity shops that might want to resell, etc.

It just slaps a big bold 'haha the fuck you isn't even in the fine print anymore' label on a product and makes our cyberpunk dystopia a little bit more obvious, but doesn't achieve any useful goal in terms of altering actual game design/support or consumer rights.

True, but that would make it slightly easier for offline games, games that allow for private hosting, and games with an end of life plan that would allow it. They would be able to compete more easily if they could be easily identified. That could then incentivise companies to add end of life plans.

A step in the right direction would be great. Even if it’s a small step.

[–] s12@sopuli.xyz 2 points 1 week ago (2 children)

I believe another alternative would be to make it completely clear that you’re getting a temporary license. You shouldn’t be able to try to make it look like you’re buying a game when you don’t then even own.

[–] s12@sopuli.xyz 2 points 1 week ago (1 children)

I’m really into Computer Science too.

I got a degree, then spent a year job searching to end up working customer service; carrying drinks up and down stairs for a few months. I eventually got an internship doing programming.

It’s nice to finally have a job in something that I’ve been interested in for a long time, although now I guess a very large amount of my time is spent using computers. Also, even if it pays more, I suppose writing code where I don’t even fully know what it’ll be used for feels less “rewarding” than serving customers.

 

Will I need to clean out dust. How would I do this? How often would I need to do this? Are there any good tutorials on how this would be done?

 

I've been using Linux for at least 2 years. I have Linux Mint on my main computer and Debian on my old computer. Trying to apt update says that the connection failed to security.ubuntu.com, deb.debian.org, ftp.uk.debian.org, etc.

Updating directly from sources such as for the Brave Browser still works. Sites not necessary for updating still work. Accessing them through browser doesn't work (It would give a "Connection was reset" error (for Debian) or an error that mentioned DNS (for main computer)). Pinging them seemed to work. Accessing these sites on my phone still works (though it didn't until I accessed them through mobile data and switched back to wifi). Connecting my Linux Mint computer through mobile data to apt update and switching it back to wifi resolved the issue for my Linux Mint computer, but I wasn't able to get my Debian system to connect through my phone.

Any ideas for causes/resolutions?

 

I have a repository that contains multiple programs:

.
└── Programs
    ├── program1
    │   └── Generic_named.py
    └── program2
        └── Generic_named.py

I would like to add testing to this repository.

I have attempted to do it like this:

.
├── Programs
│   ├── program1
│   │   └── Generic_named.py
│   └── program2
│       └── Generic_named.py
└── Tests
    ├── mock
    │   ├── 1
    │   │   └── custom_module.py
    │   └── 2
    │       └── custom_module.py
    ├── temp
    ├── test1.py
    └── test2.py

Where temp is a folder to store each program temporarily with mock versions of any required imports that can not be stored directly with the program.

Suppose we use a hello world example like this:

cat Programs/program1/Generic_named.py
import custom_module

def main():
    return custom_module.out()


cat Programs/program2/Generic_named.py
import custom_module

def main():
    return custom_module.out("Goodbye, World!")


cat Tests/mock/1/custom_module.py
def out():return "Hello, World!"


cat Tests/mock/2/custom_module.py
def out(x):return x

And I were to use these scripts to test it:

cat Tests/test1.py
import unittest
import os
import sys
import shutil

if os.path.exists('Tests/temp/1'):
    shutil.rmtree('Tests/temp/1')

shutil.copytree('Tests/mock/1', 'Tests/temp/1/')
shutil.copyfile('Programs/program1/Generic_named.py', 'Tests/temp/1/Generic_named.py')

sys.path.append('Tests/temp/1')
import Generic_named
sys.path.remove('Tests/temp/1')

class Test(unittest.TestCase):
    def test_case1(self):
            self.assertEqual(Generic_named.main(), "Hello, World!")

if __name__ == '__main__':
    unittest.main()



cat Tests/test2.py
import unittest
import os
import sys
import shutil

if os.path.exists('Tests/temp/2'):
    shutil.rmtree('Tests/temp/2')

shutil.copytree('Tests/mock/2', 'Tests/temp/2')
shutil.copyfile('Programs/program2/Generic_named.py', 'Tests/temp/2/Generic_named.py')

sys.path.append('Tests/temp/2')
import Generic_named
sys.path.remove('Tests/temp/2')

class Test(unittest.TestCase):
    def test_case1(self):
            self.assertEqual(Generic_named.main(), "Goodbye, World!")

if __name__ == '__main__':
    unittest.main()

Both tests pass when run individually:

python3 -m unittest Tests/test1.py
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK


python3 -m unittest Tests/test2.py
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK

However, they fail when being run together:

python3 -m unittest discover -p test*.py -s Tests/
.F
======================================================================
FAIL: test_case1 (test2.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/s/Documents/Coding practice/2024/Test Mess/1/Tests/test2.py", line 18, in test_case1
    self.assertEqual(Generic_named.main(), "Goodbye, World!")
AssertionError: 'Hello, World!' != 'Goodbye, World!'
- Hello, World!
+ Goodbye, World!


----------------------------------------------------------------------
Ran 2 tests in 0.001s

FAILED (failures=1)

If I try to use a different temporary name for one of the scripts I am trying to test,

cat Tests/test2.py
import unittest
import os
import sys
import shutil

if os.path.exists('Tests/temp/2'):
    shutil.rmtree('Tests/temp/2')

shutil.copytree('Tests/mock/2', 'Tests/temp/2')
shutil.copyfile('Programs/program2/Generic_named.py', 'Tests/temp/2/Generic_named1.py')

sys.path.append('Tests/temp/2')
import Generic_named1
sys.path.remove('Tests/temp/2')

class Test(unittest.TestCase):
    def test_case1(self):
            self.assertEqual(Generic_named1.main(), "Goodbye, World!")

if __name__ == '__main__':
    unittest.main()

Then I get a different error:

python3 -m unittest discover -p test*.py -s Tests/
.E
======================================================================
ERROR: test_case1 (test2.Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/s/Documents/Coding practice/2024/Test Mess/2/Tests/test2.py", line 18, in test_case1
    self.assertEqual(Generic_named1.main(), "Goodbye, World!")
  File "/home/s/Documents/Coding practice/2024/Test Mess/2/Tests/temp/2/Generic_named1.py", line 4, in main
    return custom_module.out("Goodbye, World!")
TypeError: out() takes 0 positional arguments but 1 was given

----------------------------------------------------------------------
Ran 2 tests in 0.001s

FAILED (errors=1)

It seems to be trying to import the same file, despite me using a different file from a different path with the same name. This seems strange, as I've been making sure to undo any changes to the Python Path after importing what I wish to test. Is there any way to mock the path? I can't change the name of the custom_module, as that would require changing the programs I wish to test.

How should I write, approach, or setup these tests such that they can be tested with unittest discover the same as they can individually?

 

Even without the search, those two were the only small SSDs I could find under "Memory and Storage".

 

I assembled my new Framework laptop 16 yesterday and tested it out with a live Linux Mint environment.

Today I tried to install Linux Mint to a storage expansion card. During the instillation, I had to create a secure boot password for the codecs. When partitioning, I made a 32GB Swap and had the rest of the storage as root. During the instillation, there was a fatal error. I tried unmounting the partitions on the card to create a new table to try again (using fdisk). This also gave an error, so I decided to reboot.

When rebooting, the error shown in the image was displayed and then the computer is powered off. Trying to turn it on without the live USB inserted goes to bios. I tried re imaging the USB, but the Framework still displays the same error. I tried disabling secure boot; same result. I tried factory resetting secure boot; same result. I tried booting without the expansion card; same result.

Transcription:

Failed to open \EFI\BOOT\mmx64.efi - Not Found
Failed to load image ###: Not Found
Failed to start MokManager: Not Found
Something has gone seriously wrong: Import_mok_state() failed: Not Found

The "#"s are completely solid (or possibly checked) characters.

I tried creating a debian USB, but using that gave the same error.

I'm unsure what I should do. Any help would be great. Thank you in advance!

Solution: Go into the BIOS with the USB inserted and locate the boot from file option, then navigate the usb to find the grub efi file and use it to boot.

 
 

The recent stopkillinggames campaign has been my first exposure to UK petitions.

Link to petition: https://petition.parliament.uk/petitions/659071
Link to campaign: stopkillinggames.com
Link to the campaigner’s video

Update: Link to the campaigner’s video on the response

 

Does anyone know if this has been reported yet, or how long these issues last for?

 

I don’t know much about graphics cards, but the framework laptop seems to offer an “AMD Radeon™ RX 7700S” and stable diffusion requires Linux ROCm.

It’s not completely clear if ROCm runs on AMD Radeon™ RX 7700S, so I was wondering if anyone had any experience with setting it up on framework.

 

cross-posted from: https://sopuli.xyz/post/770433

Any tips for creating memes using FOSS. I made this in Impress, then copy-pasted it into gimp, and it reduced the quality a lot.

In PowerPoint, you can just select everything, then right-click -> save as image, and it saves whatever you have selected rather than the whole slide. There doesn't seem to be a way to do that in Impress, but I realised you could copy-paste into Gimp and that would copy the objects as an image, so I've been making memes that way.

 

In PowerPoint, you can just select everything, then right-click -> save as image, and it saves whatever you have selected rather than the whole slide. There doesn't seem to be a way to do that in Impress, but I realised you could copy-paste into Gimp and that would copy the objects as an image, so I've been making memes that way.

 
view more: next ›