<?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>epgui &#187; Featured</title>
	<atom:link href="http://www.epgui.com/category/featured/feed" rel="self" type="application/rss+xml" />
	<link>http://www.epgui.com</link>
	<description>Blog</description>
	<lastBuildDate>Tue, 06 Jul 2010 00:37:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Getting to Honduras</title>
		<link>http://www.epgui.com/featured/getting-to-honduras</link>
		<comments>http://www.epgui.com/featured/getting-to-honduras#comments</comments>
		<pubDate>Mon, 04 May 2009 23:25:24 +0000</pubDate>
		<dc:creator>Guillaume Pelletier</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Humanitarian work]]></category>
		<category><![CDATA[airport]]></category>
		<category><![CDATA[cheap hotel]]></category>
		<category><![CDATA[Global Volunteer Network]]></category>
		<category><![CDATA[Honduras]]></category>
		<category><![CDATA[spanish]]></category>
		<category><![CDATA[Tegucigalpa]]></category>
		<category><![CDATA[travelling]]></category>
		<category><![CDATA[Valle de Angeles]]></category>

		<guid isPermaLink="false">http://www.epgui.com/wordpress/?p=179</guid>
		<description><![CDATA[I am writing today on an oldschool 56k modem from a country I had barely heard from before. This all started when me and a few friends from university decided it would be a good idea to enroll on a volunteering trip to a third world country. We would enroll, invest a few thousand dollars [...]]]></description>
			<content:encoded><![CDATA[<p>I am writing today on an oldschool 56k modem from a country I had barely heard from before. This all started when me and a few friends from university decided it would be a good idea to enroll on a volunteering trip to a third world country. We would enroll, invest a few thousand dollars in the trip and for preparations, and that would be it! The idea was to take part of a building project just outside La Esperanza; it would look great on our resumes, and would serve us well for our medicine interviews later on. We were eager to be a part of a humanitarian effort, and the excitement did nothing but grow as the date of departure approached.</p>
<div id="slider">
<img src="http://www.epgui.com/images/miamiinternational.jpg" alt="" title="We just arrived in Miami International Airport!" /><img src="http://www.epgui.com/wordpress/wp-content/uploads/2009/05/P1010019-225x300.jpg" alt="" title="On the way to Tegucigalpa." /><img src="http://www.epgui.com/images/tegucigalpaairplane.jpg" alt="" title="Arriving in Tegucigalpa." /><img src="http://www.epgui.com/images/plazategucigalpa.jpg" alt="" title="People gathered in front of a building in Tegucigalpa" /><img src="http://www.epgui.com/images/drivingtegucigalpa.jpg" alt="" title="We are obviously very excited!" /><img src="http://www.epgui.com/images/drivingtegucigalpa2.jpg" alt="" title="We are driving to Valle de Angeles" /><img src="http://www.epgui.com/images/hotelvalledeangeles.jpg" alt="" title="Our hotel in Valle de Angeles" /><img src="http://www.epgui.com/images/valledeangeles.jpg" alt="" title="Valle de Angeles" /><img src="http://www.epgui.com/images/valledeangeles2.jpg" alt="" title="Valle de Angeles" />
</div>
<p>I had all my preparations taken care of and was to drive down to Halifax on the third of may, whereupon we would embark for New-York, Miami and Tegucigalpa the next day. The day of my departure from home was not without any surprises, however! As we were boarding the plane at Halifax at 1:15 PM, I had planned on departing at 9:00 in the morning. Plans changed quite fast when in the midst of my sleep I received a call from one of my friends who was coming over to pick me up within minutes.</p>
<p>We arrived in Halifax very early, with our parents and dearest friends. The flight to New-York was relatively uneventful, but there we found a plethora of shopping corners in the airport. I have probably had less than five hours of sleep in the last two days, hanging around in JFK or Miami International. We stayed a few hours in JFK, but we had a full 13 hours of wait in Miami. Our sleep was all to frequently interrupted by the automatic announcements they had in Miami.</p>
<p>Me and another of my friends, baffled by the carelessness of US security agents compared to their Canadian peers, and motivated by a sort of mischief spirit, exchanged passports to see if we would be intercepted at the gates. As the airport incessantly cautioned over showing proper identification papers when crossing the gates, we were surpised to see that the security agents saw no difference between our curly and straight hair. It did not leave the strong impression of security that we were led to believe from the US.</p>
<p>We found, very unfortunately, that most of the people at the US airports were rather reluctant to talk, or outright impolite. However, when we boarded the airplane from Miami to Tegucigalpa, we found out that we were going to stay with a nice people. We were immediately surrounded by Spanish advertising and newsletters, the air flight attendants seemed to talk Spanish better than they did English, and we were there, practicing short sentences in our seats. I will finally get the immersion I was looking for to master a third language&#8230; hopefully I will have time enough in four weeks of stay here.</p>
<p>Getting down just outside of Tegucigalpa was not without its difficulties, and we had quite an interesting experience there. Although there are currently to the best of my knowledge no officially reported cases of the Swine Flu here, we were greeted by a number of employees with masks urgently pressing us to sign some papers alledging we were free of the symptoms of the virus. There was a long lineup to get through the gates and the quick checkup that extended beyond the lower floor lobby and, quite problematically, into the escalators. Quite amusingly, people were piling up at the bottom of the escalator with all their luggage!</p>
<p>There we met with a nice lady from Argentina with whom we talked about Honduras and our own beloved country. She proved to be extremely useful (and nice!) later on when we tried to get through the gates. As we slept through part of the flight, me and another of my friends were missing some papers which the distributed in the airplane duraing the trip. We were trying to get our hands on a copy of those papers, to no avail. They were not letting us cross the gates, and we were going to be stuck somewhere between Honduras territory and international territory! Kinda reminded me of the movie The Terminal&#8230; </p>
<p>We were afraid we would not be able to cross the gates, as the agents there were not being very helpful to us, when this lady we met earlier came back and told us &#8220;you are my nephews now, quiet and follow me! Hide what papers you have beside your passport!&#8221;. She spoke to a few security officers, which in turn led us inside the gates. We went through without much trouble, and I daresay we might have had some if not for her.</p>
<p>We met with Nicholas (sp?) at the Terminal, who led us around Tegucigalpa and around the city. Let&#8217;s just say the people here do not drive like we do in Canada! We ended up rolling on a huge nail and getting a flat, so we had to drive slowly in order to preserve what air we had in the tires. We filled them up at a gas station on the way, and finally reached a roadside mechanic. That did the job for us!</p>
<p>We are currently staying at a 16$ a night hotel, which is surprisingly nice, with a large pool in an indoor court. I have eated a typical dish from this region, and I would venture to say that it was the greatest piece of food I have had in days, if not weeks. It looks like my allergy problems will not be of much consequence here, but hey- who know what the future holds!</p>
<p>This is the most beautiful place I have ever seen, and I would glady share some pictures here, but I fear the internet connection is rather slow, and I had to try for thirty minutes just to get my WordPress blog to load at all.</p>
<p>I will keep posting as frequently as possible, but now time flies by too fast and I need to try out the shower.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.epgui.com/featured/getting-to-honduras/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A case study of the liquid layout</title>
		<link>http://www.epgui.com/web-development/a-case-study-of-the-liquid-layout</link>
		<comments>http://www.epgui.com/web-development/a-case-study-of-the-liquid-layout#comments</comments>
		<pubDate>Sun, 04 Jan 2009 02:07:30 +0000</pubDate>
		<dc:creator>Guillaume Pelletier</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[flexible]]></category>
		<category><![CDATA[liquid layout]]></category>
		<category><![CDATA[scalability]]></category>
		<category><![CDATA[Scriptnetics Inc.]]></category>
		<category><![CDATA[sizes]]></category>
		<category><![CDATA[tablet PC]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[user-friendly]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web page]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.epgui.com/wordpress/?p=84</guid>
		<description><![CDATA[In a time where netbooks are becoming more and more popular every day, where monitor sizes vary from laptop to desktop, or even from landscape to portrait mode on tablets, why is it that the internet, so passionate about user-friendliness, does not go out of it's way to produce a layout that is flexible to the screen resolution of an arbitrary device or window?]]></description>
			<content:encoded><![CDATA[<p>I often wonder why I don&#8217;t see that many liquid-based layouts when browsing the web. It seems to me books have preached the use of relative positioning and sizing for ages now, but the closest I see from relative values on most websites and blogs are those expressed in &#8216;em&#8217;s for text sizes (or even for image sizes in some cases!).</p>
<p>Why is it that the internet, so passionate about user-friendliness, does not go out of it&#8217;s way to produce a layout that is flexible to the screen resolution of an arbitrary device or window? In a time where netbooks are becoming more and more popular every day, where monitor sizes vary from laptop to desktop, or even from landscape to portrait mode on tablets, it seems the need for a more flexible framework is more than ever present.</p>
<p>Working for <a title="Scriptnetics Inc." href="http://www.scriptnetics.com/">Scriptnetics Inc.</a> has given me enough time and resources to experiment with CSS and Javascript (amongst other technologies) to produce a corporate website which would reflect the need of our clients: since we mainly do software for tablet PCs, the aim was to provide content in an arbitrarily sized window, at an arbitrary width-to-height aspect ratio.</p>
<p>So why not start this <em>exposé</em> with a few screenshots?</p>

<a href='http://www.epgui.com/web-development/a-case-study-of-the-liquid-layout/attachment/768_1280' title='Scriptnetics Inc. 768 x 1280'><img width="150" height="150" src="http://www.epgui.com/wordpress/wp-content/uploads/2009/01/768_1280-150x150.png" class="attachment-thumbnail" alt="768 x 1280 screenshot" title="Scriptnetics Inc. 768 x 1280" /></a>
<a href='http://www.epgui.com/web-development/a-case-study-of-the-liquid-layout/attachment/1280_768' title='Scriptnetics Inc. 1280 x 768'><img width="150" height="150" src="http://www.epgui.com/wordpress/wp-content/uploads/2009/01/1280_768-150x150.png" class="attachment-thumbnail" alt="1280 x 768 screenshot" title="Scriptnetics Inc. 1280 x 768" /></a>
<a href='http://www.epgui.com/web-development/a-case-study-of-the-liquid-layout/attachment/2windows' title='Scriptnetics Inc. in two windows'><img width="150" height="150" src="http://www.epgui.com/wordpress/wp-content/uploads/2009/01/2windows-150x150.png" class="attachment-thumbnail" alt="Scriptnetics Inc. in two windows" title="Scriptnetics Inc. in two windows" /></a>

<p>You can see the website by yourself at <a title="Scriptnetics Inc." href="http://www.scriptnetics.com/">http://www.scriptnetics.com/</a></p>
<p>While we&#8217;re at it, why not give out a few tips to the CSS newbies out there?</p>
<p>Firstly, let&#8217;s assume that pretty much every measurement is done in percentages—widths, padding, margins—and that floats are used to divide the columns. There you have it, it doesn&#8217;t become easier than that!</p>
<p>Let&#8217;s see how images behave, shall we? If you look at the above screenshots, you will see that two methods for displaying images are exploited. The first is through the use of the &lt;img src=&#8221;" alt=&#8221;" /&gt; XHTML tag, while the second uses the background url() property of CSS. The main difference between both is that the XHTML tag supports relative scaling, while the CSS background property provides an easy answer to relative <em>positioning</em>.</p>
<p><strong>XHTML images</strong></p>
<pre>&lt;!-- navMenu is of relative size --&gt;

&lt;div id="navMenu"&gt;
   &lt;img src="" alt="" style="width: 30%;" /&gt;
&lt;/div&gt;</pre>
<p><strong>CSS background images</strong></p>
<pre>/********************
The image will be displayed within #someParticularElement and will
be positioned relatively.

Therefore, when #someParticularElement changes size, it reveals
or conceals parts of the image at a different rate on each side,
according to the percentage values specified.
********************/

#someParticularElement {
   background: url(images/image.png) no-repeat 30% 40%;
}</pre>
<p>To achieve either effect is simple; to get an image to scale down relative to it&#8217;s container, one only needs to specify the width of the image (say, 30% of container width) for the image to scale up and down in size, while preserving it&#8217;s aspect ratio. The main advantage of using XHTML images over CSS background images is that it represents a more semantic way of delivering information through images.</p>
<p>The CSS background image alternative effectively <em>moves</em> the background in a certain expected way when the window resizes. The biggest disadvantage of using background images to present content, semantics aside, is that images bigger than their container are needed. When you don&#8217;t know how big the image will display, you can only hope for the best—it hopefully won&#8217;t be viewed on an Apple 30&#8243; Cinema Display&#8230;</p>
<p>Lets move on with another nifty trick for preserving the relative aspect ratio of a container element.</p>
<p>Go and take a look at <a title="Solutions - EMRs" href="http://www.scriptnetics.com/solutions/emr/">this page</a> to see an example of an aspect ratio preserving layout. Notice the use of the CSS background property to display the image, and how it is displayed at different resolutions (these things are better tried than viewed on a static image). What makes this one work is actually quite surprising : when you set a vertical margin or padding in percentages, it is calculated relative to the <em>width</em> of the parent container. What this means is that you can use padding to set the &#8220;height&#8221; of an element.</p>
<p>If the purpose of that element is to contain other children elements, you can make the children floats, or you can position them absolutely. The biggest problem with this technique, however, is that even though the parent is relatively sized, it can only accomodate so much content. Floats, for example, tend to overflow the parent container:</p>
<p><iframe src="/wordpress/wp-content/uploads/htmlFrames/floatOverflow.htm" frameborder="0" style="width: 100%; height: 260px;">I&#8217;m sorry, your browser is unable to render iframes</iframe></p>
<p>And so it often becomes easier to use absolute positioning.</p>
<p>Another nifty CSS trick is to use negative margins. The presence of a negative margin in one direction effectively pulls the displayed element an equal amount in that direction. This might not appear immediately intuitive, but it turns out very useful when trying to vertically (or horizontally) center an element.</p>
<p><strong>How to center an element both vertically and horizontally</strong></p>
<pre>
#parent {

   /**********************
   The parent element needs to be positioned.
   **********************/

   position: relative;
   /* position: absolute; would also work */

}

#parent #element {

   /**********************
   Define a width and a height.
   Here the height is taken care of by the padding, which will
   be 3/5 the value of the width.
   **********************/

   width: 50%;
   padding-bottom: 30%;

   /**********************
   Set the position to absolute.
   **********************/

   position: absolute;

   /**********************
   The margins need to be set to half the respective width and
   height of the rendered element.
   **********************/

   top: 50%;
   left: 50%;
   margin-top: -15%;
   margin-left: -25%;
}
</pre>
<p>I realize that in theory, all of these tricks are quite simple. It is however quite rare that I see a page that makes a genuine attemt to push the limits of &#8216;resizeability&#8217;. Ironically enough, however, at the time this article was written, this blog was fixed width. We all need to make design decisions, and they are not always the same. Besides looks, we need to consider the product&#8217;s application and the impact it has on users.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.epgui.com/web-development/a-case-study-of-the-liquid-layout/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
