AdamB

Sydney, New South Wales, AUSTRALIA


Joined April 4th 2006

Number of Posts:
127

Number of Comments:
52

Karma:
2



About Me
No details about me yet :(

Tags & Posts

Bookmark Tags



Popular Tags

Blogs

AdamB's Blogs

0 Vote(s)
0 Comment(s)
0 Post(s)
0 Vote(s)
0 Comment(s)
0 Post(s)

I mentor these bloggers

Learn more about the Orble Mentoring Program.


I do not mentor any bloggers.

Recent Posts

Html tute: Rounding it off

August 6th 2006 00:17
Well this post is going to finish off the basic html section of these tutorials. After that there are another four or five advanced html tutorials, and then I’m going to bring it all together and actually create a webpage for a local cafĂ©.

For now, though, lets deal with:

Metatags

Metatags are designed to help search engines interact with your web page. These are placed in the <head> section of the web page. There are two main ones we will discuss:

<meta name=&#8220escription&#8221; content=&#8221;your page description&#8221;>

Many search engines use this metatag as their description of your website. They will normally only display 100 or 200 words, so it is good to keep this short.

<meta name=&#8220;keywords&#8221; content=&#8220;keyword1 keyword2 keyword3&#8221;>

The keyword metatag is used by some search engines to work out which sites are relevant to which search. Be warned, some search engines penalize you for having too many keywords.

And now, on to comments:

Comments

Comments are pieces of html code that can be added to your webpage in order to help you, or someone else, understand the code. They wont appear on the page itself, and wont affect it at all, but can be seen when you look at the source. They take the following form:

<!-Your comment here-->

And for the final part of this post, I will deal with:

Escape Codes

There are some characters that can&#8217;t be typed directly into html. Instead you have to use their escape code. These take the form of &code;. So, for example, to use a quotation mark you would type:

&quot;

For the copyright sign you would type

&copy;

There are lists of all the escape characters available on the internet.

Well that&#8217;s it for today. Next week we start the advanced course.


Adam
158
Vote
   


C tute 2: variables

July 31st 2006 03:31
Today's lesson is going to introduce variables, which are used to store information within a program. At the moment we will explore three main forms: int, float and char.

Int stands for integer, which basically means any number without decimal points.

Float stands for a floating point number, which basically means a number with decimals.

Char stands for a single character.

Variables can be named anything, but cannot begin with numbers, or be a c keyword.

Defining variables

A variable must be defined before it is used, and this is done as follows:

int variablename;

Multiple variables can be defined at once:

int v1, v2, v3;

It is also possible to give a variable a value at the same time as defining it.

int v1 = 1;

The system for defining variables is the same with other variable types.

Integers can also be defined with other words, like short, long, unsigned short and unsigned long.

Short and long define the number of bytes used to store the integer and signed and unsigned decide whether positive or negative numbers can be stores.

So

unsigned short int v1;

Would define v1 as a short integer that cannot store signs.

Custom data types

You can also define your own data types. For example, rather than writing

unsigned short int v1;

You can define a data type that has these features with the typedef command, which takes the following form:

typedef datatype dataname;

So, in this case it would be:

typedef unsigned short int customtype;

and then to define v1 we would write

customtype v1;

We will discuss custom data types more later, but that is it for today.

Adam
92
Vote
   


Html tute 6: Frames

July 31st 2006 01:05
Today I'm going to deal with frames. Frames are a controversial part of HTML web design, with many people feeling that they aren't a good design mechanism. However, I'll show you how to use them and then you can judge for yourself.

Frames divide the page into different sections. One major use for this is allowing you to have a menu down the left hand side and clicking on the options changes what is on the right hand side.

The first tag I will introduce is the frameset tag, which takes the following form.

<frameset division="something%, something%>

If you want to divide the page into two columns, each of which takes up 50% of the page you would write:

<frameset cols="50%,50%>

On the other hand if you wanted two rows you would type:

<frameset rows="50%,50%>

Either of these pieces of code will create two frames, but it wont add any content to either.

To add content to a frameset you use the: <frame src> tag. Your first use of this tag will define the contents of the first frame, and the second use will define the contents of the second frame (and so on).

This tag takes the following form:

<frame src="webpage.html">

As always, if the frames contents is in the same directory as webpage then you can just write the webpage name, but if it isn't you have to provide the whole URL.

So, lets create a new website, which we will call frames.html

Add the following code to it:

<html>
<head>
<title>Frames demonstration</title>
</head>
<frameset cols="25%,75%">
<frame src="lesson3.html">
<frame src="lesson4.html">
</frameset>
</html>

Note that the frameset tag is also closed by the </frameset> tag at the end.

Now, the next thing we'll do is make it so that when you click on a link in the left frame it opens it in the right one.

To do this we first need to give our right hand frame a name. So lets call it display. We do this with the following code:

<frame src="lesson4.html" name="display">

Now, we need to open lesson3.html and change the code below:

<a href="lesson1.html">This is the first lesson we learned</a><br>
<a href="lesson2.html">This is the second lesson we learned</a><br>
<a href="http://www.google.com">This is a link to Google</a>
<br>
<a href="extra.html">This links to the extra website</a><br>
<a href="extra.html#second">This takes us straight to the second part of extra</a>

To each link here we add the following code:

target="targetframe"

So the first link would become:

<a href="lesson1.html" target="display">This is the first lesson we learned</a><br>

Do this for all the links.

So lesson3.html would now look like:

<html>
<head>
<title>Lesson 3</title>
<head>
<body>
<a href="lesson1.html" target="display">>This is the first lesson we learned</a><br>
<a href="lesson2.html" target="display">>This is the second lesson we learned</a><br>
<a href=http://www.google.com target="display">>This is a link to Google</a>
<br>
<a href="extra.html" target="display">>This links to the extra website</a><br>
<a href="extra.html#second" target="display">>This takes us straight to the second part of extra</a>
</body>
</html>

Now, going back to our frames page we will try a few more things. Firstly, the use of the <noframes> tag.

This tag takes the following form.

<noframes>
<body>Message<body>
</noframes>

The purpose of this tag is to provide an alternative page for people whose browsers do not display frames. So, we will add:

<noframes>
<body>This webpage requires frames<body>
</noframes>

To our frames page. So, in its final form our frames page should look as follows:

<html>
<head>
<title>Frames demonstration</title>
</head>
<frameset cols="25%,75%">
<frame src="lesson3.html">
<frame src="lesson4.html" name="display">
<noframes>
<body>This webpage requires frames<body>
</noframes>
</frameset>
</html>

Hope you found this useful.

Adam
155
Vote
   


Kant

July 27th 2006 05:35
This week I will post 4 posts, each on one 19th century philosopher. Today's post will be about Immanuel Kant, one of the most famous philosophers from this period.

Some of Kant's major philosophical treatise dealt with morals. Kant believed that rationality was the key law of morals, and that all morals could be defined by reason. He believed that we should evaluate actions by thinking whether everything acting this way would lead to a contradiction.

[ Click here to read more ]
97
Vote
   


C tute 1: hello world

July 27th 2006 03:31
Today I am going to do a brief introduction to the C programming language. To complete this lesson you will need a compiler. I will be using bloodshed dev (http://www.download.com/Bloodshed-Dev-C-/3000-2069_4-10019857.html) and the tutorials will assume you are too. This is going to teach you how to write a simple hello world program.

Getting started

[ Click here to read more ]
94
Vote
   


Html tute 5: page backgrounds

July 27th 2006 01:05
Today I'm going to deal with website backgrounds and at this point I am going to make a warning. This basic html faq is aiming to teach you how to put up a very basic website. However, that means it ignores some of the recommended ways to do things for the sake of simplicity. In the intermediate section of these tutes style sheets are used, and they are better then the following background tags.

Unlike previous lessons we wont be creating a new website this week. Instead, I suggest you go back to previous weeks and play with their background colours or add background pictures.

[ Click here to read more ]
154
Vote
   


Today's post will be about the possible applications of chaos theory.

Chaos theory has obvious applications in the world, as most real world situations are chaotic, with none chaotic theories of physics normally approximating the real situations. Examples of where it is useful include biological systems, physical systems and economics.

[ Click here to read more ]
102
Vote
   


Today's post will deal with the history of chaos theory. It is the fourth part of my bluffer's guide to chaos theory.

In the first post we discussed how Edward Lorentz helped form the field, by showing that small changes in initial conditions can have large impacts. This idea, which has been called the butterfly affect, was a major change of viewpoint for many in the scientific community.

[ Click here to read more ]
93
Vote
   


A history of western philosophy 7

July 25th 2006 05:17

A profile of some 18th century philosophers follows:

[ Click here to read more ]
96
Vote
   


Today's post is going to be about fractals, which are an important aspect of chaos theory.

A fractal is technically defined as an object whose Hausdorff-Besicovitch dimension is greater than its topological dimension, but a common definition is a shape that appears similar at large levels of magnification.

[ Click here to read more ]
95
Vote
   


 

Recent Comments

Comment by AdamB
on A history of western philosophy 4

July 21st 2006 23:47
A, an attack on my credibility. I'd better deny it. Actually, there are two philosophers with similar names.

Not really, you're right, I misspelled it.

Adam

Comment by AdamB
on Navigation tools

June 3rd 2006 04:46
Hey Jon,

I've been thinking about this. Couldn't you just run it as a framed site.

So if you visited www.history6.com (or whatever domain) it would display just the same as normal, but the orble site itself would have frames and if you clicked logon from a blog it would take you to this framed site.

It is no problem that the individual domains are the same, because nvigation is fine for readers, it's only for bloggers (ie, people who would sign in) that you would use a menu.

So the orble site would look like this.

||||||||||||||||||||||||||||||||||||||||||||||||

Orble Blogging Network (Prettied up)

Sign in | register

-------------------------------------------

main site here

||||||||||||||||||||||||||||||||||||||||||||||||

then if you signed in it would become

||||||||||||||||||||||||||||||||||||||||||||||||

Orble Blogging Network (Prettied up)

My profile | My blogs | Friends Blogs | community blogs

-------------------------------------------

main site here

||||||||||||||||||||||||||||||||||||||||||||||||

or whatever options you wanted. These could be drop down menu's.

Then, even if you navigated to an external blog (like www.history6.com) it could just be opened in the bottom frame. It would all function almost exactly the same but the menu would be retained across domains.

I realise this doesn't solve the lack of time to implement this problem, but I thought I'd send the suggestion along anyway.

Adam

Comment by AdamB
on Why did World War I begin?

May 30th 2006 23:14
Yeah, there were heaps of other reasons, I guess I just tried to summarise it a bit.

What was the one you were thinking of?

Adam

Comment by AdamB
on Solar System Fun Facts: part 1

May 23rd 2006 03:12
Yeah...it does seem more boring, but at the same time it can be very interesting...just in a different way.

Comment by AdamB
on Fun Facts on Japan

May 21st 2006 06:46
Well according to:

http://www.abc.net.au/science/news/health/HealthRepublish_1004497.htm

"The Mandarin, Cantonese and Japanese word for "four" sounds very like the word for "death"."

So it sounds like both are true. At least if you consider that source to be reliable.

Adam

Comment by AdamB
on What was Tiananmen Square?

May 19th 2006 23:38
Well no one is entirely sure who this man was or what happened to him (although some people claim to be sure). However, there is a high probability that he was executed as most the people who have looked into it came to that conclusion.

However, they all give substaintially different accounts of how it happened...so it's all a bit uncertain.

At least that is my understanding of it.

Adam

Comment by AdamB
on Guy Fawkes and the Gunpower plot

May 16th 2006 07:34
They celebrate him failing...although I think most people just celebrate being able to light a fire.



Adam

Comment by AdamB
on A Biography of Hitler: Part 1

May 9th 2006 08:22
Heh...the things I don't (but should) know. Thankyou for the comment.

Adam

Comment by AdamB
on Three Facts: Science and Space

May 5th 2006 00:01
I'm not sure what the deal is exactly, but I think all planets have a magnetic field, but Uranus's is special because its tilted from its axis of rotation.

Everything I've read suggests this is probably because of motion at a shallow level on the planet.

But then...it is possible I'm wrong...

Adam

Comment by AdamB
on What was the Chinese Civil War

May 4th 2006 23:58
I feel like the catastrophic end will probably be for Taiwan . Although of course that could be followed by US reprisals...

Adan