Segnalibri al 13 luglio 2010

  • Inside of WordPress are several of JavaScript libraries available, you can use them easily and you don’t need an extra Theme or Plugins. Also, this is the recommended approach to enable libraries , so they won’t be loaded more than once. Some notes on these two topics can be found in the article Use JavaScript Libraries In And Of WordPress.
    But from time to time you need something specific, so I have some code snippets for you in this post now. And I particularly want to show some examples with jQuery. Many Themes and Plugins using jQuery and it is pretty easy to work with jQuery. In principle, these hooks and calls also apply to your own scripts and other libraries.

    Tags: wordpress jquery hooks

    13 luglio 2010

  • This article is split into two parts for ez reference. First some information on the evil WordPress “Pharma Hack”, and then a recipe for protecting your site with a solid security lockdown.

    Tags: wordpress security pharma-hack

    13 luglio 2010

  • We’ll focus specifically on the 960 Grid System, but after reading this guide, you’ll find that most of the other grid systems out there are similar and will make much more sense after you understand a few basic principles.

    Tags: grid webdesign css layout 960

    12 luglio 2010

Continua a leggere

Full Circle Magazine n. 34

Abbiamo pubblicato il numero 34 della rivista Full Circle nel sito internazionale. Per il download del PDF fate clic sui link riportati in basso.

Dal sommario

  • Programmare in Python, parte 8
  • Ritocco fotografico digitale con GIMP
  • Il server perfetto, parte 4
  • La mia storia: Utente Linux
  • La mia storia: Powerpets.com
  • La mia opinione: I problemi della 9.10
  • Recensione: ASUS UL30-Un Notebook
  • Donne Ubuntu: Intervista a Melissa Draper
  • Giochi Ubuntu: Uplink
  • Top 5: Strumenti di consultazione

Link

Buona lettura! ;)

WordPress e la P maiuscola

Sicuramente tutti voi sapete che WordPress si scrive con la P maiuscola. Ma a qualcuno che scrive sul Planet ogni tanto scappa la minuscola. Per questo motivo nella nuova 3.0 c’è una funzione dedicata, capital_P_dangit():

/**
 * Forever eliminate "Wordpress" from the planet (or at least the little bit we can influence).
 *
 * Violating our coding standards for a good function name.
 *
 * @since 3.0.0
 */
function capital_P_dangit( $text ) {
       return str_replace( 'Wordpress', 'WordPress', $text );
}

Ovviamente anche nelle righe qui sopra la funzione trasforma la parola nel corretto CamelCase.

A qualcuno questa cosa non va giù, altri lamentano problemi: se ne sta discutendo animatamente nella lista wp-hackers come anche nel trac. C’è già un plugin ad-hoc che rimuove il filtro per la modifica della P maiuscola, le cui tre righe sono:

remove_filter('the_content','capital_P_dangit');
remove_filter('the_title','capital_P_dangit');
remove_filter('comment_text','capital_P_dangit');

Shortcode per YouTube rivisto e migliorato

Ho rimesso mano a uno shortcode di cui vi avevo già scritto e che si è rivelato davvero comodo, quello per l’inserimento di un video di YouTube in un post. Le modifiche che ho apportato rispetto a quello già pubblicato riguardano due aspetti:

  1. la possibilità di far partire il video da un punto preciso;
  2. l’inserimento del poster frame del video se il post viene letto via feed.

Niente di particolarmente complicato, quindi, ma mi pare sempre interessante condividere con voi quanto combino.

Continua a leggere

2012: l’anno delle balle mega galattiche

Rispondendo all’invito di @disinformatico, che come sempre ringrazio, condivido il video di Superquark sul 21 dicembre 2012, il giorno delle presunte catastrofi planetarie.

Convincere almeno uno di questi creduloni sarebbe già un successo. E comunque giorno 22 non vorrò perdermi la faccia di coloro che mettono in giro panzane del genere.