Quantcast
Channel: Carlo Rizzante
Browsing index pages (46 articles)

HTML5 Video, A Responsive Solution

HTML5 Video We've recently published a single page for a client where the main feature was a full-wide video on the top followed by a registration form for an incoming event a bit further down. The...

View Article


Fix Google Analytics Blank Screen

The other day Google Analytics did not display other than a blank screen in place of the usual Dashboard. At first I thought that the service was going under some maintenance routine but later during...

View Article


Function names and properties in Javascript

Functions in Javascript are first class object and that means that they can have properties as much as objects do. So we can add properties to them. function foo() {} foo.prop = "Hello!";...

View Article

Javascript and the ambiguity of assigning variables by value and by reference

Javascript is a wonderful language. One that is often misunderstood, and blamed for, when really not seldom we just do not understand it well enough. I’ve seen countless lectures and chapters that...

View Article

Connecting PHP to MySQL in MAMP

I had some struggle in connecting MAMP to MySQL, but finally I found a code that works just fine. It doesn't validate fields and values (I let that to you), and it adds only a small amount data...

View Article


Redirect a www URL to the equivalent not www

This article is about how to redirect a generic domain like http://www.mydomain.com to its equivalent http://mydomain.com. The solution should work on any generic site (not just WP), and for any...

View Article

Image may be NSFW.
Clik here to view.

Auto-refresh NodeJS apps, with Nodemon

I really enjoying working with NodeJS but it can also get quickly tedious due to the continuous need to stop and restart the server after any editing. Luckily we do not necessarily need to. A small...

View Article

NodeJS and ES6

If you have updated NodeJS to the latest release, at today v4.0.0, you are already able to use some of the new specs for ES6, the incoming new version of Javascript. For example, you should be able to...

View Article


Updating NodeJS via Terminal

In case you would like to update NodeJS via Terminal, here's a way to do so. sudo npm cache clean -f sudo npm install -g n sudo n stable In short, you're installing globally, and then using n, a...

View Article


How to build your custom event listener

Event listeners are not that complicated to understand. In fact, you can build your own. And here’s how. First we want to be able to instantiate multiple event listeners and to do so we can write a...

View Article

Image may be NSFW.
Clik here to view.

Adding Google Analytics to Ghost

Once your new blog with Ghost is up and running, you may want to track the traffic that it generates and gather data about your audience. Google Analytics offers possibly the best tool in this sense...

View Article

Add_shortcode not working (and how to fix it)

If you wonder why your shortcode does not work as expected in WordPress (or does not work at all), it might be because it has not been registered correctly. Shortcodes need to be registered at the init...

View Article

Back link with and jQuery (and WordPress)

There are times in which you may need to add a back link to the navigation of a WordPress site, and especially for web apps. As well as the skip link, you may want some specific browser to find it when...

View Article


Mmenu and WordPress

Might you wish to integrate Mmenu, a jQuery plugin for sliding, responsive navigation menus, into a WordPress site, at the same time taking advantage of jQuery, you may want to try the code here below....

View Article

Blurred Font on Safari and Chrome

Typography is one the most important aspects on a site. And playing around with WebFonts and CSS3 is awesome. However, the final result might not look consistent across different browsers. For example,...

View Article


FlexSlider, WordPress and jQuery

I like FlexSlider, it is a simple and yet powerful solution for adding slides to a website. It has been lately acquired by WooThemes, and kept as free software downloadable through their site....

View Article

How to fix the Image Caption bug in WordPress 3.7.

If you upgraded to WordPress 3.7 (released yesterday), you may have encountered an issue while inserting a picture in a post with a caption via the Visual editor. The problem is related to a small bug...

View Article


Remove the Gallery Inline Styling in WordPress

The default gallery shortcode in WordPress outputs a bunch of inline styling straight into the markup. That often conflicts with one's attempts to style the gallery via an external CSS file....

View Article

Path to mysqldump and mysql for MAMP

If you run WordPress in local using MAMP, and wish to benefit of the WP-DBManager, you need first to configure the latter. Which means that you have to provide to the plugin the paths to mysqldump and...

View Article

WordPress 3.7 and Automatic Core Updates

There have been rumours, and it is now official. WordPress 3.7 will have the capabilities to auto upgrade itself, for now limited to core and security releases. More precisely, by default WordPress 3.7...

View Article
Browsing index pages (46 articles)


Latest Images