<?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>SpearSoft Tech</title>
	<atom:link href="http://www.spearsofttech.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spearsofttech.com</link>
	<description>Technology on Target</description>
	<lastBuildDate>Mon, 20 Feb 2012 17:22:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>What is the best design practice when you have a class where properties are dependent on a web service call?</title>
		<link>http://stackoverflow.com/questions/9364858/what-is-the-best-design-practice-when-you-have-a-class-where-properties-are-depe</link>
		<comments>http://stackoverflow.com/questions/9364858/what-is-the-best-design-practice-when-you-have-a-class-where-properties-are-depe#comments</comments>
		<pubDate>Mon, 20 Feb 2012 16:44:09 +0000</pubDate>
		<dc:creator>Seth Spearman</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[Stackoverflow.com]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[design-patterns]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[stackoverflow]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/q/9364858</guid>
		<description><![CDATA[
            If I have a class with some read-only properties that are populated by a web service call, what is considered the best way to design this?

Is it considered proper for the property getters to make the web service call.  It seems that the d...]]></description>
			<content:encoded><![CDATA[<pre><code>        &lt;p&gt;If I have a class with some read-only properties that are populated by a web service call, what is considered the best way to design this?&lt;/p&gt;
</code></pre>

<p>Is it considered proper for the property getters to make the web service call.  It seems that the downside of this is that the getter is doing more than one thing and obscures the expense of the call.  I realize that any of the property getters only needs to make the web service call once (by checking for nulls or flag before making the call).  But that a single property getter could potentially be setting the private fields for other properties seems to smell to me.</p>

<p>On the other hand if I have have a public method (ie InitWebServiceVals) that calls the web service and updates the private fields I am creating a temporal dependency between the method and the property getters.  So the API obscures the fact that you shouldn't read a property until the "InitWebServiceVals" is called.  </p>

<p>Or is there some other method or pattern that addresses this? For example, making the webservice call in the constructor?  Or is this generally indicative of a design issue?</p>

<p>I have run into this issue a number of times and I always ended up preferring the second method to the first.</p>

<p>Any thoughts?</p>

<p>Seth</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spearsofttech.com/2012/02/20/what-is-the-best-design-practice-when-you-have-a-class-where-properties-are-dependent-on-a-web-service-call/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment by Seth Spearman on I need a regular expression that looks for &lt;IPADDRESS&gt; [x]created and excludes one particular IP address</title>
		<link>http://stackoverflow.com/questions/9135700/i-need-a-regular-expression-that-looks-for-ipaddress-xcreated-and-excludes-o</link>
		<comments>http://stackoverflow.com/questions/9135700/i-need-a-regular-expression-that-looks-for-ipaddress-xcreated-and-excludes-o#comments</comments>
		<pubDate>Fri, 03 Feb 2012 21:36:48 +0000</pubDate>
		<dc:creator>Seth Spearman</dc:creator>
				<category><![CDATA[Stackoverflow.com]]></category>
		<category><![CDATA[stackoverflow]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/9135700/i-need-a-regular-expression-that-looks-for-ipaddress-xcreated-and-excludes-o?cid=11483033</guid>
		<description><![CDATA[I did not try anything.  I have 0 knowledge of regex.]]></description>
			<content:encoded><![CDATA[<p>I did not try anything.  I have 0 knowledge of regex.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spearsofttech.com/2012/02/03/comment-by-seth-spearman-on-i-need-a-regular-expression-that-looks-for-ipaddress-xcreated-and-excludes-one-particular-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I need a regular expression that looks for &lt;IPADDRESS&gt; [x]created and excludes one particular IP address</title>
		<link>http://stackoverflow.com/questions/9135700/i-need-a-regular-expression-that-looks-for-ipaddress-xcreated-and-excludes-o</link>
		<comments>http://stackoverflow.com/questions/9135700/i-need-a-regular-expression-that-looks-for-ipaddress-xcreated-and-excludes-o#comments</comments>
		<pubDate>Fri, 03 Feb 2012 21:24:44 +0000</pubDate>
		<dc:creator>Seth Spearman</dc:creator>
				<category><![CDATA[Stackoverflow.com]]></category>
		<category><![CDATA[re]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[stackoverflow]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/q/9135700</guid>
		<description><![CDATA[
            I want to open some log files one at a time and look for a certain string...

13:15:55 &#60;AN IP ADDRESS&#62; [2]created /myfile.zip 226 0


The key is that want to find files that have HAS an IP ADDRESS but EXCLUDES one particular IP addre...]]></description>
			<content:encoded><![CDATA[
            <p>I want to open some log files one at a time and look for a certain string...</p>

<pre><code>13:15:55 &lt;AN IP ADDRESS&gt; [2]created /myfile.zip 226 0
</code></pre>

<p>The key is that want to find files that have HAS an IP ADDRESS but EXCLUDES one particular IP address and that then has the "[2]created" part of the string.  The number in brackets may vary.  </p>

<p>Thanks.</p>

<p>Seth</p>

        ]]></content:encoded>
			<wfw:commentRss>http://www.spearsofttech.com/2012/02/03/i-need-a-regular-expression-that-looks-for-ipaddress-xcreated-and-excludes-one-particular-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Weekly Updates for 2012-01-29</title>
		<link>http://www.spearsofttech.com/2012/01/29/twitter-weekly-updates-for-2012-01-29/</link>
		<comments>http://www.spearsofttech.com/2012/01/29/twitter-weekly-updates-for-2012-01-29/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 08:00:00 +0000</pubDate>
		<dc:creator>Seth Spearman</dc:creator>
				<category><![CDATA[Twitter]]></category>
		<category><![CDATA[tweets]]></category>

		<guid isPermaLink="false">http://www.spearsofttech.com/2012/01/29/twitter-weekly-updates-for-2012-01-29/</guid>
		<description><![CDATA[New post as http://t.co/q0Q9Y0TS &#8211; : To restore a &#34;plain&#34; postgresql backup &#8230; http://t.co/EZWaiR7B #twittertools # Powered by Twitter Tools]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>New post as <a href="http://t.co/q0Q9Y0TS" rel="nofollow">http://t.co/q0Q9Y0TS</a> &#8211; : To restore a &quot;plain&quot; postgresql backup &#8230;  <a href="http://t.co/EZWaiR7B" rel="nofollow">http://t.co/EZWaiR7B</a> #<a href="http://search.twitter.com/search?q=%23twittertools" class="aktt_hashtag">twittertools</a> <a href="http://twitter.com/sethspearman/statuses/162041151136866305" class="aktt_tweet_time">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.spearsofttech.com/2012/01/29/twitter-weekly-updates-for-2012-01-29/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New post as http://t.co/q0Q9Y0&#8230;</title>
		<link>http://www.spearsofttech.com/2012/01/25/new-post-as-httpt-coq0q9y0-2/</link>
		<comments>http://www.spearsofttech.com/2012/01/25/new-post-as-httpt-coq0q9y0-2/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 05:16:35 +0000</pubDate>
		<dc:creator>Seth Spearman</dc:creator>
				<category><![CDATA[Twitter]]></category>
		<category><![CDATA[tweets]]></category>

		<guid isPermaLink="false">http://www.spearsofttech.com/2012/01/25/new-post-as-httpt-coq0q9y0-2/</guid>
		<description><![CDATA[New post as http://t.co/q0Q9Y0TS &#8211; : To restore a &#8220;plain&#8221; postgresql backup &#8230; http://t.co/EZWaiR7B #twittertools]]></description>
			<content:encoded><![CDATA[<p>New post as <a href="http://t.co/q0Q9Y0TS" rel="nofollow">http://t.co/q0Q9Y0TS</a> &#8211; : To restore a &#8220;plain&#8221; postgresql backup &#8230;  <a href="http://t.co/EZWaiR7B" rel="nofollow">http://t.co/EZWaiR7B</a> #<a href="http://search.twitter.com/search?q=%23twittertools" class="aktt_hashtag">twittertools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.spearsofttech.com/2012/01/25/new-post-as-httpt-coq0q9y0-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To restore a &#8220;plain&#8221; postgresql backup &#8230;</title>
		<link>http://www.spearsofttech.com/2012/01/25/to-restore-a-plain-postgresql-backup/</link>
		<comments>http://www.spearsofttech.com/2012/01/25/to-restore-a-plain-postgresql-backup/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 05:16:34 +0000</pubDate>
		<dc:creator>Seth Spearman</dc:creator>
				<category><![CDATA[postgresql]]></category>
		<category><![CDATA[remember-this]]></category>

		<guid isPermaLink="false">http://www.spearsofttech.com/?p=654</guid>
		<description><![CDATA[1.  Drop/Recreate the target database using PGAdmin 2.  Be sure to add logins to all roles that are referenced in the backup script.  This should only be necessary the first time.  The phonesystem db references the following logins&#8230; phonesystem, phoneadmin, logsreader. 3.  From a terminal window run the following command sudo psql -d phonesystem -U [...]]]></description>
			<content:encoded><![CDATA[<p>1.  Drop/Recreate the target database using PGAdmin</p>
<p>2.  Be sure to add logins to all roles that are referenced in the backup script.  This should only be necessary the first time.  The phonesystem db references the following logins&#8230; phonesystem, phoneadmin, logsreader.</p>
<p>3.  From a terminal window run the following command</p>
<p>sudo psql -d phonesystem -U seths -f &#8220;&lt;path-to-backup&gt;&#8221;</p>
<p>Seth</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spearsofttech.com/2012/01/25/to-restore-a-plain-postgresql-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment by Seth Spearman on How do I get .NET WinForms components to use a SET timezone instead of clients time zone?</title>
		<link>http://stackoverflow.com/questions/8929494/how-do-i-get-net-winforms-components-to-use-a-set-timezone-instead-of-clients-t/8930664#8930664</link>
		<comments>http://stackoverflow.com/questions/8929494/how-do-i-get-net-winforms-components-to-use-a-set-timezone-instead-of-clients-t/8930664#8930664#comments</comments>
		<pubDate>Thu, 19 Jan 2012 18:05:40 +0000</pubDate>
		<dc:creator>Seth Spearman</dc:creator>
				<category><![CDATA[Stackoverflow.com]]></category>
		<category><![CDATA[stackoverflow]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/8929494/how-do-i-get-net-winforms-components-to-use-a-set-timezone-instead-of-clients-t/8930664?cid=11176003#8930664</guid>
		<description><![CDATA[Thank you very much for your reply.   I was not suspecting that I would have to re-engineer our application to support this.  What did I miss here?]]></description>
			<content:encoded><![CDATA[Thank you very much for your reply.   I was not suspecting that I would have to re-engineer our application to support this.  What did I miss here?]]></content:encoded>
			<wfw:commentRss>http://www.spearsofttech.com/2012/01/19/comment-by-seth-spearman-on-how-do-i-get-net-winforms-components-to-use-a-set-timezone-instead-of-clients-time-zone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I get .NET WinForms components to use a SET timezone instead of clients time zone?</title>
		<link>http://stackoverflow.com/questions/8929494/how-do-i-get-net-winforms-components-to-use-a-set-timezone-instead-of-clients-t</link>
		<comments>http://stackoverflow.com/questions/8929494/how-do-i-get-net-winforms-components-to-use-a-set-timezone-instead-of-clients-t#comments</comments>
		<pubDate>Thu, 19 Jan 2012 16:20:24 +0000</pubDate>
		<dc:creator>Seth Spearman</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[Stackoverflow.com]]></category>
		<category><![CDATA[winforms]]></category>
		<category><![CDATA[activereports]]></category>
		<category><![CDATA[stackoverflow]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[web-services]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/q/8929494</guid>
		<description><![CDATA[
            I was not looking forward to describing this problem until I found another forum web site with the EXACT SAME question I need answered (but with no answer.)  So with credit to this guy here is my question...  


  We have a large Windows ....]]></description>
			<content:encoded><![CDATA[
            <p>I was not looking forward to describing this problem until I found another forum web site with the EXACT SAME question I need answered (but with no answer.)  So with credit to <a href="http://www.hightechtalks.com/dotnet-framework-winforms/how-set-timezone-runtime-single-213152.html" rel="nofollow">this guy</a> here is my question...  </p>

<blockquote>
  <p>We have a large Windows .Net application (winform executable) that
  gets installed on the client's desktop. This application calls web
  services on a server in a different timezone. Virtually all date
  oriented components detect the timezone difference and automatically
  adjust the datetime values (returned in dataSets generated by SQL
  queries), which is generally desirable in most applications but
  causing problems with accounting related applications that are "date"
  not "datetime" oriented. We are only interested in the "date" portion.
  However, a date of 1/1/2003 GMT-5 is automatically converted to
  12/31/2002 11:00 GMT-6 on the client. Rather than going through all of
  the code and extracting the UniversalTime to get back to 1/1/2003 for
  visual purposes we would like to simply "fake" the timezone for the
  client-side executable by making it think it's in the same timezone as
  the server.</p>
  
  <p>Question: Can we set the TimeZone programmatically for the currently
  running instance only, rather than the global setting?</p>
</blockquote>

<p>I really don't have much to add because it is our EXACT issue.  In our case we have ActiveReports that are fetching remote SQL data into a datasets and then binding the report to the dataset.  So, for example, birthdays are wrong because we are storing the Date for them and X hours are subtracting for the date in the western time zones?  So the birthdates are off by minus 1.  </p>

<p>Any thoughts?  </p>

<p>Thanks!  </p>

<p>Seth</p>

        ]]></content:encoded>
			<wfw:commentRss>http://www.spearsofttech.com/2012/01/19/how-do-i-get-net-winforms-components-to-use-a-set-timezone-instead-of-clients-time-zone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment by Seth Spearman on How do I create a global exception handler for winforms app that is making asyncronous WebClient calls</title>
		<link>http://stackoverflow.com/questions/8747620/how-do-i-create-a-global-exception-handler-for-winforms-app-that-is-making-async/8747733#8747733</link>
		<comments>http://stackoverflow.com/questions/8747620/how-do-i-create-a-global-exception-handler-for-winforms-app-that-is-making-async/8747733#8747733#comments</comments>
		<pubDate>Thu, 05 Jan 2012 18:53:10 +0000</pubDate>
		<dc:creator>Seth Spearman</dc:creator>
				<category><![CDATA[Stackoverflow.com]]></category>
		<category><![CDATA[stackoverflow]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/8747620/how-do-i-create-a-global-exception-handler-for-winforms-app-that-is-making-async/8747733?cid=10898224#8747733</guid>
		<description><![CDATA[Per the code block I added to the question?]]></description>
			<content:encoded><![CDATA[Per the code block I added to the question?]]></content:encoded>
			<wfw:commentRss>http://www.spearsofttech.com/2012/01/05/comment-by-seth-spearman-on-how-do-i-create-a-global-exception-handler-for-winforms-app-that-is-making-asyncronous-webclient-calls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment by Seth Spearman on How do I create a global exception handler for winforms app that is making asyncronous WebClient calls</title>
		<link>http://stackoverflow.com/questions/8747620/how-do-i-create-a-global-exception-handler-for-winforms-app-that-is-making-async/8747733#8747733</link>
		<comments>http://stackoverflow.com/questions/8747620/how-do-i-create-a-global-exception-handler-for-winforms-app-that-is-making-async/8747733#8747733#comments</comments>
		<pubDate>Thu, 05 Jan 2012 18:33:59 +0000</pubDate>
		<dc:creator>Seth Spearman</dc:creator>
				<category><![CDATA[Stackoverflow.com]]></category>
		<category><![CDATA[stackoverflow]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/8747620/how-do-i-create-a-global-exception-handler-for-winforms-app-that-is-making-async/8747733?cid=10897797#8747733</guid>
		<description><![CDATA[Nicholas...just check for non-null on that property?  Or can I just put the whole callback into try catch and then do a throw?]]></description>
			<content:encoded><![CDATA[Nicholas...just check for non-null on that property?  Or can I just put the whole callback into try catch and then do a throw?]]></content:encoded>
			<wfw:commentRss>http://www.spearsofttech.com/2012/01/05/comment-by-seth-spearman-on-how-do-i-create-a-global-exception-handler-for-winforms-app-that-is-making-asyncronous-webclient-calls-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

