RedRavens

u/RedRavens


r/uBlockOrigin•

I have read the wiki for writing filters, and I still can't seem to get rules to work. I am looking at LinkedIn, and I am looking to block sponsored content. I know that the div id starts with ember and then has three digits after that.

<div id="ember432" class="blah">

I am looking to write a regex to match a div id that starts with ember and block it. If I manually select the element and block it, uBlock Origin generates a rule of www.linkedin.com###ember432

I thought

www.linkedin.com###div[id^="ember"]

would work, but it doesn't.

What am I doing wrong?

104

r/ussoccer•

Use this thread to discuss anything (within the rules of the subreddit):

  • What you didn't think was worthy of its own post
  • What club game you're most excited for
  • Where you're staying to watch a friendly
  • Which players should be called in
  • If water is wet
  • Etc
2438

r/djangolearning•

Here is my project structure:

mysite
├── db.sqlite3
├── manage.py
├── mysite
│    └── __init__.py
│    └── settings.py
│    └── urls.py
│    └── views.py
│    └── wsgi.py
├── my_app
│    └── __init__.py
│    └── admin.py
│    └── apps.py
│    └── forms.py
│    └── models.py
│    └── tests.py
│    └── urls.py
│    └── views.py
│    └── migrations
│           └── blah
│    └── my_app_api
│           └── example.py
│           └── example2.py
│    └── templates
│           └── more sub folders

    

What is the Django way for example.py to interact with models in my_app by running any

18

r/flightsim•

P3D V4 (version 4.5.11.29713)

QualityWings 757 version 1.41 with the hotfix, I think.

I am unable to get any radar altimeter callouts (2500, approaching minimums, minimums, any altitude callouts) on landing. I also don't get any of the takeoff callouts of 80 kts, V1, VR, V2.

Callouts work on other aircraft (including QW 787). I have been messing with the qw757.cfg file and all of the AltCall2500 type settings are equal to 1 (e.g. AltCall2500=1). I also have all of the volume settings hardcoded like VolumeCrewCallouts=100.

Does anyone else have any ideas? I have adjusted FMS Arm Pause at TOD in the cfg file, and I have been able to see the changes. So, QW can definitely see the `q

22

r/ussoccer•

Hi guys,

I wrote a script a while ago to update the sidebar each day by scraping https://www.ussoccer.com/schedule-tickets and pulling the 4 upcoming matches for senior MNT, U-23, U20, senior WNT, U-23, and U-20 matches. The code can be found here.

US Soccer "recently" changed their website to be some weird HTML/CSS thing that is not easily scrapable.

Does anybody want to take a shot at trying to fix the Python code to correctly scrape the website? I had been using beautifulsoup4 and requests before. I know other users have posted Google Calendars that are kept up to date, but I would rather get info from the US Soccer website directly

83

r/suggestapc•

Country: USA

Budget: $900 ish

Use: Gaming, specifically GTA V, Xplane 11 or P3D, Kerbal Space Program, Minecraft, Hitman 2, FIFA. I think X-Plane 11 or P3D would be the most resource intensive.

I'm trying to decide between the following PCs for gaming:

I'm leaning towards the CyberPower because the SkyTech has bad customer service reviews, but I'm not sure how valid of a reason that

215

r/learnpython•

I want to make my own AwardWallet that stores username and passwords for different rewards programs as a way to learn the Flask library. To save myself time and hassle, I want to be able to store passwords within a sql database so I can make a refresh function to automatically log in and scrape the relevant info without my having to type every single password.

I understand that the point of hashing+salting is to make the password storage process one-way, but is there a way to obfuscate passwords stored in the database and then de-obfuscate them?

I'm guessing that the answer is no, but I just want to check.

26

r/Bitwarden•

Hello,

I am trying to do some URI matching and am having a bit of trouble. I want to build a regex that matches everything EXCEPT the www subdomain of a website. So, for example, I want to match https://ssaa.google.com/, https://google.google.com, but NOT https://www.google.com/

I expected the regex ^https://.^www*google.com/* to work, but it did not. Any tips?

I have a different login that matches https://www.google.com/ as a regex with https://www.google.com/*. Do you think there is a better way to do this? Starts with instead of a regex?

I tried using the help article https://help.bitwarden.com/article/uri-match-detection/ to no avail.

18

r/ussoccer•

I'm trying to set up a group/pool for the subreddit, but the best that I have found is PoolPicker. MLS allegedly will have one, but the splash page still shows a "check back later" message.

My issue with PoolPicker is that I would rather rank teams in group placement (e.g. Spain 1st, Portugal 2nd, Iran 3rd, Morocco 4th) rather than pick the winner of each individual group game.

415


#THE PROBLEM

As a mod for r/ussoccer, a subreddit for US national team soccer, I wanted to keep the sidebar updated with upcoming games and keep a table of recent results. I was originally updating the sidebar by hand every couple of days, but this was boring, repetitive, and annoying. I wrote a Python script to do this for me.

#THE CODE

Unfortunately, the code is too long to paste here. I have posted it on GitHub where you can see it.

Basically, the script does the following:

  1. Scrape https://www.ussoccer.com/schedule-tickets for information about MNT, WNT, U-23 MNT, U-23 WNT, U-20 MNT, and U-20 WNT games. Game time, venue, TV info, an
23