Flying memes

Archive for the ‘Uncategorized’ Category

Creating Sudokus with Python

Thursday, January 9th, 2025

Following from my previous post I’ve explored with an algorithm to create Sudokus by iterating from an empty grid by adding valid numbers to random cells and then invoking the solving function twice, once navigating the solution space from 1 to 9 and the other in reverse. If both solving functions return the same, valid, grid then that’s the solution.

(more…)

Pics From The Past: ChatGPT and StableDiffusion powered facts of the day Photo Generation.

Saturday, July 8th, 2023

Wikimedia has a nice API which provides the facts of the day in JSON format, something like:

(more…)

A simple web based classifier-powered glyph detector.

Sunday, September 27th, 2020

In these days I’m spending some time reading about machine learning. To practice what I’ve read I’ve built a super simple, but working, glyph classifier, that recognizes the first five letters of the alphabet when drawn on an HTML canvas. You can try it here and check its source code on github.

(more…)

Google FriendConnect

Wednesday, August 5th, 2009

Poche righe per annunciarvi che stò sperimentando  Google FriendConnect come alternativa ai classici commenti di WordPress, ho scelto questa strada perchè trovo interessante che le persone che leggono questo blog possano utilizzare un account che già possiedono per esprimere le proprie opinioni; inoltre l’intera struttura ‘zoom’ del blog avrebbe richiesto non pochi interventi per portare su AJAX l’http post propedeutico all’invio di un commento.

(more…)

Golf Programming: permutazioni

Sunday, June 28th, 2009

Questa volta Eineki ci propone un quiz classico che però presenta sempre interessanti spunti: le permutazioni.

(more…)

Rappresentazione di un file Audio con Ruby

Sunday, February 15th, 2009

Nell’ottica di un progetto un pò più grande che vorrei portare avanti (e del quale spero di poter scrivere qualcosa nel prossimo futuro) ho speso gli ultimi giorni per trovare un modo col quale interfacciarmi con un file audio utilizzando Ruby.
La risposta è arrivata da ruby-audio, un wrapper Ruby costruito (nell’ormai lontano 2005) intorno a libsndfile del quale ripropone i metodi consentendoci di utilizzare una sintassi come la seguente:

(more…)