Hack-the-Planet Podcast Episode 16

After a three week break, Episode 16 of our podcast went online…

Hack-the-Planet Podcast Episode 12 available

With some delay, episode 12 of our podcast has made its way out of the building…

Link: https://podcast.hack-the-planet.tv/2019/11/19/episode-12/

Hack-The-Planet Podcast Episode 10

Episode 10 of our (German) podcast is online:

SwiftUI lernen: https://developer.apple.com/tutorials/swiftui/resources ・ Android Studio: https://developer.android.com/studio ・ PushOver DDoS: https://blog.pushover.net/posts/2019/10/october-24-25-ddos-attack ・ DDoS: https://en.wikipedia.org/wiki/Denial-of-service_attack ・ Android API Level: https://source.android.com/setup/start/build-numbers ・ Streamsheets: https://cedalo.com/produkt/ ・ Streamsheets Docker: https://hub.docker.com/r/cedalo/streamsheets-installer ・ Hörer Fabian startet mit Node-Red: https://www.youtube.com/watch?v=KMgIa0l_ukQ ・ Xerox scanners/photocopiers randomly alter numbers in scanned documents: http://www.dkriesel.com/en/blog/2013/0802_xerox-workcentres_are_switching_written_numbers_when_scanning ・ EzControl XS1: http://www.ezcontrol.de/content/view/36/28/ ・ FS20: https://de.wikipedia.org/wiki/Funksysteme_zur_Geb%C3%A4udeautomatisierung ・ ELV MAX: https://de.elv.com/technik-fuer-ihr-zuhause/heizungssteuerung/systemuebersicht-heizkoerperthermostate/max-funk-heizungsregler-system/ ・ ELV MAX Library: https://github.com/bietiekay/MAXSharp ・ SDR Wettersensor: https://www.kompf.de/weather/rtlsdrsensor.html ・ NodeRed: https://nodered.org/ ・ Höhere Gehälter für IT Experten https://www.heise.de/newsticker/meldung/Oeffentlicher-Dienst-Bundestag-beschliesst-Zulagen-und-Praemien-fuer-IT-Experten-4569784.html ・ Ice Lake CPU: https://en.wikipedia.org/wiki/Ice_Lake_(microprocessor) ・ USB-C: https://en.wikipedia.org/wiki/USB-C ・ Quickcharge 3 für Arduino: https://www.schrankmonster.de/2019/09/18/quickcharge-3-qc3-enable-your-arduino-project/ ・ Android Espresso: https://developer.android.com/training/testing/espresso ・ JUnit: https://junit.org/junit5/ ・ WebBrowser UI Testing: https://www.seleniumhq.org/ ・ Appium: http://appium.io/ ・ Visual Studio 2019: https://devblogs.microsoft.com/devops/changes-to-coded-ui-test-in-visual-studio-2019/ ・ Elite: https://en.wikipedia.org/wiki/Elite_(video_game) ・ Elite Dangerous: https://www.elitedangerous.com/ ・ Andreas bei Distant Worlds 2: https://www.hack-the-planet.net/2019/06/02/distant-worlds-2-been-there-seen-it/ ・ Galaxie: Milchstraße: https://de.wikipedia.org/wiki/Milchstra%C3%9Fe ・ Trappist-1 System: https://de.wikipedia.org/wiki/Trappist-1 ・ Elite Dangerous VR: https://www.youtube.com/watch?v=Fa0b2Kd2xhU ・ IPv6 https://de.wikipedia.org/wiki/IPv6 ・ IPv4 https://de.wikipedia.org/wiki/IPv4 ・ Carrier grade NAT https://de.wikipedia.org/wiki/Carrier-grade_NAT ・ NAT64 https://de.wikipedia.org/wiki/NAT64 ・ aText Mac: https://www.trankynam.com/atext/ ・ Autohotkey Windows: https://www.autohotkey.com/

What could possibly go wrong… Updating the Domain again…

After we started our Hack-the-Planet podcast and the www.hack-the-planet.tv project, Daniel, co-host of the Hack-the-Planet podcast always introduced me with “Andreas from the Hack-the-Planet podcast”.

What should I do? The only way out of this misery is to update my blog’s domain once more. The second time this year. The last time I hope. This will be probably much easier than changing the introduction of our podcast. That’s already a running gag, I am afraid.

So I move from try-catch-finally.net (which was based on my strong .NET history) to www.hack-the-planet.net.

Sourcen when loading a webppage of this blog by now…

While moving the domain, I also do have a completely different goal. I will turn around each and every bit so this blog, hosted on a WordPress installation, will finally load only bits and bytes from my server.

