<?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>E-com DevBlog &#187; Uncategorized</title>
	<atom:link href="http://dev.tonic1394.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.tonic1394.com</link>
	<description>Spider-ball-vacuum</description>
	<lastBuildDate>Wed, 01 Feb 2012 14:42:58 +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>New Year, New Post</title>
		<link>http://dev.tonic1394.com/2012/01/new-year-new-post/</link>
		<comments>http://dev.tonic1394.com/2012/01/new-year-new-post/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 04:52:42 +0000</pubDate>
		<dc:creator>Phil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.tonic1394.com/?p=645</guid>
		<description><![CDATA[I'd like to say that I have an excuse for not posting in months, and I do . Unfortunately, I can't announce it for another two months, but it's fairly huge, and something that anyone in mobile development will be more than excited for. Now that you are excited and can't wait for me to [...]]]></description>
			<content:encoded><![CDATA[<p>I'd like to say that I have an excuse for not posting in months, and I do <img src='http://dev.tonic1394.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Unfortunately, I can't announce it for another two months, but it's fairly huge, and something that anyone in mobile development will be more than excited for.<br />
Now that you are excited and can't wait for me to spill the beans, I will distract you with links to some incredibly cool things that you should know about a la LinkPost style (yeah, I'm a little cruel sometimes).</p>
<p>Google I/O 2012 is in JUNE and it's THREE DAYS! June 27-29th 2012 - Check <a title="I will everything in my power to attend this year... everything." href="http://googlecode.blogspot.com/2011/10/save-date-for-google-io-2012.html" target="_blank">the official blog post</a> for details.</p>
<p>Using CSS3 to animate web banners (annoying yes, but the geek factor is off the grid!... yeah, bad and wicked late tron joke) - Check out <a title="CSS3 is sooo freaking hot! I loves it!" href="http://tympanus.net/codrops/2012/01/10/animated-web-banners-with-css3/" target="_blank">this page</a> and learn about it.</p>
<p><a title="Antidote is my new favorite song, but that's not on the EP, also the remix of &quot;Save the world&quot; is amazing." href="http://www.knifeparty.com/" target="_blank">Knifeparty</a> is ridiculously awesome if you likes the dub(ub-wub-wuuuuub-wub-ub-ubuwub)step! They released a free EP called 100% No Modern Talking which can be yours by visiting their website and giving them an email to spam (that requires no validation...).  There is some language on "Internet Friends", but to each their own.  In case you wondered, Knifeparty is two members of the freakishly awesome band pendulum, so you know they are good.</p>
<p><a title="Amazazing... Talent, Raw floppy talent... wait that came out wrong." href="http://www.youtube.com/watch?feature=player_embedded&amp;v=1plg_yYsCQM#!" target="_blank">Derezzed on floppy drives</a>... Man why did we kill these things? analog tech has such a good sound!</p>
<p>A <a title="WRD is a great site, check out his twitter, the man is a web saint" href="http://www.webresourcesdepot.com/css3-powered-presentation-framework-impress-js/" target="_blank">post from WebResourcesDepot</a> on the CSS3 presentation machine named impress.js, I love the trade-shows lately that give their presentations inside of a browser.  Just makes powerpoint look as dated as it is.  Amazing work, check it out.</p>
<p>Now that I work on a mac I have learned that life without XAMPP sucks.  MAMP is workable, but I have an aversion to forking out money to access the apache server that is built into OSX.  Luckily there is a much cooler alternative that isn't nagware and that will help you auto-install tons of webapps (including joomla and wordpress).  <a title="AMPPS does for mac what used to require excessive amounts of cursing and screwing things up..." href="http://www.ampps.com/" target="_blank">Check out AMPPS</a>, easy, free, and works on linux, mac, and windows. <strong>Good News! @blender has pointed out in the comments that XAMPP is totally mac ready and available, <a title="BOOM! Headshot!" href="http://www.apachefriends.org/en/xampp-macosx.html">check it out</a> and live life happy again!</strong></p>
<p>I hate to glom onto other talent, but another post from webresourcesdepot is right up there on the awesome charts.  Everything you need for node.js (my new favorite scripty server language).  Go to <a title="Didn't I already tell you that it was a great site? Leave my site open, but dang it go to his and get educated already!" href="http://www.webresourcesdepot.com/the-awesome-node-js-and-its-gang/" target="_blank">his node.js post</a>, revel in his links, built something useless, then something cool, and then something useful <img src='http://dev.tonic1394.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>That's all for now, but there are plenty more.  Over at CSS-Tricks Chris has started a new podcast called ShopTalk, and they have already interviewed the Johnathon Snook (if you don't know of Mr. Snooks work, you need to leave right now and Google it.  I don't even mind, I give you my permission, go, go now and do it!).  Head <a title="Chris I know you can read this.... and that freaks me out a little... well I mean.. no, yeah it does. a little" href="http://shoptalkshow.com/episodes/001-first-episode-w-jonathan-snook/" target="_blank">over to the podcast</a> and listen to it, remember they take questions and answer them so if you are stumped, give it a go and see if your question can get solved by some truly great minds on the web.</p>
<p>Lastly, HAPPY BIRTHDAY/ANNIVERSARY E-COM DEVBLOG!  That's right, this makes year number 4 of me and my crew wrecking the internet and putting it back together the way it was meant to be with tips, links, tutorials, and the occasional waste of time.  It's been a great four years and I hope that we can keep the magic going for another four.  Hang out because I have a feeling that this year is going to be one of the best years the internet has ever seen.  And don't worry about that Mayan 2012 thing, I heard it straight from the aliens that abducted Elvis to make him their ruler, it's a total hoax <img src='http://dev.tonic1394.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://dev.tonic1394.com/2012/01/new-year-new-post/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Google I/O 2011</title>
		<link>http://dev.tonic1394.com/2011/05/google-io-2011/</link>
		<comments>http://dev.tonic1394.com/2011/05/google-io-2011/#comments</comments>
		<pubDate>Thu, 05 May 2011 12:29:21 +0000</pubDate>
		<dc:creator>Phil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.tonic1394.com/?p=605</guid>
		<description><![CDATA[This post is mostly an announcement, but I thought I'd take a minute and share with everyone that Google is doing something great this year. Rather just have a few sessions recorded and a few slides to share a week or two after the Google I/O show this year, they will be offering some of [...]]]></description>
			<content:encoded><![CDATA[<p>This post is mostly an announcement, but I thought I'd take a minute and share with everyone that Google is doing something great this year. Rather just have a few sessions recorded and a few slides to share a week or two after the <a title="The show, the event, the legacy, the dream" href="http://www.google.com/io" target="_blank">Google I/O</a> show this year, they will be offering some of the sessions live. Click the badge below to learn more, and on May 10th and 11th use it to watch the show!</p>
<p><script src="http://www.google.com/events/io/2011/static/js/iobadge.js" type="text/javascript"></script></p>
<p>This means you get to watch the show even if you were not able to come to the event. To see what sessions will streamed live<a title="knowledge and awesomeness for everyone! " href="http://www.google.com/events/io/2011/sessions.html" target="_blank"> check out the session schedule</a> and look for the LIVESTREAMED text and video icon. Some entertainment will also be streamed (Jane's Addiction performance anyone?)</p>
<p>If  you are going to the show and want to meet up, feel free to find me <img src='http://dev.tonic1394.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . During lunch there is a high probability that I will be in the <a title="Come and see NordicTrack using iFit Live powered by Google Maps" href="http://www.google.com/events/io/2011/sandbox.html" target="_blank">developers sandbox</a> at the iFit Live booth.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.tonic1394.com/2011/05/google-io-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Few Tips on Avoiding Online Scams</title>
		<link>http://dev.tonic1394.com/2011/03/a-few-tips-on-avoiding-online-scams/</link>
		<comments>http://dev.tonic1394.com/2011/03/a-few-tips-on-avoiding-online-scams/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 03:14:00 +0000</pubDate>
		<dc:creator>Stretch</dc:creator>
				<category><![CDATA[Off-Topic]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Online Scams]]></category>
		<category><![CDATA[Phishing]]></category>

		<guid isPermaLink="false">http://dev.tonic1394.com/?p=594</guid>
		<description><![CDATA[This may be a little out of the norm for the dev blog but I think it's worth mentioning. I got a call from a cousin of mine today asking me about a work from home website she was considering. She wanted me to look into it for her, so she emailed me the link. [...]]]></description>
			<content:encoded><![CDATA[<p>This may be a little out of the norm for the dev blog but I think it's worth mentioning.</p>
<p>I got a call from a cousin of mine today asking me about a work from home website she was considering. She wanted me to look into it for her, so she emailed me the link. When I clicked on the link my browser couldn't find the url. I tried again, nothing. Again only this time I removed all query strings and went to just the home link of the url...still nothing. So I waited an hour or so, only to come back and get nothing. The following is my email response to my cousin.</p>
<blockquote><p>
I still can't get a page to load from this link, and googles link doesn't work either. That makes me a little nervous about this one, it's not uncommon to have a website up to take credit card transactions and then down a day or two later like it never existed. Only instead of $98 they got away with your credit card info. A few things to look for when paying online:</p>
<p>1) is the site secure? you can tell this by looking for an https in the address bar of the browser (i.e. https://www.site.com) the 's' is the important part, it literally means secure. But just because the 's' is there doesn't mean it's really secure. look for a padlock type image in the bottom right corner of your browser or sometimes it appears in the url bar as well (I think Internet Explorer puts it in the bottom right corner but I could be wrong) if the lock is unlocked or broken your connection is not secure. DO NOT process an account transaction over an unsecured line even if you trust the company. The reason is your information is sent over the internet in plain text and vulnerable to any sniffer out there. A secure line will encrypt your data and decrypt it when it arrives at it's destination.</p>
<p>2) Only shop at well known trusted sites. if you are not familiar with a particular site it's a good idea to Google it, check <a href="http://www.bbb.com">bbb.com</a> for info on them and if your gut tells you "bad idea" follow it.</p>
<p>3) Never respond to Phishing emails, these are emails designed to get you to give up personal information. An example is something from a bank maybe you have an account and maybe you don't but they'll ask you to verify your account number via email. NEVER communicate with any financial institution through email if you are sending sensitive data. If you get this type of email from an institution you have a relationship with, call them first using a number from their website (Google it) or on your checkbook or credit card.</p>
<p>When it comes to work at home jobs I'm not really an expert but I do know there are a lot of scams out there. Some are just after $100 a person and there are a lot of people who will risk that, but more than likely if this site isn't up again by tomorrow (and my bet is it won't be) they were trying to harvest credit card numbers. Generally speaking, if it's something as easy as copy and paste links, or stuffing envelopes, or comes with a guarantee or promises instant wealth it's a scam. A monkey can be taught to copy and paste, and nobody can guarantee a job, even the top colleges don't claim that.</p>
<p>As far as certifications go, there are a lot out there, the best approach would be to do some research on the certification, is it legitimate? Is there a market for it? Most Certifications are printed on an 8x11 piece of card-stock paper, anyone can fake one on almost any printer, they might even have you print it yourself (which tells me they don't take their own certification seriously).
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://dev.tonic1394.com/2011/03/a-few-tips-on-avoiding-online-scams/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site changes</title>
		<link>http://dev.tonic1394.com/2010/05/site-changes/</link>
		<comments>http://dev.tonic1394.com/2010/05/site-changes/#comments</comments>
		<pubDate>Mon, 10 May 2010 13:12:04 +0000</pubDate>
		<dc:creator>Phil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.tonic1394.com/?p=447</guid>
		<description><![CDATA[A quick note, I've been playing with themes lately (I keep telling myself that I'm going to actually code one, but it never happens) so keep that in mind if the site keeps changing on you. I'm just trying to find a style that is pleasing to the eye, and works well for most visitors.]]></description>
			<content:encoded><![CDATA[<p>A quick note, I've been playing with themes lately (I keep telling myself that I'm going to actually code one, but it never happens) so keep that in mind if the site keeps changing on you.  I'm just trying to find a style that is pleasing to the eye, and works well for most visitors.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.tonic1394.com/2010/05/site-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuration is frozen</title>
		<link>http://dev.tonic1394.com/2010/04/configuration-is-frozen/</link>
		<comments>http://dev.tonic1394.com/2010/04/configuration-is-frozen/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 16:39:34 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[struts]]></category>

		<guid isPermaLink="false">http://dev.tonic1394.com/?p=434</guid>
		<description><![CDATA[While in your Java development journey, if you find yourself getting an Error 500 NullPointerException and your console shows "IllegalStateException: Configuration is frozen", you could be the victim of what I experienced this week. I wanted my forwarding to actually redirect to a new action so that the decorator would be applied to the new [...]]]></description>
			<content:encoded><![CDATA[<p>While in your Java development journey, if you find yourself getting an Error 500 NullPointerException and your console shows "IllegalStateException: Configuration is frozen", you could be the victim of what I experienced this week.</p>
<p>I wanted my forwarding to actually redirect to a new action so that the decorator would be applied to the new action instead of the current one, so I tried this approach:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p434code3'); return false;">View Code</a> JAVA</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4343"><td class="code" id="p434code3"><pre class="java" style="font-family:monospace;">forward <span style="color: #339933;">=</span> mapping.<span style="color: #006633;">findForward</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;blahblah&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
forward.<span style="color: #006633;">setRedirect</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>This doesn't work.  The reason is because the forward that you are using is defined in the struts config file, so you are attempting to modify an existing forward. This is not what you want to do because it will affect ALL future uses of that forward, hence the error. Here is the correct way to accomplish this:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p434code4'); return false;">View Code</a> JAVA</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4344"><td class="code" id="p434code4"><pre class="java" style="font-family:monospace;">forward <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ActionForward<span style="color: #009900;">&#40;</span>mapping.<span style="color: #006633;">findForward</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;blahblah&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
forward.<span style="color: #006633;">setRedirect</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>UPDATE: An astute reader pointed out that this is probably only an issue if you haven't set redirect="true" in your struts config, and that you should always set redirect to true if you are forwarding to another action anyway.  Good catch Casey!</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.tonic1394.com/2010/04/configuration-is-frozen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Random Color Changer</title>
		<link>http://dev.tonic1394.com/2010/04/413/</link>
		<comments>http://dev.tonic1394.com/2010/04/413/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 22:51:25 +0000</pubDate>
		<dc:creator>Stretch</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[color change]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://dev.tonic1394.com/?p=413</guid>
		<description><![CDATA[So I had a lot of time on my hands today, and we were trying to figure out a good color palette for one of our customer service portals. Since I'm not in the least bit a designer we decided to wait for one of the Graphic Designers to take a stab at it, only [...]]]></description>
			<content:encoded><![CDATA[<p>So I had a lot of time on my hands today, and we were trying to figure out a good color palette for one of our customer service portals. Since I'm not in the least bit a designer we decided to wait for one of the Graphic Designers to take a stab at it, only problem with that is they were out to lunch. So someone gave me the idea to play around with the colors and make them change from time to time. I wasn't feeling particularly ambitious so I scoured the internet for a good jquery solution to randomly select colors and change background colors based on those that were randomly generated.</p>
<p>below is what I came up with:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p413code6'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4136"><td class="code" id="p413code6"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">/* -- jQuery Colourific */</span>
<span style="color: #009966; font-style: italic;">/* -- v 1.0 - January 2008 */</span>
<span style="color: #006600; font-style: italic;">/* -- by ben watts (http://www.benwatts.ca/sandbox/jquery-colourific/) */</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//$(document).ready</span>
$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	setupColourific<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// setupColourific</span>
<span style="color: #003366; font-weight: bold;">function</span> setupColourific<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> elements <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	elements<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;td.Upload&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// the element that's changing</span>
	elements<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;td.Notes&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	elements<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;td.LoanTitle&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	elements<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;td.hdr&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	elements<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;body#body&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> elements.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		changeColour<span style="color: #009900;">&#40;</span>elements<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	window.<span style="color: #660066;">setInterval</span><span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>changeColour<span style="color: #009900;">&#40;</span>elements<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	window.<span style="color: #660066;">setInterval</span><span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>changeColour<span style="color: #009900;">&#40;</span>elements<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">1500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	window.<span style="color: #660066;">setInterval</span><span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>changeColour<span style="color: #009900;">&#40;</span>elements<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">2000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	window.<span style="color: #660066;">setInterval</span><span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>changeColour<span style="color: #009900;">&#40;</span>elements<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">2500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	window.<span style="color: #660066;">setInterval</span><span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>changeColour<span style="color: #009900;">&#40;</span>elements<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">3000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// changeColour</span>
<span style="color: #003366; font-weight: bold;">function</span> changeColour<span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">// random values between 0 and 255, these are the 3 colour values</span>
	<span style="color: #003366; font-weight: bold;">var</span> r <span style="color: #339933;">=</span> Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #CC0000;">256</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> g <span style="color: #339933;">=</span> Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #CC0000;">256</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> b <span style="color: #339933;">=</span> Math.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>Math.<span style="color: #660066;">random</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #CC0000;">256</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">// puts the hex value inside this element (e is a jquery object)</span>
	<span style="color: #006600; font-style: italic;">//e.text(getHex(r,g,b)); </span>
&nbsp;
	<span style="color: #006600; font-style: italic;">// change the text colour of this element</span>
	e.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;background-color&quot;</span><span style="color: #339933;">,</span> getHex<span style="color: #009900;">&#40;</span>r<span style="color: #339933;">,</span>g<span style="color: #339933;">,</span>b<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// intToHex()</span>
<span style="color: #003366; font-weight: bold;">function</span> intToHex<span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	n <span style="color: #339933;">=</span> n.<span style="color: #660066;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">16</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #006600; font-style: italic;">// eg: #0099ff. without this check, it would output #099ff</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> n.<span style="color: #660066;">length</span> <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">2</span><span style="color: #009900;">&#41;</span>
		n <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;0&quot;</span><span style="color: #339933;">+</span>n<span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">return</span> n<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// getHex()</span>
<span style="color: #006600; font-style: italic;">// shorter code for outputing the whole hex value</span>
<span style="color: #003366; font-weight: bold;">function</span> getHex<span style="color: #009900;">&#40;</span>r<span style="color: #339933;">,</span> g<span style="color: #339933;">,</span> b<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #3366CC;">'#'</span><span style="color: #339933;">+</span>intToHex<span style="color: #009900;">&#40;</span>r<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>intToHex<span style="color: #009900;">&#40;</span>g<span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>intToHex<span style="color: #009900;">&#40;</span>b<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Obviously you'll need to change the selectors to something relevant for your purposes. It's probably not something you want to use on a regular basis but would make a great april fools day joke, or if you feel like a ceasure go ahead and mess with the time interval.</p>
<p>I can't take full credit for this script, the original can be found at <a href="http://www.benwatts.ca/sandbox/jquery-colourific/">This site</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dev.tonic1394.com/2010/04/413/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Handy PHP trick I learned today.</title>
		<link>http://dev.tonic1394.com/2010/02/handy-php-trick-i-learned-today/</link>
		<comments>http://dev.tonic1394.com/2010/02/handy-php-trick-i-learned-today/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 23:38:14 +0000</pubDate>
		<dc:creator>Stretch</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[debug]]></category>

		<guid isPermaLink="false">http://dev.tonic1394.com/?p=404</guid>
		<description><![CDATA[Nice to see the Dev blog is still here, and that I can remember my login. Here is a useful debugging trick I learned for PHP, hopefully it's not in one of Phil's link posts. echo '&#60;pre&#62;'.print_r($app,true).'&#60;/pre&#62;'; this bad boy will give you all of the values of an array, variable etc. more to come [...]]]></description>
			<content:encoded><![CDATA[<p>Nice to see the Dev blog is still here, and that I can remember my login. Here is a useful debugging trick I learned for PHP, hopefully it's not in one of Phil's link posts.<br />
<code><br />
echo '&lt;pre&gt;'.print_r($app,true).'&lt;/pre&gt;';<br />
</code><br />
this bad boy will give you all of the values of an array, variable etc.</p>
<p>more to come soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.tonic1394.com/2010/02/handy-php-trick-i-learned-today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy New Year &#8211; We&#8217;re two years old!</title>
		<link>http://dev.tonic1394.com/2010/01/happy-new-year-were-two-years-old/</link>
		<comments>http://dev.tonic1394.com/2010/01/happy-new-year-were-two-years-old/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 19:02:08 +0000</pubDate>
		<dc:creator>Phil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.tonic1394.com/?p=387</guid>
		<description><![CDATA[Hard to believe, but the E-com DevBlog is now over two years old.  Time sure has flown and we are now reaching out to developers all over the globe.  I started this blog with one of my co-workers so we could keep track of what we learned and hopefully pass it on to others.  It [...]]]></description>
			<content:encoded><![CDATA[<p>Hard to believe, but the E-com DevBlog is now over two years old.  Time sure has flown and we are now reaching out to developers all over the globe.  I started this blog with one of my co-workers so we could keep track of what we learned and hopefully pass it on to others.  It has slowly evolved into a little bit of knowledge passing, and a monthly/bi-monthly/quarterly posting of useful weblinks (yes I know I haven't posted Novembers LinkPost, or the December one.. it's coming! I promise!).</p>
<p>In the spirit of keeping new useful things coming, and in the hope of a great year, I have completed an Adobe Air app called "VidCalc".  Basically it's a tool to help you figure out video ratios (so you don't skew them when you try to resize), the file size of a constant bitrate encoded movie, and how long it will take to send a file down the pipe. I could explain it in greater detail, but <a href="http://labs.dutsonpa.com/projects/vidcalc/index.html" target="_blank" title="VidCalc - a video calculator">you should probably go check out the project page to find out for yourself</a>.</p>
<p>Have a great new year!</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.tonic1394.com/2010/01/happy-new-year-were-two-years-old/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Testing with FlashSwitcher</title>
		<link>http://dev.tonic1394.com/2009/12/flash-testing-with-flashswitcher/</link>
		<comments>http://dev.tonic1394.com/2009/12/flash-testing-with-flashswitcher/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 16:56:43 +0000</pubDate>
		<dc:creator>Phil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.tonic1394.com/?p=381</guid>
		<description><![CDATA[While working on launching a new site I suddenly realized that I didn't have a vm or extra compy around without flash installed. Yes I could have just changed the swfobject params to a higher version of flash to see what my error message would look like, but I was wondering if there were any [...]]]></description>
			<content:encoded><![CDATA[<p>While working on launching a new site I suddenly realized that I didn't have a vm or extra compy around without flash installed. Yes I could have just changed the swfobject params to a higher version of flash to see what my error message would look like, but I was wondering if there were any good plugins or 'quick-fix' tools to use for testing various versions of flash on a page.  That's how I stumbled onto <a href="http://www.sephiroth.it/weblog/archives/2006/10/flash_switcher_for_firefox.php">Sephiroth's FlashSwitcher plugin for firefox</a>.</p>
<div id="attachment_383" class="wp-caption aligncenter" style="width: 152px"><img class="size-full wp-image-383" title="flash_switcher_tray" src="http://dev.tonic1394.com/wp-content/uploads/2009/12/flash_switcher_tray.jpg" alt="Flash Switcher in Firefox Tray" width="142" height="21" /><p class="wp-caption-text">Flash Switcher in Firefox Tray  - (with my other tools <img src='http://dev.tonic1394.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</p></div>
<p>The plugin  is fairly huge (14mb) but it makes sense as he's cramming 3 version of flash for 3 different operating systems in it.  What it does is puts a little flash logo in the bottom right of your window. When left-clicked it shows you other versions of flash that you can test with (9.0 r124, 8.0 r24, or 7.0 r63).  If you click on one, it will remove the currently installed version of flash and install the one you clicked on.  IMPORTANT! before you click on one of the flash versions in the menu, use the sub-menu to "Save as..." your current version or it will be removed and you'll have to go download it and install it again.  Once you've "Saved as..." it will keep your current version and list it with the others.</p>
<div id="attachment_384" class="wp-caption aligncenter" style="width: 299px"><img class="size-full wp-image-384" title="flash_switcher_menu" src="http://dev.tonic1394.com/wp-content/uploads/2009/12/flash_switcher_menu1.jpg" alt="Flash Switcher with sub-menu active" width="289" height="167" /><p class="wp-caption-text">Flash Switcher with sub-menu active</p></div>
<p>Hopefully this will be useful to those of you playing with various versions of flash, or if you want to do a test for users without flash (just click remove to uninstall flash from your browser).</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.tonic1394.com/2009/12/flash-testing-with-flashswitcher/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uploading Files in an Apache Axis Webservice</title>
		<link>http://dev.tonic1394.com/2009/10/uploading-files-in-an-apache-axis-webservice/</link>
		<comments>http://dev.tonic1394.com/2009/10/uploading-files-in-an-apache-axis-webservice/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 15:01:15 +0000</pubDate>
		<dc:creator>Brett the Younger</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dev.tonic1394.com/?p=366</guid>
		<description><![CDATA[Being somewhat new to the Apache Axis webservice world, I've been looking for a solution on how to upload a file via the webservice. I found some MIME and DIME formats and there was even some cool looking technologies about MTOM (see here). In the end the simple answer I found, on the same page [...]]]></description>
			<content:encoded><![CDATA[<p>Being somewhat new to the Apache Axis webservice world, I've been looking for a solution on how to upload a file via the webservice.  I found some MIME and DIME formats and there was even some cool looking technologies about MTOM (<a href="http://ws.apache.org/axis2/0_94/mtom-guide.html">see here</a>).</p>
<p>In the end the simple answer I found, on the same page linked to above, was to encode the file as a Base64 string and put it in the request like a normal string.  Then on the service side it is simply decoded.  </p>
<p>For example:<br />
On the client side:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p366code9'); return false;">View Code</a> JAVA</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3669"><td class="code" id="p366code9"><pre class="java" style="font-family:monospace;"><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> base64Encoding <span style="color: #339933;">=</span> Base64.<span style="color: #006633;">encode</span><span style="color: #009900;">&#40;</span>byteArrayFromFile<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
.
.
.
<span style="color: #666666; font-style: italic;">//In the XML request</span>
.<span style="color: #006633;">append</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;ns1:encodedFile&gt;&quot;</span><span style="color: #009900;">&#41;</span>
    .<span style="color: #006633;">append</span><span style="color: #009900;">&#40;</span>base64Encoding<span style="color: #009900;">&#41;</span>
.<span style="color: #006633;">append</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;/ns1:encodedFile&gt;&quot;</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>And then in the service:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p366code10'); return false;">View Code</a> JAVA</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p36610"><td class="code" id="p366code10"><pre class="java" style="font-family:monospace;"><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Astring+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> base64String <span style="color: #339933;">=</span> request.<span style="color: #006633;">getEncodedFile</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> byteArray <span style="color: #339933;">=</span> Base64.<span style="color: #006633;">decode</span><span style="color: #009900;">&#40;</span>base64String<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>And then with the byteArray you can save it or do whatever you need. </p>
]]></content:encoded>
			<wfw:commentRss>http://dev.tonic1394.com/2009/10/uploading-files-in-an-apache-axis-webservice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.211 seconds -->

