Posts about Misc
-
GPL Incompatibility
"GPL incompatibility" of a FOSS license is not a problem of the incompatible license, it's the problem of the GPL. Most permissive licenses and file-based copyleft licenses can be used together in a project without any conflict and that's great. It's GPL that doesn't like any neighbors.
-
LGPL is a bad practice
TL;DR: Don't use LGPL, avoid library-based copyleft in general.
The closest acceptable no-brainer replacement should be GNU GPL with Classpath Exception, but the concept of library-based copyleft itself is flawed. It's better to consider MPL (less copyleft) or full GPL (more copyleft).
-
Python Type Hints
Python type hints are garbage.
-
No Discrimination
In these uneasy times I just want to remind to all these passionate activists around that there are other ethical points beyond any given "today thing" even when the today thing is truly horrible.
The Open Source Definition states that open-source software must comply with the following criteria:
5. No Discrimination Against Persons or Groups The license must not discriminate against any person or group of persons.
6. No Discrimination Against Fields of Endeavor The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research.
So whether you are breaking these rules for fun or showing your political position, you should remember:
It is not as fun as it seems.
You are not hurting the people you hate, you are hurting the open-source community.
-
sass-hsv
I haven't found a nice small helper for HSV/HSB color format like the one LESS has so I published my first npm package.
-
TOML vs YAML
So... Let's compare.
-
Open Letter in Support of Richard Stallman
https://rms-support-letter.github.io
Please even if you do not agree with him politically but still don't like that raging mobs decide for others, sign the letter here: https://github.com/rms-support-letter/rms-support-letter.github.io/pulls
-
OTP Links
Have you ever seen an one time password link in a regular
<a>
tag?Here is an example TOTP link from Google Authenticator repo:
otpauth://totp/Example:[email protected]?secret=JBSWY3DPEHPK3PXP&issuer=Example
The most familiar form for them is QR codes:
Which is a problem if you're alterady on your mobile device and you can't scan it. For this case there is usually a text like "Please manually add the key
JBSW Y3DP EHPK 3PXP
to your Authenticator app". But what about the link itself? Well, just try it on your phone: click me.I'm really shocked that it works perfectly and that I have never seen this simple and very web style solution in action.
-
Is NEON a Better YAML?
Short answer: NO. If you know what I mean.
-
What's Wrong with StrictYAML
While I'm still delaying my position on TOML vs YAML holy war let's look at the StrictYAML.
StrictYAML is a type-safe YAML parser that parses and validates a restricted subset of the YAML specification.
Seems great but let's look at the removed features list, Implicit Typing to be precise: