<?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>Bryse Meijer</title>
	<atom:link href="http://www.brysemeijer.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.brysemeijer.com</link>
	<description>The Portfolio.</description>
	<lastBuildDate>Thu, 23 Jun 2011 21:42:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Google AJAX Map API</title>
		<link>http://www.brysemeijer.com/article/google-ajax-map-api</link>
		<comments>http://www.brysemeijer.com/article/google-ajax-map-api#comments</comments>
		<pubDate>Sun, 10 Apr 2011 10:02:36 +0000</pubDate>
		<dc:creator>Bryse Meijer</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Geolocation]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Maps]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://www.brysemeijer.com/?p=941</guid>
		<description><![CDATA[Want to include a map directly on your site? The solution is rather easy using the Google AJAX Map API. To use the Google AJAX Map API we’ll first include the JS (JavaScript) file to make it possible. &#60;script type=&#34;text/javascript&#34; src=&#34;http://maps.google.com/maps/api/js?sensor=false&#34;&#62;&#60;/script&#62; We can include that JS file anywhere on your page as long as it’s [...]]]></description>
			<content:encoded><![CDATA[<p>Want to include a map directly on your site? The solution is rather easy using the Google AJAX Map API.</p>

<p>To use the Google AJAX Map API we’ll first include the JS (JavaScript) file to make it possible.</p>
<pre>&lt;script type=&quot;text/javascript&quot; src=&quot;http://maps.google.com/maps/api/js?sensor=false&quot;&gt;&lt;/script&gt;</pre>

<p>We can include that JS file anywhere on your page as long as it’s valid markup.
Along with that we’re going to use some helper JS functions to make things easier.</p>
<pre><code>&nbsp;&nbsp;var geocoder;
&nbsp;&nbsp;var map;
&nbsp;&nbsp;var hide = false;
&nbsp;&nbsp;function initialize() 
&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;geocoder = new google.maps.Geocoder();
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var latlng = new google.maps.LatLng(-34.397, 150.644);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var myOptions = {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;zoom: 15,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;center: latlng,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mapTypeId: google.maps.MapTypeId.ROADMAP
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map = new google.maps.Map(document.getElementById(&quot;map_canvas&quot;), myOptions);
&nbsp;&nbsp;}

&nbsp;&nbsp;function codeAddress(map_loc) {
&nbsp;&nbsp;&nbsp;&nbsp;if(document.getElementById(&#039;map_canvas&#039;).style.display == &#039;&#039;)
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(&#039;map_canvas&#039;).style.display = &#039;none&#039;;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hide = true;
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;else
&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(hide == false)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;initialize();
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var address = map_loc;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (geocoder) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(&#039;map_canvas&#039;).style.display = &#039;&#039;;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;geocoder.geocode( { &#039;address&#039;: address}, function(results, status) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (status == google.maps.GeocoderStatus.OK) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map.setCenter(results[0].geometry.location);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var marker = new google.maps.Marker({
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;map: map, 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;position: results[0].geometry.location
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} else {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(&quot;Geocode was not successful for the following reason: &quot; + status);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(&#039;map_canvas&#039;).style.display = &#039;&#039;;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;}</code></pre>
<p>These helper functions will allow us to take a regular address and use them in the Google AJAX Map API. With all that behind us let’s get to the simple code display our map.</p>
<pre><code>&lt;a href=&quot;javascript:codeAddress(&#039;3730 Las Vegas Blvd S, Las Vegas, NV 89109&#039;);&quot;&gt;3730 Las Vegas Blvd S, Las Vegas, NV 89109 (Map)&lt;/a&gt;
&lt;div id=&quot;map_canvas&quot; style=&quot;width: 100%;height:480px;display:none;&quot;&gt;&lt;/div&gt;</code></pre>

<br />
Lets see how it looks by clicking the following link:
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">  var geocoder;
  var map;
  var hide = false;
  function initialize() 
  {
      geocoder = new google.maps.Geocoder();
      var latlng = new google.maps.LatLng(-34.397, 150.644);
      var myOptions = {
        zoom: 15,
        center: latlng,
        mapTypeId: google.maps.MapTypeId.ROADMAP
      }
      map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  }

  function codeAddress(map_loc) {
    if(document.getElementById('map_canvas').style.display == '')
    {
      document.getElementById('map_canvas').style.display = 'none';
      hide = true;
    }
    else
    {
      if(hide == false)
      {
        initialize();
        var address = map_loc;
        if (geocoder) {
          document.getElementById('map_canvas').style.display = '';
          geocoder.geocode( { 'address': address}, function(results, status) {
            if (status == google.maps.GeocoderStatus.OK) {
              map.setCenter(results[0].geometry.location);
              var marker = new google.maps.Marker({
                  map: map, 
                  position: results[0].geometry.location
              });
            } else {
              alert("Geocode was not successful for the following reason: " + status);
            }
          });
        }
      }
      else
      {
        document.getElementById('map_canvas').style.display = '';  
      }
    }
  }</script>
<a href="javascript:codeAddress('3730 Las Vegas Blvd S, Las Vegas, NV 89109');">3730 Las Vegas Blvd S, Las Vegas, NV 89109 (Map)</a>
<div id="map_canvas" style="width: 100%;height:480px;display:none;"></div>

<p>That is all!</p>


<div class="faceandtweet"><div class="faceandtweet_retweet" style="float:left; width:110px;"><a href="http://twitter.com/share?url=http://www.brysemeijer.com/article/google-ajax-map-api" class="twitter-share-button" data-text="Google AJAX Map API" data-count="horizontal" data-via="brysemeijer" data-related="">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="faceandtweet_like" style="float:left; width:90px; height:20px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.brysemeijer.com/article/google-ajax-map-api&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:20px;" allowTransparency="true"></iframe></div><div class="faceandtweet_retweet" style="float:left; width:110px;"><a title="" class="google-buzz-button" href="http://www.google.com/buzz/post" data-button-style="small-count"></a><script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script></div><div class="faceandtweet_retweet" style="float:left; width:110px;"><a class="DiggThisButton DiggCompact" href="http://digg.com/submit?url=http://www.brysemeijer.com/article/google-ajax-map-api&amp;title=Google AJAX Map API"></a><script type="text/javascript" src="http://widgets.digg.com/buttons.js"></script></div><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.brysemeijer.com/article/google-ajax-map-api/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sorting a Multidimensional Array In PHP</title>
		<link>http://www.brysemeijer.com/article/sorting-multidimensional-array-php</link>
		<comments>http://www.brysemeijer.com/article/sorting-multidimensional-array-php#comments</comments>
		<pubDate>Wed, 30 Mar 2011 10:08:09 +0000</pubDate>
		<dc:creator>Bryse Meijer</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[Multidimensional]]></category>
		<category><![CDATA[Sort]]></category>

		<guid isPermaLink="false">http://www.brysemeijer.com/?p=910</guid>
		<description><![CDATA[Those multidimensional arrays sure are handy! What if we wanted to sort through them? It’s rather simple so hang back and take a sip of your favorite drink. To start off with we’ll use an example mul­ti­di­men­sional array of people with their names and age: $people = array( &#160;&#160;array(&#039;name&#039; =&#62; &#039;Bob&#039;, &#039;age&#039; =&#62; 27), &#160;&#160;array(&#039;name&#039; [...]]]></description>
			<content:encoded><![CDATA[<p>Those multidimensional arrays sure are handy! What if we wanted to sort through them? It’s rather simple so hang back and take a sip of your favorite drink.</p>
<p>To start off with we’ll use an example mul­ti­di­men­sional array of people with their names and age:<br />
<pre><code>$people = array(
&nbsp;&nbsp;array(&#039;name&#039; =&gt; &#039;Bob&#039;, &#039;age&#039; =&gt; 27),
&nbsp;&nbsp;array(&#039;name&#039; =&gt; &#039;Mary&#039;, &#039;age&#039; =&gt; 22),
&nbsp;&nbsp;array(&#039;name&#039; =&gt; &#039;Clint&#039;, &#039;age&#039; =&gt; 29),
&nbsp;&nbsp;array(&#039;name&#039; =&gt; &#039;Adam&#039;, &#039;age&#039; =&gt; 42),
&nbsp;&nbsp;array(&#039;name&#039; =&gt; &#039;Sarah&#039;, &#039;age&#039; =&gt; 24)
);</code></pre></p>
<p>Now lets write the function that will sort our array for us:<br />
<pre><code>/***
* arraySubSort, takes a multidimensional array and sorts it by values of $subkey using $sort function.
* 
* @param array&nbsp;&nbsp;&nbsp;&nbsp;$array
* @param string&nbsp;&nbsp; $subkey
* @param function $sort
*/
function arraySubSort($array, $subkey, $sort = asort) {
&nbsp;&nbsp;foreach($array as $key =&gt; $value) {
&nbsp;&nbsp;&nbsp;&nbsp;$temp[$key] = strtolower($value[$subkey]);
&nbsp;&nbsp;}
&nbsp;&nbsp;
&nbsp;&nbsp;$sort($temp);
&nbsp;&nbsp;foreach($temp as $key =&gt; $value) {
&nbsp;&nbsp;&nbsp;&nbsp;$result[] = $array[$key];
&nbsp;&nbsp;}
&nbsp;&nbsp;return $result;
}</code></pre></p>
<p>The function arraySubSort($array, $subkey, $sort = asort) will take our array as the first parameter, the second parameter the key we’re sorting by, and the last parameter can be left blank for the default asort() or you can use another sort function.</p>
<p>Lets sort by age.<br />
<pre><code>print_r(arraySubSort($data,&#039;age&#039;));
/* arraySubSort Result
Array
(
&nbsp;&nbsp;&nbsp;&nbsp;[0] =&gt; Array
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[name] =&gt; Mary
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[age] =&gt; 22
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)

&nbsp;&nbsp;&nbsp;&nbsp;[1] =&gt; Array
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[name] =&gt; Sarah
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[age] =&gt; 24
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)

&nbsp;&nbsp;&nbsp;&nbsp;[2] =&gt; Array
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[name] =&gt; Bob
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[age] =&gt; 27
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)

&nbsp;&nbsp;&nbsp;&nbsp;[3] =&gt; Array
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[name] =&gt; Clint
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[age] =&gt; 29
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)

&nbsp;&nbsp;&nbsp;&nbsp;[4] =&gt; Array
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[name] =&gt; Adam
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[age] =&gt; 42
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)

)
*/</code></pre></p>
<p>As you can tell this can prove to be quite useful.<br />
Using the third parameter we can use other sort functions, <a href="http://www.php.net/manual/en/array.sorting.php">click here to read more about the others.</a></p>
<p>Enjoy!</p>
<div class="faceandtweet"><div class="faceandtweet_retweet" style="float:left; width:110px;"><a href="http://twitter.com/share?url=http://www.brysemeijer.com/article/sorting-multidimensional-array-php" class="twitter-share-button" data-text="Sorting a Multidimensional Array In PHP" data-count="horizontal" data-via="brysemeijer" data-related="">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="faceandtweet_like" style="float:left; width:90px; height:20px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.brysemeijer.com/article/sorting-multidimensional-array-php&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:20px;" allowTransparency="true"></iframe></div><div class="faceandtweet_retweet" style="float:left; width:110px;"><a title="" class="google-buzz-button" href="http://www.google.com/buzz/post" data-button-style="small-count"></a><script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script></div><div class="faceandtweet_retweet" style="float:left; width:110px;"><a class="DiggThisButton DiggCompact" href="http://digg.com/submit?url=http://www.brysemeijer.com/article/sorting-multidimensional-array-php&amp;title=Sorting a Multidimensional Array In PHP"></a><script type="text/javascript" src="http://widgets.digg.com/buttons.js"></script></div><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.brysemeijer.com/article/sorting-multidimensional-array-php/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Discounted GoDaddy Domain Trick</title>
		<link>http://www.brysemeijer.com/article/discounted-godaddy-domain-trick</link>
		<comments>http://www.brysemeijer.com/article/discounted-godaddy-domain-trick#comments</comments>
		<pubDate>Tue, 29 Mar 2011 19:36:00 +0000</pubDate>
		<dc:creator>Bryse Meijer</dc:creator>
				<category><![CDATA[Discounts]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[GoDaddy]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://www.brysemeijer.com/beta/?p=872</guid>
		<description><![CDATA[One weekend afternoon I figured I’d buy a domain name for a project I was working on. When I’m in need of a domain name my usual place to stop is the front page of GoDaddy. I’ve always liked their domain services; cheap prices and excellent support, all though I wouldn’t say the same about [...]]]></description>
			<content:encoded><![CDATA[<p>One weekend afternoon I figured I’d buy a domain name for a project I was working on. When I’m in need of a domain name my usual place to stop is the front page of GoDaddy. I’ve always liked their domain services; cheap prices and excellent support, all though I wouldn’t say the same about their hosting. As normal I type in the domain name I wanted and go to checkout. That is when I had my doubts. </p>
<p>Should I really buy it now? The domain name is rather unique. As such I decided not to purchase; when this all happened I was already logged into my GoDaddy account. A couple of days later I noticed an email giving me 15% off of the very same domain purchase I wanted to make that day.</p>
<p>You might think 15% isn’t much?! If you’re penny pinching this is a great way to save just a little extra money. </p>
<p>To summarize the trick:</p>
<ul>
<li>Log into GoDaddy.</li>
<li>Select your domain.</li>
<li>Get to the last stage of checkout before actually paying.</li>
<li>Leave that checkout page open for a minute or two. (Just to be sure, they may track your session in real-time using JS.)</li>
<li>Close page.</li>
<li>Wait a few days for an email to arrive in your inbox with 15% savings.</li>
<li>Buy your domain and enjoy the 15% off!</li>
</ul>
<p>“A penny saved is a penny earned.” — Benjamin Franklin</p>
<div class="faceandtweet"><div class="faceandtweet_retweet" style="float:left; width:110px;"><a href="http://twitter.com/share?url=http://www.brysemeijer.com/article/discounted-godaddy-domain-trick" class="twitter-share-button" data-text="Discounted GoDaddy Domain Trick" data-count="horizontal" data-via="brysemeijer" data-related="">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="faceandtweet_like" style="float:left; width:90px; height:20px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.brysemeijer.com/article/discounted-godaddy-domain-trick&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:20px;" allowTransparency="true"></iframe></div><div class="faceandtweet_retweet" style="float:left; width:110px;"><a title="" class="google-buzz-button" href="http://www.google.com/buzz/post" data-button-style="small-count"></a><script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script></div><div class="faceandtweet_retweet" style="float:left; width:110px;"><a class="DiggThisButton DiggCompact" href="http://digg.com/submit?url=http://www.brysemeijer.com/article/discounted-godaddy-domain-trick&amp;title=Discounted GoDaddy Domain Trick"></a><script type="text/javascript" src="http://widgets.digg.com/buttons.js"></script></div><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.brysemeijer.com/article/discounted-godaddy-domain-trick/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JQuery Get Visibility/Toggle State of an Element</title>
		<link>http://www.brysemeijer.com/article/jquery-toggle-state</link>
		<comments>http://www.brysemeijer.com/article/jquery-toggle-state#comments</comments>
		<pubDate>Tue, 29 Mar 2011 13:09:28 +0000</pubDate>
		<dc:creator>Bryse Meijer</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://www.brysemeijer.com/beta/?p=833</guid>
		<description><![CDATA[Hello everyone! Today I bring you a small tutorial to determine the visibility state of an element using the JQuery Framework. There are two functions that you’ll end up using that will require this easy but awesome trick. The two methods are: .toggle() and .slideToggle() Both of these methods provide a lot of useful functionality [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everyone! Today I bring you a small tutorial to determine the visibility state of an element using the JQuery Framework. There are two functions that you’ll end up using that will require this easy but awesome trick. The two methods are: .toggle() and .slideToggle()</p>
<p>Both of these methods provide a lot of useful functionality to your website’s UI; such examples include hiding forms, elements, and other parts of pages by clicking another element. In this tutorial I’ll show you how to determine the state of a “div” element. </p>
<p>To start off with we’ll write some simple code binding a click event to a handle (in this example, anchor) and the div that we’re going to toggle.<br />
<pre><code>&lt;script type=&quot;text/javascript&quot;&gt;
$(function() {
&nbsp;&nbsp;$(&#039;#handle&#039;).click(function() {
&nbsp;&nbsp;&nbsp;&nbsp;$(&#039;#my_div&#039;).toggle();
&nbsp;&nbsp;}); 
});
&lt;/script&gt;
&lt;div id=&quot;my_div&quot; style=&quot;display: none;&quot;&gt;Hello, Using toggle you can now see me!!&lt;/div&gt;
</code></pre><script type="text/javascript">$(function() { $('#handle').click(function() { $('#my_div').toggle(); }); });</script></p>
<p>We now have a div with the identifier “my_div” which has its css display set to none.<br />
Let’s write that handle to toggle its visibility.<br />
<code>&lt;a id=&quot;handle&quot; href=&quot;javascript:return false;&quot;&gt;Click me to toggle &#039;my_div&#039;&lt;/a&gt;</code></p>
<div id="my_div" style="display: none;">Hello, Using toggle you can now see me!!</div>
<p><a id="handle" href="javascript:return false;">Click me to toggle ‘my_div’</a></p>
<p>Finally! We have our anchor (link) to toggle the visibility of that pesky “div.” Don’t tell the “div” that I said that, okay? Let’s move on. We’ll now write the simple conditional statement that will tell us if that pesky– I mean lovely div is visible or not.<br />
<pre>&lt;input onclick=&quot;if($(&#039;#my_div&#039;).is(&#039;:visible&#039;) == true) { alert(&#039;is visible&#039;); } else { alert(&#039;is not visible&#039;); }&quot; type=&quot;button&quot; value=&quot;What State is the toggle?&quot; /&gt;</pre></p>
<input onclick="if($('#my_div').is(':visible') == true) { alert('is visible'); } else { alert('is not visible'); }" type="button" value="What State is the toggle?" />
<p>You could also save the result in a variable such as:<br />
<pre>var status = $(&#039;#my_div&#039;).is(&#039;:visible&#039;); // Will return true or false.</pre>Now go have some fun. <img src='http://www.brysemeijer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="faceandtweet"><div class="faceandtweet_retweet" style="float:left; width:110px;"><a href="http://twitter.com/share?url=http://www.brysemeijer.com/article/jquery-toggle-state" class="twitter-share-button" data-text="JQuery Get Visibility/Toggle State of an Element" data-count="horizontal" data-via="brysemeijer" data-related="">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="faceandtweet_like" style="float:left; width:90px; height:20px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.brysemeijer.com/article/jquery-toggle-state&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:20px;" allowTransparency="true"></iframe></div><div class="faceandtweet_retweet" style="float:left; width:110px;"><a title="" class="google-buzz-button" href="http://www.google.com/buzz/post" data-button-style="small-count"></a><script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script></div><div class="faceandtweet_retweet" style="float:left; width:110px;"><a class="DiggThisButton DiggCompact" href="http://digg.com/submit?url=http://www.brysemeijer.com/article/jquery-toggle-state&amp;title=JQuery Get Visibility/Toggle State of an Element"></a><script type="text/javascript" src="http://widgets.digg.com/buttons.js"></script></div><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.brysemeijer.com/article/jquery-toggle-state/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ANDDING Notes</title>
		<link>http://www.brysemeijer.com/article/andding-notes</link>
		<comments>http://www.brysemeijer.com/article/andding-notes#comments</comments>
		<pubDate>Tue, 29 Mar 2011 12:04:46 +0000</pubDate>
		<dc:creator>Bryse Meijer</dc:creator>
				<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.brysemeijer.com/beta/?p=816</guid>
		<description><![CDATA[Some notes from when I was still learning the basics of networking and the IP structure. Maybe these could be of some use to anyone. IP Address -&#62; 2 parts (Network + Host) 192.168.0.1 -&#62; Public Address 255.255.255.0 -&#62; SUbnet Mask (Used to determine network portion) Binary Scale = 128 — 64 — 32 — [...]]]></description>
			<content:encoded><![CDATA[<p>Some notes from when I was still learning the basics of networking and the IP structure. Maybe these could be of some use to anyone.</p>
<p>IP Address -&gt; 2 parts (Network + Host)<br />
192.168.0.1 -&gt; Public Address<br />
255.255.255.0 -&gt; SUbnet Mask (Used to determine network portion)</p>
<p>Binary Scale = 128 — 64 — 32 — 16 — 8 — 4 — 2 — 1</p>
<p>Andding Process<br />
Works with binary<br />
[ Octect ]<br />
– IP in Binary         = 4x8bits = 32 bits<br />
[192.168.0.1]      1 1 0 0 0 0 0 0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 1</p>
<p>- Subnet Mask in Binary = 4x8bits = 32 bits<br />
[255.255.255.0]      1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 0 0 0 0 0 0 0 0</p>
<p>- Network Portion (IP)    = 4x8bits = 32 bits [Replaces Host part of IP]<br />
[192.168.0.0]      1 1 0 0 0 0 0 0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0</p>
<p>Example<br />
– IP      [192.168.241.38]<br />
– Subnet [255.255.224.0]  224 (Binary) = 1 1 1 0 0 0 0 0<br />
[Last digit 1 in the binary is equal to 32]<br />
.0<br />
.32<br />
.64<br />
.96<br />
.128<br />
.160<br />
.192<br />
.224<br />
.256 [Invalid it passes 255]</p>
<p>8bits  8bits 8bits<br />
Class A     [Network . Host . Host . Host]<br />
^- 0–126 (127)</p>
<p>Always Starts [Binary] = 0 _ _ _ _ _ _ _</p>
<p>Number of useable host 2^power(n) — 2 [n = # of bits]<br />
2^power(24) = 16,777,214 Host</p>
<p>Default Subnet: 255.0.0.0<br />
Network Portion: 8bits<br />
Host Portion: 24bits</p>
<p>8bits  8bits<br />
Class B     [Network . Network . Host . Host]<br />
^- 128–191 [Range]</p>
<p>Always Starts [Binary] = 1 0 _ _ _ _ _ _</p>
<p>Default Subnet: 255.2550.0.0<br />
Network Portion: 16bits<br />
Host Portion: 16bits</p>
<p>8bits<br />
Class C     [Network . Network . Network . Host]<br />
^ — 192–223 [Range]</p>
<p>Always Starts [Binary] = 1 1 0 _ _ _ _ _</p>
<p>Default Subnet: 255.2550.255.0<br />
Network Portion: 24bits<br />
Host Portion: 8bits</p>
<p>Class D<br />
^ — 224–239 [Range] [Multicast Channel]<br />
Always Starts [Binary] = 1 1 1 0 _ _ _ _</p>
<p>Class E<br />
^ — 240–247 [Range] [Experimental Channel]<br />
Always Starts [Binary] = 1 1 1 1 0 _ _ _</p>
<p>NAT– Network Address Translator<br />
Wire Address = First number in the class range<br />
Broadcast Address = Last Number in the class range<br />
Example Class A<br />
– 0 = Wire Address<br />
– 127 = Broadcast Address [Loopback]</p>
<p>Breakpoints = Class starting binary — 255<br />
Example Class A = 0 _ _ _ _ _ _ _<br />
0 1 1 1 1 1 1 1 -&gt; 255 — 128 = 127</p>
<p>Binary          Decimal                Total<br />
[1] -&gt; 1 1 1 1 1 1 1 1 = 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1    = 255<br />
[5] -&gt; 1 1 0 1 1 1 0 1 = 128 + 64 + 16 + 8 + 4 + 1        = 221<br />
[2] -&gt; 0 0 1 1 0 1 0 1 = 32  + 16 + 4  + 1            = 53<br />
[3] -&gt; 1 1 1 0 0 1 0 0 = 128 + 64 + 32 + 4            = 228<br />
[4] -&gt; 1 1 1 0 1 1 1 1 = 128 + 64 + 32 + 8 + 4 + 2 + 1        = 239<br />
5  -&gt; 1 0 1 0 1 0 1 0 = 128 + 32 + 8  + 2            = 170</p>
<p>192.168.2.1/24 -&gt; 24 = Number of network bits or subnet mask bits<br />
24/8 = 3 Octects = 3 Networks and 1 Host<br />
N     N    N   H   [N = Network, H = Host]<br />
192 . 168 . 2 . 1</p>
<p>Possible Subnets /24<br />
/16<br />
/8<br />
/30</p>
<p>[32 bits = total bits in an IP Address]<br />
Number of possible host -&gt; /24 -&gt; 32 — 24 = 8 bits 2^8 — 2 = 254 Possible Host</p>
<p>Private Network Address’s [Not allowed to access the internet]</p>
<p>Class A [10.0.0.0] /8 Subnet Mask</p>
<p>Class B [172.16.0.0 &lt;-&gt; 172.31.0.0] /16 Subnet Mask</p>
<p>Class C [192.168.0.0] /24 Subnet Mask</p>
<p>Local Area Netork [Private Address] -&gt; NAT (Network Address Translation) -&gt; Internet<br />
Private IP                Public IP</p>
<p>Unicast        Source Destination 202.18.1.4/24    Network-[202.18.1.0] Host-[4]<br />
IP    Multicast    Source Destination 168.21.1.14/16    Network-[168.21.0.0] Host-[14]<br />
Broadcast    Source Destination 168.21.1.14/16    Network-[168.21.0.0] Host-[14]</p>
<p>168.21.1.14 = 1 0 1 0 1 0 0 0 . 0 0 0 1 0 1 0 1 . 0 0 0 0 0 0 0 1 . 0 0 0 0 1 1 1 0<br />
Subnet        = 1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0<br />
ANND        = 1 0 1 0 1 0 0 0 . 0 0 0 1 0 1 0 1 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0<br />
IP Host    =         168   . 21              . 0               . 0</p>
<p>Wire Address (Network Address) 192.168.0.0 Never assigned to a computer, the 0.0 presents the wire address.</p>
<p>. 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 1 [First usable host]<br />
. 1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 [Broadcast Address]</p>
<p>124.10.11.2/28<br />
255.255.255.240<br />
124.10.11.0 (network use ANNDING to find it)</p>
<p>1 1 1 1 0 0 0 0 0 = 240    1 1 0 1 1 1 1 1 = 224 [IP]<br />
0 0 0 0 0 0 0 1 0 = 2    1 1 1 1 0 0 0 0 = 240 [Subnet]<br />
0 0 0 0 0 0 0 0 0 = 0    1 1 0 1 0 0 0 0 = 208</p>
<p>124.0.11.0    1    14    15 Broadcast<br />
.16    2<br />
.32    3<br />
.48    4<br />
.64    5<br />
.80    6<br />
.96    7<br />
.112    8<br />
.128    9<br />
.144    10<br />
.160    11<br />
.176    12<br />
.192    13<br />
.208    14<br />
.224    15<br />
.240    16<br />
.256    -&gt; Broadcast</p>
<p>10.10.21.38/9 What is the wire Address?<br />
What is the subnet mask?</p>
<p>13 bits for network /13 _ _ _ _ _ _ _ _ | _ _ _ _ _ [Last digit in binary string = the amount of steps.</p>
<p>Multicast — Group of host MAC (GET THIS INFO)<br />
Broadcast — All MAC FFFF FFFF FFFF<br />
255.255.255.255</p>
<p>IP Address Systems<br />
– Static [Manually Assigned]<br />
– Assigned manually<br />
IP Address<br />
Subnet Mask<br />
Default Gateway<br />
– Dynamic [Automaticly assigned by software — DHCP Sever]<br />
– Assigned Automaticly<br />
IP Address<br />
Subnet Mask<br />
Default Gateway</p>
<p><strong>These notes are property of Bryse Meijer</strong></p>
<div class="faceandtweet"><div class="faceandtweet_retweet" style="float:left; width:110px;"><a href="http://twitter.com/share?url=http://www.brysemeijer.com/article/andding-notes" class="twitter-share-button" data-text="ANDDING Notes" data-count="horizontal" data-via="brysemeijer" data-related="">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="faceandtweet_like" style="float:left; width:90px; height:20px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.brysemeijer.com/article/andding-notes&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:20px;" allowTransparency="true"></iframe></div><div class="faceandtweet_retweet" style="float:left; width:110px;"><a title="" class="google-buzz-button" href="http://www.google.com/buzz/post" data-button-style="small-count"></a><script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script></div><div class="faceandtweet_retweet" style="float:left; width:110px;"><a class="DiggThisButton DiggCompact" href="http://digg.com/submit?url=http://www.brysemeijer.com/article/andding-notes&amp;title=ANDDING Notes"></a><script type="text/javascript" src="http://widgets.digg.com/buttons.js"></script></div><div style="clear:both;"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.brysemeijer.com/article/andding-notes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

