Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initial pages

  • Loading branch information...
commit 28fd16232ae9d613ca95ae027ed7f8f3a1ddbfae 1 parent 2fd7b03
@graingert authored
Showing with 4,496 additions and 0 deletions.
  1. +161 −0 _layouts/default.html
  2. +118 −0 _posts/cadet.html
  3. +17 −0 _posts/home.html
  4. +25 −0 _posts/ibmwe.html
  5. +4 −0 _posts/iceskate.html
  6. +6 −0 _posts/photos.html
  7. +10 −0 _posts/videoTest.html
  8. BIN  applets/CW1.jar
  9. BIN  applets/CW1/CW1.jar
  10. +24 −0 applets/CW1/CW1.jnlp
  11. 0  applets/CW1/CW1.jnlp~
  12. BIN  applets/CW2.7z
  13. BIN  applets/CW2_reversi.jar
  14. +31 −0 applets/ScrollText/ScrollText.pde
  15. BIN  applets/ScrollText/applet/ScrollText.jar
  16. +52 −0 applets/ScrollText/applet/ScrollText.java
  17. +31 −0 applets/ScrollText/applet/ScrollText.pde
  18. +104 −0 applets/ScrollText/applet/index.html
  19. BIN  applets/ScrollText/applet/loading.gif
  20. BIN  applets/ScrollText/data/Eureka-90.vlw
  21. +104 −0 applets/pixel_graph/applet/index.html
  22. BIN  applets/pixel_graph/applet/loading.gif
  23. BIN  applets/pixel_graph/applet/pixel_graph.jar
  24. +43 −0 applets/pixel_graph/applet/pixel_graph.java
  25. +22 −0 applets/pixel_graph/applet/pixel_graph.pde
  26. BIN  applets/pixel_graph/data/Eureka-90.vlw
  27. +22 −0 applets/pixel_graph/pixel_graph.pde
  28. +42 −0 applets/spiroGraph/index.html
  29. BIN  applets/spiroGraph/spiroGraph.class
  30. BIN  applets/spiroGraph/spiroGraph.class.bak
  31. +53 −0 applets/spiroGraph/spiroGraph.java
  32. +42 −0 applets/spiroGraph2/index.html
  33. BIN  applets/spiroGraph2/spiroGraph.class
  34. +7 −0 bash.exe.stackdump
  35. BIN  comp1004/GraphicalFramework.src.jar
  36. BIN  comp2004/.DS_Store
  37. +5 −0 comp2004/comp2004tag/.buildpath
  38. +22 −0 comp2004/comp2004tag/.project
  39. +62 −0 comp2004/comp2004tag/.settings/.svn/entries
  40. +5 −0 comp2004/comp2004tag/.settings/.svn/prop-base/org.eclipse.php.core.prefs.svn-base
  41. +3 −0  comp2004/comp2004tag/.settings/.svn/text-base/org.eclipse.php.core.prefs.svn-base
  42. +3 −0  comp2004/comp2004tag/.settings/org.eclipse.php.core.prefs
  43. +680 −0 comp2004/comp2004tag/.svn/entries
  44. +5 −0 comp2004/comp2004tag/.svn/prop-base/.project.svn-base
  45. +5 −0 comp2004/comp2004tag/.svn/prop-base/ballroom_dancing.jpg.svn-base
  46. +5 −0 comp2004/comp2004tag/.svn/text-base/.buildpath.svn-base
  47. +22 −0 comp2004/comp2004tag/.svn/text-base/.project.svn-base
  48. +7 −0 comp2004/comp2004tag/.svn/text-base/COMP2004 Dancing School.html.svn-base
  49. +12 −0 comp2004/comp2004tag/.svn/text-base/Collect Payment.html.svn-base
  50. +23 −0 comp2004/comp2004tag/.svn/text-base/Drop Student.html.svn-base
  51. +34 −0 comp2004/comp2004tag/.svn/text-base/Enrol.html.svn-base
  52. +25 −0 comp2004/comp2004tag/.svn/text-base/Exam Data.html.svn-base
  53. +12 −0 comp2004/comp2004tag/.svn/text-base/Student Record.html.svn-base
  54. BIN  comp2004/comp2004tag/.svn/text-base/ballroom_dancing.jpg.svn-base
  55. +23 −0 comp2004/comp2004tag/.svn/text-base/dropS.php.svn-base
  56. +34 −0 comp2004/comp2004tag/.svn/text-base/enrol.php.svn-base
  57. +29 −0 comp2004/comp2004tag/.svn/text-base/examp.php.svn-base
  58. +266 −0 comp2004/comp2004tag/.svn/text-base/install.sql.svn-base
  59. +14 −0 comp2004/comp2004tag/.svn/text-base/list students.html.svn-base
  60. +15 −0 comp2004/comp2004tag/.svn/text-base/listStudents.php.svn-base
  61. +39 −0 comp2004/comp2004tag/.svn/text-base/payment.php.svn-base
  62. +26 −0 comp2004/comp2004tag/.svn/text-base/records.php.svn-base
  63. +56 −0 comp2004/comp2004tag/.svn/text-base/storedproc.sql.svn-base
  64. +3 −0  comp2004/comp2004tag/.svn/text-base/views.sql.svn-base
  65. +7 −0 comp2004/comp2004tag/COMP2004 Dancing School.html
  66. +12 −0 comp2004/comp2004tag/Collect Payment.html
  67. +23 −0 comp2004/comp2004tag/Drop Student.html
  68. +34 −0 comp2004/comp2004tag/Enrol.html
  69. +25 −0 comp2004/comp2004tag/Exam Data.html
  70. +12 −0 comp2004/comp2004tag/Student Record.html
  71. BIN  comp2004/comp2004tag/ballroom_dancing.jpg
  72. +23 −0 comp2004/comp2004tag/dropS.php
  73. +34 −0 comp2004/comp2004tag/enrol.php
  74. +29 −0 comp2004/comp2004tag/examp.php
  75. +62 −0 comp2004/comp2004tag/inc/.svn/entries
  76. +399 −0 comp2004/comp2004tag/inc/.svn/text-base/common_functions.inc.php.svn-base
  77. +399 −0 comp2004/comp2004tag/inc/common_functions.inc.php
  78. +77 −0 comp2004/comp2004tag/inc/common_functions.inc.php~
  79. +266 −0 comp2004/comp2004tag/install.sql
  80. +14 −0 comp2004/comp2004tag/list students.html
  81. +15 −0 comp2004/comp2004tag/listStudents.php
  82. +6 −0 comp2004/comp2004tag/listStudents.php~
  83. +39 −0 comp2004/comp2004tag/payment.php
  84. +26 −0 comp2004/comp2004tag/records.php
  85. +4 −0 comp2004/comp2004tag/records.php~
  86. +56 −0 comp2004/comp2004tag/storedproc.sql
  87. +3 −0  comp2004/comp2004tag/views.sql
  88. +66 −0 comp2012/SaveFormat4.xsd
  89. +59 −0 comp2040/index.php.txt
  90. +54 −0 comp2040/logon.c.txt
  91. BIN  favicon.ico
  92. +24 −0 foaf.rdf
  93. +360 −0 images/CongestionCharging.svg
  94. BIN  images/Java_logo.png
  95. BIN  images/facebook-logo.png
  96. BIN  images/goog_mail_logo.png
  97. BIN  images/lastfm_red_small.gif
  98. BIN  images/openID.png
  99. BIN  images/twitter-logo.png
  100. BIN  images/valid-hcd100 (2).png
  101. BIN  images/valid-hcd100.png_old
  102. BIN  images/valid-hcd100.xcf
  103. BIN  images/valid-hcd100_2.png
  104. BIN  images/valid-html401.png
  105. BIN  images/validatethis.gif
  106. +15 −0 index.html
