Ubuntu Cheat Sheets

Cheat sheets are handy, you ever get stuck you just look up at the wall where you have your cheat sheet right there providing you the answers you need! Moving to Ubuntu is a big step for alot of people, and cheat sheets can make that so much easier! So in regards to that, here are three ubuntu cheat sheets to make your life handier!

Ubuntu Cheat Sheet

Ubuntu Cheat Sheet

Ubuntu Cheat Sheet

Download em, Print em and put em somewhere creative! 😉

Posted on September 12, 2009

Who Hosts Irish Blogs ?

Hosts of Irish Blogs

Back to a post I did last year I went and found who was hosting Irish blogs for 2009. As you can see there is your piechart and heres the stats:
BLACKNIGHT – 46 Irish Blogs Hosted
GOOGLE – 30 Irish Blogs Hosted
HOSTING365 – 11 Irish Blogs Hosted
WORDPRESS – 10 Irish Blogs Hosted
GODADDY – 5 Irish Blogs Hosted
DIGIWEB – 4 Irish Blogs Hosted
TYPEPAD – 3 Irish Blogs Hosted
THEPLANET – 3 Irish Blogs Hosted
SLICEHOST – 3 Irish Blogs Hosted
COGNOTENT – 2 Irish Blogs Hosted
WEBHOST IRELAND – 2 Irish Blogs Hosted
BLUEHOST – 2 Irish Blogs Hosted
SERVAGE – 2 Irish Blogs Hosted

Posted on September 09, 2009

Learn PHP: Class Two, Ifs And Elses

Moving on to PHP’s If Else Statements.

Here is one in action:

