Elektrine
Log in Register
Paige Chat Timeline Gallery Friends Email Drive DNS Private DNS Domains VPN Kairo Nerve
Remote

#! code

@hashbangcode@fosstodon.org
mastodon 4.7.3
  • Open on fosstodon.org

Articles and snippets about all aspects of programming.
Hire us for consultancy, training, website audits and more. We also write articles, create tools and code resources for developers. Run by @philipnorton42@fosstodon.org.

0 Followers
0 Following
18 Posts
Joined November 28, 2022
#! code:
https://www.hashbangcode.com/
Open post
#! code @hashbangcode@fosstodon.org
· 7mo ago

New! Running An LLM With Llama.cpp Using Docker On A Raspberry Pi

In this article we will look at how to get an LLM running on a Raspberry PI via a docker container, and what sort of things we might be able to do with it.

https://www.hashbangcode.com/article/running-llm-llamacpp-using-docker-raspberry-pi
#ai #raspberryPi #drupal #hashbangcode

Running An LLM With Llama.cpp Using Docker On A Raspberry Pi
#! code

Running An LLM With Llama.cpp Using Docker On A Raspberry Pi

I've been curious about integrating AI agents into my workflow recently, and so I started looking at how this could be done using my current equipment. Data sovereignty is important to me so sending all my data to train a remote AI agent doesn't appeal. I was expecting to need to buy a new gaming rig with a couple of high end graphics cards in it, but after some research I found that this wasn't the case.

6
0
4
0
Open post
#! code @hashbangcode@fosstodon.org
· 7mo ago

New! Drupal 11: Making Interactive Elements With HTMX

HTMX is a JavaScript library that allows you to make ajax calls and create CSS transitions without writing any JavaScript code.

In this article we will look at how HTMX is integrated into Drupal, and what services exist to help you use it within the Drupal system.

https://www.hashbangcode.com/article/drupal-11-making-interactive-elements-htmx
#drupal #htmx #drupalDevelopment #hashbangcode

Drupal 11: Making Interactive Elements With htmx
#! code

Drupal 11: Making Interactive Elements With htmx

htmx is a JavaScript library that allows you to make ajax calls and create CSS transitions without writing any JavaScript code. It works by adding attributes to HTML elements, which it then uses to set up and perform ajax requests, swap elements, and a few other things.It is spelled "htmx", in lower case, and is not an abbreviation.

4
0
3
1
Open post
#! code @hashbangcode@fosstodon.org
· 7mo ago

New! Leaving Meetup.com And Extracting Past Event Data Without API Access

In this article Phil shows how he was able to dig into the meetup.com site to see how the data was presented, and how he was able to MacGyver a solution in PHP to download the past data for a group as a CSV file.

https://www.hashbangcode.com/article/leaving-meetupcom-and-extracting-past-event-data-without-api-access
#api #php #hashbangcode

Leaving Meetup.com And Extracting Past Event Data Without API Access
#! code

Leaving Meetup.com And Extracting Past Event Data Without API Access

It's no secret that meetup.com have raised their prices over the last couple of years. Whilst this doesn't impact some of the larger user groups who have lots of members, it is basically killing smaller groups with no income streams.I have no idea how tiny groups with less than 50 members can afford to pay £150+ every 6 months and pay for venues, refreshments, hosting space, and all the other things that a small group needs to pay for. That's not a fixed cost either, there's a good chance that m

5
0
3
0
Open post
#! code @hashbangcode@fosstodon.org
· 7mo ago

From the archive! A Look At HTMX With PHP

In this article we will look at how to get HTMX working with a vanilla PHP backend. With a few examples of the two systems working together.

https://www.hashbangcode.com/article/look-htmx-php

This ties into a package just released that shows a lot of different examples of HTMX working with a PHP backend.

https://github.com/hashbangcode/htmx-php-examples

#htmx #php #hashbangcode

A Look At htmx With PHP
#! code

A Look At htmx With PHP

