<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with c</title>
      <link>http://ask.metafilter.com/tags/c</link>
      <description>Questions tagged with 'c' at Ask MetaFilter.</description>
	  <pubDate>Tue, 01 Dec 2009 08:07:28 -0800</pubDate> <lastBuildDate>Tue, 01 Dec 2009 08:07:28 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>Help with a simple Visual C# coding problem?</title>
	<link>http://ask.metafilter.com/139487/Help%2Dwith%2Da%2Dsimple%2DVisual%2DC%2Dcoding%2Dproblem</link>	
	<description>Oh God.  Where to start?  This is, at its heart, a programming question about C#.  It&apos;s probably not a very hard programming question, either. Although it is against my nature, I will attempt to be brief.  I recently built a Windows Media Center PC and hooked it up to my TV and I&apos;m really loving the Windows 7 media center experience... except that all the music I&apos;ve accumulated for the last 10 years or so is in iTunes.  So, while I can watch movies and TV shows and browse my pictures and be a multimedia guru, if I want to listen to music I have to get up off the couch, close media center, launch iTunes and then pump up the volume.  &lt;br&gt;
&lt;br&gt;
On some level this really irritates me.&lt;br&gt;
&lt;br&gt;
I explored exhaustively solutions that exist out in the wild.  MCE Tunes looks like a great application that will basically allow you to access iTunes from inside WMC, but it doesn&apos;t work with Windows 7, and they have stopped supporting the product. &lt;br&gt;
&lt;br&gt;
So, I set upon the idea of importing all my iTunes music into Media Player - thus making it accessible to my Media Center interface.  Since Media Player can handle mp3 and m4a files (and thus, 99% of my collection), I figured it wouldn&apos;t be a really big deal.  But the problem as I understand it is that Media Player can&apos;t read meta data from m4a files, and so this would cause a digital divide - I would then have two music programs pointed at the same library of music and I would have to update information in both libraries and make changes and corrections in both libraries and basically this felt like a major hassle.  Plus, I would have to re-enter all the meta data for my m4a files!&lt;br&gt;
&lt;br&gt;
There&apos;s another application called Sound Bridge that takes your iTunes library and dumps it into Media Player, but, again, this doesn&apos;t work with Windows 7 and an update does not appear to be on the horizon.&lt;br&gt;
&lt;br&gt;
Great!&lt;br&gt;
&lt;br&gt;
Well, I thought about it and, you know, hey, I have a CS degree - admittedly a little rusty, but I have one - so I was all like, &quot;Hey, you know what, fuck it, I&apos;ll fire up Visual Studio 2008 and I&apos;ll just write my own program!&quot;&lt;br&gt;
&lt;br&gt;
So, I set out to write a C# program that would take my iTunes library file and collect all the track information and meta data and file info and then build a Media Player library out of it.&lt;br&gt;
&lt;br&gt;
And, even though I was 99% sure I would fail miserably, I&apos;ve actually made some progress.&lt;br&gt;
&lt;br&gt;
I have, at this point, a console application that reads in my iTunes XML library, parses it, and then adds all the files and meta data to a Windows Media Player playlist.  Except that, for some reason, on some files, while setting the meta data in Windows Media Player, I&apos;ll get a permission denied error, as if I do not have access rights to set a specific attribute (like, say, genre) for a specific track.&lt;br&gt;
&lt;br&gt;
I&apos;ve done some investigating and it looks like I may be able to resolve this issue by way of a function called requestMediaAccessRights() - apparently according to all the demos and code samples I can find, I should be able to do the following:&lt;br&gt;
&lt;br&gt;
myMediaPlayerObject.settings.requestMediaAccessRights(&quot;full&quot;);&lt;br&gt;
&lt;br&gt;
Except, for some reason, Visual Studio can&apos;t find that function.  I can access a host of different functions for myMediaPlayerObject.settings, but requestMediaAccessRights just isn&apos;t one of them, and I can&apos;t for the life of me figure out why. I&apos;m adding the Media Player COM object to my project, and I can do everything else with Media Player....  that specific function just seems to be missing.&lt;br&gt;
&lt;br&gt;
Does anyone have any idea why that might be?  &lt;br&gt;
&lt;br&gt;
The other thing I&apos;m toying with is transferring the album art.  I see from the MSDN that a Media Player media object has a &quot;WM\Picture&quot; attribute, which references a piece of album art, and I can get the album art out of iTunes, but I can&apos;t seem to figure out how to &lt;i&gt;set&lt;/i&gt; the WM\Picture attribute.  &lt;br&gt;
&lt;br&gt;
Any clues?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.139487</guid>
	<pubDate>Tue, 01 Dec 2009 08:07:28 -0800</pubDate>
	<category>C</category>
	<category>coding</category>
	<category>itunes</category>
	<category>mediaplayer</category>
	<category>msdn</category>
	<category>programming</category>
	<category>requestMediaAccessRights</category>
	<dc:creator>kbanas</dc:creator>
	</item>
	<item>
	<title>Learning C++ or Matlab from scratch</title>
	<link>http://ask.metafilter.com/135964/Learning%2DC%2Dor%2DMatlab%2Dfrom%2Dscratch</link>	
	<description>Is it possible to learn C++ or matlab for financial engineering without a strong background in math or previous experience in computer science or engineering?

Any advice would be appreciated.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.135964</guid>
	<pubDate>Tue, 20 Oct 2009 12:11:51 -0800</pubDate>
	<category>C</category>
	<category>Cplusplus</category>
	<category>financialengineering</category>
	<category>programming</category>
	<category>trading</category>
	<dc:creator>jsmith78</dc:creator>
	</item>
	<item>
	<title>Help me filter my data!</title>
	<link>http://ask.metafilter.com/135307/Help%2Dme%2Dfilter%2Dmy%2Ddata</link>	
	<description>I&apos;m trying to get more comfortable with Linq and I&apos;m having some trouble. I have a list &lt;i&gt;myprojects&lt;/i&gt; that is initiated when a session is started (and discarded at the end).  I have a &lt;i&gt;projects&lt;/i&gt; entity and repository and have a form setup to add &lt;i&gt;projects&lt;/i&gt; to &lt;i&gt;myprojects&lt;/i&gt;. This works. I have a &lt;i&gt;reports&lt;/i&gt; entity where there might be many reports to a single project. I&apos;m trying to use myprojects to filter the reports and this does not work. I&apos;m using ASP.NET MVC, C#. Here are my domain model entities:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
 public class Report&lt;br&gt;
