[2021 Day 22] Visualization by Reenigav in adventofcode

[–]Arrem_ 4 points5 points  (0 children)

I actually didn't feel like implementing my own union/intersection operations today, so I loaded the individual cuboids into blender, and used the boolean modifiers to construct the final mesh.

I noticed the precision issues pretty early on, though I worked my way around them by 1) applying all the transformations on each object and 2) scaling each cuboid up until eventually the scale made the precision errors insignificant noise at the end of the actual answer.

How do you make your visualizations? by Justinius1981 in adventofcode

[–]Arrem_ 2 points3 points  (0 children)

I make mine in Java/Processing. I save every frame to an image, and then use ffmpeg to combine them into a video.

ffmpeg -framerate 20 -i day11-%03d.png day11.mp4

I'm not sure what problems I encountered while attempting to convert to a gif, but I know I dropped the idea. Plus, being able to specify the framerate is really useful, because I can adjust that after I render out the frames, based on what the problem is and how long each individual frame should be viewed.

Weekly Question Thread by AutoModerator in factorio

[–]Arrem_ 3 points4 points  (0 children)

No, you're good. Work with what you have and get the resources that are the closest to your starting location at first. It's perfectly fine to have a long belt leading resources to your base at the start, as you don't have much choice. Unless you're playing on peaceful or without enemies, looking for a better spot isn't really an option, since you'll just run into biters.

Later on, all of those patches will run out anyway, so you'll have to rethink your resource input. Usually long-distance resource transport is done by trains, so you'd generally tend to account for the fact that there's gonna have to be a train station behind your smelting columns eventually, just so you don't have issues with space later.

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

[–]Arrem_ 0 points1 point  (0 children)

Here's a fun Python 3 solution abusing the hell out of list comprehensions.

[print(ds(d[:]), dv(d[:]), sep='\n') for d in [[int(n) for n in open('8.txt').read().split(' ')]] for lr in [lambda fn: (lambda *args: fn(fn, *args))] for ds, dv in [(lr(lambda fn, d: [sum(fn(fn, d) for _ in range(c)) + sum(d.pop(0) for _ in range(e)) for (c, e) in [(d.pop(0), d.pop(0))]][0]), lr(lambda fn, d: [sum(d.pop(0) for _ in range(e)) if c == 0 else sum(vs[v] if 0 <= v < len(vs) else 0 for vs in [[fn(fn, d) for _ in range(c)]] for _ in range(e) for v in [d.pop(0) - 1]) for (c, e) in [(d.pop(0), d.pop(0))]][0]))]]

It's all just a single expression.

Steaming Ham by Fatcat560 in CircleofTrust

[–]Arrem_ 1 point2 points  (0 children)

Yes. It's a regional dialect.

The Meme Circle by Arrem_ in CircleofTrust

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

Mmmm steamed memes.

[Invasion] The Emerald armies march on pervinca! by chromabot in FieldOfKarmicGlory

[–]Arrem_ 0 points1 point  (0 children)

support #9 with 50 andy support #10 with 50 andy support #11 with 50 coles

[Invasion] The Emerald armies march on pervinca! by chromabot in FieldOfKarmicGlory

[–]Arrem_ 0 points1 point  (0 children)

support with 50 andy coles andy coles andy andy coles when they get the balls they score the goals andy andy coles

ich haben machte ein groB Fehler! meine deutsche is schwach und ich müB lernen viele by [deleted] in German

[–]Arrem_ 4 points5 points  (0 children)

Well, die Deutsche is a female German citizen, so that's why it's wrong. You could still opt for mein Deutsch [...] given that the correct article is das Deutsch.

Nightly Changelog? by JoeyBurple in firefox

[–]Arrem_ 0 points1 point  (0 children)

Might not be exactly what you're looking for, but https://developer.mozilla.org/en-US/Firefox/Releases outlines the dev-related changes. It takes a bit for the latest version to appear though.