htmx is a JavaScript library that can be used to issue AJAX requests, create CSS transitions, and set up web sockets using HTML. It is spelled "htmx", in lower case, and is not an abbreviation.The power of htmx is that it can be used without writing any custom JavaScript code. It works by looking for attributes in HTML tags using that information to set up events, user interaction, and send requests to a back end. The system is backend agnostic and so will essentially work with any system that c

4
0
6
0
Open post
#! code @hashbangcode@fosstodon.org
· 7mo ago

Next Tuesday is the first #! code meetup.

For our first session, @philipnorton42@fosstodon.org will be talking about HTMX in Drupal.
This will be an online event, hosted via zoom.

RSVP here : https://luma.com/kyr1krhe
#hashbangcode

#! code Meetup March 2026 · Zoom · Luma
luma.com

#! code Meetup March 2026 · Zoom · Luma

This is the first #! code monthly meetup. This is a general web dev meetup where we discuss all things related to the web development industry. For our first…

3
0
2
0
Open post
#! code @hashbangcode@fosstodon.org
· 6mo ago

New! Drupal 11: Creating A Tabbed Interface With HTMX

This is part three of a series of articles looking at HTMX in Drupal.

In this article we will be creating a tabbed interface in Drupal, where HTMX is used to power loading the data in a tab like section without reloading the page.

https://www.hashbangcode.com/article/drupal-11-creating-tabbed-interface-htmx
#drupal #drupalDevelopment #drupal11 #htmx #hashbangcode

Drupal 11: Creating A Tabbed Interface With htmx
#! code

Drupal 11: Creating A Tabbed Interface With htmx

This is part three of a series of articles looking at htmx in Drupal. Last time I looked at using htmx to run a "load more" feature on a Drupal page. Before moving onto looking at forms I thought a final example of using htmx and controllers to achieve an action.

2
0
2
0
Open post
#! code @hashbangcode@fosstodon.org
· 6mo ago

From the archive! A Look At HTMX With PHP

We have more Drupal and HTMX articles coming next week. In the meantime, here's a look at HTMX and PHP.

https://www.hashbangcode.com/article/look-htmx-php

#htmx #php #hashbangcode

A Look At htmx With PHP
#! code

A Look At htmx With PHP

htmx is a JavaScript library that can be used to issue AJAX requests, create CSS transitions, and set up web sockets using HTML. It is spelled "htmx", in lower case, and is not an abbreviation.The power of htmx is that it can be used without writing any custom JavaScript code. It works by looking for attributes in HTML tags using that information to set up events, user interaction, and send requests to a back end. The system is backend agnostic and so will essentially work with any system that c

2
0
1
0
Open post
#! code @hashbangcode@fosstodon.org
· 6mo ago

The second #! code meetup will be on 14th April at 7pm (UK time).

This time we have David Suissa talking about the Drupal AI : 2026 Roadmap.

David's talk will cover the following points:
​- What are the priority areas of this initiative?
- What new AI-enabled features will appear in Drupal?
- How can you prepare your projects for the integration of Drupal AI solutions?

Register here: https://luma.com/wv4muhnz

#! code Meetup April 2026 · Zoom · Luma
luma.com

#! code Meetup April 2026 · Zoom · Luma

The #! code monthly meetup. This is a general web developer meetup where we discuss all things related to the web development industry. This month we have…

2
0
3
0
Open post
#! code @hashbangcode@fosstodon.org
· 6mo ago

From the archive! Drupal 9: Extending Drupal Base Classes Without Overriding Constructors

This article details a technique for injecting dependencies into constructors, forms, and plugins without needing to override the constructor.

We break down how to use dependency injection and what the technique does to improve this in Drupal.

Despite the article being written for Drupal 9, the technique is still relevant in Drupal 11.

https://www.hashbangcode.com/article/drupal-9-extending-drupal-base-classes-without-overriding-constructors
#drupal #drupalDevelopment #hashbangcode

Drupal 9: Extending Drupal Base Classes Without Overriding Constructors
#! code

Drupal 9: Extending Drupal Base Classes Without Overriding Constructors

I have been using the Drupal dependency injection system for a while now, even giving talks and writing articles on the subject. As the release of Drupal 10 is just around the corner I have been thinking more about how to override dependencies to plugin classes.

