Flying memes

How to dog-ear a div hovering a pattern without adding extra tags

April 20th, 2013

Today I come up with a way to dog-ear a div without adding extra tags. Basically we can take advantage to both :after and :before pseudo selectors to extend the div element and then use this technique to create the dog-ear with borders.

Read the rest of this entry »

Useless bu fun: Encoding video to CSS

March 14th, 2013

I spent part of the last weekend on this experiment that startet with a question: it is possible to convert a video to a stream of CSS properties ? Surprisingly the answer is yes. We can dump each video frame to a canvas and then create a special (and very long) multiple background property (one background for each video row) where each pixel is created using a 1px size gradient.

Read the rest of this entry »

2 print copies of Designing Next Generation Web Projects with CSS3 to give away

January 29th, 2013

I’ve two printed copies of Designing Next Generation Web Projects with CSS3 to give away. To be eligible you have to live in US, UK or Europe, if so simply click on this tweet and retweet it using the retweet button before Friday February 1, 2013 17:00 GMT. Winners will be randomly picked from the retweet list and announced on Saturday 2.
Read the rest of this entry »

Migrating a single site of a wordpress multisite instance

October 28th, 2012

Recently I had to deal with a WordPress multisite instance, the task was moving the contents of one of the sites hosted on the network to a local copy, update them and the re-move them to the production server.

Read the rest of this entry »

Translating wp-members with WPML

March 23rd, 2012

I was asked to create a website where some content can be viewed only by registered users. I decided to go for WordPress and I choose wp-members plugin to enable member-only content as well as custom login and register pages.

Read the rest of this entry »

Building a company logo using CSS3

March 15th, 2012

I’ve recently left my job to found a new company called ‘Comparto Web‘; to showcase some of our CSS3 skills I decided to implement the logo using only HTML elements and taking advantage of some new properties such as transitions and animations.

Read the rest of this entry »

Copy with Style bundle now available for TextMate 2

January 8th, 2012

I’ve always owned a debt of gratitude to Bartosz Blimke and his amazingly simple ‘copy with style’ Textmate bundle which lets you copy and paste chunks of code to external programs (eg: Keynote) while keeping all the syntax highlight working.

Read the rest of this entry »

Handling thousands of pics from a mobile device

November 27th, 2011

Lately I’ve been involved into a fascinating project called PepperTweet which consist in extract and visualize streams of pics from twitter starting from some search keywords.

Read the rest of this entry »

Real time twitter data visualization with Processing.js

October 25th, 2011

Lately I’ve been pretty busy enjoying some real time data visualization examples and demo. To have some data to work with I decided to use Twitter API, in particular I rely on jQuery LiveTwitter plugin by elektronaut; next I built a stack chart like visualization in which every new tweet of a chosen topic is dropped over its language column.

Read the rest of this entry »

Using the :required pseudo selector to enhance forms

August 14th, 2011

Lately I come up with this idea on how to enhance a form by using the :required pseudo element. What you can do is mix this new pseudo element with the ‘+’ selector in order to modify elements that are adjacent to your input tag, such as the label.

Read the rest of this entry »