From 50dcde434e76909a0495b3deb38ac0a56c8e89a6 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Fri, 15 Apr 2022 11:44:51 +1000 Subject: added some mposts --- microposts/dns66.org | 10 ++++++++++ microposts/nc-nd.org | 15 +++++++++++++++ microposts/reading-emacs.org | 19 +++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 microposts/dns66.org create mode 100644 microposts/nc-nd.org create mode 100644 microposts/reading-emacs.org diff --git a/microposts/dns66.org b/microposts/dns66.org new file mode 100644 index 0000000..16f8870 --- /dev/null +++ b/microposts/dns66.org @@ -0,0 +1,10 @@ +#+title: dns66 +#+date: <2022-02-17> + +For some reason, the Google public DNS seems to have become a default +for many programs, including systemd. After installing Lineage OS, I +noticed it also used Google public DNS as the default DNS for WiFi. +To make things even worse, it was not changeable. I tried several +ways documented on the web, including changing it in the WiFi setting, +but none worked. In the end, I was able to fix it with an app called +[[https://f-droid.org/en/packages/org.jak_linux.dns66/][DNS66]]. If you face the same problem, give it a try. diff --git a/microposts/nc-nd.org b/microposts/nc-nd.org new file mode 100644 index 0000000..53a9265 --- /dev/null +++ b/microposts/nc-nd.org @@ -0,0 +1,15 @@ +#+title: The CC BY-NC-SA license is bad, don't use it +#+date: <2022-03-03> + +The CC BY-NC-SA license permits remix, but forbids commercial use +(therefore nonfree). It is a weird frankenstein that combines +copyleft with nonfree elements. As a result, works under this license +will beget derived works, which will also be nonfree because of the +ShareAlike (SA). It is a mistake by Creative Commons, which should +have not designed any noncommercial licenses, or if it really wanted +to, made noncommercial an optional clause of NoDerivative (ND) +licenses. + +Please do the public a favour and don't release your work under the +NC-SA license. If you really do not want to allow commercial use, +please use NC-ND instead to avoid nonfree derivatives. diff --git a/microposts/reading-emacs.org b/microposts/reading-emacs.org new file mode 100644 index 0000000..1107e5b --- /dev/null +++ b/microposts/reading-emacs.org @@ -0,0 +1,19 @@ +#+title: Reading pdf or djvu in Emacs +#+date: <2022-02-17> + +DocView mode is a versitile builtin major mode in emacs, with the +ability to display pdf, djvu, odt etc. + +However, it is not really cut for the job for displaying large pdf or +djvu. It can be slow, and may hang emacs when opening large djvu +files. + +If you want to view pdf, [[https://github.com/politza/pdf-tools][pdf-tools]] is a great alternative. It is much +faster (I'd say as fast as external pdf viewers like zathura), and +offers an outline mode style toc navigation. It also supports fast +regexp isearch as well as occur. There's a nice demo which you can +view with mpv, youtube-dl +etc. http://www.dailymotion.com/video/x2bc1is_pdf-tools-tourdeforce_tech?forcedQuality%3Dhd720 + +For djvu, I recommend use the [[https://elpa.gnu.org/packages/djvu.html][djvu mode]] instead. It does not make +emacs hang, and allows quick switch between image and text. -- cgit v1.2.3