54
submitted 3 days ago* (last edited 3 days ago) by yo_scottie_oh@lemmy.ml to c/openstreetmap@lemmy.ml

Useful links for tracking this issue:

Edit: Viewing and editing functionality seem to be restored.

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

What are your thoughts on pursuing some sort of technology job? For example, any interest in learning to code?

[-] yo_scottie_oh@lemmy.ml 4 points 4 days ago

Interesting. I wonder if that’s a bug in the Photon app. I use Voyager on mobile. When I tap to create a new post, there is a toggle for link, image, or text.

[-] yo_scottie_oh@lemmy.ml 9 points 4 days ago

I’m guessing it’s because you’d selected Link as the post type instead of Text.

[-] yo_scottie_oh@lemmy.ml 7 points 4 days ago

Do you get high def Netflix? I’ve read in multiple places that Netflix limits streams to 720p in web browsers, which has always stopped me from straying from my chromecast. Not sure if that’s what I’m seeing in your photo, though. (basically I have the same question as OP)

18
submitted 4 weeks ago* (last edited 3 weeks ago) by yo_scottie_oh@lemmy.ml to c/bicycles@lemmy.ca

Edit: The way I had it in the photos is correct. Thanks for helping me out, those who chimed in!

Original question:

I replaced the straight handlebars with risers on my mountain bike, and because of the slightly longer distances involved, I have to replace the brake and gear cables with slightly longer ones.

Unfortunately, I did not take a picture of the cable clamp for the front derailleur before I undid it. Now I'm clueless as to how to route the replacement cable - basically the same problem as this poster on RetroBike, except their derailleur is different from mine.

I have super old parts, so I've had a hard time finding documentation online. The best documentation I've found is the following:

In the service instructions, third column, "SIS adjustment" section, three-quarters of the way down, it says:

  • Cut off any unnecessary cable, attach an end cup, and hook it onto the pin.
  • Note: Pass the cable through as shown in the illustration.

What is absolutely throwing me for a loop is the illustration seems to show the cable running from the bottom upward, but... how? Can anyone help me figure out what I'm missing? I feel like a dumb dumb.

[-] yo_scottie_oh@lemmy.ml 54 points 1 month ago

In general, I downvote content with shitty or incomplete titles.

[-] yo_scottie_oh@lemmy.ml 47 points 2 months ago

I read the article so you don’t have to.

Excerpt:

A group of 12 Republican US senators sent a letter to International Criminal Court (ICC) Chief Prosecutor Karim Khan, threatening repercussions if the court issues arrest warrants against Israeli Prime Minister Benjamin Netanyahu and other officials, according a Monday report from news organization Zeteo.

The senators allege that the ICC seeks to punish “legitimate actions of self-defense,” citing Khan’s report of the “calculated cruelty” he witnessed following the October 7 attack and making clear that they find “no moral equivalence between Hamas’s terrorism and Israel’s justified response.” They claimed that the arrest warrants “would align the ICC with the largest state sponsor of terrorism.”

The signatories declared they would take any warrant issued as “not only a threat to Israel’s sovereignty but to the sovereignty of the United States.” They threaten, “Target Israel and we will target you” and that any further action will “end all American support for the ICC” and “bar [Khan] and [his] families from the United States.” It ended: “You have been warned.”

The letter, dated April 24, 2024, was signed by Senate Minority Leader Mitch McConnell of Kentucky as well as Senators Tom Cotton of Arkansas; Marsha Blackburn of Tennessee; Katie Boyd Britt of Alabama; Ted Budd of North California; Kevin Cramer of North Dakota; Ted Cruz of Texas; Bill Hagerty of Tennessee; Pete Ricketts of Nebraska; Marco Rubio and Rick Scott of Florida; and Tim Scott of South Carolina.

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

You don’t need to guess, you can check the history for any object in OSM.

Editing to clarify there are two places where source info might be stored. One is as a source tag on the object itself. The other is as a source on the change set in which your solar array was added.