&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public string Id { get; set; }&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public string Description { get; set; }&lt;br&gt;
&amp;nbsp;&amp;nbsp;}&lt;br&gt;
----&lt;br&gt;
public class myProjects&lt;br&gt;
&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;private List&lt;myprojectsline&gt; lines = new List&lt;myprojectsline&gt;();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;IList&lt;myprojectsline&gt; Lines { get { return lines.AsReadOnly(); }&lt;br&gt;
&amp;nbsp;&amp;nbsp;}&lt;br&gt;
public class myProjectsLine&lt;br&gt;
&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public Project Project { get; set;}&lt;br&gt;
&amp;nbsp;&amp;nbsp;}&lt;br&gt;
----&lt;br&gt;
public class Project&lt;br&gt;
&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public string Id { get; set; }&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public string Description { get; set;}&lt;br&gt;
&amp;nbsp;&amp;nbsp;}&lt;br&gt;
&lt;/myprojectsline&gt;&lt;/myprojectsline&gt;&lt;/myprojectsline&gt;&lt;/code&gt;&lt;br&gt;
I&apos;ve been trying to filter in my controller. It might be preferable to filter in the domain, but I was just trying to get it to work, so please correct me if need be. Here&apos;s I have for my ReportController:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
public class ReportsController : Controller&lt;br&gt;
&amp;nbsp;&amp;nbsp;{ &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;private IReportsRepository reportsRepository;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;private IProjectsRepository projectsRepository;&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;public ReportsController(IProjectsRepository projectsRepository)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;reportsRepository = new FakeyReportsRepository();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.projectsRepository = projectsRepository;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br&gt;
&amp;nbsp;&amp;nbsp;public ViewResult List(Report reports)&lt;br&gt;
&amp;nbsp;&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;var x = reportsRepository.Reports.ToList();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;return View(x);&lt;br&gt;
&amp;nbsp;&amp;nbsp;}&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
The List ViewResult works fine, it shows all the reports. If I create another ViewResult like this:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
public ViewResult MyReport(myProjects myprojects, Report reports)&lt;br&gt;
&amp;nbsp;{&lt;br&gt;
&amp;nbsp;&amp;nbsp;var a = myprojects.Lines.ToList();&lt;br&gt;
&amp;nbsp;&amp;nbsp;var b = a.Count().ToString(&quot;d&quot;);&lt;br&gt;
&amp;nbsp;&amp;nbsp;ViewData[&quot;my&quot;] = b;&lt;br&gt;
&amp;nbsp;&amp;nbsp;return View();&lt;br&gt;
&amp;nbsp;}&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Hey it correctly shows the number of myprojects I have, so it &lt;i&gt;must&lt;/i&gt; be seeing the data. I&apos;m 95% sure that it has to do with myprojects being in the IList, yet trying to make it AsQueryable or turning reports ToList() won&apos;t get me anywhere when I&apos;m  trying to use Where and a Lambda expression like &quot;var x = reports.Where(x=&amp;gt;x.Id == myprojects.Id)&quot; I&apos;ve been working on this for two days now and I think I might have worked myself into a corner and can&apos;t see how to do this. It seems like it should be &lt;i&gt;so&lt;/i&gt; easy and I could write an SQL statement that does this very quickly, I&apos;m assuming with all this Linq fanciness this should be doable.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.135307</guid>
	<pubDate>Mon, 12 Oct 2009 18:59:16 -0800</pubDate>
	<category>c</category>
	<category>linq</category>
	<dc:creator>geoff.</dc:creator>
	</item>
	<item>
	<title>What does it mean when someone flashes you a &quot;C&quot; while driving?</title>
	<link>http://ask.metafilter.com/133979/What%2Ddoes%2Dit%2Dmean%2Dwhen%2Dsomeone%2Dflashes%2Dyou%2Da%2DC%2Dwhile%2Ddriving</link>	
	<description>Tonight around midnight, in South City St. Louis, MO, my mom pulled up to a stoplight left of a pickup truck, and the thirty-something, white, crew-cut haired driver flashed her a hand sign that looked, from her perspective, like the letter &quot;C.&quot; He did this several times over the next couple minutes whenever he pulled along side her, until she managed to lose him. Has anyone seen this before or know what it means?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.133979</guid>
	<pubDate>Sun, 27 Sep 2009 22:49:55 -0800</pubDate>
	<category>C</category>
	<category>driving</category>
	<category>gangsign</category>
	<category>handsign</category>
	<category>signlanguage</category>
	<dc:creator>Hollow</dc:creator>
	</item>
	<item>
	<title>What the *?</title>
	<link>http://ask.metafilter.com/130321/What%2Dthe</link>	
	<description>&lt;code&gt;int *ptr=(int*)2;&lt;/code&gt;  ...could someone explain the use of the second asterisk? So I&apos;m trying to wrap my head around &apos;C&apos; (...or is that &apos;C&apos; around my head?)&lt;br&gt;
&lt;br&gt;
I&apos;ve been reading a pointer tutorial. I understand that I can declare a pointer by saying:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;int *skybird;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
...or declare it and assign an address of a variable to it by saying:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;int *skybird=&amp;amp;dropkick;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
...but if I declare the pointer and then assign the address to it in seperate statements, like thus:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;int *skybird;&lt;br&gt;*skybird=&amp;amp;dropkick;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
...Xcode warns me that my assignment makes integer from pointer without a cast. I take this to mean that the address of dropkick has no predetermined cast. So, I fix this by saying:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;...&lt;br&gt;
*skybird=(int)&amp;dropkick;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
...although this:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;int *skybird=&amp;dropkick;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
...without having to using the integer operator on &lt;code&gt;&amp;amp;dropkick&lt;/code&gt;, is fine. (I&apos;m not sure why that is.)&lt;br&gt;
&lt;br&gt;
I could declare a pointer and assign it a value right there and then, like:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;int *crystal_palace=2;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
...but I get the same cast warning as before. So I change it to:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;int *crystal_palace=(int)2;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Makes sense to me. But, same warning. So I do as I&apos;ve seen in my text books and type in an extra asterisk:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;int *crystal_palace=(int&lt;b&gt;*&lt;/b&gt;)2;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
...and all is well. Thing is, I don&apos;t understand why. In short. Why the *?&lt;br&gt;
&lt;br&gt;
This works:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;int *skybird;&lt;br&gt;
*skybird=(int)&amp;dropkick;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
But this doesn&apos;t:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;int *skybird=(int)&amp;dropkick;&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
My brain is casserole.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;small&gt;&lt;em&gt;I&apos;ve scoured my books but cannot find an explanation for the asterisk in the rvalue cast operator. (Am I speaking the correct jargon?) I understand the asterisk used before the pointer when declaring the pointer tells the compiler that I&apos;m declaring a pointer. I understand that the asterisk is used before the pointer name when referencing the value stored at the location pointed to. I understand the no operator is used when the address pointed to needs to be referenced. I also understand that to reference the address of the pointer itself, the ampersand operator is used. I&apos;ve looked and looked and looked, and I&apos;m stuck. Bonus points if you could tell me why &lt;/em&gt;&lt;code&gt;(int)*bo=(int*)2;&lt;/code&gt;&lt;em&gt; is wrong.&lt;/em&gt;&lt;/small&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.130321</guid>
	<pubDate>Sun, 16 Aug 2009 16:09:55 -0800</pubDate>
	<category>C</category>
	<category>programming</category>
	<dc:creator>run&quot;monty</dc:creator>
	</item>
	<item>
	<title>Calling all algorithm lovers!</title>
	<link>http://ask.metafilter.com/127535/Calling%2Dall%2Dalgorithm%2Dlovers</link>	
	<description>I need help solving an interesting algorithm using &apos;C&apos;! Say for example, I have a daisy chain laid out like this which snakes from 0 to 15:&lt;br&gt;