2
0
1
0
Open post
#! code @hashbangcode@fosstodon.org
· 8mo ago

We are looking for authors to write for hashbangcode.com, either on a regular basis or just as a one off.

Topics include anything to do with programming, software development, CMS platforms, or reviews of interesting tech.

The site is has strong a SEO footprint and appears high in most search engines with approximately 70k visits per month.

Interested? Get in touch via:
- The contact form at https://www.hashbangcode.com/contact-us
- Our discord at https://discord.gg/TNBAyE7YGG

#!code

Contact Us

Fill in the contact form and we'll get back to you. At no point will your details ever be shared with a third party or added to a mailing list of any kind.

2
0
2
0
Open post
#! code @hashbangcode@fosstodon.org
· 8mo ago

New! Nothing Phone (3): A Review

In this article, Phil looks at the main features of the Nothing Phone (3) and what it's been like to use it for the last few months.

https://www.hashbangcode.com/article/nothing-phone-3-review
#tech #review #nothing #hashbangcode

Nothing Phone (3): A Review
#! code

Nothing Phone (3): A Review

Last year I was looking around for a new phone. I had been using a Samsung Galaxy S10+ for around 6 years and whilst that was a flagship phone at the time, I was looking for a bit of an upgrade.The S10+ was struggling to take pictures that still looked good on modern hardware and couldn't make use of the newer 5G signals. Plus, my son was off to university and was looking for a new phone that was reliable (and didn't have a cracked screen).

2
0
1
0
Open post
#! code @hashbangcode@fosstodon.org
· 8mo ago

From the archive! Creating A Text Adventure Game In Godot

In this article Phil will goes through the steps required to create a (very simple) text adventure game that allows for navigation around a number of rooms and interacting with locks and keys.

The system uses a JSON data structure to create the rooms and items so can be adapted for different games.

Fun fact; this is one of our most popular articles.

https://www.hashbangcode.com/article/creating-text-adventure-game-godot
#godot #gameDev #hashbangcode

Creating A Text Adventure Game In Godot
#! code

Creating A Text Adventure Game In Godot

Godot is a great game engine and I've been looking for projects to help me expand my knowledge of the platform. After fiddling with drawing shapes and getting used to the interface I decided to create a text adventure game.Text adventures used to be really popular in the early days of games, before graphical adventures were possible on the hardware available. I can remember playing a couple of adventure games in the late 80s and even playing some simple multi user dungeons (MUDs) in the 90s so t

2
0
2
0
Open post
#! code @hashbangcode@fosstodon.org
· 6mo ago

Don't forget!

The second #! code meetup will be on 14th April at 7pm (UK time). That's next week!

This time we have David Suissa talking about the Drupal AI : 2026 Roadmap.

David's talk will cover the following points:
​- What are the priority areas of this initiative?
- What new AI-enabled features will appear in Drupal?
- How can you prepare your projects for the integration of Drupal AI solutions?

Register here: https://luma.com/wv4muhnz

#! code Meetup April 2026 · Zoom · Luma
luma.com

#! code Meetup April 2026 · Zoom · Luma

The #! code monthly meetup. This is a general web developer meetup where we discuss all things related to the web development industry. This month we have…

1
0
2
0
Open post
#! code @hashbangcode@fosstodon.org
· 6mo ago

New! Drupal 11: Building A "Load More" Feature For Paginating Nodes Using HTMX

In this article a controller action is created to load some pages of content to display them as a list.

New items can be appended to the existing list using a HTMX callback, creating a load more feature.

https://www.hashbangcode.com/article/drupal-11-building-load-more-feature-paginating-nodes-using-htmx
#drupal #drupal11 #drupalDevelopment #drupalHtmx #hashbangcode

Drupal 11: Building A "Load More" Feature For Paginating Nodes Using htmx
#! code

Drupal 11: Building A "Load More" Feature For Paginating Nodes Using htmx

Following on from my last article, an introduction to htmx in Drupal, I wanted to start looking at examples of htmx being used to power interactivity in Drupal in different ways.I thought a good place to start this off would be to look at using htmx in a simple controller. By creating a route to a controller we can render content and then inject htmx attributes to perform actions with the same controller.

