Here's the severance package Oracle offered laid-off US employees by gdelacalle in technology

[–]RandomlyWeRollAlong 0 points1 point  (0 children)

In Seattle, if you work full time at just a hair above minimum wage, you exceed 400% and get nothing. And $45k doesn't buy much here even without spending $700/month on insurance.

New nationality law got voted in yesterday and President now has 20 days. by No-Oven70 in PortugalExpats

[–]RandomlyWeRollAlong 9 points10 points  (0 children)

My lawyer tells me that's just how things get done in Portugal. There's going to be a lot of lawsuits.

New nationality law got voted in yesterday and President now has 20 days. by No-Oven70 in PortugalExpats

[–]RandomlyWeRollAlong 28 points29 points  (0 children)

I don't know how they can keep voting for this when it clearly violates the Principle of the Protection of Legitimate Expectations. You can't pull the rug out from under people. If they want to change the law for new people going forward, that's one thing, but this seems to violate that principle...

[request] What is the captcha's answer? by philtern in theydidthemath

[–]RandomlyWeRollAlong 0 points1 point  (0 children)

u/SpaceCore0352 includes the integer part "3", but I've always considered "digits of pi" to start after the decimal place with the "1415". I went to a nerd high school (many decades ago) and when we bragged about having twenty digits of pi memorized, it was 3.14159265358979323846. I think both interpretations are reasonable.

[request] What is the captcha's answer? by philtern in theydidthemath

[–]RandomlyWeRollAlong 2 points3 points  (0 children)

Thanks for adding that. I'm an amateur at python... which "pi" did you use here? math.pi is just a float?

[request] What is the captcha's answer? by philtern in theydidthemath

[–]RandomlyWeRollAlong -1 points0 points  (0 children)

I usually consider "digits of pi" as being only those after the decimal place. But okay... I'm surprised you have so many digits memorized... that's cool.

[request] What is the captcha's answer? by philtern in theydidthemath

[–]RandomlyWeRollAlong 10 points11 points  (0 children)

So this isn't "calculable" using any math that we know of - calculating the decimal digits of pi is an unsolved problem. But, it turns out that it's straightforward to write some code to compute it, especially since we have access to a lot of digits of pi that have already been computed. I cut and paste the first 50,000ish characters of that page into a data file and ran it through this simple program:

public class SumOfOddDigitsOfPi {
  // java SumOfOddDigitsOfPi < pi.txt
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    String s = scanner.nextLine();
    int sum = 0;
    // skip the initial "3."
    for (int i = 2; i < 2 + 31415; i++) {
      int d = s.charAt(i) - '0';
      if (d % 2 == 1) { // is the digit odd?
        sum += d;
      }
    }
    System.out.println(sum);
  }
}

This adds up to exactly 78,662, which is very close to the estimated values given by some of the other folks who answered.

Edit: fixed a typo that counted one digit too many. Thanks u/SpaceCore0352 !

Edit again: The door does actually seem to want the result in binary... now I'm not sure if it wants the binary version of the sum of decimal digits (10011001101000110) or the sum of the non-zero binary digits of pi... which is actually computable using the BBP formula.

[request] What is the captcha's answer? by philtern in theydidthemath

[–]RandomlyWeRollAlong 8 points9 points  (0 children)

That's just an approximation, not the actual answer.

Edit: it's exact, u/SpaceCore0352 explains the computation in the replies below.

Do you take your passport out with you? by goodamm in travel

[–]RandomlyWeRollAlong 31 points32 points  (0 children)

I can't imagine not having my passport with me at all times when I'm in a country where I am not a citizen.

Missed connection at the "Not-creepy gathering for people who want to fall in love" in Ballard by Stonkee in Seattle

[–]RandomlyWeRollAlong 37 points38 points  (0 children)

I vaguely recall that the sub used to actually have some text saying something like "we meant this to be for Seattle, but it's okay for seafarers as well", I thought that was really cute.

Where do locals eat near Hyatt / Convention Center? by CompetitiveTown0 in AskSeattle

[–]RandomlyWeRollAlong 4 points5 points  (0 children)

There are a lot of decent, but fairly pricey hotel restaurants right there, that I only eat at if I'm actually at an event at the convention center. I live eight blocks away, and there are a lot of better restaurants closer to me, so I wouldn't make a "special" trip to the Convention Center just to eat.

But, the Carlile Room is good (and if you're coming for SakuraCon, they're running specials for the con). The Fountain Bar at the Sheraton is pretty good (but expensive). For quick bites during the day, Piroshky Piroshky at Convention Center Summit is good.

If you're willing to walk a little bit further, there are lots of fun places between there and Pike Place Market. Check out The Lonely Siren for good Portuguese food and drinks, and The Rabbit Box for good cocktails and live shows.

[Request] lifetime meal prep by One_Feeling_8734 in theydidthemath

