<?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>The Filipino Programmer &#187; Programming</title>
	<atom:link href="http://www.cybervaldez.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cybervaldez.com</link>
	<description></description>
	<lastBuildDate>Wed, 26 Oct 2011 08:05:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>[Tip] How to pass an array as an argument to a function.</title>
		<link>http://www.cybervaldez.com/tip-how-to-pass-an-array-as-an-argument-to-a-function/2011/</link>
		<comments>http://www.cybervaldez.com/tip-how-to-pass-an-array-as-an-argument-to-a-function/2011/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 10:13:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How-tos]]></category>
		<category><![CDATA[Might-be-useful]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Super Tip!]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1319</guid>
		<description><![CDATA[Problem: Help! Iis it possible to pass the values of an array as an argument in my function? Anwer: Conveniently, Yes! You can indeed use set an array as the argument of a function. var mapArgs = [0,20,50,10]; draw.apply(this, mapArgs); function draw(x1,x2,y1,y2) { // do something&#8230; alert(x1 + &#8216; &#8216; + x2 + &#8216; &#8216; [...]]]></description>
			<content:encoded><![CDATA[<h1>Problem: Help! Iis it possible to pass the values of an array as an argument in my function?</h1>

<p><strong>Anwer</strong>: Conveniently, Yes! You can indeed use set an array as the argument of a function.</p>

<blockquote>
  <p>var mapArgs = [0,20,50,10];<br />
  draw.apply(this, mapArgs);</p>
  
  <p>function draw(x1,x2,y1,y2)<br />
  {
    // do something&#8230;<br />
    alert(x1 + &#8216; &#8216; + x2 + &#8216; &#8216; + +y1 + &#8216; &#8216;+ y2);<br />
  }</p>
</blockquote>

<p>Of course you can use it in a more creative way</p>

<blockquote>
  <p>var run = { ready : ["Is this awesome?"], getset : ["or…"], go: ["What?!"] }<br />
  var func = {<br />
    ready: function(str)<br />
    {<br />
        alert(str);<br />
    },<br />
    getset: function(str)<br />
    {<br />
        alert(str.toUpperCase());<br />
    },<br />
    go: function(str)<br />
    {<br />
        alert(str + &#8216;!!!&#8217;);<br />
    }<br />
  }</p>
  
  <p>for (x in run)<br />
    func[x].apply(this, run[x]);</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/tip-how-to-pass-an-array-as-an-argument-to-a-function/2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Super Tip!] How to loop or iterate over an object&#8217;s key/value pair.</title>
		<link>http://www.cybervaldez.com/super-tip-how-to-loop-or-iterate-over-an-objects-keyvalue-pair/2011/</link>
		<comments>http://www.cybervaldez.com/super-tip-how-to-loop-or-iterate-over-an-objects-keyvalue-pair/2011/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 13:57:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How-tos]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Super Tip!]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1313</guid>
		<description><![CDATA[Problem: Help! Is it possible to loop or iterate through each object&#8217;s key/value pair like an array? Answer: A very useful trick for iterating over objects is the use of (for x in object), with this you can completely use objects as array! myObject = { &#8220;this&#8221; : &#8220;value1&#8243;, &#8220;is&#8221; : &#8220;value2&#8243;, &#8220;awesome&#8221; : &#8220;value3&#8243; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong>: Help! Is it possible to loop or iterate through each object&#8217;s key/value pair like an array? 
<strong>Answer</strong>: A very useful trick for iterating over objects is the use of (<em><strong>for x in object</strong></em>), with this you can completely use objects as array!</p>

<blockquote><p>myObject = { <br />
    &#8220;this&#8221; : &#8220;value1&#8243;, <br />
    &#8220;is&#8221; : &#8220;value2&#8243;, <br />
    &#8220;awesome&#8221; : &#8220;value3&#8243; <br />
} <br />
</p>
<p>
for (x in myObject)<br />
    alert(&#8216;key : &#8216; + x + &#8216; / value : &#8216; + myObject[x]); <br />
</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/super-tip-how-to-loop-or-iterate-over-an-objects-keyvalue-pair/2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Solution] How to use this in setInterval and setTimeout problems inside objects</title>
		<link>http://www.cybervaldez.com/solution-how-to-use-this-in-setinterval-and-settimeout-problems-inside-objects/2011/</link>
		<comments>http://www.cybervaldez.com/solution-how-to-use-this-in-setinterval-and-settimeout-problems-inside-objects/2011/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 16:48:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>
		<category><![CDATA[How-tos]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Super Tip!]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1299</guid>
		<description><![CDATA[Problem: One of the problems we find when using setInterval and setTimeout functions in javascript is how the special variable this is switched to the window object on the instance the function executes inside the interval. Answer: Store the current object in a variable (for this example, the variable is called self) and use that [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong>: One of the problems we find when using setInterval and setTimeout functions in javascript is how the special variable <strong><em>this</em></strong> is switched to the window object on the instance the function executes inside the interval.</p>

<p><strong>Answer</strong>:  Store the current object in a variable (for this example, the variable is called <strong><em>self</em></strong>) and use that variable for your interval&#8217;s function instead of <em><strong>this</strong></em>.</p>

<blockquote>
<p>function foo() <br/>
{<br/>
  this.init = function () {<br/>
      var self = this;<br/>
      this.interval = setInterval(function(){ self.update(); }, 1000); // this can be setTimeout <br/>
  };</p>

<p>
  this.update = function () {<br/>
      this.counter++;<br/>
      console.log(this.counter);<br/>
  };<br/>
}
</p>

<p>Json Example</p>
<textarea cols=70 rows=12>
var foo = {
  init : function() {
      var self = this;
      this.interval = setInterval(function(){ self.update(); }, 1000); // this can be setTimeout
  },
  update : function () {
      this.counter++;
      console.log(this.counter);
  };
} 
</textarea>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/solution-how-to-use-this-in-setinterval-and-settimeout-problems-inside-objects/2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mySQL Super-tip! How to comma-delimit or comma-separate your query results!</title>
		<link>http://www.cybervaldez.com/mysql-super-tip-how-to-comma-delimit-or-comma-separate-your-query-results/2010/</link>
		<comments>http://www.cybervaldez.com/mysql-super-tip-how-to-comma-delimit-or-comma-separate-your-query-results/2010/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 20:49:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[How-tos]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[comma]]></category>
		<category><![CDATA[comma delimit]]></category>
		<category><![CDATA[comma separate]]></category>
		<category><![CDATA[concat]]></category>
		<category><![CDATA[delimit]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[group concatenation]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[separate]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1244</guid>
		<description><![CDATA[_Problem_: Help! I&#8217;d like to make it so my query results to be a comma delimited format! _Answer_: No problemo! Simply use mySQL&#8217;s group_concat function and you&#8217;ll get your results in comma delimited values! SELECT GROUP_CONCAT(id) FROM users WHERE authenticated=1 ORDER BY NULL LIMIT 1 Note: (Optional) ORDER BY NULL is used to prevent unnecessary [...]]]></description>
			<content:encoded><![CDATA[<p><strong>_Problem_</strong>: Help! I&#8217;d like to make it so my query results to be a comma delimited format!</p>

<p><strong>_Answer_</strong>: No problemo! Simply use mySQL&#8217;s group_concat function and you&#8217;ll get your results in comma delimited values!</p>

<blockquote>SELECT GROUP_CONCAT(id) FROM users WHERE authenticated=1 ORDER BY NULL LIMIT 1

Note: (Optional) ORDER BY NULL is used to prevent unnecessary sorting with filesort</blockquote>

<p>This query would result to:
1,3,4,6,11</p>

<p><strong>That&#8217;s It!</strong>  This is pretty useful when you are going to use the <a href="http://www.cybervaldez.com/mysql-simplify-your-multiple-where-queries-with-where-in/2010/">SELECT&#8230; IN</a> statement for your subqueries.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/mysql-super-tip-how-to-comma-delimit-or-comma-separate-your-query-results/2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mySQL: Simplify your multiple WHERE queries with WHERE in</title>
		<link>http://www.cybervaldez.com/mysql-simplify-your-multiple-where-queries-with-where-in/2010/</link>
		<comments>http://www.cybervaldez.com/mysql-simplify-your-multiple-where-queries-with-where-in/2010/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 10:54:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How-tos]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Super Tip!]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1228</guid>
		<description><![CDATA[_Problem #1_: How do I simplify my mySql where queries? _Problem #2_: How can I search through an array in my where statement? Answer: An awesome trick when it comes to querying multiple where clauses is to use the WHERE &#60;&#8230;&#62; IN command. $id = &#8217;1,4,3,6,8,2&#8242;; &#8220;SELECT * FROM &#60;&#8230;&#62; WHERE id IN ($id)&#8221; Oh [...]]]></description>
			<content:encoded><![CDATA[<p><strong>_Problem #1_</strong>: How do I simplify my mySql where queries?
<strong>_Problem #2_</strong>: How can I search through an array in my where statement?</p>

<p><strong>Answer</strong>: An awesome trick when it comes to querying multiple where clauses is to use the WHERE &lt;&#8230;&gt; IN command.</p>

<blockquote>$id = &#8217;1,4,3,6,8,2&#8242;;
&#8220;SELECT * FROM &lt;&#8230;&gt; <strong>WHERE</strong> id <strong>IN</strong> ($id)&#8221;
</blockquote>

<p>Oh and did I mention you can prepend the <strong>NOT</strong> statement to show results which is NOT included in the list?</p>

<blockquote>$id = &#8217;5,7&#8242;;
&#8220;SELECT * FROM &lt;&#8230;&gt; <strong>WHERE</strong> id <strong>NOT IN</strong> ($id)&#8221;
</blockquote>

<p><strong>Oh-Some!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/mysql-simplify-your-multiple-where-queries-with-where-in/2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Super Tip! How to Create that floating Facebook toolbar at the bottom of the page!</title>
		<link>http://www.cybervaldez.com/super-tip-how-to-create-that-floating-facebook-toolbar-at-the-bottom-of-the-page/2009/</link>
		<comments>http://www.cybervaldez.com/super-tip-how-to-create-that-floating-facebook-toolbar-at-the-bottom-of-the-page/2009/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 23:03:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How-tos]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Super Tip!]]></category>
		<category><![CDATA[awesome]]></category>
		<category><![CDATA[bottom]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[fixed]]></category>
		<category><![CDATA[great]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[locked]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[super]]></category>
		<category><![CDATA[technique]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[toolbar]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1166</guid>
		<description><![CDATA[Help! I&#8217;d like to create a toolbar similar to facebook that is locked in the bottom of the screen. Introduction Facebook is such a great website &#8211; usability, features, speed, you name it, facebook has it. One of facebook&#8217;s most useful feature is the toolbar that is being displayed to the bottom of the page. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Help!</strong> I&#8217;d like to create a toolbar similar to facebook that is locked in the bottom of the screen.</p>

<p><strong>Introduction</strong> Facebook is such a great website &#8211; usability, features, speed, you name it, facebook has it. One of facebook&#8217;s most useful feature is the toolbar that is being displayed to the bottom of the page. This post is made to do just about that. Follow these easy steps to create a Facebook-toolbar clone in no time at all!</p>

<p><strong>_Solution_</strong> Using the following steps, you would be able to duplicate the look of the Facebook toolbar.
1.) First, copy the following css and paste them inside your <strong>&lt;header&gt;</strong> tag.</p>

<blockquote>
      html { height: 100%; }
      body { height: 100%; }
      #wrapper { position: relative; min-height: 100%; }
      * html #wrapper { height: 100%; }
      #content { <span style="font-weight:bold;">padding-bottom: 25px;</span> }

      #toolbar_outer { bottom:0; color:#111111; font-size:11px; height:25px; padding:0; position:fixed; right:0; width:100%; z-index:99; }      
      #toolbar_outer { position: relative; <span style="font-weight:bold;">margin-top: -26px;</span> } 
      #toolbar {
        background:#aaa;
        border-right:1px solid #b5b5b5;
        overflow:visible !important;
        margin-left:15px;
        margin-right:15px;
        position:relative;  
      }
      #toolbar ul { <span style="font-weight:bold;">height: 25px;</span> background: #e5e5e5; border-top: 1px solid #eee; border-left: 1px solid #ddd; }
      #toolbar ul li { float: left; padding: 5px; font: normal 110% &quot;lucida grande&quot;, tahoma, verdana, arial; border-right: 1px solid #aaa;}
</blockquote>

<p><strong>Important</strong>: The only drawback here is you&#8217;ll need to know the <em>height</em> of your toolbar (not really a problem, you should know that anyway). I&#8217;ve <em><span style="font-weight:bold;">highlighted</span></em> the properties above that you will probably want to edit.</p>

<p>2.) Finally, Paste this in your <strong>&lt;body&gt;</strong> tag.</p>

<blockquote>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&#8221;wrapper&#8221;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      &lt;div id=&quot;content&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        &lt;!&#8211; Your Content Goes Here &#8211;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      &lt;/div&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;toolbar_outer&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;toolbar&quot;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!&#8211; Toolbar &#8211;&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Applications&lt;/li&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
</blockquote>

<ol>
<li>(Optional) You can also download everything above <a href="http://www.cybervaldez.com/myuploads/src/facebook_toolbar_src.zip">here</a>.</li>
</ol>

<p>Well, that&#8217;s everything there is to it really! Don&#8217;t forget to thumb this up and share with others!
<a href="http://www.stumbleupon.com/submit?url=http://www.cybervaldez.com/super-tip-how-to-create-that-floating-facebook-toolbar-at-the-bottom-of-the-page/2009/"> <img border=0 src="http://cdn.stumble-upon.com/images/120x20_thumb_black.gif" alt=""></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/super-tip-how-to-create-that-floating-facebook-toolbar-at-the-bottom-of-the-page/2009/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code</title>
		<link>http://www.cybervaldez.com/jquery-super-tip-automatically-highlight-the-linksmenu-of-the-current-page-with-1-line-of-code/2009/</link>
		<comments>http://www.cybervaldez.com/jquery-super-tip-automatically-highlight-the-linksmenu-of-the-current-page-with-1-line-of-code/2009/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 17:33:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[active]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[automatically]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[easily]]></category>
		<category><![CDATA[easy]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[hover]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[state]]></category>
		<category><![CDATA[super]]></category>
		<category><![CDATA[technique]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1130</guid>
		<description><![CDATA[One very important usability feature of a website is to have the menu or links highlight the current page the visitor is currently in. Here&#8217;s a trick I do with jquery to do just about that. For educational purposes, i&#8217;ve split it to 3 lines of code to make it more understandable. Simply add the [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsensestart-->
One very important usability feature of a website is to have the menu or links highlight the current page the visitor is currently in. Here&#8217;s a trick I do with jquery to do just about that. For educational purposes, i&#8217;ve split it to 3 lines of code to make it more understandable.</p>

<p>Simply add the following to your header (don&#8217;t forget to include jquery first!).</p>

<blockquote>$(document).ready(function()
&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;var loc = window.location.toString().split(&quot;/&quot;)
&nbsp;&nbsp;&nbsp;&nbsp;loc = loc[loc.length - 1]
&nbsp;&nbsp;&nbsp;&nbsp;$(&quot;#navigation li a[href=\&quot;&quot;+loc+&quot;\&quot;]&quot;).addClass(&quot;selected&quot;);
&nbsp;&nbsp;});</blockquote>

<p>Of course, jquery isn&#8217;t really needed to do this. If you prefer to have it done <strong>_without_</strong> jquery, here&#8217;s a native way of doing things:</p>

<blockquote>
&nbsp;&nbsp;  window.onload = function()
&nbsp;&nbsp;  {
&nbsp;&nbsp;&nbsp;&nbsp;    var current_page = window.location.toString().split(&quot;/&quot;)[window.location.toString().split(&quot;/&quot;).length - 1]   
&nbsp;&nbsp;&nbsp;&nbsp;    var links = document.getElementsByTagName(&quot;a&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;    for (x in links)
&nbsp;&nbsp;&nbsp;&nbsp;    {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      var link = (links[x].href != undefined) ? links[x].href.toString().split(&quot;/&quot;)[links[x].href.toString().split(&quot;/&quot;).length &#8211; 1] : &quot;&quot;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      if (link == current_page)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        links[x].className = (links[x].className == &quot;&quot;) ? &quot;selected&quot; : links[x].className + &quot; selected&quot;
&nbsp;&nbsp;&nbsp;&nbsp;    }    
&nbsp;&nbsp;  }
</blockquote>

<p><strong>_Important_</strong>: The above code takes use of the <strong>.selected</strong> class. Simply add the class to your a:hover classes.</p>

<blockquote>#navigation ul li a:hover { color: #ff0; }</blockquote>

<p>Should be written as:</p>

<blockquote>#navigation ul li a:hover, #navigation ul li a.selected { color: #ff0 !important; }</blockquote>

<p><strong>_Don&#8217;t Forget!_</strong>, this works for menu/links with background images as well.</p>

<p>and that&#8217;s all there is to it! Don&#8217;t forget to thumb this up and share!
<a href="http://www.stumbleupon.com/submit?url=http://www.cybervaldez.com/jquery-super-tip-automatically-highlight-the-linksmenu-of-the-current-page-with-1-line-of-code/2009/%26title%3DAutomatically%2BHighlight%2BThe%2BCurrent%2BPage%2Bwith%2BJQuery"> <img border=0 src="http://cdn.stumble-upon.com/images/120x20_thumb_black.gif" alt=""></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/jquery-super-tip-automatically-highlight-the-linksmenu-of-the-current-page-with-1-line-of-code/2009/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>How to: Fix OCUpload/One-Click Upload clicking bug in IE7 &amp; IE8 (jquery)</title>
		<link>http://www.cybervaldez.com/how-to-fix-ocuploadone-click-upload-clicking-bug-in-ie7-ie8-jquery/2009/</link>
		<comments>http://www.cybervaldez.com/how-to-fix-ocuploadone-click-upload-clicking-bug-in-ie7-ie8-jquery/2009/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 15:47:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>
		<category><![CDATA[How-tos]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[click]]></category>
		<category><![CDATA[double]]></category>
		<category><![CDATA[explorer]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[ocupload]]></category>
		<category><![CDATA[one]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[troubleshoot]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1119</guid>
		<description><![CDATA[Problem: Help! I&#8217;m using the OCUpload, or One Click Upload Plugin for Jquery. IE7 and IE8 is requiring me to do a double click to display the upload dialog box! Solution: The one-click upload technique uses a trick that sets the file input&#8217;s browse button directly in front of your mouse cursor. This is misbehaving [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsensestart--><strong>Problem</strong>: Help! I&#8217;m using the <a href="http://plugins.jquery.com/project/ocupload">OCUpload</a>, or <a href="http://plugins.jquery.com/project/ocupload">One Click Upload Plugin</a> for Jquery. IE7 and IE8 is requiring me to do a double click to display the upload dialog box!</p>

<p><strong>Solution</strong>: The one-click upload technique uses a trick that sets the file input&#8217;s browse button directly in front of your mouse cursor. This is misbehaving in IE7/IE8 due to how they handle CSS, this can be resolved by directly setting the cursor position through javascript instead. You can fix the problem by editting the script and updating the following lines (highlighted in bold):</p>

<p>Somewhere on line 87:</p>

<blockquote>
/** Move the input with the mouse to make sure it get clicked! */
container.mousemove(function(e){
&nbsp;&nbsp; input.css({
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; top: e.pageY-container.offset().top+&#8217;px&#8217;,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong style="font-weight:bold;">left: e.pageX-container.offset().left-175+&#8217;px&#8217;</strong>
&nbsp;&nbsp; });
});</blockquote>

<p>Finally, we need to set the margin css property to 0, you can find it somewhere on line 63:</p>

<blockquote>
/** File Input */
var input = $(
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;&lt;input &#8216;+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;name=&#8221;&#8216;+options.name+&#8217;&#8221; &#8216;+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;type=&#8221;file&#8221; &#8216;+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;hidefocus=&#8221;true&#8221; &#8216;+
&nbsp;&nbsp;&nbsp;&nbsp; &#8216;/&gt;&#8217;
).css({
&nbsp;&nbsp;&nbsp;&nbsp; background: &#8216;#ffffff&#8217;,
&nbsp;&nbsp;&nbsp;&nbsp; position: &#8216;relative&#8217;,
&nbsp;&nbsp;&nbsp;&nbsp; display: &#8216;block&#8217;,
&nbsp;&nbsp;&nbsp;&nbsp; <strong style="font-weight: bold;">marginLeft: 0+&#8217;px&#8217;,</strong>
&nbsp;&nbsp;&nbsp;&nbsp; opacity: 0
});</blockquote>

<p><a href="http://www.stumbleupon.com/submit?url=http://www.cybervaldez.com/how-to-fix-ocuploadone-click-upload-clicking-bug-in-ie7-ie8-jquery/2009/%26title%3DOCUpload%2BBug%2BFix"> <img border=0 src="http://cdn.stumble-upon.com/images/120x20_thumb_black.gif" alt=""></a></p>

<p>That&#8217;s it! Hope this helped!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/how-to-fix-ocuploadone-click-upload-clicking-bug-in-ie7-ie8-jquery/2009/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Super Tip: Pass Arguments in your Python Bindings using Lambda Functions</title>
		<link>http://www.cybervaldez.com/super-tip-pass-arguments-in-your-python-bindings-using-lambda-functions/2009/</link>
		<comments>http://www.cybervaldez.com/super-tip-pass-arguments-in-your-python-bindings-using-lambda-functions/2009/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 18:38:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How-tos]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Super Tip!]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[event.binding]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[hook]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[important]]></category>
		<category><![CDATA[lambda]]></category>
		<category><![CDATA[pyhook]]></category>
		<category><![CDATA[super]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[to]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1102</guid>
		<description><![CDATA[Problem: Help! How can I pass parameters in my Bindings? Solution: By using lambda functions in python(Check your PL&#8217;s manual for anything similar), you would be able to create on-the-fly functions that returns your bindings with the extra parameters/arguments you want to pass. Example 1: Passing an argument to a wx Button Event btn = [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem: </strong> Help! How can I pass parameters in my Bindings?</p>

<p><strong>Solution: </strong> By using lambda functions in python(Check your PL&#8217;s manual for anything similar), you would be able to create on-the-fly functions that returns your bindings with the extra parameters/arguments you want to pass.</p>

<p>Example 1: Passing an argument to a wx Button Event</p>

<blockquote>
btn = wx.Button(self, 10, &#8220;Button&#8221;, (10, 10))
self.Bind(wx.EVT_BUTTON, lambda event: self.OnClick(event, &#8216;passthis&#8217;))

def OnClick(self, event, somearg):
&nbsp;&nbsp; print somearg
</blockquote>

<p>Example 2: Passing an argument to Pyhook&#8217;s HookManager.KeyUp Event</p>

<blockquote>
hook = pyHook.HookManager()
hook.KeyUp = lambda event: OnKeyboardEvent(event, &#8216;Pass Me.&#8217;)
hm.HookKeyboard()

def OnKeyboardEvent(event, myarg)
&nbsp;&nbsp;print myarg
</blockquote>

<p><strong>That&#8217;s It!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/super-tip-pass-arguments-in-your-python-bindings-using-lambda-functions/2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to: Remove those nasty question marks with a diamond symbols that appears in your website</title>
		<link>http://www.cybervaldez.com/how-to-remove-those-nasty-question-mark-with-a-diamond-symbols-from-appearing-in-your-website/2009/</link>
		<comments>http://www.cybervaldez.com/how-to-remove-those-nasty-question-mark-with-a-diamond-symbols-from-appearing-in-your-website/2009/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 22:33:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[How-tos]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Super Tip!]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[characters]]></category>
		<category><![CDATA[diamon]]></category>
		<category><![CDATA[diamonds]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[encoded]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[incorrect]]></category>
		<category><![CDATA[mark]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[output]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[question]]></category>
		<category><![CDATA[render]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[special]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[symbol]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[to]]></category>
		<category><![CDATA[troubleshoot]]></category>
		<category><![CDATA[utf-8]]></category>
		<category><![CDATA[webpage]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[word]]></category>
		<category><![CDATA[wrong]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1069</guid>
		<description><![CDATA[Help! I've pasted some text from Microsoft Word and saved it to my SQL database! Now whenever I output my text there's a bunch of diamonds with a question mark symbols now appearing!]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong> Help! I&#8217;ve pasted some text from Microsoft Word and saved it to my SQL database! Now whenever I print my text there&#8217;s a bunch of diamonds with a question mark symbols appearing!</p>

<p><strong>Solution:</strong> You are trying to display characters that are outside your page&#8217;s character set, you have to tell your browser that you need to display characters from the iso-8859-1 set so it will know how to render them correctly.</p>

<p>Simply put the following inside your website&#8217;s &lt;head&gt;&lt;/head&gt;</p>

<blockquote>&lt;META http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;</blockquote>

<p>and in PHP(or any other similar language), simply put this at the top of your page(for other languages, look for an identical function):</p>

<blockquote>&lt;? header(&quot;Content-type: text/html; charset=iso-8859-1&quot;); ?&gt;</blockquote>

<p>and voila! Your characters should now be displayed correctly.</p>

<p><a href="http://www.stumbleupon.com/submit?url=http://www.cybervaldez.com/how-to-remove-those-nasty-question-mark-with-a-diamond-symbols-from-appearing-in-your-website/2009/%26title%3DThe%2BArticle%2BTitle"> <img border=0 src="http://cdn.stumble-upon.com/images/120x20_thumb_black.gif" alt=""></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/how-to-remove-those-nasty-question-mark-with-a-diamond-symbols-from-appearing-in-your-website/2009/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

