Wilson Mar bio photo

Wilson Mar

Hello!

Calendar YouTube Github

LinkedIn

Applications for a long, prosperous, happy life

US (English)   Norsk (Norwegian)   Español (Spanish)   Français (French)   Deutsch (German)   Italiano   Português   Estonian   اَلْعَرَبِيَّةُ (Egypt Arabic)   Napali   中文 (简体) Chinese (Simplified)   日本語 Japanese   한국어 Korean

Overview

PROTIP: After installation, in the Finder, right-click on the installer to free up disk space.

MLX (Machine Language eXplore)

Apple has stayed clear of using the word AI in many of its keynote presentations.

In response to Google’s announcement of AI chips for its Pixel phones, Apple announced its own AI chip for its iPhone 8 and iPhone X. https://www.techrepublic.com/article/apple-mlx-framework-machine-learning/

On December 5, 2023, Awni Hannun tweeted about Apple’s Machine Learning Research team’s new Machine Learning Framework at
https://github.com/ml-explore/mlx/blob/main/README.md with docs at
https://mx-explore.github.io/build/

Aditionally, Apple’s Machine Learning Data team released a new Machine Learning Data Framework at
https://github.com/ml-explore/mlx-data/blob/main/README.md

MLX was built to run on Apple Silicon (Mac Laptops) - Metal Performance Shaders and Accelerate.

A notable difference from MLX and other frameworks is the unified memory model. Arrays in MLX live in shared memory. Operations on MLX arrays can be performed on any of the supported device types without transferring data.

MLX has a Python API that closely follows NumPy. Its C++ API closely mirrors the Python API.

Its higher-level packages (mlx.nn and mlx.optimizers) closely follow PyTorch. It’s also inspired by Jax, and ArrayFire.

VIDEO: Install

https://github.com/ml-explore/mlx-examples/blob/main/README.md shows use of familiar MNIST example.

Among examples provided:

  • Transformer model sequence labeling example uses the PTB corpus containing Wall Street Journal articles.
  • Large scale text generation with Meta’s LLaMA or Mistral.
  • Parameter efficient fine-tuning with LoRA.
  • Generating images with Stability AI’s Stable Diffusion.
  • Speech recognition with OpenAI’s Whisper.


Installer managers

Disney has open-sourced a repo, https://github.com/munki/munki, manages software installation for OS X. Munki can install software packaged in the Apple package format, and also supports Adobe CS3/CS4/CS5/CS6 Enterprise Deployment “packages”, and drag-and-drop disk images as installer sources - webserver-based repository of packages and package metadata.

VNC

  1. Enable screen sharing on the server.

    There are also 3rd-party apps to VNC into (typically Linux) servers: “Chicken of the VNC” sucks, CotVNC sucks, Real VNC at http://www.realvnc.com/download/viewer/

    One that requires no additional downloads is “Screen Sharing” that Apple includes.

    There are two ways to open it:

  2. Press command+Tab to the Finder, then command+K for the “Connect to Server” dialog.

    This enables you to select prior addresses.

    Alternately, in a Safari browser tab and instead of typing protocol “http://” or “https://”, type “VNC://” followed by an IP address, such as:

    vnc://35.197.119.148

    The browser approach requires an extra step to click “Connect To” IP address at the pop-up confirmation page.

    NOTE: This uses the “Screen Sharing” app within /System/Library/CoreServices/Applications since Yosemite.

VNC from Finder

Browser Plugins

HTML5 is supposed to avoid this hassle, but not everyone has gotten around to it.

PROTIP: Install browser plug-ins ahead of time before you eventually run into a site that requires it, and it would be a bother at that point.

Options for Installing Addtitional Software Apps/Programs

There are several ways to get software on a Mac, listed in order of preference:

  • Apple Store apps are the safest and simplest place to obtain apps. But many software publishers don’t want to give Apple a slice of the money.

    Plus, Apple Store apps currently are installed by hand, not with automation scripts.

  • Execute Homebrew (or Bower) from an Ansible declarative playbook.

  • This is the automated equivalent to manually typing a Terminal command to use Homebrew

  • That automates manually downloading a zip file that contains a .dmg or .pkg file, then dragging it into the system Applications folder.

  • Lastly, one can always go to each publisher’s webpage, download it and run a pkg or dmg file.

A particular program may provide several options.


Install Apps from the Apple Store

Apps I’ve used from the Apple Store:

  • Microsoft Office is supposed to read and write Word, PowerPoint, Excel files created on PCs.

    But since Office 2011 for Mac is a version behind Office 2013 for PC, styles and numbering in docx files sometimes get scrambled in Mac.

    Office 2016 for Mac is $172.99 from Amazon.

  • Camtasia for Mac (from Techsmith) records videos of screens and provides an editor ( $99 from Amazon) (Don’t confuse this with Camtasia Studio for Windows)

  • Lynda Desktop app - reader for tutorial subscriptions at lynda.com.

  • Slack instant messaging

  • GoToMeeting for video conferencing.

  • ZoomUS for video conferencing.

  • Git-it to learn Git and GitHub.

  • VMware Fusion for Windows within MacOSX

Apps offered by Apple itself:

  • XCode
  • iMove
  • Keynote
  • iPhoto

Amazon Kindle

PROTIP: You can’t copy and paste text from Kindle’s app. But if you read your Kindle purchase on website https://read.amazon.com you can highlight the text and select Highlight pop-up, Kindle saves the text under your Amazon account at https://read.amazon.com/notebook.

Side-Load .pkg and .dmg installers

Open-source developers provide their software for download in files ending in .pkg or .dmg.

.pkg (package installers) are like a zip file and like using the Setup.exe files on Windows. It can include scripts that provide installation logic such as show licence agreement; get installation destination; define which bits to install; etc.

