Browsing Posts / Page 4 of 34

And #ElonMusk wants to implant technology into people’s heads. #NOPE

The Latest: Trump interview with Elon Musk on X plagued by glitches
The Latest: Trump interview with Elon Musk on X plagued by glitches

apnews.com

Aug 12, 2024

Just rewatched all #StarTrek #TOS episodes and realized that Dr. McCoy was always a prickly jerk or a horny dope in love.

Aug 2, 2024

Run Ollama API On macOS With Custom Host Bindings

By default the ollama API runs on the localhost IP address of 127.0.0.1. If you want to host it on all of your Mac's IP addresses it requires that you set a system-wide environment variable. The problem with doing this is that Login Items (in System Settings) can launch before Launch Agents. This means that Ollama (in the menu bar) may not see the host settings. To solve this you need to launch Ollama at startup after a delay.

Here's how to add the host binding for all IP addresses on the Mac and then have Ollama launch 10 seconds after you sign in. This works in macOS 14.5 Sonoma and should work in later versions.

Step 1: Create a launch daemon plist file below. Save it as com.nonsequiturs.ollama.plist.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.nonsequiturs.ollama</string>
    <key>ProgramArguments</key>
    <array>
        <string>/bin/launchctl</string>
        <string>setenv</string>
        <string>OLLAMA_HOST</string>
        <string>0.0.0.0</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>LaunchOnlyOnce</key>
    <true/>
</dict>
</plist>

Step 2: Copy the file to two locations:

/Library/LaunchDaemons/
~/Library/LaunchAgents/

This will set the host bindings at the system level, and also at the user level. So you should be covered no matter how you launch Ollama in the future.

Step 3: Set file permissions on the system-level file.

sudo chown root:wheel /Library/LaunchDaemons/com.nonsequiturs.ollama.plist

sudo chmod 644 /Library/LaunchDaemons/com.nonsequiturs.ollama.plist

Step 4: Install the launch agents:

sudo launchctl bootstrap system /Library/LaunchDaemons/com.nonsequiturs.ollama.plist

launchctl load ~/Library/LaunchAgents/com.nonsequiturs.ollama.plist

Now your system will start up and bind the Ollama host address to all IP addresses on the Mac.

Step 5: To launch Ollama after a 10 second delay, Open Script Editor and create the simple AppleScript file below.

delay 10
tell application "Ollama" to run

In the File menu choose Export, and then export it as type “Application” and name it “LaunchOllamaDelay”. Save it to your user Applications folder.

In System Settings go to Login Items and add the LaunchOllamaDelay application to the startup items. Also remove any existing Ollama startup item.

Now when you restart and sign in, Ollama will launch after 10 seconds which should be enough time for the Launch Agent to have executed. And if Ollama updates itself in the future it should also just work when it restarts.

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

Jul 28, 2024

Buy one Ho, get one Ho free. Nice.

#humor

Jul 26, 2024

Is it “For fuck sake” or “For fuck's sake”?

It's for a work e-mail, so it's got to sound professional.

#humor

Jul 26, 2024

#meme #humor

Jul 24, 2024

The people in #Russia all know the meaning of the word defenestration.

#Putin #window

Jul 24, 2024

Breaking: #Trump refuses to accept the results of the presidential withdrawal, will continue to campaign against Biden.

#maga #gop #humor

Jul 22, 2024

#meme

Jul 20, 2024

Why does #god only get credit for positive outcomes? Case in point, the recent #Trump #assassination attempt. #RNC attendees are quick to claim a divine intervention but not cast blame for putting the shooter there in the first place.

Jul 19, 2024

Website exploit mitigations using a content security policy (CSP) mitigate nothing when third party domains are sold. The lesson: host your own assets.

#tech #recommendation

Jul 13, 2024

I knew it!

Night owls’ cognitive function ‘superior’ to early risers, study suggests
Night owls’ cognitive function ‘superior’ to early risers, study suggests

www.theguardian.com

Jul 12, 2024

Whereas (noun): a curse which causes its victim to change into an ass during the full moon. Also see Analthropy.

#humor

Jul 12, 2024

“Duvet” would be a good name for a cover band.

#humor

Jul 8, 2024

Toilet paper nipples.

#humor #meme #YOUREWELCOME

Jul 2, 2024

Picked up some light reading on vacation.

#humor

Jun 30, 2024

#startrek #meme

Jun 30, 2024

This is actually a huge deal for both AI AND the environment.

Researchers upend AI status quo by eliminating matrix multiplication in LLMs
Researchers upend AI status quo by eliminating matrix multiplication in LLMs

arstechnica.com

#ai #tech

Jun 26, 2024

This season of Carpool Karaoke really sucks.

#humor #meme

Jun 22, 2024

I have a better idea: offer reasonably priced subscriptions, and don't force users to pay for things like music when all they want is video.

YouTube Is Cracking Down on Cheap Premium Plans Bought With a VPN
YouTube Is Cracking Down on Cheap Premium Plans Bought With a VPN

www.pcmag.com

#tech

Jun 20, 2024

Zero Trust Environment.

Jun 20, 2024

Cats rock.

Jun 20, 2024

LOOKOUTPOTATOES!

Jun 20, 2024

If I’ve learned one thing from #StarTrek Mirror Universe episodes, it’s that goatees are the most evil of facial hair styles.

Jun 17, 2024

Anyone else think it’s weird how cancer kills more people than any other astrological sign?

Jun 15, 2024

Page 4 of 34
Pageof 34

Copyright © 2025 Michael Argentini. All rights reserved.