yo_scottie_oh

joined 10 months ago
[–] yo_scottie_oh@lemmy.ml 11 points 23 hours ago (2 children)

Mind if I ask which VPN service you use?

[–] yo_scottie_oh@lemmy.ml 10 points 23 hours ago

Video. We need video!

 

Inb4 "analytics" is a bad word in the fediverse, understandably so, but I ask because for one of the communities that I moderate, I noticed the banner image and icon image were nearly 20 MB each, so I replaced them with smaller versions (<1 MB each). On desktop w/ a fast wired connection, it's no biggie, but it's good practice anyway to minimize page weight, if for no other reason than to make the site more usable for people on slow or cellular connections.

I tried searching for traffic data about Lemmy, and the best I could find is this page on similarweb.com, which shows traffic broken out by country and referrals, among other things, but a breakout of mobile vs desktop appears to be locked behind a paywall.

Do we have any analytics on mobile vs desktop traffic for Lemmy?

[–] yo_scottie_oh@lemmy.ml 4 points 1 week ago (1 children)

Damn, those are some cute kittens. Btw is that a Caps blanket?

[–] yo_scottie_oh@lemmy.ml 9 points 1 week ago* (last edited 1 week ago)

Supes excited for these two:

[–] yo_scottie_oh@lemmy.ml 3 points 1 week ago* (last edited 1 week ago) (1 children)

Gotcha. So is Wire like, the privacy seeker’s dream messaging app? No phone number, always-on encryption, zero-knowledge servers, open source… any caveats?

[–] yo_scottie_oh@lemmy.ml 14 points 1 week ago* (last edited 1 week ago) (3 children)

Interesting. Since the CEO of Telegram was arrested in France last month, I’ve read countless threads on c/privacy about which messaging app is best for privacy, and the two names that seem to come up the most are Signal and any Matrix client (e.g. Element); however, some commenters point out Signal’s phone number requirement and I forget what the other caveats are.

I don’t recall reading about Wire in any of those threads, but at a glance it seems to check all the boxes (open source, always-on encryption, etc).

Am I missing something? Any ideas why this app wouldn’t come up in such discussions?

EDIT: Hmm, I just went back and re-read a thread from last week, and Wire is actually mentioned. Maybe I’ve just always mentally skipped over it until now.

[–] yo_scottie_oh@lemmy.ml 21 points 1 week ago (1 children)

Keep in mind that executive orders can be easily rolled back by the next chief executive without going through the legislature. Executive orders are a tool that can be used for good, as in this case, but it’s just something to keep in mind.

[–] yo_scottie_oh@lemmy.ml 3 points 2 weeks ago (2 children)

CS2 is rated Gold on Proton DB, so some players are playing on Linux, although that same page lists Steam Deck as Unsupported. I haven’t seen or heard anything to the contrary.

 

Excerpt from the original post on Paradox Forums:

The two Creator Packs — Modern Architecture and Urban Promenades — have been completed by their creators. While the Economy Patch, Detailers Patch, and Decorations Patch are all part of our commitment to improving the base game, we are well aware that the Asset Editor is one of the most crucial remaining features in fulfilling our promise to make mods fully available in-game. To ensure we don’t split our focus, we’ve made the decision to push the release of the Creator Packs to Q4. This will also affect the upcoming release of Bridges & Ports Expansion that will instead come in Q2 2025. We will continue dedicating our efforts to the base game before shifting focus to paid content. Our goal is to ensure the community is satisfied with the state of the game, and once we’ve achieved that, we’ll be excited to release these amazing packs to you!

View the original post on Paradox Forums | Archive.org | Archive.today | Xitter thread (privacy friendly)

[–] yo_scottie_oh@lemmy.ml 2 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Varied exteriors might be enough to keep my inner space station hunter entertained for a while anyway. Thanks for the intel.

[–] yo_scottie_oh@lemmy.ml 1 points 2 weeks ago

Good to know, thanks for the info.

 

