Wednesday, December 15, 2004

How Halo2 Works: XBox Live and the Network Model

I just read a really interesting article about how the Halo 2 network model works. Man oh man. Those dudes are so impressive. Anyway, its over at How Stuff Works if you're interested.

http://stuffo.howstuffworks.com/halo-network.htm

Thursday, December 09, 2004

How the Web Works: HTML for the Blogger (Part 1)

Ok. All you bloggers out there, this one's for you. I'm going to assume that if you're reading this, you don't know HTML at all. The point of this article is to give you just enough to really put you in control of your blog posts. Since applications like blogger have come around, there are a lot of web publishers out there who are not geek people. Blogger makes it possible to have your own website without needing to be a geek. But geek or no, at the end of the day, that message you put up on your website ends up as HTML. Instead of being afraid of that, let's use it to our advantage.

Tags

Ok. We've talked a little bit about tags before. Let's talk about how to use them. We'll start with some easy ones. The idea behind HTML is to tell the browser how to draw your data. The simplest form of that is text formatting. If we want some part of our sentence to be bold, all we have to do is surround that part of the text with the bold tags: <b> and </b>.

Tags are always surrounded in <these>. Also, notice that the second tag is just the same with an added /. That basically means end. so:
This is some <b>bold text</b>.
means
This is some [Start bold text here]bold text[End bold text here].

Ok, so there's the bold tag. What other tags are there? There are a couple other really simple ones that you may be interested in.
  • <b>bold</b>
  • <i>italic</i>
  • <u>underline</u>

Attributes

Those ones are ok. But it does get just a bit more complicated than that if you want to do more. One more thing we have to talk about is attributes. An attribute is just a further description of a tag. For example:
This is <font >some red text</font>.

See the attribute? Yep, 'color="red"'. Makes sense, don't it. Let's look at a couple more uses here.
  • <A href="http://www.spam.com">Links</a>
  • <IMG src="http://photos2.flickr.com/1682253_d8bcd882c2_m.jpg">
  • <font >font colors</font>
Notice the image (IMG) tag does not have an end tag. There are some tags that don't have end tags simply because they aren't really modifying something else. All the other tags I've mentioned here, modify content, specifically text. An image is content, so there's not really much point in trying to wrap an image around something else. You can, however, wrap tags around other tags. Let's say, for instance you want to make an image a link.
<a href="http://www.spam.com"><img src="http://photos2.flickr.com/1682253_d8bcd882c2_m.jpg"></a>


If you want to test out your own html before publishing it to the world, you can. All you have to do is follow these steps:
  1. Using notepad or another plain text editor, create a new text file. Plunk your code right in there.
  2. Save that file as "test.htm" or "anythingelse.htm", for that matter.
  3. Drag and drop that file right into any open web browser window.
  4. You can keep making changes just by editing the file and saving it, then clicking refresh in the browser.
As always, questions and/or comments are requested and/or appreciated. Thanks.

Wednesday, December 01, 2004

How the Web Works: What the Crap is HTML

Ok, we've talked about the browser, and we've talked about the server. Let's now talk about the content. What exactly is HTML? Some people think that writing HTML is "programming". I guess you could call it that, but HTML really is not a programming language. HTML stands for Hypertext Markup Language. Well then, what is a markup language. Let's take a few minutes to define a few terms.



Plain Text
This is just plain ol', unformatted text. Plain text contains no formatting information whatsoever. Microsoft word documents are not plain text. Web pages are (usually) not plain text. Here's an example of plain text:

Tomorrow, I'm going to go to the store. I'm going to buy some candy, some eggs, and Halo 2.



Markup Language: A markup language is a document format that contains formatting information. You can use the same tools to create plain text and markup language document. While this document format does contain stuff other than just text, it is still a document format. Here is an example:

In your browser, you would see:
Tomorrow, I'm going to go to the store. I'm going to buy some candy, some eggs, and Halo 2.

Here is the actual document:
<font color="red">Tomorrow</font>, I'm going to go to the <a href="http://www.amazon.com/">store</a>. I'm going to guy some candy, some eggs, and <font size="+2"><b>Halo 2</b></font>.



So, there you have it. Notice the diffrerences between plain text and markup text. They both contain the same two sentences, but the markup one has some formatting information and one link. Let's talk a bit about that second version of that html text. All that extra crap you see in there is the "markup", as in mark up your document with formatting information. Your browser reads all that and figures out how to draw the document appropriately.

Tune in next time where I will explain you all you readers out there how to use this stuff on your own sites.