CaspianXI

@CaspianXI@lemmy.world
28 Post – 39 Comments
Joined 1 years ago

In simple English... A number is divisible by 7 if the difference between 2 times the last digit and the remaining digits is divisible by 7.

Examples:

  • Is 14 divisible by 7? 4*2=8. 8-1=7. Check.
  • Is 28 divisible by 7? 8*2=16. 16-2=14. Check.
  • Is 182 divisible by 7? 2*2=4. 18-4=14. Check.
  • Is 1323 divisible by 7? 3*2=6. 132-6=126.
    • Is 126 divisible by 7? 6*2=12. 12-12=0. Check.

OP, if I have misunderstood your reasoning, please correct me.

1 more...

What are you upset about? $0/hr is a generous salary.

1 more...

My kids didn't want a dog until I planted the idea. Now, I roll my eyes along with my wife every time the kids ask for a dog.

2 more...

I write a blog on Medium.

You need to have a ton of content to make any amount of money. After writing 200 articles, I started making a consistent $100/month. Not quitting my day job any time soon, but I have a lot of downtime at work, so it's a productive way to pass the time.

Oh, and the $100/month is pretty consistent. I took a month off from writing, and they still sent me money for the read time on my old articles. The pay is low... but my boss wouldn't send me a small stipend if I decided not to show up for a month. So, I really can't complain.

1 more...

I like liftoff too, but the notifications screen won't show me which post people are replying to, so ot gets confusing.

Is there a way to fix this?

2 more...

Why haven't clothing manufacturers figured this out yet?

2 more...

These are people who want to be mods of communities. If you don't understand the basics of how this platform works, you probably need to spend more time as a regular user before becoming a moderator.

Phone, keys, headphones, wallet, loose change, pen, mask, portable battery pack.

At least, that's what's in my pockets this very moment. Not including trash (random receipts, etc)

1 more...

I don't cry when I chop onions. If I'm chopping dozens of them, everyone needs to get out of the kitchen because the air will get potent (but I won't notice).

This should get you started:

import requests

# Fetch post from Reddit API
def fetch_reddit_post():
    reddit_url = "https://www.reddit.com/r/{subreddit}/comments/{post_id}.json"
    subreddit = "python"  # Replace with the desired subreddit
    post_id = "abcdef"  # Replace with the desired post ID

    url = reddit_url.format(subreddit=subreddit, post_id=post_id)
    headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"}

    response = requests.get(url, headers=headers)
    if response.status_code == 200:
        post_data = response.json()
        return post_data
    else:
        print("Failed to fetch post from Reddit API")
        return None

# Post to Lemmy API
def post_to_lemmy(post_data):
    lemmy_url = "https://lemmy.ml/api/{version}/post"
    version = "v3"  # Replace with the desired Lemmy API version

    url = lemmy_url.format(version=version)
    headers = {"Content-Type": "application/json"}

    # Extract necessary information from the Reddit post
    title = post_data[0]["data"]["children"][0]["data"]["title"]
    content = post_data[0]["data"]["children"][0]["data"]["selftext"]

    # Create payload for Lemmy API
    payload = {
        "title": title,
        "body": content,
        "community_id": "abcdef",  # Replace with the desired Lemmy community ID
        "auth": "your_auth_token"  # Replace with your Lemmy API authentication token
    }

    response = requests.post(url, json=payload, headers=headers)
    if response.status_code == 200:
        print("Post successfully created on Lemmy")
    else:
        print("Failed to post to Lemmy API")

# Fetch post from Reddit API
post_data = fetch_reddit_post()

if post_data:
    # Post to Lemmy API
    post_to_lemmy(post_data)
6 more...

And kids

I always have one with me in case I enter a shop that has a sign up asking patrons to wear a mask. I used to wear them religiously, but 3 years is enough. Although I respect everyone who still keeps their masks on...

The problem stems from the fact that brands want their products to be made readily accessible to anyone who wants to order with next-day delivery, which means there needs to be a surplus to satisfy customers' cravings for instant gratification... but a surplus would drive prices down, which is why they mass-produce products, then immediately trash whatever is not sold.

It sickens me to know this is even a thing. But what can be done to prevent it?

"Bilingual" is really hard to define.

I live in Taiwan (English is my native language), and have studied Chinese to be passably fluent. I can trick people into thinking I can follow advanced conversations, interjecting comments here or there (even though I'm mostly lost -- just picking out the tidbits I do understand and commenting on them).

But am I bilingual? At the end of the day, it doesn't really matter. What matters the most is whether your level is "good enough" to do what you want! In my case, I just want to be able to go to the store, buy things, and hang out with friends. I can read the newspaper, but I'll never be able to read/write business contracts -- but that's not a goal of mine.

There are so many different shades of bilingual. Don't worry about it... and just be as good as you need to reach your goals!

Thanks, this is the answer I was looking for. I'm trying to save money because we don't have a lot. My wife is on board with saving, but she hasn't done the math to see where most of our money is going.

I might need to back off a bit. I like to save, but this might be a bit much.

2 more...

Peanut butter and cheese.

Peanut butter and pickles.

Peanut butter and raw onion slices.

Peanut butter and tuna fish.

I've tried peanut butter combined with the strangest pairings I can imagine. They've all been excellent.

3 more...

Wow, that's incredibly cheap for a car! My biggest worry worry used cars was always maintenance. Did you have a lot of problems to fix along the way?

1 more...

O_o

Wait, pocket-less pants are cuter? I'm suddenly tempted to start looking at girls' pants on the metro (except for the fact that will probably get me labeled as a perv...)

Awesome, thanks!

That's incredible. I would love to live in this sort of a coty!

It really wasn't hard. I took them to an animal shelter, and we talked about how there aren't enough families willing to give homes to these cute puppies. If only there was a family who was willing to help for every dog here...

Welcome aboard! I really hope this commumity provides the support you need. Keep writing!

With great power comes great responsibility

What's the purpose of the megathread? I'm so confused what's going on with this community...

Excellent point. Thanks.

Going to college.

I grew up in a cult, and I seem to have suppressed most of my childhood. Of course, I have bits and pieces -- like little flashbacks from my childhood days -- but I don't really have a coherent childhood story. From college onwards is when my life story makes sense to me.

Never tried it... but I should!!

Thanks for the feedback -- I'm really excited about starting this community, and I think I overdid it on the promotion 😬

Thanks so much! I'm not sure who CaspianX2 is -- but I just came from Reddit and love it here!

Thanks so much for the recommendation... I'm headed to the library in a few hours -- I'll definitely see if I can find it!

1 more...

What's your business?

I wish my energy company had that sort of an app! I usually have to calculate everything manually using the rates included on the back of each bill I get.

Free car... I love it!

Ooh, sounds amazing!

Fascinating article -- thanks for sharing!

According to Gino “we are trying to make a good impression on others, and show them we are knowledgeable and competent individuals.” Taking advice somehow feels like admitting that we don’t really deserve our high status.

Oh, the irony... since ignoring obvious advice only makes us look even more stupid.

When you order something with 2-day delivery, it not only needs to be in stock... but it needs to be in a warehouse in your city. This requirement means there needs to be a surplus.

They don't know where the orders will come in, so they make enough to send them to every warehouse in the country. But if all of them got sold, the supply would drive the price down. So, they wait until a certain number gets sold (say... a few hundred) and then destroy the rest.

It's sickening that this is even a thing. But that's the world we live in.

Bosses hate this one. The things they'll do for a full office...

But if you pirated a book to read it, then applied those ideas to make a product, you still committed a crime.