<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.1" -->
<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/"
	>

<channel>
	<title>Just A Groove</title>
	<link>http://justagroove.net/blog</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Tue, 17 Jun 2008 00:07:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1</generator>
	<language>en</language>
			<item>
		<title>BTSR Website Launches</title>
		<link>http://justagroove.net/blog/btsr-website-launches/</link>
		<comments>http://justagroove.net/blog/btsr-website-launches/#comments</comments>
		<pubDate>Sat, 20 Oct 2007 23:18:03 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://justagroove.net/blog/btsr-website-launches/</guid>
		<description><![CDATA[After a very long summer and many hours in a dimly lit basement I&#8217;m proud to say that the new Black Tie Ski Rentals website (version 3) has officially launched. Check it out at BlackTieSkis.com.

The site is by far the most important project I have done to date. It encompasses the 3rd iteration of a [...]]]></description>
			<content:encoded><![CDATA[<p>After a very long summer and many hours in a dimly lit basement I&#8217;m proud to say that the new Black Tie Ski Rentals website (version 3) has officially launched. Check it out at <a href='http://www.blacktieskis.com/'>BlackTieSkis.com</a>.</p>
<p><a href='http://www.blacktieskis.com/' rel='http://www.blacktieskis.com/ title='Black Tie Ski Rentals new website'><img src='http://justagroove.net/blog/wp-content/uploads/2007/11/blacktie_1.jpg' alt='Black Tie Ski Rentals new website' /></a></p>
<p>The site is by far the most important project I have done to date. It encompasses the 3rd iteration of a redesign lifecycle and was a time to really consolidate the branding and push out a new look and feel that not only reflected the company but synced all marketing and external facing media to a conclusive design. </p>
<p>It was very important to me make sure that this version of the website well surpassed their competition and to set a bar, both graphically and technically for others to follow.  <a href="http://justagroove.net/blog/btsr-website-launches/#more-11" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://justagroove.net/blog/btsr-website-launches/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Back From The Dead</title>
		<link>http://justagroove.net/blog/back-from-the-dead/</link>
		<comments>http://justagroove.net/blog/back-from-the-dead/#comments</comments>
		<pubDate>Sat, 29 Sep 2007 23:05:44 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://justagroove.net/blog/back-from-the-dead/</guid>
		<description><![CDATA[Well its official, I have resurfaced after what has been one of the busiest times of my life. A wedding, visitors from the mother country, and the biggest project I have started to date..lets just say its been nuttier then squirrel shit and leave it at that. 
First of all the wedding. Its funny, looking [...]]]></description>
			<content:encoded><![CDATA[<p>Well its official, I have resurfaced after what has been one of the busiest times of my life. A wedding, visitors from the mother country, and the biggest project I have started to date..lets just say its been nuttier then squirrel shit and leave it at that. </p>
<p>First of all the wedding. Its funny, looking back on it all it seems like a distant memory or something I once read in a book rather then an actual experience that happened to me. I do remember that the wedding date all of a sudden came really fast and before we had a chance to ask each other if we had thought of everything I had my amazing parents fly in from Australia, followed shortly by my brother and his wife (and my little nephew Lachie), and my sister and her husband. A few days of catching up and showing them around our little slice of the American dream and it was back to the airport to pick up 6 of my best mates from Australia. A quick jaunt to Vegas  <a href="http://justagroove.net/blog/back-from-the-dead/#more-9" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://justagroove.net/blog/back-from-the-dead/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Design Groove Goes Live</title>
		<link>http://justagroove.net/blog/design-groove-goes-live/</link>
		<comments>http://justagroove.net/blog/design-groove-goes-live/#comments</comments>
		<pubDate>Mon, 19 Mar 2007 21:23:17 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://justagroove.net/blog/design-groove-goes-live/</guid>
		<description><![CDATA[Design Groove or some version of it has existed in my head for a very long time, so its only fitting that I put the time and effort in to finally see it live. I&#8217;m excited to finally have my own place in the web world and to officially have a site to direct potential [...]]]></description>
			<content:encoded><![CDATA[<p>Design Groove or some version of it has existed in my head for a very long time, so its only fitting that I put the time and effort in to finally see it live. I&#8217;m excited to finally have my own place in the web world and to officially have a site to direct potential clients and friends a like to see.</p>
<p>While the site itself is designed to act as an online portfolio for the projects I have worked on in the past, it will also hopefully allow me to use the virtual space to experiment on as well as a place to write articles on web related issues. I&#8217;m not in the business of being a professional writer but I&#8217;ve found that the best way to solidify learning is by attempting to teach other people. With that in mind I hope this blog space becomes a regular part of my working week and to provide people with a resource rich in web related content and tutorials. So much of what I have done since becoming a  web professional has been self taught and as any one who has been through similar experiences can tell you, it can be a very frustrating and time consuming practice. I hope that some of the biggest lessons I&#8217;ve learnt can be talked about here as well as creating a forum for discussing other issues related to the topic in question. </p>
<p>That being said I am the first to admit that there are always other ways of approaching solutions and am always interested in alternatives or people pointing out incorrect or verbose coding or methodologies. </p>
<p>So without prattling along further I wanted to welcome you officially to my new site and hope that you enjoy what I have put together. Please feel free at any stage to contact me directly at <a href="http://www.justagroove.net/contact.php">ben@justagroove.net</a> or to comment on any one of my articles. </p>
<p>Cheers and thanks for visiting,</p>
<p>Ben</p>
]]></content:encoded>
			<wfw:commentRss>http://justagroove.net/blog/design-groove-goes-live/feed/</wfw:commentRss>
		</item>
		<item>
		<title>XML-Based Photo Gallery (Part 2)</title>
		<link>http://justagroove.net/blog/xml-photo-gallery-part-2/</link>
		<comments>http://justagroove.net/blog/xml-photo-gallery-part-2/#comments</comments>
		<pubDate>Thu, 15 Mar 2007 18:47:32 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://justagroove.net/blog/xml-photo-gallery-part-2/</guid>
		<description><![CDATA[In the first part of this tutorial we looked at how to set up a generic XML document with image information and then link your page to it through the simpleXML function in php. Using this method it is easy then to exploit the information in the XML document to display rows of thumbnails and [...]]]></description>
			<content:encoded><![CDATA[<p>In the first part of this tutorial we looked at how to set up a generic XML document with image information and then link your page to it through the simpleXML function in php. Using this method it is easy then to exploit the information in the XML document to display rows of thumbnails and even dynamically link them to the full sized images. </p>
<p>What I want to show you now is my way of setting up a pseudo-random function to pick 6 images from the XML document and display them like I have in the side bar to my right. It may seem a little unorthodox to some but I came up with this method to ensure that the sample of 6 is not only random but also that the same image is not displayed twice.</p>
<p>I&#8217;ll start with the same simpleXML connection script as we used in the first tutorial:</p>
<div class="code"><p>&lt;?php</p>
<p>// set the XML file name as a PHP string<br />
$myPhotoList = &#8220;gallery/photos.xml&#8221; ; </p>
<p>// load the XML file<br />
$xml = @simplexml_load_file($myPhotoList) or<br />
&nbsp;&nbsp;&nbsp;die (&#8221;no file loaded&#8221;) ; </p>
<p>?&gt;</p></div>
<h4>Lets Get Random</h4>
<p>Now I want to start adding some code to define the range of image numbers. I also want to create the first &#8216;random&#8217; number using the rand(firstNumber, lastNumber) function which picks a mathematically random number in the range given. Unfortunately to-date I have been unable to find a built-in function to calculate the number of nodes in an XML document so I&#8217;ll be setting the minimum number and the maximum number of images in the xml document manually. This means that the dynamic advantage of only updating the XML document to add more images is greatly decreased since you will also need to change in the php the range of images your working from. Stay tuned for a re-working of this solutions portion of the code.</p>
<div class="code"><p>&lt;?php<br />
&#8230;<br />
$min = 0;<br />
$max = 39; //the number of pictures in the xml<br />
$num = rand($min, $max);<br />
?&gt;</p></div>
<p> <a href="http://justagroove.net/blog/xml-photo-gallery-part-2/#more-7" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://justagroove.net/blog/xml-photo-gallery-part-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>XML-Based Photo Gallery (Part 1)</title>
		<link>http://justagroove.net/blog/xml-based-photo-gallery-part-1/</link>
		<comments>http://justagroove.net/blog/xml-based-photo-gallery-part-1/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 02:39:16 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://justagroove.net/blog/xml-based-photo-gallery-part-1/</guid>
		<description><![CDATA[With the addition of certain very help PHP functions that were released in version 5.0, the integration of XML and PHP is now simpler then ever. 
Why XML over a database driven solution? I could discuss all the reasons for and against but at the end of the day in a case like a photo [...]]]></description>
			<content:encoded><![CDATA[<p>With the addition of certain very help PHP functions that were released in version 5.0, the integration of XML and PHP is now simpler then ever. </p>
<p>Why XML over a database driven solution? I could discuss all the reasons for and against but at the end of the day in a case like a photo gallery it really comes down to personal preference. For me its all about ease of use and not adding complexity to something that at its core should be very easy and straight forward. XML offers accessibility, readability, flexibility and you don’t need to start playing with database tables and fields to achieve results fast. </p>
<p>While I endeavor to write this for the common person the below article does assume a basic understanding of XML and PHP. If you want to understand more about either topic a good starting place is the <a href="http://w3schools.com/">w3Schools</a> website which offers great free introductory tutorials on standard web technology. </p>
<p>Download <a href="http://justagroove.net/blog/wp-content/uploads/2007/03/gallery.zip">Tutorial Files</a></p>
<h4>The Basics</h4>
<p>I’ll be basing my photo gallery off a simple XML document, which I’ll detail here. Please feel free to <a href="http://justagroove.net/blog/wp-content/uploads/2007/03/gallery.zip">download</a> a copy of the source files to follow along with me. Now I don’t pretend to be an expert at writing XML, so feel free to suggest any changes in the comments section. </p>
<div class="code">
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;ISO-8859-1&#8243;? &gt;<br />
&lt;gallery title=&#8221;Random&#8221; description=&#8221;Random photos I like&#8221;&gt;<br />
&lt;albumName&gt;Random Photos&lt;/albumName&gt;<br />
&lt;image&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;title&gt;Alamo Square, SF&lt;/title&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;tnPath&gt;thumbs/tn_alamoSquare.jpg&lt;/tnPath&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;lgPath&gt;photos/alamoSquare.jpg&lt;/lgPath&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;tnWidth&gt;45&lt;/tnWidth&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;tnHeight&gt;45&lt;/tnHeight&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;width&gt;500&lt;/width&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;height&gt;375&lt;/height&gt;<br />
&lt;/image&gt;<br />
&lt;image&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;title&gt;Alcatraz, SF&lt;/title&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;tnPath&gt;thumbs/tn_alcatraz.jpg&lt;/tnPath&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;lgPath&gt;photos/alcatraz.jpg&lt;/lgPath&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;tnWidth&gt;45&lt;/tnWidth&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;tnHeight&gt;45&lt;/tnHeight&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;width&gt;500&lt;/width&gt;<br />
&nbsp;&nbsp;&nbsp;&lt;height&gt;375&lt;/height&gt;<br />
&lt;/image&gt;<br />
&#8230;<br />
&#8230;<br />
&lt;/gallery&gt;
</p></div>
<p>This basically allows me to describe an image by giving it a title, url paths to the location of the photo and its thumbnail, and the width and height of each. I&#8217;ve decided to use relative paths for the images here although in the tutorial files I&#8217;ve used absolute paths to the image URL to add flexibility in using the code anywhere in your site. </p>
<p>Now, using the simpleXML function in PHP we can write some code to connect to the above XML document. </p>
<div class="code">
<p>&lt;?php<br />
	// set the XML file name as a PHP string, make<br />
	// sure the path to the xml file is correct.<br />
	$myPhotoList = &#8220;photos.xml&#8221; ; </p>
<p>	// load the XML file<br />
	$xml = @simplexml_load_file($myPhotoList) or &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;die (&#8221;no file loaded&#8221;) ;<br />
?&gt;
</p></div>
<p>That&#8217;s all that’s needed to connect to our XML file. Now we can assign PHP variables with specific elements from the XML document by use the variable $xml-><em>element</em> as follows:</p>
<p class="more-link"> <a href="http://justagroove.net/blog/xml-based-photo-gallery-part-1/#more-6" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://justagroove.net/blog/xml-based-photo-gallery-part-1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>True Center Positioning with CSS</title>
		<link>http://justagroove.net/blog/vertically-and-horizontally-centering-css-elements/</link>
		<comments>http://justagroove.net/blog/vertically-and-horizontally-centering-css-elements/#comments</comments>
		<pubDate>Wed, 21 Feb 2007 22:06:51 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://justagroove.net/blog/vertically-and-horizontally-centering-css-elements/</guid>
		<description><![CDATA[Its seems that for all its amazing uses, and the huge supporting community behind it, certain very easy topics seem to be holding back the full power of css from the newer css adopters. Vertically and horizontally centering an element seems as if it should be very straight forward right? Wrong. Despite my years of [...]]]></description>
			<content:encoded><![CDATA[<p>Its seems that for all its amazing uses, and the huge supporting community behind it, certain very easy topics seem to be holding back the full power of css from the newer css adopters. Vertically and horizontally centering an element seems as if it should be very straight forward right? Wrong. Despite my years of CSS coding, I’ve never found an article or even a discussion of how to vertically and horizontally center an element consistently, and after hours of searching my frustrations were such that I decided to put some time into discovering the solution myself (shock horror!!). </p>
<p>It turns out that the actual solution is very easy and even the most elementary of browsers (say the IE’s of the world) understand it. All 100% standard to boot. Before going on though, the solution does work for a specific situation: </p>
<ul>
<li>You must know the width and height of the element your trying to vertically center</li>
<li>You must have a larger box to contain it in (most of the time this can even be just the body).</li>
</ul>
<p>Ok so lets look at some code. We need to start with a div and define its width and height:</p>
<div class="code">
<p>#center_me {<br />
&nbsp;&nbsp;&nbsp;width: 500px;<br />
&nbsp;&nbsp;&nbsp;height: 350px;<br />
}
</p></div>
<p>Now lets add some positioning information: </p>
<div class="code">
<p>#center_me {<br />
&nbsp;&nbsp;&nbsp;width: 500px;<br />
&nbsp;&nbsp;&nbsp;height: 350px;<br />
&nbsp;&nbsp;&nbsp;top: 50%;<br />
&nbsp;&nbsp;&nbsp;left: 50%;<br />
}
</p></div>
<p>That should be it right? Again wrong. </p>
<p class="more-link"> <a href="http://justagroove.net/blog/vertically-and-horizontally-centering-css-elements/#more-4" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://justagroove.net/blog/vertically-and-horizontally-centering-css-elements/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
