<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>bencoffman.com/blog - Windows</title>
    <link>http://bencoffman.com/blog/</link>
    <description>News about Tech and a few other things.</description>
    <language>en-us</language>
    <copyright>Ben Coffman</copyright>
    <lastBuildDate>Wed, 30 Jun 2010 19:10:24 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.1.8102.813</generator>
    <managingEditor>coffmanben@gmail.com</managingEditor>
    <webMaster>coffmanben@gmail.com</webMaster>
    <item>
      <trackback:ping>http://bencoffman.com/blog/Trackback.aspx?guid=ee2aea41-6f52-4b82-8416-d135b7d4a27f</trackback:ping>
      <pingback:server>http://bencoffman.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://bencoffman.com/blog/PermaLink,guid,ee2aea41-6f52-4b82-8416-d135b7d4a27f.aspx</pingback:target>
      <dc:creator>Ben Coffman</dc:creator>
      <wfw:comment>http://bencoffman.com/blog/CommentView,guid,ee2aea41-6f52-4b82-8416-d135b7d4a27f.aspx</wfw:comment>
      <wfw:commentRss>http://bencoffman.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=ee2aea41-6f52-4b82-8416-d135b7d4a27f</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://bencoffman.com/blog/content/binary/images.jpeg" border="0" />
        <b>
          <br />
          <br />
          <br />
Error Readout:<br /></b>None, it's not an error silly.<br /><br /><b>The Problem:<br /></b>When I debug, and look at a string that contains my file path I see 2 backslashs
(escape characters) in my string when I only wanted 1.<br /><br /><b>The Solution:</b><br />
It's nothing, don't worry about it, that's just the way Visual Studio "debug" shows
your path when you catch it while debugging. When the path is used in the code for
the file system there will only be 1 backslash and it will work correctly.<br /><br />
This is such a stupid little thing, but for some reason every once in a blue moon,
I forget and freak out on why it's doing this, thus wasting a solid five minutes of
my life. I put this post up in hopes I will never forget again and that if someone
happens to Google this, my post will pop up and help them move on quickly....maybe
only wasting 1 to 2 minutes. :)<br /><p></p><img width="0" height="0" src="http://bencoffman.com/blog/aggbug.ashx?id=ee2aea41-6f52-4b82-8416-d135b7d4a27f" /></body>
      <title>Debug: Double Backslashes In String, 2 Backslashes in String</title>
      <guid isPermaLink="false">http://bencoffman.com/blog/PermaLink,guid,ee2aea41-6f52-4b82-8416-d135b7d4a27f.aspx</guid>
      <link>http://bencoffman.com/blog/2010/06/30/DebugDoubleBackslashesInString2BackslashesInString.aspx</link>
      <pubDate>Wed, 30 Jun 2010 19:10:24 GMT</pubDate>
      <description>&lt;img src="http://bencoffman.com/blog/content/binary/images.jpeg" border="0"&gt; &lt;b&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Error Readout:&lt;br&gt;
&lt;/b&gt;None, it's not an error silly.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;The Problem:&lt;br&gt;
&lt;/b&gt;When I debug, and look at a string that contains my file path I see 2 backslashs
(escape characters) in my string when I only wanted 1.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;The Solution:&lt;/b&gt;
&lt;br&gt;
It's nothing, don't worry about it, that's just the way Visual Studio "debug" shows
your path when you catch it while debugging. When the path is used in the code for
the file system there will only be 1 backslash and it will work correctly.&lt;br&gt;
&lt;br&gt;
This is such a stupid little thing, but for some reason every once in a blue moon,
I forget and freak out on why it's doing this, thus wasting a solid five minutes of
my life. I put this post up in hopes I will never forget again and that if someone
happens to Google this, my post will pop up and help them move on quickly....maybe
only wasting 1 to 2 minutes. :)&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://bencoffman.com/blog/aggbug.ashx?id=ee2aea41-6f52-4b82-8416-d135b7d4a27f" /&gt;</description>
      <comments>http://bencoffman.com/blog/CommentView,guid,ee2aea41-6f52-4b82-8416-d135b7d4a27f.aspx</comments>
      <category>.Net</category>
      <category>Visual Studio</category>
      <category>Windows</category>
    </item>
    <item>
      <trackback:ping>http://bencoffman.com/blog/Trackback.aspx?guid=aa6568ba-48f1-4b14-bfed-332818037c31</trackback:ping>
      <pingback:server>http://bencoffman.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://bencoffman.com/blog/PermaLink,guid,aa6568ba-48f1-4b14-bfed-332818037c31.aspx</pingback:target>
      <dc:creator>Ben Coffman</dc:creator>
      <wfw:comment>http://bencoffman.com/blog/CommentView,guid,aa6568ba-48f1-4b14-bfed-332818037c31.aspx</wfw:comment>
      <wfw:commentRss>http://bencoffman.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=aa6568ba-48f1-4b14-bfed-332818037c31</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://bencoffman.com/blog/content/binary/Screen%20shot%202009-09-17%20at%208.55.44%20PM.png" />
        <br />
        <br />
