Search Results for “#macOS”

Page 1 of 1

Run Ollama In The Menu Bar On macOS With Custom Host Bindings

By default ollama runs on the localhost IP address of 127.0.0.1. But if you want to host it on macOS somewhere else, it requires a system-wide environment variable change. The developers of ollama recommend running this command, and then relaunching ollama:

launchctl setenv OLLAMA_HOST "0.0.0.0"

This works great! If you want to run this automatically at startup you can use a small AppleScript to create an application, and then add that application to your Login Items.

First, open Script Editor and paste the following code:

do shell script "launchctl setenv OLLAMA_HOST \"0.0.0.0\""
tell application "Ollama" to run

This will bind all IP addresses to ollama and then launch it. Obviously, you can bind any specific IP address you like.

Next, in the File menu use the Export command to create an Application that is signed to run locally. Quit Script Editor and then put the new application in your Applications folder.

Finally, search for “Login Items” in System Settings. Remove any existing Ollama application from the list, and add your application.

Now when you restart and sign in, your application will launch, set the environment variable for the host binding, launch Ollama, and quit.

#YOUREWELCOME #Apple #macOS #code #tech #ai

Mar 2

Microsoft fucks Mac .NET developers. Only time will tell just how hard this fucking is.

#tech #microsoft #macos #vscode #visualstudio

Visual Studio for Mac Retirement Announcement - Visual Studio Blog
Visual Studio for Mac Retirement Announcement - Visual Studio Blog

devblogs.microsoft.com

Sep 1, 2023

Mac Pro Tip: When copying a git repository directory to your network file server using rsync, try this:

rsync -brtlvP --chmod=Fu+w --delete-before Code/MyProject/ /Volumes/MyServer/Code/MyProject/

This will copy the files with timestamps but no other attributes, and will also give the file owner (you) full access rights. This ensures that you (or even Windows users with access rights) can overwrite the directory contents later because local read-only files (e.g. in the .git directory) won't be read-only on the server. You can also change the chmod option to customize the rights, like ensuring everyone has full control.

#apple #macos #windows #code #developer #YOUREWELCOME

Jun 14, 2023

My favorite iOS Mastodon app is being released for macOS on May 23, 2023! It’s elegant and feature-rich on iOS. I can’t wait to use it on my Mac.

#apple #macos #mastodon #app #recommendation

Ivory for Mac
Ivory for Mac

tapbots.com

May 23, 2023

Mimestream is the BEST macOS email app for people who use Gmail. I’ve been using it throughout the beta period and subscribed immediately when they released 1.0 today. It’s great!

#apple #macos #email #app #recommendation

The best Mac client for Gmail users is now a 1.0 release with nifty new features
The best Mac client for Gmail users is now a 1.0 release with nifty new features

arstechnica.com

May 22, 2023

Automate The Installation of All Your Mac Apps Using Homebrew

On macOS it's pretty easy to automate the installation of all your apps, including Mac App Store apps, for those times when you get a new Mac or wipe your current one. As a software developer I find this capability indispensable, as would any professional or power user.

All you need to do is install Homebrew and then use it to install mas (which is an acronym for Mac App Store). Once they are installed, you can install all your software using a convenient Bash script. Homebrew will be used to install non-store apps, and mas will handle installing the Mac App Store apps.

Note: only Mac App Store apps you have already installed previously can be installed with mas. You cannot install new apps you have never installed from the store.

Why Do This?

The most obvious reason to script out your software installations is that it greatly reduces the time to set up a new Mac, as well as ensure that you don't forget to install one or more apps. It also provides a way to update all the apps at once via the brew upgrade command. And it also provides a way to update apps that don't have their own update feature.

Apps installed with mas will be updated normally by the Mac App Store.

How Does This Work?

In order to use this process you need to know the names of the Homebrew formulae/casks for each application, and you also need to know the IDs of the Mac App Store apps for mas. Fortunately this is super easy.

First, Homebrew has a tool for finding software available in their service at https://formulae.brew.sh/. Simply use this to find your apps and make sure you're installing the right ones. Those listed as “casks” are GUI Mac apps (normal apps you don't run from the Terminal). Ones listed as “formulae” are typically command line tools run from the Terminal or services without an interface.

