montage of 665 photos from flickr

As usual I’ve made a pummelvision style video:

The featured image is a montage of the same photos and here is an average:

An abstract gradient of green and blue tones with vertical bands.

Because I’ve now got a local database of my flickr photos it was easy to get all my tags of the year and make a wordcloud.

A word cloud with words like "fauna," "butterfly," and "kilpatrickbraes" in green on a black background.

And a slitscan (or a sort, given these are separate still images):

Abstract vertical striped pattern in green, brown, blue, and other colors

I am pretty pleased with On this Flickr Day and already find it fascinating to see photos from the same day across the years.

I left this with a few todos and have made progress.

  1. Create a way to produce JSON rather than a web page with PHP. I could then bring the thumbnails into this site using JavaScript.
    • Was fairly simple when I found json_encode($data,JSON_PRETTY_PRINT); for php. That could be fetched with JavaScript from my new index page.
  2. Add some sort of lightbox to see the images larger.
  3. Change the layout & appearance.
    • Worked a little on this especially for mobile. Using a css grid on desktop. I want to keep it as simple as possible.Still need a bit of a tidy. While I was searching I found out about Masonry which look like a nice way to go eventually. Introducing CSS Grid Lanes | WebKit is a good read.
  4. Figure out a simple way to update the database without completely rebuilding it.
    • Just checking the last 100 photos on flickr once a day with a cron job. I just truncated the original script that built the database. I’ve uploaded a photo or two most days recently and it seems to be working. I could probably cut the numbers checked to 50, as I don’t upload many photos.
  5. Decide on any extra fields and recreate the database.
    • Not done, but I think I want to add in a smaller image size so I can pull the json into WordPress and add tiny thumbs to my on this day page.
  6. Figure out why I can’t get location information from the database with PHP I can with bash.
    • This sorted itself out once I check there was some location data for the image in the json when it is received.

I’ve continued to talk to claude.ai a bit in the process. But I’ve been careful to ask for it to discuss approaches & not give me code. I’ve tried to describe my ideas and situation and finish with Can you run through some options & idea, without code? or similar. This has been really helpful. I continue to search for answers to problems with DuckDuckGo too as in the pre ai days.

Screenshot of On This Flickr Day webpage

On This Flickr Day There is a bit more work on making this look nice, but it is a start.

I’ve been thinking about this for a while. A way to show Flickr photos taken “on this day”.

I’ve used the Flickr API occasionally over the years, but calling it directly would take too much time. You would need to page through all the photos 500 at a time until you had all the photos.

So I thought I might build a personal database with the information I needed. This could be updated weekly. I then could pull the information from that in one go. Especially if I store the days and months individually for each photo.

This is somewhat outside my skill set. I’ve used the Flickr Api but do not really know much about databases. In the dim past I think I’ve created them once or twice and used from PHP but with lots of searching.

I planned:

  • Create a local sqlite database on my mac
  • Move it to a server
  • access it from a web page with JavaScript via a PHP file to read the database.

I’ve got some way toward that. I did need a bit of help from claude.ai to get the bash sorted. I’ve just used simple PHP on the webpage so far and managed that with the odd search when I’ve hit an error.

I’ve been thinking a bit about using AI for this sort of thing. My current approach is to use it for specific questions. For example, asking is this a sensible approach, or asking for hep with a line. Rather than write me a whole script to do x, y or z. So I start a script then ask for help when stuck. In the same way I’d have to look up docs or search for the answer to a problem.

Hopefully my next step will be to, after a short interval, go through any files and comment as to what is going on to reinforce my learning.

As I am a complete amateur and do not have anyone to chat about this with, I find using AI quite good fun if I make sure to tell it not to give me whole solutions.

The other thing I’ve been trying with AI is to run any files through asking for them to give any security recommendations.

Next Steps

  • Create a way to produce JSON rather than a web page with PHP. I could then bring the thumbnails into this site using JavaScript.
  • Add some sort of lightbox to see the images larger, change the layout & appearance.
  • Figure out a simple way to update the database without completely rebuilding it.
  • Decide on any extra fields and recreate the database.
  • Figure out why I can’t get location information from the database with PHP I can with bash.

Speckeld wood butterfly, wings outstretches resting on a stone

Flickr By Month

A while ago I thought it might be interesting to be able to search Flickr and organise the results by the month that the photos were taken. Over the last couple of days I’ve made the system a little better. The page searches my Flickr photos and displays them in the months they were taken.

I’ve changed the default search to butterfly as I am taking quite a lot of photos of them at the moment. It is potentially useful to be able to see what to expect at different times of the year. The page takes a parameter of t to display a different search:

https://johnjohnston.info/flickrcal/?t=bird

