First encounter with Godot

Godot engine

What is Godot

Godot engine is a free and open source 2D/3D game engine.

Projectish

TensorFlow

Testing with TensorFlow which involves compiling the game engine was a little challenge but ended well. The implementation of TensorFlow was a little limited so I discarded the idea to spent more time.

Build coachjaap.nl with Hugo

Hugo twitter logo

Building the website Coach Jaap using Hugo using theme Introduction was a challenge.

The initial build was OK but the fine tuning took way to much time.

Responsive images

I knew we need responsive images. I was suprised Hugo does not support that yet.

Fortunately the blog by Laura promised ease of implementation.

Working on a Drupal module using composer

Altering Drupals composer.json to fetch a particular Drupal module git checkout.

Mac storage cleanup

Is time machine taking this space?

Disc full

I had several incidents having a full disc due to time machine. On one occasion I suspected docker or VirtualBox do kill the machine.

I currently have 69 items. Which are dated for a whole year (sick). Do I have to blame Time Machine?

tmutils to the rescue

Executing tmutil give you a list of commands

listbackups

Using tmutils listbackups you can get a list of backup efforts.

Convert movie into animated gif.

Video to Images

Make sure not to make the resolution or duration extreme. Convert the movie into 3 digits indexed images.

ffmpeg -i video-720.mov -r 15 image-%3d.png

Weed out the duplicates

Remove unneeded images from the video manually.

Contributing to Drupal

https://vulpeslibris.wordpress.com/2011/12/15/and-i-quote-argh/

This is a quick sketch / preparation for a particular 'Contributing to Drupal' 2 hours event.

Sprint

To get started you may begin on Organizing sprints (work parties) and its sub pages. Don't bother to much about the term Sprint. We assume you want to focus together on something useful.

Convert big images into smaller versions using ImageMagick

https://imagemagick.org/image/wizard.jpg

#/usr/bin/env bash

for F in `ls *.jpg`
do
   echo "$F"
   magick convert $F -resize 25% out/"$(basename "$F" .jpg).png"
done

https://imagemagick.org/script/convert.php

Check your coding style on Drupal 8

http://www.cloudsprawl.net/wp-content/uploads/2015/07/shutterstock_232639537.jpg

Coding style?

Building software is a complex and sometimes tedious process in which you make errors and mistakes. Testing for errors is mostly done by running your website / code through tests either manually or automatically.

Checking for your code style like formatting and documentation flaws you can use a code sniffer. For PHP you can run phpcs using PHP_CodeSniffer.

Drupal core provides core/phpcs.xml.dist to tell phpcs what to test for.

Ajax nukes reference based form fields

Having nodes using fields for referencing content like og, entity reference, node reference, etc breaks apart when using ie file upload widget which produces

An illegal choice has been detected

Some of the issues below made progress.

Drupal core

https://www.drupal.org/node/1045208

https://www.drupal.org/node/1045208#comment-7927057

Views

What location aliasses are available for drush rsync

What are the values for drush rsync in %notation?


drush @site.prd php-eval "return _core_path_aliases()"
array(
'%root' => '/home/my-site',
'%site' => 'sites/default',
'%modules' => 'sites/all/modules',
'%themes' => 'sites/all/themes',
'%files' => 'sites/default/files',
'%private' => 'sites/default/files/private',
'%temp' => '/tmp',
)