It's a good question. 
<br /><br />
There are some types that are not derived from NSObject, these types are called "Primitive
Types." Some examples of these types are 
<br /><ol><li>
int</li><li>
bool</li><li>
short</li><li>
long</li><li>
double</li><li>
char</li></ol>
Sooooo basically any type that is not derived from the NSObject class is a Primitive
type and does not require a "*".<br /><br />
Now I bet you are wondering how do I figure out if it's a primitive type or not. 
<br /><ol><li>
An easy way is to look at the color of the syntax in xCode, is it deep blue or a sky
blue? Deep blue = primitive type, but this is not entirely reliable as the standards
for coloring syntax can fluctuate or change.<br /></li></ol><br /><img src="http://bencoffman.com/blog/content/binary/Screen%20shot%202010-06-12%20at%2011.44.07%20AM.png" border="0" /><br /><br /><li>
You can option-click on the object after you have typed it in xCode, click the little
book in the upper right hand corner, when the class reference viewer comes up, look
and see if it inherits from NSObject. If it doesn't it's Primitive and you don't need
a "*".<br /><br /><img src="http://bencoffman.com/blog/content/binary/Screen%20shot%202010-06-12%20at%2011.49.43%20AM.png" border="0" /><br /><br /><br /><img src="http://bencoffman.com/blog/content/binary/Screen%20shot%202010-06-12%20at%2011.55.21%20AM.png" border="0" /></li><br /><br /><b>Note:</b><br />
There are some alternatives to using the primitive type <i>int</i>, such as the reference
type <i>NSInteger,</i> which has some nice baked in functionality of distinguishing
between 32 bit and 64 bit, but not all primitive types have an alternative reference
type in Objective C.<br /><br /><br /><b>Just for fun:</b><br />
In .Net they have primitive types too(I believe they call them <i>value types</i>),
kinda. The compiler recognizes traditional primitive types and therefore lets you
use the syntax<br /><br /><i>int i = 5;</i><br /><br />
But despite the compiler letting you do this, this type still maps back to System.Int32.
All things in .Net are mapped back to System.Object. Everything is a reference type,
but .Net lets you keep the traditional syntax instead of writing:<br /><br /><i>System.Int32 i = new System.Int32(5);</i><br /><code><br /><br /><br /></code><br /><p></p><br /><img width="0" height="0" src="http://bencoffman.com/blog/aggbug.ashx?id=aa6568ba-48f1-4b14-bfed-332818037c31" /></body>
      <title>When to use the * (star) with Objective C</title>
      <guid isPermaLink="false">http://bencoffman.com/blog/PermaLink,guid,aa6568ba-48f1-4b14-bfed-332818037c31.aspx</guid>
      <link>http://bencoffman.com/blog/2010/06/12/WhenToUseTheStarWithObjectiveC.aspx</link>
      <pubDate>Sat, 12 Jun 2010 15:59:04 GMT</pubDate>
      <description>&lt;img src="http://bencoffman.com/blog/content/binary/Screen%20shot%202009-09-17%20at%208.55.44%20PM.png"&gt;