if ($condition) {
echo 'condition is true';

Simple enough? To start with as you can see you first write the statement name, in this case “if”. Then you enclose your condition in brackets, [A condition is essentially a question you ask PHP.] then you add an opening “curly bracket”. The opening curly bracket basically defines the start of the code to execute of the condition of the statement evaluates to true. In this case we are wanting PHP to output the text “condition is true” if the condition is true. Then finally we have a closing curly bracket.
In the above example the entire condition has simply been set to the variable $condition. Therefore what we are asking PHP is does the variable $condition exist, and if it does, does it have a value that is not NULL. [Null = Nothing, zero, zilch] In this case we didn’t actually define the variable $condition therefore the statement will evaluate to false and the code within the statement wont be executed. Therefore the above will output nothing at all. However the following code:

$condition = "Here!"
if ($condition) {
echo 'condition is true';

Would output “Condition is True”.

Now if statements are pretty useless on their own! What you really want is if / else statements, which we will look at here!

$condition = 10;
if ($condition == 5) {
echo "condition is 5";

Basically here the variable condition is 10. PHP Checks if it is 5. As we all know 10 is not 5, so PHP does nothing. However in this statement:

$condition = 10;
if ($condition == 5) {
echo "condition is 5";
} else if ($condition < 5) {
echo "condition is less than 5";
} else {
echo "condition is $condition";

We have an if statement, an if else statement and an else statement.
Basically the code explains it, but the condition is 10. If the condition is 5, PHP will output that it is 5. Otherwise if the condition is less than 5. PHP will output that it is less than five. Lastly, if nothing matches in the if or else if statements PHP will output its else. Saying Condition is 10.

A last sample before we head off.

$condition = "yes";
if ($condition == "no"){
echo "condition is false";
} else if ($condition == "yes"){
echo "condition is true";
} else {
echo "Something happened to the variable";

Here you can see that the condition is actually a word. PHP checks it just like it would a number and outputs all the same. Here PHP would output “Condition is True”.

And that’s it for today! Next week we have “arrays” so until then practice! 🙂

Posted on August 28, 2009

MoBlock – Peerguardian for Linux

With all the recent activity in Ireland with the MPAA you can’t be too safe anymore, you no longer know if someone from the MPAA is lurking in your computer watching everything you download and just waiting for the perfect time to send you that court summons. Program’s can be installed to prevent people like this getting access to your computer, on Windows you have PeerGuardian, for Linux you have MoBlock. We can’t really tell how effective these peer blocking tools are but in this day and age it’s better to have some security rather than no security!

I’m going to just focus a little more on the power of MoBlock though, which is rumoured to soon be the offical PeerGuardian for windows. Installation is a breeze if your using Ubuntu Jaunty, for other .deb users read here.
First open up a terminal and edit your sources.list you can do this by typing the following:
sudo kate /etc/apt/sources.list
This opens “kate” for you using admin privilages. Add the following to the bottom of the file.
deb http://ppa.launchpad.net/jre-phoenix/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/jre-phoenix/ppa/ubuntu jaunty main

You will also have to enable the universe module, this should already be enabled just look for:
deb http://archive.ubuntu.com jaunty main universe
Next you’ll want to add the gpkg key of the program. To make it trusted, do this by typing the following into a terminal
gpg --keyserver keyserver.ubuntu.com --recv 9C0042C8
gpg --export --armor 9C0042C8 | sudo apt-key add -

Then it’s a walk in the park:
sudo aptitude update
And finally:
sudo aptitude install moblock blockcontrol mobloquer
After it’s installed you will be guided through configuring moblock! Good luck! 😀

Posted on August 26, 2009

Ubuntu Focus: Amarok

Amarok is an open source music player with a great intuitive user-interface that breathes new life into your music collection. Play lists are easily created through drag and drop – and the sound can be adjusted to suit you listening environment using the built-in 10 band equalizer. Amarok also lets you listen to internet radio (mp3 streaming) including music from last.fm.
Other features include automatic cover and lyrics download, dynamic playlists, visualizations and podcasting. An least but not last – Amarok will also synchronize your music to your iPod. For the more technical users a scripting interface allows you to extend the functionality of Amarok.

Amarok, definately the best media player I’ve used on Linux! Check it out!

Posted on August 22, 2009

Eytoy as a Webcam on Ubuntu

People say using linux is complicated. That just isn’t true anymore. Back when I first started using Ubuntu there was not much support for using the Eyetoy as a webcam. Now however using the eyetoy as a webcam is a walk in the park! Just open up a terminal window and copy the following into it:

sudo apt-get update
sudo apt-get install ov51x-jpeg-source module-assistant
module-assistant a-i ov51x-jpeg

And Presto your webcam is working!

Posted on August 21, 2009

Learn PHP: Class One, Echos and Variables

So now that we have done the Prep Class its time to move on to the actual learning!


echo "text here";


echo 'text here';

Simple as that, thats how you get PHP to output some text. Whichever you use is really up to you, there is pros and cons to what you can do with each, you can read about them here.

Comments are really important within any programming language, really to tidy up your code and so you remember what each bit does later on. PHP supports two different ways of commenting, C++ Style and Shell style. I will just stick with C++ Style for today

Example’s of echo’ng via C++ Style are as follows:

echo 'Hi'; // Output: Hi
echo 'Hi'; /* Hi */

// Comments out the rest of the line. While /* */ lets you comment as far as you want, just remember to close the comment! If you don’t get me I’ll do a quick example:
This will stop PHP echo’ing “Hi”

echo "Hi";

This however will not.

echo "Hi";

But this would

//echo “Hi”;
/* style are obviously much easier for commenting out blocks of code. But for just adding a quick comment // style is alot better!


$variablename = "Variable One";
$variablename = 'Variable One';
$variablename = 1;

Variables are vital within your programming language, you will use them over and over again! Again, you can use single or double quotes, both with their pros and cons, you can also use numbers, or other variables. I’ll give you a quick example of adding within variables.

$add = 2 + 1;

That variable would add 2 + 1. But how to get what the Variable says? Well you just use echo again!

$add = 2 + 1;
echo $add;

The output of that would be:


Nothing more, nothing less.
You can also add variables within variables. As complicated as that sounds its pretty easy. I’ll give you a quick example.

$one = 1;
$two = 2;
$add = $one + $two;
echo $add;

So lets go over what we just learnt with a quick script;

$name = 'Sean'; // My Name
$age = 16 +1; // Seventeen!
$nextage = $age +1; //Age I will be next year.
echo 'Hi my name is ';
echo $name;
echo ' and I am';
echo $age;
echo 'but I will be'
echo $nextage;
echo 'next year!'

Of course that is probably the longest, but easiest way you could do it! The faster way to do it would be:

$name = 'Sean'; // My Name
$age = 16 +1; // Seventeen!
$nextage = $age +1; //Age I will be next year.
echo "Hi my name is $name and I am $age but I will be $nextage next year!”"

That’s defiantly the handiest way to do it! Don’t worry I’ll go a bit more into that in the next lesson! Until then, practice!

Posted on August 21, 2009

Learn PHP: Preparation Time

Nearly two or three times every week I get someone asking me to teach them how to program, many of these are from an online game I help out with called Injustice. Its amazing really that people that there is some hidden secret to coding and that I can just send you a link or say one or two lines and they will be able to code! I’m telling you people, its not magic!!
So instead of repeating myself over and over I’m shoving this article in here! Mainly because of this, secondly because I believe people can learn PHP a little easier than some of the websites make it. So on with the show!

Ok, so to actually learn PHP the best way to do it will be to install Xampp.

You can download Xampp here.
Xampp will install Apache [Webserver] MySQL [Database] and PHP among other things, but that is all we will be using! Once you download the file, run it, its a graphical installer for windows.

For linux users, I’m sure you can work out how to install it! 😉

Once installed start the Apache and MySQL services, the control panel will be in front of you, all you have to do is tick the boxes! Yep thats it, your done installing.

Now, to put files into your “webserver” you will go into C:/Xampp/htdocs/ if you installed it in the default directory. So lets create a folder called project. And put a file called index.php in there. In the index.php file just put the word “Test”. Then all you have to do is go to, http://localhost/project/index.php and if you did everything right you should be looking at a webpage that just says “Test”. There you have it! You are ready to learn PHP!

Posted on July 07, 2009

Natalia Tena


Alot of people come here looking for a specific Natalia Tena picture, this is it!

This picture originally came to be on the site from a review of “Harry Potter and the Order of the Phoenix” which is now lost in cyberspace, the reason for reposting this up is for Google and their lovely adverts!

If your using this picture please click an advert below

Posted on June 25, 2007