Captain's Log
December 4th 2024
20 Years ago I opened Sin City PC in Las Vegas, and that started an era of custom
built computers and gaming until...
20 Years ago I opened Sin City PC in Las Vegas, and that started an era of custom
built computers and gaming until...
What would be a blog, with a good old fashioned Hello World!
.
And of course we are going to just start with AI Image generation, this is a simple prompt using the Flux family of models. The text generation is pretty impressive, with extra "artifacts" but still captures the essence of the original concept.
Stay tuned.
<3 nickfixit
Add some more to this.
The "hello_world" project is a simple yet foundational program that serves as a starting point for learning programming concepts. This project will demonstrate how to output a basic message to the user and can be expanded with additional features.
# Basic hello world output
print("Hello, World!")
# Greeting the user
name = input("What is your name? ")
print(f"Hello, {name}!")
# Function to greet user
def greet_user(name):
print(f"Hello, {name}!")
# Call the function
greet_user("Alice")
# Personalized greeting based on time of day
import datetime
def personalized_greeting(name):
current_hour = datetime.datetime.now().hour
if current_hour < 12:
greeting = "Good Morning"
elif current_hour < 18:
greeting = "Good Afternoon"
else:
greeting = "Good Evening"
print(f"{greeting}, {name}!")
personalized_greeting(name)
# Greeting multiple users
names = ["Alice", "Bob", "Charlie"]
for name in names:
greet_user(name)
# Handling potential errors with user input
try:
age = int(input("Enter your age: "))
print(f"You are {age} years old.")
except ValueError:
print("Please enter a valid number for your age.")
# Using a library to enhance the greeting
import random
def random_greeting():
greetings = ["Hello", "Hi", "Greetings", "Salutations", "Howdy"]
return random.choice(greetings)
print(f"{random_greeting()}, {name}!")
```python
import tkinter as tk
def show_greeting():
name = entry.get()
greeting_label.config(text=f"Hello, {name}