<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="description" content="_your description goes here_">
<meta name="keywords" content="_your,keywords,goes,here_">
<meta name="author" content="Charles B. Swiger  / Original design: Andreas Viklund - http://andreasviklund.com/">
<link rel="stylesheet" type="text/css" href="andreas01.css" media="screen" title="andreas01 (screen)">
<link rel="stylesheet" type="text/css" href="print.css" media="print">
<title>Database Driven Web Page Demo</title>
</head>

<body><div id="wrap">

<div id="header">
<h1>PHP5 Database Access Demo</h1>
<p><strong>"I can see you fly. You are an angel with wings, high above the ground!"</strong><br />(traditional haiku poem)</p>
</div>

<img id="frontphoto" src="front.jpg" width="760" height="175" alt="" />

<div id="avmenu">
<h2 class="hide">Menu:</h2>

<?php 
require 'menu.php'; print_menu();
?>

<div class="announce">
<h3>Latest news:</h3>
<p><strong>June 25, 2005:</strong><br />
New design and layout finished and uploaded to OSWD. Since it is my first contribution to this site, it has been given the title "andreas01".</p>
<p class="textright"><a href="index.php">Main Page...</a></p>
</div>

</div>

<div id="extras">
<h3>More info:</h3>
<p>This is the third column, which can be used in many different ways. For example, it can be used for comments, site news, external links, ads or for more navigation links. It is all up to you!</p>

<h3>Links:</h3>
<p>- <a href="http://andreasviklund.com/">My website</a><br />
- <a href="http://oswd.org/">OSWD.org</a><br />
- <a href="http://validator.w3.org/check/referer">Valid HTML</a><br />
- <a href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS</a></p>

<p class="small">Version: 1.0<br />(July 25, 2005)</p>
</div>
<div id="content">
<hr>
<br />
<a href="https://agent.electricimp.com/jKJ5EV35C7vv?off">off</a><br />
<a href="https://agent.electricimp.com/jKJ5EV35C7vv?glow">glow</a><br />
<a href="https://agent.electricimp.com/jKJ5EV35C7vv?looper">looper</a><br />
<br />
<a href="furnace.php">Coopers Rock hike</a>
<br />
<hr>
<br />
<h2>Blender Demos:</h2>
<a href="rubber-sheet_mirror-balls_msmpeg.avi">Mirror balls bouncing on a rubber sheet/trampoline</a> (60sec, 15MB)
<br /><br />
<a href="ring_with_caustic_1.jpg">Ring with Yafray rendered caustic</a><br />
Compare that with a real <a href="http://upload.wikimedia.org/wikipedia/commons/5/51/Tungsten_ring-cropbright.jpg">tungsten ring</a>
<br /><br />
One of the better demos, everything turned out right - the shape of the bowl, the transparency/index-of-refraction, fluid viscosity/speed: <a href="mixing_bowl_1.avi">mixing bowl</a> (12sec, 2.2MB)
<br /><br />
Dish fills with water, then a <a href="waterdish_rotor_2_msmpeg.avi">rotor swirls it about</a> (12sec, 2MB)
<br /><br />
Small basin fills with water, then an <a href="washer_1_msmpeg.avi">agitator splashes</a> about (20sec, 6.5MB)
<br /><br />
Transparent <a href="transparent_tub-fill_4_msmpeg.avi">plexiglass looking container</a> fills with liquid then an obstacle descends and splashes about (12sec, 1.8MB)
<br />
<br />
Gold liquid flowing through a <a href="spiral_tube_3_test_1_msmpeg.avi">spiral pipe</a> (12sec, 1.8MB)
<br />
<br />
Water filling a <a href="box_and_pipe_fluid_3_msmpeg.avi">box with drainpipe</a> (18sec, 2.5MB)
<br />
<br />
Experimenting with <a href="radiosity_exp_1_msmpeg.avi">radiosity</a>, transparency and mirrors with ray tracing (6sec, .5MB)
<br />
<br />
First, simple classic rigid body test of <a href="dominoes_1.avi">dominoes</a> (3sec, 240k)
<br />
<br />
First test of water flowing around a deformed <a href="River_1_msmpeg.avi">mesh</a> (12sec, 2.4MB).
<br /><br />
Gold liquid nicely splashing around a <a href="Saucer_1a_msmpeg.avi">Saucer</a> (12sec, 5MB).
<br /><br />
Gold liquid flowing into a <a href="watercup_1c_msmpeg.avi">cup with holes</a> (36sec, 3.8MB). It took a full 24 hours to bake 1080 frames of the fluid mesh at a resolution of 175 on a 2Ghz Opteron using 64bit Blender.
<br /><br />
This was a Chinese character but converting from a mesh to a fluid lost a lot of detail:
<a href="Fluid_Character_1_msmpeg_1.avi">Character in fluid</a> (9sec, 1.4MB).
<br /><br />
<a href="Chinese_Char_3_msmpeg.avi">Experimenting with Chinese characters</a> (.5MB)<br />
<a href="Chinese_Char_4a_msmpeg.avi">Flowering</a> (2MB)<br />
<br />
<hr>
<br />
<a href="Demo1.avi">Demo1.avi</a> (8MB)<br />
<hr>
<h2>Blender Fluid Demos:</h2><br />
<a href="Demo2.avi">Demo2.avi</a> (4MB)<br />
<hr>
<h2>Root Raised Cosine Filter</h2>
<br />
Rather technical demo, in Digital Signal Processing, of a <a href="http://en.wikipedia.org/wiki/Raised-cosine_filter">Root Raised Cosine Filter</a> - showing (the red strip) very limited bandwidth for various square wave inputs.
<br /><br />
<a href="rrcr_2pts.avi">Root Raised Cosine Filter</a>
<hr>
Older demo from long ago
<br /><br />
<a href="theatre_e1.m1v">Theatre</a>
<hr>
<h2>Selected Stock Quotes</h2>
<?php 
$stocks[] = 'msft';
$stocks[] = 'rht';
$stocks[] = 'java';