&lt;br&gt;
15 14 13 12&lt;br&gt;
08 09 10 11&lt;br&gt;
07 06 05 04&lt;br&gt;
00 01 02 03&lt;br&gt;
&lt;br&gt;
I know the height and width ahead of time (4x4), but I want to know what index of the daisy chain corresponds to a certain (x,y) coordinate.&lt;br&gt;
&lt;br&gt;
If I want the index of coordinate (1,2), I would get 9.&lt;br&gt;
If I want the index of coordinate (3,1), I would get 4.&lt;br&gt;
If I want the index of coordinate (3,3), I would get 12.&lt;br&gt;
etc...&lt;br&gt;
&lt;br&gt;
Using &apos;C&apos; I envision it something like this:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
#define WIDTH 4&lt;br&gt;
#define HEIGHT 4&lt;br&gt;
&lt;br&gt;
Index = CalculateIndex(WIDTH, HEIGHT, 1, 2);&lt;br&gt;
//Index should be equal to 9.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
What&apos;s inside CalculateIndex?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.127535</guid>
	<pubDate>Wed, 15 Jul 2009 15:36:22 -0800</pubDate>
	<category>algorithm</category>
	<category>c</category>
	<dc:creator>niwnfyc</dc:creator>
	</item>
	<item>
	<title>How do you traverse a really large library like .NET?</title>
	<link>http://ask.metafilter.com/127257/How%2Ddo%2Dyou%2Dtraverse%2Da%2Dreally%2Dlarge%2Dlibrary%2Dlike%2DNET</link>	
	<description>I&apos;m working a project that requires some custom programming. This is outside of my usual domain, I&apos;m feeling overwhelmed by the amount of objects and libraries available to me. I find most of my time is spent looking up what to include and how to do simple things that are easy once I find what I&apos;m looking for. What&apos;s the best way to go about learning the libraries? Should I just sit down with a big reference book? I find myself actually comfortable with the programming and grasped the object oriented programming concepts fairly quickly (it was sort of an a-ha moment).&lt;br&gt;
&lt;br&gt;
However, the .NET library is so big and has so many different things to use, I often spend a lot of time dicking around trying to figure out the best way to accomplish what I want. MSDN and other documentation is abundant, but sort of obtuse. I spend a lot of time googling to find what I need. I&apos;m thinking of sitting down and going through the entire library methodically and try to memorize or familiarize myself with as much as possible. Is this a crazy thing to do or a good way to go about it?&lt;br&gt;
&lt;br&gt;
Are there any good guides besides MSDN that sort of distill things down in a more accessible way? Any advice?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.127257</guid>
	<pubDate>Sun, 12 Jul 2009 19:30:19 -0800</pubDate>
	<category>c</category>
	<category>msdn</category>
	<category>net</category>
	<dc:creator>geoff.</dc:creator>
	</item>
	<item>
	<title>Any Storm In A Port?</title>
	<link>http://ask.metafilter.com/124647/Any%2DStorm%2DIn%2DA%2DPort</link>	
	<description>Can I port an open-source project to another language without violating its &lt;a href=&quot;http://www.opensource.org/licenses/bsd-license.php&quot;&gt;BSD License&lt;/a&gt;? I&apos;m writing a Twitter client and using a great open source library that&apos;s hosted at Google Code.  Problem is that it&apos;s written in c#.&lt;br&gt;
&lt;br&gt;
I&apos;d like to port it to VB.Net, both for my own benefit and so that other VB developers who don&apos;t have C# chops can use it. m I also plan to host at Google Code under the BSD license.&lt;br&gt;
&lt;br&gt;
I&apos;ve contacted the project&apos;s founder but I have heard no reply.&lt;br&gt;
&lt;br&gt;
Questions:&lt;br&gt;
1. With his code released under BSD, can I port it without his express permission?  I would, of course, credit his original work.&lt;br&gt;
&lt;br&gt;
2. Does the BSD license give him the ability to &quot;pull the plug&quot; on my project since it&apos;s based on his work?&lt;br&gt;
&lt;br&gt;
3. Does this sort of thing constitute a &quot;fork&quot;?&lt;br&gt;
&lt;br&gt;
4. Am I asking for legal trouble or just plain drama if I proceed without his permission?&lt;br&gt;
&lt;br&gt;
Thanks for your input.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.124647</guid>
	<pubDate>Fri, 12 Jun 2009 15:10:24 -0800</pubDate>
	<category>BSD</category>
	<category>c</category>
	<category>licensing</category>
	<category>programming</category>
	<category>resolved</category>
	<category>vb</category>
	<dc:creator>DWRoelands</dc:creator>
	</item>
	<item>
	<title>Help me escape the quotes!</title>
	<link>http://ask.metafilter.com/124090/Help%2Dme%2Descape%2Dthe%2Dquotes</link>	
	<description>Visual Studio 2008 IDE Question I&apos;m hoping this will just be a simple answer (and that it exists). I do a lot of C# coding in Visual Studio 2008. Intellisense makes me life a whole lot easier, however I can&apos;t seem to figure out how to do something that should, I feel, be obvious.&lt;br&gt;
