Skip to main content
 

It turns out if you enable the otherwise amazing Gnome Tweaks " Keyboard & Mouse > Pointer Location" setting then all your keyboard shortcuts using CTRL require doubling up, took me a week to figure that one out! on the desktop.

 

If you had to build a website to last 50 years what tech would you use?

 

I've updated my upgrade script with the composer based installation method. https://vandragt.com/2019/updating-known

 

My Let's Encrypt Setup

Scheduled Task (renewal)

$ sudo crontab -e

# Lets encrypt twice daily
0 7,19 * * * certbot -q renew

 

Script that reads le.txt and requests certificates for each domain

$ nano le.sh && chmod +x le.sh

DOMAINS=$(paste -s -d, le.txt)
sudo letsencrypt certonly --webroot -w /var/www/html -d $DOMAINS
sudo service nginx reload

Note: Recently certbot changed from seperating each domain with -d to comma seperated.

List of Domains (one per line, add to the end)

$ nano le.txt

vandragt.com
www.vandragt.com

 

 

For people who don’t understand UK Brexit, imho It’s all just about benefitting from a once in a lifetime realignment of how a nation is structured. Which explains the blinkers in use by some people in power. It isn’t going to result in a fairer society.

 

How to install the NVIDIA drivers on Ubuntu 18.04

sudo ubuntu-drivers autoinstall

If this fails because of a dependency that won't be installed, use apt for both the driver and the dependencies.

 

The Ethics of Web Performance

Sites that use an excess of resources, whether on the network or on the device, don’t just cause slow experiences, but can leave entire groups of people out.

Site performance is an accessibility issue. 

 

WPWeekly Episode 361 – Introduction to the IndieWeb With David Shanske – WordPress Tavern

Look forward to listening to this. Both the indyweb and WP are dear to my heart. 

 

PHPStorm font rendering on OpenSUSE

On Ubuntu LTS the font rendering on 2019.1 looked great by default, but on Tumbleweed I needed to tweak the settings a little to get the editor to look good. There is conflicting information out there for out of date versions of OpenSUSE and PHPStorm and it took a bit of research to figure out what works for me.

Under Help | Edit Custom VM Options... I added the following lines:

-Dswing.aatext=true
-Dawt.useSystemAAFontSettings=on

I also set antialiasing (within the main PHPStorm Settings | Appearance menu) to greyscale.

Finally, I added the Dreamweaver CC colour scheme to the editor by saving the xml file in ~/.PhpStorm2019.1/config/colors/.

Restart the application and select the color scheme from File | Settings | Editor | Color Scheme

Sources: sheelahb.com

 

 

I’ve switched all my personal experiments to Chassis this morning. I like the concept of plugins on a local dev setup. https://docs.chassis.io/en/latest/

 

Sometimes I do research for a browser tab and want to go back to the last used tab when I close the research topic. Other times I want to review all open tabs and cycle through them without switching back to the last used one every time. I'm ctrl-tabbing to make all tabs active but a separate keyboard shortcut would be great

 

WorkLog 2.2

WorkLog.py is a very simple script that allows you to keep track of what you are working on by writing a timestamped message to a CSV file.
It turns out it helps me stay on track during a long day of work.

Version 2.2 has some new quality of life improvements:

v2.2:

* ctrl-d or enter to quit.
* works on python2 default systems.
* f-strings,
* code more elegant.
* day based csv files.

https://gist.github.com/svandragt/080843c4ba632deaab6f3aea57ca9684

 

 

Fixing Virtualbox host network adapter cannot be created error

If when trying to start a vm, for example using vagrant, you get the error message that the host network adapter cannot be created:

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "create"]

Stderr: 0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg*)" at line 94 of file VBoxManageHostonly.cpp

Make sure to first start the virtualbox GUI application. It does some extra checks, and sometimes highlights the permission problem:

In my case (OpenSuse 15.1 Leap), my user was not added to the vboxusers group. Via Yast > Users and Security .... and editing my user account it was a simple checkbox away. Remember to relog.

If that doesn't work, reloading the kernel extensions could help:

$ sudo dpkg-reconfigure virtualbox-dkms
$ sudo dpkg-reconfigure virtualbox
$ sudo modprobe vboxdrv
$ sudo modprobe vboxnetadp

 

What's up with keyboard shortcuts on macos? For many system shortcuts, there's an application shortcut that does something different.

 

I hope iPads will become more repairable for everyone in the future. This LCD issue ours developed can be repaired only by a full swap, for 75% of the cost of a brand new faster iPad! If the price is based on value of the product instead of its cost, then so should the repair price be.

 

I’ve wondered for years why and don’t supply an update service for applications to hook into to keep themselves updated. I guess it’s a lot more complex than building an updater.

 

So seems to have removed the Preferences > Sidebar > Additional Options > Show the Quick Switcher setting. Problem is I must have accidentally enabled this before it was removed and now I can't get rid of it?

 

How the Dutch Made Utrecht a Bicycle-First City

Utrecht, the fourth-largest and fastest-growing city in the Netherlands, where average daily bike trips number 125,000.

The dazzling number of cyclists are quite a sight. 

 

ACF field groups with the same option position can be ordered by setting a key value. Key values starting with underscores are shown first. Field groups without keys are displayed inconsistently depending on the user role.