Posts

X Windows fonts for Windows 11 cmd.exe

Unfortunately, there is no good solution for the PowerShell which only supports TrueTypeFonts. However, looks are more important for me, so I abandon the PowerShell and go back to legacy cmd.  Sadly, the legacy cmd is being deprecated, so this guide may not last for too long. Enjoy while it works ;) 1. Visit https://www.hassings.dk/lars/fonts.html for the fonts. Specifically, get https://www.hassings.dk/lars/fonts/xterm613.fon Read the introduction, it may give you some insight in case my guide doesn't work out for whatever reason. Install this font. 2. Now you want the legacy cmd. Go to the Start Menu, type `powershell`, rclick and select "Run as Admin". Run `Add-WindowsCapability -Online -Name Microsoft.Windows.Console.Legacy~~~~` When it completes, you should see an output that includes `Online: True` and `RestartNeeded: False`. Close PowerShell. 3. Open cmd.exe and rclick the title bar for Properties > Options. Check `Use legacy console (requires rela...

Compile TensorFlow Lite on mcOS Catalina

1. Download TensorFlow $ git clone https://github.com/tensorflow/tensorflow.git As of writing this post, I'm at commit 70e9708e234c86632e1f24b45e058cb87f8abe29 Date: Thu May 7 09:32:16 2020 -0700 2. Install Android SDK https://developer.android.com/studio The default location is ~/library/Android/Sdk 3. Extract Android NDK https://developer.android.com/ndk/downloads Extract this in ~/library/Android/Sdk/ndk-bundle 4. Install Bazel TF configure requires a very specific Bazel version. It is not "higher than X", but a specific version X. As of this writing, it's Bazel 3.0.0. https://docs.bazel.build/versions/master/install-os-x.html It should be at ~/bin/bazel 5. Configure TensorFlow $ cd tensorflow $ ./configure For most of those, go with the default until you see: > Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: y Configuration finished 6. Install numpy $ pip3 install numpy Successfully installed...