<?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>A Passionate Developer from the Third World Putting Things into his World's Perspective</title>
	<atom:link href="http://www.cybervaldez.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cybervaldez.com</link>
	<description></description>
	<lastBuildDate>Thu, 15 Jul 2010 06:04:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>mySQL Super-tip! Use LIMIT and OFFSET to paginate your SELECT statements!</title>
		<link>http://www.cybervaldez.com/mysql-super-tip-use-limit-and-offset-to-paginate-your-select-statements/2010/</link>
		<comments>http://www.cybervaldez.com/mysql-super-tip-use-limit-and-offset-to-paginate-your-select-statements/2010/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 20:51:50 +0000</pubDate>
		<dc:creator>Cyber Valdez</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[How-tos]]></category>
		<category><![CDATA[Super Tip!]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1236</guid>
		<description><![CDATA[Awesome, it seems that mySQL now supports the OFFSET clause.
This is very useful for paginating your SQL statements.
The following will return the first 10 entries of your select statement:
&#8220;SELECT field FROM table LIMIT 10&#8243;
This, on the otherhand, will OFFSET your result by 10, selecting your entries #10-20:
&#8220;SELECT field FROM table LIMIT 10 OFFSET 10&#8243;
Here&#8217;s an [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Awesome, it seems that mySQL now supports the OFFSET clause.</p>
<p>This is very useful for paginating your SQL statements.</p>
<p>The following will return the first 10 entries of your select statement:</p>
<blockquote><p>&#8220;SELECT field FROM table LIMIT 10&#8243;</p></blockquote>
<p>This, on the otherhand, will OFFSET your result by 10, selecting your entries #10-20:</p>
<blockquote><p>&#8220;SELECT field FROM table LIMIT 10 OFFSET 10&#8243;</p></blockquote>
<p>Here&#8217;s an example of how to capture entries #10-30:</p>
<blockquote><p>&#8220;SELECT field FROM table LIMIT 20 OFFSET 10&#8243;</p></blockquote>
<p>Things just keeps on getting easier and easier!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/mysql-super-tip-use-limit-and-offset-to-paginate-your-select-statements/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>Cyber Valdez</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 = &#8216;1,4,3,6,8,2&#8242;;
&#8220;SELECT * FROM &#60;&#8230;&#62; WHERE id IN ($id)&#8221;

Oh and did I mention you [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><strong>_Problem #1_</strong>: How do I simplify my mySql where queries?<br />
<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><p>$id = &#8216;1,4,3,6,8,2&#8242;;<br />
&#8220;SELECT * FROM &lt;&#8230;&gt; <strong>WHERE</strong> id <strong>IN</strong> ($id)&#8221;
</p></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><p>$id = &#8216;5,7&#8242;;<br />
&#8220;SELECT * FROM &lt;&#8230;&gt; <strong>WHERE</strong> id <strong>NOT IN</strong> ($id)&#8221;
</p></blockquote>
<p><strong>Oh-Some!</strong></p>


<p>No related posts.</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>Ultimate guide to installing Windows 7 64-Bit(x64) in your Macbook White and solutions to Bootcamp driver problems!</title>
		<link>http://www.cybervaldez.com/ultimate-guide-to-installing-windows-7-64-bitx64-in-your-macbook-white-and-solutions-to-bootcamp-driver-problems/2009/</link>
		<comments>http://www.cybervaldez.com/ultimate-guide-to-installing-windows-7-64-bitx64-in-your-macbook-white-and-solutions-to-bootcamp-driver-problems/2009/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 04:05:34 +0000</pubDate>
		<dc:creator>Cyber Valdez</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>
		<category><![CDATA[How-tos]]></category>
		<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[Super Tip!]]></category>
		<category><![CDATA[64]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bit]]></category>
		<category><![CDATA[drivers]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[rosa]]></category>
		<category><![CDATA[santa]]></category>
		<category><![CDATA[seven]]></category>
		<category><![CDATA[snow]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[troubleshoot]]></category>
		<category><![CDATA[white]]></category>
		<category><![CDATA[win7]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[x64]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1197</guid>
		<description><![CDATA[Problem #1: Help Me! How do I install Windows 7 in my macbook while retaining Mac OSX. 
Problem #2: Driver issues! I can&#8217;t install my 64 bit bootcamp drivers in Windows 7!
Problem #3: Sound: My Macbook sounds very tinny and awful in Windows 7 
Problem #4: Right Clicking: How do I right click in Windows [...]


Related posts:<ol><li><a href='http://www.cybervaldez.com/how-to-deleteremove-protected-folders-and-files-from-a-previous-installation-of-windows/2009/' rel='bookmark' title='Permanent Link: How to: Delete/Remove protected folders and files from a previous installation of Windows'>How to: Delete/Remove protected folders and files from a previous installation of Windows</a> <small>Problem: I&#8217;ve decided to re-install windows because of some issues....</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p><strong>Problem #1: Help Me!</strong> How do I install Windows 7 in my macbook while retaining Mac OSX. </p>
<p><strong>Problem #2: Driver issues!</strong> I can&#8217;t install my 64 bit bootcamp drivers in Windows 7!</p>
<p><strong>Problem #3: Sound:</strong> My Macbook sounds very tinny and awful in Windows 7 </p>
<p><strong>Problem #4: Right Clicking:</strong> How do I right click in Windows 7 using macbook?</p>
<p><strong>Problem #5:</strong> How do I disable my trackpad if my mouse is present in Windows 7?</p>
<p><strong>Problem #6:</strong> How do I rebind some of my macbook keys in Windows 7?</p>
<p><strong>_Introduction_</strong>: This guide will help you install Windows 7 to your Macbook and also solve the Mac driver issues in Windows 7. Although the case sounds like Bootcamp Drivers doesn&#8217;t support Windows 7 64 bit on some macs(Core 2 duo), this is not exactly true as <strong>you can still install the 64 bit drivers</strong>(Scroll down to the &#8220;Windows 64-bit drivers installation&#8221; section to see more details). Another solution is to use a virtual machine like <a href="http://www.vmware.com/products/fusion/features.html#c25447">VMWare Fusion</a> and <a href="http://www.parallels.com/products/desktop/">Parallels</a>. They basically put <a href="http://www.youtube.com/watch?v=qmzNhmbYrmo&#038;feature=player_embedded">Windows and OSX side-by-side</a> and it works wonderfully (Great for web developers and those who want to have that coolness factor added to OSX)</p>
<blockquote><p>How To Install Windows 7 while retaining your current OSX Installation:</p></blockquote>
<p><strong>Step 1.</strong> Start OSX (Leopard / Snow Leopard), <strong>Run Bootcamp Migration Assistant</strong> (type &#8220;bootcamp&#8221; in your finder)</p>
<p><strong>Step 2.</strong> During the <strong>Bootcamp Migration Wizard</strong>, create a partition with around 30gb+ of disk space. After completing the wizard, OSX will prompt you to restart with the Windows 7 CD in your drive.</p>
<blockquote><p>If OSX is complaining about being unable to continue with bootcamp, you probably need to defrag your Macintosh Drive. To do this, download a defragger software such as &#8220;<a href="http://www.coriolis-systems.com/iDefrag.php">iDefrag</a>&#8221; and do a complete defrag on your primary hard disk, unfortunately you can&#8217;t really do a complete defrag on the hard disk you are currently running OSX in so you will need an external hard disk to boot from in order to do this. Please see <strong style="text-decoration: underline">step 1</strong> of &#8220;How to backup your OSX and do a Fresh Install of Windows 7 and Leopard / Snow Leopard in your Macbook&#8221; below to find out how to run OSX from an external hard disk. Once you&#8217;re running OSX in your external drive, run &#8220;<a href="http://www.coriolis-systems.com/iDefrag.php">iDefrag</a>&#8221; and defrag your primary hard-drive. <strong style="text-decoration:underline">Once defragged, restart macbook and you should be able to complete Bootcamp now.</strong></p></blockquote>
<p><strong>Step 3.</strong> After restarting, you&#8217;ll be greeted by the Windows 7 setup, complete each steps until Windows 7 asks you where to install it, <strong>simply select the drive that is labeled: &#8220;BootCamp&#8221; and format it</strong>(it is disabled until you format it, don&#8217;t worry it&#8217;s safe.).</p>
<p><strong>Step 4.</strong> Congratulations! Windows 7 has been installed, now <strong>insert your Leopard / Snow Leopard Installation Disk</strong> and<strong> Navigate to your CD Drive Folder &mdash;> Boot Camp &mdash;> Drivers &mdash;> Apple and open &#8220;BootCamp64&#8243;</strong>. If an alert window is informing you that your current OS is not supported, don&#8217;t worry as it&#8217;s easy to fix that. Please scroll down until you get to the Windows 7 64 bit Driver Installation for Macbook section.</p>
<blockquote><p>How to backup your OSX and do a Fresh Install of Windows 7 and Leopard / Snow Leopard in your Macbook:</p></blockquote>
<p><strong>Step 1: Backup your system to an external hard disk:</strong><br />
Connect an external hard disk to your macbook and run this awesome software called <a href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html">SuperDuper</a> to backup your files. Once backed up restart your macbook and <strong>hold Alt/Option</strong> until your see a boot selection menu, select the external hard disk with the backup you made in <a href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html">SuperDuper</a>, if all goes well you should be running OSX, only this time, you&#8217;re running it in your external hard-drive(your backup). If you are comfortable with how the backup looks, proceed with the following steps:</p>
<p><strong>Step 2.</strong> <strong>Run Disk Utility</strong> (type &#8220;disk&#8221; in finder to see it from the list of Applications)</p>
<p><strong>Step 3.</strong> <strong>Format</strong> your Macbook&#8217;s Hard-drive(Take care that you don&#8217;t select the external one.).</p>
<p><strong>Step 4.</strong> Insert your Leopard / Snow Leopard Installation CD, while restarting <strong>hold ALT/Option</strong> to get to the boot menu. Select your Leopard / Snow Leopard CD and complete your OSX installation.</p>
<p><strong>Step 5.</strong> After Installation, boot your newly installed OSX and <strong>run Bootcamp Migration Assistant</strong> (type &#8220;bootcamp&#8221; in your finder), complete the Bootcamp Migration Wizard and insert your Windows 7 CD before proceeding to restart:</p>
<p><strong>Step 6.</strong> After restarting, proceed to install your Windows 7, when Windows 7 ask you where to install it, simply select the drive that is labeled: <strong>&#8220;BootCamp&#8221;</strong> and press the format button(don&#8217;t worry it&#8217;s safe).</p>
<p><strong>Step 7. Congratulations!</strong> Windows 7 has been installed, now insert your Leopard / Snow Leopard Installation Disk and <strong>Navigate to your CD Drive &mdash;> Boot Camp &mdash;> Drivers &mdash;> Apple and open &#8220;BootCamp64&#8243;</strong>. If an alert window is informing you that your current OS is not supported, don&#8217;t worry as it&#8217;s easy to fix that in the next section.</p>
<blockquote><p>Installing your macbook&#8217;s Windows 7 64 Bit Drivers. Important: The following is only required if you can&#8217;t install the 64bit drivers that&#8217;s included in your Leopard/Snow Leopard Installation Disk.</p></blockquote>
<p><strong>Step 1.</strong> In Windows, press <strong>Start &mdash;> Select &#8220;Run&#8221; &mdash; Type &#8220;Cmd&#8221;, from the Programs List, right click on &#8220;cmd.exe&#8221; and select &#8220;Run as Administrator&#8221;</strong></p>
<p><strong>Step 2.</strong> In Windows Command Prompt, enter the following command:<br />
<strong>net user administrator /active:yes</strong></p>
<p><strong>Step 3.</strong> Press <strong>Start &mdash;> Logout and re-login</strong>, <strong>select the &#8220;Administrator&#8221; Account</strong> from the selection.</p>
<p><strong>Step 4.</strong> <strong>Navigate to your Leopard CD Drive Folder &mdash;> Boot Camp &mdash;> Drivers &mdash;> Apple and open &#8220;BootCamp64&#8243;</strong>, complete the installation and you&#8217;re all set!</p>
<p><strong>Step 5.</strong> Remove the administrator account from showing up by going to <strong>Start &mdash;> Run &mdash;> Cmd </strong>&mdash;> press enter. Type the following command from the command prompt:<br />
<strong>net user administrator /active:no</strong></p>
<blockquote><p>After the installation of these drivers, you may notice your macbook sounding really tinny or pitchy, this is easily fixed by installing the sound driver from <a href="http://www.realtek.com.tw/downloads/downloadsCheck.aspx?Langid=1&#038;PNid=14&#038;PFid=24&#038;Level=4&#038;Conn=3&#038;DownTypeID=3&#038;GetDown=false">Realtek</a>.</p></blockquote>
<p><strong>Step 6.</strong> Download Realtek HD Audio Drivers <a href="http://www.realtek.com.tw/downloads/downloadsCheck.aspx?Langid=1&#038;PNid=14&#038;PFid=24&#038;Level=4&#038;Conn=3&#038;DownTypeID=3&#038;GetDown=false">here</a>.</p>
<p><strong>Step 7. That&#8217;s it!</strong> Perhaps the final step is to tweak your keyboard/trackpad settings by accessing the <strong>Bootcamp Control Panel</strong> (This can be seen in your system tray &mdash; lower right portion of your task bar, click the arrow besides the date if you can&#8217;t see it. If you still can&#8217;t see it, simply press Start and type <strong>&#8220;boot camp&#8221;</strong> to find it.)</p>
<blockquote><p>To right click in Windows 7 using your trackpad, touch your trackpad with 2 fingers and click on the button. If you are like me, you may prefer to do a 2 finger tap to do a right click, you can do this by going to Boot Camp Control Panel(Press start and type &#8220;Boot Camp&#8221; to find it), go to the trackpad tab and click on One Finger Tap to Click and secondary click below Two Fingers. </p></blockquote>
<blockquote><p>There&#8217;s a nice software called <a href="http://www.pocketlim.com/TrackpadMagic/">Trackpad Magic</a>, it&#8217;s a very handy tool that allows you to disable your trackpad easily via the system tray. It also have a nifty option that automatically disables your trackpad when a mouse is present/plugged in. For the best effect, add a shortcut of the Trackpad Magic program to your startup folder.</p></blockquote>
<blockquote><p>If you are uncomfortable with how some of your keyboard keys are setup, you may want to rebind them using the Remapkey software. Remapkey is included with the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&#038;displaylang=en">Windows Server 2003 Resource Kit Tools</a>. You can find it in the c:\Program Files\Windows Resource Kits\Tools directory called remapkey.exe respectively.</p></blockquote>
<p>Well, that should cover it! Don&#8217;t forget to share this in stumbleupon to help those who are looking for a similar solution.<br />
<a href="http://www.stumbleupon.com/submit?url=http://www.cybervaldez.com/ultimate-guide-to-installing-windows-7-64-bitx64-in-your-macbook-white-and-solutions-to-bootcamp-driver-problems/2009/"> <img border=0 src="http://cdn.stumble-upon.com/images/120x20_thumb_black.gif" alt="120x20 thumb black Ultimate guide to installing Windows 7 64 Bit(x64) in your Macbook White and solutions to Bootcamp driver problems!"  title="Ultimate guide to installing Windows 7 64 Bit(x64) in your Macbook White and solutions to Bootcamp driver problems!" /></a></p>


<p>Related posts:<ol><li><a href='http://www.cybervaldez.com/how-to-deleteremove-protected-folders-and-files-from-a-previous-installation-of-windows/2009/' rel='bookmark' title='Permanent Link: How to: Delete/Remove protected folders and files from a previous installation of Windows'>How to: Delete/Remove protected folders and files from a previous installation of Windows</a> <small>Problem: I&#8217;ve decided to re-install windows because of some issues....</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/ultimate-guide-to-installing-windows-7-64-bitx64-in-your-macbook-white-and-solutions-to-bootcamp-driver-problems/2009/feed/</wfw:commentRss>
		<slash:comments>7</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>Cyber Valdez</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. This [...]


Related posts:<ol><li><a href='http://www.cybervaldez.com/jquery-super-tip-automatically-highlight-the-linksmenu-of-the-current-page-with-1-line-of-code/2009/' rel='bookmark' title='Permanent Link: Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code'>Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code</a> <small> One very important usability feature of a website is...</small></li></ol>]]></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.<br />
1.) First, copy the following css and paste them inside your <strong>&lt;header&gt;</strong> tag.</p>
<blockquote><p>
      html { height: 100%; }<br />
      body { height: 100%; }<br />
      #wrapper { position: relative; min-height: 100%; }<br />
      * html #wrapper { height: 100%; }<br />
      #content { <span style="font-weight:bold;">padding-bottom: 25px;</span> }</p>
<p>      #toolbar_outer { bottom:0; color:#111111; font-size:11px; height:25px; padding:0; position:fixed; right:0; width:100%; z-index:99; }<br />
      #toolbar_outer { position: relative; <span style="font-weight:bold;">margin-top: -26px;</span> }<br />
      #toolbar {<br />
        background:#aaa;<br />
        border-right:1px solid #b5b5b5;<br />
        overflow:visible !important;<br />
        margin-left:15px;<br />
        margin-right:15px;<br />
        position:relative;<br />
      }<br />
      #toolbar ul { <span style="font-weight:bold;">height: 25px;</span> background: #e5e5e5; border-top: 1px solid #eee; border-left: 1px solid #ddd; }<br />
      #toolbar ul li { float: left; padding: 5px; font: normal 110% &quot;lucida grande&quot;, tahoma, verdana, arial; border-right: 1px solid #aaa;}
</p></blockquote>
<p><strong>Important</strong>: The only drawback here is you&#8217;ll need to know the _height_ of your toolbar (not really a problem, you should know that anyway). I&#8217;ve _<span style="font-weight:bold;">highlighted</span>_ 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><p>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&#8221;wrapper&#8221;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      &lt;div id=&quot;content&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        &lt;!&#8211; Your Content Goes Here &#8211;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      &lt;/div&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;toolbar_outer&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;toolbar&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!&#8211; Toolbar &#8211;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;Applications&lt;/li&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;
</p></blockquote>
<p>3. (Optional) You can also download everything above <a href="http://www.cybervaldez.com/myuploads/src/facebook_toolbar_src.zip">here</a>.</p>
<p>Well, that&#8217;s everything there is to it really! Don&#8217;t forget to thumb this up and share with others!<br />
<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="120x20 thumb black Super Tip! How to Create that floating Facebook toolbar at the bottom of the page!"  title="Super Tip! How to Create that floating Facebook toolbar at the bottom of the page!" /></a></p>


<p>Related posts:<ol><li><a href='http://www.cybervaldez.com/jquery-super-tip-automatically-highlight-the-linksmenu-of-the-current-page-with-1-line-of-code/2009/' rel='bookmark' title='Permanent Link: Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code'>Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code</a> <small> One very important usability feature of a website is...</small></li></ol></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>Cyber Valdez</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 following [...]


Related posts:<ol><li><a href='http://www.cybervaldez.com/super-tip-how-to-create-that-floating-facebook-toolbar-at-the-bottom-of-the-page/2009/' rel='bookmark' title='Permanent Link: Super Tip! How to Create that floating Facebook toolbar at the bottom of the page!'>Super Tip! How to Create that floating Facebook toolbar at the bottom of the page!</a> <small>Help! I&#8217;d like to create a toolbar similar to facebook...</small></li><li><a href='http://www.cybervaldez.com/how-to-fix-ocuploadone-click-upload-clicking-bug-in-ie7-ie8-jquery/2009/' rel='bookmark' title='Permanent Link: How to: Fix OCUpload/One-Click Upload clicking bug in IE7 &#038; IE8 (jquery)'>How to: Fix OCUpload/One-Click Upload clicking bug in IE7 &#038; IE8 (jquery)</a> <small>Problem: Help! I&#8217;m using the OCUpload, or One Click Upload...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p><!--adsensestart--><br />
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><p>$(document).ready(function()<br />
&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;var loc = window.location.toString().split(&quot;/&quot;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;loc = loc[loc.length - 1]<br />
&nbsp;&nbsp;&nbsp;&nbsp;$(&quot;#navigation li a[href=\&quot;&quot;+loc+&quot;\&quot;]&quot;).addClass(&quot;selected&quot;);<br />
&nbsp;&nbsp;});</p></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><p>
&nbsp;&nbsp;  window.onload = function()<br />
&nbsp;&nbsp;  {<br />
&nbsp;&nbsp;&nbsp;&nbsp;    var current_page = window.location.toString().split(&quot;/&quot;)[window.location.toString().split(&quot;/&quot;).length - 1]<br />
&nbsp;&nbsp;&nbsp;&nbsp;    var links = document.getElementsByTagName(&quot;a&quot;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;    for (x in links)<br />
&nbsp;&nbsp;&nbsp;&nbsp;    {<br />
&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;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      if (link == current_page)<br />
&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;<br />
&nbsp;&nbsp;&nbsp;&nbsp;    }<br />
&nbsp;&nbsp;  }
</p></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><p>#navigation ul li a:hover { color: #ff0; }</p></blockquote>
<p>Should be written as:</p>
<blockquote><p>#navigation ul li a:hover, #navigation ul li a.selected { color: #ff0 !important; }</p></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!<br />
<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="120x20 thumb black Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code"  title="Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code" /></a></p>


<p>Related posts:<ol><li><a href='http://www.cybervaldez.com/super-tip-how-to-create-that-floating-facebook-toolbar-at-the-bottom-of-the-page/2009/' rel='bookmark' title='Permanent Link: Super Tip! How to Create that floating Facebook toolbar at the bottom of the page!'>Super Tip! How to Create that floating Facebook toolbar at the bottom of the page!</a> <small>Help! I&#8217;d like to create a toolbar similar to facebook...</small></li><li><a href='http://www.cybervaldez.com/how-to-fix-ocuploadone-click-upload-clicking-bug-in-ie7-ie8-jquery/2009/' rel='bookmark' title='Permanent Link: How to: Fix OCUpload/One-Click Upload clicking bug in IE7 &#038; IE8 (jquery)'>How to: Fix OCUpload/One-Click Upload clicking bug in IE7 &#038; IE8 (jquery)</a> <small>Problem: Help! I&#8217;m using the OCUpload, or One Click Upload...</small></li></ol></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>22</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>Cyber Valdez</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 in [...]


Related posts:<ol><li><a href='http://www.cybervaldez.com/jquery-super-tip-automatically-highlight-the-linksmenu-of-the-current-page-with-1-line-of-code/2009/' rel='bookmark' title='Permanent Link: Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code'>Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code</a> <small> One very important usability feature of a website is...</small></li></ol>]]></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><p>
/** Move the input with the mouse to make sure it get clicked! */<br />
container.mousemove(function(e){<br />
&nbsp;&nbsp; input.css({<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; top: e.pageY-container.offset().top+&#8217;px&#8217;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong style="font-weight:bold;">left: e.pageX-container.offset().left-175+&#8217;px&#8217;</strong><br />
&nbsp;&nbsp; });<br />
});</p></blockquote>
<p>Finally, we need to set the margin css property to 0, you can find it somewhere on line 63:</p>
<blockquote><p>
/** File Input */<br />
var input = $(<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;&lt;input &#8216;+<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;name=&#8221;&#8216;+options.name+&#8217;&#8221; &#8216;+<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;type=&#8221;file&#8221; &#8216;+<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;hidefocus=&#8221;true&#8221; &#8216;+<br />
&nbsp;&nbsp;&nbsp;&nbsp; &#8216;/&gt;&#8217;<br />
).css({<br />
&nbsp;&nbsp;&nbsp;&nbsp; background: &#8216;#ffffff&#8217;,<br />
&nbsp;&nbsp;&nbsp;&nbsp; position: &#8216;relative&#8217;,<br />
&nbsp;&nbsp;&nbsp;&nbsp; display: &#8216;block&#8217;,<br />
&nbsp;&nbsp;&nbsp;&nbsp; <strong style="font-weight: bold;">marginLeft: 0+&#8217;px&#8217;,</strong><br />
&nbsp;&nbsp;&nbsp;&nbsp; opacity: 0<br />
});</p></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="120x20 thumb black How to: Fix OCUpload/One Click Upload clicking bug in IE7 & IE8 (jquery)"  title="How to: Fix OCUpload/One Click Upload clicking bug in IE7 & IE8 (jquery)" /></a></p>
<p>That&#8217;s it! Hope this helped!</p>


<p>Related posts:<ol><li><a href='http://www.cybervaldez.com/jquery-super-tip-automatically-highlight-the-linksmenu-of-the-current-page-with-1-line-of-code/2009/' rel='bookmark' title='Permanent Link: Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code'>Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code</a> <small> One very important usability feature of a website is...</small></li></ol></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>How to: Delete/Remove protected folders and files from a previous installation of Windows</title>
		<link>http://www.cybervaldez.com/how-to-deleteremove-protected-folders-and-files-from-a-previous-installation-of-windows/2009/</link>
		<comments>http://www.cybervaldez.com/how-to-deleteremove-protected-folders-and-files-from-a-previous-installation-of-windows/2009/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 19:18:01 +0000</pubDate>
		<dc:creator>Cyber Valdez</dc:creator>
				<category><![CDATA[How-tos]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[folder]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[locked]]></category>
		<category><![CDATA[previous]]></category>
		<category><![CDATA[protected]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[rm]]></category>
		<category><![CDATA[rmdir]]></category>
		<category><![CDATA[seven]]></category>
		<category><![CDATA[troubleshoot]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[win]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows seven]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1112</guid>
		<description><![CDATA[Problem: I&#8217;ve decided to re-install windows because of some issues. My new install is ok but I can&#8217;t delete the directory of my old windows anymore!
Solution: The folder you are trying to delete has it&#8217;s administrative privileges locked from your previous windows. You could change the ownership of your folder by right clicking on the [...]


Related posts:<ol><li><a href='http://www.cybervaldez.com/ultimate-guide-to-installing-windows-7-64-bitx64-in-your-macbook-white-and-solutions-to-bootcamp-driver-problems/2009/' rel='bookmark' title='Permanent Link: Ultimate guide to installing Windows 7 64-Bit(x64) in your Macbook White and solutions to Bootcamp driver problems!'>Ultimate guide to installing Windows 7 64-Bit(x64) in your Macbook White and solutions to Bootcamp driver problems!</a> <small>Problem #1: Help Me! How do I install Windows 7...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong> I&#8217;ve decided to re-install windows because of some issues. My new install is ok but I can&#8217;t delete the directory of my old windows anymore!</p>
<p><strong>Solution:</strong> The folder you are trying to delete has it&#8217;s administrative privileges locked from your previous windows. You could change the ownership of your folder by right clicking on the folder -> Properties -> Security -> Advanced -> Owner -> Edit -> Select Administrator and put a check on &#8220;Replace owner on subcontainers and objects&#8221;</p>
<p><strong>An __Easier__ Solution: </strong> You can also do a command prompt to remove the ownership which is a more straightforward process. To do this, press your window&#8217;s Start button, type &#8220;cmd&#8221;, right click on the &#8220;cmd&#8221; program that shows up, right click and select run as administrator (running the command prompt with administrator privileges is important).</p>
<p>In the command prompt, enter the following command:</p>
<blockquote><p>cacls &#8220;c:\WINDOWS.OLD&#8221; /t /g administrators:F</p></blockquote>
<p><strong>Note:</strong> Don&#8217;t forget to change the drive letter and path above to the locked folder.</p>
<p><strong>That&#8217;s it!</strong> You can now delete this folder.</p>


<p>Related posts:<ol><li><a href='http://www.cybervaldez.com/ultimate-guide-to-installing-windows-7-64-bitx64-in-your-macbook-white-and-solutions-to-bootcamp-driver-problems/2009/' rel='bookmark' title='Permanent Link: Ultimate guide to installing Windows 7 64-Bit(x64) in your Macbook White and solutions to Bootcamp driver problems!'>Ultimate guide to installing Windows 7 64-Bit(x64) in your Macbook White and solutions to Bootcamp driver problems!</a> <small>Problem #1: Help Me! How do I install Windows 7...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/how-to-deleteremove-protected-folders-and-files-from-a-previous-installation-of-windows/2009/feed/</wfw:commentRss>
		<slash:comments>3</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>Cyber Valdez</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 = wx.Button(self, [...]


Related posts:<ol><li><a href='http://www.cybervaldez.com/super-tip-how-to-create-that-floating-facebook-toolbar-at-the-bottom-of-the-page/2009/' rel='bookmark' title='Permanent Link: Super Tip! How to Create that floating Facebook toolbar at the bottom of the page!'>Super Tip! How to Create that floating Facebook toolbar at the bottom of the page!</a> <small>Help! I&#8217;d like to create a toolbar similar to facebook...</small></li><li><a href='http://www.cybervaldez.com/jquery-super-tip-automatically-highlight-the-linksmenu-of-the-current-page-with-1-line-of-code/2009/' rel='bookmark' title='Permanent Link: Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code'>Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code</a> <small> One very important usability feature of a website is...</small></li></ol>]]></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><p>
btn = wx.Button(self, 10, &#8220;Button&#8221;, (10, 10))<br />
self.Bind(wx.EVT_BUTTON, lambda event: self.OnClick(event, &#8216;passthis&#8217;))</p>
<p>def OnClick(self, event, somearg):<br />
&nbsp;&nbsp; print somearg
</p></blockquote>
<p>Example 2: Passing an argument to Pyhook&#8217;s HookManager.KeyUp Event</p>
<blockquote><p>
hook = pyHook.HookManager()<br />
hook.KeyUp = lambda event: OnKeyboardEvent(event, &#8216;Pass Me.&#8217;)<br />
hm.HookKeyboard()</p>
<p>def OnKeyboardEvent(event, myarg)<br />
&nbsp;&nbsp;print myarg
</p></blockquote>
<p><strong>That&#8217;s It!</strong></p>


<p>Related posts:<ol><li><a href='http://www.cybervaldez.com/super-tip-how-to-create-that-floating-facebook-toolbar-at-the-bottom-of-the-page/2009/' rel='bookmark' title='Permanent Link: Super Tip! How to Create that floating Facebook toolbar at the bottom of the page!'>Super Tip! How to Create that floating Facebook toolbar at the bottom of the page!</a> <small>Help! I&#8217;d like to create a toolbar similar to facebook...</small></li><li><a href='http://www.cybervaldez.com/jquery-super-tip-automatically-highlight-the-linksmenu-of-the-current-page-with-1-line-of-code/2009/' rel='bookmark' title='Permanent Link: Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code'>Jquery Super Tip! Automatically highlight the links/menu of the current page with 1 line of code</a> <small> One very important usability feature of a website is...</small></li></ol></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>Super Tip: Rasterize a layer with it&#8217;s effect in Photoshop</title>
		<link>http://www.cybervaldez.com/super-tip-rasterize-a-layer-with-its-effect-in-photoshop/2009/</link>
		<comments>http://www.cybervaldez.com/super-tip-rasterize-a-layer-with-its-effect-in-photoshop/2009/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 22:43:48 +0000</pubDate>
		<dc:creator>Cyber Valdez</dc:creator>
				<category><![CDATA[How-tos]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Super Tip!]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1095</guid>
		<description><![CDATA[Problem:  Help! My mask clipping isn&#8217;t working because of the my layer&#8217;s overlay effect! I need to rasterize my effects first but I don&#8217;t know how!
Solution:
Step 1: Select the layer with the effects you want rasterized.
Step 2: Press Control(CMD for Mac)+Shift+N to create a new layer.
Step 3: Add the layer from Step 1 to [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><strong>Problem: </strong> Help! My mask clipping isn&#8217;t working because of the my layer&#8217;s overlay effect! I need to rasterize my effects first but I don&#8217;t know how!</p>
<p>Solution:</p>
<blockquote><p><strong>Step 1:</strong> Select the layer with the effects you want rasterized.<br />
<strong>Step 2:</strong> Press Control(CMD for Mac)+Shift+N to create a new layer.<br />
<strong>Step 3:</strong> Add the layer from Step 1 to your selection by holding Shift and clicking on the Layer.<br />
<strong>Step 4:</strong> Press Ctrl(CMD for Mac)+E to merge the two layers and voila! your effects are now rasterized.
</p></blockquote>
<p><strong>__Note__</strong>: This tip is especially useful for mask clipping to a layer that have some gradient/color overlays.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/super-tip-rasterize-a-layer-with-its-effect-in-photoshop/2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A MySQL query to find &amp; replace text in your database</title>
		<link>http://www.cybervaldez.com/super-tip-a-mysql-query-to-find-replace-text-in-your-database/2009/</link>
		<comments>http://www.cybervaldez.com/super-tip-a-mysql-query-to-find-replace-text-in-your-database/2009/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 18:11:27 +0000</pubDate>
		<dc:creator>Cyber Valdez</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[old]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.cybervaldez.com/?p=1087</guid>
		<description><![CDATA[Help! I need to replace some words with something else in my database.



No related posts.]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong> Help! I need to replace some words with something else in my database.</p>
<p><strong>Solution:</strong> Use the replace() function to do a search and replace query.</p>
<blockquote><p>UPDATE table_name SET<br />
table_field=REPLACE(table_field,&quot;old_text&quot;,&quot;new_text&quot;);</p></blockquote>
<p>Here&#8217;s an example:</p>
<blockquote><p>UPDATE wp_posts SET<br />
post_content=REPLACE(post_content,&quot;localhost&quot;,&quot;www.cybervaldez.com&quot;);</p></blockquote>
<p>Easy as pie!</p>
<p><a href="http://www.stumbleupon.com/submit?url=http://www.cybervaldez.com/super-tip-a-mysql-query-to-find-replace-text-in-your-database/2009/%26title%3DThe%2BArticle%2BTitle"> <img border=0 src="http://cdn.stumble-upon.com/images/120x20_thumb_black.gif" alt="120x20 thumb black A MySQL query to find & replace text in your database"  title="A MySQL query to find & replace text in your database" /></a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.cybervaldez.com/super-tip-a-mysql-query-to-find-replace-text-in-your-database/2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
