<?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>/dev/random</title>
	<atom:link href="http://devrandom1.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://devrandom1.wordpress.com</link>
	<description>Notes</description>
	<lastBuildDate>Fri, 21 May 2010 13:31:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='devrandom1.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>/dev/random</title>
		<link>http://devrandom1.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://devrandom1.wordpress.com/osd.xml" title="/dev/random" />
	<atom:link rel='hub' href='http://devrandom1.wordpress.com/?pushpress=hub'/>
		<item>
		<title>protobuf-net: Beware of setting an optional int primitive to zero</title>
		<link>http://devrandom1.wordpress.com/2010/05/21/protobuf-net-beware-of-setting-an-optional-int-primitive-to-zero/</link>
		<comments>http://devrandom1.wordpress.com/2010/05/21/protobuf-net-beware-of-setting-an-optional-int-primitive-to-zero/#comments</comments>
		<pubDate>Fri, 21 May 2010 13:31:41 +0000</pubDate>
		<dc:creator>devrandom1</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://devrandom1.wordpress.com/?p=384</guid>
		<description><![CDATA[Here&#8217;s another gotcha with protobuf-net, setting an optional int to 0 causes it the property to be skipped during serialization. private int? _myProperty; [ProtoBuf.ProtoMember(21022, IsRequired = false, Name = @"myProperty", DataFormat = ProtoBuf.DataFormat.TwosComplement)] public int myProperty { get { return _myProperty ?? default(int); } set { _myProperty= value; } } [System.Xml.Serialization.XmlIgnore] [System.ComponentModel.Browsable(false)] public bool myPropertySpecified [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=384&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s another gotcha with <a href="http://code.google.com/p/protobuf-net/" target="_blank">protobuf-net</a>, setting an <a href="http://devrandom1.wordpress.com/2010/01/27/protobuf-net-handling-optional-primitives/" target="_blank">optional int</a> to 0 causes it the property to be skipped during serialization.</p>
<pre>private int? _myProperty;
[ProtoBuf.ProtoMember(21022, IsRequired = false, Name = @"myProperty", DataFormat = ProtoBuf.DataFormat.TwosComplement)]
public int myProperty {
	get { return _myProperty ?? default(int); }
	set { _myProperty= value; }
}
[System.Xml.Serialization.XmlIgnore]
[System.ComponentModel.Browsable(false)]
public bool myPropertySpecified {
	get { return _myProperty != null; }
	set { if (value == (_myProperty == null)) _myProperty = value ? fillreportpolicy : (int?)null; }
}
private bool ShouldSerializemyProperty() { return myPropertySpecified; }
private void ResetmyProperty() { myPropertySpecified = false; }</pre>
<p>After you set myProperty to &#8220;0&#8243;, you&#8217;ll notice that myPropertySpecified will return true. You can also <a href="http://devrandom1.wordpress.com/2010/04/20/protobuf-net-a-helper-method/" target="_blank">use reflection</a> to verify that the property is indeed set. But, it won&#8217;t get serialized in the end.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devrandom1.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devrandom1.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devrandom1.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devrandom1.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devrandom1.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devrandom1.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devrandom1.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devrandom1.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devrandom1.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devrandom1.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devrandom1.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devrandom1.wordpress.com/384/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devrandom1.wordpress.com/384/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devrandom1.wordpress.com/384/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=384&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devrandom1.wordpress.com/2010/05/21/protobuf-net-beware-of-setting-an-optional-int-primitive-to-zero/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1f6e5efcca6fc3b3074a4cce78ff50d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devrandom1</media:title>
		</media:content>
	</item>
		<item>
		<title>ProtoBuf-net: A helper method</title>
		<link>http://devrandom1.wordpress.com/2010/04/20/protobuf-net-a-helper-method/</link>
		<comments>http://devrandom1.wordpress.com/2010/04/20/protobuf-net-a-helper-method/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 14:44:22 +0000</pubDate>
		<dc:creator>devrandom1</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://devrandom1.wordpress.com/?p=379</guid>
		<description><![CDATA[The current implementation of protobuf-net does not contain a simple way of writing the proto as a string, or key-value pairs (unlike the C++ library). Here&#8217;s a simple extension method to aid in logging protos, in case you ever have a similar need. /// /// Returns the contents of the proto object log-friendly string format. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=379&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The current implementation of <a href="http://code.google.com/p/protobuf-net/" target="_blank">protobuf-net</a> does not contain a simple way of writing the proto as a string, or key-value pairs (unlike the <a href="http://code.google.com/apis/protocolbuffers/docs/reference/cpp/google.protobuf.message_lite.html#MessageLite.SerializeToString.details" target="_blank">C++ library</a>).</p>
<p>Here&#8217;s a simple <a href="http://msdn.microsoft.com/en-us/library/bb383977.aspx" target="_blank">extension method</a> to aid in logging protos, in case you ever have a similar need.</p>
<pre>
///
/// Returns the contents of the proto object log-friendly string format.
/// This method will also cycle through the repeating groups.
/// Eg: MyProto { fielda [100] = Foo, fieldb [101] = bar }
///
public static string ToDebug(this IExtensible proto) {
	StringBuilder sb = new StringBuilder();
	sb.AppendFormat("{0} {{", proto.GetType().Name);
	ReadProto(proto, sb);
	sb.Append("}");
	return sb.ToString();
}

private static void ReadProto(IExtensible proto, StringBuilder sb) {
	object val;
	SortedDictionary props = GetProtoAttributeProperties(proto);
	int[] keys = new int[props.Count];
	PropertyInfo info = null;
	MethodInfo mi = null;

	props.Keys.CopyTo(keys, 0);
	for (int i = 0; i &lt; props.Keys.Count; i++) {
		info = props[keys[i]];
		val = info.GetValue(proto, null);
		if (val == null)
			continue;

		mi = proto.GetType().GetMethod(
					string.Format(&quot;ShouldSerialize{0}&quot;, props[keys[i]].Name),
					BindingFlags.NonPublic | BindingFlags.Instance);
		if (mi != null &amp;&amp; !Convert.ToBoolean(mi.Invoke(proto, null)))
			continue;
		sb.AppendFormat(&quot;{0} [{1}] = {2}&quot;,
			info.Name, keys[i],
			val == null ? string.Empty :
				val is IExtensible ? val.GetType().Name : val.ToString());

		if (val is IExtensible) {
			sb.Append(&quot; {&quot;);
			ReadProto((IExtensible)val, sb);
			sb.Append(&quot;}&quot;);
		} else {
			IList list = val as IList;
			if (list != null) {
				ReadRepeatingGroups(list, sb);
			} else if (i != keys.Length - 1)
				sb.Append(&quot;, &quot;);
		}
	}
}

private static void ReadRepeatingGroups(IList list, StringBuilder sb) {
	if (list == null)
		return;
	if (list.Count == 0) {
		sb.Append(&quot;{}&quot;);
		return;
	}
	sb.Append(&quot; {&quot;);
	for (int i = 0; i &lt; list.Count; i++) {
		sb.Append(&quot; {&quot;);
		ReadProto((IExtensible)list[i], sb);
		sb.Append(&quot;}&quot;);
		if (i != list.Count - 1)
			sb.Append(&quot;, &quot;);
	}
	sb.Append(&quot;}&quot;);
}

private static SortedDictionary GetProtoAttributeProperties(IExtensible proto) {
	SortedDictionary props = new SortedDictionary();
	PropertyInfo[] properties = proto.GetType().GetProperties();
	foreach (PropertyInfo pi in properties) {
		if (!pi.IsDefined(typeof(ProtoBuf.ProtoMemberAttribute), false))
			continue;
		ProtoMemberAttribute attr = null;
		object[] attributes = pi.GetCustomAttributes(false);
		foreach (object a in attributes) {
			attr = a as ProtoMemberAttribute;
			if (attr != null)
				break;
		}
		if (attr != null)
			props.Add(attr.Tag, pi);
	}
	return props;
}
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devrandom1.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devrandom1.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devrandom1.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devrandom1.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devrandom1.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devrandom1.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devrandom1.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devrandom1.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devrandom1.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devrandom1.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devrandom1.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devrandom1.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devrandom1.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devrandom1.wordpress.com/379/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=379&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devrandom1.wordpress.com/2010/04/20/protobuf-net-a-helper-method/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1f6e5efcca6fc3b3074a4cce78ff50d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devrandom1</media:title>
		</media:content>
	</item>
		<item>
		<title>QPID.net oddities</title>
		<link>http://devrandom1.wordpress.com/2010/04/15/qpid-net-oddities/</link>
		<comments>http://devrandom1.wordpress.com/2010/04/15/qpid-net-oddities/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 12:50:18 +0000</pubDate>
		<dc:creator>devrandom1</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://devrandom1.wordpress.com/?p=369</guid>
		<description><![CDATA[I noticed a couple of odd behavior in the QPID.net implementation so figured I&#8217;d document them here. First, the code&#8230; _client = new Client(); _client.connect( host, port, virtualHost, userName, password ); _session = _client.createSession( -1 ); // Create a response queue so the server can send us responses _responseQueue = string.Format( "GUI_{0}_{1}", Environment.UserName, DateTime.Now.Ticks ); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=369&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I noticed a couple of odd behavior in the <a href="http://qpid.apache.org/qpid-net-documentation.html" target="_blank">QPID.net</a> implementation so figured I&#8217;d document them here.</p>
<p>First, the code&#8230;</p>
<pre>_client = new Client();
_client.connect( host, port, virtualHost, userName, password );
_session = _client.createSession( -1 );

// Create a response queue so the server can send us responses
_responseQueue = string.Format( "GUI_{0}_{1}", Environment.UserName, DateTime.Now.Ticks );
// Use the name of the response queue as the routing key
_session.queueDeclare( _responseQueue, new Option[] {
	// Setting EXCLUSIVE option makes the queue hang around
	// even when the session is closed
	Option.AUTO_DELETE //, Option.EXCLUSIVE
} );
_session.exchangeBind( _responseQueue, "amq.direct", _responseQueue );</pre>
<ol>
<li>Apparently, specifying <strong>Option.Exclusive</strong> on the queue, as the comment indicates, causes the queue to hang around even after you cleanly tear down the session and connection. (You can use <a href="http://qpid.apache.org/mgmtc.html" target="_blank">qpid-stat</a> to find out about the open sessions;<br />
<code>qpid-stat -q localhost:6001  -S queue<br />
with the port where your daemon is listening to, of course.)</p>
<p></code></li>
<li>Even though I&#8217;m not specifying a timeout when creating the session, and given that QPID sessions typically are set to infinite timeouts, the session is closed by the broker after some period of inactivity. You&#8217;ll notice that the session has closed the next time you attempt to send a message back to the server. (If you have QPID configured to log everything, you can easily search the log file for your IP address to see if it&#8217;s disconnected; you should see entries similar to the following)<br />
<code>debug DISCONNECTED [10.1.223.77:3356]</code></p>
<p>For now, until I find a better solution, to fix this requires a hack. Essentially, you need to check whether the session is closed or not before attempting to send a message (code below). You&#8217;ll notice a Sleep call which I found was necessary as sending a message immediately after the session connects causes it to go into the ether </li>
<p><code> </code></ol>
<pre>///
/// HACK! Attempt to reconnect if the session was closed.
/// TODO Find a way to keep the session open
///
protected void CheckSessionState() {
	if (_session != null &amp;&amp; _session.Closed == false)
		return;
	bool isConnected = false;
	int tryCnt = 5, i = 0;
	while (!isConnected &amp;&amp; i &lt; tryCnt) {
		OnMessageWorkerLogMessage(this.GetServiceName() + " was closed, attempting to reconnect");
		Disconnect();
		Connect(this.Host, this.Port, this.VirtualHost, _user, _pwd);
		Thread.Sleep(100);
		isConnected = _session != null &amp;&amp; (_session.Closed == false);
		i++;
		if (isConnected) {
			break;
		}
		OnMessageWorkerLogMessage(this.GetServiceName() +
			(isConnected ? " reconnected" :
			" still closed. Attempting " + (tryCnt - 1 - i) + " more times"));
	}
}</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devrandom1.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devrandom1.wordpress.com/369/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devrandom1.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devrandom1.wordpress.com/369/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devrandom1.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devrandom1.wordpress.com/369/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devrandom1.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devrandom1.wordpress.com/369/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devrandom1.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devrandom1.wordpress.com/369/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devrandom1.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devrandom1.wordpress.com/369/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devrandom1.wordpress.com/369/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devrandom1.wordpress.com/369/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=369&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devrandom1.wordpress.com/2010/04/15/qpid-net-oddities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1f6e5efcca6fc3b3074a4cce78ff50d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devrandom1</media:title>
		</media:content>
	</item>
		<item>
		<title>Visualizing economics</title>
		<link>http://devrandom1.wordpress.com/2010/04/13/visualizing-economics/</link>
		<comments>http://devrandom1.wordpress.com/2010/04/13/visualizing-economics/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 11:33:03 +0000</pubDate>
		<dc:creator>devrandom1</dc:creator>
				<category><![CDATA[Finance]]></category>

		<guid isPermaLink="false">http://devrandom1.wordpress.com/?p=365</guid>
		<description><![CDATA[A nice set of graphics from Visualizing Economics, via Zero Hedge.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=365&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A nice set of graphics from <a href="http://www.visualizingeconomics.com/my-gallery/" target="_blank">Visualizing Economics</a>, via<a href="http://www.zerohedge.com/article/visualizing-americas-tax-inequality-wealthiest-11000-people-and-why-obamas-campaign-promises" target="_blank"> Zero Hedge</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devrandom1.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devrandom1.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devrandom1.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devrandom1.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devrandom1.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devrandom1.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devrandom1.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devrandom1.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devrandom1.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devrandom1.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devrandom1.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devrandom1.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devrandom1.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devrandom1.wordpress.com/365/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=365&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devrandom1.wordpress.com/2010/04/13/visualizing-economics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1f6e5efcca6fc3b3074a4cce78ff50d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devrandom1</media:title>
		</media:content>
	</item>
		<item>
		<title>Articles on FIXatdl</title>
		<link>http://devrandom1.wordpress.com/2010/04/09/articles-on-fixatdl/</link>
		<comments>http://devrandom1.wordpress.com/2010/04/09/articles-on-fixatdl/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 17:08:15 +0000</pubDate>
		<dc:creator>devrandom1</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[Finance]]></category>

		<guid isPermaLink="false">http://devrandom1.wordpress.com/?p=361</guid>
		<description><![CDATA[With the formal introduction of FIXatdl at the last FPL&#8217;s EMEA meeting, v1.1 is now an official FIX standard. Here, then, are the latest articles published in FIXGlobal on the new standard.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=361&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With the formal introduction of <a href="http://www.fixprotocol.org/FIXatdl" target="_blank">FIXatdl</a> at the last <a href="http://fixprotocol.org/fplevents/emea_2010/" target="_blank">FPL&#8217;s EMEA meeting</a>, v1.1 is now an official FIX standard. Here, then, are the <a href="http://fixglobal.jump.com.hk/pdfs/page_12-14.pdf" target="_blank">latest</a> <a href="http://fixglobal.jump.com.hk/pdfs/page_15.pdf" target="_blank">articles</a> published in <a href="http://fixglobal.com/" target="_blank">FIXGlobal</a> on the new standard.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devrandom1.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devrandom1.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devrandom1.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devrandom1.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devrandom1.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devrandom1.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devrandom1.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devrandom1.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devrandom1.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devrandom1.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devrandom1.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devrandom1.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devrandom1.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devrandom1.wordpress.com/361/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=361&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devrandom1.wordpress.com/2010/04/09/articles-on-fixatdl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1f6e5efcca6fc3b3074a4cce78ff50d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devrandom1</media:title>
		</media:content>
	</item>
		<item>
		<title>LHC: some details about the software</title>
		<link>http://devrandom1.wordpress.com/2010/03/31/lhc-some-details-about-the-software/</link>
		<comments>http://devrandom1.wordpress.com/2010/03/31/lhc-some-details-about-the-software/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 12:30:17 +0000</pubDate>
		<dc:creator>devrandom1</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[CEP]]></category>

		<guid isPermaLink="false">http://devrandom1.wordpress.com/?p=354</guid>
		<description><![CDATA[Yesterday represented a large milestone for the LHC. Here&#8217;re some details on the software. You can also view LHC&#8217;s real time status here and here, the latter being the more interesting from a technology and visualization perspective.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=354&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday represented a large milestone for the <a href="http://public.web.cern.ch/public/en/lhc/lhc-en.html" target="_blank">LHC</a>. Here&#8217;re some <a href="http://arstechnica.com/science/news/2010/03/the-software-brains-behind-the-particle-colliders.ars" target="_blank">details on the software</a>.</p>
<p>You can also view LHC&#8217;s real time status <a href="http://cmsdoc.cern.ch/cmscc/cmstv/cmstv.jsp?channel=7" target="_blank">here</a> and <a href="http://lhc-webcast.web.cern.ch/lhc-webcast/index.html" target="_blank">here</a>, the latter being the more interesting from a technology and visualization perspective.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devrandom1.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devrandom1.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devrandom1.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devrandom1.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devrandom1.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devrandom1.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devrandom1.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devrandom1.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devrandom1.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devrandom1.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devrandom1.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devrandom1.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devrandom1.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devrandom1.wordpress.com/354/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=354&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devrandom1.wordpress.com/2010/03/31/lhc-some-details-about-the-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1f6e5efcca6fc3b3074a4cce78ff50d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devrandom1</media:title>
		</media:content>
	</item>
		<item>
		<title>Protobuf-Net: Couple of gotchas</title>
		<link>http://devrandom1.wordpress.com/2010/03/15/protobuf-net-couple-of-gotchas/</link>
		<comments>http://devrandom1.wordpress.com/2010/03/15/protobuf-net-couple-of-gotchas/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 00:16:04 +0000</pubDate>
		<dc:creator>devrandom1</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://devrandom1.wordpress.com/?p=343</guid>
		<description><![CDATA[Here&#8217;re a couple of issues with Protobuf-net that I ran into recently. C# classes generated with protogen /p:detectMissing flag creates string getters as get { return _myStringField ?? ""; } This means that string fields that were supposed to be nulls still get sent to the server as an empty string; not an ideal situation. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=343&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;re a couple of issues with <a href="http://code.google.com/p/protobuf-net/" target="_blank">Protobuf-net</a> that I ran into recently.</p>
<ol>
<li>C# classes generated with protogen <a href="http://devrandom1.wordpress.com/2010/01/27/protobuf-net-handling-optional-primitives/">/p:detectMissing</a> flag creates string getters as<br />
<code> get { return _myStringField ?? ""; }</code><br />
This means that string fields that were supposed to be nulls still get sent to the server as an empty string; not an ideal situation.<br />
The fix is to manually edit the generated class to remove the coalesce from all string getters.<br />
<code>&nbsp;get { return _myStringField; }</code></li>
<li>If you try to serialize a class where you do not populate an optional enum with no enum value defined for zero (0), you&#8217;ll get an exception &#8220;The default enum value is not defined for the optional property&#8221;. This happens even though Google spec says that in such cases, the 1st value should be used; although, in my opinion, Protobuf-Net should check whether to serialize the enum at all before attempting to get to the valid enum values.<br />
  For example, this enum will throw the aforementioned exception:<br />
<code>public enum MyEnum {<br />
&nbsp;&nbsp;&nbsp;MyEnumValueA = 10,<br />
&nbsp;&nbsp;&nbsp;MyEnumValueB = 100<br />
}</code><br />
Unfortunately, there&#8217;re no workarounds for this problem at the moment except adding a &#8220;MyEnumValueUnknown=0&#8243; to the enum.</li>
</ol>
<p>The author, Marc Gravell, is aware of these issues. Here&#8217;s hoping he&#8217;ll get a chance to fix these problems quickly.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devrandom1.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devrandom1.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devrandom1.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devrandom1.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devrandom1.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devrandom1.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devrandom1.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devrandom1.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devrandom1.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devrandom1.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devrandom1.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devrandom1.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devrandom1.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devrandom1.wordpress.com/343/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=343&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devrandom1.wordpress.com/2010/03/15/protobuf-net-couple-of-gotchas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1f6e5efcca6fc3b3074a4cce78ff50d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devrandom1</media:title>
		</media:content>
	</item>
		<item>
		<title>Sybase acquiring Aleri?</title>
		<link>http://devrandom1.wordpress.com/2010/02/02/sybase-acquiring-aleri/</link>
		<comments>http://devrandom1.wordpress.com/2010/02/02/sybase-acquiring-aleri/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 19:28:06 +0000</pubDate>
		<dc:creator>devrandom1</dc:creator>
				<category><![CDATA[CEP]]></category>
		<category><![CDATA[Finance]]></category>

		<guid isPermaLink="false">http://devrandom1.wordpress.com/?p=337</guid>
		<description><![CDATA[Looks like Sybase is in the process of acquiring Aleri. It&#8217;ll be interesting to see how Sybase manages Aleri and Coral8 products, in both development and deployment (licensing).<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=337&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Looks like Sybase is in the process of <a href="http://www.securitiesindustry.com/news/-24611-1.html" target="_blank">acquiring Aleri</a>.</p>
<p>It&#8217;ll be interesting to see how Sybase manages Aleri and Coral8 products, in both development and deployment (licensing).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devrandom1.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devrandom1.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devrandom1.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devrandom1.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devrandom1.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devrandom1.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devrandom1.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devrandom1.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devrandom1.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devrandom1.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devrandom1.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devrandom1.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devrandom1.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devrandom1.wordpress.com/337/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=337&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devrandom1.wordpress.com/2010/02/02/sybase-acquiring-aleri/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1f6e5efcca6fc3b3074a4cce78ff50d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devrandom1</media:title>
		</media:content>
	</item>
		<item>
		<title>FIXatdl v1.1 Release Candidate</title>
		<link>http://devrandom1.wordpress.com/2010/02/01/fixatdl-v1-1-release-candidate/</link>
		<comments>http://devrandom1.wordpress.com/2010/02/01/fixatdl-v1-1-release-candidate/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 12:54:57 +0000</pubDate>
		<dc:creator>devrandom1</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[Finance]]></category>

		<guid isPermaLink="false">http://devrandom1.wordpress.com/?p=329</guid>
		<description><![CDATA[The Algoithmic Trading Working Group uploaded the v1.1 Release Candidate (internal build v2.7.0) for FIXatdl recently. You&#8217;ll need to register in order to download the files. So start coding up those algo UIs already! Here&#8217;s an earlier post that highlights some of the breaking changes with previous builds.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=329&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.fixprotocol.org/working_groups/algowg" target="_blank">Algoithmic Trading Working Group</a> uploaded the <a href="http://www.fixprotocol.org/FIXatdl" target="_blank">v1.1 Release Candidate</a> (internal build v2.7.0) for FIXatdl recently. You&#8217;ll need to register in order to download the files.</p>
<p>So start coding up those algo UIs already!</p>
<p>Here&#8217;s an <a href="http://devrandom1.wordpress.com/2009/11/06/fixatdl-breaking-changes-in-v1-1/" target="_blank">earlier post</a> that highlights some of the breaking changes with previous builds.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devrandom1.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devrandom1.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devrandom1.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devrandom1.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devrandom1.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devrandom1.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devrandom1.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devrandom1.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devrandom1.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devrandom1.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devrandom1.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devrandom1.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devrandom1.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devrandom1.wordpress.com/329/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=329&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devrandom1.wordpress.com/2010/02/01/fixatdl-v1-1-release-candidate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1f6e5efcca6fc3b3074a4cce78ff50d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devrandom1</media:title>
		</media:content>
	</item>
		<item>
		<title>ProtoBuf.net &#8211; Handling optional primitives</title>
		<link>http://devrandom1.wordpress.com/2010/01/27/protobuf-net-handling-optional-primitives/</link>
		<comments>http://devrandom1.wordpress.com/2010/01/27/protobuf-net-handling-optional-primitives/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:29:48 +0000</pubDate>
		<dc:creator>devrandom1</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://devrandom1.wordpress.com/?p=321</guid>
		<description><![CDATA[If you are dealing with protos containing optional primitives, it&#8217;s not immediately obvious how you&#8217;d deal with them in C#. For example, if the proto contains an optional int and you generated the C# class, the results would as follows: optional int32 bar_ukey = 13; &#62;protogen -i:BarTest.proto -o:BarTestProto.cs private int _bar_ukey =default(int); [ProtoBuf.ProtoMember(13, IsRequired = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=321&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are dealing with protos containing optional primitives, it&#8217;s not immediately obvious how you&#8217;d deal with them in C#.</p>
<p>For example, if the proto contains an optional int and you generated the C# class, the results would as follows:<br />
<code><br />
optional int32 bar_ukey = 13;</code></p>
<p><code>&gt;protogen -i:BarTest.proto -o:BarTestProto.cs</code></p>
<p><code> </code></p>
<p><code>private int _bar_ukey =default(int);<br />
[ProtoBuf.ProtoMember(13, IsRequired = false, Name=@"bar_ukey", DataFormat = ProtoBuf.DataFormat.TwosComplement)][System.ComponentModel.DefaultValue(<strong><em>default(int)</em></strong>)]<br />
public int bar_ukey<br />
{<br />
get { return _bar_ukey; }<br />
set { _bar_ukey = value; }<br />
}<br />
</code></p>
<p>As you can see, the highlighted default value doesn&#8217;t take the optional nature of the field into account.</p>
<p>To fix this, protogen needs to be run with <strong>detectMissing</strong> argument as follows:<br />
<code>protogen -i:BarTest.proto -o:BarTestProto.cs -p:detectMissing</code><br />
which results in the property getting generated as</p>
<p><code><br />
private int? _bar_ukey;<br />
[ProtoBuf.ProtoMember(13, IsRequired = false, Name=@"bar_ukey", DataFormat = ProtoBuf.DataFormat.TwosComplement)]<br />
public int bar_ukey<br />
{<br />
get { return _bar_ukey?? default(int); }<br />
set { _bar_ukey = value; }<br />
}<br />
[System.Xml.Serialization.XmlIgnore]<br />
[System.ComponentModel.Browsable(false)]<br />
public bool bar_ukeySpecified<br />
{<br />
get { return _bar_ukey != null; }<br />
set { if (value == (_bar_ukey== null)) _bar_ukey = value ? bar_ukey : (int?)null; }<br />
}<br />
private bool ShouldSerializebar_ukey() { return bar_ukeySpecified; }<br />
private void Resetbar_ukey() { bar_ukeySpecified = false; }<br />
</code></p>
<p><code><strong>Side note</strong></code>: Also tucked away in the -p template property <strong>observable</strong> and <strong>preObservable</strong> options for the observable pattern.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devrandom1.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devrandom1.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devrandom1.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devrandom1.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devrandom1.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devrandom1.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devrandom1.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devrandom1.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devrandom1.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devrandom1.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devrandom1.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devrandom1.wordpress.com/321/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devrandom1.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devrandom1.wordpress.com/321/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devrandom1.wordpress.com&amp;blog=8864275&amp;post=321&amp;subd=devrandom1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devrandom1.wordpress.com/2010/01/27/protobuf-net-handling-optional-primitives/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1f6e5efcca6fc3b3074a4cce78ff50d1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devrandom1</media:title>
		</media:content>
	</item>
	</channel>
</rss>
