<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dan Schwartz</title>
	<atom:link href="http://danschwartz.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://danschwartz.wordpress.com</link>
	<description>trying to be a software developer</description>
	<lastBuildDate>Tue, 29 Nov 2011 12:18:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='danschwartz.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Dan Schwartz</title>
		<link>http://danschwartz.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://danschwartz.wordpress.com/osd.xml" title="Dan Schwartz" />
	<atom:link rel='hub' href='http://danschwartz.wordpress.com/?pushpress=hub'/>
		<item>
		<title>mono can be a bitch &#8211; the following assembly could not be loaded: System.Windows.Forms</title>
		<link>http://danschwartz.wordpress.com/2011/11/09/mono-can-be-a-bitch-the-following-assembly-could-not-be-loaded-system-windows-forms/</link>
		<comments>http://danschwartz.wordpress.com/2011/11/09/mono-can-be-a-bitch-the-following-assembly-could-not-be-loaded-system-windows-forms/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 17:15:27 +0000</pubDate>
		<dc:creator>DJ</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mono]]></category>

		<guid isPermaLink="false">http://danschwartz.wordpress.com/?p=102</guid>
		<description><![CDATA[What the hell does this mean? ** (MyProgram.exe:2938): WARNING **: The following assembly referenced from /home/dj/Development/MyProgram/MyProgram.exe could not be loaded: Assembly:   System.Windows.Forms    (assemblyref_index=1) Version:    2.0.0.0 Public Key: b77a5c561934e089 The assembly was not found in the Global Assembly Cache, a path &#8230; <a href="http://danschwartz.wordpress.com/2011/11/09/mono-can-be-a-bitch-the-following-assembly-could-not-be-loaded-system-windows-forms/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=102&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What the hell does this mean?</p>
<p>** (MyProgram.exe:2938): WARNING **: The following assembly referenced from /home/dj/Development/MyProgram/MyProgram.exe could not be loaded:<br />
Assembly:   System.Windows.Forms    (assemblyref_index=1)<br />
Version:    2.0.0.0<br />
Public Key: b77a5c561934e089<br />
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/dj/Development/MyProgram/).</p>
<p>** (MyProgram.exe:2938): WARNING **: Could not load file or assembly &#8216;System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8242; or one of its dependencies.</p>
<p>** (MyProgram.exe:2938): WARNING **: Missing method EnableVisualStyles in assembly /home/dj/Development/MyProgram/MyProgram.exe, type System.Windows.Forms.Application</p>
<p>Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly &#8216;System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8242; or one of its dependencies.<br />
File name: &#8216;System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8242;</p>
<p>it means (or at least it did for me) that you need to:</p>
<p><strong>sudo apt-get install libmono-winforms2.0-cil</strong></p>
<br />Filed under: <a href='http://danschwartz.wordpress.com/category/net/'>.NET</a>, <a href='http://danschwartz.wordpress.com/category/linux/'>Linux</a>, <a href='http://danschwartz.wordpress.com/category/mono/'>Mono</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danschwartz.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danschwartz.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danschwartz.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danschwartz.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danschwartz.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danschwartz.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danschwartz.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danschwartz.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danschwartz.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danschwartz.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danschwartz.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danschwartz.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danschwartz.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danschwartz.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=102&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danschwartz.wordpress.com/2011/11/09/mono-can-be-a-bitch-the-following-assembly-could-not-be-loaded-system-windows-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbaa5f1dbad2ef914119dcd1ebe29b7?s=96&#38;d=wavatar&#38;r=R" medium="image">
			<media:title type="html">dan</media:title>
		</media:content>
	</item>
		<item>
		<title>Automatic Reference Counting Issue</title>
		<link>http://danschwartz.wordpress.com/2011/10/23/automatic-reference-counting-issue/</link>
		<comments>http://danschwartz.wordpress.com/2011/10/23/automatic-reference-counting-issue/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 04:11:32 +0000</pubDate>
		<dc:creator>DJ</dc:creator>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://danschwartz.wordpress.com/?p=98</guid>
		<description><![CDATA[I just started following the Core Data Tutorial for iOS and wanted to apply Core Data to an existing project.  I got up to a point where I was init-ing my NSManagedObjectModel.  I started to get some errors that didn&#8217;t &#8230; <a href="http://danschwartz.wordpress.com/2011/10/23/automatic-reference-counting-issue/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=98&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just started following the Core Data Tutorial for iOS and wanted to apply Core Data to an existing project.  I got up to a point where I was init-ing my NSManagedObjectModel.  I started to get some errors that didn&#8217;t make sense right away.</p>
<p>Automatic Reference Counting Issue<br />
Receiver &#8216;NSManagedObjectModel&#8217; for class message is a forward declaration</p>
<p>I discovered that this error really means I&#8217;m missing an #import of some CoreData stuff.  To fix the problem I simply add the following line to /Supporting Files/projectName-Prefix.pch.</p>
<p>#import &lt;CoreData/CoreData.h&gt;</p>
<br />Filed under: <a href='http://danschwartz.wordpress.com/category/ios/'>iOS</a>, <a href='http://danschwartz.wordpress.com/category/objective-c/'>Objective-C</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danschwartz.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danschwartz.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danschwartz.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danschwartz.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danschwartz.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danschwartz.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danschwartz.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danschwartz.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danschwartz.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danschwartz.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danschwartz.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danschwartz.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danschwartz.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danschwartz.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=98&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danschwartz.wordpress.com/2011/10/23/automatic-reference-counting-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbaa5f1dbad2ef914119dcd1ebe29b7?s=96&#38;d=wavatar&#38;r=R" medium="image">
			<media:title type="html">dan</media:title>
		</media:content>
	</item>
		<item>
		<title>Resetting GNOME panels</title>
		<link>http://danschwartz.wordpress.com/2011/04/10/resetting-gnome-panels/</link>
		<comments>http://danschwartz.wordpress.com/2011/04/10/resetting-gnome-panels/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 15:46:17 +0000</pubDate>
		<dc:creator>DJ</dc:creator>
				<category><![CDATA[GNOME]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://danschwartz.wordpress.com/?p=95</guid>
		<description><![CDATA[Using Ubuntu I end up screwing up my taskbar a lot.  This is an easy way to get them back to their default state: gconftool &#8211;recursive-unset /apps/panel rm -rf ~/.gconf/apps/panel pkill gnome-panel That should get them back to their default &#8230; <a href="http://danschwartz.wordpress.com/2011/04/10/resetting-gnome-panels/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=95&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using Ubuntu I end up screwing up my taskbar a lot.  This is an easy way to get them back to their default state:</p>
<p><strong><em>gconftool &#8211;recursive-unset /apps/panel</em></strong></p>
<p><strong><em>rm -rf ~/.gconf/apps/panel</em></strong></p>
<p><strong><em>pkill gnome-panel</em></strong></p>
<p>That should get them back to their default state!</p>
<br />Filed under: <a href='http://danschwartz.wordpress.com/category/gnome/'>GNOME</a>, <a href='http://danschwartz.wordpress.com/category/ubuntu/'>Ubuntu</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danschwartz.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danschwartz.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danschwartz.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danschwartz.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danschwartz.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danschwartz.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danschwartz.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danschwartz.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danschwartz.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danschwartz.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danschwartz.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danschwartz.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danschwartz.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danschwartz.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=95&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danschwartz.wordpress.com/2011/04/10/resetting-gnome-panels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbaa5f1dbad2ef914119dcd1ebe29b7?s=96&#38;d=wavatar&#38;r=R" medium="image">
			<media:title type="html">dan</media:title>
		</media:content>
	</item>
		<item>
		<title>ActiveRecord HQL LIKE query with parameters</title>
		<link>http://danschwartz.wordpress.com/2010/06/30/activerecord-hql-like-query-with-parameters/</link>
		<comments>http://danschwartz.wordpress.com/2010/06/30/activerecord-hql-like-query-with-parameters/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 20:26:33 +0000</pubDate>
		<dc:creator>DJ</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[ActiveRecord]]></category>
		<category><![CDATA[HQL]]></category>

		<guid isPermaLink="false">http://danschwartz.wordpress.com/?p=89</guid>
		<description><![CDATA[I get asked almost every day never how to do a LIKE in an HQL query with parameters. I want to change this string hql = "FROM Table t WHERE t.Name=:nameParameter"; into this string hql = "FROM Table t WHERE &#8230; <a href="http://danschwartz.wordpress.com/2010/06/30/activerecord-hql-like-query-with-parameters/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=89&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I get asked almost every day never how to do a LIKE in an HQL query with parameters.</p>
<p>I want to change this</p>
<pre>string hql = "FROM Table t WHERE t.Name=:nameParameter";</pre>
<p>into this</p>
<pre>string hql = "FROM Table t WHERE t.Name LIKE %:nameParameter%";</pre>
<p>It isn&#8217;t that simple, this will throw a QueryException.</p>
<p>With a little help from <a href="http://www.stpe.se/2008/07/hibernate-hql-like-query-named-parameters/" target="_blank">Stefan Pettersson&#8217;s blog</a> I found my solution, add the percent signs inside the parameter.</p>
<pre>string hql = "FROM Table t WHERE t.Name LIKE %:nameParameter%";
query.SetParameter("nameParameter", "%" + nameParameter + "%");</pre>
<br />Filed under: <a href='http://danschwartz.wordpress.com/category/c/'>C#</a> Tagged: <a href='http://danschwartz.wordpress.com/tag/activerecord/'>ActiveRecord</a>, <a href='http://danschwartz.wordpress.com/tag/hql/'>HQL</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danschwartz.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danschwartz.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danschwartz.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danschwartz.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danschwartz.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danschwartz.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danschwartz.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danschwartz.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danschwartz.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danschwartz.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danschwartz.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danschwartz.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danschwartz.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danschwartz.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=89&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danschwartz.wordpress.com/2010/06/30/activerecord-hql-like-query-with-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbaa5f1dbad2ef914119dcd1ebe29b7?s=96&#38;d=wavatar&#38;r=R" medium="image">
			<media:title type="html">dan</media:title>
		</media:content>
	</item>
		<item>
		<title>Xubuntu windows cover the taskbar and don&#8217;t have resize buttons</title>
		<link>http://danschwartz.wordpress.com/2010/04/25/xubuntu-windows-cover-the-taskbar-and-dont-have-resize-buttons/</link>
		<comments>http://danschwartz.wordpress.com/2010/04/25/xubuntu-windows-cover-the-taskbar-and-dont-have-resize-buttons/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 16:54:11 +0000</pubDate>
		<dc:creator>DJ</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Xubuntu]]></category>

		<guid isPermaLink="false">http://danschwartz.wordpress.com/?p=82</guid>
		<description><![CDATA[I installed Xubuntu 9.10 on an old desktop system this morning.  That bring my house to 3 Xubuntu and 1 Windows Vista.  But there was a problem with my windows when I opened any program.  The didn&#8217;t have the normal &#8230; <a href="http://danschwartz.wordpress.com/2010/04/25/xubuntu-windows-cover-the-taskbar-and-dont-have-resize-buttons/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=82&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I installed Xubuntu 9.10 on an old desktop system this morning.  That bring my house to 3 Xubuntu and 1 Windows Vista.  But there was a problem with my windows when I opened any program.  The didn&#8217;t have the normal minimize, maximize, close buttons in the upper right corner.  Also the windows covered the taskbar in the upper left corner of the desktop.  I was not able to alt+tab between windows when I did manage to get 2 programs open at the same time.  See screen shot below:</p>
<p><a href="http://danschwartz.files.wordpress.com/2010/04/firefox.png"><img class="alignnone size-full wp-image-83" title="firefox" src="http://danschwartz.files.wordpress.com/2010/04/firefox.png?w=584" alt=""   /></a></p>
<p>This was quite frustrating but it didn&#8217;t take long to find an easy fix.</p>
<p>Thanks to some forums that I can&#8217;t find now again I was able to open a termial window and type:</p>
<h2 style="padding-left:30px;"><strong>xfwm4 &#8211;replace &amp;</strong></h2>
<p>This immediately fixed the problem.  I hope it works for you as well.</p>
<p>UPDATE:</p>
<p>Now once in a while my desktop loads up and I don&#8217;t get any task bar.  My windows are at least resizable and movable but it is still annoying.  After a quick search I found that I can do alt+F2 and then type <strong>xfce4-panel</strong> which bring back my taskbar.</p>
<p>It only happens sometimes and I&#8217;m not sure how to permanently fix it.  Let me know if you have any ideas.</p>
<br />Filed under: <a href='http://danschwartz.wordpress.com/category/linux/'>Linux</a>, <a href='http://danschwartz.wordpress.com/category/uncategorized/'>Uncategorized</a> Tagged: <a href='http://danschwartz.wordpress.com/tag/xubuntu/'>Xubuntu</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danschwartz.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danschwartz.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danschwartz.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danschwartz.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danschwartz.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danschwartz.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danschwartz.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danschwartz.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danschwartz.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danschwartz.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danschwartz.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danschwartz.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danschwartz.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danschwartz.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=82&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danschwartz.wordpress.com/2010/04/25/xubuntu-windows-cover-the-taskbar-and-dont-have-resize-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbaa5f1dbad2ef914119dcd1ebe29b7?s=96&#38;d=wavatar&#38;r=R" medium="image">
			<media:title type="html">dan</media:title>
		</media:content>

		<media:content url="http://danschwartz.files.wordpress.com/2010/04/firefox.png" medium="image">
			<media:title type="html">firefox</media:title>
		</media:content>
	</item>
		<item>
		<title>How to find what program has a port open on Windows XP</title>
		<link>http://danschwartz.wordpress.com/2010/04/06/how-to-find-what-program-has-a-port-open-on-windows-xp/</link>
		<comments>http://danschwartz.wordpress.com/2010/04/06/how-to-find-what-program-has-a-port-open-on-windows-xp/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 01:15:18 +0000</pubDate>
		<dc:creator>DJ</dc:creator>
				<category><![CDATA[DOS]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[tasklist]]></category>

		<guid isPermaLink="false">http://danschwartz.wordpress.com/?p=71</guid>
		<description><![CDATA[If you ever need to figure out what program might have a specific port open for some reason here is an easy 2 steps that will get you what you need. From a command prompt type: netstat -noa &#124; findstr &#8230; <a href="http://danschwartz.wordpress.com/2010/04/06/how-to-find-what-program-has-a-port-open-on-windows-xp/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=71&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you ever need to figure out what program might have a specific port open for some reason here is an easy 2 steps that will get you what you need.</p>
<p>From a command prompt type:</p>
<p><code>netstat -noa | findstr :1042</code></p>
<p>this should give you some output that looks similar to this:</p>
<p>TCP     0.0.0.0:1042     0.0.0.0:0     LISTENING     1952</p>
<p>From that line you take the last number (1952) which represents the process id.  Then type:</p>
<p><code>tasklist /fi "PID eq 1952"</code></p>
<p>Here is the result as you would see this whole process.</p>
<p><a href="http://danschwartz.files.wordpress.com/2010/04/netstat.png"><img class="alignnone" title="netstat" src="http://danschwartz.files.wordpress.com/2010/04/netstat.png?w=584" alt="netstat example" /></a></p>
<p>I&#8217;ve found myself having to look up how to do that twice.  Now that I&#8217;ve written it here I&#8217;ll remember it.</p>
<br />Filed under: <a href='http://danschwartz.wordpress.com/category/dos/'>DOS</a> Tagged: <a href='http://danschwartz.wordpress.com/tag/netstat/'>netstat</a>, <a href='http://danschwartz.wordpress.com/tag/tasklist/'>tasklist</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danschwartz.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danschwartz.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danschwartz.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danschwartz.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danschwartz.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danschwartz.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danschwartz.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danschwartz.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danschwartz.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danschwartz.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danschwartz.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danschwartz.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danschwartz.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danschwartz.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=71&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danschwartz.wordpress.com/2010/04/06/how-to-find-what-program-has-a-port-open-on-windows-xp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbaa5f1dbad2ef914119dcd1ebe29b7?s=96&#38;d=wavatar&#38;r=R" medium="image">
			<media:title type="html">dan</media:title>
		</media:content>

		<media:content url="http://danschwartz.files.wordpress.com/2010/04/netstat.png" medium="image">
			<media:title type="html">netstat</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing a Canon Pixma MX700 over network on Linux (Xubuntu 9.10)</title>
		<link>http://danschwartz.wordpress.com/2010/02/10/installing-a-canon-pixma-mx700-over-network-on-linux-xubuntu-9-10/</link>
		<comments>http://danschwartz.wordpress.com/2010/02/10/installing-a-canon-pixma-mx700-over-network-on-linux-xubuntu-9-10/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 06:05:39 +0000</pubDate>
		<dc:creator>DJ</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Canon]]></category>
		<category><![CDATA[MX700]]></category>
		<category><![CDATA[Pixma]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Xubuntu]]></category>

		<guid isPermaLink="false">http://danschwartz.wordpress.com/?p=66</guid>
		<description><![CDATA[This has been a huge pain in the ass.  Over the past couple of days I&#8217;ve successfully installed my Canon Pixma MX700 over the network on both Ubuntu and Xubuntu 9.10.   I eventually found this post on the Ubuntu forums &#8230; <a href="http://danschwartz.wordpress.com/2010/02/10/installing-a-canon-pixma-mx700-over-network-on-linux-xubuntu-9-10/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=66&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This has been a huge pain in the ass.  Over the past couple of days I&#8217;ve successfully installed my Canon Pixma MX700 over the network on both Ubuntu and Xubuntu 9.10.   I eventually found <a href="http://ubuntuforums.org/showthread.php?t=1227295" target="_blank">this post on the Ubuntu forums</a> that led me to the information I needed.  It was still spread out on a few different sites so I decided I&#8217;d make a guide here that details everything I did to get it working.</p>
<p>I don&#8217;t understand what exactly was going on in every step, but it did work.  I was working on Xubuntu 9.10 that had just been installed and updated.</p>
<p><strong>apt-get install libcups2-dev</strong></p>
<p>Download the following files:</p>
<ul>
<li><a href="http://ftp.akl.lt/Linux/Baltix/Baltix-Ubuntu-packages/gutsy/Canon-printing+scan/cnijfilter-common_2.80-1_i386.deb">http://ftp.akl.lt/Linux/Baltix/Baltix-Ubuntu-packages/gutsy/Canon-printing+scan/cnijfilter-common_2.80-1_i386.deb</a></li>
<li><a href="http://ftp.akl.lt/baltix-linux/Baltix-Ubuntu-packages/baltix-3.x/Canon-printing+scan/cnijfilter-mp520series_2.80-1_i386.deb">http://ftp.akl.lt/baltix-linux/Baltix-Ubuntu-packages/baltix-3.x/Canon-printing+scan/cnijfilter-mp520series_2.80-1_i386.deb</a></li>
</ul>
<p><strong>apt-get install alien</strong></p>
<p>You may have to do <strong>apt-get install -f</strong></p>
<p>Seems the files downloaded in step number 2 need some special conversion if you are using version 9.10 or later, issue the following commands</p>
<ul>
<li>alien -r cnijfilter-common_2.80-1_i386.deb</li>
<li>alien cnijfilter-common-2.80-2.i386.rpm</li>
</ul>
<p>Insall the new deb file created in the previous step: <strong>dpkg -i cnijfilter-common_2.80-3_i386.deb</strong></p>
<p>Do the same for the other file downloaded:</p>
<ul>
<li>alien -r cnijfilter-mp520series-2.80-i.i386.deb</li>
<li>alien cnijfilter-mp520series-2.80-2.i386.rpm &#8211;scripts</li>
</ul>
<p>Insall the new file again: <strong>dpkg -i cnijfilter-mp520series_2.80-3_i386.deb</strong></p>
<p><strong>mkdir /usr/share/cups/model</strong> &#8211; download <a href="http://ubuntuforums.org/attachment.php?attachmentid=54929&amp;d=1199213424">http://ubuntuforums.org/attachment.php?attachmentid=54929&amp;d=1199213424</a> &amp; <strong>mv canonmx700.ppd.txt /usr/share/cups/model/canonmx700.ppd</strong></p>
<p>Download the cups-bjnp.  This allows CUPS to print over the network.  <a href="http://sourceforge.net/projects/cups-bjnp/files/" target="_blank">http://sourceforge.net/projects/cups-bjnp/files/</a> I got version 0.5.4 which does say it works with CUPS version 1.2 and 1.3.  I have CUPS version 1.4.1 which did end up working.</p>
<p>Unpack the downloaded file <strong>tar xvzf cups-bjnp-0.5.4.tar.gz</strong> and then change into the new directory <strong>cd cups-bjnp-0.5.4</strong>.</p>
<p>Now set up this package: <strong>./configure</strong> and then <strong>make install</strong></p>
<p>type ./bjnp to test the installation so far.  You should get back a long string back that starts out like &#8220;network <!-- m --><a href="8611">bjnp://192.168.11.12:8611</a><!-- m --> &#8220;Canon MX700 series&#8230;..&#8221;</p>
<p>this might be a good time to restart CUPS: <strong>/etc/init.d/cups restart</strong></p>
<p>Now you have to open a web browser and go to <a href="http://localhost:631/" target="_blank">http://localhost:631/</a>.  Click on the administration tab and the &#8220;Add Printer&#8221; button.  Hopefully you will eventually see your printer show up on a list.  Select it and follow the next couple of step with the default settings.  When you are asked to select from a list or browse for a file &#8211; browse and select the file copied ea rlier /usr/share/cups/model/canonmx70.ppd.</p>
<p>When I look at the Show Completed Jobs on the CUPS admin website I see <em>&#8220;Failed to read side-channel request!&#8221;</em> in the state column.  This made me think my print jobs were not done, but they were actually going through and printing.</p>
<p>Hopefully your printer is now ready to print over the network from your Ubuntu or Xubuntu 9.10 computer.</p>
<br />Filed under: <a href='http://danschwartz.wordpress.com/category/linux/'>Linux</a> Tagged: <a href='http://danschwartz.wordpress.com/tag/canon/'>Canon</a>, <a href='http://danschwartz.wordpress.com/tag/linux/'>Linux</a>, <a href='http://danschwartz.wordpress.com/tag/mx700/'>MX700</a>, <a href='http://danschwartz.wordpress.com/tag/pixma/'>Pixma</a>, <a href='http://danschwartz.wordpress.com/tag/ubuntu/'>Ubuntu</a>, <a href='http://danschwartz.wordpress.com/tag/xubuntu/'>Xubuntu</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danschwartz.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danschwartz.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danschwartz.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danschwartz.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danschwartz.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danschwartz.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danschwartz.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danschwartz.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danschwartz.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danschwartz.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danschwartz.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danschwartz.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danschwartz.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danschwartz.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=66&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danschwartz.wordpress.com/2010/02/10/installing-a-canon-pixma-mx700-over-network-on-linux-xubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbaa5f1dbad2ef914119dcd1ebe29b7?s=96&#38;d=wavatar&#38;r=R" medium="image">
			<media:title type="html">dan</media:title>
		</media:content>
	</item>
		<item>
		<title>WPF Binding to nullable types</title>
		<link>http://danschwartz.wordpress.com/2010/02/01/wpf-binding-to-nullable-types/</link>
		<comments>http://danschwartz.wordpress.com/2010/02/01/wpf-binding-to-nullable-types/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 15:55:25 +0000</pubDate>
		<dc:creator>DJ</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://danschwartz.wordpress.com/?p=64</guid>
		<description><![CDATA[WPF binding can be confusing.  There are still times where I encounter a problem that I have no idea how to solve.  Thanks to Google I usually find my solution. Today I was working with binding on a text field &#8230; <a href="http://danschwartz.wordpress.com/2010/02/01/wpf-binding-to-nullable-types/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=64&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>WPF binding can be confusing.  There are still times where I encounter a problem that I have no idea how to solve.  Thanks to Google I usually find my solution.</p>
<p>Today I was working with binding on a text field to a nullable double property.  Consider the following situation: My textbox and property both start out with a valid double value.  Then I delete everything from the textbox.  At the point my setter should fire for the property it sees an empty string and doesn’t assign any value because my property is a double.  So how do you actually get that to recognize that is should change the property to null?</p>
<p>Thanks to <a href="http://discoveringdotnet.alexeyev.org/2009/03/binding-to-nullable-values-wpf.html" target="_blank">Maxim Alexeyev’s Discoverting .NET</a> blog I was able to find the easy solution.</p>
<p>Add <strong>TargetNullValue</strong> to your binding.  Now my binding looks like this.</p>
<p><em>Text=”{Binding SomeNullableDoubleProperty, TargetNullValue={x:Static System:String.Empty}}”</em></p>
<p>This makes sure that anytime my textbox sees a String.Empty it knows to treat that as a null. When I remove any value from the textbox a null value is set to my nullable double type and everyone is happy!</p>
<br />Filed under: <a href='http://danschwartz.wordpress.com/category/uncategorized/'>Uncategorized</a> Tagged: <a href='http://danschwartz.wordpress.com/tag/wpf/'>WPF</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danschwartz.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danschwartz.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danschwartz.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danschwartz.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danschwartz.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danschwartz.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danschwartz.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danschwartz.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danschwartz.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danschwartz.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danschwartz.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danschwartz.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danschwartz.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danschwartz.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danschwartz.wordpress.com&amp;blog=911073&amp;post=64&amp;subd=danschwartz&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danschwartz.wordpress.com/2010/02/01/wpf-binding-to-nullable-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbaa5f1dbad2ef914119dcd1ebe29b7?s=96&#38;d=wavatar&#38;r=R" medium="image">
			<media:title type="html">dan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
