The Boy Crisis - Why our boys are struggling and what we can do about it

During these holidays I’m reading the book by Warren Farrell “The Boy Crisis - Why our boys are struggling and what can we do about it”. As both the father of a little girl and as an educator I often question myself about gender roles and gender equality. I care to provide my pupils equal opportunities as they grow, and to show respect and help them on their own unique path....

<span title='2022-12-28 00:00:00 +0000 UTC'>December 28, 2022</span>&nbsp;·&nbsp;Alessandro Bruni

Changing slide background for Jupyter + RevealJS presentations

I am experimenting writing slides and lecture notes with Jupyter for the security class I’m teaching. So far it’s been awesome: I can format text in Markdown like this blog, inject LaTeX formulas to write math with MathJax, and run Python code, which plays wonderfully with presenting cryptography on the slides. A point where it lacks a bit at the moment is on presentation options. At the moment of writing I found no way to change the background of a specific slide, so here is my hack (works with Reveal....

<span title='2018-03-23 00:00:00 +0000 UTC'>March 23, 2018</span>&nbsp;·&nbsp;Alessandro Bruni

Solving a Crossword in Answer Set Programming

Last week we had to prepare a crossword for a custom crossword for a special occasion, and so I took upon the challenge of writing my own crossword generator (crossword compiler, as they seem to be called on the internet). Generating a crossword is clearly a constraint satisfaction problem, so I thought that using Answer Set Programming for this would be a good fit. Here is what I came up with:...

<span title='2017-03-01 00:00:00 +0000 UTC'>March 1, 2017</span>&nbsp;·&nbsp;Alessandro Bruni

Sony Reader Notes to SVG or PDF

I recently bought a Sony PRS-T1 ebook reader and it turns out it has a very nice feature: it's possible to sketch notes and little drawings using the touch screen. Then you can export them using the "take a snapshot" feature, which creates an image from the canvas. What if you wanted to have them exported to any vector based format? It turns out that the format of the note files is a wrapped SVG with a container element and a couple of namespaces....

<span title='2011-11-27 19:38:08 +0000 UTC'>November 27, 2011</span>&nbsp;·&nbsp;Alessandro Bruni

Unity Tracker Lens

A friend of mine was looking around for a decent file indexer for Ubuntu since he's relying on this approach to manage his files on OS X (and Windows 7 does it too). I got interested in the topic, and personally I agree with him and think it's such a shame that no indexing software is present and integrated in recent linux distributions by default, especially since this has been in past (with Tracker and Ubuntu, but also with Beagle and openSUSE) with good success and reception....

<span title='2011-11-21 17:15:20 +0000 UTC'>November 21, 2011</span>&nbsp;·&nbsp;Alessandro Bruni

Breeze, Tim and the Jewish Co-Op

Second time! Vi sto scrivendo dalla biblioteca dell'universita', un edificio "huge" (tanto per rimanere in tema col post precedente), quattro piani di libri, good couches, tavoli, mac e terrazze dove si puo' leggere in pace un libro dando di tanto in tanto uno sguardo alla foresta che ci circonda. Qui e' pieno di scoiattoli e venendo su in autobus ho pure visto un cerbiatto che attraversava la strada. ![]({{ site.baseurl }}/assets/patchwork....

<span title='2010-09-17 02:25:01 +0000 UTC'>September 17, 2010</span>&nbsp;·&nbsp;Alessandro Bruni

Huge!

Ciao ragazzi, come promesso è ora di raccontare un po' di impressioni di questi primi giorni in California, prima che anche le sensazioni e i ricordi svaniscano nella routine giornaliera che inizierà a breve anche per me. Il primo impatto che ho avuto quando sono arrivato qui è che tutto è HUGE. Non c'è altra parola che descriva meglio questa sensazione: grande o enorme non rendono il senso di grandezza che si ha guidando su un'autostrada a 5 corsie con una berlina che, tra le macchine da queste parti, è la più piccola....

<span title='2010-09-16 08:27:10 +0000 UTC'>September 16, 2010</span>&nbsp;·&nbsp;Alessandro Bruni

Computer Graphics project.. Released!

![Shot of the game: the flag]({{ site.baseurl }}/assets/game.png “The game”){.size-medium .wp-image-232 width=“300” height=“235”} Hello world, this is my project for the computer graphics exham I just attended! It's a simple videogame modelled like a first person shooter where you can't shoot ;-) but must reach the jellow flag before the red balls - likewise said the enemies - reach you! Here are the tech specs: Language: c++ Libraries: OpenGL & GLUT Memory footprint: 54MB on a 64bit machine, at least 32MB of video ram required....

<span title='2009-06-25 16:48:11 +0000 UTC'>June 25, 2009</span>&nbsp;·&nbsp;Alessandro Bruni

Off-screen rendering with Qt/Jambi & JOGL

![The same stupid triangle example: that's all you need! ;-)]({{ site.baseurl }}/assets/triangle.png “The same stupid triangle example”){.size-medium .wp-image-181 width=“300” height=“225”} Have you ever wondered how to make images at runtime (given that you know OpenGL)? Here's a solution (and a the same, stupid triangle example) using Java and Qt! The trick is simple: Create a QGLWidget with the scene you want to draw; once you made your pixel perfect rendering - you can test it by running the app showing the new widget - render it to a pixel buffer Qt provides a nice way to save content from a GLWidget:...

<span title='2009-03-21 14:58:57 +0000 UTC'>March 21, 2009</span>&nbsp;·&nbsp;Alessandro Bruni

Cleaning up your CCD, the easy way

Qualcuno suggerisce metodi abbastanza complessi, complicati e potenzialmente pericolosi per pulire il sensore ottico (CCD o CMOS) di una reflex che, soggetta a normale utilizzo, abbia accumulato qualche granellino di polvere.. non sono certo un esperto in materia, ma mi pare che con una semplice soffiata di.. ![Una comunissima pompetta]({{ site.baseurl }}/assets/pompetta1.jpg “Pompetta”){.size-medium .wp-image-157 width=“246” height=“300”} ..si possano ottenere risultati più che accettabili. E infatti prima di tentare uno di questi due complicati procedimenti (che comunque penso che proverò prima o poi) ho provato la classica ed intramontabile spruzzatina d'aria sul sensore della mia D50, così:...

<span title='2009-01-12 23:24:13 +0000 UTC'>January 12, 2009</span>&nbsp;·&nbsp;Alessandro Bruni