The trusty vim can be used as a hex editor by using the xxd filter. Just use the following command: :%!xxd This basically means: %!: select all xxd: filter Once the filter has been applied the view can be something like this (for a .png file): If changes are needed, they should be made to…
Blog
installing pico-sdk in wsl
Start wsl and create a directory that is accessible from windows, then change there: Clone the master branch from the sdk repo and initialize die submodules: Go back one directory and clone the examples repo: Update your apt repositories And install the tools: My cmake installation was ok, but it may need to have cmake…
A WordPress theme from scratch 5
Custom pages and page templates. After inserting content and defining default and custom css-classes for the different pages, we are going to work on how to provide different pages with each its own structure and content. Custom page templates Creating a custom page template is a simple matter. It requires creating a .php file with…
A WordPress theme from scratch 4
Content. Custom Classes. We have added menus capabilities to our webpage and that is excellent. But where is the beef, or more specifically, where are the posts and the pages and everything else: where is the content. To access the content, we need to create a content-loop. On WordPress, this is also known as The…
Serial Port Windows
Use mode to display or set the serial communication ports on Windows. Display available ports with their settings, Show help on mode Example for DMX on COM4
A WordPress theme from scratch 3
Menus and Menu locations With the new theme set as active, if we open the Dashboard and expand Appearance, we notice that in comparison to other “complete” themes we are missing quite a bit. Let’s begin by activating Menus on our theme. We edit the file functions.php and include the following code: After that, our…
Hyper-V Manager for Windows 10 Home
If your would like to use Hyper-v but you are running Windows Home, you know it is not available. To activate it you can try this batch script. Notice: This file is not mine. I found it on the Iternet, analyzed it (to make sure it was safe) and ran the commands one by one…
A WordPress theme from scratch 2
Structuring the theme I would like to have different directories for my CSS and JavaScript, so let’s create them. Remember that we start from our installation directory. After doing this, we have created the directories css and js containing the (empty) files my-first-theme.css and my-first-theme.js respectively. We will insert content in these files later. For…
A WordPress theme from scratch 1
Creating the theme I know nothing about WordPress. Like many others, I am just a user. For a long time, I have wanted to understand at least the basics of WordPress themes and perhaps be able to customize those used in my blog. So I set up on a quest to learn more about it….
Run docker as non-root
After installing docker, you may encounter that your commands fail with a “permission denied” message when trying to run them as a non-root user: The same command succeeds when run as root, but that is nothing to write home about. Root can do anything. Docker’s official documentation addresses this problem at: https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user But if you…