Stable Diffusion AI Image Generator

The image generation services out there (Midjourney, DallE, Gemini, etc) are awesome. The quality is unmatched at this time. But what if you want to generate images on your own local computer? The reasons you’d want to do this: No monthly fees No queues or credits Freedom to gene … | Continue reading


@jeremymorgan.com | 2 months ago

Ollama Windows

If you’re a blog reader or follow me on social media, you already know I’m a huge fan of Ollama. It is an excellent platform for running Large Language Models locally. It’s easy to use and powerful. There are “easier” programs out there like LMStudio and GPT4All that are simpler … | Continue reading


@jeremymorgan.com | 3 months ago

How to a Multimodal LLM Locally

Introduction Multimodal AI is changing how we interact with large language models. In the beginning we typed in text, and got a response. Now we can upload multiple types of files to an LLM and have it parsed. Blending natural language processing and computer vision, these models … | Continue reading


@jeremymorgan.com | 3 months ago

How to Run LLM Locally Mac M1

I’ve written about running LLMs (large language models) on your local machine for a while now. I play with this sort of thing nearly every day. So, I’m always looking for cool things to do in this space and easy ways to introduce others (like you) to the world of LLMs. This is my … | Continue reading


@jeremymorgan.com | 4 months ago

How to Kill a Process in Linux

Processes are the background operations that make up an operating system’s functionality. They can include anything from web servers and databases to utility programs, scripts, and even Python or Node.js applications. In Linux, processes are managed by the kernel and can be easil … | Continue reading


@jeremymorgan.com | 4 months ago

Midjourney Prompt Generator

I’ve been using Midjourney a lot lately, and noticed I use the same parameters all the time. I created a script to generate prompts, and thought “hey I bet others can use this!” Introducing the Midjourney Prompt Generator: the ultimate creative companion for digital artists, cont … | Continue reading


@jeremymorgan.com | 4 months ago

What Is Prompt Engineering?

In a world where artificial intelligence (AI) transforms how we interact with machines, prompt engineering is a crucial skill. Imagine having a conversation with a robot. The way you frame your questions or inputs – that’s the essence of prompt engineering. It’s not just about wh … | Continue reading


@jeremymorgan.com | 4 months ago

How to Check the Linux OS Version from the Command Line

Checking the version of a Linux operating system from the command line is a fundamental task that every Linux user should know how to perform. This information is crucial for diagnosing issues with software compatibility, managing upgrades and migrations, and maintaining multiple … | Continue reading


@jeremymorgan.com | 4 months ago

How to use the Grep Command in Linux

The grep command is one of the most powerful and versatile text-processing tools in Linux. It allows you to search for specific patterns or strings within files and filter output based on those searches. The name grep stands for “global regular expression print,” which gives you … | Continue reading


@jeremymorgan.com | 4 months ago

How to Convert a Dictionary to a List in Python

In Python, dictionaries and lists are two of the most commonly used data structures. While dictionaries allow you to store key-value pairs, lists are used for storing multiple values under a single index. In this article, we will explore how to convert a dictionary into a list in … | Continue reading


@jeremymorgan.com | 4 months ago

What is the export command in Linux?

Today, we’re diving into a nifty little command known as export. If you’ve tinkered with Linux, you know it’s full of commands that can seem like magic spells at times. export is one of these spells, and it’s all about environment variables. Let’s demystify it together! A Quick E … | Continue reading


@jeremymorgan.com | 5 months ago

What is the cat command in Linux?

The Linux ‘cat’ command is a staple in my Unix/Linux utility toolbox. It displays the contents of files or devices directly on the terminal screen. This command, standing for “concatenate,” allows users not only to view files but also to combine and edit them efficiently. Let’s d … | Continue reading


@jeremymorgan.com | 5 months ago

How to add a file to a directory in Linux

Managing your file system is an essential aspect of working on any operating system, including Linux. This involves various tasks such as copying, moving, deleting, or linking files across different directories. One common requirement is to add a new file to an existing directory … | Continue reading


@jeremymorgan.com | 5 months ago

Linux LS Command

Introduction When it comes to handling files and directories, Linux is known for its robustness and flexibility. Effective file management is crucial in Linux, as it aids in organization, security, and efficient data handling. Linux users need to know the basics of file managemen … | Continue reading


@jeremymorgan.com | 5 months ago

Linux CP Command

Understanding cp is crucial for anyone looking to manage files effectively in Linux. It’s not just about making duplicates; it’s about organizing, backing up, and safeguarding your data. Knowledge of the proper use of this command will save you time and make you better at Linux A … | Continue reading


@jeremymorgan.com | 5 months ago

Nano Command in Linux

Nano is a free and open-source text editor that can be used on most Unix-like operating systems. It was originally designed as a clone of the popular command-line text editor Pico, but has since evolved into its own distinct tool with several unique features. In this article, we … | Continue reading


@jeremymorgan.com | 5 months ago

How to Remove Punctuation from a String Python