Second, for Mac App Store apps you simply use mas to list what's currently on your computer from the Mac App Store.

mas list

This will give you a list of currently installed apps from the Mac App Store, with their IDs:

1569813296  1Password for Safari      (2.10.0)
975937182   Fantastical               (3.7.12)
409183694   Keynote                   (13.0)
etc.

You can also search for Mac App Store apps by name using the mas search command:

mas search Xcode

This will show a similar result for matches. You can even install all search results with a single “lucky” command. See the mas help for these and other options.

Script Example

Here's an example of a Bash script to get you started. I keep a similar script updated as I use new apps or stop using others. Then I'm ready to go when I have to set up a new or wiped Mac.

# Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# App Store Automation

brew install mas

# Install App Store Apps

mas install 409183694   # Keynote
mas install 409201541   # Pages
mas install 409203825   # Numbers

# Install Non-Store Apps

brew install --cask firefox
brew install --cask knockknock
# etc.

You can name the Bash script something like install-software.sh and execute it in a Terminal like this:

zsh install-software.sh

The first time you use the script will absolutely justify the time spent writing it. The second time you run it you will thank your past self for being so smart 😉

#apple #macos #mac #tech #code #recommendation #YOUREWELCOME

May 2, 2023

I really wish Apple was on Mastodon so that I could plead with them to stop launching Apple Music in macOS every time I remove my AirPods. I despise Musk's Twitter so much that I'll just keep closing the app by hand and cross my fingers.

#apple #macos #elonmusk #twitter #mastodon

Apr 21, 2023

The iOS-ification of macOS

Apple's decision to make #macOS look and feel more like #iOS is aspirational, certainly. If users could seamlessly switch between operating systems and retain muscle memory it would be a big win. It's no wonder that #Apple decided to do this with macOS 13 #Ventura.

But in practice, Apple's zeal for consolidation has created some real problems for users. In many cases it feels like one step forward and two steps back. I can see how iOS power users may welcome most of the changes to macOS, but that position smacks of Stockholm Syndrome to me.

One of the best examples of this is the redesigned System Settings, which is a mess. I've given it months to “grow on me” and it has… like a fungal infection. The settings are (dis)organized into a single column of top-level categories in a seemingly random order. Devices running macOS have wide screens, so restricting the top-level categories to a single narrow column is an artificial limitation. And it can’t be remedied by resizing the System Settings window because only its height can be changed.

And the organization? macOS has a much deeper and more broad collection of settings than iOS. So as difficult as specific iOS settings can be to find on an iPhone, it’s near impossible on a Mac. And making it worse is the fact that some settings have been organized out of existence, spread out into disparate, counterintuitive categories. Want to tune all your power and sleep settings? You may have to explore a dozen settings categories to find them when they could have been put into an “Energy” category or something similar. Luckily there is a search feature. Without it I’m sure users would be surrounding the Apple Campus with pitchforks and torches.

Also part of this convergence initiative is the Apple decision to make physical keyboards work more like the iOS virtual keyboard, which changes contextually. The difference is that the iOS keyboard changes in appearance so you can infer what's expected. This means that, for example, sometimes you can use the delete key to remove characters to the right of your cursor, and sometimes you can't. It's like an infuriating game. And now when you press and hold an alphanumeric key it no longer repeats, in favor of a popup with extended characters (e.g. foreign characters with accents and ligatures). I suppose that’s handy for people who write in a foreign language. But you would assume that it would be an option, not a change to the original default key behavior. Your keyboard isn’t broken. Apple made it better #YOUREWELCOME.

#tech #opinion

Mar 7, 2023

Microsoft now officially supports running Arm versions of Windows 11 Pro and Enterprise on macOS with Parallels Desktop version 18. So it appears that any contractual obligation for running these Arm versions of #Windows only on specific hardware using #Qualcomm chips has officially expired.

Options for using Windows 11 with Mac® computers with Apple® M1® and M2™ chips  - Microsoft Support
Options for using Windows 11 with Mac® computers with Apple® M1® and M2™ chips - Microsoft Support

support.microsoft.com

#microsoft #apple #macos #tech #software

Feb 18, 2023

Page 1 of 1
Pageof 1

Copyright © 2024 Michael Argentini. All rights reserved.