sorted by: new top controversial old
[-] yo_scottie_oh@lemmy.ml 2 points 2 days ago

That WaPo article was one of the top search results - thanks for clarifying. I unplugged from the news after the last election, so now I'm playing catch-up.

[-] yo_scottie_oh@lemmy.ml 3 points 2 days ago

Shocker that Trump is a convicted fucking rapist

I've been living under a rock - are you referring to Trump's civil case against E. Jean Carroll or is there a criminal case out there that's just not showing up on the first page of search results?

[-] yo_scottie_oh@lemmy.ml 10 points 1 week ago

Unlikely.

The in-house scanning service at the Internet Archive (IA) differs from the licensing agreements entered into by other libraries. These agreements see libraries license ‘official’ e-book versions from publishers, who charge for every book that’s lent out to patrons.

[-] yo_scottie_oh@lemmy.ml 6 points 2 weeks ago* (last edited 2 weeks ago)

Short answer: Mobile hot spot (w/ your own cellular device) is preferable to public wifi from a security perspective.

There are other considerations, such as how much cellular data downloads cost to you, what sites you’re visiting, what you’re actually doing, etc. In general, it’s advisable to avoid public wifi if you can, but if you must connect to public wifi, then you should make darn sure you connect to the right network (watch out for imposter networks w/ a legitimate looking name) and use VPN (ideally a paid service) to encrypt your traffic. Even with both of these measures, you’re best off avoiding sensitive activities like online banking on public wifi. If you must do banking or other sensitive stuff, either do it on your phone or wait until you get home.

Hope this helps.

Editing to add: When I initially responded, I’d forgotten which community I was in. In this context, I believe the other responses are better than mine, but I’ll keep mine up in case it helps other readers.

[-] yo_scottie_oh@lemmy.ml 4 points 3 weeks ago

Aren’t we still vulnerable through VMs, though? I seem to remember reading something about why Qubes OS is safer than a regular VM, having to do w/ zero trust, etc.

[-] yo_scottie_oh@lemmy.ml 1 points 3 weeks ago* (last edited 3 weeks ago)

Sure, but what’s the claim? I don’t understand playlists for FAST services, nor why an evil corporation would care enough to file a DMCA suit, no matter how frivolous. Is it because these playlists somehow magically block the ads? Do they give non-paying customers access to something normally behind a paywall? Like what am I missing here? Something is not adding up.

[-] yo_scottie_oh@lemmy.ml 6 points 3 weeks ago

I don’t use any FAST services. I know what a playlist is in like Winamp and stuff, but why/how could a playlist be considered a DMCA violation for these FAST services? I read the article, but I’m still confused.

[-] yo_scottie_oh@lemmy.ml 35 points 3 weeks ago* (last edited 3 weeks ago)

I dunno at what school this photo was taken, but in my day, it was not uncommon for students in dorms to have mini whiteboards on their doors so people could leave messages (often in the form of specific private body parts). Mind you, I went to school before everybody had iPhones.

What I believe we’re looking at here is a photo of somebody’s (presumably Joseph Silva’s) door with a mini whiteboard and someone’s (again presumably Joseph Silva’s) contact info, which happens to be a Lemmy user.

The key word here is Lemmy, which would explain why OP shared this photo on !fediverse@lemmy.world.

[-] yo_scottie_oh@lemmy.ml 1 points 4 weeks ago

Why do people use crypto for what?

[-] yo_scottie_oh@lemmy.ml 8 points 4 weeks ago

+1 for PrivateBin, which has a public instance at https://privatebin.io/.

[-] yo_scottie_oh@lemmy.ml 3 points 1 month ago* (last edited 1 month ago)

I use a locally run open source LLM.

How? GPT4All + Llama or something else? I just started dipping my toe in locally run open source LLM.

not fine tuning a LLM to match tone and style counts as either misuse or hobbyist use

You’ve hit the nail on the head with this one. I think the other commenters are right, that a lot of people will misuse the tool, but nonetheless it is an issue with the users, not the tool itself.