I often find myself needing to remove punctuation from strings. This is particularly useful when working with data cleaning or text processing tasks. In this guide, we will explore various approaches to removing punctuation from strings using Python’s built-in libraries. 1: Remov … | Continue reading


@jeremymorgan.com | 5 months ago

How to Reverse a String in Python

As a Python programmer, you might have encountered the need to reverse a string at some point. You may have some business reason or you may be working on a leetcode problem. Doesn’t matter. Python makes it easy for us to perform this operation using various built-in methods and f … | Continue reading


@jeremymorgan.com | 5 months ago

How to Randomize a String in Python

In Python, there are several ways to randomize a string. You can use the random module or the string module. In this article, we’ll explore both methods and provide you with some practical examples of how to use them. The Random Module The random module is a built-in Python modul … | Continue reading


@jeremymorgan.com | 5 months ago

How to Remove Comma from String in Python

When working with data in Python, it’s important to make sure that it is clean and formatted correctly. One common task that you may encounter is removing commas from strings. In this article, we will explore how to do this using various methods. Why Remove Commas? Why Clean Data … | Continue reading


@jeremymorgan.com | 5 months ago

How to Print a String and a Variable in Python

In Python, printing is a crucial aspect of coding. It allows us to display information to the user, debug our code, and communicate with other parts of our program. One common task in programming is printing a string and a variable. In this article, we will explore how to do just … | Continue reading


@jeremymorgan.com | 5 months ago

How to Get the First Character of a String in Python

There are several ways to get the first character of a string in Python. Here are some of the most common methods: Method 1: Using the index operator The simplest way to get the first character of a string is to use the index operator ([]). The index operator allows you to access … | Continue reading


@jeremymorgan.com | 5 months ago

How to Get the Last Character of a String in Python

In Python, there are several ways to get the last character of a string. The most common method is by using slicing, which allows you to extract a portion of a string based on a start and end index. In this article, we will explore how to use slicing to get the last character of … | Continue reading


@jeremymorgan.com | 5 months ago

How to Copy a String in Python

In this article, we will explore the different ways to copy a string in Python and when to use them. We will also cover some advanced techniques for working with strings in Python. In Python, there are several ways to copy a string. The choice of which method to use depends on th … | Continue reading


@jeremymorgan.com | 5 months ago

How to Create an Empty String in Python

In this article, we will explore how to create an empty string in Python and understand its usage. We will also discuss different ways to create an empty string in Python and when to use them. Creating an empty string in Python is a simple task that can be done many ways. Here ar … | Continue reading


@jeremymorgan.com | 5 months ago

How to Find the Longest String in a List in Python

Finding the longest string in a list is a simple yet powerful technique that can be applied to various real-world scenarios. By mastering this skill, you’ll be able to tackle complex problems with ease and confidence. In this article, we’ll explore how to find the longest string … | Continue reading


@jeremymorgan.com | 5 months ago

How to Convert a String to a Float in Python

In Python, it is common to encounter strings that need to be converted into floating-point numbers for mathematical operations or data analysis. In this article, we will explore how to convert a string to a float in Python, including the different methods available and their appl … | Continue reading


@jeremymorgan.com | 5 months ago

How to Shuffle Characters in a String in Python

In programming, shuffling characters in a string is a common task. It involves randomly reordering the characters in a string, creating a new sequence of characters different from the original one. There are lots of ways to shuffling in Python, including using list comprehensions … | Continue reading


@jeremymorgan.com | 5 months ago

How to Convert String to Bytes in Python

In Python, strings are sequences of characters that can be manipulated using various built-in functions and data types. However, sometimes it is necessary to convert a string into bytes for various reasons such as sending data over a network or storing it in a file. In this artic … | Continue reading


@jeremymorgan.com | 5 months ago

How to run LLM Locally Ubuntu Linux

So, you want to run a ChatGPT like LLM in Ubuntu? Last week I covered running Ollama in Windows 11. But I also have a dedicated Ubuntu machine at home and decided to set it up here. This way, I have a constantly running instance of Ollama I can play around with or use anytime. I … | Continue reading


@jeremymorgan.com | 5 months ago

How to Check if a String Contains Punctuation in Python

The English language depends on punctuation, and it’s essential for making our sentences clear. In Python, we often have to check if a string contains punctuation. This is often needed for tasks like Natural Language Processing or NLP, where we’re trying to separate the words and … | Continue reading


@jeremymorgan.com | 5 months ago

How to Run LLM Local in Windows

There’s no ignoring the constant buzz around the cool generative AI tools this last year. ChatGPT, Bard, Claude, the list goes on and on. These tools all use LLMs, or Large Language Models. If you’re curious about LLMs, you may have done some reading about them, and found people … | Continue reading


@jeremymorgan.com | 5 months ago

Midjourney Art Styles

Whether you like it or not, Midjourney is the biggest wave to hit the art world that we’ve seen in our lifetimes. I love building art with Midjourney. It allows me to be creative without spending hours building it or having the natural talent to make it. I don’t claim to be an ar … | Continue reading


@jeremymorgan.com | 5 months ago

