JackLSauce

joined 1 year ago
[–] [email protected] 8 points 6 hours ago

Different jobs are different

Sorry for rambling

[–] [email protected] 5 points 1 day ago* (last edited 1 day ago)

I agree in spirit but a CPI applied to military expenditure would be adjusting for prices of irrelevant items and could become very skewed at such large scales

Admittedly I don't know have a better idea either so... Guess I'm hoping somebody smarter than me can chime in

[–] [email protected] 10 points 1 day ago

Pretty sure it's actually missing King Kong given the design of those buildings and plane

[–] [email protected] 1 points 1 day ago

How did that cat manage to keep its phone's reflection out of this selfie?

[–] [email protected] 2 points 3 days ago

For anybody else wondering about the roughly 1500 year gap, there are conflicting statements between the museum and an article (presumably the one above) written about it but I don't see any explanation on either side's reasoning:

https://etc.worldhistory.org/exhibitions/giglamesh-enkidu-humbaba-cedar-forest-newest-discovered-tablet-v-epic/

[–] [email protected] 15 points 3 days ago (5 children)

We talk about freedom the same way we talk about art,” she said, to whoever was listening. “Like it is a statement of quality rather than a description. Art doesn’t mean good or bad. Art only means art. It can be terrible and still be art. Freedom can be good or bad too. There can be terrible freedom.

Joseph Fink, Alice Isn't Dead

[–] [email protected] 18 points 6 days ago (2 children)

Grub Rescue

Same way you overcome any of life's challenges: decide it's impossible bullshit and move onto another game

[–] [email protected] 4 points 1 week ago

The moment I realized the most one can gain from (pre-buyout)Twitter is the respect of other Twitter users, posting anything immediately became a chore

[–] [email protected] 12 points 1 week ago

I had a lot of fun with it

[–] [email protected] 7 points 1 week ago

Maybe the line is collapsing under its own weight

[–] [email protected] 32 points 1 week ago (20 children)

Not sure what the science is between 2 images with no source or timestamp and nearly 20 years of technological improvement between them is but this isn't the peak of Katrina

Katrina ultimately reached its peak strength as a Category 5 hurricane on the Saffir–Simpson scale on August 28. Its maximum sustained winds reached 175 mph (280 km/h) and its pressure fell to 902 mbar (hPa; 26.63 inHg), ranking it among the strongest ever recorded in the Gulf of Mexico.

It probably refers to its stats at landfall

Katrina weakened to a Category 3 before making landfall along the northern Gulf Coast, first in southeast Louisiana (sustained winds: 125mph) and then made landfall once more along the Mississippi Gulf Coast (sustained winds: 120mph). Katrina finally weakened below hurricane intensity late on August 29th over east central Mississippi.

But power doesn't equal damage for weather

[Katrina] is the costliest hurricane to ever hit the United States, surpassing the record previously held by Hurricane Andrew from 1992. In addition, Katrina is one of the five deadliest hurricanes to ever strike the United States

Sources:

https://en.m.wikipedia.org/wiki/Meteorological_history_of_Hurricane_Katrina

https://www.weather.gov/mob/katrina

 
 
 

I thought this would be dead simple but trying to label a road as "bike-friendly" isn't as intuitive as one would hope (am I "adding" a road even though it's technically there or reporting "wrong info" piece by piece?)

 
 
 
 
 
 

cross-posted from: https://lemmy.world/post/647097

You'll need to update the praw.Reddit() parameters and set booleans to True based on what you want to have cleared.

This also overwrites your comments with nonsense content seeing as Reddit doesn't really delete your comments if nobody forces them

Sorry about the amateurish Python, this isn't my go-to language

import praw

#Update all values set to XXXXXX and set boolean values to True for whatever you'd like to clear

reddit = praw.Reddit(
    client_id="XXXXXX",
    client_secret="XXXXXX",
    user_agent="script running locally", #required for PRAW but not sure content matters
    username="XXXXXX",
    password="XXXXXX"
)

#booleans
delete_posts = False
delete_comments = False
delete_saved = False
clear_votes = False
unsubscribe = False

def get_posts():
    return reddit.user.me().submissions.new(limit=100)

def get_comments():
    return reddit.user.me().comments.new(limit=100)

def get_subscriptions():
    return reddit.user.subreddits()

def get_saved_items():
    return reddit.user.me().saved(limit=100)

def get_upvoted():
    return reddit.user.me().upvoted(limit=100)

def get_downvoted():
    return reddit.user.me().downvoted(limit=100)

