PWPacharapol Withayasakpuntinpolv.hashnode.dev·Oct 3, 2021 · 1 min readCustomizable PDF viewer with self-built PDF.jsAt first glances, PDF viewer seems to be as easy as opening a PDF URL in an Iframe; however, not only uncustomizable, but also, if some browsers doesn't support PDF browsing, it could be a problem. A solution to this would be Mozilla's PDF.js. Howeve...00
PWPacharapol Withayasakpuntinpolv.hashnode.dev·Sep 30, 2021 · 2 min read"docker compose" (v2) vs "docker-compose" (v1) vs "podman-compose" - which one to choose?Latest Docker Compose (v2) https://docs.docker.com/compose/cli-command/ Now, the command is no longer docker-compose (although there is compose-switch), but rather, a Docker plugin, docker compose. For some reasons, it had to rebuild my Dockerfile im...00
PWPacharapol Withayasakpuntinpolv.hashnode.dev·Jul 1, 2021 · 1 min readWhy is KDE so buggy for me compared to other DE?OK, the customization is good. Most things can easily be customized; but I have a little problems. Autostart conky -d starts multiple instances This can be proved with pidof conky. A quick fix for me is sh -c 'killall conky || true && conky -d'. Dolp...00
PWPacharapol Withayasakpuntinpolv.hashnode.dev·Dec 6, 2020 · 3 min readHow to humanize duration accurately in JavaScript, including weeks, months and yearsIt is very simple, that you might not need a library, although there are cautions. That is, using Date object. Be aware of months and leap years. Don't try to use straight simple approximation of raw milliseconds. Let me say this first. I still have ...00
PWPacharapol Withayasakpuntinpolv.hashnode.dev·Sep 16, 2020 · 3 min readI triple-booted on an 8-years-old MacBook Pro (and OS's comparison)So, I got my hands on an 8-years-old MacBook Pro (mid 2012), with 4GB RAM, 500GB SATA HD, and Core i5 CPU. Good thing about this, is 500GB is very large. (Compared to nowadays usual small (but faster SSD) 128GB - too small to dual boot.) My MacBook P...00