&lt;br&gt;
Say I&apos;m trying to set the value of an attribute. If I type &quot;Col&quot; I get a drop-down list and I can choose &quot;Color&quot; and press tab and it will auto complete to Color=&quot;&quot; with my cursor inside the quotes where I can start typing. Now this attribute happens to have predefined values, so that when I start typing, I&apos;ll get another drop-down list, and I can highlight say &quot;Green&quot; and hit tab. It will auto complete to Color=&quot;Green&quot; and my cursor will be outside of the quotes and I can continue on my merry way.&lt;br&gt;
&lt;br&gt;
If, however, the attribute I&apos;m writing doesn&apos;t have predefined values, I run into a problem. I&apos;ll type something like &quot;Prop&quot; and then highlight Property and hit tab. It will auto complete to Property=&quot;&quot; with my cursor inside the quotes. I&apos;ll type whatever, say FontWeight, and now my cursor is still inside the quotes. The only way I can manage to continue is to hit the right arrow key, or click to the right of the quote with my mouse. Both actions move my hand away from homerow and significantly interrupt work flow. So I&apos;m wondering if, once I&apos;m at the point of finishing typing FontWeight (or whatever situation I don&apos;t have a drop-down list), is there a shortcut keypress to jump to the right of the quote?&lt;br&gt;
&lt;br&gt;
I realize that&apos;s a little nit-picky, but pressing something like ctrl+enter is infinitely more preferable than trying to press the right cursor arrow.&lt;br&gt;
&lt;br&gt;
For what it&apos;s worth, I&apos;ve been trying to play around with shortcuts. ctrl+shift+enter escapes the quotes, but also jumps down to the next line, leaving to press backspace a lot :-\&lt;br&gt;
&lt;br&gt;
Thanks for any help, how the question is clear.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.124090</guid>
	<pubDate>Sun, 07 Jun 2009 04:26:54 -0800</pubDate>
	<category>c</category>
	<dc:creator>sepsis</dc:creator>
	</item>
	<item>
	<title>How much is &quot;some&quot; in C programming?</title>
	<link>http://ask.metafilter.com/123484/How%2Dmuch%2Dis%2Dsome%2Din%2DC%2Dprogramming</link>	
	<description>How much of C do I need to learn before moving on to Cocoa, and what&apos;s the best resource for learning it? I&apos;m very interested in programming for the Mac and iPhone, but I have no real prior programming experience. On the recommendation of an AskMeFi answer, I bought the latest edition of the Hillegass book. However, it states something like &quot;this book was written for those who already know some C programming and something about objects.&quot; So how much is &quot;some&quot;? What resources will best help me learn the parts of C I need to know before moving on to Cocoa? I want to hit the ground running, so if there is a good crash course out there, what is it?Are there any video resources?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.123484</guid>
	<pubDate>Sun, 31 May 2009 06:45:51 -0800</pubDate>
	<category>c</category>
	<category>cocoa</category>
	<category>iPhone</category>
	<category>Mac</category>
	<category>os</category>
	<category>x</category>
	<dc:creator>joshrholloway</dc:creator>
	</item>
	<item>
	<title>How to turn processes into clickable links</title>
	<link>http://ask.metafilter.com/120845/How%2Dto%2Dturn%2Dprocesses%2Dinto%2Dclickable%2Dlinks</link>	
	<description>I would like to write a program which transforms the Windows task manager&apos;s process list into clickable links. Where do I start? I often find myself googling the obscure process names in my task manager to see what program uses it, and/or if it&apos;s safe. I&apos;d love to be able to just click on the process and have it open a browser and run the google search. &lt;br&gt;
&lt;br&gt;
I tried to get the &quot;&lt;a href=&quot;http://www.anappaday.com/downloads/&quot;&gt;App A Day&lt;/a&gt;&quot; guy to do it years ago, but he instead made &lt;a href=&quot;http://www.anappaday.com/downloads/2006/10/day-30-google-any-text.html&quot;&gt;a more generic version&lt;/a&gt; that googled any highlighted text, which, although very useful, is a bit buggy and not quite what I need.&lt;br&gt;
&lt;br&gt;
Can I use something like C# and the Windows API to change the behavior of the Task Manager, or is this program was completely locked off from tweaks? I&apos;m a fairly experienced coder but have never delved into the Windows API.&lt;br&gt;
&lt;br&gt;
Thank you for any suggestions you might have!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.120845</guid>
	<pubDate>Wed, 29 Apr 2009 13:19:11 -0800</pubDate>
	<category>c</category>
	<category>processes</category>
	<category>programming</category>
	<category>taskmanager</category>
	<category>windows</category>
	<category>windowsapi</category>
	<dc:creator>TimeTravelSpeed</dc:creator>
	</item>
	<item>
	<title>Help me absorb my vitamins &amp;amp; prevent my cold!!</title>
	<link>http://ask.metafilter.com/119447/Help%2Dme%2Dabsorb%2Dmy%2Dvitamins%2Dand%2Dprevent%2Dmy%2Dcold</link>	
	<description>How fast do vitamins &amp;amp; Minerals absorb into the body? Alright, i am coming down with a cold, it is setting on fast and bad.  I don&apos;t want it!  My question is, does it help to take more vitamins then the recommended daily value?&lt;br&gt;
&lt;br&gt;
I take &lt;a href=&quot;http://www.emergenc.com/&quot;&gt;Emergen-C&lt;/a&gt; as a supplement. &lt;br&gt;
&lt;br&gt;
The first number is the amount, % is percent daily value&lt;br&gt;
&lt;br&gt;
Emergen-C (super orange)&lt;br&gt;
The first number is the amount, % is percent daily value&lt;br&gt;
&lt;br&gt;
Vitamin C (as Mineral Ascorbates)  	&lt;br&gt;
1000 mg 	1111 %  &lt;br&gt;
	&lt;br&gt;
Vitamin B1 (THiamine HCI) 	&lt;br&gt;
.38 mg 	25 %  &lt;br&gt;
	&lt;br&gt;
Vitamin B2 (Riboflavin) 	&lt;br&gt;
.43 mg 	25 %  &lt;br&gt;
	&lt;br&gt;
Special Niacin Complexes 	&lt;br&gt;
10 mg 	50 %  &lt;br&gt;
	&lt;br&gt;
Vitamin B6 (Pyridoxine HCI) 	&lt;br&gt;
10 mg 	500 %  &lt;br&gt;
	&lt;br&gt;
Folic Acid 	&lt;br&gt;
12.5 mcg 	3.1 %  &lt;br&gt;
	&lt;br&gt;
Vitamin B12 (Cyanocobalamin) 	&lt;br&gt;
25 mcg 	416 %  &lt;br&gt;
	&lt;br&gt;
Pantothenic Acid 	&lt;br&gt;
2.5 mg 	25 %  &lt;br&gt;
	&lt;br&gt;
