{"id":21724,"date":"2025-12-28T19:50:47","date_gmt":"2025-12-28T19:50:47","guid":{"rendered":"https:\/\/johnjohnston.info\/blog\/?p=21724"},"modified":"2025-12-29T13:18:34","modified_gmt":"2025-12-29T13:18:34","slug":"on-this-flickr-day-update","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/blog\/on-this-flickr-day-update\/","title":{"rendered":"On This Flickr Day Update"},"content":{"rendered":"\n<p>I am pretty pleased with <a href=\"https:\/\/pi.johnj.info\/onthisflickrday\/\">On this Flickr Day<\/a> and already find it fascinating to see photos from the same day across the years.<\/p>\n\n\n\n<p>I left this with a few todos and have made progress.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a way to produce JSON rather than a web page with PHP. I could then bring the thumbnails into this site using JavaScript.\n<ul class=\"wp-block-list\">\n<li><em>Was fairly simple when I found <code>json_encode($data,JSON_PRETTY_PRINT);<\/code> for php. That could be fetched with JavaScript from my new index page.<\/em><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Add some sort of lightbox to see the images larger.\n<ul class=\"wp-block-list\">\n<li><em>I followed the <a href=\"https:\/\/www.w3schools.com\/howto\/howto_js_lightbox.asp\">How To Create a Lightbox<\/a> W3schools example with a few tweaks.<\/em><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Change the layout &amp; appearance.\n<ul class=\"wp-block-list\">\n<li><em>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 <a href=\"https:\/\/www.w3.org\/TR\/css-grid-3\/\">Masonry<\/a> which look like a nice way to go eventually. <a href=\"https:\/\/webkit.org\/blog\/17660\/introducing-css-grid-lanes\/\">Introducing CSS Grid Lanes | WebKit<\/a> is a good read.<\/em><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Figure out a simple way to update the database without completely rebuilding it.\n<ul class=\"wp-block-list\">\n<li><em>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&#8217;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&#8217;t upload many photos.<\/em><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Decide on any extra fields and recreate the database.\n<ul class=\"wp-block-list\">\n<li><em>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 <a href=\"https:\/\/johnjohnston.info\/blog\/on-this-day\/\" data-type=\"page\" data-id=\"8435\">on this day<\/a> page.<\/em><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Figure out why I can\u2019t get location information from the database with PHP I can with bash.\n<ul class=\"wp-block-list\">\n<li><em>This sorted itself out once I check there was some location data for the image in the json when it is received.<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>I&#8217;ve continued to talk to claude.ai a bit in the process. But I&#8217;ve been careful to ask for it to discuss approaches &amp; not give me code. I&#8217;ve tried to describe my ideas and situation and finish with <em>Can you run through some options &amp; idea, without code?<\/em> or similar. This has been really helpful. I continue to search for answers to problems with <a href=\"https:\/\/duckduckgo.com\">DuckDuckGo<\/a> too as in the pre ai days.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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. I&#8217;ve continued to talk to claude.ai a bit in the process. But I&#8217;ve been careful to ask for it to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21725,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":["https:\/\/social.ds106.us\/@johnjohnston\/115798932498917619","https:\/\/bsky.app\/profile\/johnjohnston.info\/post\/3mb33tvblzw2t"],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[953],"tags":[957,443,88,38],"post_format":[],"class_list":{"0":"post-21724","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-posse","8":"tag-ai","9":"tag-bash","10":"tag-flickr","11":"tag-javascript","12":"kind-article","14":"h-entry","15":"hentry"},"better_featured_image":{"id":21725,"alt_text":"","caption":"","description":"","media_type":"image","media_details":{"width":1200,"height":1042,"file":"2025\/12\/onthisFlickrDay-2025-12-27.png.jpg","filesize":143263,"sizes":{"medium":{"file":"onthisFlickrDay-2025-12-27.png-620x538.jpg","width":620,"height":538,"mime-type":"image\/jpeg","filesize":61488,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/12\/onthisFlickrDay-2025-12-27.png-620x538.jpg"},"large":{"file":"onthisFlickrDay-2025-12-27.png-1024x889.jpg","width":1024,"height":889,"mime-type":"image\/jpeg","filesize":121767,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/12\/onthisFlickrDay-2025-12-27.png-1024x889.jpg"},"thumbnail":{"file":"onthisFlickrDay-2025-12-27.png-150x150.jpg","width":150,"height":150,"mime-type":"image\/jpeg","filesize":7877,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/12\/onthisFlickrDay-2025-12-27.png-150x150.jpg"},"medium_large":{"file":"onthisFlickrDay-2025-12-27.png-768x667.jpg","width":768,"height":667,"mime-type":"image\/jpeg","filesize":82854,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/12\/onthisFlickrDay-2025-12-27.png-768x667.jpg"},"post-thumbnail":{"file":"onthisFlickrDay-2025-12-27.png-668x580.jpg","width":668,"height":580,"mime-type":"image\/jpeg","filesize":66702,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/12\/onthisFlickrDay-2025-12-27.png-668x580.jpg"},"sempress-image-post":{"file":"onthisFlickrDay-2025-12-27.png-668x580.jpg","width":668,"height":580,"mime-type":"image\/jpeg","filesize":66702,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/12\/onthisFlickrDay-2025-12-27.png-668x580.jpg"},"jetpack-portfolio-admin-thumb":{"file":"onthisFlickrDay-2025-12-27.png-50x50.jpg","width":50,"height":50,"mime-type":"image\/jpeg","filesize":1760,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/12\/onthisFlickrDay-2025-12-27.png-50x50.jpg"}},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}},"post":21724,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/12\/onthisFlickrDay-2025-12-27.png.jpg"},"jetpack_featured_media_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2025\/12\/onthisFlickrDay-2025-12-27.png.jpg","jetpack_shortlink":"https:\/\/wp.me\/p57zFQ-5Eo","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"kind":false,"_links":{"self":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/21724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/comments?post=21724"}],"version-history":[{"count":2,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/21724\/revisions"}],"predecessor-version":[{"id":21728,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/21724\/revisions\/21728"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media\/21725"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media?parent=21724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/categories?post=21724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/tags?post=21724"},{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/post_format?post=21724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}