<?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>Lost Resort BIZ - The Blog &#187; Cristi_N</title>
	<atom:link href="http://www.lostresort.biz/blog/author/cristi_n/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lostresort.biz/blog</link>
	<description>Talking about us and about web site development</description>
	<lastBuildDate>Tue, 22 Nov 2011 08:15:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Develop a Ping-Pong game using HTML5, CSS3 and JavaScript</title>
		<link>http://www.lostresort.biz/blog/2011/11/15/develop-a-ping-pong-game-using-html5-css3-and-javascript/</link>
		<comments>http://www.lostresort.biz/blog/2011/11/15/develop-a-ping-pong-game-using-html5-css3-and-javascript/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 09:36:00 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[HTML5 CSS3 JavaScript game]]></category>
		<category><![CDATA[ping pong game]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=812</guid>
		<description><![CDATA[The goal of this project is to develop a ping pong game based on the next requirements: the game should be played by two human players using the same keyboard the game must have an options panel to modify the ball speed, the paddle speed and the score limit for game over the players should have the possibility<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2011/11/15/develop-a-ping-pong-game-using-html5-css3-and-javascript/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<p>The goal of this project is to develop a ping pong game based on the next requirements:</p>
<ul>
<li>the game should be played by two human players using the same keyboard</li>
<li>the game must have an options panel to modify the ball speed, the paddle speed and the score limit for game over</li>
<li>the players should have the possibility to start/pause the game</li>
</ul>
<p>Also, we&#8217;ll use CSS3 style properties to style the HTML elements and jQuery framework, to create the game engine.<br />
This is how the result of the project looks:</p>
<p><a href="http://www.lostresort.biz/blog/wp-content/uploads/2011/11/ping-pong.jpg"><img src="http://www.lostresort.biz/blog/wp-content/uploads/2011/11/ping-pong.jpg" alt="" title="ping-pong" width="862" height="600" class="alignnone size-full wp-image-857" /></a></p>
<h3>Files needed</h3>
<p>First, we create a folder named <code>pingpong</code> in which the <code>index.html</code> and <code>style.css</code> files will be stored. Inside the <code>pingpong</code> folder another two folders will be created, <code>images</code> which will store the images needed (just a few, for the background) and <code>js</code> where the JavaScript file with the game engine will be placed (and eventually the jQuery library, if no alternative is used). Having these, we can start developing the project.</p>
<h3>Content of the <code><i>index.html</i></code> file</h3>
<p>In HTML5 syntax, the Document Type declaration is very simple:</p>
<pre class="crayon-plain-tag"><code>&lt;!DOCTYPE HTML&gt;</code></pre>
<p>With this the UAs will know that the semantics of HTML5 (and previous versions of HTML) will be used. After this statement we can declare the root element <code>html</code> and its descendents <code>head</code> and <code>body</code>.</p>
<pre class="crayon-plain-tag"><code>&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;title&gt;Ping Pong Battle  - a game example using HTML5, CSS3 and JavaScript&lt;/title&gt;
&lt;base href=&quot;http://localhost/pingpong/&quot;&gt;
&lt;meta charset=&quot;utf8&quot;&gt;
&lt;meta name=&quot;generator&quot; content=&quot;Notepad ++&quot;&gt;
&lt;meta name=&quot;author&quot; content=&quot;Cristian Nistor&quot;&gt; 
&lt;link href=&quot;style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;link href='http://fonts.googleapis.com/css?family=Satisfy' rel='stylesheet' type='text/css'&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script src=&quot;js/html5game.pingpong.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;js/jquery.timers-1.2.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre></p>
<p>Inside the <code>head</code> element the <code>title</code> element should come first. After this, some <code>metadata</code> for the page is added: character set, the name of the author, the application&#8217;s name used to generate the page etc. <q cite="http://dev.w3.org/html5/spec/Overview.html#the-base-element"><b>The <code>base</code> element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information.</b></q></p>
<p>A custom font will be used to style some text inside the page, thus the <code>link</code> element which points to a storage location for this custom font-type. After this, the jQuery library is loaded. Note that the JavaScript file with the game engine and a jQuery plugin are loaded <b>after</b> all HTML elements are declared (placed just before the ending <code>body</code> tag), due to the fact that <code>undefined</code> elements are not desired.</p>
<p>The <code>body</code> element will have the following content:</p><pre class="crayon-plain-tag"><code>&lt;div id=&quot;content&quot;&gt;
	&lt;div id=&quot;stuff&quot;&gt;
		&lt;div id=&quot;scoreboard&quot;&gt;
			&lt;div class=&quot;score float-left tooltip&quot;&gt;Player A: &lt;span id=&quot;scoreA&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;tool&quot;&gt;To move paddle use &lt;span class=&quot;green&quot;&gt;W&lt;/span&gt; key for going UP and &lt;span class=&quot;green&quot;&gt;S&lt;/span&gt; key for going DOWN.&lt;/span&gt;&lt;/div&gt;
			&lt;div class=&quot;float-left&quot; id=&quot;startgame&quot;&gt;
				&lt;form class=&quot;tooltip&quot; id=&quot;startbutton&quot;&gt;
					&lt;button id=&quot;start&quot; type=&quot;button&quot; class=&quot;button&quot; name=&quot;start&quot;&gt;Start/Resume&lt;/button&gt;
					&lt;span class=&quot;tool&quot;&gt;Press button to Start the game and use &lt;span class=&quot;green&quot;&gt;Space bar&lt;/span&gt; to Pause the game.&lt;/span&gt;
				&lt;/form&gt;
			&lt;/div&gt;
			&lt;div class=&quot;score float-right tooltip&quot;&gt;Player B: &lt;span id=&quot;scoreB&quot;&gt;00&lt;/span&gt;&lt;span class=&quot;tool&quot;&gt;To move paddle use &lt;span class=&quot;green&quot;&gt;UP&lt;/span&gt; key for going UP and &lt;span class=&quot;green&quot;&gt;DOWN&lt;/span&gt; key for going DOWN.&lt;/span&gt;&lt;/div&gt;
		&lt;/div&gt;
		&lt;div id=&quot;game&quot;&gt;
			&lt;div id=&quot;playground&quot;&gt;
				&lt;div id=&quot;paddleA&quot; class=&quot;paddle&quot;&gt;&lt;/div&gt;
				&lt;div id=&quot;paddleB&quot; class=&quot;paddle&quot;&gt;&lt;/div&gt;
				&lt;div id=&quot;ball&quot;&gt;&lt;/div&gt;
				&lt;div id=&quot;pausegame&quot;&gt;
					&lt;p&gt;The game is paused.&lt;br /&gt; Click the &lt;span class=&quot;red&quot;&gt;Start/Resume&lt;/span&gt; button to resume the game&lt;/p&gt;
				&lt;/div&gt;
				&lt;div id=&quot;gameover&quot;&gt;
					&lt;p&gt;&lt;span class=&quot;red&quot;&gt;GAME OVER!&lt;/span&gt;&lt;/p&gt;
				&lt;/div&gt;
				&lt;div class=&quot;clear-both&quot;&gt;&lt;/div&gt;
			&lt;/div&gt;
		&lt;/div&gt;
		&lt;div id=&quot;options&quot;&gt;
			&lt;form id=&quot;saveoptions&quot;&gt;
				&lt;label for=&quot;ballspeed&quot;&gt;Ball Speed: &lt;/label&gt; &lt;input id=&quot;ballspeed&quot; class=&quot;short&quot; type=&quot;text&quot; maxlength=&quot;1&quot; name=&quot;ballspeed&quot; value=&quot;5&quot;&gt;
				&lt;label for=&quot;maxscore&quot;&gt;Max Score: &lt;/label&gt;&lt;input id=&quot;maxscore&quot; class=&quot;short&quot; type=&quot;text&quot; maxlength=&quot;2&quot; name=&quot;maxscore&quot; value=&quot;09&quot;&gt;
				&lt;label for=&quot;paddlespeed&quot;&gt;Paddle Speed: &lt;/label&gt;&lt;input id=&quot;paddlespeed&quot; class=&quot;short&quot; type=&quot;text&quot; maxlength=&quot;1&quot; name=&quot;paddlespeed&quot; value=&quot;3&quot;&gt;
				&lt;button id=&quot;save&quot; type=&quot;button&quot; class=&quot;button save&quot; name=&quot;save&quot;&gt;Save&lt;/button&gt;
			&lt;/form&gt;
		&lt;/div&gt;
	&lt;/div&gt;
	&lt;div class=&quot;clear-both&quot;&gt;&lt;/div&gt;
&lt;/div&gt;</code></pre><p><p>
<p>The container with the ID <b>scoreboard</b> will carry the &#8220;Start/Resume game&#8221; button and the score (which will be updated dynamically) board for the both players. In HTML5 there is an element named <code>button</code> which can be added to perform some action. Note the attribute <code>type="button"</code> which means that it does nothing if the button is clicked. If this is not specified, the page will be reloaded with every click in an undesirable loop.</p>
<p>The container with the ID <b>playground</b> will have the moving paddle for the players and the generic ball, and the container with the ID <b>saveoptions</b> will carry a form which based on user input will modify the &#8220;Ball Speed&#8221;, &#8220;Paddle Speed&#8221; and the value of &#8220;Max Score&#8221;.</p>
<p>Having this, we can now start developing the game engine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2011/11/15/develop-a-ping-pong-game-using-html5-css3-and-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS properties for HTML elements &#8211; tips and tricks</title>
		<link>http://www.lostresort.biz/blog/2011/10/24/css-properties-for-html-elements-tips-and-tricks/</link>
		<comments>http://www.lostresort.biz/blog/2011/10/24/css-properties-for-html-elements-tips-and-tricks/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 08:54:18 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS tips and tricks]]></category>
		<category><![CDATA[styling HTML elements]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=800</guid>
		<description><![CDATA[Today, web browsers tend to adhere more accurately to the Web Standards, especially when it comes about CSS properties. CSS3 properties are supported by all web browser engines and with every version released more new properties can be used to style the HTML elements. In this article I&#8217;ll try to emphasize some useful approaches which can be used<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2011/10/24/css-properties-for-html-elements-tips-and-tricks/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<p>Today, web browsers tend to adhere more accurately to the Web Standards, especially when it comes about CSS properties. CSS3 properties are supported by all web browser engines and with every version released more new properties can be used to style the HTML elements. In this article I&#8217;ll try to emphasize some useful approaches which can be used to make your work easier.</p>
<h3>Which statement is served first?</h3>
<p>A <code>style.css</code> file is nothing more than a text file with (a lot of) statements which define properties for HTML elements. Note, this is the default style sheet file, and the statements are read from top to bottom and from left to right. So, a good approach is to have on top statements for <code>html</code> and <code>body</code> elements, and general properties for other HTML elements (like <code>text-decoration:none</code> for anchor link, or <code>list-style-type:none</code> for unordered or ordered list elements etc.). Keeping things in good order, will save you time from not wasting it.</p>
<h3>Which property should come first?</h3>
<p>When declaring properties for styling HTML elements I think is better to start with properties that have to do with the position of the element inside the HTML page. So, start with declarations for <code>display</code>, <code>margin</code>, <code>padding</code> and <code>position</code>, and finish with the <code>font</code> characteristics. Also, give a width to the elements like <code>img</code> or the ones who <code>float</code>. With this approach, you&#8217;ll avoid loading pages with elements that &#8220;struggle&#8221; to find their places inside the content.</p>
<h3>Which value for measurement unit to use?</h3>
<p>When it comes about <a href="http://www.lostresort.biz/blog/2009/07/21/using-absolute-or-relative-values-for-measurement-units/" title="Using absolute or relative values for measurement units">values for measurement units</a>, is better to use <code>px</code>, <strong>a relative unit to the viewing device</strong> for style properties like <code>margin</code>, <code>padding</code>, <code>position</code> and <code>width</code>. At least, a pixel has the same dimension in all web browsers&#8217; engine, and the cross-browser differences are not noticeable. For <code>font</code> you can use <code>em</code> to have the height flexible.</p>
<h3>Dealing with images and objects</h3>
<p>Give a <code>width</code> and a <code>height</code> to the images or the objects you want to be loaded inside the page. With this, you wont see &#8220;running&#8221; pieces of text finding their places inside the page. Note that, this elements will overflow if their width will exceed the width of their parent element (a <code>div</code>). For avoiding this, is better to set a maximum limit for the element&#8217;s width:</p>
<blockquote><p>
img {max-width:100%;height:auto}
</p></blockquote>
<p>With this, the image width will be limited to it&#8217;s parent width, and <code>height:auto</code> will set the height to the correct value, preserving the aspect ratio. An <code>object</code> is often the media stream of a movie or a video clip. Setting the same maximum limit as the images have, wont have the same result in all major browser. A solution might be to set the max-width to 100% and the max-height to a maximum value in pixels based on the aspect ratio of the video AND taking into consideration the width of the parent in pixels. More precisely, if you have a container with the width set to 600px, set the max-height of the object to 450px (aspect ratio 4:3).</p>
<h3>Classes or IDs?</h3>
<p>When you want to style some HTML elements or to manipulate them using JavaScript giving and ID and/or classes to him will help things out. An ID is an <b>unique</b> identifier so, it can be used once per page. A footer, a navigation menu or a main content container should be emphasized by an ID. Classes must be used when more than one element needs to be styled or manipulated. Semantically, is incorrect to use only classes inside a HTML page. But, this approach can be used, because no errors will occur.</p>
<h3>Tables or DIVs?</h3>
<p>In our days, the trend is to use DIV as a container and to keep separated the style properties for the HTML elements, and make the page layout &#8220;tableless&#8221;. Anyway, tables are good also, at least when it comes about forms. The elements are aligned better inside a form, when <code>label</code> and <code>input</code> are coming together, if they are placed inside a <code>td</code> element.</p>
<h3>Conclusions</h3>
<p>A good start, when you develop a website site, with solid knowledge as a foundation for HTML and CSS coding, will keep things clear and easy to understand for further improvements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2011/10/24/css-properties-for-html-elements-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fistic &#8211; WordPress Template</title>
		<link>http://www.lostresort.biz/blog/2011/01/16/fistic-wordpress-template/</link>
		<comments>http://www.lostresort.biz/blog/2011/01/16/fistic-wordpress-template/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 06:37:38 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[WordPress Templates]]></category>
		<category><![CDATA[free wordpress template]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=741</guid>
		<description><![CDATA[This is a free WordPress template released under the GPL v3. The colors used are (most) green (thus the Fistic name) and white and some variations of dark green nuance. Structure The header of the page page has 3 (three) areas: first: the title and the description of the blog which float to the right, second the menu:<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2011/01/16/fistic-wordpress-template/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<p>This is a free WordPress template released under the <a href="/fistic/License-and-use/">GPL v3</a>. The colors used are (most) green (thus the Fistic name) and white and some variations of dark green nuance.</p>
<h3>Structure</h3>
<p>The header of the page page has 3 (three) areas: <b>first:</b> the title and the description of the blog which float to the right, <b>second</b> the menu: (supports custom menus) and <b>third:</b> a container with a search box floating to the right and a box with a link pointing to login page if user is not logged in and to admin panel if the user is logged in.</p>
<p>The front page has a different layout from single post and single page. It lists the existing post with the following format: on the left the title of the post (permalink to the post), in the middle a thumbnail and on the right the excerpt of the post. The image thumbnail is generated as follows: if the post doesn&#8217;t have a featured image, a function generates a random number between 1 and 6 and adds an image from the <strong>/template_directory/img/thumbs/</strong> folder if is not a sticky post, and from the <strong>/template_directory/img/sticky/</strong> folder if it is a sticky post. See the code bellow:</p>
<pre class="crayon-plain-tag"><code>//Random image for thumbs if don't exist
function random_thumb_post () {
	$templ_dir = get_bloginfo('template_directory');
	$ext = '.png';
	if (!is_sticky()) {
		$thumb_dir = '/img/thumbs/';
	} else {
		$thumb_dir = '/img/sticky/';
	};
	$i=rand(1,6);
	$img[$i]= $templ_dir . $thumb_dir . $i. $ext;
	print '&lt;code&gt;&lt;&lt;/code&gt;img class=&quot;float-left thumb-img&quot; src=&quot;'.$img[$i].'&quot; alt=&quot; &quot; /&gt;';
	};</code></pre>
<p>Note that the images are PNGs and you can see how they are displayed on the second page of the front page of this presentation environment.</p>
<p>The single page has the main content floating on the left and a sidebar floating on right. The main content container is split in two, on the right side being the details for the post (time, tags, author) and a box with a list of random post titles (excluding the current one).</p>
<p>The footer area has just a few notes about the copyright notice and a small text about the template's author.</p>
<h3>Gallery</h3>

<a href='http://www.lostresort.biz/blog/2011/01/16/fistic-wordpress-template/fistic-404-page/' title='fistic-404-page'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2011/01/fistic-404-page-150x150.png" class="attachment-thumbnail" alt="fistic-404-page" title="fistic-404-page" /></a>
<a href='http://www.lostresort.biz/blog/2011/01/16/fistic-wordpress-template/fistic-archive-page/' title='fistic-archive-page'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2011/01/fistic-archive-page-150x150.png" class="attachment-thumbnail" alt="fistic-archive-page" title="fistic-archive-page" /></a>
<a href='http://www.lostresort.biz/blog/2011/01/16/fistic-wordpress-template/fistic-front-page/' title='fistic-front-page'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2011/01/fistic-front-page-150x150.png" class="attachment-thumbnail" alt="fistic-front-page" title="fistic-front-page" /></a>
<a href='http://www.lostresort.biz/blog/2011/01/16/fistic-wordpress-template/fistic-search-page-pmg_/' title='fistic-search-page.pmg_'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2011/01/fistic-search-page.pmg_-150x150.png" class="attachment-thumbnail" alt="fistic-search-page.pmg_" title="fistic-search-page.pmg_" /></a>
<a href='http://www.lostresort.biz/blog/2011/01/16/fistic-wordpress-template/fistic-single-page/' title='fistic-single-page'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2011/01/fistic-single-page-150x150.png" class="attachment-thumbnail" alt="fistic-single-page" title="fistic-single-page" /></a>
<a href='http://www.lostresort.biz/blog/2011/01/16/fistic-wordpress-template/fistic-single-post/' title='fistic-single-post'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2011/01/fistic-single-post-150x150.png" class="attachment-thumbnail" alt="fistic-single-post" title="fistic-single-post" /></a>

<h3>Web browser compatibility</h3>
<p>The template was tested on different environments and it displays well on <b>Firefox v3.6</b>, <b>Opera v10.63</b>, <b>Safari v5.0</b>, <b>Chrome v8.0</b> and <b>Internet Explorer v8.0</b>. Looks good on <b>Internet Explorer v7.0</b> and more than acceptable on <b>Internet Explorer v6.0</b>.</p>
<h3>Known issues</h3>
<p>Opera doesn't know how to render the italicized version of the used font (<a href="http://code.google.com/webfonts/family?family=Neucha&#038;subset=latin">Neucha</a>). Also, in "Reader made ... comments" section on front page, for Linux OSes is seems that the font used (<b>sans-serif</b>) doesn't fit the text in the container width, so I've place the "Nimbus Mono L" before sans serif-font, and it looks a little bit different.</p>
<h3>Download</h3>
<p>You can <a href="http://wordpress.org/extend/themes/fistic">DOWNLOAD</a> the template from WordPress site. A <a href="http://wpmu.lostresort.biz/fistic/">LIVE PREVIEW</a> of the template is available also.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2011/01/16/fistic-wordpress-template/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Check for pagination of front or archive page in WordPress</title>
		<link>http://www.lostresort.biz/blog/2010/11/11/check-for-pagination-of-front-page-or-archive-type-page-in-wordpress/</link>
		<comments>http://www.lostresort.biz/blog/2010/11/11/check-for-pagination-of-front-page-or-archive-type-page-in-wordpress/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 09:18:52 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[WordPress Template Development]]></category>
		<category><![CDATA[check wordpress pagination]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=724</guid>
		<description><![CDATA[In my WordPress templates, as many others web developers are doing in their own, I put the navigation links for posts on front page or archive type page in a container, styled using CSS properties. There are situations when the container is displayed well, when the pagination links are not present. But, why this container shouldn&#8217;t be displayed<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2010/11/11/check-for-pagination-of-front-page-or-archive-type-page-in-wordpress/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<p>In my WordPress templates, as many others web developers are doing in their own, I put the navigation links for posts on front page or archive type page in a container, styled using CSS properties. There are situations when the container is displayed well, when the pagination links are not present. But, why this container shouldn&#8217;t be displayed at all, to preserve a clean appearance of the template?</p>
<h3>Check for pagination</h3>
<p>The solution is quite simple and doesn&#8217;t require a lot of coding to achieve this result. If you take a look at how <a href="http://core.trac.wordpress.org/browser/tags/3.0.1/wp-includes/link-template.php">WordPress Link Template Functions</a> are made you&#8217;ll see that one parameter which counts is <b>max_num_pages</b>, which, I presume, stores the value of the maximum page number to navigate through. So, check if this value is greater than 1 (one), and the value returned is true, than, display the pagination links. The following code can be placed before the pagination links&#8217; container:</p>
<pre class="crayon-plain-tag"><code>&lt;?php $total = $wp_query-&gt;max_num_pages ; ?&gt;
	&lt;?php if ($total &gt; 1) : ?&gt;
		//navigation links container here
	&lt;?php endif ?&gt;</code></pre>
<p>You don&#8217;t need to reset the query. Also I leave this code on two statements just for artistic impression. You can use <b>if ($wp_query->max_num_pages) > 1</b> only statement as well, the result is the same.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2010/11/11/check-for-pagination-of-front-page-or-archive-type-page-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pencil Draw – WordPress Template</title>
		<link>http://www.lostresort.biz/blog/2010/10/14/pencil-draw-wordpress-template/</link>
		<comments>http://www.lostresort.biz/blog/2010/10/14/pencil-draw-wordpress-template/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 05:35:28 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress Templates]]></category>
		<category><![CDATA[blue white green colors wordpress template]]></category>
		<category><![CDATA[free wordpress template]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=693</guid>
		<description><![CDATA[About the template The template was created using blue, green and white colors. It has a header area, a main content floating to the right, a sidebar floating to the left and a footer area. The design was built based on what I call a &#8220;pencil draw&#8221; simulation, used to create the corners of the containers and as<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2010/10/14/pencil-draw-wordpress-template/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<h3>About the template</h3>
<p>The template was created using blue, green and white colors. It has a header area, a main content floating to the right, a sidebar floating to the left and a footer area. The design was built based on what I call a &#8220;pencil draw&#8221; simulation, used to create the corners of the containers and as background for various inpage elements. The header area has a search form, so the one in the sidebar is not necessary anymore.</p>

<a href='http://www.lostresort.biz/blog/2010/10/14/pencil-draw-wordpress-template/pd-footer/' title='pd-footer'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2010/10/pd-footer-150x150.png" class="attachment-thumbnail" alt="pd-footer" title="pd-footer" /></a>
<a href='http://www.lostresort.biz/blog/2010/10/14/pencil-draw-wordpress-template/pd-middle/' title='pd-middle'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2010/10/pd-middle-150x150.png" class="attachment-thumbnail" alt="pd-middle" title="pd-middle" /></a>
<a href='http://www.lostresort.biz/blog/2010/10/14/pencil-draw-wordpress-template/pd-top/' title='pd-top'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2010/10/pd-top-150x150.png" class="attachment-thumbnail" alt="pd-top" title="pd-top" /></a>

<h3>The design</h3>
<p>The design is not very complicated and/or graphic emphasized. The containers were built using 3 (three) <code><</code>div<code>></code> elements which overlap one over another to create the box effect. The DTD used for the HTML code is XHTML 1.0 Transitional. The fonts used for the template are <b>Trebuchet MS</b> and <b>Georgia</b>.</p>
<h4>The header area</h4>
<p>The header area contains a heading formatted as a link for the name of the blog, and the description of the blog goes under it. Those two elements are placed on the left side. On the right side I placed a search form.<br />
The last element is the menu container. The template supports custom menus as it is emphasized in <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu">WordPress codex about wp_nav_menu()</a>. As the documentation says, if no custom menu is defined the function will fallback to <b>wp_page_menu</b>, else if <b>name</b> argument has no value defined or the value defined doesn't match the name of any custom menu defined, the function's name argument will take the name of the first custom menu defined (with the lowest ID). To use any other custom menu you have to manually add the menu name in the <b>functions.php</b> file in the navigation menu section. The menu supports two levels deep navigation (the parent will have children, and the children will have children), which means that the style sheet formats the menu list elements to be displayed. If you want more you have to add the proper formatting for the third level and so on (i.e.: <b> div#menu ul ul ul ...</b>). You have to pay attention to the order the CSS properties are declared, as long as they are served to the HTML page from top to bottom of the <b>style.css</b>.</p>
<h3>The main content container</h3>
<p>This container floats to the right. The main page file, <b>index.php</b> takes the while loop for the exiting posts and displays the entire content of the posts, not the excerpt. Based on the way the container is created, it was simple to add a conditional statement for the sticky post and with the help of the CSS properties to emphasized it on page. The pages supports <b>wp_link_pages()</b> function which will add links to the next pages of one post, if it is split in more than one parts. Another function used is <b>wp_list_pages()</b> to add a link inside the page to the child pages of the current page. The <b>page.php</b> and <b>single.php</b> pages has the comment form built using the <b>comments_template()</b> function. Also I added a filter to change the messages of the input elements' labels. The template supports nested comments, three levels deep. If you want more, you have to add the proper style properties to achieve the desired effect. The comments made by the administrator and by the author of the post are styled to be displayed different from the other comments. But, you have to modify in the style.css file the statements for the <b>comment-author-administrator</b> class, <b>if your nickname, as it appears in the dashboard of your user admin (or editor) page, is different from <i>administrator</i>, and change it to the nickname you have</b>. Otherwise, no change to the comment style. The comment <b>li</b> elements are not styled differently for <b>even</b> and <b>odd</b> classes. In the next version this will be added.</p>
<p>The template also has a <b>404.php</b>, a <b>search.php</b> and an <b>archive.php</b> page. If you want to use the <b>archive.php</b> page <a href="http://codex.wordpress.org/Creating_an_Archive_Index#for_WP_1.5.2B">read how to create an archive page</a>.</p>
<h3>The sidebar</h3>
<p>The sidebar floats to the left and it supports widgets. By default it has 4 (four) custom widgets defined: <b>Category, Blogroll, Archives (monthly) and Meta</b>. Also in <b>functions.php</b> file has 3 (three) custom widgets declared: <b>Custom Calendar, Custom Search Form and Custom Tag Cloud</b>.</p>
<h3>The footer</h3>
<p>The footer has 2 functions which will generate a list of 3 (three) links for random posts and 3 (three) links for random pages. These two containers will float to the left, and on the right side are posted credentials for the template's author.</p>
<h3>Credits</h3>
<p>The template is released under <a href="http://www.gnu.org/licenses/gpl.html">GPL v3 license</a>. You can use it as it is, modify it, for commercial or non-commercial use. </p>
<p>You can <a href="http://wordpress.org/extend/themes/pencil-draw">DOWNLOAD</a> the template from WordPress site. A <a href="http://wpmu.lostresort.biz/pencil-draw/">LIVE PREVIEW</a> of the template is available also.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2010/10/14/pencil-draw-wordpress-template/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Red Shadow WordPress Template</title>
		<link>http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/</link>
		<comments>http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 06:41:17 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress Templates]]></category>
		<category><![CDATA[free wordpress template]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=649</guid>
		<description><![CDATA[About the template Basically it has the backbone of the actual previous template of this blog. But, being developed based on an old WordPress template, requires a lot of code updates to meet the latest major version requirements. Anyway, after a week of reading, writing and designing and after a few more to wait for its approval, now<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<h3>About the template</h3>
<p>Basically it has the backbone of the <del datetime="2010-10-04T12:02:08+00:00">actual</del> previous template of this blog. But, being developed based on an old <strong>WordPress template</strong>, requires a lot of code updates to meet the latest major version requirements. Anyway, after a week of reading, writing and designing and after a few more to wait for its approval, now it is ready to be distributed.</p>

<a href='http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/top-red-shadow/' title='top-red-shadow'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2010/09/top-red-shadow-150x150.png" class="attachment-thumbnail" alt="top-red-shadow" title="top-red-shadow" /></a>
<a href='http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/middle-2/' title='middle-2'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2010/09/middle-2-150x150.png" class="attachment-thumbnail" alt="middle-2" title="middle-2" /></a>
<a href='http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/middle-1/' title='middle-1'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2010/09/middle-1-150x150.png" class="attachment-thumbnail" alt="middle-1" title="middle-1" /></a>
<a href='http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/footer/' title='footer'><img width="150" height="150" src="http://www.lostresort.biz/blog/wp-content/uploads/2010/09/footer-150x150.png" class="attachment-thumbnail" alt="footer" title="footer" /></a>

<h3>The design</h3>
<p>The design is not very complicated and/or graphic emphasized. It has four main areas: the header, the main content container, the left sidebar and the footer. The containers were built using 8 (eight) <code><</code>div<code>></code> elements which overlap one over another to create the box effect. The style sheet formats almost all HTML elements (the drop-down list and the radio buttons are not, and a few more). Anyway, if you want to make some modifications, go ahead and do it. The DTD used for the HTML code is XHTML 1.0 Transitional. The font used for the <b>main headings</b> is <a href="http://code.google.com/webfonts/family?family=Josefin+Sans+Std+Light">Josefin Sans Std Light</a>. The method used by Google seems to not be supported by old IE versions.</p>
<h3>The header area</h3>
<p>The header area contains a heading formatted as a link for the name of the blog, and the description of the blog goes under it. Those two elements are placed on the left side. On the right side there are 2 (two) images formatted as links which will give the possibility to your readers to subscribe to your articles using <b>RSS 2 feeds</b> and the <a href="http://feedburner.google.com/">Google Feedburner</a>. For the last one you have to edit the <b>header.php</b> file and add the necessary link provided by Google. Maybe, in the near future I'll create a function to make this happened using the Dashboard.</p>
<p>The last element is the menu container. The template supports custom menus as it is emphasized in <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu">WordPress codex about wp_nav_menu()</a>. As the documentation says, if no custom menu is defined the function will fallback to <b>wp_page_menu</b>, else if <b>name</b> argument has no value defined or the value defined doesn't match the name of any custom menu defined, the function's name argument will take the name of the first custom menu defined (with the lowest ID). To use any other custom menu you have to manually add the menu name in the <b>functions.php</b> file in the navigation menu section. The menu supports two levels deep navigation (the parent will have children, and the children will have children), which means that the style sheet formats the menu list elements to be displayed. If you want more you have to add the proper formatting for the third level and so on (i.e.: <b> div#menu ul ul ul ...</b>). You have to pay attention to the order the CSS properties are declared, as long as they are served to the HTML page from top to bottom of the <b>style.css</b>.<br />
A snippet of the code is presented bellow.</p>
<p><a href="http://www.lostresort.biz/blog/wp-content/uploads/2010/09/menu-example.png"><img src="http://www.lostresort.biz/blog/wp-content/uploads/2010/09/menu-example.png" alt="" title="menu-example" width="650" height="146" class="alignnone size-full wp-image-660" /></a></p>
<p><b>Important!</b><br />
In this area you have two icons on the right side. One points to the rss feed link and the other should pointed to you feedburner link. <a href="http://feedburner.google.com/">Read more here how to obtain your link</a>. After this you have to edit <b>header.php</b> and add the link in the proper place.</p>
<h3>The main content container</h3>
<p>This container floats to the left. The main page file, <b>index.php</b> takes the while loop for the exiting posts and displays the entire content of the posts, not the excerpt. Based on the way the container is created, it was simple to add a conditional statement for the sticky post and with the help of the CSS properties to emphasized it on page. Another feature added, if I can say so, was to shrink the message "Enter your password to view comments." which is generated by <b>comments_popup_link()</b> function declared in <a href="http://core.trac.wordpress.org/browser/tags/3.0.1/wp-includes/comment-template.php">comment-template.php file</a> on line 973. The problem was if a password protected post exists and the password was not typed and used, instead of displaying "No comments" or "1 Comment" message, the page serve the "Enter your ..." message. This instance is <del datetime="2010-10-04T17:16:08+00:00">only</del> present in <del datetime="2010-10-04T17:16:08+00:00">a <b>WPMU environment</b></del> all WP environment, based on what I experienced. So, shrinking the message assures that it will fit the container's width, otherwise will go under the place should be. The pages supports <b>wp_link_pages()</b> function which will add links to the next pages of one post, if it is split in more than one parts. Another function used is <b>wp_list_pages()</b> to add a link inside the page to the child pages of the current page. The <b>page.php</b> and <b>single.php</b> pages has the comment form built using the <b>comments_template()</b> function. Also I added a filter to change the messages of the input elements' labels. The template supports nested comments, three levels deep. If you want more, you have to add the proper style properties to achieve the desired effect. The comments made by the administrator (or by the main editor) are styled to be displayed different from the other comments. But, you have to modify in the style.css file the statements for the <b>comment-author-administrator</b> class, <b>if your nickname, as it appears in the dashboard of your user admin (or editor) page, is different from <i>administrator</i>, and change it to the nickname you have</b>. Otherwise, no change to the comment style. The comment <b>li</b> elements has different background for <b>even</b> and <b>odd</b> classes.</p>
<p>The template also has a <b>404.php</b>, a <b>search.php</b> and an <b>archive.php</b> page. If you want to use the <b>archive.php</b> page <a href="http://codex.wordpress.org/Creating_an_Archive_Index#for_WP_1.5.2B">read how to create an archive page</a>.</p>
<h3>The sidebar</h3>
<p>The sidebar floats to the right and it supports widgets. By default it has 4 (four) custom widgets defined: <b>Category, Blogroll, Archives (monthly) and Meta</b>. Also in <b>functions.php</b> file has 3(three) custom widgets declared: <b>Custom Calendar, Custom Search Widget and Custom Tag Cloud</b>. Please use the Custom Calendar widget as it is formatted with a different background box.</p>
<h3>The footer</h3>
<p>The footer has 2 links for RSS feeds and a link for the author of this template. Also it has a simple custom function which will display a <b>Welcome back, <code>user first name user last name</code></b> message if the user is logged in, or a <b>Login</b> link if the user is not logged in. Anyway, it will be a little change, the message will be formatted as a link to the admin page, in the next version of this template.</p>
<h3>Credits</h3>
<p>The template is released under <a href="http://www.gnu.org/licenses/gpl.html">GPL v3 license</a>. You can use it as it is, modify it, for commercial or non-commercial use. A thank you message is all that I need, if you get some satisfaction using this template.</p>
<p>You can <a href="http://wordpress.org/extend/themes/red-shadow">DOWNLOAD</a> the template from WordPress site. A <a href="http://wpmu.lostresort.biz/red-shadow/">LIVE PREVIEW</a> of the template is available also.</p>
<p>I hope you'll enjoy it <img src='http://www.lostresort.biz/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2010/09/15/red-shadow-wordpress-template/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Apache Server 2 &#8211; Bible</title>
		<link>http://www.lostresort.biz/blog/2010/08/16/apache-server-2-bible/</link>
		<comments>http://www.lostresort.biz/blog/2010/08/16/apache-server-2-bible/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 08:28:46 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[administration of httpd server]]></category>
		<category><![CDATA[Apache http server]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=634</guid>
		<description><![CDATA[A book by Mohammed J. Kabir Structure of the book The book is structured in six parts, starting from httpd server installation and ending covering the performance and scalability of the Apache Server. Even it was written long time ago, the book still remains a good reading to understand how Apache httpd server runs and how to administrate<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2010/08/16/apache-server-2-bible/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<h3>A book by Mohammed J. Kabir</h3>
<p><a href="http://www.lostresort.biz/blog/wp-content/uploads/2010/08/apache-server.png"><img src="http://www.lostresort.biz/blog/wp-content/uploads/2010/08/apache-server.png" alt="Apache Server 2 - Bible cover" title="Apache Server 2 - Bible cover" width="250" height="309" class="alignnone float-left size-full wp-image-635" style="margin:0 1em 0.7em 0" /></a></p>
<h3>Structure of the book</h3>
<p>The book is structured in six parts, starting from httpd server installation and ending covering the performance and scalability of the <a href="http://httpd.apache.org/">Apache Server</a>. Even it was written long time ago, the book still remains a good reading to understand how Apache httpd server runs and how to administrate it for optimal functionality.</p>
<h4>Part I: Getting Started</h4>
<p>In this part the author explains how to get Apache up and running with minimal changes to the default configuration files so that you can get Apache httpd server up and running on your system as quickly as possible. You can install httpd server on Linux and/or Windows machines.</p>
<h4>Part II: Website Administration</h4>
<p><cite title="This paragraph is at it appears in the book">This part focuses on typical Web administration tasks such as virtual Web-site creation, user authentication and authorization tasks, monitoring, logging, rewriting and redirecting URLs, proxy service, and the like. You learn a great deal there is to know about creating and managing virtual Web sites. You master various methods of user authentication, authorization, and access control techniques. You learn to monitor Web servers and to customize log files for analysis.</cite></p>
<h4>Part III: Running Web Applications</h4>
<p><cite title="This paragraph is at it appears in the book">The practice of serving static HTML pages is almost a thing of the past. These days, most popular Web sites have a great deal of dynamic content. People do not visit Web sites that do not change frequently. Therefore, it is important to know how to enable dynamic contents using CGI scripts, Server Side Includes, FastCGI applications, PHP, mod_perl scripts, and Java servlets. This part shows you how to use all of these technologies with Apache.</cite></p>
<h4>Part IV: Securing Your Web Site</h4>
<p>Ensuring Web site security is a critical part of a Web administrator’s job. In this part, the author discuss the various security issues that can arise with Apache, and how to resolve these issues by using various tools, techniques, and policies or guidelines. He also shows you how to turn your Apache server into a Secure Socket Layer (SSL) &#8211; capable Web server using either the mod_ssl or Apache-SSL modules. You are also introduced to the potential risks of running SSI and CGI programs and how to take preventive measures to avoid these risks.</p>
<h4>Part V: Running Apache on Windows</h4>
<p>As the title says, you will learn hot to install and run Apache on a 32 bits Windows platform. With Apache 2.0, the performance of Apache Web server under this platform has become very promising. I am using too, as a localhost environment and so far so good.</p>
<h4>Part VI: Tuning for Performance and Scalability</h4>
<p>Like any good application, Apache can be fine-tuned beyond the initial configuration for higher performance.<br />
In this part, the author shows you how to speed up Apache by tuning the configuration, and you will also learn how to create a scalable Web server network using multiple Apache Web server systems.</p>
<h3>Conclusions</h3>
<p>A comprehensive book about how to install, configure and tweak the Apache httpd server. Examples accompanied the subjects debated. A good start for reading about the Apache httpd Server.</p>
<h3>References</h3>
<p>The book itself. Well, I did not find any direct link to the official publisher&#8217;s site. <a href="http://eu.wiley.com/WileyCDA/">Wiley</a> is the successor of Hungry Minds, but doesn&#8217;t have any records about this book. If you search on <a href="http://www.google.ro/search?client=firefox-a&#038;rls=org.mozilla%3Aen-US%3Aofficial&#038;channel=s&#038;hl=ro&#038;source=hp&#038;q=apache+bible&#038;meta=&#038;btnG=C%C4%83utare+Google">Google</a> about the title&#8217;s book you&#8217;ll even find an electronic format of it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2010/08/16/apache-server-2-bible/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML 1.1 Bible, 3rd Edition</title>
		<link>http://www.lostresort.biz/blog/2010/03/15/xml-1-1-bible-3rd-edition/</link>
		<comments>http://www.lostresort.biz/blog/2010/03/15/xml-1-1-bible-3rd-edition/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 09:10:29 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[XML Bible book review]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=606</guid>
		<description><![CDATA[A book by Elliotte Rusty Harold A few words about author Elliotte Rusty Harold is an internationally respected writer, programmer, and educator, both on the Internet and off. He got his start writing FAQ lists for the Macintosh newsgroups on Usenet and has since branched out into books, Web sites, and newsletters. He’s an adjunct professor of computer<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2010/03/15/xml-1-1-bible-3rd-edition/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<h3>A book by Elliotte Rusty Harold</h3>
<p><a href="http://www.lostresort.biz/blog/wp-content/uploads/2010/03/XML-Bible.png"><img src="http://www.lostresort.biz/blog/wp-content/uploads/2010/03/XML-Bible.png" alt="XML-Bible Cover Book" title="XML-Bible Cover Book" width="250" height="318" class="alignnone size-full wp-image-608" style="float:left;margin:0 1em 0.7em 0"/></a></p>
<h4>A few words about author</h4>
<p><cite title="From book's about author page">Elliotte Rusty Harold is an internationally respected writer, programmer, and educator, both on the Internet and off. He got his start writing FAQ lists for the Macintosh newsgroups on Usenet and has since branched out into books, Web sites, and newsletters. He’s an adjunct professor of computer science at Polytechnic University in Brooklyn, New York. His Cafe con Leche Web site at <a href="http://www.cafeconleche.org/">cafeconleche.org</a> has become one of the most popular independent XML sites on the Internet.</cite></p>
<h3>Subject covered by the book</h3>
<p>The author speaks more to a website page author and less to a software programmer. <b>XML</b> is a markup language and not a programming language. The book covers the following aspects: you&#8217;ll learn how to validate documents against <b>DTDs</b> and schemas, how to author XML documents and make sure your XML is well formed, how to format your documents with <b>CSS</b> and <b>XSL</b> style sheets and how to build large documents from smaller parts using entities and <b>XInclude</b> and to connect documents with <b>XLinks and XPointers</b>.</p>
<p>The book is structured in five parts, starting with the simple things of introducing XML and ending with XML applications, and the data flows on more than 1150 pages.</p>
<h3>XML is for structured data</h3>
<p>XML is ideal for large and complex documents because the data is structured. You specify a vocabulary that defines the elements in the document, and you can specify the relations between elements. XML is a document format, a series of rules about what a document looks like. Comparing with <b>HTML</b> which has predefined elements, with XML you can define your own elements with the limitation that they are not completely arbitrary and have to follow a specific set of rules. <b><i>An XML document has to be a well-formed document</i></b>.</p>
<h3>Document Type Definitions</h3>
<p>The second part of the book covers how to validate XML documents against DTDs. A <b>document type definition</b> lists the elements, attributes, entities, and notations that can be used in a document, as well as their possible relationships to one another. It is <b>set of declarations of rules</b> for the structure of elements in an XML document.</p>
<h3>Style Languages</h3>
<p>To style the output of an XML document you can apply the rules of CSS, as used for <b>HTML</b> documents. But you can use the more powerful <b>XSL (Extensible Stylesheet Language)</b> which includes both a transformation language and a formatting language. The third part of the book covers both aspects, <b>XSL Transformations (XSLT)</b> and <b>XSL Formatting Objects (XSL-FO)</b> with examples to understand well how XSL works.</p>
<h3>Supplemental Technologies</h3>
<p>This part of the book is about <b>XLinks</b>, <b>XPointers</b>, <b>XInclude</b> and <b>Schemas</b>. XLink is similar with HTML link but is not restricted only to <code><</code>A<code>></code> (anchor) tag, which is a more flexible approach.<br />
Schemas address a number of perceived limitations of DTDs, including a strange, non-XML syntax, namespace incompatibility, lack of data typing, and limited extensibility and scalability.</p>
<h3>XML Application</h3>
<p>This last part introduces more deeply in XHTML structure. XHTML 1.1 is much more practically extensible.<br />
It is divided into <b>abstract modules</b>, each covering a specific area of functionality, such as tables, forms, images, structure, and text. The HTML elements and attributes are structured in 28 modules. For the most part, however, standard HTML pages require most of the modules. It’s when you begin mixing XHTML into your own XML applications that you can take advantage of smaller subsets of functionality.</p>
<h3>Conclusions</h3>
<p>If you want to learn how to use structured data with the help of XML and XHTML this book is a good start. Aspects are well explained and accompanied by detailed examples. Even it was released in 2004 is far from being obsolete.</p>
<h3>References</h3>
<p><a href="http://eu.wiley.com/WileyCDA/WileyTitle/productCd-0764549863,descCd-description.html">XML Bible, 3rd edition</a> - <b>ISBN: 978-0-7645-4986-1</b></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2010/03/15/xml-1-1-bible-3rd-edition/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu – useful applications</title>
		<link>http://www.lostresort.biz/blog/2010/03/05/ubuntu-useful-applications/</link>
		<comments>http://www.lostresort.biz/blog/2010/03/05/ubuntu-useful-applications/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 13:41:29 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Linux - Ubuntu]]></category>
		<category><![CDATA[modifying Xorg X-server parameters]]></category>
		<category><![CDATA[Ubuntu applications]]></category>
		<category><![CDATA[Ubuntu Linux commands]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=542</guid>
		<description><![CDATA[As of today, Ubuntu had come to its 9.10 version, named Karmic Koala. Ubuntu is a Linux based operating system, built mostly from Debian. To some extent is a good alternative for paid Operating Systems (Windows, Mac OS etc.). If you intend to use this OS mostly for Internet surfing, programming, learning, image manipulation, testing and some other<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2010/03/05/ubuntu-useful-applications/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<p>As of today, Ubuntu had come to its 9.10 version, named Karmic Koala. Ubuntu is a Linux based operating system, built mostly from Debian. To some extent is a good alternative for paid Operating Systems (Windows, Mac OS etc.). If you intend to use this OS mostly for Internet surfing, programming, learning, image manipulation, testing and some other tasks it is a good choice to install it on your computer.</p>
<h3>Windows emulation application</h3>
<p><a href="http://www.winehq.org/">Wine</a> lets you run Windows software on other operating systems (like Linux). You have to note that not <strong>every</strong> application will run, but users tested and reviewed more thousands applications. <a href="http://appdb.winehq.org/">Application database</a> has more than 13,000 entries with applications that work on various OSes.</p>
<h3>Updating your Operating System</h3>
<p>This operation can be done using two methods. First you can use the Update Manager (which can be find under <b>System &#8211;&gt; Administration</b>.</p>
<p><a href="http://www.lostresort.biz/blog/wp-content/uploads/2010/01/up-man.png"><img src="http://www.lostresort.biz/blog/wp-content/uploads/2010/01/up-man.png" alt=" " title="up-man" width="505" height="624" class="alignnone size-full wp-image-557" /></a></p>
<p>After you press the <b>Check</b> button you will be prompted for your user session password. After this step, if any updates available, you can install them, all or partially based on your selection.</p>
<p>The other method can achieve the same result using the command prompt terminal. <b>Terminal</b> can be found under <b>Applications &#8211;&gt; Accessories</b>.</p>
<p>In the terminal you can type:</p>
<pre class="crayon-plain-tag"><code>sudo apt-get update
sudo apt-get upgrade</code></pre>
<p><cite title="https://help.ubuntu.com/8.04/serverguide/C/apt-get.html">The apt-get command is a powerful command-line tool used to work with Ubuntu&#8217;s Advanced Packaging Tool (APT) performing such functions as installation of new software packages, upgrade of existing software packages, updating of the package list index, and even upgrading the entire Ubuntu system.</cite></p>
<p>First command updates the package index; the APT package index is essentially a database of available packages from the repositories defined in the <b>/etc/apt/sources.list</b> file.<br />
Second command upgrades packages; from time to time, updated versions of some packages currently installed on your computer become available from the package repositories.</p>
<p>The <b>sudo</b> command will run the commands as super user and you&#8217;ll be prompted for your user session password. After the system update you can run <b>sudo apt-get autoclean</b> to clear out the local repository of retrieved package files. More details about <b>apt-get</b> command can be found if you ran in a terminal the command <b>man apt-get</b>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2010/03/05/ubuntu-useful-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create navigational menus using only images</title>
		<link>http://www.lostresort.biz/blog/2009/10/29/how-to-create-navigational-menus-using-only-images/</link>
		<comments>http://www.lostresort.biz/blog/2009/10/29/how-to-create-navigational-menus-using-only-images/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 11:41:59 +0000</pubDate>
		<dc:creator>Cristi_N</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[horizontal menus with images]]></category>
		<category><![CDATA[menus]]></category>

		<guid isPermaLink="false">http://www.lostresort.biz/blog/?p=517</guid>
		<description><![CDATA[Pre-Requisites: We want to create a navigational menu using a fancy font-type which looks great on our website. But, we want to achieve this effect not using any JavaScript library or any flash object and we want this menu to be similar in functionality with any other menu that uses text in anchor links. Creating the menu The<br /><a class="read-rest" href="http://www.lostresort.biz/blog/2009/10/29/how-to-create-navigational-menus-using-only-images/">Read the rest ...</a>]]></description>
			<content:encoded><![CDATA[<p><b>Pre-Requisites</b>: We want to create a navigational menu using a fancy font-type which looks great on our website. But, we want to achieve this effect not using any JavaScript library or any flash object and we want this menu to be similar in functionality with any other menu that uses text in anchor links.</p>
<h3>Creating the menu</h3>
<p>The solution I will present I find it simple and easy to implement. We will create a navigational menu using an unordered list of anchor links displayed on one line, and we use different background images for each element to create the desired effect. The HTML code will be as following:</p>
<pre class="crayon-plain-tag"><code>&lt;ul id=&quot;buttons&quot;&gt;
	  &lt;li id=&quot;home&quot;&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
	  &lt;li id=&quot;services&quot;&gt;&lt;a href=&quot;#&quot;&gt;Services&lt;/a&gt;&lt;/li&gt;
	  &lt;li id=&quot;about_us&quot;&gt;&lt;a href=&quot;#&quot;&gt;About Us&lt;/a&gt;&lt;/li&gt;
	  &lt;li id=&quot;partners&quot;&gt;&lt;a href=&quot;#&quot;&gt;Partners&lt;/a&gt;&lt;/li&gt;
	  &lt;li id=&quot;policy&quot;&gt;&lt;a href=&quot;#&quot;&gt;Policy&lt;/a&gt;&lt;/li&gt;
	  &lt;li id=&quot;contact&quot;&gt;&lt;a href=&quot;#&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
     &lt;/ul&gt;</code></pre>
<p>Nothing complicated so far.</p>
<p>The CSS style properties that we will use are:</p>
<pre class="crayon-plain-tag"><code>ul#button li{float:left;padding:0;margin:0.1em 0.1em 0 0.1em;width:110px;height:40px;text-align:center}
ul#button li a{text-decoration:none;color:#ffffff;display:block;height:40px;font-size:0px;line-height:0px}
#home{background:url(images/buttons_sprite.png) no-repeat 0 0}
li#home a:hover{background:url(images/buttons_sprite.png) no-repeat 0 -41px}
#services{background:url(images/buttons_sprite.png) no-repeat -110px 0}
li#services a:hover{background:url(images/buttons_sprite.png) no-repeat -110px -41px}
#about_us{background:url(images/buttons_sprite.png) no-repeat -220px 0}
li#about_us a:hover{background:url(images/buttons_sprite.png) no-repeat -220px -41px}
#partners{background:url(images/buttons_sprite.png) no-repeat -330px 0}
li#partners a:hover{background:url(images/buttons_sprite.png) no-repeat -330px -41px}
#policy{background:url(images/buttons_sprite.png) no-repeat -440px 0} 
li#policy a:hover{background:url(images/buttons_sprite.png) no-repeat -440px -41px}
#contact{background:url(images/buttons_sprite.png) no-repeat -550px 0}
li#contact a:hover{background:url(images/buttons_sprite.png) no-repeat -550px -41px}</code></pre><p>
<p>As you can see, we will use one image which will incorporate all the necessary images we need, 6 for each active item and another 6 for roll-over effect. In this circumstances it will be one server request (instead of having 12 for all elements) for background images. Using the <code>background-position</code> CSS style property and setting a <code>width</code> and a <code>weight</code> for each list item we can control the appearance of the list elements. Setting the <code>font-size</code><br />
to <code>0px</code> the text should not be displayed. But in Safari and Chrome if you set it to <code>0px</code> or <code>0em</code> somewhat the text is displayed, even its dimension is reduced. Adding <code>line-height</code> property and set it to <code>0px</code> will make the text disappear forever.</p>
<h3>Conclusions</h3>
<p>With this method you can have the appearance you want for your menu using only images with the help of <code>CSS</code> style properties, with the font type you want, and with the good format of the HTML page code in accordance with the <code>SEO</code> requirements.</p>
<p>Follow this link and see few examples on <a href="http://www.lostresort.biz/examples/rollover/create-menus-using-only-images.html">how to create menus using only images</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lostresort.biz/blog/2009/10/29/how-to-create-navigational-menus-using-only-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

