The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,861 other subscribers

Archive for the ‘Mac’ Category

Generating random strings for passwords and uuids/guids on both Windows and Linux using base64 and hex encoding, plus: “Hive Systems: Are Your Passwords in the Green?”

Posted by jpluimers on 2026/02/25

Often I need to generate passwords or uuids (on some systems called guids). I usually try to do that in a relatively platform agnostic way as I use MacOS, Windows and Linux in various mixes for many reasons (for instance that I have had developed quite hefty RSI in the early 1990s of the and the best keyboard/pointing-device combination for is the MacBook built in keyboard/touchpad combination so basically MacBooks are my window to all other operating systems).

Generating randomly with a good random number generator them makes sense as for most usage, it is important that both passwords and uuids are hard to guess which means having an entropy that is as high as possible.

A cool thing about OpenSSL is that:

  1. most of not all systems have it installed (it was no coincidence I published Installing OpenSSL on Windows a few days ago)
  2. it has a very good pseudo-random number generator and as of [Wayback/Archive] OpenSSL version 1.1.1 first released in 2018 has solved the problem around [Wayback/Archive] Random fork-safety – OpenSSLWiki, see [Wayback/Archive] Our Review of the OpenSSL 1.1.1 Random Number Generation Update – OSTIF.org.
  3. it supports various useful output formats hex (hexadecimal) and base64 (next to the default of octet – or by today’s naming convention byte – output)

The easiest to generate are passwords. Yes I know that password managers can do this too, but there are some systems I cannot use them on or sync between them (don’t you love the corporate world) so my aim is to use a random password generator in a platform agnostic way which usage is easy to remember. Read the rest of this entry »

Posted in *nix, *nix-tools, Apple, base64, bash, bash, Batch-Files, Conference Topics, Conferences, Development, Encoding, Event, HEX encoding, Mac, Mac OS X / OS X / MacOS, MacBook, OpenSSL, Power User, Python, Scripting, Software Development, Windows | Leave a Comment »

Mac traag, waterschade of kapot? Binnen 2-6 uur gerepareerd

Posted by jpluimers on 2026/02/02

[Wayback/Archive] Mac traag, waterschade of kapot? Binnen 2-6 uur gerepareerd

Macleasy BV is een sociaal & duurzaam Mac Reparatie bedrijf uit Utrecht.Jongvolwassenen & MBO-studenten binnen het autisme spectrum repareren op een snelle, vakkundige & duurzame manier Apple MacBooks & iMacs die oud, traag, gecrasht, kapot of waterschade hebben.Door het op een sociale & duurzame manier te laten repareren gaat je Mac 2-7 jaar langer mee, bespaar je tijd, geld, het milieu en creëer je werkgelegenheid.

Via [Wayback/Archive] Dinsdale. – D💉ane ديانا дiане Blijf thuis ⭕️🇺🇦 on Twitter: “@RickvanSoest @RenskeRH Ik heb dit nooit gedaan maar weet sinds kort van een bedrijfje in Utrecht dat oude macs repareert. “.

–jeroen

Posted in Apple, iMac, Mac, MacBook, Power User | Leave a Comment »

How can I tell what wattage my MacBook Pro… – Apple Community

Posted by jpluimers on 2026/01/19

This still works for Apple Silicon based Macs: [Wayback/Archive] How can I tell what wattage my MacBook Pr… – Apple Community

TL;DR:

  1. Either:
    • ⌘-space -> System Information.app
    •  menu -> About This Mac -> More Info… -> System Report…

    Note that “System Report…” starts the “System Information.app” (how cool would naming consistency be…)

  2. Hardware -> Power
  3. Browse down to “AC Charger Information”

On my M1 MacBook Pro, the values depend on the charging ports used:

Read the rest of this entry »

Posted in Apple, M1 Mac, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook-Pro, Power User | Leave a Comment »

MacOS (at least 2023 and younger): solution for (TrueType) fonts added through MacOS built-in Font Book not showing up in Pages or Preview

Posted by jpluimers on 2026/01/05

It took me a few queries to find the correct online solution for this problem: after adding a TrueType (and it’s extension: OpenType) font using the built-in MacOS Font Book, they do not show up in Pages or Preview, not even after validating the fonts in Font Book.

Solutions:

  1. reboot (found this out myself)
  2. killing the fontd font daemon from the Activity Monitor
  3. restart font daemon (found out via the link below)
    launchctl kickstart -k gui/`id -u`/com.apple.xtyped

The last one does not work on my Apple Silicon machine, the first two work fine.

For Preview, you have to Force Quit it then start it (so it re-opens all the previous files) to take effect.

I needed this, because I

Read the rest of this entry »

Posted in Apple, Barcode, Development, Font, KIX, Lucida Console, Mac, Mac OS X / OS X / MacOS, macOS 13 Ventura, macOS 14 Sonoma, Power User, RM4SCC, Software Development | Leave a Comment »

See a List of All Wi-Fi Networks a Mac Has Previously Connected To

Posted by jpluimers on 2025/12/24

[Wayback/Archive] See a List of All Wi-Fi Networks a Mac Has Previously Connected To

