<?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>Dallas Edwards</title>
	<atom:link href="http://www.dallasedwards.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.dallasedwards.com</link>
	<description>Development Blog</description>
	<lastBuildDate>Tue, 20 Apr 2010 18:22:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Richmond Code Camp</title>
		<link>http://www.dallasedwards.com/?p=195</link>
		<comments>http://www.dallasedwards.com/?p=195#comments</comments>
		<pubDate>Tue, 20 Apr 2010 17:46:09 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.dallasedwards.com/?p=195</guid>
		<description><![CDATA[It&#8217;s almost time for Richmond Code Camp 2010! Once again it looks like a pretty awesome mix of topics. If you&#8217;re in the Richmond area and feeling the need to release your inner nerd this is a great place to be. It is free to attend and they will probably serve free breakfast and lunch.
[Visit [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s almost time for Richmond Code Camp 2010! Once again it looks like a pretty awesome mix of topics. If you&#8217;re in the Richmond area and feeling the need to release your inner nerd this is a great place to be. It is free to attend and they will probably serve free breakfast and lunch.</p>
<p>[<a href="http://richmondcodecamp.org">Visit RCC</a>]<br />
[<a href="http://richmondcodecamp.org/sessions/">View Sessions</a>]<br />
[<a href="http://cli.gs/GotoRCC">Register</a>]<br />
[<a href="http://maps.google.com/maps?f=q&#038;source=s_q&#038;hl=en&#038;geocode=&#038;q=1651+E+Parham+Rd,+Richmond,+VA+23228&#038;ie=UTF8&#038;hq=&#038;hnear=1651+E+Parham+Rd,+Richmond,+Henrico,+Virginia+23228&#038;z=17">Get Directions</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dallasedwards.com/?feed=rss2&amp;p=195</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ultimate Chocolate Chip Cookies</title>
		<link>http://www.dallasedwards.com/?p=188</link>
		<comments>http://www.dallasedwards.com/?p=188#comments</comments>
		<pubDate>Tue, 15 Dec 2009 23:30:30 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[chocolate chip cookies]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[crisco]]></category>
		<category><![CDATA[recipe]]></category>

		<guid isPermaLink="false">http://www.dallasedwards.com/?p=188</guid>
		<description><![CDATA[My mom passed on this awesome chocolate chip cookie recipe over the weekend. It comes from a box of Crisco &#8220;All-Vegetable Shortening Sticks&#8221; (whatever that is) and apparently it isn&#8217;t printed anymore.
Hope you enjoy, and feel free to share your own recipes for chocolate chip cookies in the comments!

3/4 cup (3/4 stick) Butter Flavor Crisco [...]]]></description>
			<content:encoded><![CDATA[<p>My mom passed on this awesome chocolate chip cookie recipe over the weekend. It comes from a box of Crisco &#8220;All-Vegetable Shortening Sticks&#8221; (whatever that is) and apparently it isn&#8217;t printed anymore.</p>
<p>Hope you enjoy, and feel free to share your own recipes for chocolate chip cookies in the comments!</p>
<ul>
<li>3/4 cup (3/4 stick) Butter Flavor Crisco Shortening</li>
<li>1-1/4 cups firmly packed light brown sugar</li>
<li>2 tablespoons milk</li>
<li>1 tablespoon vanilla</li>
<li>1 egg</li>
<li>1-3/4 cups all purpose flour</li>
<li>1 teaspoon salt</li>
<li>3/4 teaspoon baking soda</li>
<li>1 cup semi-sweet chocolate chips</li>
<li>1 cup coarsely chopped pecans (optional)*</li>
</ul>
<ol>
<li><strong>Heat</strong> oven to 375°F.  <strong>Place</strong> sheets of foil on counter top for cooling cookies.</li>
<li><strong>Combine</strong> Butter Flavor Crisco, brown sugar, milk, and vanilla in large bowl.  <strong>Beat</strong> at medium speed of electric mixer until well blended.  <strong>Beat</strong> egg into creamed mixture.</li>
<li><strong>Combine</strong> flour, salt, and baking soda.  <strong>Mix</strong> into creamed mixture just until blended.  <strong>Stir</strong> in chocolate chips and pecan pieces.</li>
<li><strong>Drop </strong>rounded tablespoonfuls of dough 3 inches apart onto ungreased baking sheet.  <strong>Bake</strong> one baking sheet at a time at 375°F for 8 to 10 minutes for chewy cookies, or 11 to 13 minutes for crisp cookies.  DO NOT OVERBAKE.</li>
</ol>
<p><strong>Makes about 3 dozen cookies.</strong></p>
<p>* If nuts are omitted, add add an additional 1/2 cup semi-sweet chocolate chips.<strong> </strong></p>
<p><strong>How to substitute Crisco for butter or margarine in your favorite recipes:</strong><br />
1 cup Crisco + 6 teaspoons water = 1 cup butter or margarine</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dallasedwards.com/?feed=rss2&amp;p=188</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Project Euler Problem 5</title>
		<link>http://www.dallasedwards.com/?p=173</link>
		<comments>http://www.dallasedwards.com/?p=173#comments</comments>
		<pubDate>Wed, 28 Oct 2009 19:29:04 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[Project Euler]]></category>
		<category><![CDATA[problem 5]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.dallasedwards.com/?p=173</guid>
		<description><![CDATA[This one takes three or four seconds to run, so it&#8217;s a likely candidate for a rewrite.

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
What is the smallest number that is evenly divisible by all of the numbers from 1 to 20?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using [...]]]></description>
			<content:encoded><![CDATA[<p>This one takes three or four seconds to run, so it&#8217;s a likely candidate for a rewrite.</p>
<blockquote><p>
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.</p>
<p>What is the smallest number that is <dfn title="divisible with no remainder">evenly divisible</dfn> by all of the numbers from 1 to 20?</p></blockquote>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Collections.Generic</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Linq</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Text</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF;">namespace</span> Project_Euler_5
<span style="color: #000000;">&#123;</span>
 <span style="color: #FF0000;">class</span> Program
 <span style="color: #000000;">&#123;</span>
  <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> Main<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> args<span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   <span style="color: #008000;">new</span> Program<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
&nbsp;
  Program<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i <span style="color: #008000;">=</span> <span style="color: #FF0000;">1</span><span style="color: #008000;">;</span> <span style="color: #008000;">;</span> i<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span>
   <span style="color: #000000;">&#123;</span>
    <span style="color: #0600FF;">if</span><span style="color: #000000;">&#40;</span>isEvenlyDivisibleByRange<span style="color: #000000;">&#40;</span>i, <span style="color: #FF0000;">11</span>, <span style="color: #FF0000;">20</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
     Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
     Console.<span style="color: #0000FF;">ReadKey</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
    <span style="color: #000000;">&#125;</span>
   <span style="color: #000000;">&#125;</span>
  <span style="color: #000000;">&#125;</span>
&nbsp;
  <span style="color: #FF0000;">bool</span> isEvenlyDivisibleByRange<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> value, <span style="color: #FF0000;">int</span> lowerBound, <span style="color: #FF0000;">int</span> upperBound<span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i <span style="color: #008000;">=</span> lowerBound<span style="color: #008000;">;</span> i <span style="color: #008000;">&lt;=</span> upperBound<span style="color: #008000;">;</span> i<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span>
    <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>value <span style="color: #008000;">%</span> i <span style="color: #008000;">!=</span> <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>
     <span style="color: #0600FF;">return</span> false<span style="color: #008000;">;</span>
&nbsp;
   <span style="color: #0600FF;">return</span> true<span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
 <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dallasedwards.com/?feed=rss2&amp;p=173</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Project Euler Problem 4</title>
		<link>http://www.dallasedwards.com/?p=167</link>
		<comments>http://www.dallasedwards.com/?p=167#comments</comments>
		<pubDate>Wed, 28 Oct 2009 16:00:24 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[Project Euler]]></category>
		<category><![CDATA[problem 4]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.dallasedwards.com/?p=167</guid>
		<description><![CDATA[This one was easier than I expected. I considered using some sort of lookup table to limit unnecessary calculations (103 x 104 = 104 x 103), but I&#8217;m pretty sure that would have only created more overhead.

A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers [...]]]></description>
			<content:encoded><![CDATA[<p>This one was easier than I expected. I considered using some sort of lookup table to limit unnecessary calculations (103 x 104 = 104 x 103), but I&#8217;m pretty sure that would have only created more overhead.</p>
<blockquote><p>
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 <img style="vertical-align: middle;" src="http://projecteuler.net/images/symbol_times.gif" border="0" alt="×" width="9" height="9" /> 99.</p>
<p>Find the largest palindrome made from the product of two 3-digit numbers.</p></blockquote>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Collections.Generic</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Linq</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Text</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF;">namespace</span> Project_Euler_4
<span style="color: #000000;">&#123;</span>
 <span style="color: #FF0000;">class</span> Program
 <span style="color: #000000;">&#123;</span>
&nbsp;
  <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> Main<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> args<span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   <span style="color: #008000;">new</span> Program<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
&nbsp;
  Program<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
&nbsp;
   <span style="color: #FF0000;">int</span> largestPalindromicProduct <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span>
&nbsp;
   <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i <span style="color: #008000;">=</span> <span style="color: #FF0000;">100</span><span style="color: #008000;">;</span> i <span style="color: #008000;">&lt;=</span> <span style="color: #FF0000;">999</span><span style="color: #008000;">;</span> i<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span>
    <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> j <span style="color: #008000;">=</span> <span style="color: #FF0000;">100</span><span style="color: #008000;">;</span> j <span style="color: #008000;">&lt;=</span> <span style="color: #FF0000;">999</span><span style="color: #008000;">;</span> j<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
     <span style="color: #FF0000;">int</span> product <span style="color: #008000;">=</span> i <span style="color: #008000;">*</span> j<span style="color: #008000;">;</span>
&nbsp;
     <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>product <span style="color: #008000;">&gt;</span> largestPalindromicProduct <span style="color: #008000;">&amp;&amp;</span> isPalindromicNumber<span style="color: #000000;">&#40;</span>product<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
      largestPalindromicProduct <span style="color: #008000;">=</span> product<span style="color: #008000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
   Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span>largestPalindromicProduct<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   Console.<span style="color: #0000FF;">ReadKey</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
&nbsp;
  <span style="color: #FF0000;">bool</span> isPalindromicNumber<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> number<span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   <span style="color: #FF0000;">string</span> value <span style="color: #008000;">=</span> number.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
   <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span> i <span style="color: #008000;">&lt;</span> value.<span style="color: #0000FF;">Length</span><span style="color: #008000;">;</span> i<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span>
   <span style="color: #000000;">&#123;</span>
    <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #008000;">!</span>value<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">Equals</span><span style="color: #000000;">&#40;</span>value<span style="color: #000000;">&#91;</span>value.<span style="color: #0000FF;">Length</span> <span style="color: #008000;">-</span> <span style="color: #FF0000;">1</span> <span style="color: #008000;">-</span> i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
     <span style="color: #0600FF;">return</span> false<span style="color: #008000;">;</span>
   <span style="color: #000000;">&#125;</span>
&nbsp;
   <span style="color: #0600FF;">return</span> true<span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
 <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dallasedwards.com/?feed=rss2&amp;p=167</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordTwit, ACTIVATE!</title>
		<link>http://www.dallasedwards.com/?p=163</link>
		<comments>http://www.dallasedwards.com/?p=163#comments</comments>
		<pubDate>Wed, 21 Oct 2009 21:50:12 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[wordtwit]]></category>

		<guid isPermaLink="false">http://www.dallasedwards.com/?p=163</guid>
		<description><![CDATA[I&#8217;m testing a new plugin called WordTwit. It&#8217;s supposed to post a new tweet every time I publish something here.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m testing a new plugin called <a href="http://www.bravenewcode.com/wordtwit/">WordTwit</a>. It&#8217;s supposed to post a new tweet every time I publish something here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dallasedwards.com/?feed=rss2&amp;p=163</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quick Guide to Customizing Keyboard Bindings in OS X</title>
		<link>http://www.dallasedwards.com/?p=140</link>
		<comments>http://www.dallasedwards.com/?p=140#comments</comments>
		<pubDate>Wed, 21 Oct 2009 19:08:17 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[key bindings]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.dallasedwards.com/?p=140</guid>
		<description><![CDATA[I love my Mac. In fact, I love just about everything about it. The places where it fails to please tend to be when handling input devices &#8211; specifically keyboard and mouse input.
The default acceleration curve for mouse motion is bizarre. There are two speeds &#8211; slow and relativistic. That was fixed on day one [...]]]></description>
			<content:encoded><![CDATA[<p>I love my Mac. In fact, I love just about everything about it. The places where it fails to please tend to be when handling input devices &#8211; specifically keyboard and mouse input.</p>
<p>The default acceleration curve for mouse motion is bizarre. There are two speeds &#8211; slow and relativistic. That was fixed on day one thanks to <a href="http://www.usboverdrive.com/USBOverdrive/News.html">USB Overdrive</a>. While it does cost $20, it is well worth it for the ability to use an external mouse.</p>
<p>The keyboard bindings took a while to become irritating, probably because as a laptop user some degree of keyboard discomfort is to be expected. The confined space means that come concessions must be made; keys are squished or missing, some are given dual roles, and some are out of place. As a programmer, I do a lot of navigation on the keyboard. Unless I&#8217;m moving between large chunks of code, I don&#8217;t touch the mouse at all. Because of this, I use a full size USB keyboard to give me access to all of those nifty keys that are missing on the laptop (Home/End/Page Up/Page Down). Unfortunately OS X maps different functions to some of those keys than I&#8217;m used to. For instance, &#8220;Home&#8221; and &#8220;End&#8221; scroll to the top and bottom of the document instead of the beginning and end of the current line of text. Fortunately I&#8217;ve found a resolution.</p>
<p>User specific keyboard bindings are stored in <code>/Users/{User Name}/Library/KeyBindings/DefaultKeyBinding.dict</code>. Note that this directory and file may not exist at first, so you may need to create it. If this is the case, you&#8217;ll also need to create the <code>DefaultKeyBinding.dict</code> file. I recommend copying the system wide keyboard bindings file from <code>/System/Library/Frameworks/AppKit.framework/Resources/StandardKeyBinding.dict</code>. This will give you a good base to work from. I don&#8217;t recommend modifying this file directly, as if you mess something up you&#8217;re really screwed.</p>
<p>Now that you&#8217;ve copied the file, all you have to do is modify it to suite your fancy. It&#8217;s possible to do this by hand, but it&#8217;s easier to use a specialized editor. I recommend the <a href="http://www.cocoabits.com/KeyBindingsEditor/">KeyBindingsEditor</a> (free download). Fire up KBE and look for the &#8220;Home&#8221; key (make sure the &#8220;Modifiers&#8221; field is clear), then change the action to <code>moveToBeginningOfLine</code>. Do the same for the &#8220;End&#8221; key, except the action will be <code>moveToEndOfLine</code>. Make any other modifications you want, save the file, and restart any running applications to obtain the new bindings.</p>
<p>Easy right? There are a few exceptions (imagine that). Some applications, such as Firefox and Eclipse, ignore these key bindings altogether. I&#8217;ve figured out how to fix Firefox, but I&#8217;m not an Eclipse user (give Netbeans another try, the new version is really nice). Fixing Firefox isn&#8217;t nearly as straightforward and can&#8217;t be done on a per user basis (all changes are global). In fact, this was <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=201011">reported as a bug</a> back in 2003 and is still an open item.</p>
<p>First you need to obtain the <code>platformHTMLBindings.xml</code> file. This contains all of the keyboard bindings used by Firefox and its location depends on what version you&#8217;re running. For pre-1.05 users (are there any?), the file is in <code>/Applications/Firefox.app/contents/MacOS/res/builtin/</code>. For the rest of us it&#8217;s inside the <code>/Applications/Firefox.app/contents/MacOS/chrome/toolkit.jar</code> archive. A .jar archive is nothing more than a renamed .zip file, so you can extract its contents as you would any other .zip. Once you extract the contents, you&#8217;ll find the file in the <code>content/global/</code> directory. After you modify it you will need to update <code>toolkit.jar</code> with the new version so don&#8217;t delete anything and be sure to back up the original.</p>
<p>Inside <code>platformHTMLBindings.xml</code>, you&#8217;ll need to find and modify the following nodes in the <code>&lt;handlers&gt;</code> section of <code>&lt;binding id="inputFields"&gt;</code>, <code>&lt;binding id="textArea"&gt;</code>, and <code>&lt;binding id="editor"&gt;:</code></p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!-- Change cmd_scrollTop to cmd_beginLine --&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;handler</span> <span style="color: #000066;">event</span>=<span style="color: #ff0000;">&quot;keypress&quot;</span> <span style="color: #000066;">keycode</span>=<span style="color: #ff0000;">&quot;VK_HOME&quot;</span> <span style="color: #000066;">command</span>=<span style="color: #ff0000;">&quot;cmd_scrollTop&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
<span style="color: #808080; font-style: italic;">&lt;!-- Change cmd_scrollBottom to cmd_endLine --&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;handler</span> <span style="color: #000066;">event</span>=<span style="color: #ff0000;">&quot;keypress&quot;</span> <span style="color: #000066;">keycode</span>=<span style="color: #ff0000;">&quot;VK_END&quot;</span>  <span style="color: #000066;">command</span>=<span style="color: #ff0000;">&quot;cmd_scrollBottom&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>

<p>You can find other commands at <a href="http://www.mozilla.org/unix/customizing.html">Customizing Mozilla</a>.</p>
<p>After you&#8217;ve made your modifications zip the folder back up, change the extension to .jar,  and copy it over the <code>toolkit.jar</code> archive.</p>
<p>Whew, OK that&#8217;s it. If you have any questions shoot me an e-mail at <a href="mailto:edwardsdl@gmail.com">edwardsdl@gmail.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dallasedwards.com/?feed=rss2&amp;p=140</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Revenge is sweeter than life itself. So think fools.</title>
		<link>http://www.dallasedwards.com/?p=127</link>
		<comments>http://www.dallasedwards.com/?p=127#comments</comments>
		<pubDate>Mon, 19 Oct 2009 23:19:57 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[mail bomb]]></category>
		<category><![CDATA[prank]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[revenge]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://www.dallasedwards.com/?p=127</guid>
		<description><![CDATA[Last Friday my boss whipped up a program that would spam my phone with text messages.  It was cute &#8211; until I had 350 unread text messages and my phone wouldn&#8217;t stop vibrating.
Over the weekend my thirst for vengeance overpowered me, and I decided to give him a taste of his own medicine. I spent [...]]]></description>
			<content:encoded><![CDATA[<p>Last Friday my boss whipped up a program that would spam my phone with text messages.  It was cute &#8211; until I had 350 unread text messages and my phone wouldn&#8217;t stop vibrating.</p>
<p>Over the weekend my thirst for vengeance overpowered me, and I decided to give him a taste of his own medicine. I spent about 30 minutes writing an app that would not only spam his phone with text messages, but fill his e-mail inbox too.  Oh yes, that would show him!</p>
<p>Like most developers though, I can&#8217;t just leave well enough alone. An e-mail loop is just too simple, features must be added, functions must be enhanced.</p>
<p>Address spoofing &#8211; check.<br />
Randomized subject lines &#8211; check.<br />
Randomized content &#8211; check.</p>
<p>Then things got out of hand. Harmless subjects gave way to &#8220;Free Viagra!&#8221; and &#8220;You&#8217;re fired!&#8221;.  Messages became, &#8220;I think I&#8217;m pregnant&#8221;.  Worst of all, spoofed addresses went from mutual friends to mutual bosses.</p>
<p>At the time I thought my hellish little spam app was brilliant.  When Jaime called I expected him to concede victory, to beg me to stop killing his inbox.  Nope, not even close.</p>
<p>&#8220;Hey dude, I think you have a virus.  It&#8217;s sending e-mails to Barry.&#8221;  Barry is our boss&#8217;, boss.</p>
<p>Wait, what?  I didn&#8217;t code it to do that.  It would <em>look</em> like it came from him, but it surely wouldn&#8217;t send it to him.  How could this be?  I checked my e-mail to see if I was getting anything.  There it was, Mr. Mailer Daemon informing me that my message could not be delivered.   Apparently Jaime had disabled incoming text messages coming from e-mail gateways, and AT&amp;T cheerily notified the sender each time one of these messages failed to deliver.  Oh, damn.  The one feature I didn&#8217;t add was the one to route the reply address back to me.  Actually, in hindsight, I think the one feature missing was common sense.</p>
<p>I never got my revenge.  I did get a heavy dose of humiliation, but everyone needs that once in a while.</p>
<p>For anyone wanting to hang themselves, or perhaps simply to amuse themselves at my expense, I posted the code below.</p>
<p><span id="more-127"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Collections.Generic</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Net.Mail</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Threading</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF;">namespace</span> MailBomb
<span style="color: #000000;">&#123;</span>
 <span style="color: #FF0000;">class</span> Program
 <span style="color: #000000;">&#123;</span>
  <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> Main<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> args<span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   <span style="color: #008000;">new</span> Program<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
&nbsp;
  Program<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   List recipientList <span style="color: #008000;">=</span> getRecipientList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   List senderList <span style="color: #008000;">=</span> getSendersList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   List subjectList <span style="color: #008000;">=</span> getSubjectList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   List contentList <span style="color: #008000;">=</span> getContentList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
   <span style="color: #FF0000;">string</span> host <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;localhost&quot;</span><span style="color: #008000;">;</span>
   <span style="color: #FF0000;">int</span> port <span style="color: #008000;">=</span> <span style="color: #FF0000;">25</span><span style="color: #008000;">;</span>
&nbsp;
   <span style="color: #FF0000;">int</span> count <span style="color: #008000;">=</span> <span style="color: #FF0000;">400</span><span style="color: #008000;">;</span>
   TimeSpan delay <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> TimeSpan<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">0</span>, <span style="color: #FF0000;">0</span>, <span style="color: #FF0000;">10</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
   Random r <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Random<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
   SmtpClient sc <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> SmtpClient<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   sc.<span style="color: #0000FF;">Host</span> <span style="color: #008000;">=</span> host<span style="color: #008000;">;</span>
   sc.<span style="color: #0000FF;">Port</span> <span style="color: #008000;">=</span> port<span style="color: #008000;">;</span>
&nbsp;
   Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Mail Bomb Started&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span> i <span style="color: #008000;">&lt;</span> count<span style="color: #008000;">;</span> i<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span>
   <span style="color: #000000;">&#123;</span>
    <span style="color: #FF0000;">string</span> sender <span style="color: #008000;">=</span> senderList<span style="color: #000000;">&#91;</span>r.<span style="color: #0000FF;">Next</span><span style="color: #000000;">&#40;</span>senderList.<span style="color: #0000FF;">Count</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #008000;">;</span>
    <span style="color: #FF0000;">string</span> recipient <span style="color: #008000;">=</span> recipientList<span style="color: #000000;">&#91;</span>r.<span style="color: #0000FF;">Next</span><span style="color: #000000;">&#40;</span>recipientList.<span style="color: #0000FF;">Count</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #008000;">;</span>
    <span style="color: #FF0000;">string</span> subject <span style="color: #008000;">=</span> subjectList<span style="color: #000000;">&#91;</span>r.<span style="color: #0000FF;">Next</span><span style="color: #000000;">&#40;</span>subjectList.<span style="color: #0000FF;">Count</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #008000;">;</span>
    <span style="color: #FF0000;">string</span> body <span style="color: #008000;">=</span> contentList<span style="color: #000000;">&#91;</span>r.<span style="color: #0000FF;">Next</span><span style="color: #000000;">&#40;</span>contentList.<span style="color: #0000FF;">Count</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #008000;">;</span>
&nbsp;
    MailMessage mm <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> MailMessage<span style="color: #000000;">&#40;</span>sender, recipient, subject, body<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
    sc.<span style="color: #0000FF;">Send</span><span style="color: #000000;">&#40;</span>mm<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
    <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>i <span style="color: #008000;">!=</span> <span style="color: #FF0000;">0</span> <span style="color: #008000;">&amp;&amp;</span> i <span style="color: #008000;">%</span> <span style="color: #FF0000;">10</span> <span style="color: #008000;">==</span> <span style="color: #FF0000;">9</span><span style="color: #000000;">&#41;</span>
     Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;.&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
    <span style="color: #0600FF;">else</span>
     Console.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;.&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
    Thread.<span style="color: #0000FF;">Sleep</span><span style="color: #000000;">&#40;</span>delay<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   <span style="color: #000000;">&#125;</span>
  <span style="color: #000000;">&#125;</span>
&nbsp;
  List getRecipientList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   List recipientList <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> List<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   recipientList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span>.<span style="color: #0000FF;">Empty</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   <span style="color: #008080; font-style: italic;">// A bunch of e-mail addresses go here</span>
&nbsp;
   <span style="color: #0600FF;">return</span> recipientList<span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
&nbsp;
  List getSendersList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   List senderList <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> List<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   senderList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span>.<span style="color: #0000FF;">Empty</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   <span style="color: #008080; font-style: italic;">// A bunch of e-mail addresses go here.</span>
&nbsp;
   <span style="color: #0600FF;">return</span> senderList<span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
&nbsp;
  List getSubjectList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   List subjectList <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> List<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   subjectList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;You're fired!&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   subjectList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Navigator status&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   subjectList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Something to tell you...&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   subjectList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;We need to talk&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   subjectList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Check this out!&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   subjectList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;I LOL'd&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   subjectList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;spaceghost coast to coast&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   subjectList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;free VIAGRA!&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   subjectList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;this weekend&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   subjectList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Need you to call&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   subjectList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Looking for a good time?&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
   <span style="color: #0600FF;">return</span> subjectList<span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
&nbsp;
  List getContentList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   List contentList <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> List<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;We need to talk.  I think I'm pregnant.&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;contentList.Add(<span style="color: #008080; font-weight: bold;">\&quot;</span>contentList.add(... &lt;- its recursive!&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Starting to run out of ideas for content&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;The subject lines were easier to write.&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Just got an idea!&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;What gets wetter and wetter the more it dries?&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;You throw away the outside and cook the inside. Then you eat the outside and throw away the inside. What did you eat?&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;What goes up and down the stairs without moving?&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;What can you catch but not throw?&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;I can run but not walk. Wherever I go, thought follows close behind. What am I?&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;What's black and white and red all over?&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;What goes around the world but stays in a corner?&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;I have holes in my top and bottom, my left and right, and in the middle. But I still hold water. What am I?&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Give me food, and I will live; give me water, and I will die. What am I?&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;The man who invented it doesn't want it. The man who bought it doesn't need it. The man who needs it doesn't know it. What is it?&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   contentList.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Yup, my idea was to paste riddles!&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
   <span style="color: #0600FF;">return</span> contentList<span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
 <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dallasedwards.com/?feed=rss2&amp;p=127</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rent A Coder</title>
		<link>http://www.dallasedwards.com/?p=120</link>
		<comments>http://www.dallasedwards.com/?p=120#comments</comments>
		<pubDate>Fri, 16 Oct 2009 00:59:08 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rent a coder]]></category>

		<guid isPermaLink="false">http://www.dallasedwards.com/?p=120</guid>
		<description><![CDATA[My boss and I have decided to try our hand(s?) at a little freelance development.  Neither of us have done this before, but it looks fun so we decided to have a go.
So far we&#8217;ve placed a bid on a pretty small project involving a wine database management and reporting software. It&#8217;s nothing too ambitious [...]]]></description>
			<content:encoded><![CDATA[<p>My boss and I have decided to try our hand(s?) at a little freelance development.  Neither of us have done this before, but it looks fun so we decided to have a go.</p>
<p>So far we&#8217;ve placed a bid on a pretty small project involving a wine database management and reporting software. It&#8217;s nothing too ambitious and I have no doubt we&#8217;d be able to handle this easily. Hopefully we&#8217;ll get the bid, though last I checked there were 17 others. Wish us luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dallasedwards.com/?feed=rss2&amp;p=120</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Another Case of DMCA Misuse</title>
		<link>http://www.dallasedwards.com/?p=92</link>
		<comments>http://www.dallasedwards.com/?p=92#comments</comments>
		<pubDate>Fri, 09 Oct 2009 01:40:10 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[copyright]]></category>
		<category><![CDATA[dmca]]></category>
		<category><![CDATA[ralph lauren]]></category>

		<guid isPermaLink="false">http://www.dallasedwards.com/?p=92</guid>
		<description><![CDATA[Here we go again.
The DMCA has yet again been used in an attempt to squelch free speech and fair use, this time by Ralph Lauren.  A post last month on Boing Boing featuring an advertisement in which a model had been photoshopped with bizarre proportions has drawn the ire of Ralph Lauren&#8217;s lawyers.  Soon [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.boingboing.net/2009/10/06/the-criticism-that-r.html"><img class="alignleft" style="margin-right: 8px; margin-left: 8px; margin-bottom: 8px;" title="Ralph Lauren Advertisement" src="http://www.boingboing.net/2009/09/29/lauren.jpg" alt="" width="180" height="315" /></a>Here we go again.</p>
<p>The DMCA has yet again been used in an attempt to squelch free speech and fair use, this time by Ralph Lauren.  A post last month on <a href="http://www.boingboing.net/">Boing Boing</a> featuring an advertisement in which a model had been photoshopped with bizarre proportions has drawn the ire of Ralph Lauren&#8217;s lawyers.  Soon after posting the ad, Boing Boing ISP, Canada&#8217;s Priority Colo, received a DMCA takedown notice, apparently citing a copyright violation.</p>
<p>Either these guys haven&#8217;t heard of fair use or they&#8217;re so embarrassed they&#8217;ll do anything to cover up this blunder.  Perhaps someone should introduce them to the <a href="http://en.wikipedia.org/wiki/Streisand_effect">Streisand Effect</a>.</p>
<div style="clear: both;">
In response to the takedown letter, Cory Doctorow, co-editor of Boing Boing, posted:</p>
<blockquote><p>So, instead of responding to their legal threat by suppressing our criticism of their marketing images, we&#8217;re gonna <em>mock them</em>. Hence this post.</p></blockquote>
<p>You can read the original article <a href="http://www.boingboing.net/2009/10/06/the-criticism-that-r.html">here</a>.
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.dallasedwards.com/?feed=rss2&amp;p=92</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Project Euler Problem 3</title>
		<link>http://www.dallasedwards.com/?p=74</link>
		<comments>http://www.dallasedwards.com/?p=74#comments</comments>
		<pubDate>Tue, 06 Oct 2009 19:31:38 +0000</pubDate>
		<dc:creator>Dallas</dc:creator>
				<category><![CDATA[Project Euler]]></category>
		<category><![CDATA[problem 3]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.dallasedwards.com/?p=74</guid>
		<description><![CDATA[This one was actually a little bit of a challenge.  My first attempt got the right answer, but took about 3 hours to do so.  After consulting some online resources (my girlfriend), and rediscovering prime factorization I rewrote  the program.  Now it takes under a second to solve the puzzle.
I thought this was interesting: if [...]]]></description>
			<content:encoded><![CDATA[<p>This one was actually a little bit of a challenge.  My first attempt got the right answer, but took about 3 hours to do so.  After consulting some online resources (my girlfriend), and rediscovering prime factorization I rewrote  the program.  Now it takes under a second to solve the puzzle.</p>
<p>I thought this was interesting: if you search &#8220;<a href="http://www.wolframalpha.com/input/?i=prime+factor+of+600851475143">prime factor of 600851475143</a>&#8221; on Wolfram Alpha it gives you all of the factorizations, including the answer.</p>
<blockquote><p>The prime factors of 13195 are 5, 7, 13 and 29.</p>
<p>What is the largest prime factor of the number 600851475143 ?</p></blockquote>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Collections.Generic</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Linq</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #008080;">System.Text</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF;">namespace</span> Project_Euler_3
<span style="color: #000000;">&#123;</span>
 <span style="color: #FF0000;">class</span> Program
 <span style="color: #000000;">&#123;</span>
  <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">void</span> Main<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> args<span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   <span style="color: #008000;">new</span> Program<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
&nbsp;
  Program<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   <span style="color: #FF0000;">ulong</span> compositeValue <span style="color: #008000;">=</span> <span style="color: #FF0000;">600851475143</span><span style="color: #008000;">;</span>
   <span style="color: #FF0000;">ulong</span> compositeFactor <span style="color: #008000;">=</span> compositeValue<span style="color: #008000;">;</span>
   <span style="color: #FF0000;">bool</span> isDone <span style="color: #008000;">=</span> false<span style="color: #008000;">;</span>
&nbsp;
   <span style="color: #0600FF;">while</span> <span style="color: #000000;">&#40;</span><span style="color: #008000;">!</span>isDone<span style="color: #000000;">&#41;</span>
   <span style="color: #000000;">&#123;</span>
    <span style="color: #FF0000;">ulong</span> prime <span style="color: #008000;">=</span> getNextPrime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
    <span style="color: #0600FF;">while</span> <span style="color: #000000;">&#40;</span>compositeFactor <span style="color: #008000;">%</span> prime <span style="color: #008000;">!=</span> <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>
     prime <span style="color: #008000;">=</span> getNextPrime<span style="color: #000000;">&#40;</span>prime<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
    compositeFactor <span style="color: #008000;">/=</span> prime<span style="color: #008000;">;</span>
&nbsp;
    <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>isPrimeValue<span style="color: #000000;">&#40;</span>compositeFactor<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
     isDone <span style="color: #008000;">=</span> true<span style="color: #008000;">;</span>
   <span style="color: #000000;">&#125;</span>
&nbsp;
   Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span>compositeFactor<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
   Console.<span style="color: #0000FF;">ReadKey</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
&nbsp;
  <span style="color: #FF0000;">ulong</span> getNextPrime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   <span style="color: #0600FF;">return</span> getNextPrime<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
&nbsp;
  <span style="color: #FF0000;">ulong</span> getNextPrime<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">ulong</span> value<span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   <span style="color: #FF0000;">ulong</span> nextPossiblePrime <span style="color: #008000;">=</span> value <span style="color: #008000;">+</span> <span style="color: #FF0000;">1</span><span style="color: #008000;">;</span>
&nbsp;
   <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #008000;">;</span> <span style="color: #008000;">!</span>isPrimeValue<span style="color: #000000;">&#40;</span>nextPossiblePrime<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span> nextPossiblePrime<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">;</span>
&nbsp;
   <span style="color: #0600FF;">return</span> nextPossiblePrime<span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
&nbsp;
  <span style="color: #FF0000;">bool</span> isPrimeValue<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">ulong</span> value<span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
   <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">ulong</span> i <span style="color: #008000;">=</span> <span style="color: #FF0000;">1</span><span style="color: #008000;">;</span> i <span style="color: #008000;">&lt;=</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">ulong</span><span style="color: #000000;">&#41;</span>Math.<span style="color: #0000FF;">Ceiling</span><span style="color: #000000;">&#40;</span>Math.<span style="color: #0000FF;">Sqrt</span><span style="color: #000000;">&#40;</span>value<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span> i<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span>
   <span style="color: #000000;">&#123;</span>
    <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>value <span style="color: #008000;">==</span> <span style="color: #FF0000;">1</span><span style="color: #000000;">&#41;</span>
     <span style="color: #0600FF;">return</span> false<span style="color: #008000;">;</span>
    <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>i <span style="color: #008000;">==</span> value<span style="color: #000000;">&#41;</span>
     <span style="color: #0600FF;">return</span> true<span style="color: #008000;">;</span>
    <span style="color: #0600FF;">else</span> <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>value <span style="color: #008000;">%</span> i <span style="color: #008000;">==</span> <span style="color: #FF0000;">0</span> <span style="color: #008000;">&amp;&amp;</span> i <span style="color: #008000;">!=</span> <span style="color: #FF0000;">1</span><span style="color: #000000;">&#41;</span>
     <span style="color: #0600FF;">return</span> false<span style="color: #008000;">;</span>
   <span style="color: #000000;">&#125;</span>
&nbsp;
   <span style="color: #0600FF;">return</span> true<span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>
 <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dallasedwards.com/?feed=rss2&amp;p=74</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
