<?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>Randquist Rants &#187; c#</title>
	<atom:link href="http://randquist.us/blog/tags/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://randquist.us/blog</link>
	<description>Random ramblings of a Software Engineer and Entrepreneur.</description>
	<lastBuildDate>Tue, 24 Apr 2012 17:04:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>yafinr &#8211; Yet Another Forum (in Ruby)</title>
		<link>http://randquist.us/blog/2008/07/07/yafinr-yet-another-forum-in-ruby/</link>
		<comments>http://randquist.us/blog/2008/07/07/yafinr-yet-another-forum-in-ruby/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 09:09:22 +0000</pubDate>
		<dc:creator>CobyR</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[Confreaks]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[YELLOWPAGES.COM]]></category>

		<guid isPermaLink="false">http://www.randquist.us/blog/?p=79</guid>
		<description><![CDATA[After installing and supporting YAF.NET (http://www.yetanotherforum.net) for a couple of clients, I have decided to build another YAF, but I&#8217;ll do it in Ruby. The trips back into the land of ASP.NET and C# have been painful to say the least. So tonight I started hacking&#8230; haven&#8217;t done much of that in a while, too [...]]]></description>
			<content:encoded><![CDATA[<p>After installing and supporting YAF.NET (<a href="http://www.yetanotherforum.net" target="_blank">http://www.yetanotherforum.net</a>) for a couple of clients, I have decided to build another YAF, but I&#8217;ll do it in Ruby.  The trips back into the land of ASP.NET and C# have been painful to say the least.</p>
<p>So tonight I started hacking&#8230; haven&#8217;t done much of that in a while, too busy wrapping my head around the trappings of managing an increasing team of developers at YELLOWPAGES.COM.  So I got the latest rails, created a respository on my dreamhost account for SVN, and then realized&#8230; wait&#8230; why SVN?  Why not git?</p>
<p>I have an account on github, so in an effort not to fall too far behind I went to install git:</p>
<p>port install git-core</p>
<p>-bash: port: command not found</p>
<p>Ah yes&#8230; this is not my personal Mac, it is my YPC Mac, MacPorts has not yet been installed.  So I went out and got 1.60 of MacPorts&#8230; installed nice and easy, and started the git install.  Well I forgot the amount of time required to install git on a pretty clean Mac.  It&#8217;s still fetching bits and pieces, building ncurses as I type.</p>
<p>So tomorrow night I&#8217;ll actually through a basic site up on yafinr.randquist.us, and go from there.</p>
<p>My initial thoughts are to reverse engineer the functionality of yaf.net.  I like the product, just don&#8217;t like moding it.</p>
<p>On another note I fired off quotations (some late) to RubyNation, &#8220;Voices that Matter: Professional Ruby Conference&#8221;, and the WindyCity Rails Conf.</p>
]]></content:encoded>
			<wfw:commentRss>http://randquist.us/blog/2008/07/07/yafinr-yet-another-forum-in-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Schooled by C++</title>
		<link>http://randquist.us/blog/2006/05/31/schooled-by-c/</link>
		<comments>http://randquist.us/blog/2006/05/31/schooled-by-c/#comments</comments>
		<pubDate>Wed, 31 May 2006 16:45:35 +0000</pubDate>
		<dc:creator>CobyR</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[c++ on Linux]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://www.randquist.us/blog/?p=18</guid>
		<description><![CDATA[Well last night, after experience truely random behavior in my database interface daemon project, I finally tracked down my issue. A Vector of Strings that was being passed in, and was being left empty, I had programatically made the assumption that it would have values. Sometimes my pointers hit safe memory, other times they did [...]]]></description>
			<content:encoded><![CDATA[<p>Well last night, after experience truely random behavior in my database interface daemon project, I finally tracked down my issue.  A Vector of Strings that was being passed in, and was being left empty, I had programatically made the assumption that it would have values.</p>
<p>Sometimes my pointers hit safe memory, other times they did not.  Four hours in debugging to remind me exactly why most other languages do not support pointers.  They require you to be careful and thoughtful in your coding, something that seems to be less emphasized in most development projects.  It was a good lesson, still throughly enjoying c++ and all its aspects.</p>
]]></content:encoded>
			<wfw:commentRss>http://randquist.us/blog/2006/05/31/schooled-by-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Maps, Queues and other containers in the STL</title>
		<link>http://randquist.us/blog/2006/04/18/maps-queues-and-other-containers-in-the-stl/</link>
		<comments>http://randquist.us/blog/2006/04/18/maps-queues-and-other-containers-in-the-stl/#comments</comments>
		<pubDate>Tue, 18 Apr 2006 19:37:31 +0000</pubDate>
		<dc:creator>CobyR</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[c++ on Linux]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[STL]]></category>

		<guid isPermaLink="false">http://www.randquist.us/blog/?p=15</guid>
		<description><![CDATA[I have been working a lot lately with Maps and Queues in STL. Good stuff, see links below for details: http://www.sgi.com/tech/stl/Map.html http://www.sgi.com/tech/stl/queue.html]]></description>
			<content:encoded><![CDATA[<p>I have been working a lot lately with Maps and Queues in STL.</p>
<p>Good stuff, see links below for details:</p>
<p><a href="http://www.sgi.com/tech/stl/Map.html" target="_blank">http://www.sgi.com/tech/stl/Map.html</a></p>
<p><a href="http://www.sgi.com/tech/stl/queue.html" target="_blank">http://www.sgi.com/tech/stl/queue.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://randquist.us/blog/2006/04/18/maps-queues-and-other-containers-in-the-stl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C++ How to: Convert from string to int and int to string</title>
		<link>http://randquist.us/blog/2006/03/27/c-how-to-convert-from-string-to-int-and-int-to-string/</link>
		<comments>http://randquist.us/blog/2006/03/27/c-how-to-convert-from-string-to-int-and-int-to-string/#comments</comments>
		<pubDate>Mon, 27 Mar 2006 23:19:36 +0000</pubDate>
		<dc:creator>CobyR</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[c++ on Linux]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://www.randquist.us/blog/?p=14</guid>
		<description><![CDATA[How do I convert a string to an int in c++? The simplest way is to use the function int std::atoi(const char*) declared in cstdlib. For example, std::atoi("42") returns 42. Alternatively, you can use std::strtol() or std::strtoul(). These functions provide more functionality such as the ability to convert hexadecimal or octal number strings, and are [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How do I convert a string to an int in c++?</strong></p>
<p>The simplest way is to use the function <code>int std::atoi(const char*)</code> declared in <code>cstdlib</code>. For example, <code>std::atoi("42")</code> returns <code>42</code>. Alternatively, you can use <code>std::strtol()</code> or <code>std::strtoul()</code>. These functions provide more functionality such as the ability to convert hexadecimal or octal number strings, and are also declared in <code>cstdlib</code>.</p>
<p><strong>How do I convert an int to a string?</strong></p>
<p>Converting from int to string is a little more complicated than converting a string to int. There are no standard C++ functions for this, but there is a way to do it using standard <code>stringstream</code>s. The class <code>stringstream</code> is declared in header <code>sstream</code> and is used like this:</p>
<p class="a">
<table class="code" border="0" cellspacing="1" cellpadding="2">
<tbody>
<tr>
<td><code>std::stringstream�ss;<br />
std::string�str;<br />
ss�&lt;&lt;�42;<br />
ss�&gt;&gt;�str;</code></td>
</tr>
</tbody>
</table>
<p class="a">The variable str now contains <code>"42"</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://randquist.us/blog/2006/03/27/c-how-to-convert-from-string-to-int-and-int-to-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Time Measurement in c++</title>
		<link>http://randquist.us/blog/2006/03/24/time-measurement-in-c/</link>
		<comments>http://randquist.us/blog/2006/03/24/time-measurement-in-c/#comments</comments>
		<pubDate>Fri, 24 Mar 2006 18:27:14 +0000</pubDate>
		<dc:creator>CobyR</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[c++ on Linux]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://www.randquist.us/blog/?p=8</guid>
		<description><![CDATA[In C++, you can measure time with the following: #include clock_t start,finish; double time; start = clock(); // The Code you want to clock goes here. finish = clock(); time = (double(finish)-double(start))/CLOCKS_PER_SEC;]]></description>
			<content:encoded><![CDATA[<p>In C++, you can measure time with the following:</p>
<pre>#include</pre>
<pre>clock_t start,finish;</pre>
<pre>double time;</pre>
<pre>start = clock();</pre>
<p><strong></p>
<pre>// The Code you want to clock goes here.</pre>
<p></strong></p>
<pre>finish = clock();</pre>
<pre>time = (double(finish)-double(start))/CLOCKS_PER_SEC;</pre>
]]></content:encoded>
			<wfw:commentRss>http://randquist.us/blog/2006/03/24/time-measurement-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>std::vector &#8211; easy way to get arrays from c++ to Perl</title>
		<link>http://randquist.us/blog/2006/03/22/stdvector-easy-way-to-get-arrays-from-c-to-perl/</link>
		<comments>http://randquist.us/blog/2006/03/22/stdvector-easy-way-to-get-arrays-from-c-to-perl/#comments</comments>
		<pubDate>Wed, 22 Mar 2006 18:47:11 +0000</pubDate>
		<dc:creator>CobyR</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[c++ on Linux]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.randquist.us/blog/?p=6</guid>
		<description><![CDATA[We have been working on getting the results from our c++ library out to the perl programs in our system. Using SWIG (http://www.swig.org). Hit some snags with passing arrays of strings. So we changed to using vector&#8217;s, and things are work smoothly now. On to createing the class that will represent the Database(s) in the [...]]]></description>
			<content:encoded><![CDATA[<p>We have been working on getting the results from our c++ library out to the perl programs in our system. Using SWIG (<a href="http://www.swig.org/">http://www.swig.org</a>).  Hit some snags with passing arrays of strings. So we changed to using vector&#8217;s, and things are work smoothly now.</p>
<p>On to createing the class that will represent the Database(s) in the system, allowing for internal and external logging of telemetry data.</p>
]]></content:encoded>
			<wfw:commentRss>http://randquist.us/blog/2006/03/22/stdvector-easy-way-to-get-arrays-from-c-to-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

