10 January, 2021

Ubuntu: How to open a browser window in a URL via Bash

"I want a fast way to open a browser in a specific URL from a folder.

Here is a solution in Bash. Create a file like this:

# open url in chrome
xdg-open https://whateverURL.whot

Now save the file, as myURL.sh or similar. Remember to make the file executable:

# chmod a+x myURL.sh

Now you can run the file from your favorite terminal:

# ./myURL.sh

Works on: Linux / Ubuntu.

11 December, 2020

[ Solved ] Gitkraken - get out of full screen

Idiotic UI error in Gitkraken
This is an idiotic UX error in Gikraken's UI. The program starts in full screen, and there is no button or anything that will tell you how to get out of the mess. The solution is:

shift + control + F

11 November, 2020

WordPress: change the order of posts

  • Change the publish date
  • Make sure that the one you want to se first will be the most recent post ;-)
Since the posts are sorted by publication date this hack will change the order of your posts.

30 October, 2020

Minify or Remove new Lines from a File

For a WordPress plugin I need a program, that will remove any new lines in html. Then you can use the code in a PHP variable. In practise this is what a minifier does. There are many online tools, but I'd prefer to do it myself.

In Bash - that is Linux or Mac terminals - you can do this with just one line of code. First save your markup in a file test.html via your most trusted editor. 

Then do this:

#  tr -d '\n' < test.html > test.min.html

Understand this code:

  • tr = translate characters
  • -d = delete
  • '\n' = new line
  • < test.htm = from the file test.html
  • > test.min.html = save the result to the file test.min.html


26 October, 2020

[ SOLVED ] Mac: Onedrive

 I had some issues with Mac and onedrive. I used Outlook via a browser, mostly Chrome. That was no good idea. There were no error messages from the Onedrive app. I had a hunch and installed Outlook on Mac.

Et voila: that did the trick.

09 October, 2020

Guitar Amp and the Effect Loop

 In this article Jed Van Wyngaardt explains what you should put where.

In front of the amp:

  • Tuner
  • Wah
  • Overdrive
  • Distortion
In the effects loop:
  • EQ
  • Chorus
  • Delay
  • Reverb
How about Orange Crush and Boss GT-1?
With Boss GT-1 everything gets somewhat complicated, since it has everything in one. Probably you should disable wah, overdrive, distortion and preamp - and then run the chorus, delay and reverb in the effects loop. Or simply add everything in front of the amp. 

16 September, 2020

WordPress Backup: I'm using All-in-One WP Migration

 Just so that I'll know what to install if WordPress or my web host should fail.

Elementor: The Onepager Trick


Here is the onepager trick for WordPress in Elementor. Just add a custom HTML block. And yes you can do likewise in Gutenberg

The code will try to jump to a HTML element with the id goTOAbout, e.g.

<aside id="goTOAbout"> Lorem </aside>

That's it. If you want smooth scroll, do this in your stylesheet:

html {
  scroll-behavior: smooth;

08 September, 2020

[.SOLVED ] Google Not Accepting Chrome for Gmail

 That's a strange problem.
I cannot log in.
I cannot read gmail.
In Chrome ... !

Wyrd problemz in Discworld.

A new install of Chrome solved the problem.