<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for MoebiusIT</title>
	<atom:link href="http://moebiusit.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://moebiusit.com/blog</link>
	<description>A bunch of techy stuff we want to talk about</description>
	<pubDate>Sun, 01 Aug 2010 04:38:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>Comment on Changing dll settings without re-compiling by Pablo Romano</title>
		<link>http://moebiusit.com/blog/pabloromano/2009/07/13/changing-dll-settings-without-re-compiling/#comment-54</link>
		<dc:creator>Pablo Romano</dc:creator>
		<pubDate>Thu, 22 Apr 2010 19:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://moebiusit.com/blog/pabloromano/2009/07/13/changing-dll-settings-without-compiling/#comment-54</guid>
		<description>Hi Tejal, can you send me the web application to take a look at it?

Thanks,
Pablo</description>
		<content:encoded><![CDATA[<p>Hi Tejal, can you send me the web application to take a look at it?</p>
<p>Thanks,<br />
Pablo</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Changing dll settings without re-compiling by Tejal Bhavsar</title>
		<link>http://moebiusit.com/blog/pabloromano/2009/07/13/changing-dll-settings-without-re-compiling/#comment-53</link>
		<dc:creator>Tejal Bhavsar</dc:creator>
		<pubDate>Thu, 22 Apr 2010 11:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://moebiusit.com/blog/pabloromano/2009/07/13/changing-dll-settings-without-compiling/#comment-53</guid>
		<description>Hi,

i have tried this code in my Window Application and it works properly but when try to add Reference in my web application it give me following error 

"The type initializer for 'DllWithSettings.SettingsConsumerClass' threw an exception."

i have checked all for thrice and everything is done as you said above.

Thanks,

Tejal.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>i have tried this code in my Window Application and it works properly but when try to add Reference in my web application it give me following error </p>
<p>&#8220;The type initializer for &#8216;DllWithSettings.SettingsConsumerClass&#8217; threw an exception.&#8221;</p>
<p>i have checked all for thrice and everything is done as you said above.</p>
<p>Thanks,</p>
<p>Tejal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Changing dll settings without re-compiling by Creepy Gnome</title>
		<link>http://moebiusit.com/blog/pabloromano/2009/07/13/changing-dll-settings-without-re-compiling/#comment-51</link>
		<dc:creator>Creepy Gnome</dc:creator>
		<pubDate>Mon, 22 Feb 2010 16:09:35 +0000</pubDate>
		<guid isPermaLink="false">http://moebiusit.com/blog/pabloromano/2009/07/13/changing-dll-settings-without-compiling/#comment-51</guid>
		<description>WoW, that is a lot of work for something that should be very simple.

For applications I use the app.config since it is provided, however for DLL's I have always justed used a simple XML File, and C# makes serializing to/from XML very easy.  Basically I just take a simple class with only public Properties and this is what becomes the XML file.  I then use a static util class that loads it up in its static constructor. Then you can just make the object available at anytime with the settings needed.

For a DLL I can see why it would care about User/Global settings, or why it should be so convoluted to store external data points for a DLL that change how it works.</description>
		<content:encoded><![CDATA[<p>WoW, that is a lot of work for something that should be very simple.</p>
<p>For applications I use the app.config since it is provided, however for DLL&#8217;s I have always justed used a simple XML File, and C# makes serializing to/from XML very easy.  Basically I just take a simple class with only public Properties and this is what becomes the XML file.  I then use a static util class that loads it up in its static constructor. Then you can just make the object available at anytime with the settings needed.</p>
<p>For a DLL I can see why it would care about User/Global settings, or why it should be so convoluted to store external data points for a DLL that change how it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building OnChange event to listen the parallel port by robert hacault</title>
		<link>http://moebiusit.com/blog/pabloromano/2009/04/03/building-onchange-event-to-listen-the-parallel-port/#comment-49</link>
		<dc:creator>robert hacault</dc:creator>
		<pubDate>Tue, 12 Jan 2010 18:12:47 +0000</pubDate>
		<guid isPermaLink="false">http://moebiusit.com/blog/?p=45#comment-49</guid>
		<description>got it to work</description>
		<content:encoded><![CDATA[<p>got it to work</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Changing dll settings without re-compiling by Dameon Black</title>
		<link>http://moebiusit.com/blog/pabloromano/2009/07/13/changing-dll-settings-without-re-compiling/#comment-48</link>
		<dc:creator>Dameon Black</dc:creator>
		<pubDate>Fri, 08 Jan 2010 21:14:08 +0000</pubDate>
		<guid isPermaLink="false">http://moebiusit.com/blog/pabloromano/2009/07/13/changing-dll-settings-without-compiling/#comment-48</guid>
		<description>The linked file method didn't seem to work.
Unless a prebuild script is added to copy the web.config over a dummy config file in the main project:

del  $(ProjectDir)web.config /F /Q
copy $(ProjectDir)..\\web.config $(ProjectDir)web.config /Y

This will force the deletion of any existing web.config file and copy the dlls config file over it.  
Will work even with source control.
I don't like it as it is confusing though.</description>
		<content:encoded><![CDATA[<p>The linked file method didn&#8217;t seem to work.<br />
Unless a prebuild script is added to copy the web.config over a dummy config file in the main project:</p>
<p>del  $(ProjectDir)web.config /F /Q<br />
copy $(ProjectDir)..\\web.config $(ProjectDir)web.config /Y</p>
<p>This will force the deletion of any existing web.config file and copy the dlls config file over it.<br />
Will work even with source control.<br />
I don&#8217;t like it as it is confusing though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building OnChange event to listen the parallel port by robert hacault</title>
		<link>http://moebiusit.com/blog/pabloromano/2009/04/03/building-onchange-event-to-listen-the-parallel-port/#comment-47</link>
		<dc:creator>robert hacault</dc:creator>
		<pubDate>Fri, 08 Jan 2010 18:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://moebiusit.com/blog/?p=45#comment-47</guid>
		<description>I have my code working but I have a question on the pins

I am trying to receive some inputs from the port.

I know the 8 data pins are used for output
I can receive the input of the 5 status pins but for some reason I cant find a way to receive input data from the 4 control pins. I though they were I/O. if so , what am I doing wrong?</description>
		<content:encoded><![CDATA[<p>I have my code working but I have a question on the pins</p>
<p>I am trying to receive some inputs from the port.</p>
<p>I know the 8 data pins are used for output<br />
I can receive the input of the 5 status pins but for some reason I cant find a way to receive input data from the 4 control pins. I though they were I/O. if so , what am I doing wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building OnChange event to listen the parallel port by Pablo Romano</title>
		<link>http://moebiusit.com/blog/pabloromano/2009/04/03/building-onchange-event-to-listen-the-parallel-port/#comment-45</link>
		<dc:creator>Pablo Romano</dc:creator>
		<pubDate>Mon, 14 Dec 2009 18:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://moebiusit.com/blog/?p=45#comment-45</guid>
		<description>Hi Bennyben,
I guess you want to send a 0 to a particular pin, but when you write to the port you must send 1s or 0s to all the others too.

Reading and writing can be done through PortAccess.Input and PortAccess.Output. The latter receives the address and a decimal value that is converted to it's binary form, where each bit correlates to a pin. Here is a link explaining what you can do with each pin.
http://www.beyondlogic.org/spp/parallel.htm#5

If you want to change the value of one pin first of all you need the value of the others, the ones that don't change. If you are working with the bi-directional pins you can read the value, if you are using the write-only ones you must keep the value in your application.

Let's suppose the value is 11011011 = 219 dec and you want to send a 0 to the 4th pin (bit 3), then you should make a mask that has a 0 in that position, 1s in all the others and make a bitwise and (&#38;) with the current value. Here is an example:

int currentValue = 91; //01011011

int mask = 255 - (int)Math.Pow(2, 3); //11111111 - 1000 = 11110111

int newValue = currentValue &#38; mask; //01110111 &#38; 11011011 = 01010011

If you want to send a 1 to a pin you should make a mask with 1 in that pin, 0s in all the others and make a bitwise or (&#124;) with the current value.

Please tell me if this helps or you need more assistance.</description>
		<content:encoded><![CDATA[<p>Hi Bennyben,<br />
I guess you want to send a 0 to a particular pin, but when you write to the port you must send 1s or 0s to all the others too.</p>
<p>Reading and writing can be done through PortAccess.Input and PortAccess.Output. The latter receives the address and a decimal value that is converted to it&#8217;s binary form, where each bit correlates to a pin. Here is a link explaining what you can do with each pin.<br />
<a href="http://www.beyondlogic.org/spp/parallel.htm#5" rel="nofollow">http://www.beyondlogic.org/spp/parallel.htm#5</a></p>
<p>If you want to change the value of one pin first of all you need the value of the others, the ones that don&#8217;t change. If you are working with the bi-directional pins you can read the value, if you are using the write-only ones you must keep the value in your application.</p>
<p>Let&#8217;s suppose the value is 11011011 = 219 dec and you want to send a 0 to the 4th pin (bit 3), then you should make a mask that has a 0 in that position, 1s in all the others and make a bitwise and (&amp;) with the current value. Here is an example:</p>
<p>int currentValue = 91; //01011011</p>
<p>int mask = 255 - (int)Math.Pow(2, 3); //11111111 - 1000 = 11110111</p>
<p>int newValue = currentValue &amp; mask; //01110111 &amp; 11011011 = 01010011</p>
<p>If you want to send a 1 to a pin you should make a mask with 1 in that pin, 0s in all the others and make a bitwise or (|) with the current value.</p>
<p>Please tell me if this helps or you need more assistance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Building OnChange event to listen the parallel port by bennyben</title>
		<link>http://moebiusit.com/blog/pabloromano/2009/04/03/building-onchange-event-to-listen-the-parallel-port/#comment-43</link>
		<dc:creator>bennyben</dc:creator>
		<pubDate>Mon, 14 Dec 2009 03:17:06 +0000</pubDate>
		<guid isPermaLink="false">http://moebiusit.com/blog/?p=45#comment-43</guid>
		<description>how to deactivate a certain pin? 
i know that 'PortAccess.Output(address, 0)' is to deactivate all the pins.</description>
		<content:encoded><![CDATA[<p>how to deactivate a certain pin?<br />
i know that &#8216;PortAccess.Output(address, 0)&#8217; is to deactivate all the pins.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Changing dll settings without re-compiling by Pablo Romano</title>
		<link>http://moebiusit.com/blog/pabloromano/2009/07/13/changing-dll-settings-without-re-compiling/#comment-42</link>
		<dc:creator>Pablo Romano</dc:creator>
		<pubDate>Thu, 29 Oct 2009 19:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://moebiusit.com/blog/pabloromano/2009/07/13/changing-dll-settings-without-compiling/#comment-42</guid>
		<description>Hi, you only need to change the .config file and restart (close and open) the application.
Try the example and please don't hesitate to ask again!</description>
		<content:encoded><![CDATA[<p>Hi, you only need to change the .config file and restart (close and open) the application.<br />
Try the example and please don&#8217;t hesitate to ask again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Changing dll settings without re-compiling by Nuno Nogueira</title>
		<link>http://moebiusit.com/blog/pabloromano/2009/07/13/changing-dll-settings-without-re-compiling/#comment-41</link>
		<dc:creator>Nuno Nogueira</dc:creator>
		<pubDate>Thu, 29 Oct 2009 13:13:03 +0000</pubDate>
		<guid isPermaLink="false">http://moebiusit.com/blog/pabloromano/2009/07/13/changing-dll-settings-without-compiling/#comment-41</guid>
		<description>Who can I modify the DllWithSettings.config file and get the new properties values?

Thanks

Nuno</description>
		<content:encoded><![CDATA[<p>Who can I modify the DllWithSettings.config file and get the new properties values?</p>
<p>Thanks</p>
<p>Nuno</p>
]]></content:encoded>
	</item>
</channel>
</rss>