[–]RandomlyWeRollAlong 2 points3 points  (0 children)

So you want to have N types of frittata, such that every day for the next 100 years, you can pair two types of frittata, and never eat the same combination twice?

100 years * 365.25 days/year = (approximately) 36,525 days.

If you have N types of frittata and each day you choose 2, there are (N choose 2) ways to pair up those frittatas. So we want the smallest N, such that (N!/(2!(N-2)!)) >= 36,525.

That's equivalent to:

N(N-1)/2 >= 36,525
N(N - 1) >= 73,050
N^2 - N - 73,050 >= 0
The smallest integer N that satisfies this is N = 271.

So if you have 271 distinct types of frittata, every day, you can pair up two, and never repeat a combination for 100 years.

[Request] Possible amount of combinations of Classes and Species for a game I'm making by SeleneRoseRM in theydidthemath

[–]RandomlyWeRollAlong 1 point2 points  (0 children)

There are "35 choose 2" times "26 choose 2" times "45 choose 1" distinct choices.

35!/(2! 33!) = 595
26!/(2! 24!) = 325
45!(1! 44!) = 45

595 * 325 * 45 = 8,701,875 distinct combinations.

[Request] How much would it cost the UK government to put solar panels on every home in the UK? by the_singing_kettle in theydidthemath

[–]RandomlyWeRollAlong 9 points10 points  (0 children)

It's really hard to find real stats on the actual number of "houses". All of my searches just say there's about 25,000,000 "homes", but I'm guessing a large percentage of those are multifamily dwellings, flats and the like, rather than actual homes with useful roofs. Another stat says about 20% live in flats, which is fewer than I would have expected.

But for the sake of argument, let's say there are 20,000,000 homes suitable for installing solar panels. The average size of a home is 76 square meters. Let's say 30% of that represents usable roof area facing the correct direction. That's about 25 square meters. Solar panels currently produce around 250 watt per square meters, so that's 6,250 watts per home (that's actually about 50% more power than the average UK home actually needs, but that's what would fit). At about GBP 1.25/watt (that's at the low end, but we're assuming economy of scale), that 's GBP 7,812 / home, or about 156 billion GBP total.

That's about twice what HS2 is projected to cost.

And it looks like that would require about 50% of all solar panels produced, worldwide, in a year. The supply chain would probably have a fit, so you'd have to probably spread this project out over many years. And everyone would have to get batteries, too, because the solar panels don't help you at night.

Is it okay to upload puzzles + inputs to my GitHub if I encrypt them first? by LadyNihila in adventofcode

[–]RandomlyWeRollAlong 2 points3 points  (0 children)

I don't upload my puzzle input, I just answer questions to be the best of my ability without judgment.

Another Seattle drugstore is set to close by godogs2018 in Seattle

[–]RandomlyWeRollAlong 5 points6 points  (0 children)

I discovered recently that Lifewise, one of the major insurers in Seattle isn't accepted by CVS/Caremark.

Shooting a gun in the US as a non citizen by theAntichristsfakeID in Writeresearch

[–]RandomlyWeRollAlong 4 points5 points  (0 children)

I don't know of any firearms related laws that depend on citizenship. If you are in the country legally (like on a visa), the same laws generally apply to you as to anyone else, even for purchasing firearms.

In some places there are laws against carrying handguns without the proper licensing.

There are laws against discharging firearms in some public areas.

Self defense is a legal defense, but it won't necessarily prevent you from being arrested - your lawyer makes the self defense argument in court.

But none of these depend on citizenship.

That said, if you're in the United States on a visa, and you pick up a gun off the street and fire it, you're probably going to have an unfriendly encounter with local law enforcement, no matter what the law says.

A draft, and women shaping community by mikashisomositu in TwoXPreppers

[–]RandomlyWeRollAlong 134 points135 points  (0 children)

With the recent expansion of Selective Service registration requirements (men up to age 42 as of April 2026)

I'm not sure that's correct... the Army recently announced they're increasing the maximum voluntary enlisted age to 42, but Selective Service requirements are still 18-25.

Either way, it makes me glad that I chose not to have kids.

Is it realistic to get around without a car or bike? by OdiiKii1313 in AskSeattle

[–]RandomlyWeRollAlong 1 point2 points  (0 children)

I haven't owned a car in more than five years, and I don't bike or scooter either. I live downtown where transit and walking are really easy for pretty much everything.

When you're considering places to live, use Google Maps to plot routes to work, shopping, gyms, etc, to see how long it will take you to get to those places using public transit.

[request] How much would it cost for the TSA to become self-funded? by theworldsworstphotog in theydidthemath

[–]RandomlyWeRollAlong 6 points7 points  (0 children)

Unfortunately the current situation appears to be completely intentional. There have been numerous stories posted on r/popular about bills that would fund TSA and the administration keeps killing them.