Potassium 	&lt;br&gt;
200 mg 	5.7 %  &lt;br&gt;
	&lt;br&gt;
Magnesium 	&lt;br&gt;
60 mg 	15 %  &lt;br&gt;
	&lt;br&gt;
Calcium 	&lt;br&gt;
50 mg 	5.0 %  &lt;br&gt;
	&lt;br&gt;
Zinc 	&lt;br&gt;
2 mg 	13 %  &lt;br&gt;
	&lt;br&gt;
Manganese 	&lt;br&gt;
1 mg 	50 %  &lt;br&gt;
	&lt;br&gt;
Chromium 	&lt;br&gt;
10 mcg 	8.3 %  &lt;br&gt;
	&lt;br&gt;
Quercetin (Bioflavonoid) 	&lt;br&gt;
10 mg 	*&lt;br&gt;
	&lt;br&gt;
Alpha-lipoic acid 	&lt;br&gt;
2 mg	*&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
So i guess my question is how long should i wait until i take another?  If i take two at the same time do they build up and take two times as long to be used or does one just get passed on?  If they do not stack how long should i wait until i take another?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.119447</guid>
	<pubDate>Mon, 13 Apr 2009 19:52:39 -0800</pubDate>
	<category>c</category>
	<category>emergen</category>
	<category>emergency</category>
	<category>health</category>
	<category>mineral</category>
	<category>sick</category>
	<category>supplement</category>
	<category>vitamin</category>
	<dc:creator>Black_Umbrella</dc:creator>
	</item>
	<item>
	<title>How to fix C++ static linking problems?</title>
	<link>http://ask.metafilter.com/117792/How%2Dto%2Dfix%2DC%2Dstatic%2Dlinking%2Dproblems</link>	
	<description>I need some help diagnosing a problem static linking a C++ program using g++. It compiles and runs just fine without &quot;-static&quot;, but I get all sorts of &quot;undefined references&quot; errors when I use &quot;-static&quot;. I&apos;m a C++ novice and am at a loss. Can anyone throw me a bone? I&apos;m using g++ v4.32 running on Debian Lenny.&lt;br&gt;
