Showing posts with label Dissertation. Show all posts
Showing posts with label Dissertation. Show all posts

Monday, 6 July 2009

jQuery Zebra Highlighting for Tables

Cheers Tom for the driving lesson.

For my dissertation I used a number of tables to illustrate the modules on offer and some normalization. In order to make 'em a little less boring I used different classes for alterate rows... which was tedious to say the least. Then I came across the Zebra Widget for TableSorter, a rather cool jQuery plugin.

This was easy to include and added the benefit of allowing me to sort the data in the table by using the tablesorter functions... it might have been easier to just have the zebra highlighting but I wasn't sure if I'd ever need the facility of sorting the data... couldn't hurt now could it?

Anyway, to get it working I placed this in the head:

    <script type="text/javascript" src="../js/jquery-1.2.3.min.js">
    </script>
    <script type="text/javascript" src="../js/jquery.tablesorter.min.js">
    </script>
    <script type="text/javascript">
      $(function(){
        $("table").tablesorter({widgets: ['zebra']});
      });
    </script>

Of course, if you've a number of tables on your page you can use the power of jQuery selectors to be a bit more choosey about which one/s you choose to have the script work on... I just had the one table on the page so just used "table".

Along with the script inclusion above you'll also need to alter your CSS to something like:

tr.odd{
 background-color:      #999999;
}

This'll allow the script/widget/plugin to alter the appearance of your rows... of course it means that the default background-color of the rows will have to be something other than gray 60 wink.

Saturday, 5 August 2006

Clever old stick

DOMINIC RICHARD MYERS

has been awarded

MASTER OF SCIENCE
DISTICTION

having followed an approved programme in

COMPUTER SCIENCE

06-JUL-2006

ModuleLevel% MarkCredits
Analysis and Design of Computer Systems48910.00
Design and Implementation of Software Systems47520.00
Logic and its Applications48510.00
Social and Ethical Issues in Computing46610.00
Computer Architecture45810.00
Development of Object Oriented Systems46920.00
Systems Analysis and Database Design46220.00
Networked Computer Systems47520.00
Database Administration46210.00
Intranets and the Internet46010.00
Postgraduate Independent Learning Module44810.00
Masters Project (30 credits)47130.00

Needless to say I'm pleased as a very pleased thing... now what to do next...?

Saturday, 13 May 2006

Bloody done

I've finished the dissertation... what I fantastic bit of news that is ehh? Well, I think it's fantastic anyway wink.

Interesting putting it all together as well as I've decided to use the built in support for pdfs included in OS X, which means that I can print it on a PC, any PC at that, which is cool!

pdf is a pretty cool tool TBH, a really rather fancy way of going about things. I've installed ghostscript and all sorts of other stuff which is helping with it too. It'd be nice to be able to add bookmarks as well, but there you go ehh?

Wednesday, 22 March 2006

12K

I'm hitting the 12,000 word mark so I'm nearly there I guess. YAY!

Having a bugger of a time tracking down a nice font though as the Mac uses Helvetica Neue and I can't seem to find it anywhere for less than about 400 euros... which is just a bit steep for me and I need it to do some editing on the PC of Appendices and such like. For instance, I need to drop the page number in the Appendix to something less than 150 or I'll need to sell my liver in order to pay for it... not sure anyone'd buy my liver thinking about it...wink.

Won the Pub Quiz at the The Green Dragon, Cambridge a couple of weeks ago, thanks to Phil and Graham!

I sent Phil a picture of my prize (They give you a voucher for a free drink if you win), which I'd framed and put on the wall of the boat... he seemed a little unimpressed... ahh well.

If anyone should be getting naffed off with links to bits of the dissertation not working then please be advised that it's moved to here as I needed somewhere that had PHP5 and thought I'd consolidate all the dissertation stuff in one place. It's password protected so you'll have to ask for access I'm afraid!

Tuesday, 14 March 2006

update on all sorts o' stuff

Up to 7.5K words on the old dissertation. Yay!!!!

Thoroughly enjoying it as well, which is nice I guess

