Home
Alessandro Melandri
Cancel

Scriptlet and JSTL variable sharing

I know that mixing scriplets and JSTL in JSP is a bad practice, but sometimes you can’t avoid it and every time I do it I can’t remember how to share variables between scriplets and JSTL so this po...

Selective Javascript Loader 1.1

I’ve just update the Selective Javascript Loader plugin with some bugfixes and improvements: Added the option to choose if Javascript files should be included in the header or in the footer of ...

Selective Javascript Loader

I’ve just released Selective Javascript Loader my first WordPress plugin. It’s a very simple plugin that automatically loads different Javascript files based on the blog section that is being viewe...

Check date validity with Javascript

A simple JavaScript function to check date validity function checkDateValidity(day, month, year){ month = month - 1; var message = ''; var date = new Date(year,month,day); if (year != d...

Speed up Firefox awesome bar

Using the new Firefox awesome bar could result in a frustrating experience, because the SQLite database that holds all the data used by Firefox can get heavily defragmented. You can get an huge sp...

Single post template based on category #2

In my previous post I talked about a Lorelle blog post on creating single post templates for different tags. After using the code snippets “as is” I tryed to build a more flexible solution so I’ve...

Single post template based on category

Today, while trying to customize the single.php template for a specific category I found a pretty old article written by Lorelle: Creating Multiple Single Posts for Different tags. Her tip is rea...

Add a category filter to WordPress search

WordPress has a simple function to build a search form for your blog and in this tutorial I’ll show you how to add a category filter to it. <?php get_search_form(); ?> This function will l...

Javascript getElementById() shortcut

Do you love the wonderful javascript dollar shortcut $('myId') but cannot use jQuery or Prototype? Don’t worry, you can define your custom shortcut for the too long document.getElementById() functi...

Get location coordinates using Google Maps

This article uses **v2** version of Google Maps API. You sould use [v3][5] by now This is a simple tutorial on finding location’s coordinates using Google Maps APIs. First of all you need to signu...