foreach ( $stocks as $lookup ) {

  $req = "http://finance.yahoo.com/d/quotes.csv?s=$lookup&f=sl1d1t1c1n";

  $quote = file_get_contents($req);

# duh, just use split - altho this way takes care of the quotes(") in the quote
#  for ( $i=0; $i<strlen($quote); $i++ ) {
#    if ( $quote[$i] == ',' ) {
#      $comma[] = $i;
#      }
#    }

#  $symbol = substr($quote,1,$comma[0]-2);
#  $price = substr($quote,$comma[0]+1,$comma[1]-$comma[0]-1);
#  $stock_date = substr($quote,$comma[1]+2,$comma[2]-$comma[1]-3);
#  $stock_time = substr($quote,$comma[2]+2,$comma[3]-$comma[2]-3);
#  $change = substr($quote,$comma[3]+1,$comma[4]-$comma[3]-1);

  list($symbol,$price,$stock_date,$stock_time,$change) = split(",",$quote);

  $symbol = str_replace('"','',$symbol);
  $price = str_replace('"','',$price);
  $stock_date = str_replace('"','',$stock_date);
  $stock_time = str_replace('"','',$stock_time);
  $change = str_replace('"','',$change);

  print 'On '.$stock_date.' at '.$stock_time.', '.$symbol.' traded at '.$price.', '.$change."<br />";

  unset($comma);

}
?>

<p><img src="test.jpg" class="right" height="100" width="125"  alt="" /></p>
</div>
<div id="yo-button"></div>
<div id="footer">
Copyright &copy; 2005 Charles B. Swiger. Design by <a href="http://andreasviklund.com">Andreas Viklund</a>.

<?php
echo '<br /><a href="show_php.php?showpage='.$_SERVER[PHP_SELF].'" target="phppage">Show PHP</a>';
?>
<br /><a href="http://www.hostmonster.com/cgi-bin/cplogin">hostmonster</a>
</div>

</div>
<script type="text/javascript">
	var _yoData = {
		"username": "RPI3",
		"trigger": "When something happens"
	};
	var s = document.createElement("script");
	s.type = "text/javascript";
	s.src = "//yoapp.s3.amazonaws.com/js/yo-button.js";
	(document.head || document.getElementsByTagName("head")[0]).appendChild(s);
</script>
</body>
</html>