Hi, and welcome to my playground. I'm Thomas and on this page I write about my hobbies; electronics, microcontrollers, programming, computer stuff and pretty much anything I find fascinating.

Elasticsearch, Imgix and new URL structure May 23rd

Three big things have happened on the site lately;

  • Searching have been switched from Algolia to Elasticsearch.
  • Images are now processed and served by Imgix.
  • URL structure have been replaced.

Elasticsearch

I’ve been using Algolia’s free Community plan on this site for quite some time. I even wrote about it. But it was simply not big enough when I started to index all my logistics information, and their paid plans are pretty costly. So I’ve switched to Elasticsearch, and made searching a much bigger part of the site. I am using Scout with an Elasticsearch driver. Try searching for something in the top bar.

Imgix

Instead of having to create all possible image sizes and storing them; I am now letting Imgix handle all that stuff. I simply keep one master file, and Imgix will resize and process it on the fly. Makes my image logic so much simpler, and I don’t have to recreate a bunch of thumbnails if I decide to change some settings.

URL structure

The URL structure used to contain the ID, category and slug; /id/category/slug. Now instead they are all one string; /keyword-slug-hashid, category have been replaced by a keyword which is optional, and the id has been replaced by a hash at the end. Looks pretty nice.

Newly published articles

Home office update: New monitor and computer setup changes New

I’ve gotten myself one of those ultra-wide curved monitors. I’ve been wanting one for a long time, and I finally bought one; a Samsung 34”. Since my desk is pretty shallow, and not that big really, I also wanted to free up some work surface by getting things on shelves. So I’ve been doing a bit of work on my computer setup.

Read more...

A few popular projects

Mood light (RBG) with 100 mA outputs

Simple mood lamp controller with three PWM channels, max 100 mA output pr channel. Uses the AVR ATmega8 microcontroller.

Read more...

Security keypad with programmable PIN

Keypad with programmable PIN code, two outputs (modes) and protection against repeated incorrect PINs. Uses an AVR ATtiny2313 microcontroller.

Read more...

Fan and temperature controller with LCD

Reads temperature and controls a fan using a PWM output, fan and alarm set point can be adjusted and is shown on a LCD. Uses an AVR ATmega8 microcontroller.

Read more...

I/O module driven by a computer parallel port

Get 5 inputs and 8 outputs from a computer printer port using only a few transistors and resistors.

Read more...

Sound alarm control unit

Simple unit to control three sound signals; beep, siren and buzzer. Uses an AVR ATtiny2313 microcontroller.

Read more...
This is my profile image.

Who am I?

I am Thomas, and Hebron, a programming and electronics enthusiast. I've been doing electronics projects for about 10 years, using the AVR micro controller. The last couple of years programming has really peaked my interest, especially C#, Python and PHP. I live in Norway with my girl friend and our two twin boys. Read more on my profile page.