Pages

Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Monday, 4 July 2011

A short miss spelt introducan to server side scripting in PHP

I asume you have a basic understanding of HTML, if not you can find plent of turoials on the web, personaly i reeocomend W3Schools tutorial.

PHP is a gernral perpos scripting langwage, but its most common use is scripting on web servers. This is a short introducon to it and we wont go into to much detal.

Befor you use PHP you need a server to run it on. Insted of having a hole seprat computer to act as a server, or even runing a veutal masheen the simplast way by far is to use a local server or local host, this terns you home computer into a web server. I use xampp for this but ther is menny of them out ther like wamp for windows and so on. I will let you find out how to run thes your self, ther is pleny of tutorisals out ther. IF i was to explane it it wold probalby end up going in to way to much deatal.

So now you have a way to render the PHP. When you are working with PHP all files contaning PHP must be saved as '.php'. As always with lerning a new programing langwige it is common pracktis to make a hello world program. so coppy the folowing code into a text editer and i will try to explane what is going on.
<?php
echo "hello world";
?>
One you acsess the file thrue your web server you will see the output is hello world. on starting a PHP script you use the "<?php" tag and you end it with "?>". the echo part of it is just like saying print in basic or cout in c++. at the end of a coded line it ended with a semicolon(";") this just tells PHP that it is the end of a line.

Now lets try a more complacated hello world program.
<?php
$a = "hello";
$b = "world";
echo $a." ".$b;
?>
 This file has exactly the same out put as befor. but this time we are using verables. when using verables in PHP the verable name always starts with a '$'. in this case we are usesing strings so the value of the verable must be sorounded by quotatons. on the echo line we use a '.' to concatanate the strings.

Thank you for reading, i know that this is a lital confusing but once you get your head around it it can be very simple.

George out.

Wednesday, 8 June 2011

The dumming down of tecnolagy is bad for geeks

Tecnolagy is been dumbed down all the time to satasfy the need for things to be easy to use by the public. This is compleaty fine. But lets take one example hear, the humble mobile phone, I don't have one, but ill still use it as an example.

The latest smart phone tecnolagy is very esay to use, evry tom dick and harry seems to have one. But some times the public think that becaus it is the latest stuff, geeks like me will be into it, ther is a lot of geeks about that get very exited at that sort of stuff. But not me to be honast, what I wold like to do is take the cheepst mobile I can find, i havnt found one that sutes my needs yet, but ther must be one out ther. With it i wold like to put a completely self built OS on it and see how well we can make it puform, now thats geeky in my opiyon, taking somthing and riping it to peses then puting it back to gether in a way that it hardy works, but works extreemly well, if that makes sence.

It is insulting to ower inteligants that this sort of stuff is dumed down, it shold be ther all open sorse and dificalt to use. but also have vershons avalable to the rest of the jenral public. in my opinyon eny way,

why not tell us what you think?

You can also E-mail me now:  georgesblabberings@hotmail.co.uk

George out!

Tuesday, 26 April 2011

knex is more then a toy

knex is extreemly usfull stuff. Out of it i have built all manar of usfull stuff. from camra stands to microphone holders.

But the latast adishon to this is a holder for mounting a extra fan in side my computer. At the moment it is quite hot,and becaus of this, my over clocked components(CPU and GPU) are at risk, so this fan helps to cool the graphics card.

hear it is


so i find that it is more than just a toy, knex is a tool for doing stuff that wold be realy dificalt and expencive to do with out it, thanks a lot knex. 

oh and yes, I did do some cable managemant to sort out that mess you can see.

Also you can now subscribe to the blog viar email very easly, ther is a litle form in the right side bar, just stick your email adress in, hit subscribe and you will be emaild when a new post comes out. good eh?


George Out

Wednesday, 26 January 2011

Corparations branewashing kids from the very start via school

I wold just like to point out that some lage coparations are extreemly popula becos of 'brane washing' vier schools. personalty i think it is extreemly good advtising and wold love to be able to tap into it. What I am talking about in this instance is computers.

To my nolage most schools in the UK only use microsoft baste oparating systems as a bases for ther computers. This is not what is rong hear, Microsoft have exsalent softwer when it comes to school and buissnes aplications. What I think is rong is the schools not teching about alternitives, for examle Mac and linux. If kids wer awer off thes aswell it wold help ther IT skills across a lage aria of computing insted of kids growing up with only one way to compute. They take it for granted that microsoft OS are the only option out ther.

By all meen let schools use windows, but atleest tell them about alternatives.

as always feel free to coment and discuss thes ishuws.

George out!

Monday, 24 January 2011

I don't have a mobile phone

Most people find that strange that a tenage lad dont have a mobile, or cell fone to my american readers. I dont see the point in them, peple tell me what if you are out and you want to tallk to you mam, If I wanted to talk to my mam i wold have stayd at home.