&lt;br&gt;
As I said, it compiles, links, and runs with no problem using dynamic linking. It just breaks with &quot;-static&quot;. This is also why I didn&apos;t post the source code, though I can if it would be helpful.&lt;br&gt;
&lt;br&gt;
Aside from the standard C++ stuff (iostream, ifstream), I&apos;m only using the vmime library and two libraries that it requires (gsasl and gnutls). I installed gsasl and gnutls using apt-get, but I built  libvmime from source with no errors. Libvmime&apos;s ./configure defaults to building both static and dynamic versions of the library, and I&apos;ve confirmed that both libvmime.a and libvmime.o exist. I also confirmed that .a files exist for both gsasl and gnutls. &lt;br&gt;
&lt;br&gt;
Here&apos;s my compile command line:&lt;br&gt;
g++ `pkg-config --cflags --libs vmime` -static -o mimetest mimetest.cpp&lt;br&gt;
&lt;br&gt;
The pkg-config bit expands to:&lt;br&gt;
-I/usr/local/include/  -L/usr/local/lib -lvmime -lgnutls -lgsasl&lt;br&gt;
&lt;br&gt;
I&apos;ve confirmed that libvmime exists under /usr/local/lib, and gnutls and gsasl exist under /usr/lib.&lt;br&gt;
&lt;br&gt;
I&apos;ve posted the errors below. Any suggestions?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
M&lt;br&gt;
------------------------------------------------------------------------------&lt;br&gt;
&lt;br&gt;
/tmp/ccioHkjN.o: In function `loadX509CertificateFromFile(std::basic_string&lt;char&gt;, std::allocator&lt;char&gt; &amp;gt; const&amp;amp;)&apos;:&lt;br&gt;
mimetest.cpp:(.text+0x140): undefined reference to `vmime::utility::inputStreamAdapter::inputStreamAdapter(std::basic_istream&lt;char&gt; &amp;gt;&amp;amp;&lt;br&gt;
)&apos;&lt;br&gt;
mimetest.cpp:(.text+0x15d): undefined reference to `vmime::security::cert::X509Certificate::import(vmime::utility::inputStream&amp;amp;)&apos;&lt;br&gt;
/tmp/ccioHkjN.o: In function `main&apos;:&lt;br&gt;
mimetest.cpp:(.text+0x2681): undefined reference to `vmime::security::cert::defaultCertificateVerifier::setX509RootCAs(std::vector&lt;vmime&gt;, std::allocator&lt;vmime&gt; &amp;gt; &amp;gt; const&amp;amp;)&apos;&lt;br&gt;
mimetest.cpp:(.text+0x2703): undefined reference to `vmime::net::session::getProperties()&apos;&lt;br&gt;
mimetest.cpp:(.text+0x27f5): undefined reference to `vmime::net::session::getProperties()&apos;&lt;br&gt;
mimetest.cpp:(.text+0x28dd): undefined reference to `vmime::net::session::getProperties()&apos;&lt;br&gt;
mimetest.cpp:(.text+0x29c8): undefined reference to `vmime::net::session::getProperties()&apos;&lt;br&gt;
mimetest.cpp:(.text+0x2ab2): undefined reference to `vmime::utility::url::url(std::basic_string&lt;char&gt;, std::allocator&lt;char&gt; &amp;gt; const&amp;amp;)&apos;&lt;br&gt;
mimetest.cpp:(.text+0x2b5c): undefined reference to `vmime::net::session::getStore(vmime::utility::url const&amp;amp;, vmime::utility::ref&lt;vmime&gt;)&apos;&lt;br&gt;
mimetest.cpp:(.text+0x2c0b): undefined reference to `vmime::net::service::setCertificateVerifier(vmime::utility::ref&lt;vmime&gt;)&apos;&lt;br&gt;
mimetest.cpp:(.text+0x2d60): undefined reference to `vmime::charsets::UTF_8&apos;&lt;br&gt;
mimetest.cpp:(.text+0x2d72): undefined reference to `vmime::charset::charset(char const*)&apos;&lt;br&gt;
&lt;br&gt;
----------------------------------------------------------------&lt;br&gt;
Cut out some...&lt;br&gt;
----------------------------------------------------------------&lt;br&gt;
&lt;br&gt;
/tmp/ccioHkjN.o: In function `vmime::header::Date() const&apos;:&lt;br&gt;
mimetest.cpp:(.text._ZNK5vmime6header4DateEv[vmime::header::Date() const]+0x1b): undefined reference to `vmime::fields::DATE&apos;&lt;br&gt;
mimetest.cpp:(.text._ZNK5vmime6header4DateEv[vmime::header::Date() const]+0x4a): undefined reference to `vmime::header::findField(std::basic_string&lt;char&gt;, std::allocator&lt;char&gt; &amp;gt; const&amp;amp;) const&apos;&lt;br&gt;
/tmp/ccioHkjN.o: In function `vmime::header::From() const&apos;:&lt;br&gt;
mimetest.cpp:(.text._ZNK5vmime6header4FromEv[vmime::header::From() const]+0x1b): undefined reference to `vmime::fields::FROM&apos;&lt;br&gt;
mimetest.cpp:(.text._ZNK5vmime6header4FromEv[vmime::header::From() const]+0x4a): undefined reference to `vmime::header::findField(std::basic_string&lt;char&gt;, std::allocator&lt;char&gt; &amp;gt; const&amp;amp;) const&apos;&lt;br&gt;
/tmp/ccioHkjN.o: In function `vmime::header::Subject() const&apos;:&lt;br&gt;
mimetest.cpp:(.text._ZNK5vmime6header7SubjectEv[vmime::header::Subject() const]+0x1b): undefined reference to `vmime::fields::SUBJECT&apos;&lt;br&gt;
mimetest.cpp:(.text._ZNK5vmime6header7SubjectEv[vmime::header::Subject() const]+0x4a): undefined reference to `vmime::header::findField(std::basic_string&lt;cha&gt;, std::allocator&lt;char&gt; &amp;gt; const&amp;amp;) const&apos;&lt;br&gt;
/tmp/ccioHkjN.o: In function `vmime::charset::~charset()&apos;:&lt;br&gt;
mimetest.cpp:(.text._ZN5vmime7charsetD1Ev[vmime::charset::~charset()]+0xd): undefined reference to `vtable for vmime::charset&apos;&lt;br&gt;
mimetest.cpp:(.text._ZN5vmime7charsetD1Ev[vmime::charset::~charset()]+0x2c): undefined reference to `vmime::component::~component()&apos;&lt;br&gt;
mimetest.cpp:(.text._ZN5vmime7charsetD1Ev[vmime::charset::~charset()]+0x50): undefined reference to `vmime::component::~component()&apos;&lt;br&gt;
/tmp/ccioHkjN.o: In function `vmime::utility::url::~url()&apos;:&lt;br&gt;
mimetest.cpp:(.text._ZN5vmime7utility3urlD1Ev[vmime::utility::url::~url()]+0x12): undefined reference to `vmime::propertySet::~propertySet()&apos;&lt;br&gt;
/tmp/ccioHkjN.o:(.rodata._ZTVN5vmime7utility11inputStreamE[vtable for vmime::utility::inputStream]+0x10): undefined reference to `vmime::utility::stream::get&lt;br&gt;
BlockSize() const&apos;&lt;br&gt;
/tmp/ccioHkjN.o:(.rodata._ZTIN5vmime7utility11inputStreamE[typeinfo for vmime::utility::inputStream]+0x8): undefined reference to `typeinfo for vmime::utilit&lt;br&gt;
y::stream&apos;&lt;br&gt;
collect2: ld returned 1 exit status&lt;br&gt;
&lt;br&gt;
&lt;/char&gt;&lt;/cha&gt;&lt;/char&gt;&lt;/char&gt;&lt;/char&gt;&lt;/char&gt;&lt;/vmime&gt;&lt;/vmime&gt;&lt;/char&gt;&lt;/char&gt;&lt;/vmime&gt;&lt;/vmime&gt;&lt;/char&gt;&lt;/char&gt;&lt;/char&gt;&lt;/char&gt;&lt;/cha&gt;&lt;/char&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.117792</guid>
	<pubDate>Thu, 26 Mar 2009 06:33:33 -0800</pubDate>
	<category>c</category>
	<category>development</category>
	<category>gcc</category>
	<category>linking</category>
	<category>programming</category>
	<category>static</category>
	<category>vmime</category>
	<dc:creator>duoshao</dc:creator>
	</item>
	<item>
	<title>C++ and rand()</title>
	<link>http://ask.metafilter.com/114452/C%2Dand%2Drand</link>	
	<description>C++ and the rand() function.  Please explain why this piece of code works the way it does: &lt;b&gt;cout &amp;lt;&amp;lt; rand() % 20 &amp;lt;&amp;lt; endl;&lt;/b&gt; &lt;b&gt;srand(time(0));&lt;br&gt;
cout &amp;lt;&amp;lt; rand() % 20 &amp;lt;&amp;lt; endl;&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
This returns a random number between 0 and 20, as promised by the book I&apos;m reading as well as internet tutorials.&lt;br&gt;
&lt;br&gt;
If I remove &quot;% 20&quot; from the code and am left with &lt;br&gt;
&lt;br&gt;
&lt;b&gt;srand(time(0));&lt;br&gt;
cout &amp;lt;&amp;lt; rand() &amp;lt;&amp;lt; endl;&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
This returns a really big number like 1847292034.&lt;br&gt;
&lt;br&gt;
Looking at the code, I would think that adding &quot;% 20&quot; should do nothing more than divide a random number like 1847292034 by 20 and return the integer portion (92364601).  But instead the compiler parses it in a different way that says not to generate a random number larger than 20.&lt;br&gt;
&lt;br&gt;
Am I interpreting this wrong?  Why does the compiler interpret this as something other than a mathematical operation?  Is this type of thing common in C++?&lt;br&gt;
&lt;br&gt;
Thanks!&lt;br&gt;
&lt;br&gt;
(I&apos;m using g++ to compile on a Ubuntu system.)</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.114452</guid>
	<pubDate>Tue, 17 Feb 2009 10:55:51 -0800</pubDate>
	<category>c</category>
	<category>numbers</category>
	<category>random</category>
	<category>randomnumbers</category>
	<category>resolved</category>
	<category>ubuntu</category>
	<dc:creator>Ziggy Zaga</dc:creator>
	</item>
	<item>
	<title>C programming question</title>
	<link>http://ask.metafilter.com/114249/C%2Dprogramming%2Dquestion</link>	
	<description>Seeking some direction in learning C for a project. I have an project I want to work up to, and I am planning on writing it in C.&lt;br&gt;
I have written simple command line programs in C. I have experience in simple shell and perl scripts.&lt;br&gt;
I&apos;ll be writing and running this program on an old box running Kubuntu 7.10.&lt;br&gt;
The ultimate project would be similar to an 8bit sprite/tile editor for bin dumps from toys.&lt;br&gt;
I did write a perl script which read in my dump and generated html files as 480 byte snapshots to look for the fullscreen graphics of the toy. This functionally worked, but took time to generate, used alot of space, and was slow to go through results.&lt;br&gt;
I downloaded several actual tile editors and tried my bin dump just to try. I found it of course much better than my method - loaded imediately with a scroll window to scan through quickly. What did not work was they were 8x8, 16x16, not a custom size.&lt;br&gt;
My end goal is to have an ajustable size scroll window which will allow me to identify offset by mouseover/click. &lt;br&gt;
My intial goal is just to write a gui app that renders the bits as pixels in a window.  &lt;br&gt;
I am looking for recommendations of online tutorials or books with projects that will build in the gui direction. What I have found seems to just be command line with output going to terminal or file.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.114249</guid>
	<pubDate>Sun, 15 Feb 2009 08:19:17 -0800</pubDate>
	<category>bindump</category>
	<category>c</category>
	<category>cprogramming</category>
	<category>gui</category>
	<dc:creator>sailormouth</dc:creator>
	</item>
	<item>
	<title>Books on C</title>
	<link>http://ask.metafilter.com/113926/Books%2Don%2DC</link>	
	<description>What books would you recommend for embedded C programming? I&apos;m involved in new group project (University) that will eventually evolve into an autonomous path-finding robot. FYI, it will probably use a PIC32 processor.&lt;br&gt;
&lt;br&gt;
I have a background in programming, and a good (practical) understanding of Java and C# having used them a lot over the last four years. However, pure C is not my strongest point, and I&apos;m needing a good brush-up! I&apos;ve done a bit as part of a module a while back, but certainly not enough to dive into detailed algorithms.&lt;br&gt;
&lt;br&gt;
What good books (or online resources) would you recommend to someone who has a reasonable set of experience with programming in general but needs a bit more to read on pure C?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.113926</guid>
	<pubDate>Wed, 11 Feb 2009 05:09:39 -0800</pubDate>
	<category>c</category>
	<category>embedded</category>
	<category>programming</category>
	<category>resolved</category>
	<dc:creator>gkhewitt</dc:creator>
	</item>
	<item>
	<title>Learning real-time sound event synchronization C++ programming?</title>
	<link>http://ask.metafilter.com/113634/Learning%2Drealtime%2Dsound%2Devent%2Dsynchronization%2DC%2Dprogramming</link>	
	<description>What are the libraries/techniques that are available for event synchronization in C++?  More specifically, how would I go about learning the best strategies for synchronizing events (say, a graphical event with an sound, or one sound with another)?

I&apos;m looking to learn about the techniques that are used by complex games as well as audio software, like Ableton Live or Logic. I&apos;ve programmed in a number of languages and frameworks but most of the time I haven&apos;t had to think about this aspect of making (rudimentary) sound software.  I guess I don&apos;t care too much about a response being C++ specific if it helps me understand the general concepts well, but I figure that&apos;s a good place to start, since that&apos;s the language I want to use.&lt;br&gt;
&lt;br&gt;
I see that there are &lt;a href=&quot;http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio.html&quot;&gt;some&lt;/a&gt; &lt;a href=&quot;http://www.cs.wustl.edu/~schmidt/ACE.html&quot;&gt;libraries&lt;/a&gt; out there that &lt;em&gt;may&lt;/em&gt; be appropriate, but I&apos;m a relative n00b at C++ and real-time programming, and I&apos;m not sure how to proceed.  Do game/audio programmers use complex systems for syncing events, or is it &quot;not that hard?&quot;  Do they roll their own usually, or are there standard libs out there that I just don&apos;t know about?  Are there good open source projects out there that implement this sort of thing that I could look at?  Am I even asking the right questions?&lt;br&gt;
&lt;br&gt;
Many thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.113634</guid>
	<pubDate>Sat, 07 Feb 2009 13:37:40 -0800</pubDate>
	<category>audioprogramming</category>
	<category>c</category>
	<category>computing</category>
	<category>gameprogramming</category>
	<dc:creator>dubitable</dc:creator>
	</item>
	<item>
	<title>Reward for Information!</title>
	<link>http://ask.metafilter.com/113059/Reward%2Dfor%2DInformation</link>	
	<description>Can you identify this 1950s robotic dog? &lt;a href=&quot;http://ase.tufts.edu/cogstud/incbios/dennettd/dennettd.htm&quot;&gt;Daniel C. Dennet&lt;/a&gt; of Tufts University has &lt;a href=&quot;http://ase.tufts.edu/cogstud/tati.htm&quot;&gt;pics&lt;/a&gt; (for some reason this page seems to load better in explorer than firefox, at least for me) on his webpage of a robotic dog he named Tati after filmmaker Jacques Tati.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.113059</guid>
	<pubDate>Sat, 31 Jan 2009 11:46:33 -0800</pubDate>
	<category>C</category>
	<category>Daniel</category>
	<category>Dennet</category>
	<category>dog</category>
	<category>Jacques</category>
	<category>robot</category>
	<category>Tati</category>
	<category>Tufts</category>
	<category>University</category>
	<dc:creator>levijk</dc:creator>
	</item>
	<item>
	<title>C#: capture data, display to user, save to disk, upload to database: BEST approach</title>
	<link>http://ask.metafilter.com/111953/C%2Dcapture%2Ddata%2Ddisplay%2Dto%2Duser%2Dsave%2Dto%2Ddisk%2Dupload%2Dto%2Ddatabase%2DBEST%2Dapproach</link>	
	<description>I have a program that captures live data from a piece of hardware on a set interval. The data is returned as XML. There are several things I would like to do with this data (in order): -display it to user -save it to disk -eventually, upload it to database My current approach is to take the XML, parse it into a hashtable so I can display the correct values to the user.&lt;br&gt;
&lt;br&gt;
Next, I want to save the XML to a file on disk. For each data capture session I am planning on creating a unique XML file and I will dump all the data into it.&lt;br&gt;
&lt;br&gt;
Finally, I would like to reparse the XML and upload it to a MySQL database. The data cannot be immediately uploaded to the database.&lt;br&gt;
&lt;br&gt;
This seems really inefficient method of solving this problem and I would love some advice.&lt;br&gt;
&lt;br&gt;
Is it a waste of hd space to save the data as XML?&lt;br&gt;
&lt;br&gt;
Is it THAT inefficient to have to reparse the XML in order to write it to a database?&lt;br&gt;
&lt;br&gt;
Thank you!&lt;br&gt;
&lt;br&gt;
To clarify: a typical XML response will be ~1kb and are captured at a rate of about 1 response every 15-60 seconds.&lt;br&gt;
&lt;br&gt;
I think I do want to store the XML as XML on the disk because the data is very valuable and a pain to reproduce (if it is even possible). Thank you!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.111953</guid>
	<pubDate>Sat, 17 Jan 2009 22:45:59 -0800</pubDate>
	<category>c</category>
	<category>programming</category>
	<category>xml</category>
	<dc:creator>jdlugo</dc:creator>
	</item>
	<item>
	<title>Experienced programmer, novice designer. Please help!</title>
	<link>http://ask.metafilter.com/108216/Experienced%2Dprogrammer%2Dnovice%2Ddesigner%2DPlease%2Dhelp</link>	
	<description>Tips / resources for designing / implementing and application from the ground up? I am a fairly seasoned C# programmer from a systems admin perspective - I started with python and moved to C# for scripting purposes primarily, and lightweight development.&lt;br&gt;
&lt;br&gt;
What this leaves me lacking is ANY experience with design, forethought, and really truly planning out any application. &lt;br&gt;
&lt;br&gt;
And now a coworker and myself have something we&apos;d like to put together, but I&apos;m looking for resources, tips, advice, etc on how a novice should go about designing the application from the ground floor.&lt;br&gt;
&lt;br&gt;
What should I be looking into? Are there any worthwhile web resources? If not (I did not find much), are there any particularly good books out there?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.108216</guid>
	<pubDate>Tue, 02 Dec 2008 12:05:34 -0800</pubDate>
	<category>c</category>
	<category>development</category>
	<category>programming</category>
	<dc:creator>yarrr</dc:creator>
	</item>
	<item>
	<title>Redisassembleunobfuscate?</title>
	<link>http://ask.metafilter.com/107484/Redisassembleunobfuscate</link>	
	<description>Why aren&apos;t there assembly -&amp;gt; C or pseudocode tools? So, for my last lap in college, I&apos;m doing the dreaded binary bomb project, which is actually kind of cool. I&apos;m almost done (5/6), and hopefully should be able to finish soon.&lt;br&gt;
&lt;br&gt;
But anyway, looking all this GAS, I&apos;m wondering why there isn&apos;t a tool that generates equivalent C or C++ code... it seems absurdly simple in some respects to simply generate one of the many possibilities of C that can yield a given assembly procedure, but I must be missing something?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.107484</guid>
	<pubDate>Sat, 22 Nov 2008 16:56:52 -0800</pubDate>
	<category>assembler</category>
	<category>assembly</category>
	<category>c</category>
	<category>coding</category>
	<category>gas</category>
	<category>gnu</category>
	<dc:creator>tmcw</dc:creator>
	</item>
	<item>
	<title>Live graphing in .NET, for free</title>
	<link>http://ask.metafilter.com/106284/Live%2Dgraphing%2Din%2DNET%2Dfor%2Dfree</link>	
	<description>What&apos;s the best way of adding a &quot;live&quot; graph to my .NET WinForms application, similar in behaviour to the scrolling CPU usage and pagefile graphs found in Task Manager? Must be free, not too ugly, and not too processor-intensive.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.106284</guid>
	<pubDate>Sat, 08 Nov 2008 07:05:53 -0800</pubDate>
	<category>application</category>
	<category>c</category>
	<category>control</category>
	<category>graph</category>
	<category>graphing</category>
	<category>net</category>
	<category>programming</category>
	<dc:creator>matthewr</dc:creator>
	</item>
	<item>
	<title>C++</title>
	<link>http://ask.metafilter.com/105944/C</link>	
	<description>How can a program output a variable number of files in C++? For example, if a user enters 3, then 3 files would be created:&lt;br&gt;
&lt;br&gt;
file1.txt&lt;br&gt;
file2.txt&lt;br&gt;
file3.txt&lt;br&gt;
&lt;br&gt;
Can I do this without just having a bunch of if statements for each option the user could enter?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.105944</guid>
	<pubDate>Tue, 04 Nov 2008 08:04:48 -0800</pubDate>
	<category>C</category>
	<dc:creator>londontomasbird</dc:creator>
	</item>
	<item>
	<title>Where can I find an honest, intelligent, organized community of folks looking for freelance .NET programmers?</title>
	<link>http://ask.metafilter.com/103522/Where%2Dcan%2DI%2Dfind%2Dan%2Dhonest%2Dintelligent%2Dorganized%2Dcommunity%2Dof%2Dfolks%2Dlooking%2Dfor%2Dfreelance%2DNET%2Dprogrammers</link>	
	<description>Where can I find an honest, intelligent, organized community of folks looking for freelance .NET programmers? I&apos;m looking to supplement my day job with freelance C# programming.  I have about 15 hours per week free, so I&apos;m looking for smallish projects (perhaps 45-90 hours per project..) to fill in my spare time.  &lt;br&gt;
&lt;br&gt;
I&apos;m a clean, efficient and thorough programmer, with excellent references looking to work for honest, intelligent, organized people.  Can you point me in the direction of a quality freelance software development community?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.103522</guid>
	<pubDate>Mon, 06 Oct 2008 07:38:56 -0800</pubDate>
	<category>c</category>
	<category>freelance</category>
	<category>net</category>
	<category>programming</category>
	<category>project</category>
	<dc:creator>Glendale</dc:creator>
	</item>
	<item>
	<title>0xUNDERSTAND</title>
	<link>http://ask.metafilter.com/102802/0xUNDERSTAND</link>	
	<description>Are there any scripting / cli-compatible languages which decently provide or at least pretend to provide bit-math? So, I&apos;m in one of my last CS courses in college, and it involves a whole lot of bit-mangling. Writing, testing C code is all right, but I kind of want to tinker in my free time to get a deeper understanding, and I&apos;d love some language that lets me use something like irb/python/hugs/etc to quickly test bit expressions (your usual ^, |, &amp;amp;, !, etc)&lt;br&gt;
&lt;br&gt;
Is there anything? I kind of remember a C++ CLI a while ago, but I can&apos;t figure out where it is.&lt;br&gt;
&lt;br&gt;
Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.102802</guid>
	<pubDate>Sat, 27 Sep 2008 11:42:15 -0800</pubDate>
	<category>bit</category>
	<category>bitmath</category>
	<category>c</category>
	<category>cli</category>
	<category>computer</category>
	<category>cs</category>
	<category>science</category>
	<dc:creator>tmcw</dc:creator>
	</item>
	
	</channel>
</rss>

