Monday, October 30, 2006

Programming with Logo - the basics

Let's start by programming a virtual robot. Create a detailed list of instructions for getting your robot from the parking lot to sitting down at a computer in the classroom. [source]

We're going to use StarLogo to learn about and use programming concepts and programmable modeling environments.

Cast of Characters
Turtles: The objects that you control with your programming. Each turtle has a position, heading, color and pen. You can add more specialized traits and properties.

Patches. The piece of the world in which the turtles live. Like turtles, patches can execute StarLogo commands, and they can act on turtles and patches. Patches are arranged in a grid, with each patch corresponding to a square in the Graphics area.

Observer. The observer "looks down" on the turtles and patches from a bird's eye perspective. The observer can create new turtles, and it can monitor the activity of the existing turtles and patches.

Interface
Control Center - Observer. Type commands that can be executed by the observer, eg. clearturtles (ct) and cleargraphics (cg)

Control Center - Turtle. Type commands that will affect the turtle(s), eg. forward 10 (fd 10), right 90 (rt 90)

StarLogo Window. Includes the Graphics area which is the patch where the turtles live. The white area to the left of the Graphics area is the Interface area, where you can create buttons, slides, and monitors that interact with your program.

Commands to build a square
clear-turtles or ct
Erase all turtles (observer command)

clear-graphics or cg
Erase graphics (observer command)

create-turtle number or crt
Create turtles, you can create as many turtles as you want by specifying number (observer command)

forward number or fd
Moves turtle in the direction of its heading the number of steps specified.

right degrees or rt
Rotates the turtle clockwise the number of degrees specified. Remember turning right or left is from the turtle's perspective

left degrees or lt
Rotates the turtle counterclockwise and number of degrees specified.

To create a square
In the observer command center type:
ct
crt 1

In the turtle command center type:
fd 10
rt 90
fd 10
rt 90
fd 10
rt 90
fd 10
rt 90

More turtle commands
repeat number [list of commands]
Repeats the commands in the brackets the number of times specified. For example, to make a square type:
repeat 4 [fd 10 right 90]

back number of bk
Moves the turtle in the opposite direction it is heading the number of steps specified.

pendown or pd
Causes the turtle to draw when it moves.

penup or pu
Causes the turtle to move without drawing.

setcolor colorname or setc
Sets turtle(s) color to colorname.

Challenge: Create a green square

complete command list

Friday, October 06, 2006

network admin resources

http://www.tomsnetworking.com/2004/04/14/how_to_wds_bridge/page9.html

Monday, October 02, 2006

Create a brochure

You'll be creating a brochure for Maria's. Things to think about:

layout
The first thing you will do is use pencil and paper to roughly sketch the layout of your brochure. Identify where you want to place images & text. Identify the content you will need to create to go into the brochure:
- front cover: visually appealing for your target audience, usually includes logo & tagline
- inside front panel: summarize why a customer should choose your store
- inside three panel spread: summarize info about your store, provide key product info
- back cover: contact info

images
The use of images is important in a brochure. Think about using a store image, key product images, & clipart. Balance the use of images and text. Ensure that you do not use copyright protected images.

tag line
This is an easy to remember slogan that sums up the store philosophy. Examples of tag lines include: just do it (Nike), must see TV (NBC), always low prices (WalMart), when it absolutely has to get there overnight (FedEx)

fonts
It is important to use fonts consistently in a brochure. Probably no more than 3 fonts should be used and you'll want to ensure that they are legible in print.

Resources:

tri-fold brochure templates
trifold brochure writing tips
free stock images