Plurrrr

a tumblelog
home

Learn to change history with git rebase!

One of Git's core value-adds is the ability to edit history. Unlike version control systems that treat the history as a sacred record, in git we can change history to suit our needs. This gives us a lot of powerful tools and allows us to curate a good commit history in the same way we use refactoring to uphold good software design practices. These tools can be a little bit intimidating to the novice or even intermediate git user, but this guide will help to demystify the powerful git-rebase.

Source: Learn to change history with git rebase!.

On undoing, fixing, or removing commits in git

This document is an attempt to be a fairly comprehensive guide to recovering from what you did not mean to do when using git. It isn't that git is so complicated that you need a large document to take care of your particular problem, it is more that the set of things that you might have done is so large that different techniques are needed depending on exactly what you have done and what you want to have happen.

Source: Git Fix Um — On undoing, fixing, or removing commits in git.

Red Cat on the Bridge

On my way back to my mother's house I encountered a red cat walking on the stone wall of a bridge. I could only take one photo because it was quite restless but loved to be petted.

Close-up of a red cat on a bridge
Close-up of a red cat sitting on the stone wall of a bridge.

Soon it jumped off the wall and went into a nearby garden.

The Shy Calico Cat Returns

In the evening the shy calico cat returned. I fed it a thin slice of sausage and took a few photos.

Feeding the shy calico cat
Feeding the shy calico cat a thin slice of sausage.

Wasps: If you can't love them, at least admire them

No, wasps have very useful functions, one of which is to keep other insects in check. Every insect you can think of probably has some wasp that will attack it. If that wasn't the case, we'd almost certainly be using more pesticides than we already do on our farms.

Source: Wasps: If you can't love them, at least admire them - BBC News, an article by Jonathan Amos.

10 Rules Of Photography To Know And Break

Knowing when to apply the rules of photography and when to break them is essential to making great images. There are times when the rules will serve you well. Follow then too closely and your work will become predictable, rigid and dead.

Source: 10 Rules Of Photography To Know And Break.

Version 2.0.1 of tumblelog has been released

It turned out that version 2.0.0 of tumblelog has a small bug: if you use an older version of the CommonMark Perl module the constant OPT_UNSAFE is not defined. So I added some code that checks if this constant exists and if not adds it.

Get version 2.0.1.

The Watchmaker's Daughter

In the evening I started to read in The Watchmaker's Daughter, Glass and Steele Book 1 by C.J. Archer.

Version 2.0.0 of tumblelog has been released

In the evening I pushed version 2.0.0 of tumblelog to GitHub. This version renders text after an image as a caption. Or, the following Markdown:

![Cat](cat.jpg)
Photo of a cat resting.

Is rendered as HTML as follows:

<figure>
<img alt="Cat" src="cat.jpg" />
<figcaption>
Photo of a cat resting.
</figcaption>
</figure>

This allows for styling using CSS of both the image and the caption. You can see examples on this blog.

Why Go and not Rust?

Imagine you’re a developer who mainly works with Go. You go to an event and, while chatting with some people, you decide to share with them the news that you wrote a small tool that does something. You claim that since you wrote it in Go, it’s fairly fast, it’s a single binary, etc. The group seems pleased with your recount and you start feeling good, but then you notice a stranger approaching from behind. A bone-chilling wind blows and you hear: “Why Go and not Rust?”

Source: Why Go and not Rust?, an article by Loris Cro.

Dataframe Visualization with Pandas Plot

In this post I will show you how to effectively use the pandas plot function and build plots and graphs with just one liners and will explore all the features and parameters of this function. I would be using the World Happiness index data of 2019.

Source: Dataframe Visualization with Pandas Plot.

CommonMark memory corruption "fixed"

In the evening I finally had a working HTML renderer with node rewriting for the upcoming version 2.0.0 of tumblelog. Read about the memory corruption issue and a work around thanks to Nick Wellnhofer in Rewriting CommonMark Nodes in Perl "right" this time.

Invertebrate Show

In the morning my brother and I went to the invertebrate show in Harmelen. Near the entry my brother spotted a black scorpion. Not the animal, but a large chili pepper plant. As he loves to grow his own peppers he was soon in a conversation with the owner of the plant, and even managed to get two peppers so he could grow his own plants from seed.