Potential new player here (it's on my wish list). From lurking on social media, I gather that the devs have released several significant updates recently, among them an overhaul of space stations ("Orbital"). I get that they are procedurally generated, which means that no two should be alike, but... how different are they?

I ask b/c, while this might sound silly, during my time in Elite Dangerous, one of my favorite things was approaching stations, lining up my ship with the entrance, avoiding collisions, dealing with all the different axes & what not, and then setting her down on the landing pads. (and then I wish I could get out of my ship and explore on foot)

With space stations being procedurally generated, do they still feel pretty same-y or are they unique enough to keep someone like myself entertained? The wiki page for the Orbital update promises a variety of space station interiors, just wondering if actual players would agree.

Also, does NMS have any sort of "advanced flight mode" where I can enjoy the challenge of steering my ship through the obstacles or is it basically fly within the vicinity of a space station and press X to auto dock?

Sorry for the barrage of questions. Thanks in advance!

 

I have the T.16000M FCS HOTAS (throttle and stick) like this one linked on Amazon. When I search Amazon for "dust cover for hotas" I get listings that say "for Thrustmaster Warthog." Does anyone have the T.16000M, and if so, can you recommend a dust cover for those? Doesn't have to be custom fitting, any generic dust cover will do, my main concern is keeping dust from collecting in the ball joint of the stick and the rail of the thrust slider. Thank you!

EDIT: I'm thinking about getting this or this, or just going cheap with some clear plastic bags.

 

Useful links for tracking this issue:

Edit: Viewing and editing functionality seem to be restored.

 

EDIT: After discussing this on Matrix, I believe the answer is in the mod logs. The author of the post in question was issued a temporary ban in another community on lemmy.ml, which I suspect is affecting the display of this user’s content across all of lemmy.ml even though the post in question is in a different community from the one that issued the ban (which is kinda screwy tbh).

Description of the problem

The last several months, I've been trying to build up the community over at !caps@lemmy.world. It's going mostly well, but one thing that has me scratching my head lately is that when I'm browsing from lemmy.ml (i.e. https://lemmy.ml/c/caps@lemmy.world), which is 99% of the time, I can't see the most recent post. Oddly enough, the author is also from lemmy.ml, and I have previously interacted w/ the same user in the comments of older posts, so I know it's not a user-specific issue. I've double checked my profile settings and haven't blocked the community, instance, or user. This issue seems specific to lemmy.ml because I can see it when I browse to the community from other instances.

Any ideas why this could be happening and what I can do to resolve it? Thanks.

Steps to reproduce the issue

Actual result

The post is not there.

Expected result

The post should show up in the feed.

12
submitted 5 months ago* (last edited 5 months ago) by yo_scottie_oh@lemmy.ml to c/python@programming.dev
 

Not sure if this is allowed here, and it's not my playlist, but I thought I'd post these tutorials since I've found them helpful for learning the basics.

 

Hello! I'm attempting to follow some tutorials on unit testing with Python. One of them is a video tutorial Unit Tests in Python on the Socratica channel. Everyone in the comments seems to be making out just fine, and I’m following the instructor’s directions to the letter, yet I get a different result. It’s driving me mad lol.

In the video, the instructor creates two text files, one called circles.py in which she defines a function circle_area(r), and another called test_circles.py in which she writes some unit tests. In my attempt to follow along, I've ended up with two files structured like so:

/home/yo_scottie_oh/Projects/PythonTutorials/Socratica/Circles
├── circles.py
└── test_circles.py

circles.py:

from math import pi

def circle_area(r):
   return pi*(r**2)

# Test function
radii = [2, 0, -3, 2 + 5j, True, "radius"]
message = "Area of circles with r = {radius} is {area}."

for r in radii:
   A = circle_area(r)
   print(message.format(radius=r,area=A))

test_circles.py:

import unittest
from circles import circle_area
from math import pi

class TestCircleArea(unittest.TestCase):
   def test_area(self):
      # Test areas when radius >=0
      self.assertAlmostEqual(circle_area(1),pi)
      self.assertAlmostEqual(circle_area(0),0)
      self.assertAlmostEqual(circle_area(2.1),pi*2.1**2)

Where I'm getting tripped up is at 4:32 in the video, the instructor says to run the unit tests by opening a shell, going to the directory that contains both the circles and test_circles modules, and issuing the following command: python -m unittest test_circles.

Instructor's result (it runs the unit test):

Ran 1 test in 0.000s

OK

My result (it seems to execute circles.py itself):

[yo_scottie_oh@nobara Circles]$ python -m unittest test_circles
Area of circles with r = 2 is 12.566370614359172.
Area of circles with r = 0 is 0.0.
Area of circles with r = -3 is 28.274333882308138.
Area of circles with r = (2+5j) is (-65.97344572538566+62.83185307179586j).
Area of circles with r = True is 3.141592653589793.
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/lib64/python3.11/unittest/__main__.py", line 18, in <module>
    main(module=None)
  File "/usr/lib64/python3.11/unittest/main.py", line 101, in __init__
    self.parseArgs(argv)
  File "/usr/lib64/python3.11/unittest/main.py", line 150, in parseArgs
    self.createTests()
  File "/usr/lib64/python3.11/unittest/main.py", line 161, in createTests
    self.test = self.testLoader.loadTestsFromNames(self.testNames,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/unittest/loader.py", line 232, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/unittest/loader.py", line 232, in <listcomp>
    suites = [self.loadTestsFromName(name, module) for name in names]
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/unittest/loader.py", line 162, in loadTestsFromName
    module = __import__(module_name)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yo_scottie_oh/Projects/PythonTutorials/Socratica/Circles/test_circles.py", line 4, in <module>
    from circles import circle_area
  File "/home/yo_scottie_oh/Projects/PythonTutorials/Socratica/Circles/circles.py", line 14, in <module>
    A = circle_area(r)
        ^^^^^^^^^^^^^^
  File "/home/yo_scottie_oh/Projects/PythonTutorials/Socratica/Circles/circles.py", line 6, in circle_area
    return pi*(r**2)
               ~^^~
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
[yo_scottie_oh@nobara Circles]$

I've been banging my head against the wall for hours now trying to figure out why when I execute the same command as the instructor, it appears to execute my Python scripts themselves instead of running the unit tests.

Other things I've tried:

I've read the Python documentation on unit testing. I tried adding this to the end of the test_circles.py document, but that did not change anything.

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

I've tried following this other written tutorial. After I create the text documents and organize them in the separate shapes and tests folders and run the command python -m unittest discover -v, again I get a different result from the author.

Author's result:

test_area (test_circle.TestCircle) ... ok
test_circle_instance_of_shape (test_circle.TestCircle) ... ok
test_create_circle_negative_radius (test_circle.TestCircle) ... ok
test_area (test_square.TestSquare) ... ok
test_create_square_negative_length (test_square.TestSquare) ... ok
test_square_instance_of_shape (test_square.TestSquare) ... ok

----------------------------------------------------------------------
Ran 6 tests in 0.002s

OK

My result:

[yo_scottie_oh@nobara test]$ python -m unittest discover -v
test_circle (unittest.loader._FailedTest.test_circle) ... ERROR
test_square (unittest.loader._FailedTest.test_square) ... ERROR

======================================================================
ERROR: test_circle (unittest.loader._FailedTest.test_circle)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_circle
Traceback (most recent call last):
  File "/usr/lib64/python3.11/unittest/loader.py", line 419, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/unittest/loader.py", line 362, in _get_module_from_name
    __import__(name)
  File "/home/yo_scottie_oh/Projects/PythonTutorials/PythonUnitTesting/test/test_circle.py", line 4, in <module>
    from shapes.circle import Circle
ModuleNotFoundError: No module named 'shapes'


======================================================================
ERROR: test_square (unittest.loader._FailedTest.test_square)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_square
Traceback (most recent call last):
  File "/usr/lib64/python3.11/unittest/loader.py", line 419, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/unittest/loader.py", line 362, in _get_module_from_name
    __import__(name)
  File "/home/yo_scottie_oh/Projects/PythonTutorials/PythonUnitTesting/test/test_square.py", line 3, in <module>
    from shapes.square import Square
ModuleNotFoundError: No module named 'shapes'


----------------------------------------------------------------------
Ran 2 tests in 0.000s

FAILED (errors=2)

So yeah… this brings me to my question: What’s the obvious thing that everybody else gets that I'm missing? Is the tutorial outdated? Is it because the instructor is on Windows and I’m on Linux? Why won’t my unit tests run?

 

This would make me sad. 😢

Judging from its profile, it seems there's been no activity in the last two weeks, plus I messaged it yesterday trying to get it to join a community, and the documentation says I should receive a reply confirming the new subscription, but alas, radio silence.

I don't see an issue on GitHub, which makes me think it might be user error, although it also seems highly unlikely that no video links have been posted in the last two weeks.

Does anyone know what's up?

 

Hello c/datahoarder! I need your help. Not sure whether this has been asked before—I've tried searching the web, but the only advice I can find is how to download episodes for podcasts whose feeds are still active.

The problem I'm trying to solve is that one of my favorite podcasts, Endless Boundaries Jam Radio, went offline during the pandemic. All the usual feed aggregators still show up in internet searches, but as they are not file hosts, just feed aggregators, all the episodes are now dead links (e.g. Podbay, Tunein, etc).

Thing is, I had already downloaded several episodes using the Playapod app on my iPhone. It's usable for now, but I'm very concerned about when I need to upgrade to a new phone.

Is there a trick for access the individual files on my iPhone that were downloaded through a third party app such as Playapod? TIA

EDIT: I figured out how to do what I wanted. Once I had installed ifuse and related dependencies (e.g. libimobiledevice) on my Linux PC, I could connect my iPhone to my PC via USB and browse the files on my iPhone in my distro's default file browser. Many folders are named as GUIDs, making it harder to tell what's what by just looking at their names, but I narrowed down the right folder by opening up the Disk Usage Analyzer app in Linux. In my case, the Playapod app is one of very few apps with more than a gigabyte of data. I still have to go through and figure out which episode each mp3 file is, but that's still better than having nothing at all.

Thanks to everyone who responded. I hope this info helps anyone else in a similar predicament!

view more: next ›