View
161 _layouts/default.html
@@ -0,0 +1,161 @@
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB">
+<head>
+ <title>{{page.title}}</title>
+ <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
+ <meta name="description" content="Thomas Grainger" />
+ <meta name="keywords" content="Thomas, Grainger, Thomas
+Grainger, tag1g09, ECS undergraduate, student robotics" />
+ <link rel="meta" type="application/rdf+xml" title="FOAF"
+href="/foaf.rdf" />
+<meta name="robots" content="index, follow"/>
+ <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
+</head>
+<body>
+<heading>
+ <h1>
+ <a
+href="http://www.gravatar.com/avatar/469aac167e5b731ad27a12213702e5a0?s=800&r=g">
+ <img id="displaypic" src="http://www.gravatar.com/avatar/469aac167e5b731ad27a12213702e5a0?s=100&r=g" alt="A Gravatar of tag1g09" />
+ </a>
+ {{page.title}}
+ </h1>
+</heading>
+<article>
+{{ content }}
+</article>
+<nav>
+ <h3>Navigate</h3>
+<ul id="navigation">
+ <li>
+ <a href="index.php">
+ Home
+ </a>
+ </li>
+ <li>
+ <a href="index.php?page=cadet">
+ Space Cadet Challenges
+ </a>
+ </li>
+ <li>
+ <a href="index.php?page=photos">
+ Photos
+ </a>
+ </li>
+ <li>
+ <a href="index.php?page=ibmwe">
+ IBM Work Experience
+ </a>
+ </li>
+ <!--<li>
+ <a href="index.php?page=iceskate">
+ Ice Skating
+ </a>
+ </li> -->
+ <li>
+ <a href="http://docs.google.com/View?id=df4md78j_248d2cnpkck">
+ Curriculum Vitae
+ </a>
+ <a href="http://docs.google.com/MiscCommands?command=saveasdoc&exportformat=pdf&docID=0AUkyuqffaYIQZGY0bWQ3OGpfMjQ4ZDJjbnBrY2s">
+ [PDF]
+ </a>
+ </li>
+ </ul>
+ <h3>Tutor Group Members</h3>
+ <ul id="tutor">
+ <li>
+ <a href="/kst">
+ Dr Ken S Thomas
+ </a>
+ </li>
+ <li>
+ <a href="/tag1g09">
+ Thomas Grainger
+ </a>
+ </li>
+ <li>
+ <a href="/sm34g09">
+ Simon May
+ </a>
+ </li>
+ <li>
+ <a href="/ase1g08">
+ Alexandra Elliot
+ </a>
+ </li>
+ <li>
+ <a href="/cs21g09">
+ Christian Severi
+ </a>
+ </li>
+ <li>
+ <a href="/ms28g09">
+ Mark Salvin
+ </a>
+ </li>
+ <li>
+ <a href="/adr1g09">
+ Alexander Rotsides
+ </a>
+ </li>
+ <li>
+ <a href="/rsws1g09">
+ Robert Streeting
+ </a>
+ </li>
+ </ul>
+ <img src="valid-hcd100_2.png" alt="validated by hcd"/>
+</nav>
+<section id="contact">
+ <heading>
+ <h3>Contact Me</h3>
+ By clicking on any of the following images
+ </heading>
+ <ul class="cdetails">
+ <li>
+ <a href="http://mailhide.recaptcha.net/d?k=01K7rdXn6YXK9fZb8NX6A0kQ==&amp;c=Fvru4FKJ-idHuSJ05Ia5Wt_Gz9lxuA2ZZX-kh7z0IDY=" onclick="window.open('http://mailhide.recaptcha.net/d?k=01K7rdXn6YXK9fZb8NX6A0kQ==&amp;c=Fvru4FKJ-idHuSJ05Ia5Wt_Gz9lxuA2ZZX-kh7z0IDY=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Reveal this e-mail address">
+ <img src="images/goog_mail_logo.png" alt="Reveal this e-mail address"
+ </a>
+ </li>
+ <li>
+ <iframe src="http://www.google.com/talk/service/badge/Show?tk=z01q6amlqira8kkj2ori7517kp2pf7km064lmi1dvvir0jptd0fskdnrud9rn7figbd1ejmfp3ca8fbopo0u7b66ia99hc0lmjh95p06r38o1b8ef0acmp6cnkrf3t0uuudbs4ajgvcc71itep7nhpmtdhi1fl77ki6aetrh0&amp;w=159&amp;h=36" frameborder="0" allowtransparency="true" width="159" height="36"></iframe>
+ </li>
+
+ <li>
+ <a href="http://en-gb.facebook.com/graingert" title="Thomas Grainger" target="_TOP">
+ <img src="images/facebook-logo.png" style="border: 0px;" alt="FaceBook:Thomas Grainger" />
+ </a>
+ </li>
+ <li>
+ <a href="http://www.last.fm/user/graingert" >
+ <img src="images/lastfm_red_small.gif" alt="last.fm"/>
+ </a>
+ </li>
+ <li>
+ <a href="http://twitter.com/graingert" >
+ <img src="images/twitter-logo.png" alt="Twitter"/>
+ </a>
+ </li>
+ </ul>
+ <h3>My Societies Pages</h3>
+ <ul class ="cdetails">
+ <li>
+ <a href="http://atheistsoc.susu.org/">
+ <img width="16" height="16" src="http://pageicons.appspot.com/favicons?url=atheistsoc.susu.org" alt="Atheist Society Favicon"/>
+ Atheist Society
+ </a>
+ </li>
+ <li>
+ <a href="http://www.sown.org.uk/">
+ <img width="16" height="16" src="http://pageicons.appspot.com/favicons?url=www.sown.org.uk" alt="Atheist Society Favicon"/>
+ SOWN
+ </a>
+ </li>
+ </ul>
+</section>
+<footer>
+&copy; Copyright 2009 - 2012; Thomas
+Grainger; All rights reserved - SSBBQ0NFUFQgQklUQ09JTlM=
+19x6YEWJ1MuCR26S5qeex3juAiecEpMexS
+</footer>
+</body>
+</html>
View
118 _posts/cadet.html
@@ -0,0 +1,118 @@
+<h1>Space Cadet Challenge Solutions</h1>
+<h2>Reading and Writing Strings from Files and URLs</h2>
+<h3>ECS Name Scrape</h3>
+<p>The following bash code downloads a page from the ECS people website
+ returning a persons name scraped from the "title" tag.</p>
+<div class ="code">wget -q -O - http://www.ecs.soton.ac.uk/people/mas |grep \&lt;title\&gt; | sed 's/&lt;.*&gt;\(.*\)&lt;.*&gt;/\1/' | cowsay</div>
+<p>becomes:</p>
+<div class ="code">
+<pre> ____________________
+&lt; Dr Matthew Swabey &gt;
+ --------------------
+ \ ^__^
+ \ (oo)\_______
+ (__)\ )\/\
+ ||----w |
+ || ||
+</pre>
+</div>
+
+<h3>Facebook email reader</h3>
+<p>Facebook uses images of emails to prevent robots from scraping them eg:
+<img src="http://www.facebook.com/string_image.php?ct=AAAAAQAQ9NN_ASpzcERaJ-nOBOHDEwAAABdzvdS2AhFF4EHknftBxkKzapwiq0JhJRY%2C&fp=8.7&state=0&highlight=" alt="example email address"/>
+<p>However using freely available tools such as <a href="http://www.gnu.org/software/wget/">wget</a>, <a href="http://www.imagemagick.org">imagemagick</a> and <a href="http://www.gnu.org/software/ocrad">ocrad</a> I could extract the email string from the image.</p>
+
+<div class ="code">wget -q -O - &quot;http://www.facebook.com/string_image.php?ct=AAAAAQAQL9pc7t5DMZ1gtk5UHDU12QAAABG_xvvgWE6rFEqTiK-WcFy1KnbDZSbkPnI%2C&amp;fp=32&quot; | convert - pbm:- | ocrad - </div>
+
+
+
+<a name="animatedText"></a><h2>Applets and Animated Text</h2>
+<h3>Hello Scroll</h3>
+<p>To create this applet I decided to play around with <a href="http://www.processing.org"> Processing. </a></p>
+<p>Processing is an open source programming language and environment for
+people who want to program images, animation, and interactions. It is
+used by students, artists, designers, researchers, and hobbyists for
+learning, prototyping, and production. It is created to teach
+fundamentals of computer programming within a visual context and to
+serve as a software sketchbook and professional production tool.</p>
+<div class ="code">
+
+<div class="AppletLink">
+ <a href="applets/ScrollText/applet/index.html" >
+ <p>To RUN Click:</p>
+ <img class="logo" src="images/Java_logo.png"/>
+ </a>
+</div>
+
+<pre>
+int vert=0;
+int hos=0;
+PFont font;
+String scrollText = &quot;Hello&quot;;
+
+void setup()
+{
+ size(600,600, P2D);
+
+
+ font = loadFont(&quot;Eureka-90.vlw&quot;);
+ textFont(font);
+ // Draw text more accurately and efficiently.
+ textMode(SCREEN);
+ textAlign(CENTER);
+}
+
+void draw()
+{
+ background(51);
+ text(scrollText,vert,hos);
+ if (vert &lt; width){
+ vert+=10;
+ }else if (hos &lt;width){
+ vert=0;
+ hos+=10;
+ } else {
+ vert =0;
+ hos=0;
+ }
+}
+</pre>
+</div>
+<h3>Pixel Graph</h3>
+<p>I am very impressed with Processing, with only a few lines of code one
+can create spectacular results!</p>
+<div class ="code">
+
+<div class="AppletLink">
+ <a href="applets/pixel_graph/applet/index.html" >
+ <p>To RUN Click:</p>
+ <img class="logo" src="images/Java_logo.png"/>
+ </a>
+</div>
+
+<pre>
+int frame=0;
+
+void setup()
+{
+ size(300,300, P2D);
+}
+
+void draw()
+{
+ background(51);
+ loadPixels();
+ for (int y = 0; y &lt; height; y++){
+ for (int x = 0; x &lt; width; x++){
+ pixels[(width*y)+x]=color ((x^frame + y^frame ));
+ }
+ }
+ updatePixels();
+ frame++;
+}
+</pre>
+</div>
+
+<!--<a name="Spiro"></a><h2>Spirograph Drawings</h2>
+<h3>First Attempt<h3>
+<h3>Second Attempt<h3> -->
View
17 _posts/home.html
@@ -0,0 +1,17 @@
+<h1>Introduction</h1>
+
+
+<p>Hi - welcome to the <a title="ECS" href="http://www.ecs.soton.ac.uk/" id="j0na">ECS</a> users website of Thomas Grainger. I am Studying for MEng Computer Science with Mobile and Secure Systems <a href="http://www.ecs.soton.ac.uk/admissions/ug/G421.php" id="bt:w" title="(G421)">(G421)</a></p>
+
+<p>I was born in <a title="Winchester" href="http://en.wikipedia.org/wiki/Winchester" id="a301">Winchester</a>, which is only ten miles north of where I'm currently studying, I decided on Southampton after looking around at Birmingham, Bristol, Reading and Warwick. I'd been impressed by Southampton after doing the <a title="Student Robotics Challenge" href="http://www.studentrobotics.org/" id="hhfe">Student Robotics Challenge</a> through my sixth form college, <a title="Peter Symonds" href="http://www.psc.ac.uk/" id="c0-k">Peter Symonds</a>, Winchester.</p>
+
+<p>I've been surrounded by technology from a very early age, and I'm interested in hardware as well as software. I've built electronic projects for fun as a child, and more recently built my own PCs. I'm particularly interested in the open source movement, and I'm a keen Linux (<a href="http://www.ubuntu.com/">Ubuntu</a>) user. I like to help other people use this sort of software and quite often advise users over <a href="http://en.wikipedia.org/wiki/Internet_Relay_Chat" >Internet Relay Chat</a>. Like many of my friends I have the usual collection of social networking sites including <a title="Facebook" href="http://en-gb.facebook.com/graingert" id="mye5">Facebook</a>, <a title="Twitter" href="http://twitter.com/graingert" id="ps_m">Twitter</a> and <a title="Last.Fm" href="http://www.last.fm/user/graingert" id="jo7g">Last.Fm</a>.</p>
+
+<p>In my summer holidays for the last few years I've worked for the <a title="IBM" href="http://www.ibm.com" id="pgat">IBM</a> Storage Subsystems group in <a title="Hursley" href="http://www-05.ibm.com/uk/locations/hursley_details.html" id="y5op">Hursley</a>, this group develop virtual storage systems, and high end <a title="RAID" href="http://en.wikipedia.org/wiki/RAID" id="gzxm">RAID</a> systems. <a href=index.php?page=ibmwe>More Information</a></p>
+
+<p>As a hobby, I'm keen on <a title="ice skating" href="http://www.planet-ice.co.uk/arena.php?abrev=bas" id="e216">ice skating</a>, which I took up after a chance outing with the Scouts. I became hooked on skating and went early ever Saturday morning for several years, in fact now I'm here at Southampton, I'm missing skating quite a bit. Hopefully I'll be able to find time over the Christmas break to start again.</p>
+<p>I'm also very interested in science, I've had a subscription to <a title="New Scientist" href="http://www.newscientist.com/" id="g3mx">New Scientist</a> for four or five years, and keep up to date with all the latest developments in the scientific world. </p>
+
+<a href="http://steamcommunity.com/id/graingert">
+ <img src="http://steamcard.com/do/nxe/graingert.png" alt="Graingert Steam Card"/>
+</a>
View
25 _posts/ibmwe.html
@@ -0,0 +1,25 @@
+<div id=":we" class="ii gt">
+
+
+
+
+
+<div bgcolor="#ffffff">
+<h1>Work Experience</h1>
+<h2>IBM</h2>
+I've worked for the IBM Storage Subsystems Group in <a title="Hursley" href="http://www-05.ibm.com/uk/locations/hursley_details.html" id="djrx">Hursley</a> for a few weeks for the last three summers, each time I've been involved in a different task: <br>
+<h3>Sense Expert</h3>
+The first year I was asked to add some pages to the SVC's (<a title="SAN Volume controller" href="http://www-03.ibm.com/systems/storage/software/virtualization/svc/index.html" id="rp60">SAN Volume controller</a>) web GUI. The additional function was to provide human readable decoded data for 128 byte sense reports, which were otherwise translated back at support. This required the implementation of a suitable infrastructure that would allow new sense reports to be decoded without requiring fresh code updates. The code that I developed was about 200 lines of Perl, along with some unit test procedures. The function is shipped with the product today and is thought to have saved some unnecessary support calls, and is frequently used during error inject and other tests in Hursley. <br>
+<h3>SCSI Command Injector<br>
+</h3>
+The second year I developed a <a title="SCSI" href="http://en.wikipedia.org/wiki/SCSI" id="qarh">SCSI</a>(Small Computer System Interface) command injector, this was around 500 lines of <a title="C" href="http://en.wikipedia.org/wiki/C_programming_language" id="w5-v">C</a>, and was based on a similar test tool. This was a particularly difficult project, but has again proved useful during test. This project is not intended to be used by IBM customers, rather is intended to be used to help diagnose system issues with subsystems connected to the SVC. The SCSI protocol includes commands to request <a title="inquiry" href="http://en.wikipedia.org/wiki/SCSI_Inquiry_Command" id="c1j7">inquiry</a> data, and commands to set various special <a title="modes" href="http://en.wikipedia.org/wiki/SCSI_Mode_Sense_Command" id="xuh0">modes</a>, <a title="formatting" href="http://en.wikipedia.org/wiki/SCSI_Format_Unit_Command" id="yc18">formatting</a>and reallocation commands as well as the usual <a title="read" href="http://en.wikipedia.org/wiki/SCSI_Read_Commands" id="zs_o">read</a> and <a title="write" href="http://en.wikipedia.org/wiki/SCSI_Write_Commands" id="v18l">write</a>commands. The difficulties centred on the debugging of the C code that I produced, since C is really quite a low level language and is very easy to produce compilable code that crashes the whole machine. I spent some considerable time working with a custom debugger to track down various bugs. <br>
+<h3>SCSI Command Injector GUI</h3>
+This final year, I was approached to add a GUI to the SCSI command injector, since testers had found that assembling SCSI commands in hex and decoding the status and sense, is time consuming and error prone. This tool must not be available to customers, since they could very easily corrupt data by using as SCSI format command, so the first part of the project was to include a secure method of enabling the tool in the SVC GUI, such that it would only be available to testers. Whilst doing this I realised that I could add a CLI inside the GUI, which is useful for cases in test where the CLI is not working. The main part of my time was spent adding a set of perl pages each of which implemented a particular SCSI command. I created around 10 or 15 pages, including a menu page to allow selection of a particular command. The pages included various pull-down options, some of which had to be populated dynamically from data received from library functions within the SVC CLI.</div>
+</div>
+<br>
+
+<!--
+<object type="text/html" data="http://docs.google.com/View?docID=0AUkyuqffaYIQZGY0bWQ3OGpfMjQ3dGtmN2hiZGs&revision=_latest&hgd=1">
+<p>objects not suported</p>
+</object>
+-->
View
4 _posts/iceskate.html
@@ -0,0 +1,4 @@
+<h1>Ice Skating</h1>
+<p>Ice Skating since 2005. Achieved Gold level and participated in a Spirit of Christmas on ice.</p>
+<h2>Levels</h2>
+<h2>Christmas Show</h2>
View
6 _posts/photos.html
@@ -0,0 +1,6 @@
+<h1>Photos</h1>
+<h2>Jumpstart</h2>
+<p>These are the photos that my group took when out on the Southampton ECS Jumpstart Challenge and came 3rd</p>
+<div class="Flickr">
+<object width="400" height="300"> <param name="flashvars" value="offsite=true&lang=en-us&page_show_url=%2Fphotos%2F43115648%40N06%2Fsets%2F72157622368647323%2Fshow%2F&page_show_back_url=%2Fphotos%2F43115648%40N06%2Fsets%2F72157622368647323%2F&set_id=72157622368647323&jump_to="></param> <param name="movie" value="http://www.flickr.com/apps/slideshow/show.swf?v=71649"></param> <param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/slideshow/show.swf?v=71649" allowFullScreen="true" flashvars="offsite=true&lang=en-us&page_show_url=%2Fphotos%2F43115648%40N06%2Fsets%2F72157622368647323%2Fshow%2F&page_show_back_url=%2Fphotos%2F43115648%40N06%2Fsets%2F72157622368647323%2F&set_id=72157622368647323&jump_to=" width="400" height="300"></embed></object>
+</div>
View
10 _posts/videoTest.html
@@ -0,0 +1,10 @@
+<audio controls>
+ <source src="http://www.sleeptalkinman.com/audio/werepig.ogg" type="audio/ogg">
+ <source src="http://www.sleeptalkinman.com/audio/werepig.mp3" type="audio/mpeg">
+ <!-- user does not support this tag so fail over to google audio player-->
+ <embed type="application/x-shockwave-flash"
+ src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=http://www.sleeptalkinman.com/audio/werepig.mp3"
+ width="300" height="27" allowscriptaccess="never" quality="best"
+ bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" />
+ </embed>
+</audio>
View
BIN  applets/CW1.jar
Binary file not shown
View
BIN  applets/CW1/CW1.jar
Binary file not shown
View
24 applets/CW1/CW1.jnlp
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jnlp spec="1.0+" codebase="http://users.ecs.soton.ac.uk/tag1g09/applets/CW1/" href="CW1.jnlp">
+
+ <information>
+ <title>DemoWindow</title>
+ <vendor>Thomas Grainger</vendor>
+ <homepage href="http://users.ecs.soton.ac.uk/tag1g09/" />
+ <description>This is the CW1 for COMP1004</description>
+ <offline-allowed />
+ </information>
+
+ <resources>
+ <j2se version="1.6+"/>
+ <jar href="CW1.jar" main="true" />
+ </resources>
+
+ <application-desc />
+
+ <security>
+ <all-permissions/>
+ </security>
+
+</jnlp>
View
0  applets/CW1/CW1.jnlp~
No changes.
View
BIN  applets/CW2.7z
Binary file not shown
View
BIN  applets/CW2_reversi.jar
Binary file not shown
View
31 applets/ScrollText/ScrollText.pde
@@ -0,0 +1,31 @@
+int vert=0;
+int hos=0;
+PFont font;
+String scrollText = "Hello";
+
+void setup()
+{
+ size(600,600, P2D);
+
+
+ font = loadFont("Eureka-90.vlw");
+ textFont(font);
+ // Draw text more accurately and efficiently.
+ textMode(SCREEN);
+ textAlign(CENTER);
+}
+
+void draw()
+{
+ background(51);
+ text(scrollText,vert,hos);
+ if (vert < width){
+ vert+=10;
+ }else if (hos <width){
+ vert=0;
+ hos+=10;
+ } else {
+ vert =0;
+ hos=0;
+ }
+}
View
BIN  applets/ScrollText/applet/ScrollText.jar
Binary file not shown
View
52 applets/ScrollText/applet/ScrollText.java
@@ -0,0 +1,52 @@
+import processing.core.*;
+import processing.xml.*;
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.image.*;
+import java.awt.event.*;
+import java.io.*;
+import java.net.*;
+import java.text.*;
+import java.util.*;
+import java.util.zip.*;
+import java.util.regex.*;
+
+public class ScrollText extends PApplet {
+
+int vert=0;
+int hos=0;
+PFont font;
+String scrollText = "Hello";
+
+public void setup()
+{
+ size(600,600, P2D);
+
+
+ font = loadFont("Eureka-90.vlw");
+ textFont(font);
+ // Draw text more accurately and efficiently.
+ textMode(SCREEN);
+ textAlign(CENTER);
+}
+
+public void draw()
+{
+ background(51);
+ text(scrollText,vert,hos);
+ if (vert < width){
+ vert+=10;
+ }else if (hos <width){
+ vert=0;
+ hos+=10;
+ } else {
+ vert =0;
+ hos=0;
+ }
+}
+
+ static public void main(String args[]) {
+ PApplet.main(new String[] { "--bgcolor=#DFDFDF", "ScrollText" });
+ }
+}
View
31 applets/ScrollText/applet/ScrollText.pde
@@ -0,0 +1,31 @@
+int vert=0;
+int hos=0;
+PFont font;
+String scrollText = "Hello";
+
+void setup()
+{
+ size(600,600, P2D);
+
+
+ font = loadFont("Eureka-90.vlw");
+ textFont(font);
+ // Draw text more accurately and efficiently.
+ textMode(SCREEN);
+ textAlign(CENTER);
+}
+
+void draw()
+{
+ background(51);
+ text(scrollText,vert,hos);
+ if (vert < width){
+ vert+=10;
+ }else if (hos <width){
+ vert=0;
+ hos+=10;
+ } else {
+ vert =0;
+ hos=0;
+ }
+}
View
104 applets/ScrollText/applet/index.html
@@ -0,0 +1,104 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <!-- charset must remain utf-8 to be handled properly by Processing -->
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+
+ <title>ScrollText : Built with Processing</title>
+
+ <style type="text/css">
+ /* <![CDATA[ */
+
+ body {
+ margin: 60px 0px 0px 55px;
+ font-family: verdana, geneva, arial, helvetica, sans-serif;
+ font-size: 11px;
+ background-color: #ddddcc;
+ text-decoration: none;
+ font-weight: normal;
+ line-height: normal;
+ }
+
+ a { color: #3399cc; }
+ a:link { color: #3399cc; text-decoration: underline; }
+ a:visited { color: #3399cc; text-decoration: underline; }
+ a:active { color: #3399cc; text-decoration: underline; }
+ a:hover { color: #3399cc; text-decoration: underline; }
+
+ /* ]]> */
+ </style>
+
+ </head>
+ <body>
+ <div id="content">
+ <div id="ScrollText_container">
+
+ <!--[if !IE]> -->
+ <object classid="java:ScrollText.class"
+ type="application/x-java-applet"
+ archive="ScrollText.jar"
+ width="600" height="600"
+ standby="Loading Processing software..." >
+
+ <param name="archive" value="ScrollText.jar" />
+
+ <param name="mayscript" value="true" />
+ <param name="scriptable" value="true" />
+
+ <param name="image" value="loading.gif" />
+ <param name="boxmessage" value="Loading Processing software..." />
+ <param name="boxbgcolor" value="#FFFFFF" />
+
+ <param name="test_string" value="outer" />
+ <!--<![endif]-->
+
+ <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
+ codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0_15-windows-i586.cab"
+ width="600" height="600"
+ standby="Loading Processing software..." >
+
+ <param name="code" value="ScrollText" />
+ <param name="archive" value="ScrollText.jar" />
+
+ <param name="mayscript" value="true" />
+ <param name="scriptable" value="true" />
+
+ <param name="image" value="loading.gif" />
+ <param name="boxmessage" value="Loading Processing software..." />
+ <param name="boxbgcolor" value="#FFFFFF" />
+
+ <param name="test_string" value="inner" />
+
+ <p>
+ <strong>
+ This browser does not have a Java Plug-in.
+ <br />
+ <a href="http://www.java.com/getjava" title="Download Java Plug-in">
+ Get the latest Java Plug-in here.
+ </a>
+ </strong>
+ </p>
+
+ </object>
+
+ <!--[if !IE]> -->
+ </object>
+ <!--<![endif]-->
+
+ </div>
+
+ <p>
+
+ </p>
+
+ <p>
+ Source code: <a href="ScrollText.pde">ScrollText</a>
+ </p>
+
+ <p>
+ Built with <a href="http://processing.org" title="Processing.org">Processing</a>
+ </p>
+ </div>
+ </body>
+</html>
View
BIN  applets/ScrollText/applet/loading.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  applets/ScrollText/data/Eureka-90.vlw
Binary file not shown
View
104 applets/pixel_graph/applet/index.html
@@ -0,0 +1,104 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <!-- charset must remain utf-8 to be handled properly by Processing -->
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+
+ <title>pixel_graph : Built with Processing</title>
+
+ <style type="text/css">
+ /* <![CDATA[ */
+
+ body {
+ margin: 60px 0px 0px 55px;
+ font-family: verdana, geneva, arial, helvetica, sans-serif;
+ font-size: 11px;
+ background-color: #ddddcc;
+ text-decoration: none;
+ font-weight: normal;
+ line-height: normal;
+ }
+
+ a { color: #3399cc; }
+ a:link { color: #3399cc; text-decoration: underline; }
+ a:visited { color: #3399cc; text-decoration: underline; }
+ a:active { color: #3399cc; text-decoration: underline; }
+ a:hover { color: #3399cc; text-decoration: underline; }
+
+ /* ]]> */
+ </style>
+
+ </head>
+ <body>
+ <div id="content">
+ <div id="pixel_graph_container">
+
+ <!--[if !IE]> -->
+ <object classid="java:pixel_graph.class"
+ type="application/x-java-applet"
+ archive="pixel_graph.jar"
+ width="300" height="300"
+ standby="Loading Processing software..." >
+
+ <param name="archive" value="pixel_graph.jar" />
+
+ <param name="mayscript" value="true" />
+ <param name="scriptable" value="true" />
+
+ <param name="image" value="loading.gif" />
+ <param name="boxmessage" value="Loading Processing software..." />
+ <param name="boxbgcolor" value="#FFFFFF" />
+
+ <param name="test_string" value="outer" />
+ <!--<![endif]-->
+
+ <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
+ codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0_15-windows-i586.cab"
+ width="300" height="300"
+ standby="Loading Processing software..." >
+
+ <param name="code" value="pixel_graph" />
+ <param name="archive" value="pixel_graph.jar" />
+
+ <param name="mayscript" value="true" />
+ <param name="scriptable" value="true" />
+
+ <param name="image" value="loading.gif" />
+ <param name="boxmessage" value="Loading Processing software..." />
+ <param name="boxbgcolor" value="#FFFFFF" />
+
+ <param name="test_string" value="inner" />
+
+ <p>
+ <strong>
+ This browser does not have a Java Plug-in.
+ <br />
+ <a href="http://www.java.com/getjava" title="Download Java Plug-in">
+ Get the latest Java Plug-in here.
+ </a>
+ </strong>
+ </p>
+
+ </object>
+
+ <!--[if !IE]> -->
+ </object>
+ <!--<![endif]-->
+
+ </div>
+
+ <p>
+
+ </p>
+
+ <p>
+ Source code: <a href="pixel_graph.pde">pixel_graph</a>
+ </p>
+
+ <p>
+ Built with <a href="http://processing.org" title="Processing.org">Processing</a>
+ </p>
+ </div>
+ </body>
+</html>
View
BIN  applets/pixel_graph/applet/loading.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  applets/pixel_graph/applet/pixel_graph.jar
Binary file not shown
View
43 applets/pixel_graph/applet/pixel_graph.java
@@ -0,0 +1,43 @@
+import processing.core.*;
+import processing.xml.*;
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.image.*;
+import java.awt.event.*;
+import java.io.*;
+import java.net.*;
+import java.text.*;
+import java.util.*;
+import java.util.zip.*;
+import java.util.regex.*;
+
+public class pixel_graph extends PApplet {
+
+int vert=0;
+int hos=0;
+int num=0;
+int frame=0;
+
+public void setup()
+{
+ size(300,300, P2D);
+}
+
+public void draw()
+{
+ background(51);
+ loadPixels();
+ for (int y = 0; y < height; y++){
+ for (int x = 0; x < width; x++){
+ pixels[(width*y)+x]=color ((x^frame + y^frame ));
+ }
+ }
+ updatePixels();
+ frame++;
+}
+
+ static public void main(String args[]) {
+ PApplet.main(new String[] { "--bgcolor=#DFDFDF", "pixel_graph" });
+ }
+}
View
22 applets/pixel_graph/applet/pixel_graph.pde
@@ -0,0 +1,22 @@
+int vert=0;
+int hos=0;
+int num=0;
+int frame=0;
+
+void setup()
+{
+ size(300,300, P2D);
+}
+
+void draw()
+{
+ background(51);
+ loadPixels();
+ for (int y = 0; y < height; y++){
+ for (int x = 0; x < width; x++){
+ pixels[(width*y)+x]=color ((x^frame + y^frame ));
+ }
+ }
+ updatePixels();
+ frame++;
+}
View
BIN  applets/pixel_graph/data/Eureka-90.vlw
Binary file not shown
View
22 applets/pixel_graph/pixel_graph.pde
@@ -0,0 +1,22 @@
+int vert=0;
+int hos=0;
+int num=0;
+int frame=0;
+
+void setup()
+{
+ size(300,300, P2D);
+}
+
+void draw()
+{
+ background(51);
+ loadPixels();
+ for (int y = 0; y < height; y++){
+ for (int x = 0; x < width; x++){
+ pixels[(width*y)+x]=color ((x^frame + y^frame ));
+ }
+ }
+ updatePixels();
+ frame++;
+}
View
42 applets/spiroGraph/index.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+
+ <title>spiroGraph</title>
+
+ <style type="text/css">
+ /* <![CDATA[ */
+
+ body {
+ margin: 60px 0px 0px 55px;
+ font-family: verdana, geneva, arial, helvetica, sans-serif;
+ font-size: 11px;
+ background-color: #ddddcc;
+ text-decoration: none;
+ font-weight: normal;
+ line-height: normal;
+ }
+
+ a { color: #3399cc; }
+ a:link { color: #3399cc; text-decoration: underline; }
+ a:visited { color: #3399cc; text-decoration: underline; }
+ a:active { color: #3399cc; text-decoration: underline; }
+ a:hover { color: #3399cc; text-decoration: underline; }
+
+ /* ]]> */
+ </style>
+
+ </head>
+ <body>
+ <div id="content">
+ <div id="pixel_graph_container">
+ <object code="spiroGraph.class"
+ type="application/x-java-applet"
+ width="500" height="500">
+ </object>
+ </div>
+ </div>
+ </body>
+</html>
View
BIN  applets/spiroGraph/spiroGraph.class
Binary file not shown
View
BIN  applets/spiroGraph/spiroGraph.class.bak
Binary file not shown
View
53 applets/spiroGraph/spiroGraph.java
@@ -0,0 +1,53 @@
+import java.awt.*;
+import javax.swing.*;
+
+public class spiroGraph extends JApplet {
+
+ int width, height;
+ Image backbuffer;
+ Graphics backg;
+
+ int O = 4;
+ int R = 100;
+ int r = 10;
+
+
+ public void init() {
+ width = getSize().width;
+ height = getSize().height;
+
+ backbuffer = createImage(width, height);
+ backg = backbuffer.getGraphics();
+ backg.setColor(Color.black);
+
+ backg.fillRect(0, 0, width, height);
+ //backg.setColor(Color.white);
+ }
+ public void start() {
+ //Accidently Left Blank
+ }
+
+ public void update(Graphics g) {
+ g.drawImage(backbuffer, 0, 0, this);
+ g.setColor (Color.white);
+
+ int xOld = (int) Math.round((R+r)-(r+O)) + width/2;
+ int yOld = (int) height/2;
+
+ for (int t = 0; t < 100; t++){
+ int xNew = (int) Math.round((R+r)*Math.cos(t)-(r+O)*Math.cos(((R+r) / r)*t)) + width/2;
+ int yNew = (int) Math.round((R+r)*Math.sin(t)-(r+O)*Math.sin(((R+r) / r)*t)) + height/2;
+
+ g.drawLine(xOld, yOld, xNew, yNew);
+
+ xOld = xNew;
+ yOld = yNew;
+
+ System.out.println(xNew + yNew);
+ }
+ }
+
+ public void paint(Graphics g) {
+ update(g);
+ }
+}
View
42 applets/spiroGraph2/index.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+
+ <title>spiroGraph</title>
+
+ <style type="text/css">
+ /* <![CDATA[ */
+
+ body {
+ margin: 60px 0px 0px 55px;
+ font-family: verdana, geneva, arial, helvetica, sans-serif;
+ font-size: 11px;
+ background-color: #ddddcc;
+ text-decoration: none;
+ font-weight: normal;
+ line-height: normal;
+ }
+
+ a { color: #3399cc; }
+ a:link { color: #3399cc; text-decoration: underline; }
+ a:visited { color: #3399cc; text-decoration: underline; }
+ a:active { color: #3399cc; text-decoration: underline; }
+ a:hover { color: #3399cc; text-decoration: underline; }
+
+ /* ]]> */
+ </style>
+
+ </head>
+ <body>
+ <div id="content">
+ <div id="pixel_graph_container">
+ <object code="spiroGraph.class"
+ type="application/x-java-applet"
+ width="500" height="500">
+ </object>
+ </div>
+ </div>
+ </body>
+</html>
View
BIN  applets/spiroGraph2/spiroGraph.class
Binary file not shown
View
7 bash.exe.stackdump
@@ -0,0 +1,7 @@
+Exception: STATUS_ACCESS_VIOLATION at eip=6102048B
+eax=00E1C500 ebx=61245894 ecx=76770F81 edx=0035A2F0 esi=00000000 edi=0028F9F4
+ebp=61020C00 esp=0028C7C4 program=C:\cygwin\bin\bash.exe, pid 8856, thread main
+cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
+Stack trace:
+Frame Function Args
+End of stack trace
View
BIN  comp1004/GraphicalFramework.src.jar
Binary file not shown
View
BIN  comp2004/.DS_Store
Binary file not shown
View
5 comp2004/comp2004tag/.buildpath
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<buildpath>
+ <buildpathentry kind="src" path="application"/>
+ <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
+</buildpath>
View
22 comp2004/comp2004tag/.project
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>comp2004tag</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.dltk.core.scriptbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.php.core.PHPNature</nature>
+ </natures>
+</projectDescription>
View
62 comp2004/comp2004tag/.settings/.svn/entries
@@ -0,0 +1,62 @@
+10
+
+dir
+111
+svn+ssh://tag1g09@svn.forge.ecs.soton.ac.uk/projects/comp2004tag/.settings
+svn+ssh://tag1g09@svn.forge.ecs.soton.ac.uk/projects/comp2004tag
+
+
+
+2011-03-04T17:37:42.699042Z
+4
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ac6bde30-a49d-0410-9af8-c81625b515af
+
+org.eclipse.php.core.prefs
+file
+
+
+
+
+2011-03-05T13:12:57.918585Z
+0835a0f60f8ef2828fd76edd5ae85b83
+2011-03-04T17:37:42.699042Z
+4
+tag1g09
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+103
+
View
5 comp2004/comp2004tag/.settings/.svn/prop-base/org.eclipse.php.core.prefs.svn-base
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 10
+text/plain
+END
View
3  comp2004/comp2004tag/.settings/.svn/text-base/org.eclipse.php.core.prefs.svn-base
@@ -0,0 +1,3 @@
+#Fri Mar 04 15:36:40 GMT 2011
+eclipse.preferences.version=1
+include_path=0;/comp2004tag/application
View
3  comp2004/comp2004tag/.settings/org.eclipse.php.core.prefs
@@ -0,0 +1,3 @@
+#Fri Mar 04 15:36:40 GMT 2011
+eclipse.preferences.version=1
+include_path=0;/comp2004tag/application
View
680 comp2004/comp2004tag/.svn/entries
@@ -0,0 +1,680 @@
+10
+
+dir
+111
+svn+ssh://tag1g09@svn.forge.ecs.soton.ac.uk/projects/comp2004tag
+svn+ssh://tag1g09@svn.forge.ecs.soton.ac.uk/projects/comp2004tag
+
+
+
+2011-03-24T05:04:19.013618Z
+111
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ac6bde30-a49d-0410-9af8-c81625b515af
+
+storedproc.sql
+file
+
+
+
+
+2011-03-24T02:41:48.078655Z
+92eb0d6c51ede0a871ae03cab590e13a
+2011-03-24T02:36:02.655164Z
+82
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1124
+
+Enrol.html
+file
+
+
+
+
+2011-02-28T12:49:00.000000Z
+18b884e90ddea9d1fa7b4a1ba8d3b7ad
+2011-03-21T23:46:56.884393Z
+37
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+2316
+
+.project
+file
+
+
+
+
+2011-03-05T13:12:57.978585Z
+3bd35d1bf740c70ad68b24b3f6ab821f
+2011-03-04T17:37:42.699042Z
+4
+tag1g09
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+521
+
+Collect Payment.html
+file
+
+
+
+
+2011-02-28T12:29:18.000000Z
+1dc1619a4c76ce947e9e34bbe1ceacb5
+2011-03-21T23:46:56.884393Z
+37
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+744
+
+Exam Data.html
+file
+
+
+
+
+2011-02-28T12:33:56.000000Z
+e114b9ffe0f040bedf854cc5236ee37f
+2011-03-21T23:46:56.884393Z
+37
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+1079
+
+records.php
+file
+
+
+
+
+2011-03-24T04:53:30.318625Z
+0fb984d0d74800b9c7fbc2f717df67ae
+2011-03-24T04:47:59.301162Z
+108
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+411
+
+Student Record.html
+file
+
+
+
+
+2011-02-28T12:46:36.000000Z
+7f4203ef434b9cfe2c2c361ec9609bca
+2011-03-21T23:46:56.884393Z
+37
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+634
+
+.buildpath
+file
+
+
+
+
+2011-03-05T13:12:57.988585Z
+367f37a69c34ed16ece07d23d09c1fe7
+2011-03-04T17:37:42.699042Z
+4
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+185
+
+views.sql
+file
+
+
+
+
+2011-03-24T04:53:30.328584Z
+365a183ea3e0e2a9788be59495d0c961
+2011-03-24T04:33:37.320504Z
+106
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+247
+
+listStudents.php
+file
+
+
+
+
+2011-03-24T04:53:30.318625Z
+278940d495b60573e6bcbb7f270e1b75
+2011-03-24T04:47:59.301162Z
+108
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+245
+
+examp.php
+file
+
+
+
+
+2011-03-24T04:53:30.328584Z
+e2f455f900e5e0c859dccffcd48dd9c9
+2011-03-24T04:47:59.301162Z
+108
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+677
+
+COMP2004 Dancing School.html
+file
+
+
+
+
+2011-02-28T12:54:43.000000Z
+51be995e2032a8b8733b91f932ad1861
+2011-03-21T17:07:47.754263Z
+34
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+699
+
+payment.php
+file
+
+
+
+
+2011-03-24T04:53:30.328584Z
+eccfda87aae4b35caae2ad8fb41c424a
+2011-03-24T04:47:59.301162Z
+108
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+732
+
+install.sql
+file
+
+
+
+
+2011-03-24T04:53:30.338675Z
+2e54a82026562e9b219f8b564010eb94
+2011-03-24T04:36:23.540498Z
+107
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+8953
+
+enrol.php
+file
+
+
+
+
+2011-03-24T05:09:58.128585Z
+cd9710d63f0944c33f5ef5f0e597f521
+2011-03-24T05:04:19.013618Z
+111
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+715
+
+list students.html
+file
+
+
+
+
+2011-02-28T12:54:11.000000Z
+3e91326dc41afdc65ba42640c40d0418
+2011-03-21T23:46:56.884393Z
+37
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+620
+
+ballroom_dancing.jpg
+file
+
+
+
+
+2011-03-23T14:04:04.758615Z
+a14623fb12ae69fe3de17f85659d9c7c
+2011-03-23T14:02:39.157821Z
+42
+tag1g09
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+7721
+
+inc
+dir
+
+dropS.php
+file
+
+
+
+
+2011-03-24T04:53:30.338675Z
+8561e1b499310dd5b80f86fae82749f8
+2011-03-24T04:47:59.301162Z
+108
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+421
+
+Drop Student.html
+file
+
+
+
+
+2011-02-28T12:56:12.000000Z
+d21feca6097a0f00dd1ec2f670164a42
+2011-03-21T23:46:56.884393Z
+37
+tag1g09
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+862
+
+.settings
+dir
+
View
5 comp2004/comp2004tag/.svn/prop-base/.project.svn-base
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 10
+text/plain
+END
View
5 comp2004/comp2004tag/.svn/prop-base/ballroom_dancing.jpg.svn-base
@@ -0,0 +1,5 @@
+K 13
+svn:mime-type
+V 24
+application/octet-stream
+END
View
5 comp2004/comp2004tag/.svn/text-base/.buildpath.svn-base
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<buildpath>
+ <buildpathentry kind="src" path="application"/>
+ <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
+</buildpath>
View
22 comp2004/comp2004tag/.svn/text-base/.project.svn-base
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>comp2004tag</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.dltk.core.scriptbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.php.core.PHPNature</nature>
+ </natures>
+</projectDescription>
View
7 comp2004/comp2004tag/.svn/text-base/COMP2004 Dancing School.html.svn-base
@@ -0,0 +1,7 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>COMP2004 Dancing School</title>
+
+<style type="text/css"></style></head>
+<body><h1>Dancing School Website</h1><ul><li><a href="Enrol.html">enrol student</a></li><li><a href="Drop%20Student.html">drop student</a></li><li><a href="Collect%20Payment.html">collect payment</a></li><li><a href="Exam%20Data.html" target="_self">record examination performance</a></li><li><a href="Student%20Record.html">show student record</a></li><li><a href="list%20students.html">list previous students</a></li></ul>
+</body></html>
View
12 comp2004/comp2004tag/.svn/text-base/Collect Payment.html.svn-base
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Collect Payment</title>
+
+</head><body>
+<h1>Collect payment</h1>
+<form target="_self" method="post" action="payment.php" name="payment"><label>Enter student email &nbsp;<input size="20" name="email"> &nbsp; Payment type
+<select name="paymentType"><option>Cash</option><option>Visa</option><option>MasterCard</option></select>
+&nbsp; Amount<input name="amount"><br>
+List payments &nbsp;<input name="listPayments" type="checkbox"><br>
+<button tabindex="10" name="Submit"> Submit </button><button type="reset"> Reset</button></label></form>
+</body></html>
View
23 comp2004/comp2004tag/.svn/text-base/Drop Student.html.svn-base
@@ -0,0 +1,23 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Drop Student</title>
+
+<style type="text/css">
+#useCase {
+background-color: #cccccc;
+}
+</style>
+</head>
+<body>
+<div id="wrapper&quot;">
+<h1>Drop Student</h1>
+<div style="margin-left: 79px; width: 517px;" id="useCase"><span style="font-size: 11pt; font-family: &quot;Courier New&quot;; color: black;">The
+email is supplied and the student is marked as left.&nbsp;<br>
+</span></div>
+<form target="_parent" method="post" action="dropS.php" name="dropStudent">
+<label>Email of student <input size="20" name="email"></label><br>
+<br>
+<button name="Exterminate">Exterminate</button> <button name="Clear" type="reset">Reset</button><br>
+</form>
+</div>
+</body></html>
View
34 comp2004/comp2004tag/.svn/text-base/Enrol.html.svn-base
@@ -0,0 +1,34 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Enrol</title>
+
+<style type="text/css">
+p {
+font-family: Arial,Helvetica,sans-serif;
+font-size: large;
+}
+</style>
+</head>
+<body>
+<h1 style="width: 624px;">Enrol Student</h1>
+<p style="font-family: Helvetica,Arial,sans-serif;"><span style="font-size: 11pt; color: black;">The
+name, date of birth and gender of the student are recorded.&nbsp;</span></p>
+<p style="font-family: Helvetica,Arial,sans-serif;"><span style="font-size: 11pt; color: black;">The email is
+supplied and it is assumed that every student has a distinct email.</span></p>
+<p style="font-family: Helvetica,Arial,sans-serif;"><span style="font-size: 11pt; color: black;"></span></p>
+<form style="height: 340px; width: 675px;" target="_self" method="post" action="enrol.php" name="enrol">
+<p style="font-family: Helvetica,Arial,sans-serif;"><span style="font-size: 11pt; color: black;">Name &nbsp; <input maxlength="300" name="name"> &nbsp;</span></p>
+<p style="font-family: Helvetica,Arial,sans-serif; width: 683px;"><span style="font-size: 11pt; color: black;"> Date of birth:
+&nbsp;Day <input size="3" name="day"> Month <input size="3" name="month"> Year&nbsp;<input size="4" name="year"> </span></p>
+<p style="font-family: Helvetica,Arial,sans-serif;"><span style="font-size: 11pt; color: black;">email <input maxlength="100" name="email"></span></p>
+<p style="font-family: Helvetica,Arial,sans-serif;"><span style="font-size: 11pt; color: black;">repeat email <input name="email2"></span></p>
+<p style="font-family: Helvetica,Arial,sans-serif;"><span style="font-size: 11pt; color: black;">gender
+<select name="gender"><option>male</option><option>female</option></select>
+<br>
+</span></p>
+<p style="font-family: Helvetica,Arial,sans-serif;"><span style="font-size: 11pt; color: black;"></span><button value="press " name="SUBMIT" size="30">Submit</button>
+&nbsp; <button name="Clear" type="reset">Reset</button></p>
+</form>
+<p><span style="font-size: 11pt; font-family: &quot;Courier New&quot;; color: black;"></span><span style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">
+</span></p>
+</body></html>
View
25 comp2004/comp2004tag/.svn/text-base/Exam Data.html.svn-base
@@ -0,0 +1,25 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Exam Data</title>
+
+</head><body>
+<h1>Examination&nbsp;</h1>
+Given the emails of two students, we record the date of the
+examination, the level of examination, the style and the mark the pair
+achieved. <br>
+<br>
+<form method="post" action="examp.php" name="exam">Man
+(email of &nbsp;student dancing the male steps) <input maxlength="20" name="man"><br>
+Woman (dances female steps) <input size="20" name="woman"><br>
+Date: &nbsp;Day <input maxlength="5" name="day">
+Month <input name="month"> Year <input name="year" value="2011"><br>
+Style
+<select name="style"><option>ballroom</option><option>latin</option></select>
+<br>
+Level
+<select name="level"><option>gold</option><option>silver</option><option>bronze</option></select>
+<br>
+Mark <input maxlength="4" name="mark"><br>
+<br>
+<button name="Submit">Submit</button><button type="reset">Reset</button></form>
+</body></html>
View
12 comp2004/comp2004tag/.svn/text-base/Student Record.html.svn-base
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Student Record</title>
+
+</head><body>
+<h1>Show Student Record</h1>
+Given a student email, show the name and details of the examinations
+they have taken. In this list show the name of the partner, the level,
+style and the mark.<br>
+<form target="_parent" method="post" action="records.php" name="record">Email <input name="email"><br>
+<button name="submit">Submit</button><button name="reset" type="reset">Reset</button></form>
+</body></html>
View
BIN  comp2004/comp2004tag/.svn/text-base/ballroom_dancing.jpg.svn-base
Binary file not shown
View
23 comp2004/comp2004tag/.svn/text-base/dropS.php.svn-base
@@ -0,0 +1,23 @@
+<?php
+include_once('./inc/common_functions.inc.php');
+
+
+printHead();
+try{
+ $student = Student::getByEmail($_POST['email']);
+ $student->status = Student::LEFT;
+ $student->update();
+ ?>
+ <p>Student:</p>
+ <table>
+ <?php
+ Student::printHeader();
+ $student->printRow();
+ ?>
+ </table>
+ <p>Has been marked as left</p>
+ <?php
+} catch (InvalidUserInputException $e) {
+ echo $e->getMessage();
+}
+printFoot();
View
34 comp2004/comp2004tag/.svn/text-base/enrol.php.svn-base
@@ -0,0 +1,34 @@
+<?php
+include_once('./inc/common_functions.inc.php');
+
+printHead();
+
+try {
+ $student = new Student();
+$student->name = $_POST['name'];
+$student->dateOfBirth = $_POST['year'].'-'.$_POST['month'].'-'.$_POST['day'];
+$email = $_POST['email'];
+$email2 = $_POST['email2'];
+if($email != $email2){
+ throw new InvalidUserInputException('<p>Email and Repeat Email do not match</p>');
+}
+$student->email = $email;
+$student->gender = $_POST['gender'];
+$student->status = Student::CURRENT;
+ $student->validate();
+
+ $student->insert();
+
+ ?>
+ <p>Added Student:</p>
+ <table>
+ <?php
+ Student::printHeader();
+ $student->printRow();
+ ?>
+ </table>
+ <?php
+} catch (InvalidUserInputException $e) {
+ echo $e->getMessage();
+}
+printFoot();
View
29 comp2004/comp2004tag/.svn/text-base/examp.php.svn-base
@@ -0,0 +1,29 @@
+<?php
+include_once('./inc/common_functions.inc.php');
+printHead();
+try{
+ $exam = new Exam();
+ $exam->malestudentid = Student::getByEmail($_POST['man'])->id;
+ $exam->femalestudentid = Student::getByEmail($_POST['woman'])->id;
+ $exam->date = $_POST['year'].'-'.$_POST['month'].'-'.$_POST['day'];
+ $exam->kind = $_POST['style'];
+ $exam->level = $_POST['level'];
+ $exam->mark = $_POST['mark'];
+ $exam->validate();
+ $exam->insert();
+ ?>
+
+ <p>Added examination:</p>
+ <table>
+ <?php
+ Exam::printHeader();
+ $exam->printRow();
+ ?>
+ </table>
+ <?php
+} catch (InvalidUserInputException $e) {
+ echo $e->getMessage();
+} catch (SameSexException $e) {
+ echo $e->getMessage();
+}
+printFoot();
View
266 comp2004/comp2004tag/.svn/text-base/install.sql.svn-base
@@ -0,0 +1,266 @@
+-- phpMyAdmin SQL Dump
+-- version 2.11.11.3
+-- http://www.phpmyadmin.net
+--
+-- Host: localhost
+-- Generation Time: Mar 24, 2011 at 04:39 AM
+-- Server version: 5.0.77
+-- PHP Version: 5.1.6
+
+SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
+
+SET AUTOCOMMIT=0;
+START TRANSACTION;
+
+--
+-- Database: `db_tag1g09`
+--
+
+-- --------------------------------------------------------
+
+--
+-- Stand-in structure for view `currentstudents`
+--
+DROP VIEW IF EXISTS `currentstudents`;
+CREATE TABLE IF NOT EXISTS `currentstudents` (
+`id` int(10) unsigned
+,`name` varchar(255)
+,`dateOfBirth` date
+,`gender` enum('male','female')
+,`email` varchar(255)
+,`status` enum('current','suspended','left')
+);
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `ds_exams`
+--
+-- Creation: Mar 23, 2011 at 09:11 PM
+--
+
+DROP TABLE IF EXISTS `ds_exams`;
+CREATE TABLE IF NOT EXISTS `ds_exams` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `malestudentid` int(10) unsigned NOT NULL,
+ `femalestudentid` int(10) unsigned NOT NULL,
+ `date` date NOT NULL,
+ `mark` tinyint(3) unsigned NOT NULL,
+ `level` enum('gold','silver','bronze') character set utf8 collate utf8_unicode_ci NOT NULL,
+ `kind` enum('ballroom','latin') character set utf8 collate utf8_unicode_ci NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `malestudentid` (`malestudentid`,`femalestudentid`),
+ KEY `femalestudentid` (`femalestudentid`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
+
+--
+-- Dumping data for table `ds_exams`
+--
+
+INSERT INTO `ds_exams` (`id`, `malestudentid`, `femalestudentid`, `date`, `mark`, `level`, `kind`) VALUES
+(1, 1, 2, '2011-03-21', 100, 'gold', 'ballroom'),
+(2, 1, 2, '2011-02-27', 80, 'gold', 'ballroom'),
+(3, 3, 2, '2011-02-27', 40, 'silver', 'ballroom'),
+(4, 3, 2, '2011-02-27', 40, 'silver', 'ballroom'),
+(5, 3, 2, '2011-02-27', 42, 'silver', 'ballroom'),
+(6, 3, 2, '2011-02-27', 42, 'silver', 'ballroom'),
+(7, 1, 2, '2011-03-11', 100, 'gold', 'ballroom'),
+(8, 1, 2, '2011-03-11', 100, 'bronze', 'ballroom');
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `ds_payments`
+--
+-- Creation: Mar 23, 2011 at 08:42 PM
+--
+
+DROP TABLE IF EXISTS `ds_payments`;
+CREATE TABLE IF NOT EXISTS `ds_payments` (
+ `id` int(10) unsigned NOT NULL auto_increment,
+ `student` int(10) unsigned NOT NULL,
+ `amount` decimal(10,2) NOT NULL,
+ `type` enum('cash','visa','mastercard') character set utf8 collate utf8_unicode_ci NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `student` (`student`)
+) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
+
+--
+-- Dumping data for table `ds_payments`
+--
+
+INSERT INTO `ds_payments` (`id`, `student`, `amount`, `type`) VALUES
+(1, 3, 50.02, 'cash'),
+(2, 3, 50.02, 'cash'),
+(3, 3, 50.02, 'cash'),
+(4, 3, 50.02, 'cash'),