I have no intenton of geting one for a long time. Moblies are basicly computers, the one reson i wold get one is to put a custem oparating system on it and have it as a full compute, no lockdowns that the manufactras want. Why cant some manufactura just stick a very open vershon of linux on to a fone(I know that ther is google android but it isnt the same) So you can do whatever you wanted on that pees of crap that liys in most peples pockts.

Why do phones have camras now!!!! The terable Qualitys of the camras inide fones hardly justify having them on ther, It seems to me just to be a terable way to atract very naro minded peple to buy phones then use them constantly that makes them even more mony. If you want a camra, buy a camra!!!!!!!

School have basicly band phones but they are still stupid enough to alow texsting and uther cinds of mesiging to happen right under the techers noses, its not hard to spot by students, so why are techers having problems. What is the point in even bring a phone to school, thers plenty of peple to talk to ther.

Alot of resonse ther why I have no intention of geting a mobile phone. A spell checker thow is very ufull. Just must use it more, but you cant even have them in schools.

Feel free to coment on this and all uther posts. Only constructive coments plesz, other coments will be removed.

George out!!

Saturday, 22 January 2011

Lets make a website: step by step.

Over the years I have gone thrue a fair few websites. Ones you get uset to how it can be done its relatively easy. Hear is a basick help post for beginers.

Step one: get an idiear.
Ther is no point in wanting to make a website if you dont know what you want with it. You need to have a topic that you are very cofident on and will know what to right about. try and find a nich that ther is not meny good sites on.

Step two: Find a url and snap it up
Onse you have your aria of expertes that your website is going to be about, you need to find an adress(URL) to put it on. To get the URL you must regster it with a hosting company like godaddy or fast host. Ones you have registerd your URL no body else can get it so you are free to beging dising your website. If you cant think of a URL try wordoid, this site helps you find one.

step three: Build your site.
The first stage in building your site is to draw out the lay out on paper so you know what you want. Ones you know what you want your site to look like you can begen to make it. Websites are 'programed' manly in HTML, if you don't know HTML have a look on W3schools, they have a grate tutorials on these subjects. Onse you know how to code, simply build your website and make shuwer it is full of usfull and well riton content

step for: find hosting
To put youre site onto the web you will need to find a hosting company that will host it for you. This meens that ther will be somwer to keep yours site and alow it to be sent out to users. godaddy or fast host for example. You will need to link your URL and your hosting together, the hosting provider will tell you how to do this.

step five: uplode the site
You need to uplode the site you have built to your host, they can tell you how to do this.

step six: keep the site up to date
It is not to good if your site never changes or gets new content added. This will keep your reeders coming back for more.

I probably havent expland this very well but this is a good spot to start to show you the hard work that gose into making a website. I will be posting a post on how to mantane your site and how you can make mony from websites soon, so dont for get to come back soon. Feel free to ask eny questons you have in the coments.

George out!

Thursday, 20 January 2011

Inside a CD drive


A while back as I had built a new computer, the old one was dismantaled completely. I still have most of the parts. This cd drive works off old IDE tecnoligy. Lets take a look inside. sory for the quality of photos.
the front of the drive

The back of the drive with the IDE and Molex power conetors

The botom of the drive, only 4 scrues and the howl thing lifts off

the top of the drive with a fansy worning and info sticker

As the bottem cover was lifted off, i saw this chip with metale exposed. It was heat sinked to the cover on the drive thrue a pese of thermale pading material

The mane controle bord of the drive.

A full over vew of the drive

the back of the mane controle bord, it had thias very nice micro conetors and ribben cables ataching it to the rest of the divice.

and finaly this is the moveing lazer head that both berns and reads the discks. If i had more time i wold have powerd it up with the cover off but i didnt.




This is a very old drive and dispist serching the web for a wile I codnt fine alot of the individual ICs.

George out.

Wednesday, 19 January 2011

A short introduction to the world of the linux terminal

This is a post on the terminal inside Linux(You should know that if you read the title). It is intended for beginners so I have tried to make it simple as possible. All the examples in this run on Ubuntu 10.04, some linux distrobutons may be difrent.

First of all, what is the Linux terminal for? well Wikipidia says that "The Linux console is intended to run usual text user interface applications, and also to show some kernel messages (considered as urgent or important)." Put simply it is a way to use the computer out side of the GUI pualy in text. In ubuntu you can find the terminal by going to "Applications" then to "Accessors " then "Terminal".

When you first start the terminal up you will be presented with a line of text in this format:
<user>@<node name>: <directory> $
To change directory you use the "cd" command followed by the directory path you want to go to for example:
cd  mydir/test

If you put in a directory that doesn't exist you will get a message like this one:
bash: cd: mydir/test: No such file or directory
to list all the con tense of the directory  you use the "ls" comand, this provides a list of all the files and folders in the curent directory.


That was a very brief introduction, i will be covering more on this later.

George out
Powered By Blogger