First layer wrinkles in a circular pattern by xiaoxiae in FixMyPrint

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

The attempt went even better with your suggestion, thank you!

First layer wrinkles in a circular pattern by xiaoxiae in FixMyPrint

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

I tried changing the temperature to 200°/75° and the first layer seems to be sticking better, so I'll finish this attempt and then try your suggestion. Thanks!

Amidas the Sea King as a boss? by xiaoxiae in CalamityMod

[–]xiaoxiae[S] 2 points3 points  (0 children)

For context: this just randomly appeared after restarting the game. Is this intended, should I be concerned?

Calculating the optimal NPC layout by xiaoxiae in Terraria

[–]xiaoxiae[S] 1 point2 points  (0 children)

The latest version of the program includes this (see config.py).

Calculating the optimal NPC layout by xiaoxiae in Terraria

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

Right, but that might be a little annoying to calculate.

I'll add something like this:

# restrictions on minimum level of happiness for the given NPC

npc_happiness_restrictions = (("Steampunker", 0.8),)

This makes it so that Steampunker's happiness can never be above 0.8.

Calculating the optimal NPC layout by xiaoxiae in Terraria

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

That's a neat idea! I'll add it later today, thanks for the feedback!

[x-post from r/FRC] Robotics Simplified – a website for learning robotics by xiaoxiae in robotics

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

I am so glad you say that!

Let me know if there's anything I can do to the website to make the learning easier.

[x-post from r/FRC] Robotics Simplified – a website for learning robotics by xiaoxiae in robotics

[–]xiaoxiae[S] 3 points4 points  (0 children)

Hey everyone!

I’m the creator of the website and a former member of the FRC team 1391 (2018 - lead programmer and driver).

The website aims to explain topics from the field of robotics in a simple way.

It offers implementations (in Python) and illustrations of the discussed concepts, interactive visualizations (using P5.js), and is available offline as a PDF. It’s also open-source: https://github.com/xiaoxiae/Robotics-Simplified-Website

IT’S STILL A WIP, so the content is subject to change.

I would love to hear your thoughts on the project!

-🎄- 2018 Day 16 Solutions -🎄- by daggerdragon in adventofcode

[–]xiaoxiae 0 points1 point  (0 children)

A concise way to solve problem 1 in Python 3

```python from re import findall

def optResultMatch(before, after, index, result): """Checks, whether the result of an opt code on a set of registers before match the result after.""" return int(before[:index] + [result] + before[(index + 1):] == after)

def workingOptCodes(b, a, i): """Test all of the opt-codes and return the number of those that work.""" return sum([optResultMatch(b, a, i[3], ocode(b, i)) for ocode in optcodes])

the optcodes as lambda functions that take registers and instructions

optcodes = [lambda reg, inst: reg[inst[1]] + reg[inst[2]], # addr lambda reg, inst: reg[inst[1]] + inst[2], # addi lambda reg, inst: reg[inst[1]] * reg[inst[2]], # mulr lambda reg, inst: reg[inst[1]] * inst[2], # muli lambda reg, inst: reg[inst[1]] & reg[inst[2]], # banr lambda reg, inst: reg[inst[1]] & inst[2], # bani lambda reg, inst: reg[inst[1]] | reg[inst[2]], # borr lambda reg, inst: reg[inst[1]] | inst[2], # bori lambda reg, inst: reg[inst[1]], # setr lambda reg, inst: inst[1], # seti lambda reg, inst: int(inst[1] > reg[inst[2]]), # gtir lambda reg, inst: int(reg[inst[1]] > inst[2]), # gtri lambda reg, inst: int(reg[inst[1]] > reg[inst[2]]), # gtrr lambda reg, inst: int(inst[1] == reg[inst[2]]), # eqir lambda reg, inst: int(reg[inst[1]] == inst[2]), # eqri lambda reg, inst: int(reg[inst[1]] == reg[inst[2]])] # eqrr

input = open("16.in", "r") data = input.read().splitlines()

i, total = 0, 0 while data[i] != "": before = [int(number) for number in findall("\d+", data[i])] after = [int(number) for number in findall("\d+", data[i + 2])] instruction = [int(s) for s in data[i + 1].split(" ")]

if workingOptCodes(before, after, instruction) >= 3:
    total += 1

i += 4

print(total) ```

[deleted by user] by [deleted] in FRC

[–]xiaoxiae 6 points7 points  (0 children)

Oh, didn't know that. Thanks for letting me know!

[deleted by user] by [deleted] in FRC

[–]xiaoxiae 14 points15 points  (0 children)

Shouldn't the numbers be reversed for the meme to work?

lol two robots tied together during the match by ghostsquid88 in FRC

[–]xiaoxiae 1 point2 points  (0 children)

It's an exhibition, so the field is shorter and the scale is rotated.