Taco Steemers

A personal blog.

The Twitter share button does not need javascript

When we let Twitter generate a 'tweet this button' for our website, Twitter includes a javascript file. We don't need to include this javascript file. The share button can be just a hyperlink. Twitter uses the referrer header to determine which URL the user wants to tweet about.

The javascript …

Pelican is not generating articles

Pelican is not generating articles. This is likely due to a missing dependency. Your Python version may have been upgraded, and you need to re-install the Python dependencies your Pelican installation needs.

Git pull without merge

Applying remote changes to our local branch without an additional merge commit

Library not loaded: brew, macOS, nmap

Fix dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

Python bad interpreter: No such file or directory

Fix /usr/local/opt/python/bin/python3.7: bad interpreter: No such file or directory

When (not) to squash commits

In this article I want to talk about squashing (flattening) a series of commits in to one commit. Squashing is a good tool to have, but not everything should be squashed away. Intermediate commit history can have value.

Please use root relative URLs

Resources with URLs that do not specify the root will not be loaded if the user visits a subpage directly.

Creating a new website without breaking search engine results and bookmarks

When moving our website to a different CMS or framework we might end up with a different URL structure. This is bad for search engine rankings and people's bookmarks. To avoid problems we can use rewrite rules and redirect rules.

Notes on making drag-and-drop functionality with Javascript

When I wanted to make drag and drop functionality I found there were plenty of tutorials out there. I am adding a few more words on the topic because I had to find workarounds for issues that I didn't find mentioned elsewhere.

Why can the data we just stored on disk not be read?

Data that our code writes to a file may not be accessible immediately after writing. One reason is that some output stream implementations use buffers, and prefer to write out their whole buffer in one go. In these situations, if we want to be sure the data can be read …