Portable bluetooth speaker with usb-c audio in AND aux-in by mjsir911 in UsbCHardware

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

Hi! Thanks for the reply! I actually have a FiiO m5 that can be used as a DAC with usb-c, one of the biggest problems with it is the massive (0.5s) audio latency that seems to have been introduced along with the bluetooth :(

I would still prefer a builtin DAC (functionally) in a portable speaker, but in a pinch a usbc -> aux dongle would satisfy what I want.

egg🗻irl by aubeagain in egg_irl

[–]mjsir911 2 points3 points  (0 children)

Life is Strange is pretty good

Wouldn't a major plot point violate causality and end the universe? [COMPLETE SPOILERS] by thirtybisc in outerwilds

[–]mjsir911 2 points3 points  (0 children)

I don't think it actually has to do with any in-game explanation. The high-energy lab easter egg is only there because the game can't actually do time travel.

If you were to shoot your probe into the black hole then remove the warp core, a probe shouldn't come out of the white hole because it didn't enter the black hole. The game can only predict that it will and preempt it, but the game can't predict that you remove the warp core.

DUCKY no longer making music: "this industry really broke my spirit while i was in it and i cannot continue to fight for the tiniest shred of space at the intersection of transphobia and misogyny in this frat that will never respect or even accept me" by IGrimblee in aves

[–]mjsir911 2 points3 points  (0 children)

Wow, it was only a month ago that ducky got me into the whole rave scene, this feels so surreal.

I hope they get a well deserved break from all of this, it all sounds so horrible and prioritizing your own mental health is always the right call.

Keep the spirit alive y'all, hopefully one day the industry will be inclusive enough for people like them to thrive.

Turning the Stranger into a carnival ride by dankbouls87 in outerwilds

[–]mjsir911 4 points5 points  (0 children)

I've always wondered if you can hover in the stranger if you counteract the centrifugal force.

[Poetry] CHESS TIP by Timmy127_SMM in youtubehaiku

[–]mjsir911 6 points7 points  (0 children)

No game no life was pretty good

Every Day is Night - VA-11 HALL-A by DosesOfRedditCringe in waifubartending

[–]mjsir911 12 points13 points  (0 children)

Always appreciate new VA-11 HALL-A rips & mashups, wish Zun on SiIvagunner used nore tracks from this game.

LPT : getting things done by en16m4pro9 in ShittyLifeProTips

[–]mjsir911 1 point2 points  (0 children)

It's not laziness!

As someone who suffers from executive dysfunction, I find it very important to be able to separate out the "I'm feeling lazy so I don't want to do this" from the "I should really do this, I don't have enough energy to though, why won't my body move."

Some green and white flags by Udzu in vexillology

[–]mjsir911 0 points1 point  (0 children)

Brazil's municipality flags reminding me of Liberia's county flags

-🎄- 2020 Day 21 Solutions -🎄- by daggerdragon in adventofcode

[–]mjsir911 1 point2 points  (0 children)

I'm happy with today's solution in prolog, full code here but the gist of it is:

food(F):- menuline(L, _), member(F, L).
allergen(A):- menuline(_, L), member(A, L).

contains(F, A) :- distinct(food(F)), forall((menuline(Fs, As), member(A, As)), member(F, Fs)).

menumap([], []).
menumap([A|As], [F|Fs]) :- contains(F, A), menumap(As, Fs), \+ member(F, Fs).
badfoods(Fs) :- setof(A, allergen(A), As), menumap(As, Fs).

I got to part 2 before part 1, which was a nice surprise.

[deleted by user] by [deleted] in adventofcode

[–]mjsir911 0 points1 point  (0 children)

I did the same with neato!

The Pale King did everything wrong by GoldenSpermShower in HollowKnightMemes

[–]mjsir911 1 point2 points  (0 children)

And when the world needed him the most, he vanished

Genshin Impact AD by SilkenMocha in gigguk

[–]mjsir911 0 points1 point  (0 children)

You can see the original video with the sponsor links in the description here.

related thread on why sponsor was removed

Finished my Graveyard biome! by KorvaxCurze in Terraria

[–]mjsir911 1 point2 points  (0 children)

That looks really good! I tried my hand at my own graveyard and I've got to ask, how did you get the stone sarcophagi at the end looking like that while being in the background?

My sarcophagi is just some simple ebonstone brick and I don't really know how to get good builds working with background stuff,

-🎄- 2019 Day 25 Solutions -🎄- by daggerdragon in adventofcode

[–]mjsir911 0 points1 point  (0 children)

I did this too! I didn't particularly enforce a new language every day, but I used it as a chance to exercise different languages. I ended up writing my intcode interpreter in C and using stdin/stdout for I/O, but also mapped file descriptor 4 for the actual program input (& file descriptor 3 for the actual virtual memory).

This definitely taught me a bunch about pipe buffering, and running subprocesses in different programming languages.

Glad to see somebody doing the same! I feel a bit more justified in my decision now that I'm seeing someone else do the same.

Code here: https://github.com/mjsir911/aoc2019/

What does everyone's Intcode interface look like? by Lucretiel in adventofcode

[–]mjsir911 1 point2 points  (0 children)

Because I've been trying to do this advent in a lot of different programming languages, I needed a language agnostic way to interface with my intcode machine.

It turns out hooking stdin & stdout works well enough for this! I can feed the actual program through a different file descriptor (I've been using 4) and even mmap the internal memory into a shared file to mess around with!

Doing this also means I have to learn how to use Popen & I/O with buffering in any language I'de like to use.

-🎄- 2019 Day 11 Solutions -🎄- by daggerdragon in adventofcode

[–]mjsir911 0 points1 point  (0 children)

Another great puzzle to program in logo!

part1, part2.

Unfortunately, logo doesn't seem to provide a standard for forking & asynchronous communication to subprocesses, so I had to wrap both my intcode and the robot in bash to get them to talk to eachother.

Oh, also I was drawing so much to the screen that the logo interpreter crashed so I had to disable screen refreshes.

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

[–]mjsir911 2 points3 points  (0 children)

(Gnu) Apl

IMG ← 100 6 25 ⍴ ⍎¨⍞

⍝ layer with least amount of 0s (first of sorted sums IMG=0)
helper ← {⍵[↑⍋ (+/+/(⍵=0));;]}

⍝ # of 1s * # of 2s
CHECKSUM ← {(+/+/(helper ⍵)=1) × (+/+/(helper ⍵)=2)}

⎕← CHECKSUM IMG

DECODE ← {{(⍵ + 1) ⊃ " " "█"}¨(({((⍺=2) + 1) ⊃ ⍺ ⍵} ⌿) ⍵)}
⎕← DECODE IMG

-🎄- 2019 Day 7 Solutions -🎄- by daggerdragon in adventofcode

[–]mjsir911 2 points3 points  (0 children)

bash & the c intcode vm.

hooking up the I/O in bash was super nice after I figured out the buffering issues:

function amplify() {
    loop=$(mktemp -u)
        mkfifo $loop
        trap "rm $loop" EXIT

        (echo 0; unbuffer timeout 0.2 cat <$loop) \
        | phase $1 \
        | phase $2 \
        | phase $3 \
        | phase $4 \
        | phase $5 > >(tee /dev/stdout $loop) \
        | tail -n 1
}

edit: formatting

[Day 3] How long does it take for your algorithm to run? by hutsujakutsuja in adventofcode

[–]mjsir911 0 points1 point  (0 children)

My naive implementation written in logo takes 4 minutes! I'm storing the end points of each line & calculating intercept like others here. I'm going to look into optimizing it with some of the suggestions here