That's it really... though I have been playing with animated gifs using the GIMP and came up with this to show development of my web-application dissertation:

development matrix

Also decided that running DOS-Box was a wee bit silly on such a slow machine as my Mac so I got rid of it sad.

Monday, 20 February 2006

Feedback...?

Found the need to analyse some server stats. today and the hosting that I was using didn't have a package available so I googled and found Visitors which is damn fine. This all because of this post on Kiwi's Forums. Basically I'm after some testing of a site that I'm working on... well actually it's 2 pages on 1 site that I'm working on TBH. The 1st is a traditional web-based application the 2nd uses brand spanking new technologies (Well, they might be old but they're new to me wink).

You might have already guessed it but it's part of my dissertation and I think that I'm there in terms of the software. Now if I could only get over this cold and feel like my brain isn't swimming in snot rather than cerebral spinal fluid I'd be sorted. Then I can go about improving Rodin a little bit more and the world'll be my winkle.

Anyway, back to visitor, it can output a file that Graphviz can turn into SVG... well, you know how much I love SVG so I just had to give it a go. This is primarily for my own reference TBH but the commands I use can be used by anyone:

To output all the data I'm likely to need as html:

% visitors -A [log name] --trails --prefix [domain name]
> [name of file].html

To output a file ready for Graphviz and then run it to create an SVG image:

% visitors [log name] --prefix [domain name] --graphviz
> [name of file].dot
% dot [name of file].dot -Tsvg > [name of file].svg

Sunday, 12 February 2006

Boxer on mac

Well I've installed Boxer 7.5a on my mac. "How?", I hear you say. "Why?", I hear others say.

The "Why" is simple enough to answer; why does someone climb a mountain? Why does someone sail around the world single-handedly? Why, ohh why, does the butter always hit the lino instead of the bread landing butter side up? "Why?", is a damn fine question and I just wish I had an answer. I guess that it's partially because I've always loved Boxer. It was the first proper piece of software that I ever bought just for the sheer love of it. I tried the demo and I was hooked (Has anyone else pondered the possibility that shareware software is a little like the small taste of smack given to the kids as they leave school by the shady character with the pierced nose hanging around the gates? No? Must just be me then wink).

I think it's also because I can install Boxer on a mac TBH, I shouldn't be able to but I can and I love it... though it's getting to be a pain to configure the bugger and the screen keeps losing focus and the short-cuts keep setting off things on the mac which I wish they wouldn't! I run it on my XP machine as well, Boxer I mean, both the latest version (11 I think) and the old 7.5a as well. I seem to remember it being the dog's danglies for working with Java (the DOS version that is)... but I upgraded didn't I? Glad I did like, but all the same... I can't help feeling a little nostalgic about the DOS version. Most everything I code ends up either being written on or edited on Boxer at one stage or another and my dissertation is making full use of the colour syntax highlighting in the Appedixes (Can never figure out how to spell that wink) so I can print out the code with PDF Creator.

The "How?", now there is a question worthy of an in-depth howto but I can't be arsed TBH, suffice to say that the judicial use of DOSBox was involved. Still a wee buit flacky there as there isn't support for the %PATH% variable and such like but not all that bad at all really.

Also started a new site just for my dissertation which will allow me to develop both at home, at college and at work (If time allows while I'm on breaks and such). Actually I'm nearly there I think and I'll need to brush up on my Mellel skills in order to write the bugger up properly.

That's enough for now I think. Until next time, take care.

Before I go I'd best put this in though:

Boxer Software, developers of the award-winning Boxer Text Editors

Wednesday, 25 January 2006

2nd Appendix

The second appendix is done.

I've also been a wee bit busy with my camera and these pictures are of the Cam during a lovely sunset a week or two ago:

raging swan
sunset 1
sunset 2
sunset 3

I'm bloody lucky to live in such a gorgeous place TBH wink.

Saturday, 21 January 2006

Slow going

Ajax is doing my poor likkle head in! I did loads of work last week on my days off and I tried, I really tried, to do some while at work - but I justcouldn't do it! Don't know what was the matter but it really did mess my poor head up a lot.

Decided to do some collation work instead and got the 1st Appendix in shape (Imaginatively called Appendix01.pdf). Basically it is all the old stuff to do with the dissertations development. Basically it is old and nasty and I don't like it - not least because it uses txtdb, which in and of itself isn't such a bad thing as it uses a .txt file as a database, but it is so very slow... of course my noobie knowledge of coding didn't help much in terms of making the programs run faster, I'm so much better now - yet I've still got such a long way to go (I even noticed that some of the html outputted by my early work isn't W3C compliant... now that simple wouldn't do today! I'm so happy that I then converted to MySQL and thence to SQLite... Just goes to show you ehh?

The 2nd Appendix still needs a little work as I've not quite sorted out the files that'll need to go in it. But I'm getting there slowly, I guess I'll stick that on when I'm at work next as I dare say I'll not feel up to working then either sad.

What else is happening? Not a lot really... coming up to January the 23rd, so look after yourself ehh? I'm not Catholic but that was about the best link I could find wink.

Tuesday, 20 December 2005

Rounded corners with tables

This is a test of creating rounded corners using tables. It took me ages but I figured out that I needed to define the first row even if it was 7 repititions of a 1 pixels block of the same colour. Browsers use that as a starting point for the rest of the table.

Basically what I've got here is a 3 by 3 table with each corner holding a 7 by 7 table with a nice progression that I worked out not so long ago whilst carrying out another project.

I've put it beneath but I think you'll be able to see the progression as being nice and consistent. I think so anyway.



drm-powered

This is just a test of the onChange thing for drop-down lists. It seems to work so far wink.

This is another way of doing it, from here:

Simple Corners

Four walls makes a house, four corners makes a rounded rectangle. That's all there is in this example.

Thursday, 15 December 2005

Cool buttons!

txtdball
txtdb
txtdb
txtdb

Created these with the amazing 80x15 Brilliant Button Maker. I had a nice txtdb one that is available on their site but I couldn't find one for MySQL, SQLite nor Ajax so I just had to make some. The MySQL one uses the colours from their logo. The SQLite one has the logos colour on the left and the default on the right. The Ajax one has the colour of the cleaning product logo, which is just red really wink! Excuse the table but that's the colour scheme on the old page where they were displayed and I wanted to do a nice mock-up of what I think they should look like. Except that the real page is residing on the server on my mac and the hosting here doesn't support SQLite and txtdb was so slow on here that I had to take it off sad...

The button maker is really cool and I'm well impressed. I found it as a result of messing around with the Stumbleupon plug-in for Firefox... I think that that is quite enough links for now!

I just couldn't resist this: drm

Friday, 9 December 2005

Slight Update

Updated Literature Review, (My tutor suggested that I password protect this, email me for access if you feel you really, really need to read it wink) gone back to Mellel as NeoOffice/J was sooooo slooooow it was painful! Besides, I figured out how to do foot-notes! And it produces pdf files as well! Not sure that I like foot-notes but they're not too bad an idea really.

Couple of nice icons which I've come accross as well, think they were from dA:

fairysquirt
FairySquirt

Also been using Inkscape on the good old Mac and I'm generally impressed. I used it to create the figures in the literature review and I like the mix of freehand stuff and the ability to get to grips with the underlying XML as well... particularly useful when you need to place things exactly in line and such like. I used to use it on the PC and used Sodipodi prior to that (I think Inkscape is a branch of the Sodipodi stuff...?), but now that it's available for the Mac I'm not looking back! Did crash a couple of times but you gets what you pays for and it's free wink!

Wednesday, 30 November 2005

Update

What a really cool idea Oxfam Unwrapped is! There was a thing on radio 4 yesterday morning slagging it off but I think it is the bees knees. You can buy something for someone that'll do some good somewhere else! If it's the thought that counts then it is a pretty neat thought I think... but then again I guess I would wouldn't I wink

What I'm also doing at the minute (apart from justifying myself in a blog), is listening to computer science podcasts. They're brilliant and I'm enjoying 'em (the podcasts) as much as I did the first days of my course... if not a little bit more really.

I'm also getting to grips with NeoOffice/J for the mac as my tutor likes footnotes and Mellel just won't play with 'em I'm afraid. It's a crying shame as well as I love the program and it's as fast as lightening on my machine. I'm not overly happy with the complexity of NeoOffice as it seems to be as feature rich as Word... something I'm not overly pleased with really.

Friday, 18 November 2005

Progress

This is where my literature review is living at the minute. I'm aiming for about 3-4K words on the bugger as its worth about 25% of the mark for my dissertation. Enjoying it so far but will need to be done by Xmas. Will finish off the internet thing soon then going to have a look at the browser wars... then gonna have a squint at AJAX and look at the state of the literature there... I've finally managed to find some references for it but they're mostly in low grade sources such as .NET magazine. Not that .NET magazine is pants, quite the opposite really as I get it nigh on every month, it's just that it's not exactly an academic journal.

There are a fair few references in newspapers as well but mostly we'll be looking at blogs and podcasts (Still need to look at how to reference a podcast wink.)

Tuesday, 15 November 2005

1st bit of literature review

No discussion of the provenance of Asynchronous Javascript and XML techniques (henceforth to be known as AJAX) would be complete without looking at the internet and its development over the past few years.

Licklider is credited with being the "father of the internet". He discussed the concept of the "Galactic Network" in 1962 in a series of memos where he envisioned a globally interconnected set of computers through which users might access data and programs from any machine (Liener & Cerf et al, 2003). Licklider was made the head of the computer research program at the U.S. Department of Defense Advanced Research Projects Agency (DARPA) soon after and it was here that he promoted, and subsequently encouraged his successors to promote, an all-encompassing computer network when he left in 1964. DARPA itself had been created by President Eisenhower in 1958 as a line item in an Air Force appropriations bill in order to pursue research and development of technologies which might be of benefit to the military. It is believed that its creation was a direct response to the launching of the Sputnik satellite by the USSR. Eisenhower later made comments warning about the rising economic, political and spiritual power of what he coined the "military-industrial complex". In a speech he gave before leaving office he listed technological issues as being one of the gravest threats facing the USA, on the one hand he warned about scholars being manipulated by the financial power of the "military-industrial complex", while he was also conscious of "the equal and opposite danger that public policy could itself become the captive of a scientific-technological elite" (1961, 1035-1040).

While Licklider provided the concept of the internet, three teams were working concurrently on the technologies which made the internet possible. Kleinrock had published the first paper on packet switching technology in 1961 (Klienrock, 1961) at the Massachusetts Institute of Technology (MIT) where he continued to work on the technology until 1967. About the same time (1962-1965) the RAND Corporation, sponsored by the United States Air Force, was funding Baran who came up with the concept of robust communications networks through a distributed network rather than the centralized or decentralized networks models popular at the time. Primarily he was concerned with "a communication network which will allow several hundred major communications stations to talk with one another after an enemy attack" (Baran, 1962). He also worked on packet switching techniques. Packet switching was also worked on independently by Davies of the UK's National Physical Lab between 1964 and 1967.

Roberts (convinced by Klienrock's theories about packet switching) succeeded in creating the first ever network of 2 machines over a telephone line at MIT in 1965. In 1966 Roberts was recruited by DARPA and within a year put together a plan for the ARPANET which he presented at the ACM Symposium on Operating Systems Principles conference (Roberts, 1967). There, Davies and his team made him aware of the work of Baran. In 1968 the theories of the three teams were refined into a final specification for the ARPANET which was commissioned by the USA Department of Defense in 1969 for research into networking (PBS Online, 1998) . However, it has been suggested that ARPANET was originally conceived of as a way for DARPA contractors to share computing resources (Griffin, 2000).

More and more computers were added, and more and more networks were connected to ARPANET, making the first internet, or network of networks. It was eventually decommissioned in 1990 but not before many of the protocols which make up the modern internet were tested upon it. ARPANET was demonstrated to the public in 1972 at which time work commenced on a second generation of network protocols based upon the packet switching ideas developed by the three teams above. By 1982 a family of new protocols had been developed. The Transmission Control Protocol - responsible for host communications, and the Internet Protocol - responsible for routing and addressing (more commonly known as TCP/IP) were by far the two most prominent members of this family (Davidson, 1988). TCP/IP has the benefit of being operating system agnostic and though originally developed for large systems it was demonstrated by Clarke that it enabled workstations to be networked as well as the large systems. Asleson and Schutta (2005) see the development of TCP/IP and the personal computing revolution of the 1980s and 1990s as another significant step along the way to the networked world in which we reside today. We can see that the impetus for the creation of the internet came from Licklider, that its architecture was primarily the responsibility of Baran, that the protocols used upon it were developed by Roberts, Davies and Baran, but the final contributer towards todays Internet and World Wide Web is Berners-Lee.

Berners-Lee believes the concept of the internet predated the work of Licklider and notes that Vannevar Bush wrote about a machine called the Memex in 1945, and Ted Nelson wrote of 'Literary Machines' in 1965 (Berners-Lee, 1999). Nelson's machines, once networked, would allow users to share information as equals using a process he termed hypertext. Hypertext was also the basis of a collaborative workspace called On Line System developed in the 1960s by Doug Engelbart at Stanford. But their contributions, while visionary, didn't come to fruition in the way that Licklider's did. Berners-Lee is also conscious of the element of timing in the success of his work. He states, "I happened to come along with time, and the right interest and inclination, after hypertext and the Internet had come of age. The task left to me was to marry them together" (Berners-Lee, 1999, p7).

Handley and Crowcroft (1995) are amongst many who credit Berners-Lee with the creation of the World Wide Web. Berners-Lee used the idea of hypertext as developed by Nelson and Engelbart to link documents together. In much the same way as an academic paper has references to other academic papers Berners-Lee thought that it might be appropriate for references in electronic resources to link to other electronic resources using an addressing scheme. This would allow the reader to directly access the referenced resource by clicking on a link in the document. Initially these links were called URNs (Universal Resource Name), later they were known as URLs (Universal resource Locator), and more recently they are called URIs (Uniform Resource Identifier). More colloquially they are known as web addresses. Berners-Lee wasn't alone in his enthusiasm for hypertext but he was initially alone in his belief in the possibilities of placing hypertext on the internet. After looking at already available hypertext products he decided that a simplified subset of Standardized General Markup Language (SGML) which he called Hypertext Markup Language (HTML) would, combined with a protocol called Hypertext Transport Protocol (HTTP), provide a mechanism by which scientists working on diverse hardware platforms would be able to share data in a universally accessible format over the infant internet.

Charles Goldfarb, the creator of SGML, saw its development as result of the work of a number of individuals active in the late 1960s whose main concern was the presentation of printed material (Goldfarb, 1990). A number of people proposed splitting the data contained in documents from the formatting of documents; the formatting would then be described in specific ways. Goldfarb took these ideas, and with his colleagues at IBM in 1969, created GML in order to allow text-editing, formatting and information retrieval subsystems to share documents in an integrated law office information system.

Goldfarb continued to work with markup languages (Goldfarb & Prescod, 2001) and designed SGML to have: Common data representation allowing different hardware/software combinations to read and write the same document; flexibility to be able to work with any of the myriad different types of document; Rules for the creation of a formal description of documents of the same type.

While Goldfarb started work on SGML almost immediately after his work on GML, it wasn't until 1974 that SGML was properly proven. This was when Goldfarb proved that software could check the validity of a document against its document type definition. SGML was ratified as a standard in 1986, though it had been in use for some time prior to this in industry.

Eisenhower D (1960) "Farewell Radio and Television Address to the American People" (January 17, 1961) IN Public Papers of the Presidents, p. 1035-1040 Washington: GPO Also [WWW] http://millercenter.virginia.edu/scripps/diglibrary/prezspeeches/eisenhower/dde_1961_0116.html
Leiner B & Cerf V et al (2003) A Brief History of the Internet, version 3.32 [WWW] http://www.isoc.org/internet/history/brief.shtml
Klienrock L (1961) Information Flow in Large Communication Nets RLE Quarterly Progress Report
Baran P (1964) Rand Memoranda on Distributed Communication [WWW] http://www.rand.org/publications/RM/RM3420/
Griffin S (2000) Internet Pioneers [WWW] http://www.ibiblio.org/pioneers/index.html
Roberts L (1967) Multiple computer networks and intercomputer communication Proceedings of the first ACM symposium on Operating System Principles
PBS Online (1998) Nerds 2.0.1. Timeline [WWW] http://www.pbs.org/opb/nerds2.0.1/timeline/index.html
Davidson J (1988) An Introduction to TCP/IP New York: Springer-Verlag
Berners-Lee T (1999) Weaving The Web The Past, Present and Future of the World Wide Web by its Inventor London: Orion Business Books
Asleson R & Schutta N (2005) Foundations of Ajax Berkeley: Apress
Handley M & Crowcroft J (1995) The World Wide Web Beneath the Surf London: UCL Press
Goldfarb C (1990) SGML HISTORY [WWW] http://xml.coverpages.org/sgmlhist0.html
Goldfarb C & Prescod P (2001) THE XML HANDBOOK 3rd Ed. Prentice Hall

Friday, 4 November 2005

Dissertation Title

Now got the title of my dissertation, it's taken a while but I think I'm there and it sounds okay... I think it does anyway. You ready for it? Really? Okay, here goes:

Little Bits of Changes:

Comparing traditional web applications with applications built using the AJAX paradigm in the context of a module choice milieu within an academic community.

What do you reckon to that then?

Pretty cool I think, I particularly like the use of the word "milieu", definitely one to watch that, that's the one and only time I'll use the word... ever I think wink.

Monday, 3 October 2005

Been busy

Sorry for not writing anything for a while but I've been busy with a project or two.

Firstly I'm getting to grips with my dissertation - and thoroughly enjoying it too.

Secondly I've been doing some design work for an architect chap by the name of Anil Barnes.

It is lovely being able to mess around and I've managed to cobble together a script which did what I wanted in terms of an image slideshows, and what have you, for his site. I keep getting back to having a site on a page and the address not altering but the content being dynamic in terms of what's pressed on the page. I like that a lot but it'll kill the back button on bigger sites I guess...? Perhaps I don't care wink?

Anyway, the address is here and the original address used for development is here.

Sunday, 4 September 2005

How odd

My trusty PC must be feeling a bit left out at the minute, a bit neglected really. It's not it's fault really, it's just that I've fallen for mac in such a big way that it really doesn't have look in anymore. I've pulled it up today (The PC that is.) and tried to do stuff but I'm left thinking of something a mate said when they learnt how to drive in France... was something along the lines of being able to drive badly in both place, non of the keys are in the right place and the short cuts are all different.

My mac is slow but it's got apache already installed and has PHP and MySQL all easily installable - and you know I've installed them too - and I'm developing stuff on that quick as a flash... mainly because it's just so nice to use I think.

Anyway, enough of this, it's time to get back to some work again.

As an extra nugget of data purely for my own benifit:

I've come to understand where my somewhat mystical bent came from after coming across The Complete Adventures of Robin of Sherwood from the popular TV series by Richard Carpenter with Robin May and Anthony Horowitz (ISBN 0-14-034450-0) at work. I'd forgotten about the series staring Jason Connery until I came across this and then all I could hear afterwards was the music by Clannad in my head. It was a cracking bit of telly and no mistake and I can remember being well naffed off when it ended... ahh well.

Needless to say I'll be plowing through it (along with all the other books I'm in the process of reading at the minute).

Saturday, 27 August 2005

More cool links for AJAX

Found these via a story on slashdot.

This has some nice illustrations that'll have to get borrowed for my stuff.

This is probably repeated somewhere, but what the hell!

This is a very quick tutorial.