Get rid of the macOS Catalina update badge

Tue 15, Oct 2019

This happened lately. I disabled searching for updates on my Mac, because I want to stay on 10.14, but accidentally opened the update preference pane, which then started to search for an update.

Since then, the settings icon in the dock had this red badge indicating, that there's an update available.

That's really distracting, so I tried out many commands to remove it, but none of them worked. One was working in 10.13 and lower only, another one required you to do it before the update was found, ...

But I ended up with this command, which actually worked: defaults write com.apple.systempreferences AttentionPrefBundleIDs 0 && killall Dock (Source).

Changing the login screen in macOS 10.14

Sun 13, Oct 2019

Changing the login screen wallpaper in macOS Mojave is very different from previous macOS versions.

In older versions, you could simply change the file /Library/Caches/com.apple.desktop.admin.png, but this doesn't work anymore in Mojave.

Instead, it loads the login wallpaper from /Library/Desktop Pictures/Mojave.heic. So, in order to change the login screen wallpaper, you'd have to replace the file with your custom login wallpaper.

I would recommend renaming the original file to something different (like Mojave_Original.heic), so you don't lose the standard wallpaper.

If you are using JPEG, PNG or anything else than HEIC for this wallpaper, make sure you convert it correctly. I tried it using GIMP, but that just gave me a black background instead of the actual new login wallpaper.

After that, I tried it with jpeg2heic.com, which worked perfectly fine.

Photos 07.10.2019

Mon 07, Oct 2019

Hi, here are some of the photos I took today :)

Image 1 Image 2 Image 3 Image 4 Image 5 Image 6 Image 7 Image 8 Image 9

CSS: iOS-like blurred backgrounds

Fri 20, Sep 2019

I recently found out about the CSS property backdrop-filter. It's used to apply various filters to backgrounds. This can be really useful in some occasions. After playing around with it, I figured out how to create iOS-like blurred backgrounds using this property. Here's how:

Note: not every browser supports this property currently. Check caniuse to see if your browser supports it!

  1. Set up some basic markup

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <title>CSS: backdrop-filter</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="utf-8">
    <link rel="stylesheet" href="style.css">
    </head>
    <body>
    <div id="blur">
    <p>Some text</p>
    </div>
    </body>
    </html>
  2. The CSS

Some basic stuff first:

html,
body {
    margin: 0 auto;
    background: url('/path/to/some/background.jpg') no-repeat center center fixed;
    background-size: cover;
}

div#blur {
    font-family: sans-serif;
    margin: 0 auto;
    margin-top: 10px;
    background-color: rgba(234, 234, 234, .25);
    border-radius: 5px;
    padding: 5px;
    max-width: 600px;
    text-align: center;
}

And now add the filters to blur the background of the box:

div#blur {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

That's it! You should now see a blurred background, just like this: Screenshot of Safari Technology Preview showing the rendered code

A really minimal example of the code above:

body {
    background: url('/path/to/some/background.jpg');
}

div#blur {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

blur() isn't the only effect possible with backdrop-filter. There are many more:

If you want more information on this property, check its MDN site.

The Atom feed is here!

Wed 14, Aug 2019

I made a simple script for outputting an Atom feed! So, if you wanted to read my posts in your favorite feed reader, now you can! Its URL is https://www.maxbits.net/feed/

Update 03/10/2019: I also added a JSON feed. It is available at https://www.maxbits.net/feed/json/

Update 30/10/2019: Now there's an RSS feed too: https://www.maxbits.net/feed/rss/

Welcome to my new homepage!

Sun 14, Jul 2019

Welcome to my new homepage! I completely re-made it from scratch. I think it's really cool! Not every feature is implemented yet, but I'm working on them!

You are on page 5 right now.


Back to top