Tag Archives: fun

Guess the cubomania⤴

from @ wwwd – John's World Wide Wall Display

Ai generated picture of a AI bot talking to a human. Turned into a cubomania gif

A couple of days ago I saw a “guess the cubomania” challenge from Theo. I’ve had an interest in Cubomania in the past and played around with the idea a bit. After a chat with D. who gave me a few engravers I googled a bit and guessed, wrongly, Goya.

Next I thought to ask ChatGPT. It suggested it could match by image matching techniques, gave me a fairly obviously wrong first row and ran out of credit.

I then thought to ask Claude to make me an interactive page where I could drag things around. It made a couple of not very good attempts.

I was thinking about a better prompt, when I remembered and asked:

Could we use the whole image for each piece but ‘crop’ it with css?

Claude replied:

Brilliant idea! Yes, we can absolutely use CSS to create a “window” effect where each piece shows only its portion of the full image. This is much more elegant than trying to extract individual pieces.​​​​​​​​​​​​​​​​

I was flattered1 and when Claude came up with another fail I decided to abandon AI and DIY. This turned out a lot better. I started by remembering background-position and finding interact.js . The last time I did any drag and drop I dimly recall some sort of jQuery and a shim for mobile/tablets. interact.js did a grand job for my simple needs. It was probably overkill as it seems to do a lot more.

Cubomania Solver

Partially completed sliding tile puzzle on a yellow background, featuring black and white sketch-style artwork. Some tiles are in place forming parts of faces and figures, while others are missing or scattered around the screen.
Screenshot

It is pretty simple stuff, but potentially a lot of fun, different images, making cubomania puzzles who knows. I did extend it a bit, learning about localStorage (to save any progress) and the dialogue tag. All without AI but few visits to HTML reference – HTML | MDN and the odd search.

I had a lot of fun with this, more than if I had just managed to get either of the AIs it to do the whole thing. What it did make me think of is that AI chat was useful for working out what I wanted to do and how to do it. I could probably have done that bit too all by myself. Usually I just start messing about and see what happens. This points to a bit of planning, or maybe typing some notes/pseudocode/outline might work for me when I am playing.

  1. See: The machine began to waffle – and then the conductor went… In the paper the title was Artificial Intelligence: The Technology that lies to say yes. ↩︎

The Featured Image of this post was generated by ChatGPT in response to ” I want an image of a chatbot character chatting with a person, friendly, helpful & futuristic.” It has been run through Cubomania Gif!

Back to work for 2025⤴

from @ education

This week has been my substantial back-to-work for 2025 and I'm aware that I've not said much about what "work" is for me these days. For the last 16 months I've been sucessfully running my own consultancy company, mainly working with Canadian education institutions on … Continue reading Back to work for 2025

iPod podcasting nostalgia⤴

from @ wwwd – John's World Wide Wall Display

ipod classic screen with Radio Sandaig podcast episodes listed.

I found my old iPod last night, took a while to get it to boot, but I recorded a microcast just for nostalgia. I use this quite a lot around 2005-9 to record podcasts with my primary classes. There seem to be some interesting crackles added this time.

Suprisingly it mounted on my mac, I could drag the wav file to the desktop and convert to mp3, no other editing.

iPod Classic with belkin voice recorder

A quick thought on an icebreaker⤴

from @ education

Okay - I've been taking a short for-credit course from the UK Open University, and since it has a reflection task at the end of every week, I had some grand lofty plan that I'd cross post that here and perhaps expand on it a … Continue reading A quick thought on an icebreaker

Critical Perspectives in Practice⤴

from @ education

I'm playing some kind of crazy catch up on the blogging here. I have a whole host of things I want to try write up before they disappear. This will hopefully be a quick one to jump on. Amongst the maelstrom that has been the … Continue reading Critical Perspectives in Practice

Re-reading Manifestos⤴

from @ education

I'm definitely overdue a number of blog posts about where the heck I am and what I'm doing these days. I'm in week 7 of a new role as Deputy Provost of Athabasca University and week 8 of living in a whole new country. My … Continue reading Re-reading Manifestos

A bit of twitter research⤴

from @ wwwd – John's World Wide Wall Display

graph of number twitter clients used by schools

I’ve talked to a fair number of teachers who find it easier to use twitter than to blog to share their classroom learning. I’ve been thinking a little of how to make that easier but got side tracked wondering how schools, teachers and classes use twitter.

If you use twitter on the web it tells you the application used to post the tweet. At the bottom of a tweet there is the date and the app that posted the tweet.

I’ve got a list that is made up of North Lanarkshire schools I started when I was supporting ICT in the authority.

I could go down the list and count the methods but I though there might be a better way. I recalled having a played with the twitter api a wee bit so searched for and found: GET lists/statuses — Twitter Developers. I was hoping ther was some sort of console to use, but could not find one, a wee bit more searching found how to authenticate to the api using a token and how to generate that token. Using bearer tokens

It then didn’t take too long to work out how to pull in a pile of status updates from the list using the terminal:

curl --location --request GET 'https://api.twitter.com/1.1/lists/statuses.json?list_id=229235515&count=200&max_id=1225829860699930600' --header 'Authorization: Bearer BearerTokenGoesHere'

This gave me a pile of tweets in json format. I had a vague recollection that google sheets could parse json so gave that a go. I had to upload the json somewhere I could import it into a sheet. This felt somewhat clunky. I did see some indications that I could use a script to grab the json in sheets, but though it might be simpler to do it all on my mac. More searching, but I fairly quickly came up with this:

curl --location --request GET 'https://api.twitter.com/1.1/lists/statuses.json?list_id=229235515&count=200&' --header 'Authorization: Bearer BearerTokenGoesHere' | jq '.[].source' | sed -e 's/<[^>]*>//g' | sort -bnr | uniq -c | sort -bnr

This does the following:

  1. download the status in json format
  2. passes it to the jq application (which I had installed in the past) which pulls out a list of the sources.
  3. It is then passed to sed which strips the html tags leaving the text. (I just search for this, I have no idea how works)
  4. next the list is sorted
  5. then uniq pulls out the uniq entries and counts then
  6. Finally sorts the counts and gave:
119 "Twitter for iPhone"
  28 "Twitter for Android"
  22 "Twitter Web App"
   8 "Twitter for iPad"
   1 "Twitter Web Client"

This surprised me. I use my school iPad to post to twitter and sort of expected iPads to be highest or at least higher.

It maybe that the results are skewed by the Monday, Tuesday holiday and 2 inservice days, so I’ll run this a few times next week and see. You can also use a max_id parameter so I could gather more than 200 (less retweeted content) tweets.

This does give me the idea that it might be worth explaining how to make posting to Glow Blogs simpler using a phone.

Black Mirror Writers Room – #MozFest 2019 session⤴

from @ education

I've got a whole host of stuff to blog from MozFest (and Accessibility Scotland), and I'm sure I won't get to all of it, but here's an attempt at least! One of the best sessions I went to at MozFest was the Black Mirror Writers … Continue reading Black Mirror Writers Room – #MozFest 2019 session

Some witchy history and a very smart woman in data science⤴

from @ education

So yesterday and today the Twitter has been on fire about some work that was done over the summer by Emma Carroll, a recent graduate of Edinburgh and working with us as an Equate Scotland Careerwise intern. It culminated today in a really nice news … Continue reading Some witchy history and a very smart woman in data science