Mar 30th, 2024

Would just like to point out this site is an AI free zone. I wrote all this, even though a computer could have done it in half the time!

Screenshot of Article about AI
mood: Intelligence free zone too
 
Mar 29th, 2024

I’ve been adding more styling to pages, using Tailwindcss and Daisyui.

The column on the left of the layout was bothering me, but I’ve added Particles.js into that div, and now it’s hypnotic, reminds me of a lava lamp.

One big thing that has bothered me since the start was that the theme switcher wasn’t saving the theme.

Fixed that with some simple javascript:

    <script>
      function themeCheck () {
        var checked = localStorage.getItem('theme');
        if (checked == 'dark' ) {
          document.getElementById('dataTheme').setAttribute('checked', 'checked');
          }
        console.log("loaded theme = " + checked);
      }

      function themeSave () {
        if (document.getElementById('dataTheme').checked) {
          newTheme = "dark";   
        } else {
          newTheme = "fire";
        }
        localStorage.setItem('theme', newTheme);
        console.log("new theme = " + newTheme);
      }
    </script>

And edited the HTML for the switch to be:

Read More
 

CSV files will throw errors on Cloudflare pages if they have non-ASCII characters.

edit - just found a better version. Use this instead of the last one.

grep --color='auto' -P -n "[^\x00-\x7F]" _data/csv/*.csv

To check files run the following command:

grep --color='auto' -P -n "[\x80-\xFF]" _data/csv/*.csv

That will identify any files with non-ASCII characters.

 

This site is now powered by Jekyll, with TailwindCSS and DaisyUI

I’ve managed to get both a Ruby program and a Node program to run happily together, which let’s me get the best of Jekyll and TailwindCSS.

Even better, it all rebuilds when using Cloudflare pages.

Only issue so far is sometimes the tailwind css file gets deleted by Jekyll. Not sure why yet as it’s in the excluded file list.

 

What is Lorem Ipsum?

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it?

Read More
mood: testing