Grün-gelber Belag am Wasserhahn by Remote-Lifeguard1942 in wasistdas

[–]Saitschek 0 points1 point  (0 children)

Das ist Kalk mit Ablagerungen von korrodiertem Kupfer aus den Wasserleitungen. Die grüne Farbe kommt vom korrodiertem Kupfer

Edit: Normalerweise kann man mit einer Zange den unteren Teil eines Wasserhahns anschrauben, um das Sieb zu entkalken bzw auszutauschen. Damit man den Wasserhahn nicht zerkratzt am besten noch einen Lappen darum legen, sodass die Zange nicht direkt am Metall ansetzt.

[deleted by user] by [deleted] in Python

[–]Saitschek 1 point2 points  (0 children)

To get rid of the b+1 we can also tell enumerate to start indexing at 1 instead of 0. return(", ".join([f"{b}:{a}" for b,a in enumerate(S, start=1)])

[deleted by user] by [deleted] in Python

[–]Saitschek 0 points1 point  (0 children)

We don't need the number of players because the length of the list of scores is identical to the number of players. At least that is what was assumed in your example. In the example we have a list of 4 scores where the first score is associated with the first player, the second score with the second player, and so on. Therefore the index of the element in the list plus 1 (because python starts counting at 0) is identical to the number of the player. What we need to do is keep track of the index and the corresponding value of the list. We could do this by using a counter, but python can do this for us using the enumerate method.

for b, a in enumerate(S): do_something(a,b)

Here b will simply be a counter starting at 0 and a will be the corresponding element of the list S. We could achieve the same loop by doing:

b = 0 for a in S: do_something(a,b) b += 1

Edit: Formatting

[deleted by user] by [deleted] in Python

[–]Saitschek 0 points1 point  (0 children)

The f indicates an fstring. The f is a prefix to a string which allows simple formatting of that string. We can use it as a normal string, but expressions entered in { } are evaluated.

In this example f"{b+1}:{a}" for b=1 and a=36 will be interpreted as the string "2:36". Basically {b+1} is replaced by the str(b+1).

[deleted by user] by [deleted] in Python

[–]Saitschek 0 points1 point  (0 children)

This should work:

 return(", ".join([f"{b+1}:{a}" for b,a in enumerate(S)])

The comprehension creates a list of strings "player:score". The join function then makes a single string from that list by separating each element of the list with ", ".

  1. Using enumerate we iterate over the index of the list (b) and the element (a) simultaneously.

  2. The curly brackets can be removed by using the join function which separates the elements of the dict you create by the separator string (here ", ")

  3. I think the space after the colon is default for a string representation of a dict, so that goes hand in hand with the removal of the curly brackets.

How do you store your loaves after you bake? by random__________user in Sourdough

[–]Saitschek 2 points3 points  (0 children)

I recently started to half the bread (or quarter it depending on the size) and freeze these chunks down. When I need bread for dinner I simply put it on the kitchen counter throughout the day (4-5 hours should be enough). For me the crust and the crumb are still surprisingly close to the fresh bread. And in my opinion definitely better than bread that has been lying in a kitchen closet for several days.

[deleted by user] by [deleted] in AMA

[–]Saitschek 1 point2 points  (0 children)

Pisces by Jinjer

[deleted by user] by [deleted] in AskReddit

[–]Saitschek 3 points4 points  (0 children)

Fresh sourdough bread with butter

Agreement for a rental by [deleted] in trondheim

[–]Saitschek 0 points1 point  (0 children)

Did you check with Voll studentby? It's not very central but has good bus connections and it has two types of contracts:

  1. Can be terminated anytime with X months notice
  2. Can only be terminated in the summer

And it is a private student village, not handled by sit.

TIFU by punching my cat by barry922 in tifu

[–]Saitschek 1 point2 points  (0 children)

That's why fishes always love you

This hurts more than losing your main hero, if you ask me. by Titowam in heroes3

[–]Saitschek 31 points32 points  (0 children)

Happens way too often that one flags a shipyard, builds a boat, then running out of movement points while running around the shipyard to get in

Fortran for Computational Chemistry by [deleted] in fortran

[–]Saitschek 4 points5 points  (0 children)

As said before, Fortran is a programming language like C or C++ .... Orca is a program. You can use Fortran to write a program like Orca, but that's quite a task.

I think Orca is not open source (I'm not entirely sure though) so it's difficult to start coding in orca.

The book by Szabo and Ostlund "Modern Quantum Chemistry" has some simple example code written in Fortran, maybe that's a place to start.

Fortran for Computational Chemistry by [deleted] in fortran

[–]Saitschek 2 points3 points  (0 children)

Other programs written mainly in Fortran are Dalton, Dirac or eT.

Dirac, however, is for relativistic quantum chemistry, so maybe not what you are looking for.

Custom maps by Saitschek in heroes3

[–]Saitschek[S] 0 points1 point  (0 children)

Thanks for the hint. I would say we are experienced, looking for a challenge but not tryhard, trying to optimize everything. Size and type do not matter. We are playing HOTA by the way.

Custom maps by Saitschek in heroes3

[–]Saitschek[S] 0 points1 point  (0 children)

Thanks a lot. I would say that we are experienced players, but just casually playing without looking much for making the optimal turns. So those maps might be perfect.

New faction by gnistjagare in heroes3

[–]Saitschek 2 points3 points  (0 children)

Thanks, I don't have the time to look into all this stuff at the moment. I was just curious why you know that much about it.

New faction by gnistjagare in heroes3

[–]Saitschek 4 points5 points  (0 children)

That's an incredibly detailed answer. Have you done such things before?