<?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>Kenneth Ham &#187; Fun</title>
	<atom:link href="http://www.kennethham.com/wp/category/fun/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kennethham.com/wp</link>
	<description></description>
	<lastBuildDate>Mon, 23 Jan 2012 15:55:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Glossy Gradient XAML Generator</title>
		<link>http://www.kennethham.com/wp/2010/11/glossy-gradient-xaml-generator/</link>
		<comments>http://www.kennethham.com/wp/2010/11/glossy-gradient-xaml-generator/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 22:43:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">http://www.kennethham.com/wp/2010/11/glossy-gradient-xaml-generator/</guid>
		<description><![CDATA[In my ongoing effort to mock the Office 2007 UI, I wrote this XAML gradient generator: &#160; &#160; This tool changes the brightness and saturation of a given color, so, for best results, try to choose a color that isn’t maxed out (255) in either brightness or saturation. Download]]></description>
			<content:encoded><![CDATA[<p>In my ongoing effort to mock the Office 2007 UI, I wrote this XAML gradient generator: </p>
<p>&#160;</p>
<p><a href="http://www.kennethham.com/wp/wp-content/uploads/2010/11/image2.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto; padding-top: 0px" title="image" border="0" alt="image" src="http://www.kennethham.com/wp/wp-content/uploads/2010/11/image_thumb3.png" width="430" height="376" /></a></p>
<p>&#160;</p>
<p>This tool changes the brightness and saturation of a given color, so, for best results, try to choose a color that isn’t maxed out (255) in either brightness or saturation.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:fb3a1972-4489-4e52-abe7-25a00bb07fdf:a67c7a71-f034-4c75-b61a-dbe78d990a3b" class="wlWriterEditableSmartContent">
<p> <a href="http://www.kennethham.com/wp/wp-content/uploads/2010/11/GlossyGradientGenerator.exe" target="_blank">Download</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.kennethham.com/wp/2010/11/glossy-gradient-xaml-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Outer Glow to WPF Controls on Focus (Like Gmail)</title>
		<link>http://www.kennethham.com/wp/2010/10/add-outer-glow-to-wpf-controls-on-focus-like-gmail/</link>
		<comments>http://www.kennethham.com/wp/2010/10/add-outer-glow-to-wpf-controls-on-focus-like-gmail/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 15:42:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">http://www.kennethham.com/wp/2010/10/add-outer-glow-to-wpf-controls-on-focus-like-gmail/</guid>
		<description><![CDATA[Adding a focus indicator to your controls can help make your application more user friendly and can provide a bit of visual polish for your projects. Ultimately, we are trying to mimic the following look in WPF: &#160; &#160; To create this, we make a style that targets any control and give it a name: [...]]]></description>
			<content:encoded><![CDATA[<p>Adding a focus indicator to your controls can help make your application more user friendly and can provide a bit of visual polish for your projects. Ultimately, we are trying to mimic the following look in WPF:</p>
<p>&#160;</p>
<p><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://www.kennethham.com/wp/wp-content/uploads/2010/10/image2.png" width="194" height="90" /></p>
<p>&#160;</p>
<p>  <span id="more-364"></span>
<p>To create this, we make a style that targets any control and give it a name:</p>
<p>&#160;</p>
<div style="padding-bottom: 0px; padding-left: 0px; width: 593px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:9cc473b4-5a14-4c9a-9500-6dab1a2be40e" class="wlWriterEditableSmartContent">
<div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt">
<div style="background: #000080; color: #fff; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px">Code</div>
<div style="background-color: #ffffff; overflow: auto; padding: 2px 5px;"><span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">Style</span><span style="color:#ff0000"> x</span><span style="color:#0000ff">:</span><span style="color:#ff0000">Key</span><span style="color:#0000ff">=&quot;HighlightOnFocus&quot;</span><span style="color:#ff0000"> TargetType</span><span style="color:#0000ff">=&quot;Control&quot;&gt;</span><br />     <span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">Style.Triggers</span><span style="color:#0000ff">&gt;</span><br />         <span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">Trigger</span><span style="color:#ff0000"> Property</span><span style="color:#0000ff">=&quot;IsFocused&quot;</span><span style="color:#ff0000"> Value</span><span style="color:#0000ff">=&quot;True&quot;&gt;</span><br />             <span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">Setter</span><span style="color:#ff0000"> Property</span><span style="color:#0000ff"> = &quot;BitmapEffect&quot; &gt;</span><br />                 <span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">Setter.Value</span><span style="color:#0000ff">&gt;</span><br />                     <span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">OuterGlowBitmapEffect</span> <br />                        <span style="color:#ff0000"> GlowColor</span><span style="color:#0000ff">=&quot;Orange&quot;</span> <br />                        <span style="color:#ff0000"> GlowSize</span><span style="color:#0000ff">=&quot;5&quot; /&gt;</span><br />                 <span style="color:#a31515"></span><span style="color:#0000ff">&lt;/</span><span style="color:#a31515">Setter.Value</span><span style="color:#0000ff">&gt;</span><br />             <span style="color:#a31515"></span><span style="color:#0000ff">&lt;/</span><span style="color:#a31515">Setter</span><span style="color:#0000ff">&gt;</span><br />         <span style="color:#a31515"></span><span style="color:#0000ff">&lt;/</span><span style="color:#a31515">Trigger</span><span style="color:#0000ff">&gt;</span><br />     <span style="color:#a31515"></span><span style="color:#0000ff">&lt;/</span><span style="color:#a31515">Style.Triggers</span><span style="color:#0000ff">&gt;</span><br /> <span style="color:#a31515"></span><span style="color:#0000ff">&lt;/</span><span style="color:#a31515">Style</span><span style="color:#0000ff">&gt;</span></div>
</p></div>
</p></div>
<p>&#160;</p>
<p>Then, set your control to use this style:</p>
<p>&#160;</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:046b1d04-ca52-487f-9cfc-2b8633efe3bc" class="wlWriterEditableSmartContent">
<div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt">
<div style="background: #000080; color: #fff; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px">Code</div>
<div style="background-color: #ffffff; overflow: auto; padding: 2px 5px;"><span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">Style</span><span style="color:#ff0000"> TargetType</span><span style="color:#0000ff">=&quot;TextBox&quot;</span><span style="color:#ff0000"> BasedOn</span><span style="color:#0000ff">=&quot;{</span><span style="color:#a31515">StaticResource</span><span style="color:#ff0000"> HighlightOnFocus}</span><span style="color:#0000ff">&quot;&gt;</span><br /> <span style="color:#a31515"></span><span style="color:#0000ff">&lt;/</span><span style="color:#a31515">Style</span><span style="color:#0000ff">&gt;</span></div>
</p></div>
</p></div>
<p>&#160;</p>
<p>Result:</p>
<p>&#160;</p>
<p><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://www.kennethham.com/wp/wp-content/uploads/2010/10/image1.png" width="352" height="106" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennethham.com/wp/2010/10/add-outer-glow-to-wpf-controls-on-focus-like-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paypal Helper</title>
		<link>http://www.kennethham.com/wp/2008/11/paypal-helper/</link>
		<comments>http://www.kennethham.com/wp/2008/11/paypal-helper/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 19:51:07 +0000</pubDate>
		<dc:creator>kham</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[VB .net]]></category>

		<guid isPermaLink="false">http://kham.wordpress.com/?p=56</guid>
		<description><![CDATA[This is a program I wrote to help high volume ebay sellers. &#160; &#160; After struggling with 100+ orders per day on ebay, I realized I needed an automated system. Ebay and paypal are notoriously difficult to work with for large scale operations and the applications that interface with them tend to be short on [...]]]></description>
			<content:encoded><![CDATA[<p>This is a program I wrote to help high volume ebay sellers.</p>
<p>&#160;</p>
<p align="center"><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/MIeEwdVXj20&amp;hl=en&amp;fs=1&amp;fmt=18"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/MIeEwdVXj20&amp;hl=en&amp;fs=1&amp;fmt=18" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p align="center">&#160;</p>
<p>After struggling with 100+ orders per day on ebay, I realized I needed an automated system. Ebay and paypal are notoriously difficult to work with for large scale operations and the applications that interface with them tend to be short on features. With this in mind, I set out to create my own order processing system.</p>
<p>Before Paypal had an API, it was very difficult to get buyer information for creating internet based shipping labels. This program allowed you to log into your account and retrieve shipping information for your buyers. It also saved transaction snapshots, so you wouldn&#8217;t need an internet connection to view archived sales.</p>
<p>This application allowed you to keep in constant communication with your buyers to ensure they were happy by using a click and email system that notifies buyers of their shipment&#8217;s status. The notification idea is based on the system used by Dell for shipments where the customer is notified of shipment status through frequent, step-based email.</p>
<p>For example, a step 1 email would say order received, and would be marked as step 1 of 5. A step 2 email would say order confirmed and so on. For my order system, I used the following steps: order received, order processing, order processed, shipping label created, and order shipped. Using this method, customers were much more likely to leave positive feedback because I had kept in constant communication with them through a simple point and click interface.</p>
<p>Once Paypal created an API, I moved to Paypal Helper 2.0, which takes advantage of the new API to streamline large scale ebay order processing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennethham.com/wp/2008/11/paypal-helper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dell Sweepstakes Hack (Dellf Project)</title>
		<link>http://www.kennethham.com/wp/2008/11/dell-sweepstakes-hack-dellf-project/</link>
		<comments>http://www.kennethham.com/wp/2008/11/dell-sweepstakes-hack-dellf-project/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 19:39:39 +0000</pubDate>
		<dc:creator>kham</dc:creator>
				<category><![CDATA[CAPTCHA]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[OCR]]></category>
		<category><![CDATA[Office API]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[VB6]]></category>

		<guid isPermaLink="false">http://kham.wordpress.com/?p=48</guid>
		<description><![CDATA[Dell ran a Christmas themed contest a few years ago (2004-2005?) called the Dellf Sweepstakes. The idea behind it was pretty neat at the time: register your email address, fill out a CAPTCHA box, and you get three chances to win prizes. The CAPTCHA design made it very easy to reverse engineer (an evenly spaced [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://kham.files.wordpress.com/2008/11/hdtv.jpg"><img class="alignnone size-full wp-image-147" title="Dellf HDTV" alt="Dellf HDTV" src="http://kham.files.wordpress.com/2008/11/hdtv.jpg" width="500" height="502" /></a></p>
<p>Dell ran a Christmas themed contest a few years ago (2004-2005?) called the Dellf Sweepstakes. The idea behind it was pretty neat at the time: register your email address, fill out a CAPTCHA box, and you get three chances to win prizes.</p>
<p>  <span id="more-48"></span>
<p>The CAPTCHA design made it very easy to reverse engineer (an evenly spaced grid, solid background, unaltered text). By using the photoshop API and a custom written action I was able to take this:</p>
<p><a href="http://kham.files.wordpress.com/2008/11/index.jpg"><img class="alignnone size-full wp-image-146" title="index" alt="index" src="http://kham.files.wordpress.com/2008/11/index.jpg" width="200" height="50" /></a></p>
<p>and turn it into this:</p>
<p><a href="http://kham.files.wordpress.com/2008/11/index2.jpg"><img class="alignnone size-full wp-image-148" title="index2" alt="index2" src="http://kham.files.wordpress.com/2008/11/index2.jpg" width="200" height="50" /></a></p>
<p>From there, I sent the edited image to the Office API and did a quick OCR command to get the text from the image. Then, using the WebBrowser control, I scripted the actions to put the text into the web page and register an email address.</p>
<p>Here&#8217;s a view of the program in action:</p>
<p><a href="http://kham.files.wordpress.com/2008/11/dellfprogram.jpg"><img class="alignnone size-full wp-image-151" title="dellfprogram" alt="dellfprogram" src="http://kham.files.wordpress.com/2008/11/dellfprogram.jpg" width="500" height="344" /></a></p>
<p>It&#8217;s important to note that I didn&#8217;t collect any prizes. This project was more about the thrill of the chase and not so much the actual prizes. I ended up &quot;winning&quot; almost every prize including the grand prize, a 42in. plasma TV.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennethham.com/wp/2008/11/dell-sweepstakes-hack-dellf-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

