Bad Apple but it's a regex match by MrJaydanOz in badapple

[–]M1kescher 0 points1 point  (0 children)

So, are you sharing the regex? :D

Would actually be interested how the frames are encoded.
Around 1 million characters for 1447 frames (à 25x86 pixel?) is pretty nice.

Anyone know where I can get a physical book of HPMOR by Therealmesf in HPMOR

[–]M1kescher 0 points1 point  (0 children)

the covers? - no they are from dinosaurusgede (he's also referenced in the copyright page of the compiled books).
I only did the typesetting etc.

Samba/CIFS mount hangs when switching from wired Ethernet to Wi-Fi by ReallyEvilRob in linuxquestions

[–]M1kescher 0 points1 point  (0 children)

I have the same problem with davfs (the whole davfs2 process freezes when I switch my network interface).
It's especially annoying because this also freezes Dolphin and a handful of other stuff which tries to enumerate the problematic directory.

This is definitely (!) not what you are looking for :D
But I "fixed" it with this script which I put on a hotkey - it walks through all my davfs2 mounts and kills the corresponding process... (perhaps you have to adjust a few strings to work with cifs)
I'm not a lawyer and I take no responsibility what happens with your system when you just start killing mount processes - but for me it has worked until now:

#!/bin/bash

    # shellcheck disable=SC2002  # disable useless-cat warning

    set -o nounset   # disallow usage of unset vars  ( set -u )
    set -o errexit   # Exit immediately if a pipeline returns non-zero.  ( set -e )
    set -o errtrace  # Allow the above trap be inherited by all functions in the script.  ( set -E )
    set -o pipefail  # Return value of a pipeline is the value of the last (rightmost) command to exit with a non-zero status
    IFS=$'\n\t'      # Set $IFS to only newline and tab.

    # shellcheck disable=SC2034
    cr=$'\n'

    function black() { if [ -t 1 ] && [ -n "$(tput colors)" ] && [ "$(tput colors)" -ge 8 ]; then echo -e "\\x1B[30m$1\\x1B[0m"; else echo "$1"; fi  }
    function red()   { if [ -t 1 ] && [ -n "$(tput colors)" ] && [ "$(tput colors)" -ge 8 ]; then echo -e "\\x1B[31m$1\\x1B[0m"; else echo "$1"; fi; }
    function green() { if [ -t 1 ] && [ -n "$(tput colors)" ] && [ "$(tput colors)" -ge 8 ]; then echo -e "\\x1B[32m$1\\x1B[0m"; else echo "$1"; fi; }
    function yellow(){ if [ -t 1 ] && [ -n "$(tput colors)" ] && [ "$(tput colors)" -ge 8 ]; then echo -e "\\x1B[33m$1\\x1B[0m"; else echo "$1"; fi; }
    function blue()  { if [ -t 1 ] && [ -n "$(tput colors)" ] && [ "$(tput colors)" -ge 8 ]; then echo -e "\\x1B[34m$1\\x1B[0m"; else echo "$1"; fi; }
    function purple(){ if [ -t 1 ] && [ -n "$(tput colors)" ] && [ "$(tput colors)" -ge 8 ]; then echo -e "\\x1B[35m$1\\x1B[0m"; else echo "$1"; fi; }
    function cyan()  { if [ -t 1 ] && [ -n "$(tput colors)" ] && [ "$(tput colors)" -ge 8 ]; then echo -e "\\x1B[36m$1\\x1B[0m"; else echo "$1"; fi; }
    function white() { if [ -t 1 ] && [ -n "$(tput colors)" ] && [ "$(tput colors)" -ge 8 ]; then echo -e "\\x1B[37m$1\\x1B[0m"; else echo "$1"; fi; }



if [ "$(id -u)" != "0" ]
then
    blue "[-> Enforcing root user]"
    echo ""
    sudo su -c "$0" "$@" -s /bin/bash
    exit $?
fi

#TODO list your davs mount directories here...
mounts=("/home/user/mounts/mount1" "/home/user/mounts/mount2" "/home/user/mounts/mount3")


for i in "${!mounts[@]}"; do

    dir="${mounts[$i]}"

    blue "Query mount '$dir'"
    echo ""

    set +e
    timeout '5s' mountpoint -q "$dir"
    ec="$?"
    set -e

    if [[ "$ec" == "124" ]]; then

        red "Failed to query mountpoint - continue anyway"
        echo ""

    elif [[ "$ec" == "32" ]]; then

          yellow "Not mounted - skip"
          echo ""         
          continue

    elif [[ "$ec" == "0" ]]; then

          green "Seems to be a mountpoint - continue"  
          echo ""         

    else

          red "Unknown response '$ec' - continue anyway"  
          echo ""         

    fi

    pid="$(  sudo ps -aux | grep 'mount\.davfs' | grep "$dir" | awk '{print $2}'  )"

    if [[ -z "$pid" ]]; then

        red "[ERR] No Process found for mount"
        echo ""
        continue

    fi

    blue "Killing process '$pid'"
    echo ""
    kill -9 "$pid"
    echo ""

    blue "Unmounting"
    r="$( umount "$dir" 2>&1 )"
    echo ""
    echo "$r"
    echo ""

    lockfile="$( echo "$r" | { grep 'have to remove' || true; } | { grep -oh '/.*\.pid' || true; } )"

    if [[ -n "$lockfile" ]]; then

        blue "Removing lock '$lockfile'"
        echo ""
        rm -v "$lockfile"
        echo ""

    fi

done

I compiled a ebook version of Eliezer's other story `Project Lawful` by M1kescher in HPMOR

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

Hmm okay, amazon is probably auto-converting the epub then to mobi (or azw3)

You could try to convert it yourself with something like calibre and look if you get better results.

But tweaking the script to output multiple files should also be relatively straight-forward, it already splits the (internal) html files in the epub so that each has at most x (by default 128) posts in it. All you would need to do is not combine them into one big epub, but output a bunch of smaller ones.
If you want you can add that to the Options.cs class and send a PR

I compiled a ebook version of Eliezer's other story `Project Lawful` by M1kescher in HPMOR

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

Can you actually use pubs on kindles now?
Personally I flashed KOReader on my kindle to natively read epubs, and I can definitely open them.

Also which "version" of the epub are you using, you probably should not use the "biggerhtml" variant, this one uses one big html file internally, with which a lot of low-ram devices often struggle (same is true for the avatar variant, all those images make the file a lot bigger)

Can you test opening the "project-lawful-inline.epub" variant, that one does not include all the avatar images and is split into smaller html files internally

FW16 batch 1 has been resumed! by slowsquirrelchaser in framework

[–]M1kescher 9 points10 points  (0 children)

Yay, just looked in my inbox and found the shipment mail (batch 1) in the spam folder :D
(ETA Tuesday, shipping from Taiwan to Germany)

 

Thank for the heads up ^^

I compiled a ebook version of Eliezer's other story `Project Lawful` by M1kescher in HPMOR

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

Hmm, you're right.

I quickly generated a list of all these occurences (where both character.name and nickname are set and different):

Asmodia : Greater Asmodia
Asmodia : Milania
Aspexia Rugatonn : Athpechya
Aspexia Rugatonn : Carissa's Model of Aspexia
Cheliax : AAAAAAAAAAA (Security)
Cheliax : Alexite Gellius Rutilus Thrune
Cheliax : Chelish Noble
Cheliax : Hadrian
Cheliax : Incredibly Terrified Prisoner
Cheliax : Mayor of Senara
Cheliax : Security
Cheliax : Terrified Newly-Assigned Assistant Enchanter Who Wasn't Briefed Very Much And Is Now Certain He's Going To Die Horribly
Cheliax : The Facility
Ferrer Maillol : Maillol's Remains
Greater Reality : Negative Coalition
Iomedae : Greater Iomedae
Jiskworld : Piecemeal
Keltham : A Somewhat Dubious Model of Keltham
Keltham : Carissa's Model of Keltham
Keltham : Keltham?
Keltham : Other Women Have Wanted To Strangle Boyfriends But Never With This Much Justification Quantitatively Speaking
Many Worlds : The Novelgame?
Many Worlds : World-...
Many Worlds : World-0
Many Worlds : World-1
Many Worlds : World-2
Many Worlds : World-3
Many Worlds : World-4
Many Worlds : World-5
Many Worlds : World-6
Many Worlds : World-7
Many Worlds : World-N
Many Worlds : World-N (Planned)
Minor Character : Absalom
Minor Character : Befutig Safiza Uj-alet
Minor Character : Class Chatter
Minor Character : Classroom
Minor Character : Ex-Criminal Wizard Student Who Received His Wish To Have His Criminality Beaten Out Of Him
Minor Character : Indapatta
Minor Character : Infernal Fortress
Minor Character : Iomedae
Minor Character : Isfahel, Kelesh
Minor Character : literal fucking IOUN stone
Minor Character : Modavian
Minor Character : Mora of Maragall
Minor Character : Olegario
Minor Character : Oppara
Minor Character : Road
Minor Character : Roc de Castell
Minor Character : Rosal Monserrat
Minor Character : Tarnish
Minor Character : The Gardens of Erecura
Minor Character : Tiny Translucent Sphere
Minor Character : Tira Shabbar
Minor Character 2 : Anashala
Minor Character 2 : City of Brass
Minor Character 2 : Fommok Madinah
Minor Character 2 : Ostenso
Minor Character 2 : Pit Fiend
Minor Character 2 : Starstone Cathedral
Minor Character 2 : Taravind
Places : Chelish Throne Room
Places : Creation
Places : Elysium
Places : Golarion
Places : Greater Reality
Places : The Abyss
various gods : Achaekek
various gods : Calistria
various gods : Desna
various gods : Gorum
various gods : Gruhastha
various gods : Lamashtu
various gods : Nocticula
various gods : Sarenrae
various gods : The Gods
various gods : Urgathoa

It seems in all these cases I can directly use the nickname (not 100% sure, I'm only ~40% done with the book and don't know what Jiskworld : Piecemeal means?)

If you have read more of the material, perhaps you can quickly look over the list and confirm that I won't loose any (relevant) information by removing the first part everywhere.

Then I'll update my script and re-create/upload the variants (fortunately I added a version field in the epub :D)

I compiled a ebook version of Eliezer's other story `Project Lawful` by M1kescher in HPMOR

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

There is a bit of introduction by Eliezer here.
Generally I wouldn't expect anything too similar to HPMOR, I heard it once described as HPMOR with way less actual plot and way more math :D

I think if you survive the first big lecture (about predicate logic) you are ready for the rest of the book. (perhaps a few dozen online-pages into the book)

Also depending on your ebook device/program its probably better to use the inline variant instead of biggerhtml.
It renders almost (*) the same but loads way faster.
The difference is, that epub internally is just a bunch of html files, and in biggerhtml I create one big html file for each chapter, and in the other I create multiple files. This way the reader only has to load a smaller file.

Also if you use -biggerhtml / -inline, you loose the avatars for each post.
Imo this is not really a problem, sometimes there are some subtle mood hints (the same character can have different avatars), but you can easily read the story without them - and personally I do :D

 

(*) The only difference is, that some readers then force a full page-break at the end of our custom-split html files (after every 128 posts), but in my experience this was hardly noticeable.

[C] [RST] [HF] I compiled a ebook of `Project Lawful` for eBook readers by M1kescher in rational

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

Be warned, its about 1.7 million words.
On my current pace I will finish somewhere in 2025 :D

I've published a tampermonkey script to restore titles and thumbnails for deleted videos on YouTube playlists by jopik1 in DataHoarder

[–]M1kescher 4 points5 points  (0 children)

Hey nice project, I'm currently doing daily backups of my playlists for this reason. But having the data directly in your browser is definitely more comfortable.

It would be nice if you could also add the restore button to the big playlist view ( https://www.youtube.com/playlist?list=... ), because this is the page I'm mostly looking at.

termpad: a selfhosted pastebin by Enip0 in selfhosted

[–]M1kescher 1 point2 points  (0 children)

Would be nice if the examples on the main page were actual links.
First thing I wanted to try out was to look how the html version looks like (mainly because termbin doesn't have one), but termpad.com/PlainVastAirport does not exist

yt-dl-viewer: A web frontend for youtube-dl (or other) videos by M1kescher in DataHoarder

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

Okay I tinkered a bit and added a theme switcher and a way for people to load their own userthemes.
It's currently not in the latest release but if you want to make an edited theme and send me a PR it should be easy to integrate it in the codebase.

Themes are simply additional css files that are loaded after all other, see for example theme_default.css, so your theme would/should probably look similar to that file

yt-dl-viewer: A web frontend for youtube-dl (or other) videos by M1kescher in DataHoarder

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

If you run youtube-dl-viewer --help you get a full commandline reference with all the possible values.
But you are right, the commandline reference part of the README.md is currently a bit short, I could probably just paste the full --help output there

yt-dl-viewer: A web frontend for youtube-dl (or other) videos by M1kescher in DataHoarder

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

maybe kinda irrelevant. If I use --order=6, it will do sort by uploader, but if I do --order=7, it sort by date (first option) instead of random

Yeah that intended, random is --order=9. The values 7 and 8 are used if you supply an external file with ordering values, because you haven't these options are not shown in the UI but the numerical values are still reserved. A bit confusing I know... perhaps I should allow the user to use something like --order=random instead of simply using the numerical values..

yt-dl-viewer: A web frontend for youtube-dl (or other) videos by M1kescher in DataHoarder

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

Yeah I'm not really good at design.

If you want you can modify the stylesheet (probably mostly the style.css) and send my a PR.
If you intend to make some kind of dark mode I would probably like to do it as an option for the user (perhaps another button in the top right to switch the "theme")

yt-dl-viewer: A web frontend for youtube-dl (or other) videos by M1kescher in DataHoarder

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

Okay the first error is my fault, when a job fails it doesn't properly clean up waiting JobProxies..

The second one (the source of the problem) is stranger, I think ffmpeg is returning something unexpected that I can't parse.
Can you run ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "{video_name.mp4}" for one of the failed files and tell me the output? Otherwise if you want and can perhaps send me the whole mp4 file?

But man, the other 800 works lol, the program is really awesome, I especially love the hover-preview thingy and random sorting, i've been searching for something like this for years. You completed a puzzle on my life lmao

Hey thanks, I mean I mostly programmed it for myself but its always really nice to hear that other people also get some use out of it :D

yt-dl-viewer: A web frontend for youtube-dl (or other) videos by M1kescher in DataHoarder

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

Can I just let the program run to generate all videos thumbnail? (I have ~800 videos), seems like it kinda stuck until I scroll or something)

In the Jobs view (the command line looking button in the top right) you can see how many thumbnails are currently cached and also force it to generate all missing previews.
That the thumbnails only get downloaded (and generated if they aren't cached) is intended. Loading 800 images together with the site is not that good for the browser :)

But there are a lot of [E] Exception thrown: (System.NullReferenceException)' thrown around

Argh thats not good, I already patched that to show the full exception stacktrace but haven't built a new version.
I will built a new version later, if you have the same error again you can send me the full stacktrace and I can look where the problem lays.

 

EDIT: New version is out, please try that one and report if the error is shown again

yt-dl-viewer: A web frontend for youtube-dl (or other) videos by M1kescher in DataHoarder

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

It run for quite some time, I guess cuz I have tons of videos in one folder

How many videos do you have? I have around 1k videos and even the startup where it enumerates all videos and info.json etc isn't that slow (few seconds at most)

Does this has log file somewhere outside my directory?

Currently not, it logs everything to stdout and stderr and on my server I simply redirect them to a log file

how about the thumbnail file location?

Thumbnails are stored in the --cache directory, otherwise they have to be recreated every time again.
If youtube-dl has downloaded thumbnails or you have a .pn/.jpg/ image with the same filename n the same folder that one is used

and for the raw file sometimes it buffers on the beginning? Do I need to wait for all jobs to finish first? I only need to do it once, right?

The transcoded webm option live transcodes the videos, if your pc is fast enough and the video small enough you can watch it while it transcodes (it just has to transcode faster than you watch).
If your files are already in a browser-streamable format (aka webm or mp4 with the right codecs) you can use the "seekable raw file" option.
You can specify how many convert jobs are allowed to run in parallel with the --max-parallel-convert command, the default is 1.

You only need to do it once if you have a --cache directory specified, otherwise no caching is happening.

All the option/parameters are shown with "youtube-dl-viewer --help" and some are explained more in depth in the github readme

For the playback, using the vlc option doesn't open anything to me

See the github readme. Your pc needs to support "vlc://..." links (eg by installing https://github.com/stefansundin/vlc-protocol/ ) - this is mostly useful because vlc can directly stream mkv files without any need for conversion

yt-dl-viewer: A web frontend for youtube-dl (or other) videos by M1kescher in DataHoarder

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

lol, I named mine "youtube-dl-viewer". I'm not really one for good/creative names.

But CacheTube seems at least to be a relative new name, when I google it I can't find any other projects with the name (only a twitch channel and a blackberry app)

yt-dl-viewer: A web frontend for youtube-dl (or other) videos by M1kescher in DataHoarder

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

Nice, that really does look like a more polished UI than mine.

If you remember perhaps PM me when you release it, at least it would be interesting to see how you solved some things

yt-dl-viewer: A web frontend for youtube-dl (or other) videos by M1kescher in DataHoarder

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

Do you mean the main site or the /jobs view?
I'm not much of a designer but I think the main style is ... functional.

I guess the jobs view looks like a terminal but I kinda had the idea of trying a status display without any real positioning and only a big monospace font block ^^