How to Make AI Generated Videos

If you’re interested in Generative AI, you’ve likely seen tools like runway that generate video from an image. They’re cool tools. Some of you, like me, want to run these tools for ourselves and have them on our personal machines. If that’s you, you’ve come to the right place. We … | Continue reading


@jeremymorgan.com | 5 months ago

Install Anaconda Arch Linux AUR

There are several different ways to install Anaconda in Arch Linux. This is the way I prefer to do it, and after reading a couple of comments that said things like “Installing via the AUR is hairy” or troublesome, I decided to share this guide. It’s easy to install Anaconda throu … | Continue reading


@jeremymorgan.com | 6 months ago

Top Midjourney Art Styles with Prompts

Like so many others I’m completely addicted to Midjourney. I love playing with prompts and tweaking things and making awesome stuff. Here are several art styles you can use on Midjourney, along with the prompts that created them. If you love Generative AI art, join my new communi … | Continue reading


@jeremymorgan.com | 6 months ago

Hot to run an LLM locally with Arch Linux

Large Language Models (LLMs) like OpenAI’s GPT series have exploded in popularity. They’re used for everything from writing to resume building and, of course, programming help. While these models are typically accessed via cloud-based services, some crazy folks (like me) are runn … | Continue reading


@jeremymorgan.com | 6 months ago

How to run a ChatGPT like LLM locally

So, you want to run a ChatGPT-like chatbot on your own computer? Want to learn more LLMs or just be free to chat away without others seeing what you’re saying? This is an excellent option for doing just that. I’ve been running several LLMs and other generative AI tools on my comp … | Continue reading


@jeremymorgan.com | 7 months ago

Read Text From Image

If you want to read text from an image with a simple Python script, this tutorial is for you. Thanks to the work of many great people over the last few decades, you can read the text from an image with a few lines of code. Really! Let’s jump in. What is OCR? Tesseract? Optical Ch … | Continue reading


@jeremymorgan.com | 7 months ago

Dall-E 3 vs MidJourney

OpenAI recently released the third version of DALL-E. Of course, the biggest news from this is the integration with ChatGPT. This could be a huge step forward in prompt creation. But we’re not going to focus on that part today. We will examine the output of Dall-E 3 and see if it … | Continue reading


@jeremymorgan.com | 7 months ago

How to Create AI Images

You want to create AI-generated images. You’ve probably signed up with Dall-E, or Bing, or Midjourney. You’ve created some cool stuff. If you’re reading this, you want to generate those images on your own computer. There is no website or discord to deal with. Running locally on y … | Continue reading


@jeremymorgan.com | 7 months ago

How to Call A Function in Python

Python is one of my favorite programming languages. It’s simple and versatile. There’s a reason it’s so popular. It’s fun to use, and you can get a lot of work done without writing a ton of code. “I’ll just write a quick Python script for this” - me, a bunch of times One of the t … | Continue reading


@jeremymorgan.com | 8 months ago

How to Get Started With PyTorch

Do you want to learn more about PyTorch? Yeah, me too. I’ve been studying it lately and learning myself. I put together some steps to get started, then asked ChatGPT for a suitable “hello world” type of project for PyTorch. I wanted to create a quick and easy guide to get started … | Continue reading


@jeremymorgan.com | 1 year ago

GPT on Arch Linux

So you want to run your own GPT on your own machine? Yeah me too. So some LLaMA models are available (if you have a 24G video card) and other ways to do it, but GPT4All promises to be a different kind of solution. I saw this tweet and had to check it out. So who runs a binary on … | Continue reading


@jeremymorgan.com | 1 year ago

How to enable NVIDIA CUDA with OpenCV in Arch Linux

Hello friends, this tutorial is ultra specific. However, if it helps one person it’s worth writing. I spent most of a day trying to get OpenCV to use CUDA with my NVIDIA 4080. Yeah, really. I found tons of answers that for some reason didn’t apply to me in one way or another. Tri … | Continue reading


@jeremymorgan.com | 1 year ago

How to Build a Web App Python

Welcome to this tutorial on building a web app using Python and Flask! Whether you’re a beginner or an experienced developer, you’ll have a solid foundation for building your own web apps using Python and Flask. If you’d like the full source code for this tutorial, it’s available … | Continue reading


@jeremymorgan.com | 1 year ago

Simple Thresholding with OpenCV and Python

Welcome to an exciting tutorial on computer vision! Today, we’ll dive into simple thresholding using OpenCV and Python. We’ll break down OpenCV thresholding into easy-to-understand concepts and examples that you can follow to master this skill. What is Thresholding? Thresholding … | Continue reading


@jeremymorgan.com | 1 year ago

How to Apply Erosion to Images with OpenCV

Welcome fellow computer vision geeks! This tutorial will dive deep into erosion and how it works. We’ll get hands-on with OpenCV. I aim to make this tutorial fun and easy for beginners to understand. So, let’s get started! Note: Here’s a link to the full source code. Erosion: The … | Continue reading


@jeremymorgan.com | 1 year ago