n modern versions of Mac OS, like macOS Mojave, Catalina, Sierra, OS X El Capitan, and Yosemite, you can shorten the syntax considerably as so:
defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences |grep SSIDString
In prior versions of Mac OS X, you can opt for the same as the above command, or use the lengthier string below with heavy regex:

Read the rest of this entry »

Posted in *nix, *nix-tools, Apple, bash, bash, Development, Mac, Mac OS X / OS X / MacOS, MacBook, Power User, Scripting, Software Development | Leave a Comment »

What is the best free PDF Editor for Mac?… – Apple Community

Posted by jpluimers on 2025/11/24

Need to check this out:

Query: [Wayback/Archive] pdf editor macos – Google Search

--jeroen

Posted in Apple, Apple Silicon, M1 Mac, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook-Pro, Power User | Leave a Comment »

MacOS: open file in other monitor

Posted by jpluimers on 2025/11/24

When I have an external monitor connected to my 2015 era Retina MacBook Pro machines, I wanted some apps to appear on the laptop screen and others on the external one.

That was harder than I hoped for as no single solution works in all cases.

What I do now is to make sure the icon bar is on the monitor where I want applications to open. Not perfect, but works for most cases.

Here are some links that helped me:

Read the rest of this entry »

Posted in Power User, Apple, MacBook, MacBook-Pro, Mac OS X / OS X / MacOS, Mac, MacBook Retina | Leave a Comment »

How to monitor USB power consumption? – Ask Different

Posted by jpluimers on 2025/11/10

TL;DR: it is impossible on a Mac to accurately measure power usage by attached USB devices. Only a general indication is possible, but it is unreliable.

[Wayback/Archive] How to monitor USB power consumption? – Ask Different

  • System Profiler needs manual refresh and is a very rough indication
  • iStatMenus is a graph, but not very accurate
  • Activity Monitor is even rougher than the above

Related: [Wayback/Archive] View energy consumption in Activity Monitor on Mac – Apple Support (UK)

Via: [Wayback/Archive] macos view usb power usage – Google Search

–jeroen

Posted in Apple, Mac, MacBook, MacBook Retina, MacBook-Pro, Power User | Leave a Comment »

When Spotlight fails to find some files: mdutil revisited

Posted by jpluimers on 2025/11/07

On my M1 MacBook, somehow Spotlight started to fail returning some indexed files (especially recently added ones would not show up or it would take a very long while for some of them to show up).

So I revisited mdutil and related commands while writing a comment on the YouTube movie [Wayback/Archive] How To Rebuild the Spotlight Index on Your Mac – YouTube which since then vanished, but luckily I saved it and here I amended it with formatting:

Read the rest of this entry »

Posted in Apple, Mac, Mac OS X / OS X / MacOS, Power User | Leave a Comment »

MacBook Pro 15-inch and 16-inch dimensions (to see if bags and sleeves would still fit)

Posted by jpluimers on 2025/11/03

Written a while ago, but forgot to schedule this in the blog queue.

This is in reverse chronological order and only for the models I have, had, or considered buying.

Table

Model Height Width Depth Weight1 Weight2
[Wayback/Archive] MacBook Pro (16-inch, 2023) 0.66 inch (1.68 cm) 14.01 inches (35.57 cm) 9.77 inches (24.81 cm) (M2 Pro): 4.7 pounds (2.15 kg) (M2 Max): 4.8 pounds (2.16 kg)
[Wayback/Archive] MacBook Pro (16-inch, 2021) 0.66 inch (1.68 cm) 14.01 inches (35.57 cm) 9.77 inches (24.81 cm) (M1 Pro): 4.7 pounds (2.1 kg) (M1 Max): 4.8 pounds (2.2 kg)
[Wayback/Archive] MacBook Pro (Retina, 15-inch, Mid 2015) 0.71 inch (1.8 cm) 14.13 inches (35.89 cm) 9.73 inches (24.71 cm) 4.49 pounds (2.04 kg)
[Wayback/Archive] MacBook Pro (14-inch, 2023) 0.61 inch (1.55 cm) 12.31 inches (31.26 cm) 8.71 inches (22.12 cm) (M2 Pro): 3.5 pounds (1.60 kg) (M2 Max): 3.6 pounds (1.63 kg)
[Wayback/Archive] MacBook Pro (14-inch, 2021) 0.61 inch (1.55 cm) 12.31 inches (31.26 cm) 8.71 inches (22.12 cm) 3.5 pounds (1.6 kg)
[Wayback/Archive] MacBook Pro (Retina, 13-inch, Early 2015) 0.71 inch (1.8 cm) 12.35 inches (31.4 cm) 8.62 inches (21.9 cm) 3.48 pounds (1.58 kg)
[Wayback/Archive] MacBook Air (Mid 2009) 0.16-0.76 inch (0.4-1.94 cm) 12.8 inches (32.5 cm) 8.94 inches (22.7 cm) 3.0 pounds (1.36 kg)

Read the rest of this entry »

Posted in Apple, Mac, MacBook, MacBook-Pro, Power User | Leave a Comment »