The Neighbourhood - Sweater Weather photo

The Neighbourhood – Sweater Weather

The Neighbourhood (aka “THE NBHD”) est un groupe de rock alternatif formé en 2011 autour de Jesse Rutherford (vocals), Jeremy Freedman et Zach Abels (guitares), le bassiste Mikey Margott, et le batteur Bryan Sammis.

Ils viennent de Californie mais ont choisi l’orthographe britannique pour leur nom de scène.

C’est tout doux ce rock californien. Leur premier album, I Love You est sorti le 23 avril 2013 chez Columbia Records.

Site officiel.

WordPress : récupérer la liste emails des membres et commentateurs photo

WordPress : afficher la date en français dans le thème (sans utiliser le pack de langue ou setlocale())

Wordpress icon

Cela fait des années que j’utilise le même thème graphique pour mon site et je n’ai jamais vraiment pris le temps de traduire la date de publication ou de mise à jour des articles en français.

Le tutoriel qui suit ne s’adresse qu’à un cercle réduit de développeurs : il est évidemment bien plus aisé d’installer WordPress en français (avec le langage pack qui convient) ou d’utiliser la fonction PHP setlocale() comme je l’avais fait précédemment avec WP-Date FR.

Dans mon cas bien précis, je n’ai pas accès aux locales étant donné que le serveur est installé en anglais.

Je ne souhaite pas non plus installer la locale française, qui serait alors ajoutée à tous mes paquets Debian.

Et je ne souhaite pas non plus utiliser la traduction française de WordPress. It’s coding time !

La fonction sky_date_french()

Vous pouvez placer cette fonction dans le fichier functions.php de votre thème :

/*
|-----------------------------------------------------------------------
| Sky Date in French by Matt - www.skyminds.net
|-----------------------------------------------------------------------
|
| Returns or echoes the date in French format (dd/mm/YYYY) for WordPress themes.
|
*/
function sky_date_french($format, $timestamp = null, $echo = null) {
	$param_D = array('', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam', 'Dim');
	$param_l = array('', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi', 'Dimanche');
	$param_F = array('', 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre');
	$param_M = array('', 'Jan', 'Fév', 'Mar', 'Avr', 'Mai', 'Jun', 'Jul', 'Aoû', 'Sep', 'Oct', 'Nov', 'Déc');
	$return = '';
	if(is_null($timestamp)) { $timestamp = mktime(); }
	for($i = 0, $len = strlen($format); $i < $len; $i++) {
		switch($format[$i]) {
			case '\\' : // fix.slashes
				$i++;
				$return .= isset($format[$i]) ? $format[$i] : '';
				break;
			case 'D' :
				$return .= $param_D[date('N', $timestamp)];
				break;
			case 'l' :
				$return .= $param_l[date('N', $timestamp)];
				break;
			case 'F' :
				$return .= $param_F[date('n', $timestamp)];
				break;
			case 'M' :
				$return .= $param_M[date('n', $timestamp)];
				break;
			default :
				$return .= date($format[$i], $timestamp);
				break;
		}
	}
	if(is_null($echo)) { return $return;} else { echo $return;}
}Code language: PHP (php)

Lire la suite

Steve Berke - Pot Shop (Macklemore's Thrift Shop parody) photo

Steve Berke – Pot Shop

Je vous avais parlé il y a quelques temps de Macklemore’s Thrift Shop, qui est ensuite passé en boucle sur toutes les radios de djeun’s du monde.

En voici une parodie faisant l’apologie de la légalisation du cannabis dans l’etat de Washington par l’humouriste Steve Berke, filmé avec Sexy Sax Man, Towelie, David King Cain et Amanda Cerny, Playmate pour Playboy :

Im gonna smoke some weed, only got 20 dollas in my pocket
Imma huntin, looking for a pot shop, this is fucking awesome!

Walk into my house like what up, i got some good pot
I’m just pumped up got some herb from the pot shop
Ice in my fridge it used to be frosty
My friends like “Damn, that’s a stoned ass donkey!”
Rollin’ in hella high, looking like it’s fifa time
Dominating all my friends, as I eat some chili fries
Draped in a snuggie with my girl sitting next to me
Probably shouldn’t have had a big gulp full of ice tea
PISS!
But shit it was 99 cents!

I be blazin and smokin it
Bout to go and get some munchie snacks, passing up on those cracker jacks
Reeces Pieces are where it’s at, Gotta get me some soda pop
Cotton mouth has been creeping up
But can’t remember where I put my keys,
Yeah, that’s what’s up.
Imma take your grandpa’s ride, Imma take your grandpa’s ride
No for real, ask your grandpa, Can I take his 65?
Deville Cruisin to my local Publix
Nothing better than rolling with 2 super fly chicks!
They had frozen burritos, I bought frozen burritos
I bought some Ben and Jerry’s, then I bought some Cheetos
Hello, Hello, my main man Obama
A couple states have just reformed their laws on marijuana
Whatcha gonna do, send the feds there? Hell no!
The DEA’s would be like “Ah, they got Volcano”

What you know about the science of marijuana?
What you know about people suffering from glaucoma?
They need it, they need it, it helps them with their condition
If don’t believe me, then just ask some eye physicians
Thank your granddad for voting for that guy Richard
Nixon is the President who made the plant illegal
But science is now showing that its medicine for people
And the private sector’s fighting to keep all of that illegal
Alcohol and Tobacco, Pharmaceutical, Prisons
I’ll take those four major lobby groups and fight those motherfuckers
They making money day and night, all those motherfuckers
And bribing congress out of sight, all those motherfuckers
They be like, “Oh, it’s immoral and unhealthy”
I’m like how many people are you making wealthy
Anti-marijuana lobbies are making all kinds of profits
And they don’t want you to stop it cause of all the special interests
I call that getting swindled and pimped, shit
I call that getting tricked by the government, that law’s hella old
So its time to update it, regulate it, and then get it under state control
Peep Game, look into my political telescope
Think it’s going to stay like this forever, nah, it hella won’t, nah, it hella won’t.

Let’s end the war on drugs, It’s time to pull the plug
These special interest groups are nothing more than corporate thugs
Let’s end the war on weed, the people have agreed.
These special interest groups have kept these laws with bribery

Imma smoke some weed, only got 20 dollas in my pocket
Imma huntin, looking for a pot shop, this is fucking awesome!

Puff. Puff. Pass.