List Code

Total Items found in Code is 1057.
This is a collection of various code tests and descriptions on how to use them. Primarily HTML, CSS, Javascript and PHP.
test
markdown test

### title some text etc... yo'el ## another title what does code look like? ```html hi. why does the text in here look weird? ``` ```js function test() { test; } ```

6:18 am, May 28, 2026
ai
bug fix for hermes agent - Error: 'NoneType' object is not iterable

After the latest hermes update i was getting this error: API call failed (attempt 1/3): TypeError🔌 Provider: openai-codex Model: gpt-5.5🌐 Endpoint: https://chatgpt.com/backend-api/codex📝 E..

1:07 am, May 27, 2026
svg
simple svg play button with circle overlay

Just put it anywhere you like! to get a centered play button in a div, no actual image file required.  I added this svg and then thought i would build a lightbox video modal around it as well.&n..

5:22 am, May 6, 2026
youtube
getting this error on youtube embed "Watch video on YouTube Error 153 Video player configuration error"

i think this is caused by cloudflare so if you add the following to the iframe code it fixes the embed issues.

8:21 am, April 19, 2026
nginx
add a rule to block certain files in nginx

if using aider or claude this can be useful to not allow public viewing of certain files that it likes to add to the main directory.   location ~* /((\.aider\.chat\.history\.md)|(\.aider\.input\..

7:31 am, April 5, 2026
ai
coding a snake game with aider

OLLAMA_API_BASE=http://192.168.0.121:11434 aider --model ollama_chat/qwen2.5-coder:3b --map-tokens 1024 --edit-format whole snake game Create a classic Snake game in a single file called index.htm..

12:40 am, April 3, 2026
ai
using aider for command line agent coding

That externally-managed-environment error is actually a built-in safety feature in newer versions of Linux Mint (and Ubuntu/Debian). It stops pip from installing packages globally, which prevents ac..

7:16 am, April 2, 2026
ai
install qwen coder on ollama getting it working in open web ui

Notes from AI - Research you can download a Claude 4b model via the Ollama CLI, provided a specific variant named claude-4b (or similar, e.g., claude-3.5-sonnet:4b or claude-3-haiku:4b) ollama searc..

6:23 am, April 2, 2026
proxmox
unlock a feature on your i7 processor called IOMMU

Sitting at 65W with a dedicated graphics card installed is a massive win! That means the motherboard is handling the power states perfectly, and the card is properly idling. Your power bill is barel..

1:28 am, March 28, 2026
windows
How to Safely Build a Lightweight Windows 11 ISO

Update: Added links and images where possible. I know this is a random site so you dont have to trust the links here, make sure you download from the official sources. I wanted a clean version of wind..

11:11 pm, March 17, 2026
css
Roulette wheel with CSS random() - Safari / WebKit browsers only

seems to not be random, but it does spin...

11:08 pm, March 3, 2026
css
nice mini box zoom on hover css

4:35 am, February 13, 2026
css
Stop Deleting HTML! Using CSS :nth-child to Hide List Items

In web development, there are times when you need to remove elements from a user's view without actually deleting them from the HTML source. This is particularly common when working with hardcoded CMS..

3:54 am, February 8, 2026
css
Stop Using Position Absolute to Center Divs (Do This Instead)

Centering an element in CSS used to be one of the most frustrating tasks for web developers. Over the years, we have moved from complex hacks to elegant, one-line solutions. This article explores the ..

3:49 am, February 8, 2026
react
Bringing Apps to Life: Interactivity and State in React

While props allow us to pass data into components, State is what allows our applications to actually "remember" things and change over time. In this guide, we will explore how to handle user interacti..

10:03 am, January 30, 2026
react
Mastering Dynamic Content: A Guide to React Props

In React, components are the building blocks of the UI. However, a component that always renders the exact same content isn't very helpful for building complex, data-driven applications. To make compo..

9:38 am, January 30, 2026
css
The CSS Unit You’re Not Using: VMAX Explained 📐

Ever heard of VMAX? While everyone uses VW and VH, VMAX is the secret to keeping your elements scaled perfectly to the largest side of the screen. In this quick demo, we're comparing how a div behave..

1:54 am, January 30, 2026
css
Stop Using Pixels! Use VW for Responsive CSS 🚀

In this quick tutorial, we’re setting up a demo div with a smooth gradient and showing you how width: 10vw works. Unlike pixels, viewport units are dynamic - meaning your element will always sta..

1:39 am, January 30, 2026
css tips
CSS Tip 1: Stop using position: absolute for centering.

Moving away from position: absolute for centering is a major milestone in writing modern, maintainable CSS. While the old method of combining top: 50% with transform: translate(-50%, -50%) worked, i..

6:46 am, January 20, 2026
css
CSS Backdrop-Filter Blur: Add a Stunning Blur to Any Background Overlay (Too Easy!)

The backdrop-filter: blur() property in CSS allows you to apply a beautiful frosted glass effect to any overlay element, blurring whatever is behind it. This is perfect for modals, cards, navigation..

2:40 am, November 5, 2025
css
Fix Jaggy Font Edges with CSS Font Smoothing and Antialiasing

If you've ever noticed that text on your website looks a bit jagged or pixelated - especially on certain browsers or high-resolution displays - this simple CSS snippet can help smooth things out. Fon..

12:00 am, November 4, 2025
bootstrap
bootstrap form basic - with card wrap

a nice simple bootstrap form layout example template, + added a card to wrap it

11:34 pm, October 14, 2025
linux
php error feed errors: XML or PCRE extensions not loaded!

1. Install/Enable the PHP XML Extension:   Linux (Debian/Ubuntu): Open your terminal and run:   Code   ..

3:53 am, August 31, 2025
linux
linux
check nginx access logs for bots

3:50 am, August 28, 2025
linux
check connetions in linux every 10 seconds loop

just add this to a sh file and it will show the connections every 10 seconds. e.g. ./checkconns.sh354351325313303390386350365300364282263208271408338320

3:41 am, August 28, 2025
sqlite
load a random item from sqlite table

7:16 am, August 27, 2025
php
PHP FIX Fatal error: Uncaught Error: Call to undefined function curl_init()

Caused by Missing Curl Extention. sudo apt-get install php-curl restart nginx sudo service nginx restart    

1:01 am, August 25, 2025
linux
Fatal error: Uncaught Error: Call to undefined function mb_strlen()

this wasted an hour!!! grr sudo apt install php7.4-mbstring causes an error for php lite admin where it just displays blank  

4:03 am, August 24, 2025
php
a reusable function that extracts the Gemini API functionality

Here's a reusable function that extracts the Gemini API functionality:The function generateWithGemini() accepts: $prompt - The text prompt to send to the API $apiKey - Your Gemini API key $model ..

1:41 pm, August 21, 2025
sqlite
SQLite - load a game from games, that has not been processed - AI

Im just going add some of these here as they might be useful in the future. Request: Can you write a sqlite query to select the latest game from this table using insdate as the datetime structure ..

12:43 am, August 20, 2025
linux
blocking ip range with ufw

You can block an entire IP range using CIDR (Classless Inter-Domain Routing) notation with ufw. To block all addresses under 57.141.2.x, you'd specify the network as 57.141.2.0/24.1     ..

6:42 am, August 19, 2025
linux
check and block connections script

a safe diagnostic script that helps you check and analyze the connections.    ⚠️ Why Automatic Blocking is a Bad Idea   You could lock yourself out: An automated script ..

6:18 am, August 19, 2025
linux
block ip address ranges on ubuntu linux with UFW

  sudo ufw deny from 203.0.113.0/24

5:31 am, August 18, 2025
html
Content Editable

content editable tags with also making the style sheet editable as well as block if i dont target the style by an ID then it just makes all style tags on the page as display block which is a bit anno..

12:23 am, August 4, 2025
video
matrix test video no sound mp4

Link https://i.imgur.com/uotAQao.mp4 Preview

2:42 am, July 29, 2025
css
CSS 4 box custom grid row - New Version - July 2025

I fixed this one a little bit so that the boxes actually fit within the element width, as before they were kinda sticking out abit too much. Old Version.

4:34 am, July 28, 2025
css
override the hero image background on this page

this is just cos im lazy and want to override the image here ^^^

11:44 pm, July 25, 2025
css
Striped Background Gradients in CSS + HTML

Testing out Stacked Linear Gradient background to create striped gradients in CSS and HTML. 

7:23 am, July 23, 2025
minecraft
css
Changing the Background in CSS

  Some of the properties of using a CSS background on a div, how to set the background color, opacity and also using an image as a background with CSS. ⌚Timestamps🏹 0:15 CSS Backgroun..

4:38 am, July 17, 2025
linux
list all network connections linux

list all of the network connections netstat -a list a summary of the connections ss --summary list connections with count netstat -an|grep ESTABLISHED  

7:51 am, June 25, 2025
blocking
blocking all ips in a range

block all ips in a range // The IP prefixes you want to block. Add a dot at the end.$ip_block = ['47.79.']; foreach ($ip_block as $ip_block_val) {  // Check if the user's IP address begins ..

7:50 am, June 25, 2025
html
sticky table headers

nice looking tables that have sticky headers, credits in link below. seems to be all css as well, nice! commented out the global stuff

11:51 pm, June 12, 2025
js
modal no libs just js and css

modal with no js libs just css html and a bit of js... yay?

11:48 pm, June 12, 2025
css
Using accent-color to change check box color

So apparently accent color is a new(ish) property or maybe its just new to me. You can use this to change or select things like the background color on input check boxes. You can see in the exampl..

1:45 am, April 30, 2025
css
Making an image responsive using css using background cover

the following css will make an image display 100% its size and keep its aspect ratio if the screen size or element size gets smaller than the containing image. you should be able to drag the edge of t..

12:08 pm, March 17, 2025
slick
change slick slides to adaptive height

just a code snippit at the moment need to add a working example here

2:18 am, March 14, 2025
javascript
Locate a DIV and CLASS and create an IMAGE element using JAVASCRIPT

I had this weird request the other day, well today to replace an image thumbnail that was generated by an aspx script, but the link was from youtube and the list was not auto loading the thumbnail.&nb..

11:29 pm, March 2, 2025
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

You could also follow me on twitter. I have a couple of youtube channels if you want to see some video related content. RuneScape 3, Minecraft and also a coding channel here Web Dev.

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
In this case my anchor this week becomes driving almost 2hrs outside of Atlanta to one of my favorite hard core gyms in the world.. MetroFlex aka The Dungeon. The gym owners turn the heat way up so it becomes a fun sweat box and the gym members just watch from afar and leave me alone. I happily drive myself long distances to find MY ANCHOR. Our anchor allows us to have balance, focus and be as productive as possible. And if you're in the middle of a heavy set and your headphones start to fall off your head, like mine did here.. well.. f*ck the headphones. Let em break and fall. You can always get a new pair, but the iron ain't ever gonna lift itself.
Unknown
Latest News
## 🚀 AI Giants Hit Bullseye: Anthropic & OpenAI Achieve Product-Market Fit Anthropic and OpenAI have reached a significant milestone, finding product-market fit with their AI technologies, which means their products effectively meet the needs of their customers, driving growth and adoption. This achievement showcases the practical value of their innovations, enabling businesses and individuals to leverage AI for enhanced productivity and efficiency. With this alignment of product and market needs, these companies are poised to transform industries and shape the future of technology.