Plurrrr

a tumblelog
home

What Does an Unprocessed RAW File Look Like?

What does it mean to look at a “straight from camera” RAW photo file? How do RAW processors like Lightroom change the files after they’re loaded, and are RAW files actually images? Those are some questions we’ll be exploring in this article.

Source: What Does an Unprocessed RAW File Look Like? an article by Matthew Miller.

History and effective use of Vim

This article is based on historical research and on simply reading the Vim user manual cover to cover. Hopefully these notes will help you (re?)discover core functionality of the editor, so you can abandon pre-packaged vimrc files and use plugins more thoughtfully.

Source: History and effective use of Vim an article by Joe "begriffs" Nelson.

In the evening I read most of this article. While I mostly use Emacs I now and then use vi or vim for small edits or to look at a file. I want to improve my vi/vim skills, and this article showed to me several interesting features.

What's coming in Python 3.8

The Python 3.8 beta cycle is already underway, with Python 3.8.0b1 released on June 4, followed by the second beta on July 4. That means that Python 3.8 is feature complete at this point, which makes it a good time to see what will be part of it when the final release is made. That is currently scheduled for October, so users don't have that long to wait to start using those new features.

Source: What's coming in Python 3.8 by Jake Edge.

I look forward to the "walrus operator" := and the debugging support for f-strings. See also What’s New In Python 3.8.

The PGP Problem

Cryptography engineers have been tearing their hair out over PGP’s deficiencies for (literally) decades. When other kinds of engineers get wind of this, they’re shocked. PGP is bad? Why do people keep telling me to use PGP? The answer is that they shouldn’t be telling you that, because PGP is bad and needs to go away.

In the evening I read The PGP Problem on the Latacora blog.

Two quick notes: first, we wrote this for engineers, not lawyers and activists. Second: “PGP” can mean a bunch of things, from the OpenPGP standard to its reference implementation in GnuPG. We use the term “PGP” to cover all of these things.

A highly recommended read, thanks!

Turn your fzf into a live REPL

I just came up with this idea of abusing fzf --preview flag to turn simple commands into live REPL with instant feedback loop

I installed the fuzzy finder (FZF) earlier this month and have been using it a few times, but this use is new to me. After reading the examples I had to try one of my own, a Perl REPL:

echo '' | fzf --print-query \
      --preview 'perl -e {q}'

This works great for small stuff like making a few calculations!

Free-Wrench by Joseph R. Lallo

In the evening I started in the steampunk / science fantasy Free-Wrench by Joseph R. Lallo. It's the first book in a series which looks promising. That, and it's a short read.

The Cutting Edge: a great read

In the evening I finished The Cutting Edge by Jeffery Deaver. The book met my expectations; it was a great read.

How many kinds of USB-C™ to USB-C™ cables are there?

tl;dr: There are 6, it's unfortunately very confusing to the end user.

While I don't own any USB-C device yet, it's good to know that there are 6 kinds of USB-C to USB-C cables:

Here they are, current as of the USB Type-C™ Specification 1.4 on June 2019:

  1. USB 2.0 rated at 3A
  2. USB 2.0 rated at 5A
  3. USB 3.2 Gen 1 (5gbps) rated at 3A
  4. USB 3.2 Gen 1 (5gbps) rated at 5A
  5. USB 3.2 Gen 2 (10gbps) rated at 3A
  6. USB 3.2 Gen 2 (10gpbs) rated at 5A

Read more in How many kinds of USB-C™ to USB-C™ cables are there?, an article by Benson Leung.

Avoiding Webscraping Throttling Using Python and Tor as a Proxy

I do not condone the use of this information for creating illegal web crawlers. This was more an informational exercise and I wanted to share it with others. Another thing to note is that some sites are able to automatically block IP’s that are Tor exit nodes, so this may not work for some sites that go to these measures.

Source: Avoiding Webscraping Throttling Using Python and Tor as a Proxy.

