<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chris Norton &#187; madman</title>
	<atom:link href="http://www.chnorton.com.au/tag/madman/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chnorton.com.au</link>
	<description>A blog about software engineering, web development, education and my otaku interests.</description>
	<lastBuildDate>Wed, 16 Dec 2009 13:51:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Madman.com.au is Temporarily Unavailable</title>
		<link>http://www.chnorton.com.au/2007/12/11/madmancomau-is-temporarily-unavailable/</link>
		<comments>http://www.chnorton.com.au/2007/12/11/madmancomau-is-temporarily-unavailable/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 16:13:16 +0000</pubDate>
		<dc:creator>Chris Norton</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[anime]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[madman]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.chnorton.com.au/2007/12/11/madmancomau-is-temporarily-unavailable/</guid>
		<description><![CDATA[OK, so I&#8217;ve made some comments about the Madman site in the past but lately I have been getting more and more upset by outages in the service. Right now that has really reached boiling point as I&#8217;ve been trying to get to the site for the last 7 hours. Read on for more ranting [...]]]></description>
			<content:encoded><![CDATA[<p>OK, so <a href="http://www.chnorton.com.au/2007/08/29/improvements-for-madmans-website/">I&#8217;ve made some comments about the Madman site in the past</a> but lately I have been getting more and more upset by outages in the service. Right now that has really reached boiling point as I&#8217;ve been trying to get to the site for the last 7 hours. Read on for more ranting on the subject, along with some (hopefully) constructive criticism.</p>
<p><span id="more-190"></span>For the last month I&#8217;ve been seeing the following on an increasingly frequent basis:</p>
<p><img src='http://www.chnorton.com.au/wp-content/uploads/2007/12/503.jpg' alt='Madman 503 error page' /></p>
<p>For the lead up to Christmas, and to coincide with Madman&#8217;s various sales and promotions, this error page is seen more often than not. At least by me. When I see this I tend to get visions of a lone server sitting in a drab room in a Collingwood office building, quietly struggling to keep up with the number of connections and serve out hundreds of pages, images, scripts and, now, high-quality streaming video.</p>
<p>I think one thing has been made painfully obvious at this point, and it&#8217;s something that should have been learned during the 10th Anniversary Sale: Madman need to upgrade their web service! I mean, really, there are ways to deal with higher than normal loads and they don&#8217;t need to be terribly expensive.</p>
<h3>Optimise the web application.</h3>
<p>This should be the first port of call. I&#8217;m thinking that the number of database queries should be minimised, output size should be reduced, Java code optimisations should be researched, caching should be implemented and generally have the whole thing given a thorough going over.</p>
<h3>Break up the processing responsibilities.</h3>
<p>Since the site runs on Java I&#8217;m going to assume they&#8217;re running a <a href="http://tomcat.apache.org/">Tomcat server</a>. I hope this same server is not used for serving static content like images &#8211; the <a href="http://httpd.apache.org/">Apache HTTP Server</a> is a much better fit for that. At the same time, it&#8217;s probably best to use a few servers to perform load balancing and to allow the database server(s) to run on different hardware to the web server(s). This should ensure that no one place is placed under too much load.</p>
<h3>Use a Content Delivery Network</h3>
<p>This would probably result in the most drastic improvement for the least amount of work. Using a <abbr title="Content Delivery Network">CDN</abbr> like <a href="http://aws.amazon.com/s3">Amazon S3</a> or <a href="http://www.akamai.com/">Akamai</a> would allow all the static content (and there&#8217;s a lot of it) to be served from servers that are designed to handle almost any load and bandwidth requirements. I&#8217;m thinking the streaming trailers would benefit the most from being moved to a CDN, if they&#8217;re not on one already. On top of the benefit of reducing bandwidth needs and the number of active connections required to the Madman server, Akamai and possibly others provide services to increase the availability of web applications (&#8221;Web Application Acceleration&#8221;) &#8211; particularly Java-based ones. I can&#8217;t say how well these would work here and whether they&#8217;d be necessary once other optimisations are performed but it&#8217;s definitely something to look into.</p>
<p>Well, I think that about sums it up. A few things that could be done, the last being quite simple, to improve the availability of the Madman site and ensure potential customers get turned into actual customers and the raving fans are placated with their anime crack.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chnorton.com.au/2007/12/11/madmancomau-is-temporarily-unavailable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eGames &amp; Entertainment Expo 2007: Report</title>
		<link>http://www.chnorton.com.au/2007/11/18/egames-entertainment-expo-2007-report/</link>
		<comments>http://www.chnorton.com.au/2007/11/18/egames-entertainment-expo-2007-report/#comments</comments>
		<pubDate>Sun, 18 Nov 2007 10:14:00 +0000</pubDate>
		<dc:creator>Chris Norton</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[convention]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[madman]]></category>

		<guid isPermaLink="false">http://www.chnorton.com.au/2007/11/18/egames-entertainment-expo-2007-report/</guid>
		<description><![CDATA[The eGames &#038; Entertainment Expo was, overall, an enjoyable convention that let me check out a bunch of new games without having to actually pay money for them!]]></description>
			<content:encoded><![CDATA[<p>This was the first games expo I&#8217;ve attended but I must say that it was largely what I would have expected: various game companies pushing their latest games and consoles (Sony and Nintendo doing the lion&#8217;s share), various tertiary education institutions pushing their games-related courses (sadly Melbourne Uni hasn&#8217;t caught on) and various vendors trying to sell you stuff. Still, overall it was quite enjoyable and great to be able to check out the latest games without having to, say, buy a PS3. Following are some of my highlights from the event and my general review.</p>
<p><span id="more-180"></span>As I mentioned before, Sony and Nintendo were doing most of the marketing &#8211; they each had large areas assigned to them and were showing off at least a dozen games each as well as their respective consoles and handhelds. Sony in particular went to great effort to put their games on large, 1080p HDTV screens to maximise the eye candy of the PS3. Nintendo, on the other hand, seemed content to let the games do the talking for them (<i>Super Mario Galaxy</i> had queues of people lining up to play). Microsoft had a huge inflated Master Chief helmet but they weren&#8217;t really showing off much in the way of games, only <i>Halo 3</i> and <i>Mass Effect</i> running on a couple small screens. One of the interesting things is that, because you have both consoles makers and games publishers at the same event, it&#8217;s sometimes confusing as to who is responsible for what. For instance, Yamaha had an area and were using a Wii to show off their surround sound systems but from a distance is almost looked like another Nintendo booth.</p>
<p>The games of the day for me were <i>Crysis</i>, <i>Heavenly Sword</i> and <i>Assassin&#8217;s Creed</i>. <i>Crysis</i> looks gorgeous but mostly the same in terms of gameplay (no surprise there). <i>Heavenly Sword</i> I had to describe to someone as an &#8220;ocular orgasm&#8221; because it <em>just looks that good</em>. The gameplay did look a bit tame but I think the visuals alone would justify a purchase if it cost about $75 (<a href="http://www.ebgames.com.au/PS3/product.cfm?ID=6292" rel="external nofollow">it doesn&#8217;t unfortunately</a>). <i>Assassin&#8217;s Creed</i> was, I think, the darling of the expo as I believe I saw it in three different places: running on both Xbox 360s and PS3s. I couldn&#8217;t really tell much of a difference between the two versions, but at one point it looked like the Xbox version didn&#8217;t have shadows turned on. Weird. The game seems to be similar, gameplay-wise, to Thief or Splinter Cell but the graphics are very &#8220;next-gen&#8221; and it actually manages to convey a living world, filled with people. Most parts of the game I saw had at least 20 people on screen at any one time in narrow city streets.</p>
<p><i>Super Mario Galaxy</i> had a lot of people excited about it and the crowd around the three TVs running it were larger than most. I&#8217;m still trying to work out how exactly it&#8217;s played as there seems to be an odd two-player setup where two people control a single Mario. It does look like great fun though and the playing area is huge and seemingly allows for complete non-linear exploration.</p>
<p>There were a few competitions set up with <i>Call of Duty 4</i>, <i>Unreal Tournament 3</i> and so on. Some even had commentators. I&#8217;m not really into those sort of multiplayer games so I watched for a few minutes and moved on.</p>
<p>The main stage had different events running throughout the weekend but I never ended up checking any out. It looked like the usual sort of stuff though: panels, presentations and competitions. I think there was even a cosplay competition on at one point &#8211; obviously an attempt to try and maximise the audience for the expo. Unsurprisingly, the cosplay competition had what I think was the most number of people watching it.</p>
<p>Speaking of all things anime, Madman Entertainment had a booth in the middle of the convention hall. I ended up spending an obscene amount of money updating my anime and manga collections. I worked it out and I ended up saving roughly $60 by buying the stuff there instead of online or in a store. From now on I should try to do all my shopping at conventions!</p>
<p>One of the highlights of the expo was seeing tons of people walking around in some shirts from the Swinburne gamers club. Basically the shirt was red, with a send up of the OFLC&#8217;s R18+ logo, instead having the text beside it: &#8220;This rating not suitable for mature adults.&#8221; This is an old issue but still one that I think baffles a lot of people &#8211; why does Australia not have an R rating for games? All the other ratings have been brought into line with the movie ratings but for some bizarre reason the OFLC has refused to allow 18+ games to be sold (legally) in Australia. A sea of bright red shirts was a welcome sign of passive protest.</p>
<p>Something that didn&#8217;t surprise me but I still found interesting was the presence of a toned down version of &#8220;booth babes&#8221;. Basically, half the booths there had at least one, but usually several, hot women dressed in revealing clothes (hot pants, low-cut tops) to draw attention. What I found hilarious was at one booth where a bunch of guys were sitting around ogling <i>Assassin&#8217;s Creed</i> running on a 102 inch Panasonic TV &#8211; the two girls wandering around weren&#8217;t even getting a glance! I must admit, I only looked once myself before turning back to the game. Since I&#8217;m sure some women will be reading this, rest assured that they also had (what I assume to be) hot guys wearing tight t-shirts. I can&#8217;t comment too much on this though as I wasn&#8217;t really paying attention to them. <img src='http://www.chnorton.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So overall, I think the event was a success. There were plenty of people there and everyone looked like they were having a blast (sometimes literally, in a virtual sense). I definitely had fun and came away with a ton of swag so I&#8217;m happy, even though I didn&#8217;t actually spend more than a few hours there on Friday and Saturday. Did any readers end up attending? I&#8217;d like to hear what other people thought about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chnorton.com.au/2007/11/18/egames-entertainment-expo-2007-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Melancholy of Haruhi Suzumiya &#8211; DVD 1</title>
		<link>http://www.chnorton.com.au/2007/09/24/the-melancholy-of-haruhi-suzumiya-dvd-1/</link>
		<comments>http://www.chnorton.com.au/2007/09/24/the-melancholy-of-haruhi-suzumiya-dvd-1/#comments</comments>
		<pubDate>Mon, 24 Sep 2007 13:20:04 +0000</pubDate>
		<dc:creator>Chris Norton</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[anime]]></category>
		<category><![CDATA[madman]]></category>

		<guid isPermaLink="false">http://www.chnorton.com.au/2007/09/24/the-melancholy-of-haruhi-suzumiya-dvd-1/</guid>
		<description><![CDATA[If you've never heard of <i>The Melancholy of Haruhi Suzumiya</i> then what you firstly need to know is that it's one of the most popular anime series to hit the scene in a good while, to the extent of sparking a level pseudo-religious zeal, dubbed Haruhism, that comes as a sort of homage to one of the central premises of the show: that the eponymous heroine is, for all intents and purposes, God. The show itself is a superb blend of action, comedy and drama which includes plenty of deliberate fan service and a cast of strange characters, all seen from the point of view of the most incredibly normal and average person in world. Fans of anime in general will probably find something to like here.
]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve never heard of <i>The Melancholy of Haruhi Suzumiya</i> then what you firstly need to know is that it&#8217;s one of the most popular anime/novel series to hit the scene in a good while, to the extent of sparking a level pseudo-religious zeal, dubbed Haruhism, that comes as a sort of homage to one of the central premises of the show: that the eponymous heroine is, for all intents and purposes, God. The show itself is a superb blend of action, comedy and drama which includes plenty of deliberate fan service and a cast of strange characters, all seen from the point of view of the most incredibly normal and average person in world. Fans of anime in general will probably find something to like here.</p>
<p><span id="more-134"></span>Rather than go into a long and involved review of the plot, characters and culture of the show I&#8217;d like to cover the local release by Madman Entertainment. For a proper review of the material itself you can check out <a href="http://www.animenewsnetwork.com.au/review/the-melancholy-of-haruhi-suzumiya/dvd-1" rel="external nofollow">Anime New Network&#8217;s review</a> or, as usual, <a href="http://en.wikipedia.org/wiki/The_Melancholy_of_Haruhi_Suzumiya_(anime)" rel="external nofollow">the Wikipedia</a>.</p>
<p>The first thing to cover, if only to get it out of the way, is the episode ordering on the discs. I&#8217;ve <a href="http://www.chnorton.com.au/2007/06/23/the-melancholy-of-haruhi-suzumiya-aussie-release/">discussed my feelings this previously</a> and while I still fell the show works better when it&#8217;s <em>not</em> in the correct order, I find now that I&#8217;ve largely gotten over the whole thing. Watching the DVD you&#8217;re still introduced to the series with Episode 00 The Adventures of Mikaru Asahina, which is the same episode used to introduce the broadcast ordering. After that I wasn&#8217;t terribly put out watching the series in chronological order. Really, the only thing you miss is the increased sense of wackiness the show exudes when nothing is where it should be and the hilarious episode previews by Kyon and Haruhi (Yuki introduces them now in her typical monotone).</p>
<p>The quality of the video and audio is great, as you would expect. I&#8217;ve been a bit put out by anime DVDs in the past when it turned out that the video quality on the DVD was actually lower than the quality of the fansubs I&#8217;d downloaded. This is definitely not the case here: <i>Melancholy</i> has some of the highest productions values of any anime in recent years and Madman would have had to be insane (har har) to treat such an overwhelming fan favourite with anything less than their utmost respect. As I have ranted about before, I do wish that interlacing would be removed before the video hits the DVD but that&#8217;s about the only complaint I can level at it. If your DVD player does a decent job of deinterlacing you won&#8217;t even notice anything.</p>
<p>If you&#8217;ve previously seen a fansubbed version of <i>Melancholy</i> then chances are you&#8217;re going to want to listen to the Japanese dub again on the DVD, of which only Dolby 2.0 is provided, simply because that&#8217;s what you&#8217;ll be most used to. I would urge you to have a listen to the English dub though as it really is quite good. <a href="http://www.animenewsnetwork.com.au/encyclopedia/people.php?id=1074" rel="external nofollow">Crispin Freeman</a> does a fantastic job of capturing Kyon&#8217;s tone; you have only to listen to the work he does in Episode 00 to understand what I mean. The only voice that is still irking me is <a href="http://www.animenewsnetwork.com.au/encyclopedia/people.php?id=1283" rel="external nofollow">Johnny Yong Bosch&#8217;s</a> performance as Itsuki Koizumi. I don&#8217;t have any particular reason for this except that his voice is quite distinctive and he sounds too much like he does in his other anime roles (Ichigo in <i>Bleach</i>, Vash in <i>Trigun</i>, etc). I&#8217;m sure I&#8217;ll get used to it as the show continues.</p>
<p>There are quite a few extras on the disc, including the usual assortment of textless opening and closing, TV commericlas and Madman trailers which here are <i>Highlander: Search For Vengeance</i>, <i>Afro Samurai</i>, <i>.hack//Roots</i>, <i>Ah! My Goddess &#8211; Season 2</i>, <i>Hellsing Ultimate &#8211; Volume 1</i> (which nicely shows off Crispin Freeman&#8217;s Alucard) and <i>Karas</i>. Also included are a couple &#8220;Making Of&#8221; clips and three episodes of &#8220;The Adventures of ASOS Brigade&#8221; which, from my brief glance, seemed to be worth a few chuckles.</p>
<p>In typical Madman style they&#8217;ve provided you with the usual cover, featuring the hideous <abbr title="Office of Film and Literature Classification">OFLC</abbr> rating logos, and an alternative cover which is lacking them. I think I prefer the normal cover because I like the picture of Haruhi dragging Kyon around by his tie but you can decide for yourselves.</p>
<p><a href='http://www.chnorton.com.au/wp-content/uploads/2007/09/disc1cover.jpg' title='The Melancholy of Haruhi Suzumiya - DVD 1 - Cover'><img src='http://www.chnorton.com.au/wp-content/uploads/2007/09/disc1cover.thumbnail.jpg' alt='The Melancholy of Haruhi Suzumiya - DVD 1 - Cover' /></a> <a href='http://www.chnorton.com.au/wp-content/uploads/2007/09/disc1coverreverse.jpg' title='The Melancholy of Haruhi Suzumiya - DVD 1 - Alternative Cover'><img src='http://www.chnorton.com.au/wp-content/uploads/2007/09/disc1coverreverse.thumbnail.jpg' alt='The Melancholy of Haruhi Suzumiya - DVD 1 - Alternative Cover' /></a></p>
<p>On the topic of OFLC ratings I have to wonder if an MA15+ is really warranted in this case. Sure, the show does contain contain sexual themes (I think Mikaru gets put in some compromising position in every episode) but I don&#8217;t think this really goes beyond an M15+ rating at worst. The only thing I can think of is that it&#8217;s due to the allusion in one episode to Haruhi spreading around that the computer club president sexually assaulted Mikaru. The weird thing is, nothing like the word &#8220;rape&#8221; is ever heard since it&#8217;s actually bleeped out. So why such a strong rating? Especially for an <strong>animated</strong> title. Oh well, the things classification boards come up with these days.</p>
<p>I think the timing of this DVD release was quite inspired: it came out only days before Manifest so most of the otaku in the state (and even interstate) would have been in a particularly purchase-happy mood. I must admit that this is one of the first DVDs I&#8217;ve bought of an anime series that wasn&#8217;t in a complete boxset. I guess the temptation of a special bonus DVD with the episodes in broadcast order for simply too much for me to resist! If you&#8217;re planning on buying <i>Melancholy</i> in the near future keep in mind that the bonus DVD voucher is only in the collector&#8217;s box version and does not come with the DVD by itself.</p>
<p>Well, I think I&#8217;ve covered everything about the local release. I don&#8217;t think I need mention that <i>The Melancholy of Haruhi Suzumiya</i> is one of my all time favourite shows (anime or otherwise) and is highly recommended. It makes me hope that Madman will pick up the light novels for local distribution!</p>
<p>Incidently, if you want to grab a copy for yourself online you find <a href="http://www.madman.com.au/actions/catalogue.do?method=view&#038;releaseId=8535" rel="external nofollow">Volume 1</a> and <a href="http://www.madman.com.au/actions/catalogue.do?releaseId=8639&#038;method=view" rel="external nofollow">Volume 1 &amp; Collector&#8217;s Box</a> on the Madman website, as well as <a href="http://www.madman.com.au/actions/catalogue.do?method=view&#038;releaseId=8640" rel="external nofollow">Volume 2</a> available for pre-order. </p>
<p>If I left anything out or you&#8217;d like to know something further please leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chnorton.com.au/2007/09/24/the-melancholy-of-haruhi-suzumiya-dvd-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Improvements for Madman&#8217;s Website</title>
		<link>http://www.chnorton.com.au/2007/08/29/improvements-for-madmans-website/</link>
		<comments>http://www.chnorton.com.au/2007/08/29/improvements-for-madmans-website/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 18:13:11 +0000</pubDate>
		<dc:creator>Chris Norton</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[madman]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.chnorton.com.au/2007/08/29/improvements-for-madmans-website/</guid>
		<description><![CDATA[A short discussion of simple changes to the web site for Madman Entertainment I think would be easy to implement but make a huge difference to the usability of the site.]]></description>
			<content:encoded><![CDATA[<p>I noticed that <a href="http://www.madman.com.au" rel="external nofollow">Madman Entertainment</a> recently made a few improvements to their website. These things were fairly minor &#8211; changing the log in confirmation button from &#8220;proceed to checkout&#8221; and allowing for cross-session log ins so you don&#8217;t have to log in every time you visit the site &#8211; but go a long way towards improving the overall feel of the site. Since I&#8217;ve used the site for quite a while I thought I would go through some things that I think they should try to tackle in the near future.</p>
<p><span id="more-82"></span>
<p>I&#8217;ll start off by stating that I am operating mainly from the output of YSlow and somewhat on my own observations and knowledge. I did this because I want to concentrate on things which should be a bit more obvious and more easily &#8220;fixable&#8221; than something which requires an in-depth understanding of obscure web development topics. Besides, I don&#8217;t have access to their back-end system so I can only make general assumptions on anything except things sent to the browser. I believe the Madman site runs on a Java platform (because of a page of Java exceptions I got one day) so much of my PHP-based knowledge won&#8217;t be applicable and I might have some misunderstandings about how things work. If so I apologise in advance.</p>
<h2>Markup</h2>
<p>It&#8217;s great that they tried to use true XHTML, complete with XML declaration, but if you&#8217;re going to go down this route then at least check that the <a href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.madman.com.au">markup validates</a>!</p>
<p>The site also appears to use some non-standard attributes. I don&#8217;t know why this is the case but seeing as they&#8217;re not as dramatic as a supposed XML not passing a basic XML check I&#8217;m not going to worry too much about them. <img src='http://www.chnorton.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Remove Commented Out Code</h2>
<p>Really? Using HTML comments to remove markup from processing? May I suggest using Java comments instead? Or a version control system if you want to have access to previously written, but no longer needed, code?</p>
<h2>Remove Excess Whitespace</h2>
<p>This actually helps the first suggestion as well, seeing as the presence of whitespace before the XML declaration is one of the reasons the markup doesn&#8217;t validate. If you look at the source you can clearly see gaping holes, which is filled with newlines and tabs.</p>
<p>For example, there is 81 bytes of whitespace between the text &#8220;Add to Basket&#8221; and the enclosing anchor tag. Every time. Is this really necessary?</p>
<p>As an experiment, I went through one of the HTML files and removed a bunch of the whitespace manually. Nothing drastic &#8211; just the big chunks of glaring space that I found. (I also removed the unnecessary commented out HTML and JavaScript I mentioned above.) I managed to eliminate 5K off the original 34K size. When gzip compressed (at -9), as would be done for HTTP transfer my &#8220;cleaned&#8221; version resulted in a filesize of 5.3K, compared to the original&#8217;s size of 6.1K. A 13% saving on every page is certainly nothing to sneeze at for a site which has a large amount of traffic (I assume).</p>
<p>I understand the likely reason for this: when the code is seen in the template it is nicely formatted and so looks nice to the site developer. Who really cares about the code sent to the browser? It&#8217;s not like people look at it anyway, right? (cough) Well, the two reasons to remove at least <em>some</em> of the whitespace are to allow the page to validate at the most basic level and to shave off some excess flab from page transfers.</p>
<h2>Use Compression</h2>
<p>The actual HTML is sent compressed, which is good, but none of the secondary files are. CSS and JavaScript are sent &#8220;raw&#8221;, which isn&#8217;t great when the basic CSS files are 21K all up and the JavaScript in the member area is a mind-blowing 152K spread across 8 files (they use Google Analytics as well but Google nicely sends that code compressed).</p>
<p>Compressing all the JavaScript files results in a total of 37.3K to download &#8211; less than the size of the prorotype.js file before it has been compressed! If all those files are combined <em>before</em> being compressed then an extra 3K is shaved off, leaving us with a 34.2K download, along with fewer HTTP requests to make to get it. This can be done with something like <a href="http://www.ejeliot.com/blog/72" rel="external">Ed Eliot&#8217;s combine script</a>, which is written in PHP but I&#8217;m sure the idea can be easily adapted to Java, if not the code itself.</p>
<p>Similarly, compressing the CSS files individually results in a total of 4.8K and combining them results in 4.4K sent to the browser.</p>
<p>Overall, this gives a saving of over 130K, just by using HTTP compression! Of course, this is only relevant for situations where the cache is empty but, at least according to Yahoo!, this is roughly half of the time. The Madman site doesn&#8217;t use &#8220;far future&#8221; expires headers either so aggressive caching by the browser is not possible.</p>
<h2>Minify JavaScript</h2>
<p>This continues on from above. One thing you will notice in the newest version of the combine script is that it runs JavaScript files through <a href="http://javascript.crockford.com/jsmin.html" rel="external">JSMin</a> before compressing them and sending them to the browser. What kind of savings would this give us?</p>
<p>I won&#8217;t list the uncompressed results (see the table below) but the compressed size is 27.5K individually and 25.1K merged. Holy freakin&#8217; crap! This is roughly a 10K saving, even after gzip compression.</p>
<p>Of course, seeing as these files are served from the Madman server(s) there&#8217;s no reason why a more advanced compressor can&#8217;t be used. I chose <a href="http://www.julienlecomte.net/blog/2007/08/13/introducing-the-yui-compressor/" rel="external">Julien Lecomte&#8217;s new YUI Compressor</a>, which is currently at <a href="http://www.julienlecomte.net/blog/2007/08/27/yui-compressor-version-20-now-available/" rel="external">version 2.0</a>, for this task. It should be noted that YUI-Compressor is slow and can&#8217;t be used for on-the-fly compression like JSMin but this shouldn&#8217;t be a problem as the compression can be done beforehand, whenever the JavaScript files are modified.</p>
<p>I&#8217;m sure you just want the numbers now, huh? When compressed: 25.8K individually and 23.1K combined. An improvement of 2K on top of JSMin and 128K over the original JavaScript files. Wow. And all with so little effort!</p>
<p>Here&#8217;s a summary of the results for individual Javascript:</p>
<table>
<caption>Comparisons between various JavaScript compression methods for the files on the Madman site.</caption>
<thead>
<tr>
<th>File</th>
<th>Original</th>
<th>gzip</th>
<th>JSMin</th>
<th>JSMin+gzip</th>
<th>YUI</th>
<th>YUI+gzip</th>
</tr>
</thead>
<tbody>
<tr>
<td>builder.js</td>
<td>3.3K</td>
<td>1.2K</td>
<td>1.9K</td>
<td>760b</td>
<td>1.5K</td>
<td>690b</td>
</tr>
<tr>
<td>controls.js</td>
<td>25.9K</td>
<td>6.9K</td>
<td>16.9K</td>
<td>4.4K</td>
<td>15.6K</td>
<td>4.2K</td>
</tr>
<tr>
<td>dragdrop.js</td>
<td>18.3K</td>
<td>4.7K</td>
<td>13.2K</td>
<td>3.5K</td>
<td>11.1K</td>
<td>3.4K</td>
</tr>
<tr>
<td>effects.js</td>
<td>29.5K</td>
<td>6.4K</td>
<td>22.4K</td>
<td>4.8K</td>
<td>20.9K</td>
<td>4.6K</td>
</tr>
<tr>
<td>fanzone.js</td>
<td>13.4K</td>
<td>3.6K</td>
<td>11.8K</td>
<td>3.2K</td>
<td>10.3K</td>
<td>3.0K</td>
</tr>
<tr>
<td>prototype.js</td>
<td>46.5K</td>
<td>10.4K</td>
<td>34.3K</td>
<td>8.4K</td>
<td>27.7K</td>
<td>7.7K</td>
</tr>
<tr>
<td>scriptaculous.js</td>
<td>2.2K</td>
<td>1.1K</td>
<td>793b</td>
<td>446b</td>
<td>710b</td>
<td>427b</td>
</tr>
<tr>
<td>slider.js</td>
<td>10.5K</td>
<td>3.1K</td>
<td>7.1K</td>
<td>1.9K</td>
<td>6.3K</td>
<td>1.8K</td>
</tr>
</tbody>
</table>
<p>And here&#8217;s a summary of the differences between using individual files and merged files:</p>
<table>
<caption>Comparisons between using individual or merged JavaScript files.</caption>
<thead>
<tr>
<th>Files</th>
<th>Original</th>
<th>gzip</th>
<th>JSMin</th>
<th>JSMin+gzip</th>
<th>YUI</th>
<th>YUI+gzip</th>
</tr>
</thead>
<tbody>
<tr>
<th>Individual</th>
<td>149.6K</td>
<td>37.3K</td>
<td>108.4K</td>
<td>27.5K</td>
<td>94.0K</td>
<td>25.8K</td>
</tr>
<tr>
<th>Combined</th>
<td>149.6K</td>
<td>34.2K</td>
<td>108.4K</td>
<td>25.1K</td>
<td>94.0K</td>
<td>23.1K</td>
</tr>
</tbody>
</table>
<p>As you might expect, merging files together does nothing when compression (rather than minification) is out of the picture. However, it is clear that running minifcation programs over the JavaScript files results in a very real saving on file size.</p>
<h2>More YSlow Suggestions</h2>
<ol>
<li><strong>Make fewer HTTP requests.</strong> There are plenty of CSS background images which might be able to be combined into a CSS sprite. For JavaScript/CSS files a combining script like I linked to above would do the trick.</li>
<li><strong>Add an expires header.</strong> None of the external files have a far future expires header. Using these can be a bit dangerous if you don&#8217;t set up the system properly to deal with changes to files (ie. the browser will get newer versions).</li>
</ol>
<h2>Minor Changes</h2>
<p>I&#8217;d ditch the images in the footer, which are used in place of text. I doubt if many people read that far and, if they do, I doubt they&#8217;re going to be bothered if the text isn&#8217;t exactly as the designer wanted. While the images are minuscule, they still require 3 unnecessary HTTP requests. Personally I think the image-text is too blurry anyway. Similarly, I think the search image-text in the header can be replaced with actual text.</p>
<p>I think someone needs to check the log out button:<br />
<img src='http://www.chnorton.com.au/wp-content/uploads/2007/08/madman-logout.jpg' alt='Logout button image is not on the same line in logout link in header' style="margin-left:auto;" /><br />
This could just be an issue with Firefox on Linux but, even so, it&#8217;s really annoying.</p>
<h2>Conclusion</h2>
<p>I did focus more on performance issues than I would have liked but, then again, the responsiveness of a site directly affects the usability. For example, who wants to wait around for 150K of JavaScript files to download when, with a few small changes, they could be downloading 23K?</p>
<p>Most of these things should be pretty easy to fix/improve and I&#8217;ve tried to provide suggestions for how to do so. I have other suggestions for improvements but they&#8217;re significantly larger and more ambitious undertakings. <img src='http://www.chnorton.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Overall, I think incremental improvements to a site are definitely the way to go. Madman have been using this kind of approach in their site updates and have started embracing <abbr title="rich internet application">RIA</abbr>-like functionality, such as in-place editing, helped by cutting edge libraries like Prototype/Script.aculo.us. I hope these trends continue into the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chnorton.com.au/2007/08/29/improvements-for-madmans-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Melancholy of Haruhi Suzumiya: Aussie Release</title>
		<link>http://www.chnorton.com.au/2007/06/23/the-melancholy-of-haruhi-suzumiya-aussie-release/</link>
		<comments>http://www.chnorton.com.au/2007/06/23/the-melancholy-of-haruhi-suzumiya-aussie-release/#comments</comments>
		<pubDate>Sat, 23 Jun 2007 13:59:11 +0000</pubDate>
		<dc:creator>Chris Norton</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[anime]]></category>
		<category><![CDATA[madman]]></category>

		<guid isPermaLink="false">http://www.chnorton.com.au/2007/06/23/the-melancholy-of-haruhi-suzumiya-aussie-release/</guid>
		<description><![CDATA[Madman has semi-officially announced the impending release of the Australian release of The Melancholy of Haruhi Suzumiya. According to the current information, volume 1 will be available by itself and as part of an "ULTRA SUPER LIMITED EDITON" which will have the volume 1 DVD, an armband, and a special redemption voucher. Like the American and Japanese releases, the Australian release will be in chronological order. However, volumes 2, 3 and 4 will also have vouchers and once you have all 4 you can redeem them for Volume 5, which will have the series in TV broadcast order on a two DVDs (that's 7 episodes on each disc).]]></description>
			<content:encoded><![CDATA[<p>Madman has <a href="http://madboards.madman.com.au/viewtopic.php?p=668013#668013">semi-officially announced</a> the impending release of the Australian release of <a href="http://en.wikipedia.org/wiki/The_Melancholy_of_Haruhi_Suzumiya_(anime)" rel="nofollow">The Melancholy of Haruhi Suzumiya</a>. For those who don&#8217;t know, Melancholy has a number of things that are different from your typical anime. Two of these were the rather strange introduction to the series (an amateur video made by the show&#8217;s characters) and the fact that the series was broadcast &#8220;out of order&#8221;, which meant that just trying to keep up with the show was a mind trip in itself. I actually really liked this aspect of the show but, unfortunately, it seems most people do not agree with me. All DVD releases (Japan and USA) have re-ordered the series to be in chronological order, rather than the wacky broadcast order.</p>
<p><span id="more-31"></span>This brings us to the Australian release. According to the current information, volume 1 will be available by itself and as part of an &#8220;ULTRA SUPER LIMITED EDITON&#8221; which will have the volume 1 DVD, an armband, and a special redemption voucher. Like the American and Japanese releases, the Australian release will be in chronological order. However, volumes 2, 3 and 4 will also have vouchers and once you have all 4 you can redeem them for Volume 5, which will have the series in TV broadcast order on a two DVDs (that&#8217;s 7 episodes on each disc).</p>
<p>I&#8217;m not quite sure what to make of this. I do like that there&#8217;s a possibility of having both forms of the series in the one boxset but it makes me question why they&#8217;d stretch out the series across twice as many discs as necessary. OK, this isn&#8217;t limited to this series: the anime average of 3 episodes per disc has <em>always</em> baffled me. I also don&#8217;t like the idea of being forced into the more expensive route of buying individual discs of a limited edition if I want to have the series in it&#8217;s &#8220;proper&#8221; order. Madman is a company which seems to really care about making its customers happy (angry otaku are not something you ever want to deal with) so I&#8217;m wondering what other sorts of things they&#8217;ve got cooking for this release. I almost started drooling after seeing some of the extravaganzas that were the special edition Region 1 DVD boxes. Times will tell if the local release is just as exciting. Considering the huge fanbase for the show, and a large number of guaranteed sales, I think Madman will be willing to splash out a bit more than usual.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chnorton.com.au/2007/06/23/the-melancholy-of-haruhi-suzumiya-aussie-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Madman Stocktake Sale</title>
		<link>http://www.chnorton.com.au/2007/06/15/madman-stocktake-sale/</link>
		<comments>http://www.chnorton.com.au/2007/06/15/madman-stocktake-sale/#comments</comments>
		<pubDate>Fri, 15 Jun 2007 08:05:42 +0000</pubDate>
		<dc:creator>Chris Norton</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[anime]]></category>
		<category><![CDATA[madman]]></category>
		<category><![CDATA[movies]]></category>

		<guid isPermaLink="false">http://www.chnorton.com.au/2007/06/15/madman-stocktake-sale/</guid>
		<description><![CDATA[Madman Entertainment are currently having a stocktake sale on their website. All of the DVDs I looked at are going for $10. The sale isn&#8217;t on their entire catalogue (mostly on their non-anime titles) but if there&#8217;s anything that you want I suggest you head on over there and check it out.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.madman.com.au/actions/catalogue.do?method=browse&#038;saleId=20">Madman Entertainment</a> are currently having a stocktake sale on their website. All of the DVDs I looked at are going for $10. The sale isn&#8217;t on their entire catalogue (mostly on their non-anime titles) but if there&#8217;s anything that you want I suggest you head on over there and check it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chnorton.com.au/2007/06/15/madman-stocktake-sale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
