<?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>dingobytes</title>
	<atom:link href="http://www.dingobytes.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dingobytes.com</link>
	<description>what your nephew can't make you</description>
	<lastBuildDate>Thu, 05 Apr 2012 19:52:54 +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>Closure-Compiler and Ant to compress javascript</title>
		<link>http://www.dingobytes.com/tutorial/closure-compiler-and-ant-to-compress-javascript</link>
		<comments>http://www.dingobytes.com/tutorial/closure-compiler-and-ant-to-compress-javascript#comments</comments>
		<pubDate>Thu, 05 Apr 2012 19:52:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ant]]></category>
		<category><![CDATA[build.xml]]></category>
		<category><![CDATA[Closure-Compiler]]></category>
		<category><![CDATA[compressed]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[minified]]></category>

		<guid isPermaLink="false">http://www.dingobytes.com/?p=408</guid>
		<description><![CDATA[Having used Eclipse and now IntelliJ for some time, I have often found it handy to build applications with Ant. It has been some time since I have taken a look at the process I was using and I really needed to find a better way to compress my javascript files, so I decided to [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_413" class="wp-caption alignleft" style="width: 310px"><a href="http://www.dingobytes.com/wp-content/uploads/2012/04/IntelliJ.png"><img src="http://www.dingobytes.com/wp-content/uploads/2012/04/IntelliJ-300x261.png" alt="IntelliJ Ant build.xml" title="IntelliJ Ant build.xml" width="300" height="261" class="size-medium wp-image-413" /></a><p class="wp-caption-text">IntelliJ Ant build.xml</p></div>Having used Eclipse and now IntelliJ for some time, I have often found it handy to build applications with Ant. It has been some time since I have taken a look at the process I was using and I really needed to find a better way to compress my javascript files, so I decided to look at refreshing the build.</p>
<p>My previous method had me setting up various properties, determining the OS being used and then targeting the compression of the javascript in the ant build.xml file. The process worked, but it was ugly and every OS had a different target for calling closure-compiler.</p>
<p>After several hours of reading the closure-compiler documentation, I happened to come across just what I was looking for (by accident). Closure-compiler now has a class for compiling in Ant [com.google.javascript.jscomp.ant.CompileTask]. What a find for me.</p>
<p>So here is how it works.<span id="more-408"></span></p>
<p>First you need to define the jscomp task-</p>
<pre class="brush: xml; title: ; notranslate">&lt;taskdef name=&quot;jscomp&quot; classname=&quot;com.google.javascript.jscomp.ant.CompileTask&quot;
classpath=&quot;${basedir}/closure-compiler/build/compiler.jar&quot;/&gt;</pre>
<p>This creates a task named jscomp using compiler jar and class named CompileTask located in the Closure-Compiler directory.</p>
<p>Next we need to create our target. I simply named mine &#8220;compile&#8221;. Nested inside the target I call the jscomp task passing it the attributes. This is simple, but was tricky as some of the values passed to the attributes differ from the documented values.</p>
<p>For example, the compilation level will accept the following values &#8220;WHITESPACE_ONLY&#8221;,&#8221;SIMPLE_OPTIMIZATIONS&#8221;,&#8221;ADVANCED_OPTIMIZATIONS&#8221; via command line, but with the class the attribute values are &#8220;whitespace&#8221;,&#8221;simple&#8221;,&#8221;advanced&#8221;.</p>
<p>Finally nested inside of the jscomp task, we define our &#8220;externs&#8221; and &#8220;source&#8221; files. In my case I didn&#8217;t really need to define any externs, but for a demonstration purposes, I have provided it the code.</p>
<pre class="brush: xml; title: ; notranslate">&lt;target name=&quot;compile&quot;&gt;

    &lt;jscomp compilationLevel=&quot;simple&quot; warning=&quot;verbose&quot; debug=&quot;false&quot;
            output=&quot;${assetsPath}/myfile.min.js&quot;&gt;

        &lt;externs dir=&quot;${basedir}/closure-compiler/contrib/externs&quot;&gt;
            &lt;file name=&quot;jquery-1.7.js&quot;/&gt;
        &lt;/externs&gt;

        &lt;sources dir=&quot;${assetsPath}&quot;&gt;
            &lt;file name=&quot;myfile.js&quot;/&gt;
        &lt;/sources&gt;

    &lt;/jscomp&gt;

&lt;/target&gt;</pre>
<p>That should be all you need inside your ant build file to create your compressed/minified javascript code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dingobytes.com/tutorial/closure-compiler-and-ant-to-compress-javascript/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Avoid SQL Divide by zero errors</title>
		<link>http://www.dingobytes.com/tutorial/avoid-sql-divide-by-zero-errors</link>
		<comments>http://www.dingobytes.com/tutorial/avoid-sql-divide-by-zero-errors#comments</comments>
		<pubDate>Fri, 30 Sep 2011 19:35:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[divide by zero]]></category>
		<category><![CDATA[IsNull]]></category>
		<category><![CDATA[NullIf]]></category>

		<guid isPermaLink="false">http://www.dingobytes.com/?p=377</guid>
		<description><![CDATA[I have been writing queries of one type or another for several years and for the last year and a half I have been trying to learn MSSQL. Although most of the syntax is like every other SQL language, the differences are enough to make me struggle. One particular item that has always flustered me [...]]]></description>
			<content:encoded><![CDATA[<p>I have been writing queries of one type or another for several years and for the last year and a half I have been trying to learn MSSQL. Although most of the syntax is like every other SQL language, the differences are enough to make me struggle.</p>
<p>One particular item that has always flustered me in the realm of report generating is the dreaded &#8220;divide by zero&#8221; error. I have been using ColdFusion for handling this through a method I call isZero(value, return_if_zero_value) where I pass it a value and a value I want returned if value is zero. This has never really been a good solution as the divide value is often something it should not be (should be zero).</p>
<p>I was frustrated with my inability to resolve this correctly and decided to spend some time trying to solve this.</p>
<p>I know that my select statement below will fail when t1.IMPRESSIONS == 0</p>
<pre class="brush: sql; title: ; notranslate">SELECT (CONVERT(DECIMAL(10,5), t1.CLICKS) / CONVERT(DECIMAL(10,5), t1.IMPRESSIONS)) * 100 AS CLICK_RATE</pre>
<p>I scoured through the SQL documentation and after about 20-30 minutes, I had one of those &#8216;Eureka!&#8217; moments. What if I could use IsNULL() method in SQL? If I could return null for a value, then maybe I could use IsNULL() to return zero when the divisor is zero. The only way I could do this is to return a null value when the divisor is zero, then correct? Enter the NULLIf() method.</p>
<pre class="brush: sql; title: ; notranslate">IsNULL( DIVIDEND / NULLIf(DIVISOR, 0), 0)</pre>
<p>I thought I just created something ground breaking, but in fact another few google searches and I found that this is really the most common way for most experienced developers to write out the SQL. Here is the end result of the SELECT statement.</p>
<pre class="brush: sql; title: ; notranslate">SELECT (IsNULL(CONVERT(DECIMAL(10,5), t1.CLICKS) / NULLIf(CONVERT(DECIMAL(10,5), t1.IMPRESSIONS), 0), 0)
* 100 AS CLICK_RATE</pre>
<p>I hope that this will help someone in the future. I know I could have used it about a year ago.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dingobytes.com/tutorial/avoid-sql-divide-by-zero-errors/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bad Privacy Policy</title>
		<link>http://www.dingobytes.com/business/bad-privacy-policy</link>
		<comments>http://www.dingobytes.com/business/bad-privacy-policy#comments</comments>
		<pubDate>Sun, 23 Jan 2011 21:15:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[bad business]]></category>
		<category><![CDATA[Bank of America]]></category>
		<category><![CDATA[opt-in]]></category>
		<category><![CDATA[opt-out]]></category>
		<category><![CDATA[privacy policy]]></category>
		<category><![CDATA[Santander]]></category>

		<guid isPermaLink="false">http://www.dingobytes.com/?p=336</guid>
		<description><![CDATA[The issue of privacy has come up often lately in the media. Privacy advocates have concerns about the amount of personal information aggregated by companies like Facebook and Google and shared with third parties. The concerns are legitimate and although I am not as concerned as much as the advocates, it is always on the [...]]]></description>
			<content:encoded><![CDATA[<p class="not_warning"><span class="img"></span>The following is a rant and has no purpose other then to let me vent<span class="close"></span></p>
<p><a href="http://www.dingobytes.com/wp-content/uploads/2011/01/sw_cell_phone_bad_news.jpg"><img src="http://www.dingobytes.com/wp-content/uploads/2011/01/sw_cell_phone_bad_news-289x300.jpg" alt="" title="Bad Business" width="289" height="300" class="alignleft size-medium wp-image-337" /></a>The issue of privacy has come up often lately in the media. Privacy advocates have concerns about the amount of personal information aggregated by companies like Facebook and Google and shared with third parties.</p>
<p>The concerns are legitimate and although I am not as concerned as much as the advocates, it is always on the back of my mind when I provide personal information online. So why this rant?</p>
<p>I think that these companies have <strong>VERY BAD PRIVACY</strong> policy. To many companies make you Opt-Out of their sharing of your personal data. Many companies require that you give them a reasonable amount of personal information in order to conduct business. The problem is that they often will turn around and monetize this data by selling your personal information to third party affiliates and non-affiliates.</p>
<p>One example of a company and this process is MLB.com. I am a big baseball fan and I have purchased several products through the MLB.com site. What does MLB.com do to such a great customer? They provide my information to third parties. I was somewhat tolerant of this process until recently when I received an email from Bank of America via MLB.com. I have a justifiable intense animosity for Bank of America and their egregious business practices. I immediately clicked the link provided in the email to opt-out of the Bank of America email list. Low and behold the process was broken and I was given an error every time I tried to opt-out. I don&#8217;t believe that it was intentional by either MLB.com or Bank of America, but I can tell you it is indicative of Bank of America and their customer service.</p>
<p>Another example of this was a recent letter I received from <a href="http://www.santanderconsumerusa.com/about/privacy.aspx">Santander Consumer USA</a> for a loan that was transferred to them from CitiFinancial Auto. I don&#8217;t have much control of this process so unless I just pay off the loan ahead of schedule, I am forced to abide by their business policy and privacy policy. Now what Santander Consumer USA is doing is perfectly legal, but that does not make it &#8216;good business&#8217;. Santander will (unless you are a resident of California and or Vermont) automatically Opt-in your account. You are required to mail in a form to Santander Consumer USA to opt-out. There is no option via the telephone or online.</p>
<p>I don&#8217;t know that it is necessary for states to pass new laws, but instead the best-practice of companies should be to opt-out your account and make it easy for users to opt-in. They could market the benefits and let consumers opt-in on their own.</p>
<p>I for one will continue to take my business to companies that automatically opt-out your account (like my local bank) and will avoid companies that continue to monetize my personal information. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dingobytes.com/business/bad-privacy-policy/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Plus Points</title>
		<link>http://www.dingobytes.com/jquery/wordpress-plus-points</link>
		<comments>http://www.dingobytes.com/jquery/wordpress-plus-points#comments</comments>
		<pubDate>Tue, 11 Jan 2011 05:15:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.dingobytes.com/?p=321</guid>
		<description><![CDATA[As the New Year begins, many a person creates a New Years Resolution that he or she sincerely intends to follow through on. Unfortunately for many these resolutions will never become a realization. This year my wife and I have both resolved to return to our healthy dietary and exercise plan of 2009 in hopes [...]]]></description>
			<content:encoded><![CDATA[<p>As the New Year begins, many a person creates a New Years Resolution that he or she sincerely intends to follow through on. Unfortunately for many these resolutions will never become a realization.</p>
<p>This year my wife and I have both resolved to return to our healthy dietary and exercise plan of 2009 in hopes to lose weight and feel great. We both use the Weight Watchers&reg; plan. This plan was easy to use and there were a lot of tools we could use to track our meals.</p>
<p>Of great use to us was a body planner that my wife purchased for both of us. The planner allowed us to log meals, activities and exercise. Using this in conjunction with the Weight Watchers&reg; tools (calculators and slide charts), we were able to log our meals and activities with an easy way of monitoring if we were &#8216;taking in&#8217; more then we were &#8216;working off&#8217;.</p>
<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-8997834926895804";
/* Dingobytes Banner */
google_ad_slot = "5058465999";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>November of 2011 Weight Watchers changed their calculations and if we want to both follow the new plan we need to purchase new tools. Me being the curmudgeony ole miser that I am, I didn&#8217;t really feel it was necessary to purchase all new tools for both of us, so I decided to let my wife spend the money and I would do something even better. Create a new WordPress plug-in.</p>
<p>So here it is folks. WordPress Plus Points. This plug-in will allow you to log your meals and let you know how many Plus Points you use in relationship to your targeted daily plus points.</p>
<p>In order for this plan to be successful, you still need to go to your Weight Watchers&reg; meetings and use your  Weight Watchers&reg; tools. This is just something to assist you in logging your food in a WordPress medium that you might be more familiar with.</p>
<p>You can download the WordPress Plus Points plug-in from the WordPress repository by searching for WordPress Plus Points.</p>
<p>http://wordpress.org/extend/plugins/wp-pluspoints/</p>
<p>Plus Points Setup:<br />
httpvh://www.youtube.com/watch?v=lDkt_kaqU0o</p>
<p>Plus Points short-code use:<br />
httpvh://www.youtube.com/watch?v=SmcFFV4RXLc</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dingobytes.com/jquery/wordpress-plus-points/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Subversion install for Eclipse Helios 3.6</title>
		<link>http://www.dingobytes.com/tutorial/subversion-install-for-eclipse-helios-3-6</link>
		<comments>http://www.dingobytes.com/tutorial/subversion-install-for-eclipse-helios-3-6#comments</comments>
		<pubDate>Wed, 22 Dec 2010 18:26:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[3.6]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Helios]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Subversive]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://www.dingobytes.com/?p=280</guid>
		<description><![CDATA[So I recently upgraded from Galileo to Helios and although I tried to use the upgrade instructions online, I had to many dependency issues and had to do a fresh install. I decided to start from scratch and removed the eclipse folder, deleted all cached and preference data and wiped out the workspace/.metadata. I downloaded [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_284" class="wp-caption alignleft" style="width: 249px"><a href="http://www.dingobytes.com/wp-content/uploads/2010/12/SVN-Connector-Error.png"><img src="http://www.dingobytes.com/wp-content/uploads/2010/12/SVN-Connector-Error-239x300.png" alt="SVN Connector Error" title="SVN Connector Error" width="239" height="300" class="size-medium wp-image-284" /></a><p class="wp-caption-text">SVN Connector Error</p></div>So I recently upgraded from Galileo to Helios and although I tried to use the upgrade instructions online, I had to many dependency issues and had to do a fresh install.</p>
<p>I decided to start from scratch and removed the eclipse folder, deleted all cached and preference data and wiped out the workspace/.metadata.</p>
<p>I downloaded the Eclipse IDE for Java Developers (because the Classic version does not have the new Eclipse Marketplace) and started to reinstall some of the most useful plugins.</p>
<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-8997834926895804";
/* Dingobytes Banner */
google_ad_slot = "5058465999";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>This is when I ran into the issue with the Subversive Connector. I went to Help > Install New Software and pulled up the &#8216;Helios &#8211; http://download.eclpse.org/releases/helios&#8217;. I opened up the Collaboration tree and scrolled down and chose the &#8216;Subversive SVN Team Provider&#8217; and installed it. After the install you will get a prompt to install the connector (your choice of SVNKit or JavaHL) with the Subversive Connector Discovery window. I chose the connectors I wanted, but when I tried to install, I got an error. The error &#8216;Cannot complete installation &#8211; Problems occurred while performing installation: Operation details&#8217;<div id="attachment_282" class="wp-caption alignright" style="width: 310px"><a href="http://www.dingobytes.com/wp-content/uploads/2010/12/Install-Window.png"><img src="http://www.dingobytes.com/wp-content/uploads/2010/12/Install-Window-300x260.png" alt="Install Window" title="Install Window" width="300" height="260" class="size-medium wp-image-282" /></a><p class="wp-caption-text">Install Window</p></div></p>
<p>I viewed the error log and was able to find there was a missing dependency. After searching the web using Google, I was able to find a solution.</p>
<p>In order to resolve this you need to enable a subversive repository. Go to Help > Install New Software and then click the &#8220;Available Software Sites&#8221; link. In the window, you will get a list of available software. Scrolldown the list and look for http://download.eclipse.org/technology/subversive/0.7/update-site/. Select it and then click the &#8216;Enable&#8217; button and the click &#8216;OK&#8217;.<div id="attachment_283" class="wp-caption alignright" style="width: 310px"><a href="http://www.dingobytes.com/wp-content/uploads/2010/12/Subversive-Update-Site.png"><img src="http://www.dingobytes.com/wp-content/uploads/2010/12/Subversive-Update-Site-300x188.png" alt="Subversive Update Site" title="Subversive Update Site" width="300" height="188" class="size-medium wp-image-283" /></a><p class="wp-caption-text">Subversive Update Site</p></div></p>
<p>Back on the install window, click into the &#8216;Work with:&#8217; field and either type in or select the http://download.eclipse.org/technology/subversive/0.7/update-site/. Here you will find a list of options for install. I unchecked any &#8216;Optional&#8217; choices and then installed (Next > Next > &#8216;I Accept&#8230;&#8217; > Finish).</p>
<p><div id="attachment_281" class="wp-caption alignleft" style="width: 246px"><a href="http://www.dingobytes.com/wp-content/uploads/2010/12/Clean-Connector-Install.png"><img src="http://www.dingobytes.com/wp-content/uploads/2010/12/Clean-Connector-Install-236x300.png" alt="Clean Connector Install" title="Clean Connector Install" width="236" height="300" class="size-medium wp-image-281" /></a><p class="wp-caption-text">Clean Connector Install</p></div>After the Eclipse IDE installs, choose &#8216;Restart Now&#8217;. For me the Subversive Connector Discovery window came right back up. If it doesn&#8217;t for you, try to create a new SVN Project. I chose my Subversive SVN connectors and clicked &#8216;Finish&#8217; and presto the installation continues without error.</p>
<p>I hope this is helpful to anyone with a fresh install.</p>
<p>Now </p>
]]></content:encoded>
			<wfw:commentRss>http://www.dingobytes.com/tutorial/subversion-install-for-eclipse-helios-3-6/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Five Star Rating WordPress Plugin</title>
		<link>http://www.dingobytes.com/wordpress/five-star-rating-wordpress-plugin</link>
		<comments>http://www.dingobytes.com/wordpress/five-star-rating-wordpress-plugin#comments</comments>
		<pubDate>Wed, 25 Aug 2010 17:10:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[contestant-rating]]></category>
		<category><![CDATA[Five Star Rating]]></category>
		<category><![CDATA[rate]]></category>
		<category><![CDATA[rating]]></category>
		<category><![CDATA[star]]></category>
		<category><![CDATA[stars]]></category>
		<category><![CDATA[vote]]></category>

		<guid isPermaLink="false">http://www.dingobytes.com/?p=135</guid>
		<description><![CDATA[Thanks to some helpful critics and tips from users, we have taken our very first plugin and retooled it to be more flexible and easier to implement into your posts and pages. If you used our previous plugin (Contestant Rating WordPress Plugin), you will be happy to learn that this new plugin is a great [...]]]></description>
			<content:encoded><![CDATA[<p class="not_info"><span class="img"></span>Two quick videos showing how to install, activate, configure and use this plugin are at the bottom.<span class="close"></span></p>
<p class="not_warning"><span class="img"></span>Please check out the <a href="http://www.dingobytes.com/fsr-faq" title="FAQ">FAQ</a> before you ask for support.<span class="close"></span></p>
<p><a href="http://www.dingobytes.com/wp-content/uploads/2010/08/five-star.jpg"><img src="http://www.dingobytes.com/wp-content/uploads/2010/08/five-star-300x225.jpg" alt="" title="Five Star Rating" width="300" height="225" class="alignleft size-medium wp-image-344" /></a>Thanks to some helpful critics and tips from users, we have taken our very first plugin and retooled it to be more flexible and easier to implement into your posts and pages.</p>
<p>If you used our previous plugin (<a title="Contestant Rating WordPress Plugin" href="http://www.dingobytes.com/wordpress/contestant-rating-wordpress-plugin" target="_blank">Contestant Rating WordPress Plugin</a>), you will be happy to learn that this new plugin is a great replacement.</p>
<ol>
<li>Use shortcode to display your  ratings. We have incorporated the use of shortcode into the plugin so you are no longer required to edit your template.<br />
<em> Because it was our first plugin, we did not have the vision to incorporate this in the first iterations. We have done our homework and thanks to the help of other great WordPress users, we have created methods to display the Five Star Rating plugin, &#8216;Best of the Month&#8217; and &#8216;Best of the Moment&#8217; using a simple shortcode.</em></li>
<li>You set the cookie.<br />
<em>We did two bad things with the cookie in the first plugin. First we hardcoded it and second we set the expiration for one year in the future. Of course this worked for us, but we realize now that you might have other uses for the plugin. Therefore we have added the ability for you to set your own cookie expiration for as little as 1 minute to 12 hour to 365 days (or more if you like).</em></li>
<li> Make it your own.<br />
We originally ported over an existing WordPress plugin and that plugin had more then one look. Unfortunately we did not have the vision to plan for using more then one look. Well not anymore! We have added the ability to theme this plugin as you see fit (more instructions on how to do this will follow). Currently there are two themes, but we have added the flexibility into the plugin to allow you to theme it as you like. It is as simple as adding an attribute to your short code&#8230;. like this:</p>
<p><code>&#91;five-star-rating star_type="abuse"&#93;</code></li>
<li>Help us keep improving.<br />
<em> If you run into an issue, would like to request a feature or just want to tell us what a great plugin this is, be sure to </em><a title="Five Star Rating Forum" href="http://wordpress.org/tags/five-star-rating?forum_id=10" target="_blank"><em>post a note to us</em></a><em>. Of course if you run into an issue, please don&#8217;t just say &#8216;It doesn&#8217;t work!&#8217; or &#8216;This plugin sucks&#8217; as 9 times out of 10 the plugin is working fine and as we intended, but the plugin is not being implemented correctly. We like criticism, but please make it constructive.</em></li>
</ol>
<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-8997834926895804";
/* Dingobytes Banner */
google_ad_slot = "5058465999";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Here is the plugin in action. Rate this post!</p>
<div class="FSR_container"><form id="FSR_form_135" action="http://www.dingobytes.com/wp-content/plugins/five-star-rating/fsr-ajax-stars.php" method="post" class="FSR_stars" onmouseout="FSR_star_out(this)"> <input type="radio" id="fsr_star_135_1" class="star" name="fsr_stars" value="1"/><label class="FSR_full_voting_star" for="fsr_star_135_1">1</label> <input type="radio" id="fsr_star_135_2" class="star" name="fsr_stars" value="2"/><label class="FSR_full_voting_star" for="fsr_star_135_2">2</label> <input type="radio" id="fsr_star_135_3" class="star" name="fsr_stars" value="3"/><label class="FSR_full_voting_star" for="fsr_star_135_3">3</label> <input type="radio" id="fsr_star_135_4" class="star" name="fsr_stars" value="4"/><label class="FSR_no_voting_star" for="fsr_star_135_4">4</label> <input type="radio" id="fsr_star_135_5" class="star" name="fsr_stars" value="5"/><label class="FSR_no_voting_star" for="fsr_star_135_5">5</label> <span class="FSR_votes">389</span> <span class="FSR_tvotes">votes</span><span class="FSR_tvote FSR_important"> Cast your vote now!</span><input type="hidden" name="p" value="135" /><input type="hidden" name="starType" value="star" /><input type="submit" name="vote" value="Voting" /></form><div class="fsr_credits">powered by <a href="http://wordpress-plug.in/featured/five-star-rating/" title="Five Star Rating">Five Star Rating</a></div></div>
<p>Here are some stats for the month.</p>
<ul class="FSR_month_scores"><li><a class="post_title" href="http://www.dingobytes.com/wordpress/five-star-rating-wordpress-plugin" title="Five Star Rating WordPress Plugin">Five Star Rating WordPress Plugin</a> <div class="FSR_container"><div class="FSR_stars"> <span class="FSR_full_star">*</span> <span class="FSR_full_star">*</span> <span class="FSR_full_star">*</span> <span class="FSR_full_star">*</span> <span class="FSR_no_star">&nbsp;</span> <span class="FSR_votes">1</span> <span class="FSR_tvotes">vote</span></div><div class="fsr_credits">powered by <a href="http://wordpress-plug.in/featured/five-star-rating/" title="Five Star Rating">Five Star Rating</a></span></div></div></li></ul>
<p>We have more work to do as far as documentation and such, but this was just so exciting, we had to get it out now. More will follow in the future.</p>
<p><a href="http://wordpress.org/extend/plugins/five-star-rating/" title="download the latest version">Download the latest version</a> now from wordpress.org</p>
<p>Installation option number one:<br />
httpvh://www.youtube.com/watch?v=yQD-3Gwy2og</p>
<p>Installation option number two:<br />
httpvh://www.youtube.com/watch?v=MBGhxegPm_M</p>
<p><object id="kaltura_player_1326839726" name="kaltura_player_1326839726" type="application/x-shockwave-flash" allowFullScreen="true" allowNetworking="all" allowScriptAccess="always" height="333" width="400" bgcolor="#000000" xmlns:dc="http://purl.org/dc/terms/" xmlns:media="http://search.yahoo.com/searchmonkey/media/" rel="media:video" resource="http://www.kaltura.com/index.php/kwidget/cache_st/1326839726/wid/_493382/uiconf_id/6817602/entry_id/0_72po794t" data="http://www.kaltura.com/index.php/kwidget/cache_st/1326839726/wid/_493382/uiconf_id/6817602/entry_id/0_72po794t"><param name="allowFullScreen" value="true" /><param name="allowNetworking" value="all" /><param name="allowScriptAccess" value="always" /><param name="bgcolor" value="#000000" /><param name="flashVars" value="&#038;" /><param name="movie" value="http://www.kaltura.com/index.php/kwidget/cache_st/1326839726/wid/_493382/uiconf_id/6817602/entry_id/0_72po794t" /><a href="http://corp.kaltura.com">video platform</a> <a href="http://corp.kaltura.com/video_platform/video_management">video management</a> <a href="http://corp.kaltura.com/solutions/video_solution">video solutions</a> <a href="http://corp.kaltura.com/video_platform/video_publishing">video player</a> <a rel="media:thumbnail" href="http://cdnbakmi.kaltura.com/p/493382/sp/49338200/thumbnail/entry_id/0_72po794t/width/120/height/90/bgcolor/000000/type/2"></a> <span property="dc:description" content="Here is an example showing that the plug in does work just fine in Chrome Browser. Before you decide the plug-in does not work, PLEASE READ THE FAQ for possible solutons."></span><span property="media:title" content="Chrome Test"></span> <span property="media:width" content="400"></span><span property="media:height" content="333"></span> <span property="media:type" content="application/x-shockwave-flash"></span> </object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dingobytes.com/wordpress/five-star-rating-wordpress-plugin/feed</wfw:commentRss>
		<slash:comments>97</slash:comments>
		</item>
		<item>
		<title>Disable submit with multiple forms present</title>
		<link>http://www.dingobytes.com/jquery/disable-submit-with-multiple-forms-present</link>
		<comments>http://www.dingobytes.com/jquery/disable-submit-with-multiple-forms-present#comments</comments>
		<pubDate>Mon, 02 Aug 2010 19:05:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[disabled]]></category>
		<category><![CDATA[multiple forms]]></category>
		<category><![CDATA[submit]]></category>
		<category><![CDATA[submit button]]></category>

		<guid isPermaLink="false">http://www.dingobytes.com/?p=131</guid>
		<description><![CDATA[A few minutes later I find myself scrambling through Google searches and trying different bits of code, none of which was working for me. The task was only suppose to last a few minutes and now I find myself having spent a few hours trying to figure this out. Time for a lunch break.]]></description>
			<content:encoded><![CDATA[<p>I recently ran across a situation in which I needed to disable a submit button after it was clicked to avoid duplicate submits of the form. This in itself seemed a pretty simple task to do with jQuery.</p>
<p>I soon learned that the task would be more difficult then I had anticipated. I started the task by using something similar to this.</p>
<p>
<pre class="brush: jscript; title: ; notranslate">jQuery(document).ready( function() {&lt;br /&gt;
    jQuery('form').submit(function(){&lt;br /&gt;
        // On submit disable its submit button&lt;br /&gt;
        jQuery('input:submit', this).attr('disabled', 'disabled');&lt;br /&gt;
    });&lt;br /&gt;
});</pre>
</p>
<p>I tested and thought all would be good, only it was not. After some double checking of my spelling, I decided to just output the value of the &#8216;input:submit&#8217;. I was surprised to see that it was returning &#8216;undefined&#8217; as the value.</p>
<p>A few minutes later I find myself scrambling through Google searches and trying different bits of code, none of which was working for me. The task was only suppose to last a few minutes and now I find myself having spent a few hours trying to figure this out. Time for a lunch break.</p>
<p>While on break I decided, how about just figure this out on your own instead of trying to hack someone other developers code. Off to jQuery documentation I went and the first thing I was reminded of was that .each() returns an index. Assuming all of my forms have some type of element with type=submit, I can use this.</p>
<p>The first step was to loop through each form element on page load:</p>
<pre class="brush: jscript; title: ; notranslate">jQuery('form').each(function(formIndex) {});</pre>
</p>
<p>Now inside of that each loop, lets add some logic:</p>
<pre class="brush: jscript; title: ; notranslate">jQuery(this).submit(function() {&lt;br /&gt;
    jQuery('input:submit').eq(formIndex).attr('disabled', 'disabled');&lt;br /&gt;
});</pre>
</p>
<p>This did the trick. I was now able to disable just the one form. Now if I was using this on AJAX script I would just add a return false. Here is the entire code, assuming we are making this an AJAX call.</p>
<p>
<pre class="brush: jscript; title: ; notranslate">jQuery(document).ready(function() {&lt;br /&gt;
	//Disable all form submit button on click?&lt;br /&gt;
	jQuery('form').each(function(formIndex) {&lt;br /&gt;
		jQuery(this).submit(function() {&lt;br /&gt;
			jQuery('input:submit').eq(formIndex).attr('disabled', 'disabled');&lt;br /&gt;
			return false;&lt;br /&gt;
		});&lt;br /&gt;
	});&lt;br /&gt;
});</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dingobytes.com/jquery/disable-submit-with-multiple-forms-present/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replacing text in multiple files</title>
		<link>http://www.dingobytes.com/tutorial/replacing-text-in-multiple-files</link>
		<comments>http://www.dingobytes.com/tutorial/replacing-text-in-multiple-files#comments</comments>
		<pubDate>Wed, 12 May 2010 16:02:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[multiple files]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://www.dingobytes.com/?p=120</guid>
		<description><![CDATA[Unfortunately during testing I have had some typo's and the generated report stored in the directory structure did not display as intended. The changes needed really didn't warrant processing the script again and adding more useless entries into the database, so I decided to change the script and then update the html in the report.]]></description>
			<content:encoded><![CDATA[<p>Recently I took a new job and it involves a lot of report generating. This has been a great fit for me and I have enjoyed the short time here in St Paul, MN.</p>
<p>The process for the current project is to pull a *.csv file from an email account, parse it into a database query/queries, generate html code and then store the html in a directory structure while also storing the report information in the database.</p>
<p><span id="more-120"></span></p>
<p>Unfortunately during testing I have had some typo&#8217;s and the generated report stored in the directory structure did not display as intended. The changes needed really didn&#8217;t warrant processing the script again and adding more useless entries into the database, so I decided to change the script and then update the html in the report.</p>
<p>Having over 100 reports generated, I needed a simple script to do this. I had done this with bash before, but I thought there had to be an easier way then looping through a for statement, saving the changes to a new file and then moving the new file to replace the old.</p>
<p>In comes Perl. Looking through some posts, I found that you can edit text in the file with Perl. The command goes something like this:</p>
<pre class="brush: perl; title: ; notranslate">perl -pi -w -e 's/search/replace/g;' *.html</pre>
<p>Here is a further explanation of what is going on. </p>
<p>-p assume loop (like -n) but print line also, like sed<br />
-i edit <> files in place (makes backup if extension supplied)<br />
-w enable many useful warnings (RECOMMENDED)<br />
-e execute the follwing line of code</p>
<p>The code referred to after the -e is just a search and replace regular expression. </p>
<p>The &#8216;s/&#8217; means to search and start your regular expression to search for. </p>
<p>You then enter your expression that you want to search for. You need to make sure you escape out special characters with the back-slash [\]. The forward slash is used to separate what you are searching for and what you want to replace. The replace section is an expression as well and you need to treat special characters the same way.</p>
<p>Finally you have the last forward slash indicates the end of your replace expression and the &#8216;g&#8217; indicates global.</p>
<p>Here is an example of how I would change the directory used for images from &#8216;/image/&#8217; to &#8216;images/&#8217; for all the files in a directory with the extension of .html.</p>
<pre class="brush: plain; title: ; notranslate">perl -pi -w -e 's/\/image\//images\//g;' *.html</pre>
<p>That is how you do it. If you have to go through multiple directories, you could use a bash or perl command to loop through those directories. Hope it didn&#8217;t confuse you too much.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dingobytes.com/tutorial/replacing-text-in-multiple-files/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Contestant Rating WordPress Plugin</title>
		<link>http://www.dingobytes.com/wordpress/contestant-rating-wordpress-plugin</link>
		<comments>http://www.dingobytes.com/wordpress/contestant-rating-wordpress-plugin#comments</comments>
		<pubDate>Wed, 17 Mar 2010 05:55:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[contestant-rating]]></category>
		<category><![CDATA[post-star-rating]]></category>

		<guid isPermaLink="false">http://www.dingobytes.com/?p=108</guid>
		<description><![CDATA[This is our first wordpress plugin and although we did not write this from scratch (we ported over a previous plugin that only worked in FireFox), we did improve upon a previous product and made it our own.]]></description>
			<content:encoded><![CDATA[<p><p class="not_error"><span class="img"></span>This plugin is no longer being developed.<span class="close"></span></p><br />
This information is for archive purposes only. We have replaced this plugin with an improved version called <a title="Five Star Rating WordPress Plugin" href="http://wordpress.org/extend/plugins/five-star-rating/" target="_blank">Five Star Rating which can be found here</a>.</p>
<p>This is our first wordpress plugin and although we did not write this from scratch (we ported over a previous plugin that only worked in FireFox), we did improve upon a previous product and made it our own.<span id="more-108"></span></p>
<p>The plugin requires jQuery and if it is not included, it should load it for you. The most recent version is 0.4.</p>
<p><a href="http://wordpress.org/extend/plugins/contestant-rating/" target="_blank">Download contestant-rating ver. 0.4[25 KB zip]</a></p>
<p>The original upload had the wrong /js/ files in it, so have updated the download here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dingobytes.com/wordpress/contestant-rating-wordpress-plugin/feed</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Funny E*Trade commercial</title>
		<link>http://www.dingobytes.com/humor/funny-etrade-commercial</link>
		<comments>http://www.dingobytes.com/humor/funny-etrade-commercial#comments</comments>
		<pubDate>Sat, 06 Feb 2010 19:12:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[baby]]></category>
		<category><![CDATA[commercial]]></category>
		<category><![CDATA[contestant-rating]]></category>
		<category><![CDATA[E*Trade]]></category>

		<guid isPermaLink="false">http://www.dingobytes.com/?p=103</guid>
		<description><![CDATA[Just too funny!]]></description>
			<content:encoded><![CDATA[<p>Just too funny!</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/uHPg262Kr9c&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;hl=en_US&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/uHPg262Kr9c&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;hl=en_US&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dingobytes.com/humor/funny-etrade-commercial/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.dingobytes.com @ 2012-05-20 11:03:09 -->
