aliquot

< a quantity that can be divided into another a whole number of time />

Micro posting in October

October 30, 2019

2019-10-01: Well, we need to balance the tutorials, so let's dive into Just Enough Emacs Lisp now. #emacs
2019-10-01: Learn vim For the Last Time: A Tutorial and Primer. #vim
2019-10-02: > Il écrit de la main droite. Dans le toorent, il a laissé pendre la gauche, massée et alanguie d'eau froide. Il est vigilant comme un pêcheur qui surveille son bouchon. Il veut tenter de rendre, de la pointe de la plume, les baisers de l'eau renouvelée qui lave elle-même son baiser. — Régine Detambel, Petit éloge de la peau
2019-10-02: I believe this the canonical way to filter in a Pandas data frame, say d, rows that contain or better, match exactly, the word “gene”:pythond[d["type"].str.match("gene", na=False)](The na=False option is just because there are some NaN values.)Now I understand why I prefer functional languages, and more specifically why I prefer to write and chain together simple functions in Python rather than implementing complex class with shadowed methods, setters and getters. #python
2019-10-02: I'm using ox-pandoc as my main engine to export Org documents to HTML or PDF. This is mostly because I know Pandoc better than the basic (Lua)Latex + Minted/lstlistings that I haven't used in years. Funny enough, the #+ATTR_LATEX is not recognized by Pandoc, but part of #+ATTR_HTML settings (e.g., :width 75% to resize image) are honored during the export. However, neither of the HTML or PDF output include the #+CAPTION: legend! #emacs` #org<br> <a href="#" style="text-decoration: none;">2019-10-03</a>: <a href="https://music.apple.com/fr/album/goddess-deluxe-version/865230794" class="iconfont icon-music" title="rss"></a> &nbsp; Banks, _Goddess_.<br> <a href="#" style="text-decoration: none;">2019-10-03</a>: Oh I guess [my remark](https://github.com/jimhester/lintr/issues/410) became totally useless since lintr2.0.0 came out on CRAN recently. I should note that old options are still valid, though, so I can keep the following in myinit.el file:emacs-lisp(flycheck-lintr-linters"with_defaults(assignment_linter=NULL, camel_case_linter=NULL, commented_code_linter=NULL,absolute_paths_linter=NULL, line_length_linter(120))")Not that I am a big fan of camel case, but Bioconductor folks are apparently. #rstats #emacs<br> <a href="#" style="text-decoration: none;">2019-10-03</a>: [A New R6RS Scheme Compiler](https://weinholt.se/articles/new-r6rs-compiler/). #scheme<br> <a href="#" style="text-decoration: none;">2019-10-03</a>: [Akku.scm](https://akkuscm.org): Package management made easy. #scheme<br> <a href="#" style="text-decoration: none;">2019-10-03</a>: [Streamlit](https://streamlit.io): The fastest way to build custom ML tools. #python<br> <a href="#" style="text-decoration: none;">2019-10-03</a>: [What is Good About Haskell?](https://doisinkidney.com/posts/2019-10-02-what-is-good-about-haskell.html) #haskell<br> <a href="#" style="text-decoration: none;">2019-10-04</a>: <a href="https://music.apple.com/us/album/tales-of-us/828261957" class="iconfont icon-music" title="rss"></a> &nbsp; Goldfrapp, _Tales of us_.<br> <a href="#" style="text-decoration: none;">2019-10-04</a>: > Your subconscious holds onto things it thinks you might be forgetting, and regularly interrupts you about them. (...) Never let tasks or ideas sit in your mind without being captured. --- Daniel Miessler, [The Most Important Productivity Lesson I Ever Learned](https://danielmiessler.com/blog/the-most-important-productivity-lesson-i-ever-learned/)<br> <a href="#" style="text-decoration: none;">2019-10-04</a>: A bit of Clojure in Python thanks to the [itertools](https://docs.python.org/2/library/itertools.html) (islice) module:pythondef take(n, iterable):“Return first n items of the iterable as a list"return list(islice(iterable, n))def nth(iterable, n, default=None):“Returns the nth item or a default value"return next(islice(iterable, n, None), default)<br> <a href="#" style="text-decoration: none;">2019-10-04</a>: TIL (or better, releearned) about [mpv](https://mpv.io), a free, open source, and cross-platform media player.<br> <a href="#" style="text-decoration: none;">2019-10-04</a>: [Coding Matrices, Contrast Matrices and Linear Models](https://cran.r-project.org/web/packages/codingMatrices/vignettes/codingMatrices.pdf) (PDF). #rstats<br> <a href="#" style="text-decoration: none;">2019-10-04</a>: [How do dark patterns work?](https://www.darkpatterns.org)<br> <a href="#" style="text-decoration: none;">2019-10-04</a>: [Start Concurrent: A Gentle Introduction to Concurrent Programming](https://start-concurrent.github.io/full/index.html).<br> <a href="#" style="text-decoration: none;">2019-10-07</a>: <a href="https://music.apple.com/fr/album/after-bach/1338962658" class="iconfont icon-music" title="rss"></a> &nbsp; Brad Mehldau, _After Bach_.<br> <a href="#" style="text-decoration: none;">2019-10-07</a>: I believe this is what happened when you forget to add Matomo tracking code in your new partial templates.<br>![](/img/2019-10-07-15-00-23.png)<br> <a href="#" style="text-decoration: none;">2019-10-07</a>: I can't believe I have that many Homebrew packages on my HD. It's probably time to do some cleanup in my /usr/local.<br>![](/img/2019-10-07-11-46-59.png)<br> <a href="#" style="text-decoration: none;">2019-10-07</a>: I love when brilliant persons can also ask [thoughful question](https://unix.stackexchange.com/q/545244) on Stack Exchange.<br> <a href="#" style="text-decoration: none;">2019-10-07</a>: If you like reading about others' setup, _Uses This_ has a nice interview with [Chris Wellons](https://usesthis.com/interviews/chris.wellons/). Apparently, there's also a [quick review](https://irreal.org/blog/?p=8354) on Irreal. And so I learned that he now mostly uses [Vim](https://github.com/skeeto/dotfiles) and he also has a [live CD](https://github.com/skeeto/live-dev-env) in case he find himself away from his home computer.<br> <a href="#" style="text-decoration: none;">2019-10-07</a>: Kind of magic.<br>![](/img/2019-09-16-11-54-25.png)<br> <a href="#" style="text-decoration: none;">2019-10-07</a>: Ouch, it hurts! [Dear Stack Exchange, Inc.](https://dearstackexchange.com)> We’d like to make sure it’s clear that none of us support interacting with people with anything short of complete respect. As moderators, we are responsible for upholding, promoting, and respecting the high standards that Stack Exchange has set over the years, and we stand behind Stack Exchange in its move to ensure everyone feels welcome and safe.<br> <a href="#" style="text-decoration: none;">2019-10-07</a>: [Introduction to Theoretical Computer Science](https://introtcs.org/public/index.html), by Boaz Barak.<br> <a href="#" style="text-decoration: none;">2019-10-07</a>: [Worth Moving to Sweden as Engineers?](http://hongchao.me/living-and-working-in-sweden-as-engineers/)<br> <a href="#" style="text-decoration: none;">2019-10-08</a>: > The reality is half of data science is just cleaning data, and the other half is complaining about how much of data science is just cleaning data. You can add another half's worth of time for debugging your neural net, if you were coaxed into using one that isn't off-the-shelf. --- [R is a joy if you treat it like awk](http://dwrodri.blog/posts/oct-7-Rscript-snippets.html)<br> <a href="#" style="text-decoration: none;">2019-10-08</a>: Another great app by Jens Axel Søgaard: [Racket Stories](https://racket-stories.com). #racket<br> <a href="#" style="text-decoration: none;">2019-10-08</a>: I finally got my Bitbucket account back. Just so I could delete the dozens of repositories I maintained over the years there. This is a very bad user experience since I cannot delete my account and don't have any clue, even after reading the docs and the commnunity wiki. I guess I now have to contact the support center.<br> <a href="#" style="text-decoration: none;">2019-10-08</a>: I started watching [Euphoria](<https://en.wikipedia.org/wiki/Euphoria_(American_TV_series)>) yesterday evening. It's been a long since I haven't watched a TV show alone. And the pilot was quite good actually.<br> <a href="#" style="text-decoration: none;">2019-10-08</a>: MacOS Catalina is out, apparently. What's up now? Should I stay or should I come and see what they made to iTunes? And wasn't Twitter removed together with all other social media stuff, or?> The Twitter for Mac app takes full advantage of the native Mac features like multiple windows, drag and drop, keyboard shortcuts, and more.<br> <a href="#" style="text-decoration: none;">2019-10-08</a>: Starting early so I'll be sure I can listen to all of this while learning about computational biology.<a href="/img/2019-10-08-10-50-01.png"><br>![](/img/2019-10-08-10-50-01.png)</a><br> <a href="#" style="text-decoration: none;">2019-10-08</a>: TIL about [RacketScript](https://github.com/vishesh/racketscript), an experimental lightweight Racket to JavaScript compiler. #racket<br> <a href="#" style="text-decoration: none;">2019-10-08</a>: TIL there's something like the [X, Y and Z](http://socialmarketing.org/archives/generations-xy-z-and-the-others/) generations.<br> <a href="#" style="text-decoration: none;">2019-10-08</a>: Well, I find it weird that Apple products are [more expensive in France](https://lemire.me/blog/2019/10/07/the-price-of-a-macbook-air-worldwide/). Conversely, I experienced a lot of trouble with taxes when buying Stata books from the US. Anyway, I no longer can afford any Apple product by myself, so I guess I'll have to keep my finger crossed in hoping that my current Macbook will last a few more years. #apple<br> <a href="#" style="text-decoration: none;">2019-10-08</a>: [Let's go](https://music.apple.com/fr/album/this-is-for-when-live-at-hammersmith-palais-9th-november/491401791)!<br>![](/img/2019-10-08-12-29-52.png)<br> <a href="#" style="text-decoration: none;">2019-10-14</a>: After upgrading Ubuntu and R on the server at work, I'm now looking for an optimal Mac->Linux iTerm+Tmux+ssh thing. I'm close. In the meantime, I found this: [My remote shell session setup](https://blog.filippo.io/my-remote-shell-session-setup/), but I believe moshis not the [recommended way](https://gitlab.com/gnachman/iterm2/wikis/tmux-Integration-Best-Practices) anymore. And I know I definitely need to re-read [this](https://github.com/samoshkin/tmux-config) again.<br> <a href="#" style="text-decoration: none;">2019-10-14</a>: [Apple of 2019 is the Linux of 2000](https://nibblestew.blogspot.com/2019/10/apple-of-2019-is-linux-of-2000.html).<br> <a href="#" style="text-decoration: none;">2019-10-15</a>: From [Programming Praxis](http://programmingpraxis.com/2019/10/15/prime-anagrams/): There are many algorithms for recognizing anagrams. Here is an unusual one:> Assign each character to a prime number, then map a string to the corresponding primes, and compute their product. Two strings are anagrams only if they share a product.<br> <a href="#" style="text-decoration: none;">2019-10-15</a>: Today on HN: [What’s New In Python 3.8](https://docs.python.org/3/whatsnew/3.8.html) and [The Unix game](https://www.unixgame.io/unix50).<br> <a href="#" style="text-decoration: none;">2019-10-16</a>: <a href="https://music.apple.com/fr/album/post-scriptum/1443787314" class="iconfont icon-music" title="rss"></a> &nbsp; Wolfert Brederode Quartet, _Post Scriptum_.<br> <a href="#" style="text-decoration: none;">2019-10-16</a>: > A functional language is a programming language made up of functions. --- Doug Hoyte, [Let Over Lambda](https://letoverlambda.com/textmode.cl/guest/chap5.html#sec_1)<br> <a href="#" style="text-decoration: none;">2019-10-16</a>: > Plain text can certainly have a reputation for looking lazy or cheap, but I feel this is mostly perpetuated in the design and marketing communities. I can assure you that your average day-to-day users are much less opinionated about your email campaign design than you are. Look to satisfy your customers’ needs before your own. --- [Plain Text Emails, Please](https://uglyduck.ca/plain-text-emails/)<br> <a href="#" style="text-decoration: none;">2019-10-16</a>: Browsing Apple [source code](https://opensource.apple.com/source/text_cmds/text_cmds-68/) reminds me so much of plain old iWeb design. (I came revisiting this site after reading [Beating Decades Of Optimized C With 80 Lines Of Haskell](https://chrispenner.ca/posts/wc).)#apple<br> <a href="#" style="text-decoration: none;">2019-10-16</a>: From [Job Losses from Automation Are Being Actively Engineered and Funded](https://danielmiessler.com/blog/job-losses-automation-active-passive/), by Daniel Miessler:> Because humans are so static, and the types of things we need on a customer service call are so similar, the AI Customer Service Agent problem is similar to attacks against cryptography. Once you get a foothold, the attacks predictably get better, and they never get worse.<br> <a href="#" style="text-decoration: none;">2019-10-16</a>: Nicely done: Visualize the execution of different algorithms for solving the [traveling salesman problem](https://tspvis.com).<br> <a href="#" style="text-decoration: none;">2019-10-16</a>: One-to-one Tmux session reinvented: please [assist](https://assist.app/).<br> <a href="#" style="text-decoration: none;">2019-10-16</a>: What a beautiful [Emacs for writers](https://github.com/mauforonda/emacs)! #emacs<br>![](/img/emacs-mauforonda.png)<br> <a href="#" style="text-decoration: none;">2019-10-16</a>: [Beautiful Quicksort in Common Lisp](http://blog.thezerobit.com/2012/09/01/beautiful-quicksort-in-common-lisp.html). #lisp #haskell<br> <a href="#" style="text-decoration: none;">2019-10-16</a>: [Moving to zsh](https://scriptingosx.com/2019/06/moving-to-zsh/). I've been diving with Zsh long before it became the _de facto_ shell on macOS, and I just moved again, this time for [Fish](/post/fish-shell). However, there's always something nice to learn from Scripting OS X, so I'll keep this in my bookmarks, especially since I still use zsh occasionally (because of Emacs multi-term which doesn't seem to like Fish very much). Thorsten Ball has a nice [init file](https://github.com/mrnugget/dotfiles), btw.<br> <a href="#" style="text-decoration: none;">2019-10-17</a>: <a href="https://music.apple.com/fr/album/the-botanic-verses/956032773" class="iconfont icon-music" title="rss"></a> &nbsp; The March Violets, _The Botanic Verses_.<br> <a href="#" style="text-decoration: none;">2019-10-17</a>: So it appears that ZghOT0eRm4U9s:p/q2-q4! is a [chess move](https://leahneukirchen.org/blog/archive/2019/10/ken-thompson-s-unix-password.html) (and also the password of Ken Thompson from the good old Unix days). I'd be foolish to remember that kind of thing, but it's definitely a strong password!<br>![](/img/2019-10-17-11-20-30.png)<br> <a href="#" style="text-decoration: none;">2019-10-18</a>: <a href="https://music.apple.com/fr/album/live-at-xx-merge/1342205795" class="iconfont icon-music" title="rss"></a> &nbsp; Lambchop, _Live At XX Merge_.<br> <a href="#" style="text-decoration: none;">2019-10-18</a>: <a href="https://music.apple.com/fr/album/tindersticks/1368841915" class="iconfont icon-music" title="rss"></a> &nbsp; Tindersticks, _Tindersticks_.<br> <a href="#" style="text-decoration: none;">2019-10-18</a>: > There is a secret that needs to be understood in order to write good software documentation: there isn’t one thing called documentation, there are four. --- [What nobody tells you about documentation](https://www.divio.com/blog/documentation/)<br> <a href="#" style="text-decoration: none;">2019-10-18</a>: I don't remember the last time I used foldin a Terminal --- this is not thefoldyou may find in various functional PL, but one that can be very useful for [counting characters](http://feedproxy.google.com/~r/TheEndeavour/~3/5yaQqOFC0Mc/) in a file.<br> <a href="#" style="text-decoration: none;">2019-10-18</a>: That's how it looks after you trashed thousand of professional emails that are no longer relevant in your mailbox:<br>![](/img/2019-10-18-15-04-11.png)<br> <a href="#" style="text-decoration: none;">2019-10-18</a>: [Is Python really faster than C++?](https://liorpachter.wordpress.com/2019/10/09/is-python-really-faster-than-c/)#python #bioinformatics<br> <a href="#" style="text-decoration: none;">2019-10-28</a>: > Now Google wants to back out of its end of the deal. Since they are by far the dominant email provider, they apparently started thinking that they could squeeze a few more dollars out of those poor souls still using it. Of course, they’ll still be scanning your emails and collecting your data but now you’ll have to pay them to do it. --- [When Gmail Isn’t Free](https://irreal.org/blog/?p=8405)<br> <a href="#" style="text-decoration: none;">2019-10-28</a>: > The most compelling reason for most people to buy a computer for the home will be to link it into a nationwide communications network. [Steve Jobs](http://reprints.longform.org/playboy-interview-steve-jobs)Or what we call now social networks.<br> <a href="#" style="text-decoration: none;">2019-10-28</a>: I'm not a big fan of serif everywhere on a webpage, but there are definitely interesting other features in this [org-specific CSS design](https://jessekelly881-imagine.surge.sh). #org<br> <a href="#" style="text-decoration: none;">2019-10-28</a>: [Introduction to Adversarial Machine Learning](https://blog.floydhub.com/introduction-to-adversarial-machine-learning/).<br> <a href="#" style="text-decoration: none;">2019-10-28</a>: [Mac OS Catalina: more trouble than it’s worth](http://morrick.me/archives/8599). #apple> What I want from a new version of an operating system, especially one as mature as Mac OS, is that it fixes or improves what was not working well in previous versions, and that it leaves tried-and-true features and functionalities as untouched as technically possible. I don’t need and I don’t want disruption for disruption’s sake on a yearly basis. While I understand that today’s tech motto is The show must go on, that also doesn’t have to mean that the show should get painful to watch.<br> <a href="#" style="text-decoration: none;">2019-10-28</a>: [Mathematics for Machine Learning](https://mml-book.github.io).<br> <a href="#" style="text-decoration: none;">2019-10-28</a>: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10` — https://10print.org (via HN)
2019-10-29:   Wolfert Brederode Quartet, Post Scriptum.
2019-10-29: > We’re easier to please. Good is good enough. So only those who are the most upset, and know how to improve things, do the hard work necessary to make things great. The dissatisfied ones go make things better for all of us. — Why experts are annoying
2019-10-29: Nice utility to inspect a Git repo: onefetch. This is built with Rust, but the building stage didn't work for me, and there's currently no binary release for Mac.
2019-10-29: Myers Diff Algorithm - Code & Interactive Visualization. See also An Introduction To Data Science On The Linux Command Line by the same author.
2019-10-29: Text Editing Hates You Too.

micro

See Also

» Micro-posting in September » Micro-posting in August » Micro-posting in July » Micro-posting in June » Micro-posting in May