<?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>Deguize</title>
	<atom:link href="http://blog.deguize.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.deguize.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Tue, 23 Aug 2011 15:54:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Great GLUT tutorial from Lighthouse 3D</title>
		<link>http://blog.deguize.com/2011/08/great-glut-tutorial-from-lighthouse-3d.html</link>
		<comments>http://blog.deguize.com/2011/08/great-glut-tutorial-from-lighthouse-3d.html#comments</comments>
		<pubDate>Tue, 23 Aug 2011 15:54:39 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[External Tutorials]]></category>

		<guid isPermaLink="false">http://blog.deguize.com/?p=26</guid>
		<description><![CDATA[<p>Continuing my tutorial reference spree, if you ever want to learn programming with OpenGL  this is definitely the place to start, very well written and through tutorial. The only criticism I have is that it is sometimes hard to follow what is going on as he often just states what to do next, without really saying why.<br [...]]]></description>
				<content:encoded><![CDATA[<p>Continuing my tutorial reference spree, if you ever want to learn programming with OpenGL  this is definitely the place to start, very well written and through tutorial. The only criticism I have is that it is sometimes hard to follow what is going on as he often just states what to do next, without really saying why.<br />
In any case, very good read, have a look!<br />
<a title="Ligthouse 3D Glut Tutorial" href="http://www.lighthouse3d.com/tutorials/glut-tutorial/"></p>
<p>http://www.lighthouse3d.com/tutorials/glut-tutorial/game-mode/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.deguize.com/2011/08/great-glut-tutorial-from-lighthouse-3d.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Text- Selection in web 2.0 personal Comment</title>
		<link>http://blog.deguize.com/2011/08/text-selection-in-web-2-0-personal-comment.html</link>
		<comments>http://blog.deguize.com/2011/08/text-selection-in-web-2-0-personal-comment.html#comments</comments>
		<pubDate>Sat, 20 Aug 2011 06:12:31 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Comment]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[personal comment]]></category>
		<category><![CDATA[text selection]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://blog.deguize.com/?p=29</guid>
		<description><![CDATA[<p style="text-align: justify;">The web is moving faster than ever before, more and more we are moving away from the desktop and onto the web.</p> <p style="text-align: justify;">Services such as facebook and twitter is a good example on how many people spend more time on applications in their browser than locally on their computer.</p> <p style="text-align: [...]]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;">The web is moving faster than ever before, more and more we are moving away from the desktop and onto the web.</p>
<div id="attachment_31" class="wp-caption alignright" style="width: 310px"><a href="http://blog.deguize.com/wp-content/uploads/2011/08/FBselection.png"><img class="size-medium wp-image-31" title="Facebook Text selection" src="http://blog.deguize.com/wp-content/uploads/2011/08/FBselection-300x193.png" alt="Facebook Text selection" width="300" height="193" /></a><p class="wp-caption-text">Text select on Facebook</p></div>
<p style="text-align: justify;">Services such as facebook and twitter is a good example on how many people spend more time on applications in their browser than locally on their computer.</p>
<p style="text-align: justify;">Unfortunately the web is not keeping up with the fast pace that is expected, one area where this is not well handled is text selection. Personally, it annoys me. If you go to Steam, or Twitter and click(and hold) anywhere on the page, it initializes the text selection. This results in the whole page turning blue, all the div boxes will be blue, all the images will be blue, everything. Intuitively, one would expect that only the text will be blue, as that is what you want to select, however you get everything.</p>
<p style="text-align: justify;"><span id="more-29"></span></p>
<div id="attachment_30" class="wp-caption alignleft" style="width: 310px"><br />
<img class="size-medium wp-image-30 " title="Microsoft.com 1996 version" src="http://blog.deguize.com/wp-content/uploads/2011/08/Microsoft.com1996-300x249.png" alt="Microsoft.com in 1996" width="300" height="249" /><p class="wp-caption-text">Microsoft.com 1996</p></div>
<h2 style="padding-top: 20px;">Why?</h2>
<p>Earlier, when the web consisted 90% out of text, this was probably intuitive. Since mostly everything was text, it was convenient to be able to select it from anywhere. They probably wanted to make selection easy and fast. After having tried selecting text in a Flash document, I am sure anyone would agree that being able to initialize text selection from anywhere is very convenient.</p>
<p>This still holds, I would love to be able to select text by clicking and holding on an empty space on the page, and dragging over the text, however I only want the text so be selected and not everything else, which I believe is a common expectation. However today text selection in browsers  only serves as an annoyance for web designers and as a tingling sensation for users that the application is not robust.</p>
<h2 style="text-align: justify; padding-top: 30px;">Solution?</h2>
<pre class="brush: css; title: ;">
-webkit-user-select: none; //no userselect
-khtml-user-select: text; //regular
-moz-user-select: element; //Select whole element
-o-user-select: elements; // Select many elements
user-select: all; //Only select all
</pre>
<div id="attachment_32" class="wp-caption alignright" style="width: 310px"><a href="http://blog.deguize.com/wp-content/uploads/2011/08/TwitterSelection.png"><img class="size-medium wp-image-32" title="Twitter Selection" src="http://blog.deguize.com/wp-content/uploads/2011/08/TwitterSelection-300x280.png" alt="Solution, Selection in Twitter" width="300" height="280" /></a><p class="wp-caption-text">Only selecting tweet bodies</p></div>
<p style="text-align: justify;">In CSS3 there is finally a &#8216;user-select&#8217; attribute, that decides whether a user is able to select the element or not. However,  as with most css attributes, it is inherited. So the most convenient way is to set the body as non-selectable, and then make all text elements on the document selectable. This is of course an extra hassle for us developers, but the result leaves us with a more robust feeling of our web application.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.deguize.com/2011/08/text-selection-in-web-2-0-personal-comment.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Collision detect tutorial, Wild Bunny</title>
		<link>http://blog.deguize.com/2011/08/collision-detect-tutorial-wild-bunny.html</link>
		<comments>http://blog.deguize.com/2011/08/collision-detect-tutorial-wild-bunny.html#comments</comments>
		<pubDate>Wed, 17 Aug 2011 13:46:18 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[External Tutorials]]></category>

		<guid isPermaLink="false">http://blog.deguize.com/?p=25</guid>
		<description><![CDATA[<p>There is just no end for this guy, another tut from wild bunny that easily bests any other collision detection tutorial I have ever read! Hats of to the author.</p> <p><a title="Collision Detection in Actionscript for Dummies" href="http://www.wildbunny.co.uk/blog/2011/04/20/collision-detection-for-dummies/">http://www.wildbunny.co.uk/blog/2011/04/20/collision-detection-for-dummies/</a></p> <p>For those of you noticing the theme of my recent posts, I am currently doing game design [...]]]></description>
				<content:encoded><![CDATA[<p>There is just no end for this guy, another tut from wild bunny that easily bests any other collision detection tutorial I have ever read! Hats of to the author.</p>
<p><a title="Collision Detection in Actionscript for Dummies" href="http://www.wildbunny.co.uk/blog/2011/04/20/collision-detection-for-dummies/">http://www.wildbunny.co.uk/blog/2011/04/20/collision-detection-for-dummies/</a></p>
<p>For those of you noticing the theme of my recent posts, I am currently doing game design in two of my subjects, so this comes in handy <img src='http://blog.deguize.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.deguize.com/2011/08/collision-detect-tutorial-wild-bunny.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing a  physics engine on Wild Bunny</title>
		<link>http://blog.deguize.com/2011/08/writing-a-physics-engine-on-wild-bunny.html</link>
		<comments>http://blog.deguize.com/2011/08/writing-a-physics-engine-on-wild-bunny.html#comments</comments>
		<pubDate>Sun, 14 Aug 2011 06:24:16 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[External Tutorials]]></category>

		<guid isPermaLink="false">http://blog.deguize.com/?p=23</guid>
		<description><![CDATA[<p>I recently stumbled over this tutorial on writing a physics engine in Actionscript, looks very thorough and well written. I believe it is the best tutorial on this subject I have seen, hopefully it will help some of you guys as well. <a href="http://www.wildbunny.co.uk/blog/2011/04/06/physics-engines-for-dummies/"></p> <p>http://www.wildbunny.co.uk/blog/2011/04/06/physics-engines-for-dummies/</a></p>]]></description>
				<content:encoded><![CDATA[<p>I recently stumbled over this tutorial on writing a physics engine in Actionscript, looks very thorough and well written. I believe it is the best tutorial on this subject I have seen, hopefully it will help some of you guys as well. <a href="http://www.wildbunny.co.uk/blog/2011/04/06/physics-engines-for-dummies/"></p>
<p>http://www.wildbunny.co.uk/blog/2011/04/06/physics-engines-for-dummies/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.deguize.com/2011/08/writing-a-physics-engine-on-wild-bunny.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get Google&#8217;s plus 1 button</title>
		<link>http://blog.deguize.com/2011/06/how-to-get-googles-plus-1-button.html</link>
		<comments>http://blog.deguize.com/2011/06/how-to-get-googles-plus-1-button.html#comments</comments>
		<pubDate>Thu, 02 Jun 2011 02:27:53 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Tutorial google]]></category>

		<guid isPermaLink="false">http://blog.deguize.com/?p=15</guid>
		<description><![CDATA[<p>As of now Google has only given a small portion of the US users access to the +1 button, however there is an easy way for anyone to get it!</p> First <p> Make sure you are signed in to your google account, (and have the gear icon beside your name in the right top corner)</p> [...]]]></description>
				<content:encoded><![CDATA[<p>As of now Google has only given a small portion of the US users access to the <em>+1 button</em>, however there is an easy way for anyone to get it!</p>
<h2><strong>First</strong></h2>
<p><strong></strong> Make sure you are signed in to your google account, (and have the gear icon beside your name in the right top corner)</p>
<p><a href="http://blog.deguize.com/wp-content/uploads/2011/06/GoogleAccount.png"><img class="alignnone size-full wp-image-19" title="GoogleAccount" src="http://blog.deguize.com/wp-content/uploads/2011/06/GoogleAccount.png" alt="" width="351" height="133" /></a></p>
<h2><strong>Second</strong></h2>
<p><strong></strong>Click the &#8220;Join this experiment&#8221; on Googles Experimental page here;<br />
<a title="www.google.com/experimental/" href="http://www.google.com/experimental/" target="_blank">http://www.google.com/experimental/</a></p>
<p><a href="http://blog.deguize.com/wp-content/uploads/2011/06/Googleplusone.png"><img class="alignnone size-full wp-image-16" title="Googleplusone" src="http://blog.deguize.com/wp-content/uploads/2011/06/Googleplusone.png" alt="" width="633" height="349" /></a></p>
<p>That&#8217;s it! Now you can start &#8220;plus one&#8221;-ing pages from google search results!</p>
<p><span style="color: #808080;"><em>Keep in mind; you need a supported browser, and a Google profile to be eligible. </em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.deguize.com/2011/06/how-to-get-googles-plus-1-button.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: Understanding Javascript, hiding an object</title>
		<link>http://blog.deguize.com/2011/05/tutorial-understanding-javascript-hiding-an-object.html</link>
		<comments>http://blog.deguize.com/2011/05/tutorial-understanding-javascript-hiding-an-object.html#comments</comments>
		<pubDate>Wed, 25 May 2011 13:52:23 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://blog.deguize.com/?p=12</guid>
		<description><![CDATA[Preface; <p>This is a tutorial series where I will focus more on understanding what the heck is going on, and less on copy/paste.  Over the years I&#8217;ve seen a tendancy for people to put in huge chunks of code, and expecting readers to blatantly copy paste to get some kind of result. Some credit whould be given [...]]]></description>
				<content:encoded><![CDATA[<h2>Preface;</h2>
<p>This is a tutorial series where I will focus more on understanding what the heck is going on, and less on copy/paste.  Over the years I&#8217;ve seen a tendancy for people to put in huge chunks of code, and expecting readers to blatantly copy paste to get some kind of result. Some credit whould be given to those who explain their code afterwards, however I for one do not believe that is a style that suits everyone. Therefore these tutorials will focus on understanding the concepts, and why the code works.</p>
<p>This is my first tutorial series, please give lots of feedback, positive or negative (I enjoy both) so that I can improve the subsequent tutorials.</p>
<h2>Concept</h2>
<p>We are going to start off with something simple yet very popular. <em>Hiding an object. </em></p>
<p>Let&#8217;s think for a second, what is required to hide an object on a webpage? You could;</p>
<p>* put another element in front (other element must be same size even if the size increases over time = more complicated)<br />
* position it outside the browser view (might mess up other elements, depending on positions = more complicated)<br />
* hide it through CSS<br />
* make the opacity 0 (element will still occupy space, less browser independent &amp; more resource demanding)</p>
<p>Depending on the situation, the solution might differ, but in our case we will focus on making it vanish from the view with the least amount of work and leaving no space behind. Thus the CSS approach is the best choice.</p>
<p>Now hiding an element at page load is easy with CSS, we just need to set the <em>display</em> attribute to <em>none</em>.</p>
<pre class="brush: css; title: ;">

h{

display = none;

}

</pre>
<p>This will hide any element from the browser when the page load. The challenge is to make it work dynamically, so that we can change it on the push of a button.</p>
<p>Since we know that to hide it we have to change the CSS, the concept is simple, when we click the button, the CSS attribute <em>display </em>of some element must be altered to<em> none.</em></p>
<p><em><br />
</em></p>
<p>The Javascript code for changing a CSS attribute is;</p>
<pre class="brush: jscript; title: ;">

*some element*.style.*attribute* = &quot;*value*&quot;;

</pre>
<p>Using what we already know we can fill out attribute and value;</p>
<pre class="brush: jscript; title: ;">

*some element*.style.display = &quot;none&quot;;

</pre>
<p>However, how do we get the element? Usually we know the<em> ID</em> of some element, eg. a Div with ID: <em>container</em></p>
<pre class="brush: xml; title: ;">

&lt;div id=&quot;container&quot;&gt;I'm a container guys!&lt;/div&gt;

</pre>
<p>The question is, how can we translate the ID of the div into a reference to the div element? The ID is just a name, just like your name is only used to identify you, you are not your name.</p>
<pre class="brush: jscript; title: ;">

document.getElementById('container');

</pre>
<p>This function will get the element that has the ID <em>container. </em>It is a standard javascript function that is very handy.</p>
<p>Now that we can convert the ID to a reference to the element, we can change the style of it!</p>
<pre class="brush: jscript; title: ;">

var our_element = document.getElementById('container');

our_element.style.display = &quot;none&quot;;

</pre>
<p>Thats it! Now we can change the CSS of the element! So by using the ID of an element we can hide it with javascript.</p>
<p>That&#8217;s all good, but what happened to the button? How can we make this happen when we click a button?</p>
<p>Well, HTML tags support the onClick attribute;</p>
<pre class="brush: xml; title: ;">

&lt;input type='button' value='I am a button' onClick=&quot;*do something*&quot;&gt;

</pre>
<p>We want to hide the element, when we click the button, so onClick should call the javascript code we had earlier. However we have to tell it that it is indeed Javascript we are supplying it with;</p>
<pre class="brush: xml; title: ;">

&lt;input type='button' value='I am a button' onClick=&quot;javascript: document.getElementById('container').style.display('none');&quot;&gt;

</pre>
<p>And there you have it, that is the very simple concept of hiding an element.</p>
<p>Subsequent tutorials will go through more advanced concepts as well, but I thought I&#8217;d start out with something very simple to see the feedback. Please leave a comment about what you like or don&#8217;t like (too long? too easy?) or a request for a specific concept for me to write a tutorial about.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.deguize.com/2011/05/tutorial-understanding-javascript-hiding-an-object.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exams are coming up</title>
		<link>http://blog.deguize.com/2011/05/exams-are-coming-up.html</link>
		<comments>http://blog.deguize.com/2011/05/exams-are-coming-up.html#comments</comments>
		<pubDate>Sat, 14 May 2011 04:30:00 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.deguize.com/?p=4</guid>
		<description><![CDATA[<p>Unfortunately exams are coming up, so I will not be able to post my exciting new webdesign until after! It is very annoying to be working on exams when I have this urge to work on a great internet concept! Oh btw, yes this is my new blog! Don&#8217;t worry, it will not look like [...]]]></description>
				<content:encoded><![CDATA[<p>Unfortunately exams are coming up, so I will not be able to post my exciting new webdesign until after! It is very annoying to be working on exams when I have this urge to work on a great internet concept! Oh btw, yes this is my new blog! Don&#8217;t worry, it will not look like this, I just felt the old one did not reflect my interest so I had to change ASAP. In this blog however, there will be more design beauties, and more user interface drooling! I will also post more about my programming hobbies, and my sites in design:) Can&#8217;t wait to start working, however for now; Linear Algebra. Oh well, only one more year, and my Bachelor is done.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.deguize.com/2011/05/exams-are-coming-up.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
