26 March, 2021

Fight Spam with Contact Form 7 for WordPress


An easy way to avoid form-spam in the WordPress plugin Contact Form 7 is to add a quizz. Ask a question in order to sort out robots. 

But don't ask questions like "what is five times five". The spambots are perfectly able to hack this sort of input. As an alternative - just ask something else.

You could add a picture to the web page and ask a question about it. 

---

PS: I posted this four days ago, since then I had no spam mails via the mailform. So the quizz seems to do the trick. 

25 March, 2021

Thoughts about AdSense

These days I try whether ads from Google is a good idea - or not. The revenue for one month is 20 cents per month for this blogger site plus another website. As of now I'll let the experiment run for a month or two, and see what happens. 

08 March, 2021

MacBook: Fan running like Hell during conference calls



 It's very noisy this fan.  Running like a mad whining chicken. 

OBS and Zoom use a lot of the available CPU power. Probably the MacBook is not the mose usefull tool for a conference call. My 5-year old stationary Linux PC performs far better than this. 

However, here and now I have to use the MacBook.

24 February, 2021

Macbook: How to remove Siri


Unfortunately you can't remove Siri completely. That's an option I miss in this OS.

But you can ignore the bitch. Above you see my settings. Just turn off whatever you see: show on menubar and set "Ask Siri" to off.

On the touchbar Siri is placed on a really annoying position. At least for me - Siri started every time my fingers touched the bar by accident. 

Siri is not a service. It's a pestilence. 

Now I hope that Siri is silenced at last - but I would prefer if Apple asked permission before installing this crap-ware.




12 February, 2021

Git ignore .DS_Store from Mac

These files are soooo annoying ... and what a waste of time it is to delete them all.

In .gitignore add this:

**/.DS_Store

25 January, 2021

MS Powerpoint - if you cannot copy paste a link try this

 I tried and tried to insert a hyperlink in MS PowerPoint. Such a thing ought to be a no-brainer. But no. As usual either Mac or Microsoft or both in a sinister conspiration decided that this simple task shoul seem impossible.

But there is a stupid wordaround:

  • SHIFT + CMD + V
  • Insert unformatted text
  • Now you can paste the link string
  • Copy the #€%&/& link again
  • Now you can paste the link in the link insert thing
Don't tell me that the window based programs are more easy to use than a terminal. What a silly waste of time. 

PS: Please, don't tell Mac or Microsoft about this hack ...

[Solved] Mac: Finder - shortcuts to the left disapperared

 Whaaat ... after a restart all shortcuts are gone. Access to the Desktop, Documents etc are all gone. How can we get them back again?

Solution
Here's a solution:

  • In the bar to the left click on the > next to Favorites
  • Badaboom!

Based on: this post

22 January, 2021

How to "Page Up" and similar on a Mac

 On a Mac you need to know the hidden secrets of the art. Here are some of the practical keys you'll miss from other OS's keyboards:

  • Home: Cmd + ↑
  • End: Cmd + ↓
  • PageUp: Fn + ↑
  • PageDown: Fn + ↓
  • End: Fn + Cmd + 🠒
Q.E.D

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:

#!/bin/bash
# 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

Done.


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.

19 June, 2020

[SOLVED] Latex error: danish babel package not found

The solution is:

# sudo apt update; sudo apt upgrade -y
# sudo apt install texlive-full

After this upgrade Texmaker could compile the .tex files.


10 June, 2020

[SOLVED] Ubuntu 20.04: Harddisk mounts in arbitrary way

Ubuntu mount my data drive in a way, that seems arbitrary. After reboot at least my symbolic links don't work any more. Here is my solution to my problem.


08 June, 2020

Ubuntu

The Great Drive Mystery
Tried to set up Ubuntu. The install worked fine, but mounting the data drive and giving user access to the thing was difficult. After a days work Ubuntu would not mount the drive. So all this waiting for chmod and chown was probably in vain. I'll have to figure out why Ubuntu refused to mount the drive.

Check /etc/fstab
Here is the root of the problem. The data drive was not mentioned. This is very stange. My additions to the file yesterday simply vanished. Why? I'll give it another try. Probably the desktool is buggy. Or ... ??

The Bandit Is NOT Timeshift
This is a mystery. When Timeshift makes a backup, the mounted drive seems to move ... Ubuntu will mount the external disk with a "Home" label. That is the disk label from a previous distro. So do we have our bandit here? I'm not totally convinced.

Probably this was a coincidence. In the end I installed gparted, and mounted the drive. The /etc/fstab was correct, and after several reboots this evening the system seems stable.

Or, that's what I hope.

Gparted - enter the Hero
With gparted I could mount the drive correctly. For some reasom Ubuntu's disks tool could not do the trick. With a correctly formatted /etc/fstab the drive was mounted permanently. So far so good.

GIMP Could Not Edit Files
At first I thought that this was a general permission problem. However I could not find it. After quite a lot of web research someone somewhere mentioned, that you have to give permissions to the programs in snap!

Problem solved.

Zen Koan
You search for an error,
where there is no error.
It's somewhere else. 

06 June, 2020

SDD Crash

My browser here and now: #WCEU
This is my screen here and now.
From #WCEU 2020 a fine talk about CSS.
So my OS is up and running
Sort of ...

The picture is my screen here and now. I'm following the proceedings at #WCEU on my Linux PC. For the time being the OS is OpenMandriva.

Åbyhøj Data
My SDD crashed (Kingston 120 GB ssd now 300) and the system was not able to boot at all. Strangely enough even the BIOS was unavailable. So what was wrong with the system? Åbyhøj Data was a great help here, because it's hard to find out exactly which part of the system died.

They added a new SDD, larger than the old one. So the system improved a bit. Even better: Now the PC is able to boot again. But had to get an OS somehow. The Manjaro distro was fine, however somewhat nerdy. I need a new OS.

I bougt a Linux Magazine with a DVD on the frontpage, and tried at least to boot in Linux. And succeded. First I installed OpenMandriva.

OpenMandriva - not my taste
OpenMandriva looked promising with KDE and what not, but I found literally everything uphill. Like in everything. I don't like it, and will try something a bit more userfriendly. When I looked for documentation, the online wiki was a joke. No content in several articles. Try the empty FAQ ... 

Next Stop Ubuntu
So I guess it's a hobby project or some insider project. But now I know that my system works, and I think I'll go for a Ubuntu distro. OpenMandriva was usefull here. I could burn a USB version of Ubuntu.

At least I could use the distro in order to burn a Ubuntu USB. 

The game's afoot.


03 May, 2020

[SOLVED] Yousee modem crashed in Bridge Mode

Called the Yousee support. The modem crashed when I tried to set it in Bridge Mode. They tried to reinstall the modem software.

Some hours later I tried again. After a restart, and a modem initialization everything worked.

Online again ...