Currently, it is an utter nightmare where this blog is loading files from. I will probably break one or another source while doing this, however, I have achieved this goal already for a few websites hosted by me.

Hack-the-Planet Podcast: Episode 006

Episode 6 of our podcast (Germany only!) is finally online. For your convenience, the episode is available on YouTube as well.

This episode talking about:

Traefik: https://traefik.io/ ・
Drive-In Briefkästen: https://twitter.com/aheil/status/1173900925318107136 ・ Automated Konbini: https://www.forbes.com/sites/akikokatayama/2019/02/26/japan-aims-to-automate-all-convenience-stores-by-2025-with-a-new-rfid-technology/ ・
Neue Packstationen: https://www.golem.de/news/deutsche-post-lidl-und-dhl-bauen-500-neue-packstationen-1907-142346.html ・
Arduino Aquarium Futter Automat: https://www.schrankmonster.de/2019/09/16/smart-arduino-fish-pond-feeder-turtlefeeder/ ・
Louis Rossmann Macbook Repairs: https://www.youtube.com/user/rossmanngroup ・
Make Buch: https://www.dpunkt.de/buecher/12488/9783864903687-make%3A-elektronik.html ・
Icinga: www.icinga.com ・
SONOS Auto Bookmarker: https://github.com/bietiekay/sonos-auto-bookmarker ・
TOTP – Time based one-time password: https://en.wikipedia.org/wiki/Time-based_One-time_Password_algorithm ・
1Password: https://1password.com/ ・
Enpass: https://www.enpass.io/ ・
ODroid GO: https://wiki.odroid.com/odroid_go/odroid_go ・
ODroid Go: https://www.hardkernel.com/shop/odroid-go/ ・

Fixing Podlove Cron Jobs in WordPress Docker Containers

While we were publishing the first episode of our Podcast, I came across some issues with WordPress, though.

First of all: We are using the Podlove Publisher and therefore WordPress to host our Podcast.

Unfortunately, I encountered an issue with the required cron jobs. The Podlove WP Cron Diagnostics showed, that there was nothing set up.

PHP Constant
ALTERNATE_WP_CRON: not definde
DISABLE_WP_CRON: not defined

As a result, any attempt to connect to running cron jobs failed. After checking Google I found a helpful hint here. All you have to do is to add

define('ALTERNATE_WP_CRON', true);

in your wp-config.php.

And here the fun begins. I am using the official WordPress Docker container and Ansible to deploy it on my servers. So you need a way to add this line to a wp-config.php file on your server using an Ansible script… I think you get it. Some years ago, you would have simply logged into your server, changed the line in the file and eventually restart your webserver.

Now everything becomes more difficult. First of all I try such things manually. To do so (as well as to verify the changes on the server) I bash into the running WordPress container

docker exec -i -t {containerId} /bin/bash

just to realize there is neither vim or even vi on this container available. Also less did not work. At least I was able to read the file using more.

Again I looked for some hints and found a great hint on Stackoverflow:

You can make use of the WORDPRESS_CONFIG_EXTRA environment variable to define any other config values in the wp-config.php file.

With this environmental variable, you can literally add anything to your wp-config.php file in the prebuild WordPress image without fiddling with own containers and so on.

environment:      
  WORDPRESS_DB_HOST: db:1234
 WORDPRESS_DB_USER: wp
 WORDPRESS_DB_PASSWORD: topsecret
 WORDPRESS_CONFIG_EXTRA: |
   define('ALTERNATE_WP_CRON', true);
    define( 'DISABLE_WP_CRON', true );

Looking into your wp-config.php now should reveal the following line:

// WORDPRESS_CONFIG_EXTRA
 define('ALTERNATE_WP_CRON', true);
 define( 'DISABLE_WP_CRON', true );

Also running the diagnostics in the Podlove plugin now should come up with some better news:

Started the Podcast

A few weeks ago, I announced to start my personal educational project Hack-the-Planet.

I started the GitHub Project, the Twitch Stream and we already gathered a small community at Reddit and Discord.

Eventually, I wanted to start a podcast. However alone, it’s only half the fun. Said that I had a surprising phone call by an old friend who was willing to start the podcast with me. That’s not only a lot of fun but also a great honor to perform the Podcast with him.

Yesterday, we finally recorded episode 0 of the podcast and already published it. The Podcast is already available at Spotify and will be available soon at iTunes as well once the Apple site works again. More on this topic in episode 1. If you are using any other application I can also subscribe directly from our feed or head to the podcast site at https://podcast.hack-the-planet.tv.

We hope to publish an episode once a week. So stay tuned and feel free to subscribe to the podcast.