The main change I made was to add some caching, getting the results of a Flickr search can be slow, so this speeds up repeated searches. I also made the sorting a bit more logical. The display of thumbnails is basic and they just link back to Flickr. I might think of making them look a little better maybe opening a lightbox? I also hope to deal with results of > 500 where I would need more than one call to the Flickr api.

This fits very well with my approach to photography. I think of my photos like a diary rather than great photos. I am still shooting auto 99% of the time. I enjoy looking back at pictures in the same way as I like reading old blog posts. I also think it could become more useful over the yeas in letting me know what to look out for.

I also wonder if I could use the same idea for a search of everyone’s photos using a bounding box to limit the area.

The featured image is of a specked wood, my current favourite butterfly.

Motage of 199 photos taken over summer 2024. Very little details, mostly green colours

I started this two weeks ago when I went back to school. So past time for a summer recap:

As usual I took some photos, and I’ve strung them together, pummelvision fashion.

I updated the script a bit to fade the audio and added a gentler audio choice.

reading

  1. The Last Voice You Hear 11/08/2024 tagged: Mick Herron, ★★★
  2. The Lost Wife 08/08/2024 tagged: Susanna Moore, ★★★★
  3. Hide and Seek 03/08/2024 tagged: Ian Rankin, ★★★
  4. Chain-Gang All-Stars 29/07/2024 tagged: Nana Kwame Adjei-Brenyah, ★★★
  5. The Secret Hours 27/07/2024 tagged: Mick Herron, ★★★★
  6. The Sun Walks Down by Fiona Mcfarlane 24/07/2024 tagged: Fiona Mcfarlane, ★★★★★
  7. Big Girl, Small Town by Michelle Gallen 18/07/2024 tagged: Michelle Gallen, ★★★★
  8. Long Island by Colm Tóibín 15/07/2024 tagged: Colm Tóibín, ★★★★★
  9. The Drowning Pool 07/07/2024 tagged: Ross Macdonald, ★★★★
  10. Brooklyn by Colm Tóibín 06/07/2024 tagged: Colm Tóibín, ★★★★★
  11. The Slain Birds 03/07/2024 tagged: Michael Longley, ★★★★
  12. To the Dogs 02/07/2024 tagged: Louise Welsh, ★★★★
  13. Clear by Carys Davie 30/06/2024 tagged: Carys Davies, ★★★★★
  14. Bad Actors by Mick Herron 30/06/2024 tagged: Mick Herron, ★★★★

Noted

I’ve continued trying to write one note a day on ‘something natural’ and recording each months notes.

Under The Weather

This summer has certainly not been good on the weather front, the tail end of a bug which seemed to take a long time to go away also slowed me down for most of July. Although I walked around a fair bit very locally (Kilpatrick Hills, Cochno etc). I didn’t add much to the walk list. I still managed to see a few new things (at least to photograph).

Glow Blogs

I continued working one day a week on Glow Blogs. There was a release (Glow Blogs Update 14 Aug 2024), just after the schools returned. I spent a fair bit of time writing and updating the various sites that comprise the help system. Checking things out and spending a lot more time in the Block Editor. Lots more to come on that front. I feel the use of blogs in teaching has decreased a bit but I believe they can still be useful in lots of different ways.

Online Fun

I’ve continued to use my blog (syndicated to mastodon & Bluesky via micro.blog) instead of X. I noticed a fresh flush of twitter educators coming through to Bluesky after Musk’s support for the extreme right in the UK.

I did a few The DS106 Daily Creates, but less than usual, my favourites were #tdc4584 &
TDC 5491.

I dodged away at a personal Flickr search page, Search Flickr – Results by Month, as I like comparing things I’ve seen throughout the year organised by month. I’ve already something similar for this blog.

A screenshot of Flickr thumbnails ordered by month, flora for May, June & July.

As someone with an interest in natural history, I often look forward to seasonal occurrences, the first cuckoo or blackthorn blossom.

I also keep track of some of these things here on my blog and on Flickr. I find searching both places useful for all sorts of reasons, but not for figuring out what to expect or remembering when I’ve heard the first cuckoo.

A while back I, sort of solved the problem here by making a page that allows me to search the blog and order the results by the date without the years.

I’ve been playing about with Flickr searches in the same way and now have a simple page which searches for a tag and order the page by months, ignoring the years. The page loads the tag flora by default. If you give it a t parameter, it will search for that instead: ?t=butterfly. I’ve also brefly tested a u parameter for username. This needs to be a user’s NSID (71428177@N00 not troutcolor), it defaults to mine.

It also also loads the first 500 images, which is a bridge I’ll need to cross for some tags soon.

Update, 22 Aug 2025, I’ve improved this somewhat and moved it here: Flickr By Month. Defaults to butterflies now.