Compare commits

...

10 Commits

Author SHA1 Message Date
Blog Creator
c2142f7f63 '```
git commit -m "AI: Know when to use it"
```

**Explanation of the commit message:**

*   **Concise:** It's short and to the point, adhering to the common 5-word limit.
*   **Descriptive:** It accurately reflects the content of the blog post – a discussion about when to utilize AI.
*   **Action-oriented:**  Implies a need for thoughtful consideration.
'
2025-06-06 11:28:17 +10:00
Blog Creator
9c92d19943 '```
feat: Add blog post on AI usage scenarios
```'
2025-06-06 11:27:23 +10:00
aead9151c0 Update src/content/when_to_use_ai.md 2025-06-06 11:26:13 +10:00
14636a4d3b update so pelican can use - must remember 2025-06-06 11:26:12 +10:00
d6d6f1893e stray w 2025-06-06 11:25:43 +10:00
abf6f3feda fix push settings 2025-06-06 11:25:43 +10:00
7a4d06bbef cleanup of kube stuff 2025-06-06 11:25:43 +10:00
efad73a1a4 wrap the password 2025-06-06 11:25:43 +10:00
50af2eccb3 kube pipeline manual step and kubectl yaml 2025-06-06 11:25:43 +10:00
e9a7daf5b3 Change workflow push to master only 2025-06-06 11:25:43 +10:00
5 changed files with 110 additions and 84 deletions

View File

@ -1,5 +1,8 @@
name: Build and Push Image name: Build and Push Image
on: [ push ] on:
push:
branches:
- master
jobs: jobs:
build: build:
@ -40,3 +43,19 @@ jobs:
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
tags: | tags: |
git.aridgwayweb.com/armistace/blog:latest git.aridgwayweb.com/armistace/blog:latest
- name: Deploy
run: |
echo "Installing Kubectl"
apt-get update
apt-get install -y apt-transport-https ca-certificates curl gnupg
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.33/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
chmod 644 /etc/apt/keyrings/kubernetes-apt-keyring.gpg
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.33/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list
chmod 644 /etc/apt/sources.list.d/kubernetes.list
apt-get update
apt-get install kubectl
kubectl delete namespace blog
kubectl create namespace blog
kubectl create secret docker-registry regcred --docker-server=${{ vars.DOCKER_SERVER }} --docker-username=${{ vars.DOCKER_USERNAME }} --docker-password='${{ secrets.DOCKER_PASSWORD }}' --docker-email=${{ vars.DOCKER_EMAIL }} --namespace=blog
kubectl apply -f kube/blog_pod.yaml && kubectl apply -f kube/blog_deployment.yaml && kubectl apply -f kube/blog_service.yaml

24
kube/blog_deployment.yaml Normal file
View File

@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: blog-deployment
labels:
app: blog
namespace: blog
spec:
replicas: 3
selector:
matchLabels:
app: blog
template:
metadata:
labels:
app: blog
spec:
containers:
- name: blog
image: git.aridgwayweb.com/armistace/blog:latest
ports:
- containerPort: 8000
imagePullSecrets:
- name: regcred

13
kube/blog_pod.yaml Normal file
View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: Pod
metadata:
name: blog
namespace: blog
spec:
containers:
- name: blog
image: git.aridgwayweb.com/armistace/blog:latest
ports:
- containerPort: 8000
imagePullSecrets:
- name: regcred

13
kube/blog_service.yaml Normal file
View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: blog-service
namespace: blog
spec:
type: NodePort
selector:
app: blog
ports:
- port: 80
targetPort: 8000
nodePort: 30009

View File

@ -1,4 +1,10 @@
# When to use AI Title: When to use AI
Date: 2025-06-05 20:00
Modified: 2025-06-06 08:00
Category: AI, Data
Tags: ai, python
Slug: when-to-use-ai
Authors: Andrew Ridgway
## The Great AI Debate: When to Trust the Machine vs. When to Stick to Your Brain ## The Great AI Debate: When to Trust the Machine vs. When to Stick to Your Brain
@ -43,52 +49,3 @@ AI is good at *finding connections* and *handling ambiguity*, but its *not go
> *“I was given a list of work types that could be grouped into 1 of 2 categories exclusively.”* > *“I was given a list of work types that could be grouped into 1 of 2 categories exclusively.”*
> *“The problem was… the work types and work requests were at best tangentially related.”* > *“The problem was… the work types and work requests were at best tangentially related.”*
So I had to manually read each work type and map it to a work request. It was a *shudder-inducing* task.
## The Final Thought
So, in summary:
* **AI is not the best choice** when you need precision, accuracy, or a human touch.
* **AI is the best choice** when you need to handle ambiguity, find connections, or automate repetitive tasks.
And thats why Im a journalist, a developer, and a DevOps expert. I know when to trust the machine and when to rely on my brain.
> *“When in doubt, just do it.”*
## Editable Structure for Easy Customization
### 📝 Title When to use AI
### 🧠 Introduction
* Briefly explain the question and the tone.
### 🧩 Sections
1. **When AI is Not the Best Choice**
* Subpoints:
* Fuzzy logic dilemmas
* Manual mapping tasks
* Precision vs. AIs “fuzzy” logic
2. **When AI is the Best Choice**
* Subpoints:
* Math and logic tasks
* Automation of repetitive tasks
* Suggesting numbers or constants
3. **The Human vs. AI Divide**
* Highlight the importance of human judgment in critical tasks
4. **Final Thought**
* Encourage readers to think critically about when to use AI
### 📝 Conclusion
* Wrap up the key points and reinforce the message.
## Tips for Editing
* Replace the example about the spreadsheet with your own scenario.
* Add a personal anecdote or a relatable example.
* Use humor to keep the tone light and engaging.
* Add a call to action: “Next time youre stuck, ask yourself: Is this a task for AI or a task for me?’”