Skip to main content

Latin1 vs UTF8

Latin1 was the early default character set for encoding documents delivered via HTTP for MIME types beginning with /text . Today, only around only 1.1% of websites on the internet use the encoding, along with some older appplications. However, it is still the most popular single-byte character encoding scheme in use today. A funny thing about Latin1 encoding is that it maps every byte from 0 to 255 to a valid character. This means that literally any sequence of bytes can be interpreted as a valid string. The main drawback is that it only supports characters from Western European languages. The same is not true for UTF8. Unlike Latin1, UTF8 supports a vastly broader range of characters from different languages and scripts. But as a consequence, not every byte sequence is valid. This fact is due to UTF8's added complexity, using multi-byte sequences for characters beyond the general ASCII range. This is also why you can't just throw any sequence of bytes at it and e...

Myths of Human Genetics

From Myths of Human Genetics, by John H. McDonald:

A fun way to teach the basics of genetics is to have students look at traits on themselves. Just about every biology student has, in one class or another, been asked to roll their tongue, look at their earlobes, or check their fingers for hair. Students can easily collect data on several different traits and learn about genes, dominant and recessive alleles, maybe even Hardy-Weinberg proportions. Best of all, these data don’t require microscopes, petri dishes, or stinky fly food.

Unfortunately, what textbooks, lab manuals and web pages say about these human traits is mostly wrong. Most of the common, visible human traits that are used in classrooms do not have a simple one-locus, two-allele, dominant vs. recessive method of inheritance. Rolling your tongue is not dominant to non-rolling, unattached earlobes are not dominant to attached, straight thumbs are not dominant to hitchhiker’s thumb, etc.

In some cases, the trait doesn’t even fall into the two distinct categories described by the myth. For example, students are told that they either have a hitchhiker’s thumb, which bends backwards at a sharp angle, or a straight thumb. In fact, the angle of the thumb ranges continuously, with most thumbs somewhere in the middle. This was clearly shown in the very first paper on the genetics of hitchhiker’s thumb (Glass and Kistler 1953), yet 60 years later, teachers still ask students which of the two kinds of thumb they have.

Comments

Popular posts from this blog

yt-dlp Archiving, Improved

One annoying thing about YouTube is that, by default, some videos are now served in .webm format or use VP9 encoding. However, I prefer storing media in more widely supported codecs and formats, like .mp4, which has broader support and runs on more devices than .webm files. And sometimes I prefer AVC1 MP4 encoding because it just works out of the box on OSX with QuickTime, as QuickTime doesn't natively support VP9/VPO9. AVC1-encoded MP4s are still the most portable video format. AVC1 ... is by far the most commonly used format for the recording, compression, and distribution of video content, used by 91% of video industry developers as of September 2019. [ 1 ] yt-dlp , the command-line audio/video downloader for YouTube videos, is a great project. But between YouTube supporting various codecs and compatibility issues with various video players, this can make getting what you want out of yt-dlp a bit more challenging: $ yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best...