I've used Tor as a proxy several times in the past for web scraping projects so I read this article with interest.

In the afternoon I bought "De 'easy' vogel gids van heel Europa", the Dutch translation of "The Shell Easy Bird Guide", in a second-hand shop.

Cover of "De 'easy' vogel gids van heel Europa"

The book is in an excellent condition and I couldn't resist buying it for just one euro. The book is written by Rob Hume and illustrated by Peter Hayman.

Fastest Way to Load Data Into PostgreSQL Using Python

In this article we explore the best way to import messy data from remote source into PostgreSQL.

In the evening I read Fastest Way to Load Data Into PostgreSQL Using Python by Haki Benita. A very interesting read; recommended.

Candy and hardware

In the afternoon a package arrived. It had several bags of Dutch licorice and two pieces of hardware; gifts from Paul in return for some Perl programming.

The first piece of hardware is a tiny camera; SQ11 mini DV. I used VLC to test it after connecting the camera to my Mac mini, and it works.

Close up of a NodeMCU V3

The second piece of hardware is a NodeMCU V3, an open source IoT platform. I have to look into how to program / use this little device.

Thanks Paul!

Five JavaScript bad coding habits to unlearn right now

In this post, I describe 5 common bad coding habits in JavaScript. And importantly I will present my actionable recommendations on how to get rid of these habits.

In the evening I read 5 JavaScript bad coding habits to unlearn right now, an article by Dmitri Pavlutin. As I use more and more JavaScript in a large project for a customer I want stay up to date with this language and of course avoid bad coding habits.

A Skull Bone Discovered in Greece May Alter the Story of Human Prehistory

The bone, found in a cave, is the oldest modern human fossil ever discovered in Europe. It hints that humans began leaving Africa far earlier than once thought.

In the evening I read A Skull Bone Discovered in Greece May Alter the Story of Human Prehistory, an article by Carl Zimmer. A very interesting read. I still have Carl Zimmer's book, She Has Her Mother's Laugh: The Powers, Perversions, and Potential of Heredity on my books wishlist. Maybe next month.

Coding Without Comments

if your feel your code is too complex to understand without comments, your code is probably just bad. Rewrite it until it doesn't need comments any more. If, at the end of that effort, you still feel comments are necessary, then by all means, add comments … carefully.

The above quote comes from an article by Coding Horror's Jeff Atwood; Coding Without Comments, which I read in the evening.

Cat Colors — Get the Fascinating Facts Behind Cat Coats & Patterns

Modifying genes means endless possibilities for cat colors and patterns. From tabby cats to pointed patterns to tricolors like calicos, let’s learn more!

As you might have noticed my posts here now and then consist of cat photos; I love cats. I can't currently keep one, but love to read up on cats. Hence, in the evening I read Susan Logan McCracken's article Cat Colors — Get the Fascinating Facts Behind Cat Coats & Patterns. I learnt a lot from this great post.

Avoiding Booleans

In the evening I read Avoiding Booleans an article by Jeff Atwood. An interesting read.

Intro Guide to Dockerfile Best Practices

There are over one million Dockerfiles on GitHub today, but not all Dockerfiles are created equally. Efficiency is critical, and this blog series will cover five areas for Dockerfile best practices to help you write better Dockerfiles: incremental build time, image size, maintainability, security and repeatability.

In the evening I read the first in a series of blog posts by Tibor Vass: Intro Guide to Dockerfile Best Practices. A great read; I look forward to the rest of the series.

Children of Ruin: a very slow read

In the afternoon I finished Adrian Tchaikovsky's Children of Ruin, the sequel to Children of Time. While the latter was a great read the former not so. It took me quite some time to finish the book. While the story was not bad, it was too long-winded in my opinion.

The Cutting Edge

In the evening I started in The Cutting Edge by Jeffery Deaver, a Lincoln Rhyme novel. It's the 14th book in the series and I have read all 13 before it and loved them all. So you can say I have high expectations.

Archive