<?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>Jared</title>
	<atom:link href="http://jaredlundquist.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://jaredlundquist.com</link>
	<description></description>
	<lastBuildDate>Sat, 27 Mar 2010 07:46:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Find the first visible day of a month</title>
		<link>http://jaredlundquist.com/?p=206</link>
		<comments>http://jaredlundquist.com/?p=206#comments</comments>
		<pubDate>Fri, 26 Mar 2010 18:20:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://jaredlundquist.com/?p=206</guid>
		<description><![CDATA[<p>From the very start of working on a calendar program I left a bug in it that could have been fixed if I knew how to find the first visible day of a month. I didn&#8217;t want the first day of the month. Note: This may be different depending on the type of calendar your developing and whether or not you want Monday as the first day of the week.<br />
Let&#8217;s say you have a month like this:<br />
s  m  t  w  r  f  s<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
27 28  1  2  3  4  5<br />
 6  7   8  9 10 11 12<br />
13 14 15 16 17 18 19<br />
20 21 22 23 24 25 26<br />
27 28 29 30 31</p>
<p>How do you calculate exactly what the first viewable Sunday is in those 5 rows(weeks)? (In this case it is 27)<br />
I spent a little time to develop an algorithm and below is some C# psuedocode. If you know how to do it a different way send me an email.<br />
<code><br />
        getFirstVisDayofMonth(int month, int year)<br />
        {<br />
                variable fDayofMonth. Set it to be a date from passed in variables(year, month, 1)<br />
                //Get the name for the 1st day of this month<br />
                Set fDayMStr =  Get the name representation for the day, fDayofMonth. (ex:"Monday")<br />
                variable firstViewableDay<br />
                variable prevMonth = AddMonths(-1) to fDayofMonth<br />
                variable countBackDay = #ofDaysInMonth(prevMonth.Year, prevMonth.Month)<br />
                switch (fDayMStr)<br />
                {<br />
                    case Sunday<br />
                          //Sunday is the 1st day of the month.<br />
                          Set firstViewableDay = fDayofMonth<br />
                    case Saturday<br />
                          Set firstViewableDay =  AddDays(-6) to fDayofMonth<br />
                    case Friday<br />
                          Set firstViewableDay =  AddDays(-5) to fDayofMonth<br />
                    case Thursday<br />
                          Set firstViewableDay =  AddDays(-4) to fDayofMonth<br />
                    case Wednesday<br />
                          Set firstViewableDay =  AddDays(-3) to fDayofMonth<br />
                    case Tuesday<br />
                          Set firstViewableDay =  AddDays(-2) to fDayofMonth<br />
                    case Monday<br />
                          Set firstViewableDay =  AddDays(-1) to fDayofMonth<br />
                }<br />
            firstViewableDay now contains the first visible day of the passed in month.<br />
        }<br />
</code></p>
]]></description>
		<wfw:commentRss>http://jaredlundquist.com/?feed=rss2&amp;p=206</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubleshooting a D-Link DPR-1260 Wireless Print Server</title>
		<link>http://jaredlundquist.com/?p=185</link>
		<comments>http://jaredlundquist.com/?p=185#comments</comments>
		<pubDate>Sun, 10 Jan 2010 23:57:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Main]]></category>

		<guid isPermaLink="false">http://jaredlundquist.com/?p=185</guid>
		<description><![CDATA[<p>I wanted to print to my two printers in a different room, but my D-Link DPR-1260 just wouldn&#8217;t let me. The DPR-1260 is a really great value for the money, with 4 USB ports you could potentially set it up with 4 different printers. It also includes a ethernet port so if you wanted you could set up a NAS (Network Attached Storage).</p>
<p>However, using the wizard D-Link provided it will print half a test page then stop, not very useful. This is how I fixed it.</p>
<p>According to this post by <span><strong>&#8220;talkview365&#8243;</strong></span> at this forum (<a href="http://help.lockergnome.com/general/link-DPR-1260-vista--ftopict52662.html">http://help.lockergnome.com/general/link-DPR-1260-vista&#8211;ftopict52662.html</a>) he found a way to add a printer using LPR protocol instead of TCP/IP.<br />
According to D-Link&#8217;s documentation, &#8220;LPR/LPD is more commonly used in Mac or Unix environments.&#8221; His post describes a fix for Vista, but I&#8217;m running Windows 7 and having the same problem. I altered my steps slightly because it wouldn&#8217;t work exactly the way talkview365 described.</p>
<ol>
<li>Go to the Start Menu &#8211; Control Panel &#8211; Hardware &amp; Sound &#8211; Printer</li>
<li>From the printer page, click on Add a Printer.</li>
<li>Choose to add a &#8220;Local Printer&#8221;</li>
<li>Choose &#8220;Create new port&#8221; and select Standard TCP/IP from the list. Click next.</li>
<li>Leave the first option, it should be autodetected. The hostname IP and port are BOTH going to be your dlink-xxxxxx (the x&#8217;s are the first 6 chars of your print server&#8217;s MAC address). Keep the box checked, then click next.</li>
<li>Wait for detection.</li>
<li>Choose custom and then click on Settings</li>
<li>From here, there&#8217;s 2 ways to set it up. Choose the <strong>2nd</strong> way, it is the only way that worked for me.
<ol>
<li>1st Way -
<ol>
<li>Leave the port and ip as is.</li>
<li>Protocal = RAW</li>
<li>RAW Setting = 9100 (default TCP/IP setting for DCP-1260 unless you changed it. Different for each printer so check first.)</li>
<li>Check the SNMP Status Enables: with option Public and 1 (default)</li>
<li>Click Ok.</li>
</ol>
</li>
<li>2nd Way -
<ol>
<li>Leave the port and IP as is.</li>
<li>Protocol = LPR</li>
<li>LPR Setting = In the DPR-1260s configuration in the Status page it will tell you the LPR Queue name. It will be different for each printer.</li>
<li>ENABLE &#8220;LPR Byte Counting Enabled&#8221; &lt;- This is what fixed the whole thing for me. For a better explanation why, go <a href="http://www.brooksnet.com/faq/212-01.html">here</a>. It references RFC1179.</li>
<li>Do NOT enable SNMP.</li>
<li>Click Ok.</li>
</ol>
</li>
</ol>
</li>
<li>From here, click Next.</li>
<li>On the following screen,  just choose your printer brand and model from the list, this is where you install your driver.</li>
<li>Click next. Do a test print and it should work.</li>
</ol>
<p>Now I can print wirelessly to my printers!</p>
<p>Thanks to the lockergnome.com forums and forum member talkview365. Also, the printers I tested successfully were a HP Photosmart C4100 series and a HP LaserJet 1200 series.</p>
]]></description>
		<wfw:commentRss>http://jaredlundquist.com/?feed=rss2&amp;p=185</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tekni-Cal Logo</title>
		<link>http://jaredlundquist.com/?p=176</link>
		<comments>http://jaredlundquist.com/?p=176#comments</comments>
		<pubDate>Wed, 14 Oct 2009 05:43:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Art & Animation]]></category>
		<category><![CDATA[Main]]></category>

		<guid isPermaLink="false">http://jaredlundquist.com/?p=176</guid>
		<description><![CDATA[<p>I&#8217;m creating a desktop calendar program that has a built-in Gantt Chart and syncs with online calendar services such as Google Calendar. Here&#8217;s my first revision of the logo.<br />
<img class="alignnone" title="Teknical Logo1" src="http://jaredlundquist.com/teknical/logo1.png" alt="" width="231" height="90" /></p>
]]></description>
		<wfw:commentRss>http://jaredlundquist.com/?feed=rss2&amp;p=176</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Private Eye Spam Detective</title>
		<link>http://jaredlundquist.com/?p=138</link>
		<comments>http://jaredlundquist.com/?p=138#comments</comments>
		<pubDate>Mon, 22 Jun 2009 07:07:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://jaredlundquist.com/?p=138</guid>
		<description><![CDATA[<p>Update (January 11th, 2010). This project is taking the back seat as I&#8217;m focusing more on my desktop calendar program.</p>
<p>Update (August 2nd, 2009). I have tried my program using Mozilla Thunderbird 3.0 Beta 3 and I can confirm that it works.</p>
<p>This program I&#8217;m working on plugs into Outlook Express (or it&#8217;s now known in Vista/Windows 7 as Windows Live Mail) and uses Bayesian Filtering. I believe it will work in Microsoft Outlook and Mozilla Thunderbird, but I&#8217;m still testing. I think this could really help people who want more control over spam in their desktop email programs. You&#8217;ll have complete control over what is determined as spam and not spam.</p>
<p><img src="http://jaredlundquist.com/PESDscreen2.png" alt="PESpamDectective" width="529" height="281" /></p>
<p><a href="http://jaredlundquist.com/PESDscreen2.png">picture link</a></p>
]]></description>
		<wfw:commentRss>http://jaredlundquist.com/?feed=rss2&amp;p=138</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Western Coast Rentals</title>
		<link>http://jaredlundquist.com/?p=137</link>
		<comments>http://jaredlundquist.com/?p=137#comments</comments>
		<pubDate>Fri, 08 May 2009 06:29:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Real Estate]]></category>

		<guid isPermaLink="false">http://jaredlundquist.com/?p=137</guid>
		<description><![CDATA[<p><a href="http://westerncoastrentals.com">Western Coast Rentals</a></p>
<p><img src="http://jaredlundquist.com/wcrsnapshot.png" alt="wcr snapshot" /></p>
]]></description>
		<wfw:commentRss>http://jaredlundquist.com/?feed=rss2&amp;p=137</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>April and May 2009 Firefighting Classes</title>
		<link>http://jaredlundquist.com/?p=130</link>
		<comments>http://jaredlundquist.com/?p=130#comments</comments>
		<pubDate>Tue, 24 Mar 2009 05:02:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Firefighting]]></category>

		<guid isPermaLink="false">http://jaredlundquist.com/?p=130</guid>
		<description><![CDATA[<p>Another website of mine, <a href="http://www.myfirecrew.com">MyFireCrew.com</a> has been updated with new April and May 2009 classes that will take place in Wilsonville, Oregon. Also, information about a Entry-Level class and a Saw Class is posted as well.</p>
]]></description>
		<wfw:commentRss>http://jaredlundquist.com/?feed=rss2&amp;p=130</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JBBCalc 1.0 Released!</title>
		<link>http://jaredlundquist.com/?p=125</link>
		<comments>http://jaredlundquist.com/?p=125#comments</comments>
		<pubDate>Sat, 28 Feb 2009 13:00:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jaredlundquist.com/?p=125</guid>
		<description><![CDATA[<p><a href="http://jaredlundquist.com/?page_id=124">JBBCalc</a> &#8211; &#8220;The useful calculator for BlackBerry smartphones.&#8221;</p>
<p>*Purchasing deactivated, but you can still enjoy the trial.</p>
<h2>
<pre><span style="text-decoration: underline;"><a href="http://jaredlundquist.com/JBBCalc.jad">Download (Over the Air OTA)</a> <a href="http://jaredlundquist.com/JBBCalc.jad"></a></span>              <span style="text-decoration: underline;"><a href="http://jaredlundquist.com/JBBCalc_Updates.txt">Updates Readme</a></span></pre>
</h2>
<p><img src="http://jaredlundquist.com/jbbcalc1.png" alt="" width="247" height="185" /><img src="http://jaredlundquist.com/JBBCalc-Tape.png" alt="" width="240" height="186" /></p>
]]></description>
		<wfw:commentRss>http://jaredlundquist.com/?feed=rss2&amp;p=125</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jason Rogers Wins Silver Medal in Beijing</title>
		<link>http://jaredlundquist.com/?p=121</link>
		<comments>http://jaredlundquist.com/?p=121#comments</comments>
		<pubDate>Tue, 19 Aug 2008 03:02:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jaredlundquist.com/?p=121</guid>
		<description><![CDATA[<p>Jason Rogers, a U.S. saber fencer in the 2008 Beijing Olympics won a silver medal Sunday. He is actually a cousin of mine, although I&#8217;ve never met him.</p>
<p>From the Chicago Tribune,</p>
<blockquote><p>BEIJING &#8211; In a match pitting the &#8220;Bleus&#8221; against the &#8220;Red, White and Blue,&#8221; France beat the United States Sunday in an improbable gold medal match in men&#8217;s team saber.</p>
<p>Improbable not because the French, considered the favorites coming into these Games, took home the gold in their second straight Olympics by defeating the Americans 45-37.</p>
<p>Improbable because the United States men&#8217;s saber team was not expected to make a blip in Beijing but found its way to the gold medal match Sunday evening after a stunning afternoon of upset wins. The seventh-seeded Americans &#8212; led by Keeth Smart, Tim Morehouse, <span class="taxInlineTagLink">James Williams</span> and Jason Rogers, who did not compete in the final &#8212; come home with the silver, their highest ever standing. Their only previous men&#8217;s team saber medal was bronze at the 1948 London Games.</p></blockquote>
<p><a href="http://www.chicagotribune.com/sports/olympics/cs-080817-mens-team-saber-united-states,0,3602565.story">http://www.chicagotribune.com/sports/olympics/cs-080817-mens-team-saber-united-states,0,3602565.story</a></p>
]]></description>
		<wfw:commentRss>http://jaredlundquist.com/?feed=rss2&amp;p=121</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2008 Summer California Wildfires</title>
		<link>http://jaredlundquist.com/?p=120</link>
		<comments>http://jaredlundquist.com/?p=120#comments</comments>
		<pubDate>Sun, 13 Jul 2008 18:33:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Firefighting]]></category>
		<category><![CDATA[Newsworthy Stories]]></category>

		<guid isPermaLink="false">http://jaredlundquist.com/?p=120</guid>
		<description><![CDATA[<p>Recently, I returned from fighting wildfires in Northern California. I have been in the Mt. Shasta area and Chester, CA for the past three weeks (Peterson Complex, Cub Fire, and Onion Fire). Temperatures were hot, often above 100 degrees and the relative humidity in some areas was in the low teens.</p>
<p>On my bus ride back up to Oregon as we were driving through Redding, the hills were releasing smoke on the west side of I-5. I found an article about this, <strong>Blaze rushes through hills west of Redding</strong> (<a href="http://www.redding.com/news/2008/jul/12/no-headline---a1fires12/">http://www.redding.com/news/2008/jul/12/no-headline&#8212;a1fires12/</a>)</p>
<blockquote><p>As the burgeoning fire swept through the hills west of Redding, Highway 299 was shut down and mandatory evacuations were issued in the French Gulch area. An advisory evacuation order was announced for some residents in the historic town of Shasta.</p></blockquote>
<p>From an article from the International Herald Tribune (<a href="http://www.iht.com/articles/2008/07/13/america/12wildfire.php">http://www.iht.com/articles/2008/07/13/america/12wildfire.php</a>),</p>
<blockquote><p>Hundreds of wildfires have blackened nearly 1,200 square miles, or 3,100 square kilometers, and destroyed about 100 homes across California since a rare lightning storm ignited most of them three weeks ago.</p>
<p>Officials say more fires have been burning at one time this year than during any other period in recorded California history.</p>
<p>&#8220;This is truly a national disaster. The magnitude is incredible,&#8221; said Daniel Berlant, a state fire agency spokesman.</p>
<p>Jason Kirchner, a spokesman for U.S. Forest Service, said firefighters had spent hundreds of millions of dollars fighting the blazes.</p>
<p>About 20,000 firefighters from 41 states and Puerto Rico were fighting more than 320 active fires around the state, and more were on the way from Mexico, Canada, Australia and New Zealand. Governor Arnold Schwarzenegger has ordered 2,400 members of the National Guard to join the fire crews on the ground, the first time for the first time in more than 30 years.</p></blockquote>
]]></description>
		<wfw:commentRss>http://jaredlundquist.com/?feed=rss2&amp;p=120</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Greg Kroah-Hartmann Visits my Operating Systems II Class</title>
		<link>http://jaredlundquist.com/?p=119</link>
		<comments>http://jaredlundquist.com/?p=119#comments</comments>
		<pubDate>Fri, 30 May 2008 02:48:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Unix]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jaredlundquist.com/?p=119</guid>
		<description><![CDATA[<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">Greg Kroah-Hartmann, a leader in the linux community, visited my CS411 class last Friday, May 23rd.</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">He works for Novell in the <span class="mw-redirect">SUSE</span> Labs division, based out of Nurumberg, Germany. He said only one person works there in Germany while everyone else works around the world.</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">He explained how the hierarchy of the people who develop linux works. It&#8217;s very efficient because at some point a file will have been touched by at least two people.</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">Linus Torvalds and Andrew Morton used to pull the subsystem trees together by themselves, but now they use something better called Linux NEXT.</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">I asked him what kind of source control program was his favorite to which he replied, &#8220;git&#8221;.</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">There are some stagnated areas in the kernel development like PCMCIA and serial ports, but then again some older ports have been really active.</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">One thing I liked to hear was that he said, &#8220;The most linux kernel developers in the world are in Portland.&#8221; so I&#8217;m not too far away from some good innovators.</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;"><a href="http://en.wikipedia.org/wiki/Greg_Kroah-Hartman">Greg on wikipedia</a></p>
]]></description>
		<wfw:commentRss>http://jaredlundquist.com/?feed=rss2&amp;p=119</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
