Typekit provides a large library of fonts for easy use in web and offline sync. If using a font as a web font, the font size should – obviously – be as small as possible, and Typekit is providing the Dynamic Subsetting feature since 2015, which is a useful tool for keeping the size small.
Continue reading "Use dynamic subsetting in Typekit"Category: Tips
Debugging with Xdebug and PhpStorm on Uberspace
Until recently, I just used Xdebug for debugging PHP locally with XAMPP. But now I needed to debug a problem with PayPal in WooCommerce on a remote server. This post shows you how to get this working.
Continue reading "Debugging with Xdebug and PhpStorm on Uberspace"Issue with watch script on »Bash on Ubuntu on Windows« and saving in PhpStorm
Recently I had a problem with a running watch script on Bash on Ubuntu on Windows (the Windows Subsystem for Linux (WSL)) to compile SASS and saving of files in PhpStorm. PhpStorm showed an error message »Cannot save. The file is left unchanged« and created a temporary file with the changes.
I found the solution for that in the support forum from JetBrains. To solve the issue, just uncheck the box Use »Safe write« in the PhpStorms settings under File › Settings › Appearance & Behavior › System Settings.
HTTPS with virtual hosts on XAMPP
Until now, I never used HTTPS for local development domains. Now I had to use it for a project, and here is how to get it working on XAMPP with virtual hosts.
Continue reading "HTTPS with virtual hosts on XAMPP"Reinstall »Bash on Ubuntu on Windows«
If you want to reinstall Bash on Ubuntu on Windows, you can follow these steps. In the command prompt, run the following command to uninstall the currently installed version:
lxrun /uninstall /full
/full
also removes the home folder. After that, you should be able to run a reinstall with the following command (theoretically):
lxrun /install /y
This does not work for me… I always get an error (I think it was this one: Error: 0x80070091
). Luckily, I am not the first one with that problem – the reason for that is the not-deleted lxss
folder in the local AppData directory. Before running the installation command, use the following one for removing the folder (I got the solution from a GitHub issue):
rmdir /S "\\?\C:\Users\Username\AppData\Local\lxss"
Code language: JavaScript (javascript)
Of course, you need to replace Username
with your user name. Afterward, you can run lxrun /install /y
to start the installation (hopefully) without any errors.
Run WP-CLI command on Uberspace from local Server
I wanted to run a WP-CLI command from GitLab CI (local server) on one of my Uberspaces. Since version 0.24.0, the WP-CLI provides the --ssh
argument, which lets us do exactly that. It should be easy, but I come across one small problem.
Conditional CSS for Edge and IE with breakpoints
Yesterday, I — unfortunately — had to write conditional CSS for IE and Edge… Both have problems with rendering my link :focus
style in the new WordPress theme, so I had to create a fallback.
Check kerning of fonts with »WAVES«
This time only a small tip. To get a quick overview about a font’s kerning, you can use the word WAVES. If there are large not-so-nice large spaces between letter pairs, like for Crimson Text in the screenshot above, you maybe should search for an alternative font.
I found the tip in the chargeable typography checklist from Typewolf – but, for example, they also use the word in a thread on typedrawers.com.
Auto deployment to staging and production server with GitLab CI
I recently started to deal with Continuous Integration (CI). With that, you can automatically run tasks after pushing to a version control repo, like code testing or deployment. This post shows you how a deployment process to staging and production server can look with GitLab.
Continue reading "Auto deployment to staging and production server with GitLab CI"