Sean McNamara

Student / Programmer / Game Enthusiast

The One Page Linux Manual

Linux
This one page linux manual has anything you will need while working any distro.. Everything from Starting and Stopping to User Administration and Little Known Tips & Tricks!

Download and post on your wall! This is the ultimate of cheat sheets!
The One Page Linux Manual

Students to get "Windows 7" for $30

Windows 7
The deal is completely live yet but it is confirmed by Microsoft as you can see on Twitter here.. Students in USA and UK will be able to get Windows 7 for only $30 by using their college email! This is a nice step by Microsoft.
Emailing them now to see if this will be including Irish students! — Will update here on response

  • Received email from Brianna @ Microsoft. She is conferring with her colleagues and will get back to me
  • Microsoft Representative failed me, provided inaccurate information and completely ignored my question. Is anyone actually able to get an answer of these corporations?

Snipt.net – Store your Code Snippets Online

Recyclable Code

Often when your programming well you find yourself with a lot of reusable or recyclable code. Everyone has their own little way of keeping all this code and organizing it etc. etc. for their next project. However today I found a great website now that I need my code snippets in more than one place, Snipt.net . Not only can you store all your code privately with the ability to tag it and have it highlighted. But you can browse through the public code also, for when your really stuck with that problem! ;) This will certainly be a website I’ll be adding to most used for ’09

Screenshot & Workspace for '09

Kind of a fun post, been without one of these for too long..
Workspace:
Workspace

As you can see, taken with a shoddy phone camera my workspace that has been thrown together! There’s my WIT calender in the background.. :P

Desktop
Desktop Screenshot

Here you can see my desktop. Click it if you want a bigger version, just can’t break the sidebar here! ;) Currently running the latest version of kUbuntu. No dual booting or anything, have converted fully now.. :D

Autoinstalling .Debs on Firefox

Auto install linux
I was trying to use a get .debs website the other day and with alot of fustration of firefox saying “Firefox does not have the correct protocol to open this file [.apt]” I finally figured out that I did not have “apt-url” installed by default on kUbuntu. This can be fixed by simply opening a terminal window and typing:

sudo apt-get install apturl

Then restart firefox [doesn't matter what version you have]. Go to download another .deb / .apt file and when it asks you what you would like to use to open the file browse to /usr/bin and pick whatever installs your programs! Presto your done! ;)

You can now use sites like, Playdeb.net more on Playdeb.net tommorrow!

Learn PHP: Class Three

Php
Today we are going to learn all about include and require! Include and require are handy to use not only in your php applications, but in general website design for sidebar’s and what not! So.. yeah.. :P Moving on!

Include and Require include a file within another PHP script. There are four ways of doing this:

* include();
* include_once();
* require();
* require_once();

Now using them is seriously simple. Lets say you have sidebar.php with your links? All you have do do is the following:

include(”sidebar.php”);

One thing to remember is how to control directories in PHP. For instance, if my file “sidebar.php” is in a folder called includes you put in:

include(”includes/sidebar.php”);

Or to take another route of it, if my file “sidebar.php” is in the / directory and the file I want the sidebar to show on is in a folder of that: /data I would put in:

include(”../sidebar.php”);

Now why are there four different ways to include them I hear you ask! Well they are pretty simple.

Include and Require are practically the same, apart from the way they give out errors. Include will continue parsing your script and just shove out an error. Require however will stop the whole script to give you an error. Really it’s all down to what you want.

Include_once and require_once you probably guess only allow you to include the file once. This is not only more secure but stops from silly errors where the file was just included and variables were overwritten halfway through the script. Again they give out the same errors as include and require.

So lets go over one of each!

include(”sidebar.php”);
include_once(”sidebar.php”);
require(”sidebar.php”);
require_once(”sidebar.php”);

We really are spoilt for choice aren’t we! ;)

Linux Comic

Saw this and thought it was a laugh! Here you go!

Windows & Linux
Mac and PC- Linux. by ~alpha-art on deviantART

Don't Download or We'll Play This Video Again!

There’s trying to target young people downloading, then there is just taking the piss. The only thing this video makes me worry about is the fact that I may have to watch it again. Infact if you want to make this video effective why not threaten people who copy movies with a 3 hour viewing of this? Other than that, I think I’ll go download a movie now, hell I may even burn the movie I’ve downloaded and pass it around to all my “homies”. :P

Programmers Day

Interesting Fact:
Today, it is “The Day of the Programmer”. Since yesterday this has been made an official Russian holiday!
The Russian president only made this yesterday as seen here..

The day of programmer will be noted on September 13 (in 256- y the day of year), if year is bissextile – on September 12.

What is Programmers Day?
Programmer’s day is a whimsical “holiday” on the 256th day of the year celebrated mostly by computer programmers (reason: 256 = 2 to the power of 8 = the number of values representable in a byte of data). Traditions include drinking, behaving silly, coding silly programs, mini computer games, playing with old computers, etc. Programmer’s day usually falls on September 13th; on leap years, it is September 12th.

Why the 256th Day of the year?
A byte can have 256 possible values, bytes are very important to programmers. Not because they are required for programs to work, but because the payroll system and Krispy Kreme doughnut cash registers require them.

Irish?
We need to get onto Brian Cowen to make an offical holiday out of this!  :D

Sick *COUGH COUGH*

Sick

So I made it two days into college, getting up at 7am to get the bus. Needless to say it was a shock to the system, thought it was okay, but a shock all the same. What I didn’t expect was to be dying sick from Wednesday onwards. All that tiredness just DESTROYED my immune system and my immune system is usually pretty damn good! So currently at home dying from a chest infection / some bug? Doesn’t seem like Swine Flu, but I haven’t been to a doctor yet! :P Not that I haven’t booked an appointment I was meant to be in the doctor Friday, but I went asleep Thursday night about 1am and didn’t wake up till  Saturday at 2am. Thats a 25 hour unitterupted sleep, which was extreemly confusing when I got up in the pitch black of night, checked the time on my phone and it told me it was 2pm. A stumble into the kitchen to check the internet time let me know that day had not become night and it was 2am Saturday. It always feels wierd waking up after a 24 hour sleep! :S So needless to say after 25 hours sleep there’s not a chance of getting back to sleep as sick as I may be! Aswell as that, I’d like to complain about the fact that since Wednesday I’ve spent about 50E on painkillers, cough bottles etc. I still have to see the doctor and more than likely get anti-biotics. [Add more money] I really can’t afford to be spending this with the amount of things I still have to get for college!  Oh well, here’s to you internet universe! I hope I’m better soon!