7
submitted 2 months ago* (last edited 2 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.

[-] yo_scottie_oh@lemmy.ml 52 points 2 months ago

nasal congestion intensifies

3

FALLS CHURCH, Va. — For people living with a developmental disability like Down syndrome or autism, making friends and feeling like a part of the community can sometimes be challenging.

A local nonprofit called Best Buddies of Virginia and DC is helping to foster friendships between people with and without disabilities to help promote inclusivity. We caught up with a pair of friends. This is their story.

Read the full article | Archive.today | Archive.org

19

A long-uncertain plan to add protected bike lanes to an over three-mile portion of Connecticut Avenue in Northwest DC has been officially canceled, according to city officials. But is this really the end of the battle between those who favor the lanes and those who oppose them?

Executives at the Washington Area Bicyclist Association tell Washingtonian that they are gearing up to push back against the decision. On their website, they’ve posted a petition to restore the plan for bike lanes, and they are currently making plans to speak out at upcoming DDOT hearings.

Read the full article | Archive.ph | Archive.org

52
submitted 2 months ago* (last edited 2 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.

5
submitted 2 months ago* (last edited 2 months ago) by yo_scottie_oh@lemmy.ml to c/opencourselectures@slrpnk.net

cross-posted from: https://lemmy.ml/post/14647640

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.

  • Institution: Socratica
  • Subject: #python
  • Description (copied from Socratica's YT channel): Our Python Tutorials will help you learn Python quickly and thoroughly. We start with "Hello World" and then move on to data structures (sets, lists, tuples and dictionaries). Next we'll cover classes, and give a variety of in-depth examples and applications.
12
submitted 2 months ago* (last edited 2 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.

8

Wizards forward Kyle Kuzma launched a coffee shop, Childhood Cafe, off U Street today in the space previously occupied by ThreeFifty Bakery and Coffee Bar. The cafe, which riffs its name off of Kuzma’s lifestyle brand, Childhood Dreams, offers pastries and classic coffee drinks, as well as lemonades, non-alcoholic spritzes, and more specialized creations, like a strawberry Pop-Tart latte.

Read the full article | Archive.ph | Archive.org

6

WASHINGTON — Police are asking for the public's help in finding two people they say placed card skimmers at several businesses across D.C.

Card skimmers are devices that masquerade as card readers where customers will swipe or insert their credit or debit cards to pay for their purchases.

According to the Metropolitan Police Department, the card skimmers were found at the following locations:

  • On Monday, March 25, 2024, at approximately 11:27 a.m., in the 1200 block of 1st Street, Northeast.
  • On Monday, April 1, 2024, at approximately 11:13 a.m., in the 400 block of M Street, Southeast.
  • On Wednesday, April 10, 2024, at approximately 9:39 p.m., in the 1800 block of Wisconsin Avenue, Northwest.
  • On Wednesday, April 10, 2024, at approximately 10:25 p.m., in the 4500 block of 40th Street, Northwest.
  • On Friday, April 12, 2024, at approximately 9:54 a.m., in the 1700 block of Corcoran Street, Northwest.
  • On Tuesday, April 16, at 7 p.m., in the 3400 block of Connecticut Avenue, Northwest.

Read the full article | Archive.ph | Archive.org

11
submitted 2 months ago* (last edited 2 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?

14
submitted 3 months ago* (last edited 2 months ago) by yo_scottie_oh@lemmy.ml to c/linux_gaming@lemmy.ml

EDIT: The audio issue on Wayland seems to have magically resolved itself after several reboots, so while I never figured out why the option for VRR disappeared in the Xorg session, I’ve resorted to using Wayland and everything seems to be as it should.

OP: Howdy. I just installed a new graphics card in my gaming rig, and now the option for Variable Refresh Rate is gone from the Display Settings when I log into a Gnome Xorg session. I swapped out my trusty Vega 64 for a new PowerColor 6750 XT. Before the swap, I always signed into an Xorg session and the option for Variable Refresh Rate was there. After the swap, the option for VRR is there only in Wayland. So why don't I just use Wayland, you ask? The problem is, on Wayland, the audio is distorted and I cannot figure out how to get clear audio. This audio issue seems specific to Steam b/c I can listen to music videos on YouTube crystal clear.

So now I have this dilemma where I have to choose between clear audio (Xorg session) vs variable refresh (Wayland).

Is this a known thing where Xorg doesn't support VRR for newer graphics cards? Is there some trick for getting clear audio in a Wayland session? Do I need a newer kernel or something?

What I've tried so far:

  • I've tried all three DP outs on the new graphics card.
  • Double checked that VRR is toggled on in my monitor's settings, and I can tell if VRR is working or not by turning on the monitor's FPS overlay. I know it was working in Xorg sessions before I swapped out the Vega 64.
  • Updated my motherboard to the latest BIOS.
  • Searched the interwebs for nobara 38 xorg vrr option gone, but alas, not much is coming up.

Display settings in Xorg:

Display settings in Wayland:

System info:

yo_scottie_oh@nobara 
------------ 
OS: Nobara Linux 38 (Thirty Eight) x86_64 
Kernel: 6.5.9-201.fsync.fc38.x86_64 
Uptime: 29 mins 
Packages: 3122 (rpm), 10 (flatpak) 
Shell: bash 5.2.15 
Resolution: 2560x1440 
DE: GNOME 44.2 
WM: Mutter 
WM Theme: Adwaita 
Theme: adw-gtk3-dark [GTK2/3] 
Icons: Papirus-Dark [GTK2/3] 
Terminal: gnome-terminal 
CPU: AMD Ryzen 7 5800X3D (16) @ 3.400GHz 
GPU: AMD ATI Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT 
Memory: 4726MiB / 32002MiB
[-] yo_scottie_oh@lemmy.ml 45 points 5 months ago* (last edited 5 months ago)

Target funds are passively managed, which means nobody is sitting there trying to buy the bottoms and sell the tops, which is what we call actively managed funds. Not having anyone to constantly babysit them is what makes passively managed funds less expensive than actively managed in terms of expense ratios.

Target funds tend to consist of other passively managed index funds that provide broad market coverage and whose objectives are none other than to mirror the performance of a wide range of securities in a particular asset class.

If your friend’s 401k suffered a 50% loss in 2008 and did not recover on the way back up, that means either your friend panic-sold, your friend was in a (very poorly) actively managed fund, or (most likely) your friend is full of shit.

Regardless, I would recommend not taking financial advice from your friend.

To answer your question, as long as you hold passively managed index funds, you do not have to worry about someone “selling your stocks if the economy tanks.”

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

Not to downplay all the blood, sweat, and tears that have been shed while making the fediverse work, but if I may offer some unsolicited advice to the author of the linked post: Publicly airing out a team’s dirty laundry tends to be… counter-productive. Usually it’s best to “keep it in the family.”

In this case, we don’t know what’s going on in the original project owner’s life right now. The author of this post could have just said “hey all, we apologize for the inconvenience, but the original project appears to be abandoned, so we’ve forked the project with the intention of patching some of the known issues and adding some new features.” (insert GH link here)

Although the original project dies, this new project is born, and who knows—the original project’s owner might even show up again someday and start making meaningful contributions to the new project (or not).

I say all this without knowing the full history of this project, and I don’t mean to downplay the author’s frustration, just my two cents.

All of that said, in my mind this situation makes for an interesting case study on the pros and cons of different ownership structures for public/open projects.

[-] yo_scottie_oh@lemmy.ml 60 points 7 months ago

Great, I’ll be sure not to use that so I don’t lose all my content when Google kills it!

[-] yo_scottie_oh@lemmy.ml 140 points 7 months ago

Thank you for the excerpt. I initially interpreted the title as US government agencies will stop using Firefox, not US government agencies will stop requiring their web masters to test in Firefox.

view more: next ›

yo_scottie_oh

joined 8 months ago