WordPress Basis Theme

I just discovered the WP Basis Theme. It’s a clean and very minimalistic theme. I will use it on my next project for sure.

Posted in Wordpress | Leave a comment

Sensation White Amsterdam Innerspace 2011

Posted in Fun | 2 Comments

Free deck of playing cards in vector format

You can download and use for free this 52 set of playing cards.

Vector Playing Cards

Inside this zip file are 52 swf files.

Posted in Graphic Design | Leave a comment

Ubisoft’s Rocksmith

Since I played for the first time Band Hero, I thought that in the near future they will make a game that has a real guitar in it. A month ago I heard news about Rock Band’s Squier Stratocaster which is a guitar that can be used both for Rock Band 3 and a normal real guitar. However, you cannot play this game with any guitar.
Today I came across Rocksmith, which is a game from Ubisoft where you can play with a real normal guitar. It means I can play with my electric that I have in my room.
I was so happy to hear those news because I didn’t want to spend like 300$ for the Rock Band’s guitar.
And I am also happy that I will improve my skills on the electric guitar as well (actually I play classical guitar).

Posted in Playstation | Leave a comment

Change JForms (0.7 RC2) email subject

It’s strange but JForms doesn’t have a field where you can put the subject of the email that goes to the administrator when a form is filled. They will implement it later for sure.
However, if you want to change the subjects of the forms, you should hack the Mail.php code of JForms.

Here is how to do it:

1. Go to /administrator/components/com_jforms/plugins/storage/Mail/Mail.php

2. Find this linke of code:

$mail->SetSubject($field->parameters['subject']);

and replace it with:


$formID = $form->id;
if($formID == 1) {
$mail->SetSubject(JText::_('TEXT FOR SUBJECT IN FORM WITH ID 1'));
} else if($formID == 2) {
$mail->SetSubject(JText::_('TEXT FOR SUBJECT IN FORM WITH ID 2'));
} else if($formID == 3) {
$mail->SetSubject(JText::_('TEXT FOR SUBJECT IN FORM WITH ID 3'));
} else {
$mail->SetSubject(JText::_('TEXT FOR SUBJECT IN FORM WITH A DIFFERENT ID'));
}
Posted in Joomla | 1 Comment

Move.me Application Development with the Playstation 3

I can’t wait for the move.me to come out, it looks exciting. I want to be on the first wave of developers to make an application for the Playstation Move.

Posted in Playstation | Leave a comment

Playstation 3 Game Update error SOLVED

This is for all of you out there who are unable to update games on the Playstation 3 because some nasty error shows up everytime an update is in progress.

The solution is that you have to disable Universal Plug and Play (UPnP) on your Playstation 3.

This can be done using a manual configuration of the network settings.

Posted in Playstation | Leave a comment

Changing header information in a Joomla Template

In some Joomla templates you can change the information in the <head> tags directly by going in the template and adding html code inside the <head> tags. However, some other templates have in the header this line of code:

<jdoc:include type=”head” />

which includes the header information from some file.
If you like to change a <meta> tag, directly in the template file, you should write this PHP code inside the scope of the <head> tags:

<?php $this->setMetaData(‘robots’, ‘noindex, nofollow’); ?>

which is equivalent with:

<meta name=”robots” content=”noindex, nofollow” />

Since I use this technique often, and I often forget about it, i decided to put it in my blog.

Posted in Joomla | 1 Comment

Useful Regular Expressions

1. Matching an URL

There are many regular expressions out there that match an URL, but this is the best I’ve found so far:
‘#((https?://|www\.)([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)#

2. Match email

“/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i”

Posted in PHP/MySQL | Leave a comment

PHPExcel and Joomla

When you try to include the PHPExcel library into a joomla article (using a plugin for inserting PHP code into an article), it doesn’t work. It displays a white screen. I found a solution for that. It maybe not the best way to fix this sinceĀ  I’ve modified the Joomla core.

Go to /libraries/loader.php and replace:

function __autoload($class)
{
if(JLoader::load($class)) {
return true;
}
return false;
}

with:

function Joomla_Autoload($class) {
if(JLoader::load($class)) {
return true;
}
return false;
}
/*** specify extensions that may be loaded ***/
spl_autoload_extensions('.php, .class.php, .lib.php');
/*** register the loader functions ***/
spl_autoload_register('Joomla_Autoload');
Posted in Joomla | 1 Comment