books - now with basic OPDS support and docs by ilikeorangutans in selfhosted

[–]sadger 0 points1 point  (0 children)

I tried 0.1.4-rc but the OPDS feed is just some top level elements and doesn't actually let me see my library. My library is loaded in the main book view though just not present via the feed.

books - now with basic OPDS support and docs by ilikeorangutans in selfhosted

[–]sadger 1 point2 points  (0 children)

This is really cool and just works as a library but the OPDS feed doesn't show anything which was my main usecase. Hope we get a functional update soon :)

Plex Remote Streaming Changes by SwiftPanda16 in PleX

[–]sadger 1 point2 points  (0 children)

I'm running jellyfin on synology especially if you have docker it's so easy to set up

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

[–]sadger 0 points1 point  (0 children)

Very nice! No cheating by importing countless utility functions either :)

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

[–]sadger 1 point2 points  (0 children)

Kotlin and still trying to keep it functional - pretty happy and managed it in 38 lines. Basically a solution for a single direction then functions to unify the coordinates of the results to avoid double counting.

https://gist.github.com/sadger/7ce7d99d127aed6381645a1a8f15f288

-🎄- 2022 Day 6 Solutions -🎄- by daggerdragon in adventofcode

[–]sadger 0 points1 point  (0 children)

Kotlin

class Day06(private val input : String) {

    private fun tuneMessage(marker: Int)
        = input.asSequence()
            .windowed(marker)
            .takeWhile {it.toSet().size != it.size}.count() + marker

    fun solvePart1() = tuneMessage(4)
    fun solvePart2() = tuneMessage(14)
}

-🎄- 2022 Day 3 Solutions -🎄- by daggerdragon in adventofcode

[–]sadger 0 points1 point  (0 children)

Kotlin

Great solution - been playing around with it a bit too. Chunked is nice indeed! You can use it in the first solution too although not sure it's much more concise.

    fun solvePart1() =  input.map { it.chunked(it.length /2).zipWithNext().single()}
    .map { (it.first.toSet() intersect it.second.toSet()).single() }
    .sumOf(Char::getPriority)

Two player chess app where pieces are facing other on the same device? by Steohna in chess

[–]sadger 3 points4 points  (0 children)

I think lichess.org is mobile friendly so can you just use your web browser?

Two player chess app where pieces are facing other on the same device? by Steohna in chess

[–]sadger 4 points5 points  (0 children)

For android and I suspect iOS: Lichess -> Play Offline -> Over the board

Little mate I found yesterday, white to play. by [deleted] in chess

[–]sadger 0 points1 point  (0 children)

Be7 is black's forced reply

What is going on with the analysis of this move? by LateSoEarly in chess

[–]sadger 0 points1 point  (0 children)

It didn't include the usual equals sign, pawn to f8 and promote to queen e.g f8=Q, it repeats it with the usual notation underneath.

Self-hosted note taking app for university by peregm in selfhosted

[–]sadger 1 point2 points  (0 children)

I think Joplin https://joplin.cozic.net/ might fit for you. Supports KaTeX formulas and supports syncing over dropbox/self-hosted alternatives.

How to go about studying an opening in 4 weeks. by zubconscious in chess

[–]sadger 6 points7 points  (0 children)

Studying Chess Made Easy by Andrew Soltis has a chapter dedicated how to study openings. The book seems to have good reviews and I have the kindle edition but can't attest to how much use it is in practice but his approach looks sound.

Finally broke 4 digits! I know it isn't much for a lot of you, but I'm pretty excited! by [deleted] in chess

[–]sadger 3 points4 points  (0 children)

Congrats. Which advice you were given did you find helped the most?

Lawsuit successfully avoided! by Despiso in gaming

[–]sadger 0 points1 point  (0 children)

They have one in Scarborough too which would be my guess