1
0
2
0
Open post
#! code @hashbangcode@fosstodon.org
· 7mo ago

New! DrupalCamp England 2026

Last weekend Phil attended DrupalCamp England 2026, at the University of Salford.

In this article, Phil writes about his experiences at the camp over the two day event.

https://www.hashbangcode.com/article/drupalcamp-england-2026
#drupal #drupalCampEngland #drupalCampEngland2026 #hashbangcode

DrupalCamp England 2026
#! code

DrupalCamp England 2026

The weekend of 28th February to the 1st March 2026 saw the second DrupalCamp England event with around 100 people attending the University of Salford, not far from Manchester, for the two day event.I had submitted a talk and the camp organisers had accepted it and also decided to make me a featured speaker, which was an incredible honour. As such I was part of the communications being sent out in the weeks before the event.

1
0
0
0
Open post
#! code @hashbangcode@fosstodon.org
· 8mo ago

Some notable articles about AI spotted this week:

- How AI assistance impacts the formation of coding skills https://www.anthropic.com/research/AI-assistance-coding-skills

- Researchers Just Found Something That Could Shake the AI Industry to Its Core https://futurism.com/artificial-intelligence/ai-industry-recall-copyright-books

- Cursor lies about vibe-coding a web browser with AI https://pivot-to-ai.com/2026/01/27/cursor-lies-about-vibe-coding-a-web-browser-with-ai/

- Selfish AI https://www.garfieldtech.com/blog/selfish-ai

- British Museum Deletes AI-Generated Pictures After Backlash https://petapixel.com/2026/02/04/british-museum-deletes-ai-generated-pictures-after-backlash/

How AI assistance impacts the formation of coding skills
anthropic.com

How AI assistance impacts the formation of coding skills

A randomized trial with 52 developers found AI assistance lowered comprehension scores, except when used for explanations rather than delegation.

1
0
0
0
Open post
#! code @hashbangcode@fosstodon.org
· 7mo ago

Happy Pi day! May all your approximations of Pi be at least 3.14 :)
A couple of years ago, Phil wrote an article on Approximating Pi Using A Circle And A Square, which approximated Pi to 3.147 (after about 30 minutes)
https://www.hashbangcode.com/article/approximating-pi-using-circle-and-square

Approximating Pi Using A Circle And A Square
#! code

Approximating Pi Using A Circle And A Square

Pi day was a few weeks ago, but I came across this simple approximation of pi recently and decided to put together an example in PHP since it seemed pretty simple.This approximation of pi centers around a real world example, but we can simulate this using some code.

0
0
0
0
Open post
#! code @hashbangcode@fosstodon.org
· 2mo ago
The next #! code meetup will be on 11th August, 7pm UK time, online. This month we have lightning talks! I you have a short (5-10 minute) talk you want to give on anything even vaguely technical or programming related then come along! Register here: https://luma.com/32oe5rig #hashbangcode #hashbangcodeMeetup
#! code Meetup August · Zoom · Luma
luma.com

#! code Meetup August · Zoom · Luma

The #! code monthly meetup. This is a general web developer meetup where we discuss all things related to the web development industry. This month, we have…

0
0
0
0
Back
313k7r1n3
Elektrine

Tor hidden service

elekhj7afj4qnrr4yd3bkzslsyo5jgfxw3orgjkhlcxifueodybyiiad.onion

I2P eepsite

j6b6cyk6gjmepjih7jjadxgxvvf3lzzujljuu2v4biemzpg3naya.b32.i2p

Platform

  • Email
  • Chat
  • Timeline
  • VPN
  • DNS

Company

  • About
  • Pricing
  • Contact
  • FAQ
  • Lite (no JS)

Legal

  • Terms of Service
  • Privacy Policy
  • Transparency Report
  • Report Abuse
  • Warrant Canary
  • VPN Policy

Support

  • support@elektrine.com
  • Report Security Issue
Mail client setup IMAP mail.elektrine.com:993 POP3 mail.elektrine.com:995 SMTP mail.elektrine.com:465
© 2026 Elektrine. All rights reserved. Server: 10:59:29 UTC