7
submitted 4 months ago* (last edited 4 months ago) by yo_scottie_oh@lemmy.ml to c/lemmy_support@lemmy.ml

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.

52
submitted 4 months ago* (last edited 4 months ago) by yo_scottie_oh@lemmy.ml to c/linux@lemmy.ml

EDIT: After reading all the responses, I’ve decided to allow cookies to persist after they close the browser, which I expect will make it so that 2FA doesn’t kick in as often, at least not on their most frequently used web sites. I may also look into privacy oriented browser extensions that might offer some protection, such as Privacy Badger. Thanks, all!

OP: I know two factor authentication is considered more secure than just passwords, but here’s the deal: One of my family members uses Linux Mint on their laptop (at my recommendation and yes, they are aware that it’s not a Mac), and while they’ve mostly adapted to the different workflows (coming from a macbook), one of their biggest pain points is that web sites are constantly challenging them because they don’t recognize their machine. It’s frustrating to them because they used to just allow all cookies in Safari, whereas I’ve configured Firefox on their Linux laptop not to keep any cookies after the browser is closed. I know this isn’t a Linux/Firefox issue, but I think they might not see it that way and I worry they’ll get frustrated to the point that they’ll go out and splurge on a new macbook air when they already have a perfectly functional laptop with functional OS.

Right now I’m thinking of adding their most frequently used web sites as exceptions in Firefox settings so at least those cookies would persist after closing the browser, making them easier to log into. Or maybe I’ll just allow all cookies indefinitely, although I’d rather not just throw in the towel on Big Surveillance. Is there another way to walk that line between convenience and security that I’m not thinking of? Should I just remove my tin foil hat and allow all cookies indefinitely?

Thanks in advance for your advice.

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.

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

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?

22
submitted 5 months ago* (last edited 5 months ago) by yo_scottie_oh@lemmy.ml to c/linux@lemmy.ml

I'm trying to install system updates on my gaming PC, which runs on Nobara 38. Typically I'd accomplish this in the command line by issuing dnf upgrade, but it refuses to update because doing so would remove the protected package nobara-amdgpu-config. Trying --skip-broken produces the same result.

How do I get past this issue or work around it so that I can install updates?

Command line output:

[yo_scottie_oh@nobara ~]$ sudo dnf upgrade
Last metadata expiration check: 0:33:19 ago on Sat 06 Apr 2024 05:57:10 PM EDT.
Error: 
 Problem: The operation would result in removing the following protected packages: nobara-amdgpu-config
(try to add '--skip-broken' to skip uninstallable packages)
[yo_scottie_oh@nobara ~]$ sudo dnf upgrade --skip-broken
Last metadata expiration check: 0:33:42 ago on Sat 06 Apr 2024 05:57:10 PM EDT.
Error: 
 Problem: The operation would result in removing the following protected packages: nobara-amdgpu-config
[yo_scottie_oh@nobara ~]$ sudo dnf update nobara-login
[sudo] password for scott: 
Last metadata expiration check: 0:43:46 ago on Sat 06 Apr 2024 05:57:10 PM EDT.
Error: 
 Problem: The operation would result in removing the following protected packages: nobara-amdgpu-config
(try to add '--skip-broken' to skip uninstallable packages)
[yo_scottie_oh@nobara ~]$ nobara-sync
# Option “-x” is deprecated and might be removed in a later version of gnome-terminal.
# Use “-- ” to terminate the options and put the command line to execute after it.
[yo_scottie_oh@nobara ~]$ 

EDIT: I'm still attempting to solve this on my own. Trying solutions found in this Super User thread and this Reddit thread, which points to this documentation on the Nobara project site.

EDIT 2: Issuing nobara-sync seems to have done the trick. The Nobara project documentation that I linked to above explains why they recommend nobara-sync instead of dnf upgrade.

85

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?

view more: next ›

yo_scottie_oh

joined 10 months ago