It can overwrite existing files if it is scripted to do so within the PKG. Apple Remote Desktop can be used to push the PKG. ARD advantages. It can contain a signature. See http://en.wikipedia.org/wiki/Installer_%28Mac_OS_X%29

.pkg files are creating using Composer and managed using Casper Admin. Popular .pkg installers include:

  • Prey software from PreyProject.com helps you track down your stolen laptop by taking a picture of the thief, sends out a GPS location, and deletes files. (Versions for Android, iOS, Linux, and Windows as well)

    Version 1.5.0 took 8.7 MB on disk.

PROTIP: Click on the download icon on your browser to work with downloaded files because the time-stamp of executable files downloaded to your Downloads folder retain the date they were created, not the (current time) downloaded.

DMG installers

.dmg (a disk image file like ISO) can use block mode for fast copying. It can install to all user profiles and, utilizing Pre and Post Flight through Composer. It can be made to overwrite files, especially in /Users folder, using FEU (Fill Existing Users) FFUT. It can can contain an index which provides self-healing and uninstall.

See http://en.wikipedia.org/wiki/.dmg Popular .dmg installers include WebEx:

  1. Open a browser to WebExPlayer which downloads file webexnbrplayer_intel.dmg to the Downloads folder.
  2. Open the Downloads folder: Right-click on the arrow next to the download file at the bottom of the browser.
  3. Double-click on the .dmg file. A pop-up dialog containing a .pkg file appears.
  4. Double-click on the .pkg file for the Install Network Recording Player dialog.
  5. Click Continue.
  6. Click Install.
  7. Type your password and click "Install Software".
  8. Click "Close".
  9. Verify the program: Pinch 3 finders on the pad, and press W for the WebEx Player.
  10. In Finder Downloads folder, control-click on the .dmg installer file and select Move to Trash.
  11. Press command+Tab to the Network Recording Player.dmg and click the red dot at the upper left corner to close it.
  12. On the Desktop, drag the Network Recording Player to Applications folder.
  • https://iperf.fr/ iPerf network (info)
  • Personally, I like PKGs, primarily for its scripting capabilities. But it comes with risks.

    • uTorrent is a small program for downloading files using the Torrent protocol hackers prefer. Thus a high number of files (espcially movies) come with viruses.

    • TexFinderX is a donation tool to search and replace text inside entire folders. Versions for MacOS X, Windows XP, Vista, and Seven. The MacOSX downloads as TexFinderX_232_OSX.zip containing Droplets and TFXTables. Drag the unziped folder into your Applications folder.

    Due to these security concerns, when you first double-click on such programs, Apple forces you to prove that you know what you’re doing with this pop-up:

    1. Hold down the control key as you click the new app icon.

    2. Choose Open in the shortcut menu.

    3. Click Open in the pop-up.

    Password Protection

    I used to say that the first thing you do on a new Mac is backup.

    Now I say the first thing is to install a password manager. They help you create strong passwords (after it finds old weak passwords) then automatically log you into websites and fill out forms.

    First of all, 1Password has the audacity to charge more than anyone else. Actually that’s a plus for me.

    There is LassPass, which offers 2-factor authentication while 1Password doesn’t. Others include Password Safe, SafeInCloud, etc.

    BTW, since this 1Password Tutorial on YouTube by David A. Cox came out, 1Password has a monthly pricing as well:

    They both install an alternate browser on mobile devices. Neither support Windows Phone.

    If you forget your master password, you’ll need to redo everything if you use LastPass. And it has no option to keep my passwords out of public clouds.

    1Password allows me to keep the password vault local by syncing via wi-fi (.agilekeychain or .opvault files).

    • Install on Mac 1Password and pay $49.99 for integration with iCloud. It’s one of a very few 5 star rated apps (LastPass has 4 stars). Considering how nasty people can be on the internet, that’s a real accomplishment.
    1. When opened, install the Safari Extension from Agilebits.

    2. The Android version rates at 4.5 and costs $9.99 each.

    Firewall

    Some apps “phone home” (particularly licensed apps) without informing you.

    This is troubling because it uses up your network bandwidth.

    $9 Radio Silence reports which apps are doing it, then blocks them.

    Anti-Virus

    Skype

    Skype only lets you view others’ screens.

    Control Each Other’s TeamViewer

    • Teamviewer enables you to control the mouse and keyboard on others’ machine.

    Webex

    Emails containing a link to a webex recording such as this:

    https://hp.webex.com/hp/lsr.php?RCID=6f738e10ed0449928edf158f3069e719

    Clicking on this link the first time on a Mac triggers a download for Safari, Cisco_WebEx_Add-On.dmg

    • For .ARF files, webexnbrplayer_intel.dmg invokes as Network Reocrind Player.pkg. - the Network Player does not allow downloaded files to be saved.
    • For .WRF files, webexplayer_intel.dmg invokes as WebEx Player.pkg.

    ICQ

    • http://www.icq.com/en

    Microsoft Communicator

    I don’t know anyone who uses this.

    FTP (File Transfer Protocol)

    FTP Client.

    From your Mac desktop hit Command+K for the Connect to Server window (alternatively, you can access this from the Go menu). FTP to address: ftp://ftp.mozilla.org. Connect as Guest (no password). The advantage of using Filezilla is that configuration files can be imported from other platforms.

    .chm (compiled HTML) Reader for Mac OS X

    iCHM sits in the background for you to click on a chm file such as

    Its Cocoa-language source is stored openly.

    After download and unzip, in the Finder Downloads folder double-click on iChm.app.

    Although the last version of was August 2011 for Mac OS X 10.6 or above, other such programs are even older. Chmox goes back to 2005. Archmox and Chamox go back to 2006. QuickCHM goes back to 2008.

    More on OSX

    This is one of a series on Mac OSX: