Last Exam is Over

Friday, 20 June 2008 21:43 by frimbob

blog_200608Well  have finished my last exam , on Tuesday. It was for my XML for web-applications, class I must admit I am glad that was the last exam, now I get to work on some personal projects. How did I do? Well after some exam nerves I made a good recovery and think a credit mark deserving for that paper.

So Now What?

Well I have made a start by completing my wow memorial page, I added a JavaScript clock to count up the number of days 'World of WarCraft' free.

The Script

   1: //namespace declaration
   2: var CountUp = function ()
   3: { } //end of name space
   4:  
   5: // Class Declaration
   6: CountUp.Class = function () {
   7:     //private references
   8:     var currentTime=new Date()
   9:     var startingdate;
  10:     var timesup=false
  11:     var baseunit;
  12:     var result;
  13:     //private method:
  14:     var PrintResults = function(){
  15:         var strresults = " ";
  16:         //Display the result             
  17:         strresults += '<div style="width:300px; background-color:#383838; text-align:center; color:white; margin-bottom:15px; margin-top:5px;">'
  18:         strresults += '<div style="width:300px; font-size:120%; text-align:center; background-color: #5E3A3A; color:white;"> Number of Days Without WOW </div>'; //opend
  19:         strresults += result.days + ' :Days ';
  20:         strresults += result.hours +' :Hours ' ;
  21:         strresults += result.minutes + ' :Minutes ';
  22:         strresults += result.seconds + ' :Seconds ';
  23:         strresults += "</div>" //close 
  24:         document.getElementById("ClockDiv").innerHTML = strresults;         
  25:     } //end function 
  26:     return  { //the returned object here 
  27:         //public declarations (declare as below)
  28:         ExampleProperty: 1, // note need comma after 
  29:                 
  30:         //init function
  31:         init: function (time,baseunit) {
  32:             startingdate=new Date(time)
  33:             baseunit=baseunit
  34:         //Add call Function to the SetInterval 
  35:         setInterval(CountUp.Class.showTime,3000); 
  36:         //accessing private variable
  37:         //abc ="jfk"
  38:         },
  39:        //Public Functio
  40:         showTime:  function() {
  41:             currentTime.setSeconds(currentTime.getSeconds()+1);
  42:             var timediff=(currentTime - startingdate) /1000; //difference btw target date and current date, in seconds
  43:             var oneMinute=60; //minute unit in seconds
  44:             var oneHour=60*60; //hour unit in seconds
  45:             var oneDay=60*60*24; //day unit in seconds
  46:             var dayfield=Math.floor(timediff/oneDay);
  47:             var hourfield=Math.floor((timediff-dayfield*oneDay)/oneHour);
  48:             var minutefield=Math.floor((timediff-dayfield*oneDay-hourfield*oneHour)/oneMinute);
  49:             var secondfield=Math.floor((timediff-dayfield*oneDay-hourfield*oneHour-minutefield*oneMinute));
  50:             if (baseunit=="hours"){ //if base unit is hours, set "hourfield" to be topmost level
  51:                 hourfield=dayfield*24+hourfield;
  52:                 dayfield="n/a";
  53:             }
  54:             else if (baseunit=="minutes"){ //if base unit is minutes, set "minutefield" to be topmost level
  55:                 minutefield=dayfield*24*60+hourfield*60+minutefield;
  56:                 dayfield=hourfield="n/a";
  57:             }
  58:             else if (baseunit=="seconds"){ //if base unit is seconds, set "secondfield" to be topmost level
  59:                 var secondfield=timediff;
  60:                 dayfield=hourfield=minutefield="n/a";
  61:             }
  62:             result={days: dayfield, hours:hourfield, minutes:minutefield, seconds:secondfield};
  63:             // call print method
  64:             PrintResults();  
  65:         } //, (remove comment syntax if more than one function)
  66:         
  67:     };
  68: }(); // the parens here cause the anonymous function to execute and return
  69:  
  70: //initilize the object
  71: CountUp.Class.init("January 5,2008, 17:15:00","days"); 

It was not very difficult I used the YUI pattern that I posted about a few months ago, as the base with the int method registering the time function with a setInterval() at repeat of 1 seconds or so.  The time function finds the difference from the base date compared to now then builds a result object and calls a print method.

Also to note that I used the script found on dynamic drive here, as the base for the Set-time function, I basically re-coded for the YUI pattern and wrote my own display method. 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

First Exam is Over

Thursday, 12 June 2008 14:19 by frimbob

blog_120608_8
Well I am glad to say that my first exam is over, the class was OOP (object oriented programming), really a C++ language class. I did not find all too difficult and left with a good feeling, we were allocated 3 hours but I felt that it was just over 2 hours of work and considering that I was one of the last to leave after that time its probably true.

My Next Exam is for My Applications with XML class, on the Tuesday 17th June.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   Life and Stuff
Actions:   E-mail | Permalink | Comments (326) | Comment RSSRSS comment feed

Jukebox Project

Thursday, 12 June 2008 14:01 by frimbob

Having bought a very large LCD monitor last December a 26 inch LCD monitor that is and just regretting it a little upon finding that it was really a television not  an up close and personal computer screen but it was cheap and very appealing at the time. Well I just could not let such a large screen go to waste.

The project build a Jukebox for my bedroom,  its got use my existing components , have a remote of sorts and be quiet and low energy as possible.

Existing Components


n2640wb_m 

Vewsonic 26inch LCD Monitor

 

 

 

 

 

 

blog_120608_4

 

 

VIA Mini-ITX ML 1000 

 

 

 

 

 

blog_120608_5 

 

Lian Li PC-9100

 

 

 

 

 

 

 

New Items


blog_120608

 

 

Logitech diNovo Mini

 

 

 

blog_120608_1

 

1GB PC2100 Memory

 

 

 

blog_120608_2

 

 

Pioneer Slime Line DVD-Burner

 

 

 

 

  blog_120608_3

 

 

 

ATA 320Gb HDD

 

 

 

The Software


There were 2 choices: blog_120608_6

 

MediaPortal

 

 

 

 

blog_120608_7

 

My-HTPC

 

Media Portal, is large well featured and very pretty but it is build for faster machines, on my setup all menus were un-responsive and this kills the application for a jukebox. I chose to use my-HTPC, its a shareware application that ceased in 2003 however it is an excellent front end for media and since I use media player classic for movies and DVD's I don't need these integrated features anyway.  The drawbacks are no support for play-lists and some odd control behaviour and the big one its no-longer in development.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:   , ,
Categories:   General | Life and Stuff | Projects
Actions:   E-mail | Permalink | Comments (444) | Comment RSSRSS comment feed

Movies: Indiana Jones and Crystal Skull

Thursday, 5 June 2008 00:55 by Frimbob

blog_050608Well having just seen the latest Indiana Jones incarnation, I have to warn others to be ware. It is a fun movie worth 15 dollars admission but the plot is to say the least is stupid and really does not satisfy by the end.  A few years I would have said it was cool, but older an better read I just see a contrived plot. 

I give it 3 stars, and say the Last Crusade should of stayed the last.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:   , ,
Categories:   Life and Stuff
Actions:   E-mail | Permalink | Comments (293) | Comment RSSRSS comment feed

Working out a Study Plan

Monday, 26 May 2008 22:22 by frimbob

I have 2 final exams this period.

First is for my OOP (object oriented programing ) aka C++ class on the 11th of June and a second exam for Developing Web apps with XML on the 17 of June.

I have been giving some though to a study plan for both Classes

  • Arrange reference materials
  • Search for past papers
  • Make notes and review.

I have borrowed out an O'rielly text XML in a Nutshell 3rd edition from the Penrith library, for my OOP class I believe the supplied text 'Thinking in C++'  As well as the  lecture notes will be sufficient for the exam.

I have checked the UWS library past exam papers , but both classes do not have any contained in the database. This was not unexpected and is usual for the school of Information and Technology.

Now for the Study plan for XML, I will need to cover the following sections.

1. XML fundamentals

2. DTD's

3. Schemas

4. XSLT

5. XPath

6. XForms

7. XML DOM

Study Plan for C++(OOP)

1. Inheritance

2. Virtual functions

3. Constants

4. Class Declarations

5. Data-Types, pointers and references

6. STL and collections

I will have to review the code from the lecture as it will play an important role in the exam questions. 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   Life and Stuff
Actions:   E-mail | Permalink | Comments (158) | Comment RSSRSS comment feed

Recent Book Purchases

Monday, 26 May 2008 17:31 by frimbob

Its that time again, I purchased these titles from www.mobipocket.com/.

Orion's Hounds (Star Trek: Titan, Book 3)

[http://www.amazon.com/Orions-Hounds-Star-Trek-Titan/dp/141650950X]

Stardust Movie Tie-in

[Neil Gaiman, http://www.amazon.com/Stardust-Movie-Tie-Teen-Gaiman/dp/0061240486/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1211777921&sr=1-1]

The Sigma Protocol

blog_260508

[Robert Ludlum, http://www.amazon.com/Sigma-Protocol-Robert-Ludlum/dp/0312982518]


From My normal book store Dymocks Aus.

VSTO For Mere Mortals

 61gAnmoK7qL._SL500_AA240_

[Kathleen McGrath,Paul Stubbs ,http://www.dymocks.com.au/ProductDetails/ProductDetail.aspx?R=9780321426710]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   Life and Stuff
Actions:   E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

This made me laugh

Saturday, 12 April 2008 18:50 by Frimbob
2008-03-26_pcw

(Click To Enlarge)

More can be found at http://www.bbspot.com/.

What are you waiting for? GO now :-)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   Life and Stuff
Actions:   E-mail | Permalink | Comments (840) | Comment RSSRSS comment feed