&lt;br&gt;
&lt;br&gt;
It's a good question. 
&lt;br&gt;
&lt;br&gt;
There are some types that are not derived from NSObject, these types are called "Primitive
Types." Some examples of these types are 
&lt;br&gt;
&lt;ol&gt;
&lt;li&gt;
int&lt;/li&gt;
&lt;li&gt;
bool&lt;/li&gt;
&lt;li&gt;
short&lt;/li&gt;
&lt;li&gt;
long&lt;/li&gt;
&lt;li&gt;
double&lt;/li&gt;
&lt;li&gt;
char&lt;/li&gt;
&lt;/ol&gt;
Sooooo basically any type that is not derived from the NSObject class is a Primitive
type and does not require a "*".&lt;br&gt;
&lt;br&gt;
Now I bet you are wondering how do I figure out if it's a primitive type or not. 
&lt;br&gt;
&lt;ol&gt;
&lt;li&gt;
An easy way is to look at the color of the syntax in xCode, is it deep blue or a sky
blue? Deep blue = primitive type, but this is not entirely reliable as the standards
for coloring syntax can fluctuate or change.&lt;br&gt;
&lt;/li&gt;
&lt;br&gt;
&lt;img src="http://bencoffman.com/blog/content/binary/Screen%20shot%202010-06-12%20at%2011.44.07%20AM.png" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;li&gt;
You can option-click on the object after you have typed it in xCode, click the little
book in the upper right hand corner, when the class reference viewer comes up, look
and see if it inherits from NSObject. If it doesn't it's Primitive and you don't need
a "*".&lt;br&gt;
&lt;br&gt;
&lt;img src="http://bencoffman.com/blog/content/binary/Screen%20shot%202010-06-12%20at%2011.49.43%20AM.png" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;img src="http://bencoffman.com/blog/content/binary/Screen%20shot%202010-06-12%20at%2011.55.21%20AM.png" border="0"&gt;
&lt;/li&gt;&gt;
&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Note:&lt;/b&gt;
&lt;br&gt;
There are some alternatives to using the primitive type &lt;i&gt;int&lt;/i&gt;, such as the reference
type &lt;i&gt;NSInteger,&lt;/i&gt; which has some nice baked in functionality of distinguishing
between 32 bit and 64 bit, but not all primitive types have an alternative reference
type in Objective C.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Just for fun:&lt;/b&gt;
&lt;br&gt;
In .Net they have primitive types too(I believe they call them &lt;i&gt;value types&lt;/i&gt;),
kinda. The compiler recognizes traditional primitive types and therefore lets you
use the syntax&lt;br&gt;
&lt;br&gt;
&lt;i&gt;int i = 5;&lt;/i&gt;
&lt;br&gt;
&lt;br&gt;
But despite the compiler letting you do this, this type still maps back to System.Int32.
All things in .Net are mapped back to System.Object. Everything is a reference type,
but .Net lets you keep the traditional syntax instead of writing:&lt;br&gt;
&lt;br&gt;
&lt;i&gt;System.Int32 i = new System.Int32(5);&lt;/i&gt;
&lt;br&gt;
&lt;code&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/code&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;br&gt;
&lt;img width="0" height="0" src="http://bencoffman.com/blog/aggbug.ashx?id=aa6568ba-48f1-4b14-bfed-332818037c31" /&gt;</description>
      <comments>http://bencoffman.com/blog/CommentView,guid,aa6568ba-48f1-4b14-bfed-332818037c31.aspx</comments>
      <category>.Net</category>
      <category>Mac</category>
      <category>Mac OS X</category>
      <category>Objective C</category>
      <category>Windows</category>
    </item>
    <item>
      <trackback:ping>http://bencoffman.com/blog/Trackback.aspx?guid=9f9ed0fa-263b-4c24-b526-6f22cdfab1d4</trackback:ping>
      <pingback:server>http://bencoffman.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://bencoffman.com/blog/PermaLink,guid,9f9ed0fa-263b-4c24-b526-6f22cdfab1d4.aspx</pingback:target>
      <dc:creator>Ben Coffman</dc:creator>
      <wfw:comment>http://bencoffman.com/blog/CommentView,guid,9f9ed0fa-263b-4c24-b526-6f22cdfab1d4.aspx</wfw:comment>
      <wfw:commentRss>http://bencoffman.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=9f9ed0fa-263b-4c24-b526-6f22cdfab1d4</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <b>Error Readout:</b>
        <br />