Heterometrus petersii mating dance
Heterometrus petersii mating dance. Bottom male, top female.

Next, we walked around and admired the invertebrates on display and for sale. A lot of scorpion and tarantula species I only knew from photographs seen on the Internet, so it was very cool to see them in real life.

Schorpioenen - hun ware verhaal
Schorpioenen - hun ware verhaal (Scorpions - their true story).

Before we left I talked with Jeroen Kooijman about his book Schorpioenen - hun ware verhaal (Scorpions - their true story). He has been working on it for 3 years and it looks fantastic. Of course I bought a signed copy.

The history and legacy of jQuery

But in the past several years, jQuery’s status as the number one tool for web development has diminished. Let’s take a look at why jQuery became popular, why it has somewhat fallen out of favor, and when it would still be a good choice for a modern website.

writes Danny Guo in The history and legacy of jQuery.

A Visit to a Flower Exposition

In the afternoon my mother and I went to a flower exposition inside the local church. It was quite a large exposition and I took several photos.

Hydrangea flowering
A beautiful colored Hydrangea flowering.
Cactus Dahlia close-up
Close-up of a cactus Dahlia flowering.
Dianthus barbatus Kiwi Mellow
Dianthus barbatus Kiwi Mellow.
Callistephus chinensis 'Matsumoto Pink'
Callistephus chinensis 'Matsumoto Pink'
Close-up of a beautiful sun flower
Close-up of a beautiful sun flower.

Rewriting CommonMark Nodes issue

In the evening I added the CommonMark node rewriting code to the tumbelog program only to find out that the solution I wrote yesterday about also caused memory corruption.

Stop Infinite Scrolling on Your Website - Now!

Do people love infinite scrolling on the websites they visit or are they fine with clicking on ‘Read more’ or ‘View more?’ Infinite scrolling eliminates the need for pagination which is the process of separating digital content into different pages. Here’s my view on infinite scrolling and why it is a recipe for disaster.

writes Monish reddy in Stop Infinite Scrolling on Your Website - Now!

Rewriting CommonMark Nodes in Perl

In the evening I found out how to rewrite nodes in an abstract syntax tree generated by the Perl CommonMark parser without ending up with corrupted nodes. Of course I had to blog about this: Rewriting CommonMark Nodes in Perl.

The code given will be used in an upcoming version of tumblelog to render images with a caption.

Are black holes made of dark energy?

Two University of Hawaii at Manoa researchers have identified and corrected a subtle error that was made when applying Einstein's equations to model the growth of the universe.

Source: Are black holes made of dark energy?

She Has Her Mother's Laugh: first pages

Just after midnight I started in She Has Her Mother's Laugh by Carl Zimmer. I read the first pages, and so far I like it a lot.

New Evidence of the Asteroid That Killed Off the Dinosaurs

Drilling into the seafloor off Mexico, scientists have extracted a unique geologic record of the single worst day in the history of life on Earth, when a city-sized asteroid smashed into the planet 65 million years ago, wiping out the dinosaurs and three-quarters of all other life.

Source: Scientists Discover New Evidence of the Asteroid That Killed Off the Dinosaurs, an article by Robert Lee Hotz.

Apple Special Event

At 7pm I started to watch the Apple Special Event. While I rarely play games on the computer I am interested in Apple Arcade, and I enjoyed watching the game Shinsekai: Into the Depths by Capcom; very nicely made.

Next, a new iPad was announced: 7th generation with a 10.2" retina display. As my iPad Air 2 got stolen in a break in into our house over a year ago I have been waiting for a new model to be released. And it has, so a new iPad has been moved to the top of my wish list.

While I am still happy with my iPhone 5 I know there will be a time in the future I have to replace it so I also looked forward to the presentation of the iPhone 11.

I was very impressed with the photographic capabilities of the new phone, especially night mode. And the game that was shown running on it, Pascal's Wager, looks fantastic.

Sunsetting Python 2

We are volunteers who make and take care of the Python programming language. We have decided that January 1, 2020, will be the day that we sunset Python 2. That means that we will not improve it anymore after that day, even if someone finds a security problem in it. You should upgrade to Python 3 as soon as you can.

Source: Sunsetting Python 2.

A Memory Called Empire: Good

In the evening I finished A Memory Called Empire by Arkady Martine. Interesting world building and a good read; I look forward to a sequel.

Archive