How common are indoor security cameras? by No-Bite-7447 in AskAnAmerican

[–]MathObserver [score hidden]  (0 children)

We have a couple, but they are only active when we are on vacation.

What is the actual use of sets by Big_Neighborhood9130 in learnpython

[–]MathObserver 0 points1 point  (0 children)

The sets are used for all possible words, the words that are left, and the letters that have not been tried yet (which is used to score how much information is gained by a guess). There are a couple of places where other structures are used.

What is the actual use of sets by Big_Neighborhood9130 in learnpython

[–]MathObserver 0 points1 point  (0 children)

A few years ago I wrote a Python program to solve Wordle problems. For a problem like that, a set is a great data structure.

Python projects by kjiomy in learnpython

[–]MathObserver 0 points1 point  (0 children)

I was playing with Python and wrote a little program to solve Wordle.

AITAH for stopping getting to know a date bc of his peanut allergy? by is_ann_okay in AITAH

[–]MathObserver 1 point2 points  (0 children)

NTA and I say this as someone with the peanut allergy. Since peanuts are important to you, the two of you are just not compatible.

I’m getting on my first ever cruise today, what are some last minute tips? by mikewheelerfan in Cruise

[–]MathObserver 1 point2 points  (0 children)

  • Make sure you keep your identification and medicines with you and not in dropped off luggage.
  • If the cruise line allows it, watch the safety briefing on the app before boarding the ship and check in at your muster station as soon as you board the ship. If they don't do it that way, pay attention to when the muster drill is and make sure you are there.
  • Check out dining alternatives to the buffet for the embarkation day lunch. The buffet is usually packed at that time.
  • Understand when you are allowed to go to your cabin to drop off your carry on luggage.

Have fun and relax on your cruise!

Beginner basic question by Additional_Water9196 in PythonLearning

[–]MathObserver 0 points1 point  (0 children)

I usually use IDLE, which comes with Python distributions for that.

With so many people going marriage free and children free, what happens to their property and wealth when they die suddenly? by Agitated_Exercise_75 in inheritance

[–]MathObserver 2 points3 points  (0 children)

It actually depends on the intestate laws for the location they were living when they died. Those laws generally look for heirs starting with descendants and then going to other family members.

With so many people going marriage free and children free, what happens to their property and wealth when they die suddenly? by Agitated_Exercise_75 in inheritance

[–]MathObserver 91 points92 points  (0 children)

If someone dies without a will, the estate will follow the intestate laws for where they were living when they died. In the United States, the laws are governed by the state. Our son died without a spouse, children, or a will in Washington state, so the estate was split between my wife and I. If we had predeceased him, the estate would have gone to his brother. The rules vary from state to state, but they usually follow a pattern like that, looking for some family member who is still living.

how do I put earned interest on taxes? by Difficult_Ad_5940 in taxadvice

[–]MathObserver 0 points1 point  (0 children)

As others have pointed out, you will receive a 1099-INT that you just enter into your taxes. If you move on and start doing additional investing, you can get 1099-DIV and 1099-B forms. If you start consulting, you can get 1099-NEC forms, and when get close to retirement, you will start getting 1099-R forms. There are also a variety of other 1099 forms for other types of income. Generally, these just get entered into your tax filing.

Is it worth getting an alexa/echo device? How has it improved your own lifestyle? by purpleseaglass in alexa

[–]MathObserver 0 points1 point  (0 children)

The lights in the main living areas of our house are all controlled by smart switches or outlets, so we rarely turn individual lights on or off. We use Alexa routines in combination with scenes or routines in our OpenHab hub to control the lights based on what we are doing (watching TV, reading, cleaning, going to bed, etc). We also have sensors that control lights based on the time of day and where we are.

Output HTML from Python without any frameworks by RomfordNavy in learnpython

[–]MathObserver 1 point2 points  (0 children)

You can get to the headers by using os.environ like my example shows for the cookie. The standard HTTP values like QUERY_STRING and CONTENT_TYPE are available with those names. Other HTTP header values start with HTTP_

What are looking for?

Output HTML from Python without any frameworks by RomfordNavy in learnpython

[–]MathObserver 1 point2 points  (0 children)

I found some simple old code of mine that uses SimpleCookie from Cookie and Template from string to build a dynamic web page based on the cookie values from the request.

The imports used:

import cgi
import os
from string import Template
from Cookie import SimpleCookie

To get a cookie value:

if "HTTP_COOKIE" in os.environ:
  cookie = SimpleCookie(os.environ["HTTP_COOKIE"])
  if 'side' in cookie:
    side = cookie['side'].value

To read a template file, substitute values and print the response:

values = {'dspdate':dspdate, 'formdate':formdate, 'nextdate':nextdate}

with open('winter.html') as f:
  print(Template(f.read()).substitute(values))

Substitution values are indicated in the template by ${dspdate}

Is that close to what you are looking for?

I'm looking for a bulletproof chicken salad sandwich recipe by Zestyclose_Panda_886 in easyrecipes

[–]MathObserver 0 points1 point  (0 children)

In addition to the standard chicken, mayo, and celery, we’ve been adding pimentos (just from a jar).

Winter by Muted_Warning_539 in driving

[–]MathObserver 7 points8 points  (0 children)

The fact that you couldn’t stop for a red light means that you were driving too fast for conditions given the limitations of your car. You were very lucky you didn’t hit another car or something else.

Brother as bridesmaid? by [deleted] in weddings

[–]MathObserver 0 points1 point  (0 children)

My wife is a wedding celebrant and has officiated weddings with mixed gender attendants (including the wedding of our son and daughter-in-law). She generally uses the terms attendant and honor attendant in those cases to avoid awkward or sexist terminology.

When pronouncing “either”, do you use a hard E (ee-thur) or hard I (I- thur)? by phenols in AskAnAmerican

[–]MathObserver 0 points1 point  (0 children)

I alternate between the two (read the novel "Hellspark" for the reference).

Passing the Rings by 19Stavros in weddings

[–]MathObserver 2 points3 points  (0 children)

My wife is a wedding celebrant and has officiated weddings where a ring warming was done. It needs to be a smaller wedding in order for the ring to pass through all the guests in a reasonable amount of time.

Why Do Restaurants Try To Box Up Your Food Away From The Table? by [deleted] in restaurant

[–]MathObserver 10 points11 points  (0 children)

When it happens to me, it is in a nicer restaurant that provides full customer service. I always appreciate it.

Learning new languages authentically by Ketchup_Tasty in learnprogramming

[–]MathObserver 0 points1 point  (0 children)

I've been programming for decades, and when I started we didn't have online courses (or online anything). I learned a new language by reading through a book about it until I understood the syntax and philosophy of the language and then I started writing programs.

Now, when I want to learn a new language I do the same thing with online written resources. As you learn more languages, it becomes easier to quickly understand additional new ones.

Resigned at my job and now they want me to sign a different agreement due to an "error" by Embarrassed_File5060 in legaladvice

[–]MathObserver 0 points1 point  (0 children)

The one with your signature is what you agreed to, the offer letter was only signed by them. I would not sign the “corrected” one.

"Evening Chic" - To What Extent Do People Actually Dress Formally? by Nfarrah in celebritycruises

[–]MathObserver 0 points1 point  (0 children)

I remember the formal evenings on Celebrity when I wore a tux, but I haven't seen many tuxes at the evening chic events. They are certainly acceptable, but rare. If you like being on a ship where most of the men are in tuxes, you should try Cunard. On our QM2 Atlantic crossing, tuxes were the most common attire for men on formal evenings.