while(clear_votes):
    count = 0
    upvotes = get_upvoted()
    downvotes = get_downvoted()
    for vote in upvotes:
        try:
            vote.clear_vote()
            count += 1
            print('Clearing vote for: ', vote)
        except Exception as e:
            print('Could not clear vote due to: ', e, '(this is normal for archived posts)')
            continue
    for vote in downvotes:
        try:
            vote.clear_vote()
            count += 1
            print('Clearing vote for: ', vote)
        except Exception as e:
            print('Could not clear vote due to: ', e, '(this is normal for archived posts)')
            continue
    if(count == 0):
        clear_votes = False

while(delete_saved):
    count = 0
    saved_items = get_saved_items()
    for item in saved_items:
        item.unsave()
        count += 1
        print('Unsaved item ID: ', item)
    if(count == 0):
        delete_saved = False


while(delete_posts):
    count = 0
    posts = get_posts()
    for post in posts:
        print("Deleting submission: ", post)
        post.delete()
        count += 1
    if(count == 0): 
        delete_posts = False 


#Replace comments with nonsense data first as Reddit only "marks comments as" deleted
while(delete_comments):
    count = 0
    comments = reddit.user.me().comments.new(limit=1000)
    print("Replacing comments with nonsense data")
    for comment in comments:
       comment.edit('So long and thanks for all the fish')
    print("Deleting comments")
    for comment in comments:
        comment.delete()
        count+=1
    if (count == 0):
        delete_comments = False

while(unsubscribe):
    count = 0
    subscriptions = get_subscriptions()
    for subreddit in subscriptions:
        subreddit.unsubscribe()
        count += 1
        print('Unsubscribed from: ', subreddit.display_name)
    if (count == 0):
        unsubscribe = False

print('--finished--')
 

You'll need to update the praw.Reddit() parameters and set booleans to True based on what you want to have cleared.

This also overwrites your comments with nonsense content seeing as Reddit doesn't really delete your comments if nobody forces them

Sorry about the amateurish Python, this isn't my go-to language

import praw

#Update all values set to XXXXXX and set boolean values to True for whatever you'd like to clear

reddit = praw.Reddit(
    client_id="XXXXXX",
    client_secret="XXXXXX",
    user_agent="script running locally", #required for PRAW but not sure content matters
    username="XXXXXX",
    password="XXXXXX"
)

#booleans
delete_posts = False
delete_comments = False
delete_saved = False
clear_votes = False
unsubscribe = False

def get_posts():
    return reddit.user.me().submissions.new(limit=100)

def get_comments():
    return reddit.user.me().comments.new(limit=100)

def get_subscriptions():
    return reddit.user.subreddits()

def get_saved_items():
    return reddit.user.me().saved(limit=100)

def get_upvoted():
    return reddit.user.me().upvoted(limit=100)

def get_downvoted():
    return reddit.user.me().downvoted(limit=100)

while(clear_votes):
    count = 0
    upvotes = get_upvoted()
    downvotes = get_downvoted()
    for vote in upvotes:
        try:
            vote.clear_vote()
            count += 1
            print('Clearing vote for: ', vote)
        except Exception as e:
            print('Could not clear vote due to: ', e, '(this is normal for archived posts)')
            continue
    for vote in downvotes:
        try:
            vote.clear_vote()
            count += 1
            print('Clearing vote for: ', vote)
        except Exception as e:
            print('Could not clear vote due to: ', e, '(this is normal for archived posts)')
            continue
    if(count == 0):
        clear_votes = False

while(delete_saved):
    count = 0
    saved_items = get_saved_items()
    for item in saved_items:
        item.unsave()
        count += 1
        print('Unsaved item ID: ', item)
    if(count == 0):
        delete_saved = False


while(delete_posts):
    count = 0
    posts = get_posts()
    for post in posts:
        print("Deleting submission: ", post)
        post.delete()
        count += 1
    if(count == 0): 
        delete_posts = False 


#Replace comments with nonsense data first as Reddit only "marks comments as" deleted
while(delete_comments):
    count = 0
    comments = reddit.user.me().comments.new(limit=1000)
    print("Replacing comments with nonsense data")
    for comment in comments:
       comment.edit('So long and thanks for all the fish')
    print("Deleting comments")
    for comment in comments:
        comment.delete()
        count+=1
    if (count == 0):
        delete_comments = False

while(unsubscribe):
    count = 0
    subscriptions = get_subscriptions()
    for subreddit in subscriptions:
        subreddit.unsubscribe()
        count += 1
        print('Unsubscribed from: ', subreddit.display_name)
    if (count == 0):
        unsubscribe = False

print('--finished--')
view more: next ›