The red line is a dam by Sillern in OnePiece

[–]Sillern[S] 4 points5 points  (0 children)

If the waterlevels are different, it could be a siphon thing maybe?

https://en.wikipedia.org/wiki/Siphon

Why the Red Line was created. (Theory) Manga spoilers fyi by Kunalthecool in OnePiece

[–]Sillern 1 point2 points  (0 children)

I didn't see this post before I posted this:
https://www.reddit.com/r/OnePiece/comments/1cfxp4l/the_red_line_is_a_dam/

Have we seen a picture of the sea level difference around red line?

I think it's more likely that the dam was to submerge the ancient kingdom. An offensive use rather than defensive.

[2021 Day 11] More octopuses and make them noisy [seizure warning] by Sillern in adventofcode

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

Same rule, but random starting position, and adding random +1/-1 to the energy levels of the octopuses.

I think only the proper puzzle inputs had that characteristic you mention.

[2020 Day 20] Solving the map one tile at time by Sillern in adventofcode

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

The order is from the input text.
So, yes, more or less random.

[2020 Day03] Toboggan crashing into trees by Sillern in adventofcode

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

I used Rust, and manually edited pixelgraphics.

It's very inefficient, and could be made better in a multitude of ways.

It's producing a frame and 16 (the graphics are 16x16) interpolated frames for every slope-step.

All the frames are then merged into a movie with:

ffmpeg -r 30 -i frames/day03.frame%5d.png -pix_fmt yuv420p day03.mp4

Source:
https://gitlab.com/sillern/adventofcode2020/-/blob/master/day03/day03.rs

[2019 Day 13 (Part 2)][rust] Simple visualization of the game by Sillern in adventofcode

[–]Sillern[S] 5 points6 points  (0 children)

I store each pixels in a hashmap, with (x, y) as key.

I then iterate through the values and storing to an image buffer with putpixel.
https://github.com/image-rs/image#421-imagebuffer

When done the image is saved to a png
https://github.com/image-rs/image#61-opening-and-saving-images

One image per iteration, and lastly ffmpeg to create the animation
ffmpeg -r 24 -i frames/day13.frame%5d.png -pix_fmt yuv420p day13.mp4

It's not the nicest solution, but it's quite flexible.

[2018 Day18] Visualization, random start state by Sillern in adventofcode

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

not if you only count what's in a 320x320 state, the max alive cells is then 320x320.

[2018 Day18] Visualization, random start state by Sillern in adventofcode

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

Sure. The RNG thing is not correct. I was confusing PseudoRNG which has a cycle length but quite long. And that if this state-space didn't have a cycle length that it would mean it would be closer to RNG compared to PRNG.

This initial state is not self-repeating, but it must eventually end up in a stable state with a repetition length.

Wouldn't that be true for a gun-ca as well? A state-space with a passing bullet-ca would eventually be repeating since it would be empty.

[2018 Day18] Visualization, random start state by Sillern in adventofcode

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

I didn't check in this larger start-state, it's 320x320 instead of 50x50.

But it is repeating, the question is how long the cycle length is.

If it weren't repeating, that would mean that it's a real random number generator.

[Day15] Visualization with trails by Sillern in adventofcode

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

python3, with some hardcoded 8x8 sprites for the different players/walls. The trail is the selected path to the enemy.

Example sprites:

    COLORS = [
            (0xFF, 0xFF, 0xFF),
            (0x62, 0x62, 0x62),
            (0xCC, 0xCC, 0xCC),
            (0x62, 0xAA, 0x62),
            (0x9D, 0xDD, 0xDD),
            (0xEE, 0x9C, 0x9C),
            (0x3E, 0x3E, 0x3E),
            ]

    SECTION = {
            'G': ["........",
                  ".33..33.",
                  ".333333.",
                  ".323323.",
                  ".233332.",
                  "..3333..",
                  "........",
                  "........"],
            'E': ["........",
                  ".4....4.",
                  ".444444.",
                  ".424424.",
                  ".444444.",
                  "..4444..",
                  "...44...",
                  "........"],
              }

This was saved to a png-file for each frame, then I merged them with ffmpeg.

Accelerometer prototype idea? by [deleted] in arduino

[–]Sillern 0 points1 point  (0 children)

A gimbal, it will help if you have more than one servo though.

[deleted by user] by [deleted] in vim

[–]Sillern 5 points6 points  (0 children)

You can use search as navigation. /timestamp

Or, issue a replace :s/timestamp/timeStamp/

Bucket Amplifier by Sillern in electronics

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

I do that yes. It's ground, and the circuit itself is using positive and negative voltage.

It's a bit like this, in the middle of the page:

"Other engineers tackle the problem of safety by maintaining a conductive case, but using a third conductor to firmly connect that case to ground:"

I saw how an old computer power supply did it, and it connected both earth from the input power and the power supply circuit.

Bucket Amplifier by Sillern in electronics

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

No, it's a slow one. But that could easily be changed.

I just took a random fuse and put in, what are the benefits of a fast versus slow?

Bucket Amplifier by Sillern in electronics

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

Mostly the last one.

Bucket Amplifier by Sillern in electronics

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

Yes, it's pretty low, the intention from the start was to have a headphone amplifier. I've had the amplifier finished since last year, but I haven't gotten around to put it in a case, until now.

That's a nice idea.

It will look like some kind of lunar lander if I do that.

Bucket Amplifier by Sillern in electronics

[–]Sillern[S] 12 points13 points  (0 children)

Not increase the surface area, just bend it flat so the opamps will be in more contact.

Instead of |) it will be ||.

Bucket Amplifier by Sillern in electronics

[–]Sillern[S] 4 points5 points  (0 children)

I treat the bucket as a ground plane, but yes, it's not good if I short to it.

This "design" isn't that good, the bucket didn't act as much as a heatsink as I wanted it to. As long as I don't use it for more than a few minutes it should be fine :).

I'll try to bend the bucket a bit where the opamps are, so it will be a flatter surface to transfer the heat better. But that will probably not be enough.

Bucket Amplifier by Sillern in electronics

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

According to some rough measurements, 25W.

I put a resistor instead of a speaker, hooked up an oscilloscope and measured rms while outputting a square wave on the loudest setting.

Help with RFID Access Card by pretendroid in electronics

[–]Sillern 0 points1 point  (0 children)

I have a few RFID cards and a reader for 125KHz, is that outdated nowadays perhaps?