HTTP Error 404 - File Not Found 
<br />
HTTP Error 404- File or Directory not found 
<br /><br /><b>Fix:</b><br /><b>Enable a Pre-existing Web Service Extension in IIS 6.0 </b><br /><br />
To permit IIS to serve content that requires a specific ISAPI or CGI extension that
is already listed in the Web service extensions list, follow these steps: 
<ol><li>
Open IIS Manager, expand the master server node (that is, the <var>Servername</var> node),
and then select the <strong class="uiterm">Web service extensions</strong> node. 
</li><li>
In the right pane of IIS Manager, right-click the extension that you want to enable.
In this example, this is <strong class="uiterm">Active Server Pages</strong>. 
</li><li>
Click to select the <strong class="uiterm">Allow</strong> check box. 
</li></ol>
Microsoft Link: <a href="http://support.microsoft.com/kb/315122">http://support.microsoft.com/kb/315122</a><br /><br /><b>Explanation:<br /></b>Apparently there was no easy Google search for this stupidly easy fix. <b>(UPDATE:
I'm wrong Google the title of this blog entry and a Microsoft fix is the first result</b>)
Consequently, I spent more time than I would like on trying to fix it. 
<br /><br />
Here is how it went down. I recive a HTTP Error 404 - File Not Found error on a page
I was browsing to from IIS 6.0. How could this be I ask myself, the page does exists,
I know because I see it in IIS 6.0, I right click the file and I select browse. WTF.
Upon a little investigation I found out what was wrong and I found a Microsoft website
furthers my fix. Soooo  easy! Anyways moving on, going to go drink a beer and
forget this time was lost in which I will never get back.<br /><br /><br /><br /><p></p><img width="0" height="0" src="http://bencoffman.com/blog/aggbug.ashx?id=9f9ed0fa-263b-4c24-b526-6f22cdfab1d4" /></body>
      <title>HTTP Error 404 - File Not Found  or   HTTP Error 404- File or Directory not found </title>
      <guid isPermaLink="false">http://bencoffman.com/blog/PermaLink,guid,9f9ed0fa-263b-4c24-b526-6f22cdfab1d4.aspx</guid>
      <link>http://bencoffman.com/blog/2009/09/25/HTTPError404FileNotFoundOrHTTPError404FileOrDirectoryNotFound.aspx</link>
      <pubDate>Fri, 25 Sep 2009 20:22:50 GMT</pubDate>
      <description>&lt;b&gt;Error Readout:&lt;/b&gt;
&lt;br&gt;
HTTP Error 404 - File Not Found 
&lt;br&gt;
HTTP Error 404- File or Directory not found 
&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Fix:&lt;/b&gt;
&lt;br&gt;
&lt;b&gt;Enable a Pre-existing Web Service Extension in IIS 6.0 &lt;/b&gt;
&lt;br&gt;
&lt;br&gt;
To permit IIS to serve content that requires a specific ISAPI or CGI extension that
is already listed in the Web service extensions list, follow these steps: 
&lt;ol&gt;
&lt;li&gt;
Open IIS Manager, expand the master server node (that is, the &lt;var&gt;Servername&lt;/var&gt; node),
and then select the &lt;strong class="uiterm"&gt;Web service extensions&lt;/strong&gt; node. 
&lt;/li&gt;
&lt;li&gt;
In the right pane of IIS Manager, right-click the extension that you want to enable.
In this example, this is &lt;strong class="uiterm"&gt;Active Server Pages&lt;/strong&gt;. 
&lt;/li&gt;
&lt;li&gt;
Click to select the &lt;strong class="uiterm"&gt;Allow&lt;/strong&gt; check box. 
&lt;/li&gt;
&lt;/ol&gt;
Microsoft Link: &lt;a href="http://support.microsoft.com/kb/315122"&gt;http://support.microsoft.com/kb/315122&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Explanation:&lt;br&gt;
&lt;/b&gt;Apparently there was no easy Google search for this stupidly easy fix. &lt;b&gt;(UPDATE:
I'm wrong Google the title of this blog entry and a Microsoft fix is the first result&lt;/b&gt;)
Consequently, I spent more time than I would like on trying to fix it. 
&lt;br&gt;
&lt;br&gt;
Here is how it went down. I recive a HTTP Error 404 - File Not Found error on a page
I was browsing to from IIS 6.0. How could this be I ask myself, the page does exists,
I know because I see it in IIS 6.0, I right click the file and I select browse. WTF.
Upon a little investigation I found out what was wrong and I found a Microsoft website
furthers my fix. Soooo&amp;nbsp; easy! Anyways moving on, going to go drink a beer and
forget this time was lost in which I will never get back.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://bencoffman.com/blog/aggbug.ashx?id=9f9ed0fa-263b-4c24-b526-6f22cdfab1d4" /&gt;</description>
      <comments>http://bencoffman.com/blog/CommentView,guid,9f9ed0fa-263b-4c24-b526-6f22cdfab1d4.aspx</comments>
      <category>IIS 6.0</category>
      <category>Windows</category>
    </item>
  </channel>
</rss>