<?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>Scyanide Chatter</title>
	<atom:link href="http://scyanide.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://scyanide.com</link>
	<description>My life, interests, and random babble...</description>
	<lastBuildDate>Tue, 17 Jan 2012 03:43:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Annuli Progress</title>
		<link>http://scyanide.com/2011/10/annuli-progress/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=annuli-progress</link>
		<comments>http://scyanide.com/2011/10/annuli-progress/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 15:10:50 +0000</pubDate>
		<dc:creator>Scyanide</dc:creator>
				<category><![CDATA[Project News]]></category>
		<category><![CDATA[Annuli]]></category>
		<category><![CDATA[cocos2d]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[ios]]></category>

		<guid isPermaLink="false">http://scyanide.com/2011/10/annuli-progress/</guid>
		<description><![CDATA[It has been awhile since I last mentioned anything about my first iOS game, Annuli. I can say that the game is now fully functional from start to finish, albeit a rather hard functional game. I have the main menu and game over layers in place. So what is left? I still have Game Center [...] [...]]]></description>
			<content:encoded><![CDATA[<p>It has been awhile since I last mentioned anything about my first iOS game, Annuli. I can say that the game is now fully functional from start to finish, albeit a rather hard functional game. I have the main menu and game over layers in place.</p>
<p>So what is left? I still have Game Center integration, local score storage, settings layer, how to play layer, and then graphics overhaul and audio. Most of this list won&#8217;t take long at all. It is the graphics overhaul and the creation of audio that will take me the longest time.</p>
<p>I have no set end date but have been and will continue to work on this game everyday until finished.</p>
]]></content:encoded>
			<wfw:commentRss>http://scyanide.com/2011/10/annuli-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>R.I.P. Steve Jobs 1955-2011</title>
		<link>http://scyanide.com/2011/10/r-i-p-steve-jobs-1955-2011/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=r-i-p-steve-jobs-1955-2011</link>
		<comments>http://scyanide.com/2011/10/r-i-p-steve-jobs-1955-2011/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 02:11:21 +0000</pubDate>
		<dc:creator>Scyanide</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[dead]]></category>
		<category><![CDATA[rip]]></category>
		<category><![CDATA[steve jobs]]></category>

		<guid isPermaLink="false">http://scyanide.com/?p=534</guid>
		<description><![CDATA[ R.I.P. You will be heavily missed. http://www.apple.com/stevejobs/ [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://scyanide.com/wp-content/uploads/2011/10/t_hero.png"><img class="aligncenter size-full wp-image-535" title="t_hero" src="http://scyanide.com/wp-content/uploads/2011/10/t_hero.png" alt="" width="706" height="644" /></a></p>
<p style="text-align: center;"> R.I.P. You will be heavily missed.</p>
<p style="text-align: center;">http://www.apple.com/stevejobs/</p>
]]></content:encoded>
			<wfw:commentRss>http://scyanide.com/2011/10/r-i-p-steve-jobs-1955-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iOS Wish List</title>
		<link>http://scyanide.com/2011/09/ios-wish-list/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ios-wish-list</link>
		<comments>http://scyanide.com/2011/09/ios-wish-list/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 18:12:20 +0000</pubDate>
		<dc:creator>Scyanide</dc:creator>
				<category><![CDATA[iOS]]></category>
		<category><![CDATA[changes]]></category>
		<category><![CDATA[improvement]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[wishlist]]></category>

		<guid isPermaLink="false">http://scyanide.com/?p=531</guid>
		<description><![CDATA[I&#8217;ve been using iOS since it was first released back in 2007 and over time I have seen it grow and mature into an amazing mobile OS. Of course, that does not mean it is perfect. Not everything can be thought up of and/or fixed early on. Over time I have mentally started building a [...] [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using iOS since it was first released back in 2007 and over time I have seen it grow and mature into an amazing mobile OS. Of course, that does not mean it is perfect. Not everything can be thought up of and/or fixed early on. Over time I have mentally started building a wish list of changes and figured I&#8217;d share them with you. As you will notice some/many of these are mostly just to allow the user to keep screen real estate and reduce duplicate usage.</p>
<p><span id="more-531"></span></p>
<ol>
<li>Merge the App Store, iTunes app, and maybe Apple Store app into 1 app</li>
<li>iTunes wish list management added to App Store/iTunes apps</li>
<li>Remove Contacts app from home screen for iPhone</li>
<li>Allow Game Center to search for friends in Facebook and Twitter</li>
<li>Allow option to toggle/hide/remove main apps</li>
<li>Quick access toggles to airplane mode, bluetooth, wifi, cell data, and maybe a kill-all for running apps</li>
<li>Utilize the search panel with said quick access toggles</li>
<li>Utilize the search panel with memory usage on device and iCloud</li>
<li>Utilize the search panel with music/video controls and lock screen from multitask panel</li>
<li>Include a toggle for the device&#8217;s LED light for quick access flashlight</li>
<li>Utilize lock screen more: maybe next to the clock give option for toggle of unread email and/or quick local temperature</li>
<li>Remove or speed up shutter animation in camera app</li>
<li>Stop automatically showing bookmarks page when a user opens Safari app on a blank page</li>
<li>Add private browsing toggle to main interface of Safari app</li>
<li>Improved compass design so to avoid constant interference</li>
<li>App Store push notifications for updates</li>
</ol>
<div>I&#8217;ll be updating this list later when iOS 5 comes out as I have a few issues with the design of some changes in iOS 5. Of course, I&#8217;m unable to talk about them publicly for now.</div>
]]></content:encoded>
			<wfw:commentRss>http://scyanide.com/2011/09/ios-wish-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Still Alive</title>
		<link>http://scyanide.com/2011/08/still-alive/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=still-alive</link>
		<comments>http://scyanide.com/2011/08/still-alive/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 17:55:00 +0000</pubDate>
		<dc:creator>Scyanide</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[frontpage]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[ilife]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iweb]]></category>
		<category><![CDATA[muse]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[sites]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://scyanide.com/?p=502</guid>
		<description><![CDATA[It has been awhile since I last made a post. Appears I have not made a single post within 2011. So here I am. I&#8217;ve actually been around working on my projects and continuing with my daily 9-5 job. Over the year I have obtained a nice list of home projects/ideas that I have been [...] [...]]]></description>
			<content:encoded><![CDATA[<p>It has been awhile since I last made a post. Appears I have not made a single post within 2011. So here I am. I&#8217;ve actually been around working on my projects and continuing with my daily 9-5 job. Over the year I have obtained a nice list of home projects/ideas that I have been playing around with all while trying to finish my first game. As you can see in the list of pages I have listed out <a title="Chirp" href="http://scyanide.com/chirp/" target="_blank">Chirp</a>. I do play darts often but not really that great at it. Some days my friends and I are down to that last number needed and just can&#8217;t seem to hit it. Chirp helps remove that annoying aspect and allows us to continue having fun throughout the night.</p>
<p><span id="more-502"></span></p>
<p>I have several other projects, mostly web sites and mobile applications, that I will be revealing over time. My goal is to first finish the one project that I&#8217;ve been working on for almost 2 years now, Annuli. I don&#8217;t think this game should have taken as long as it has but I have taken numerous breaks just to help me get away from it and think more on how to implement it. As simple as the game play is I have rewritten the game mechanics several times now. I refuse to release it until I&#8217;m happy with it, however long that takes. After this game is finished I, hope, to have learned several lessons on the whole process because I have ideas for 2 more games along with 2-3 more utility applications.</p>
<p>At the same time I have been writing down ideas for simple web sites. Nothing ground breaking but something to help push myself into the web development world. Something that I have purposely avoided for years but feel I need to jump on it before it is too late. I have already purchased a few domains for the ideas just to hold on to the name. However, this does not mean that I&#8217;m not willing to sell the domains if someone has better ideas and the means to get them up and running faster than I do. In the near future I will create a page listing out the domains that I own. The count is low but growing over time.</p>
<p>I hope to take advantage of Adobe&#8217;s Muse software to help build the web sites. I was playing with Apple&#8217;s iWeb but since it was not updated within iLife &#8217;11 I&#8217;m not sure if I should rely on it any more as a simple WYSIWYG editor that will keep up with the modern standards. I&#8217;m only playing with Muse for now and looking at the code to make sure it doesn&#8217;t become a glorified Frontpage. If all else fails I may just use some of the money generated from my applications to pay a professional web designer to build the sites for me. We&#8217;ll see how that all goes.</p>
]]></content:encoded>
			<wfw:commentRss>http://scyanide.com/2011/08/still-alive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Objective-C Tip: Switch Statements</title>
		<link>http://scyanide.com/2010/03/objective-c-tip-switch-statements/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=objective-c-tip-switch-statements</link>
		<comments>http://scyanide.com/2010/03/objective-c-tip-switch-statements/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 04:48:49 +0000</pubDate>
		<dc:creator>Scyanide</dc:creator>
				<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[case]]></category>
		<category><![CDATA[declare]]></category>
		<category><![CDATA[expected expression before]]></category>
		<category><![CDATA[objc]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[variable]]></category>

		<guid isPermaLink="false">http://scyanide.com/?p=423</guid>
		<description><![CDATA[During one of my sessions of working on the iPhone game. I noticed something very strange within Objective-C. 1 2 3 4 5 6 7 8 switch&#40;someVar&#41; &#123; case 1: int x = 5; // Expected expression before 'int' &#160; break; ... &#125; Apparently, this will get a compiler error as it expects an expression [...] [...]]]></description>
			<content:encoded><![CDATA[<p>During one of my sessions of working on the iPhone game. I noticed something very strange within Objective-C.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #a61390;">switch</span><span style="color: #002200;">&#40;</span>someVar<span style="color: #002200;">&#41;</span>
<span style="color: #002200;">&#123;</span>
  <span style="color: #a61390;">case</span> <span style="color: #2400d9;">1</span><span style="color: #002200;">:</span>
    <span style="color: #a61390;">int</span> x <span style="color: #002200;">=</span> <span style="color: #2400d9;">5</span>; <span style="color: #11740a; font-style: italic;">// Expected expression before 'int'</span>
&nbsp;
    <span style="color: #a61390;">break</span>;
  ...
<span style="color: #002200;">&#125;</span></pre></td></tr></table></div>

<p><span id="more-423"></span></p>
<p>Apparently, this will get a compiler error as it expects an expression to be place before the declaration. I did a little searching around and was unable to find much on why this causes an error. I did however, find a few solutions that seem to work really well.</p>
<p>Considering the error is that the compiler expected an expression before the declaration you can try to rearrange your statements so that declarations are not the first statements within the case statement.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #a61390;">switch</span><span style="color: #002200;">&#40;</span>someVar<span style="color: #002200;">&#41;</span>
<span style="color: #002200;">&#123;</span>
  <span style="color: #a61390;">case</span> <span style="color: #2400d9;">1</span><span style="color: #002200;">:</span>
    <span style="color: #002200;">&#91;</span>self someMethodCalled<span style="color: #002200;">&#93;</span>;
    <span style="color: #a61390;">int</span> x <span style="color: #002200;">=</span> <span style="color: #2400d9;">5</span>; <span style="color: #11740a; font-style: italic;">// Compiles fine</span>
&nbsp;
    <span style="color: #a61390;">break</span>;
  ...
<span style="color: #002200;">&#125;</span></pre></td></tr></table></div>

<p>&#8230;or you can just place an empty semicolon if the above example is not an option.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #a61390;">switch</span><span style="color: #002200;">&#40;</span>someVar<span style="color: #002200;">&#41;</span>
<span style="color: #002200;">&#123;</span>
  <span style="color: #a61390;">case</span> <span style="color: #2400d9;">1</span><span style="color: #002200;">:</span>
    ;
    <span style="color: #a61390;">int</span> x <span style="color: #002200;">=</span> <span style="color: #2400d9;">5</span>; <span style="color: #11740a; font-style: italic;">// Compiles fine</span>
&nbsp;
    <span style="color: #a61390;">break</span>;
  ...
<span style="color: #002200;">&#125;</span></pre></td></tr></table></div>

<p>Last, I found a better solution to the above examples and it is the one I&#8217;ll be using. I really don&#8217;t know exactly why this one works as it is not really an expression but by adding { and } to separate the block of code within the case statement. We are allowed to place our variable declarations at the top.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #a61390;">switch</span><span style="color: #002200;">&#40;</span>someVar<span style="color: #002200;">&#41;</span>
<span style="color: #002200;">&#123;</span>
  <span style="color: #a61390;">case</span> <span style="color: #2400d9;">1</span><span style="color: #002200;">:</span>
    <span style="color: #002200;">&#123;</span>
      <span style="color: #a61390;">int</span> x <span style="color: #002200;">=</span> <span style="color: #2400d9;">5</span>; <span style="color: #11740a; font-style: italic;">// Compiles fine</span>
    <span style="color: #002200;">&#125;</span>
    <span style="color: #a61390;">break</span>;
  ...
<span style="color: #002200;">&#125;</span></pre></td></tr></table></div>

<p>I like this solution the best cause it continues to give me the freedom on where I want to place my statements and expressions and, as a double whammy, helps in readability since the block of code will now be indented one block.</p>
]]></content:encoded>
			<wfw:commentRss>http://scyanide.com/2010/03/objective-c-tip-switch-statements/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XCode: The Starting Curly Brace</title>
		<link>http://scyanide.com/2010/02/xcode-the-starting-curly-brace/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=xcode-the-starting-curly-brace</link>
		<comments>http://scyanide.com/2010/02/xcode-the-starting-curly-brace/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 05:09:32 +0000</pubDate>
		<dc:creator>Scyanide</dc:creator>
				<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[newline]]></category>
		<category><![CDATA[obj]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[same line]]></category>
		<category><![CDATA[starting curly brace]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://scyanide.com/?p=410</guid>
		<description><![CDATA[As I dive deeper into the world of programming for Apple hardware I bring along with me past practices or habits that I must change in order to fit into the Objective-C world. It has been years since I last touched C/C++ and coming from a world of .NET and C#, my first impressions of [...] [...]]]></description>
			<content:encoded><![CDATA[<p>As I dive deeper into the world of programming for Apple hardware I bring along with me past practices or habits that I must change in order to fit into the Objective-C world. It has been years since I last touched C/C++ and coming from a world of .NET and C#, my first impressions of XCode and Objective-C was basically taking a few steps backwards.</p>
<p>I couldn&#8217;t have been more wrong&#8230;</p>
<p><span id="more-410"></span></p>
<p>I see the power of what this new world has to offer and thus as I continue my journey I am finding myself taking new approaches to situations and even finding that some old habits I just flat out prefer to hold on to. Today, I&#8217;m talking about the placement of the starting curly brace.</p>
<p>Now, it seems to be common place in the C/C++ world where the starting curly brace is on the same line as the starting block of code. For example&#8230;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #a61390;">void</span> someFunction<span style="color: #002200;">&#40;</span><span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
  <span style="color: #11740a; font-style: italic;">//code...</span>
<span style="color: #002200;">&#125;</span></pre></td></tr></table></div>

<p>In the C# world it seems to be common place to place the curly brace on a new line. For example&#8230;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">void</span> someMethod<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
  <span style="color: #008080; font-style: italic;">//code...</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>There are various arguments on why each one is better. Commonly I hear that the first method is better because it doesn&#8217;t have wasted space which results in less scrolling. While on the flip side, I commonly hear that by placing the curly brace on a newline it makes for easier readability. In the end, it really only comes down to personal preference as the placement has zero effect on the result of the executed code.</p>
<p>Personally, I prefer and have always preferred placing the curly brace on a new line. Why is this? Well, it is what I got used to while using Visual Studio for so long. It has occurred to me that the big named IDE&#8217;s out there seem to have a bit of a role, or rather influence, in how the community adopts the typical way a programming language is written out. With the exception, of course, of those individuals who take the time to rummage through the IDE&#8217;s preferences and change auto features to their liking.</p>
<p>Which is where my recent adventure comes into the story. While working in XCode I noticed the predicting text feature (amazing by the way, really wish Visual Studio had this) would always place the starting curly brace on the same line as my starting block of code. After a short period I stopped relying on the predicting text feature and just wrote everything out so that I would have to interrupt my typing flow to move the curly brace.</p>
<p><a href="http://scyanide.com/wp-content/uploads/2010/02/Screen-shot-2010-02-23-at-12.47.56-PM.png"><img class="aligncenter size-full wp-image-417" title="Screen shot 2010-02-23 at 12.47.56 PM" src="http://scyanide.com/wp-content/uploads/2010/02/Screen-shot-2010-02-23-at-12.47.56-PM.png" alt="" width="328" height="216" /></a></p>
<p>The image above shows XCode&#8217;s auto predicting magic (seriously, I have no clue what it is actually called) on an &#8216;if&#8217; statement. Getting a little tired of having the starting curly brace on the same line I went through XCode&#8217;s preferences to change it but was given a little shock. There are no options to change this from the IDE.</p>
<p>I was a little disappointed but had not given up just yet as I did recall that the Apple world revolves around plist configuration files and held hope that maybe there was still a way.</p>
<p style="text-align: center;"><a href="http://scyanide.com/wp-content/uploads/2010/02/Screen-shot-2010-02-23-at-12.47.02-PM.png"><img class="aligncenter size-medium wp-image-416" title="Screen shot 2010-02-23 at 12.47.02 PM" src="http://scyanide.com/wp-content/uploads/2010/02/Screen-shot-2010-02-23-at-12.47.02-PM-300x203.png" alt="" width="300" height="203" /></a>Home: Library-&gt;Preferences-&gt;com.apple.Xcode.plist</p>
<p style="text-align: left;">I had found the plist file in the above location and as I opened it and looked through I couldn&#8217;t find any settings that would allow me to make the change I wanted. Looking around online I found what I was looking for, I needed the following inside this plist:</p>
<p style="text-align: left;">XCCodeSenseFormattingOptions as a dictionary along with BlockSeparator inside the newly created dictionary with the string value of a newline character.</p>
<p style="text-align: left;">I tried doing this manually through the plist editor that comes with the OS but I couldn&#8217;t get it to work correctly and so looking around online I found out how to manually edit plists from the terminal:</p>
<p style="text-align: left;"><strong>defaults write com.apple.Xcode XCCodeSenseFormattingOptions -dict BlockSeparator &#8220;\\n&#8221;</strong></p>
<p style="text-align: left;">By typing in the above line I had achieved my goal:</p>
<p style="text-align: left;"><a href="http://scyanide.com/wp-content/uploads/2010/02/Screen-shot-2010-02-23-at-12.55.54-PM.png"><img class="aligncenter size-full wp-image-419" title="Screen shot 2010-02-23 at 12.55.54 PM" src="http://scyanide.com/wp-content/uploads/2010/02/Screen-shot-2010-02-23-at-12.55.54-PM.png" alt="" width="329" height="188" /></a></p>
<p style="text-align: left;">Now when I type such statements as &#8216;if&#8217; this is what automatically shows up in XCode.</p>
<p style="text-align: left;">The issues I had doing it manually through a plist editor was that I needed that hidden newline character &#8216;\n&#8217; but typing it out manually only cause actual characters to be printed: For example&#8230;</p>
<p style="text-align: left;">if (condition)\n{</p>
<p style="text-align: left;">statements</p>
<p style="text-align: left;">}</p>
<p style="text-align: left;">So, with that if any of you, like me, prefer to have their curly braces start on a newline in XCode. Just the bolded line above in a terminal and you should be all set. Happy Coding!</p>
<p style="text-align: left;">NOTE: If you copy and paste the bolded line be careful of the quotes. Might just want to type that part in by hand. It has been my past experiences that showed copying lines of code with single and double quotes from a website does not always go over too well everytime.</p>
]]></content:encoded>
			<wfw:commentRss>http://scyanide.com/2010/02/xcode-the-starting-curly-brace/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>iTunes Error 7: Missing CoreGraphics.dll</title>
		<link>http://scyanide.com/2010/02/itunes-error-7-missing-coregraphics-dll/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=itunes-error-7-missing-coregraphics-dll</link>
		<comments>http://scyanide.com/2010/02/itunes-error-7-missing-coregraphics-dll/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 23:54:29 +0000</pubDate>
		<dc:creator>Scyanide</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[CoreGraphics.dll]]></category>
		<category><![CDATA[Error 7]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[missing]]></category>

		<guid isPermaLink="false">http://scyanide.com/?p=407</guid>
		<description><![CDATA[So, I get home from work today only to find that iTunes on my windows machine would not start up. I kept getting the message that CoreGraphics.dll was missing and that I should re-install iTunes. I really don&#8217;t know HOW this could have happened as I have not installed/uninstalled anything on here. I searched around [...] [...]]]></description>
			<content:encoded><![CDATA[<p>So, I get home from work today only to find that iTunes on my windows machine would not start up. I kept getting the message that CoreGraphics.dll was missing and that I should re-install iTunes. I really don&#8217;t know HOW this could have happened as I have not installed/uninstalled anything on here.</p>
<p><span id="more-407"></span></p>
<p>I searched around online for awhile and saw the typical suggestions of uninstalling and reinstalling and so I did just that. I uninstalled and reinstalled iTunes and the issue existed. So I did a full blown search in my C:\ and sure enough CoreGraphics.dll was sitting in &#8220;C:\Program Files(x86)\Common Files\Apple\Apple Application Support\&#8221;. No where else was it found.</p>
<p>I then decided to poke around inside the iTunes64Setup.exe install file. Luckily, WinRAR was able to extract the setup which presented me with several Apple install files.</p>
<ul>
<li>AppleApplicationSupport.msi</li>
<li>AppleMobileDeviceSupport64.msi</li>
<li>AppleSoftwareUpdate.msi</li>
<li>Bonjour64.msi</li>
<li>iTunes64.msi</li>
<li>MobileMe.msi</li>
<li>QuickTime.msi</li>
<li>SetupAdmin.exe</li>
</ul>
<p>Using msiexec I was able to extract the files within the msi install files (all except for the SetupAdmin.exe of course):</p>
<p>msiexec /a FileName.msi /qb TARGETDIR=PathToWhereYouWantTheFilesExtracted</p>
<p>Since I had everything extracted in their own folders, from there I did a full blown search to see where all the CoreGraphics.dll&#8217;s were located. I was under the hunch that we were NOT going to find CoreGraphics.dll within the iTunes install itself considering where I found it on my system. Sure enough, I only found 1 instance of CoreGraphics.dll and it was within the install of AppleApplicationSupport.msi.</p>
<p>I have been unable to figure out WHY iTunes would be shipped without certain key dll&#8217;s when it, apparently, won&#8217;t run without them. However, by reinstalling AppleApplicationSupport.msi I was able to get iTunes working again.</p>
<p>While I&#8217;m not 100% this will fix everyone&#8217;s issue with a missing CoreGraphics.dll, I would at least suggest trying to uninstall NOT iTunes but AppleApplicationSupport and reinstalling that install directly. Hope this helps some people.</p>
]]></content:encoded>
			<wfw:commentRss>http://scyanide.com/2010/02/itunes-error-7-missing-coregraphics-dll/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I’m Back!</title>
		<link>http://scyanide.com/2010/02/im-back-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=im-back-2</link>
		<comments>http://scyanide.com/2010/02/im-back-2/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 06:18:19 +0000</pubDate>
		<dc:creator>Scyanide</dc:creator>
				<category><![CDATA[Project News]]></category>
		<category><![CDATA[back]]></category>
		<category><![CDATA[iphone sdk]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[x]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://scyanide.com/?p=400</guid>
		<description><![CDATA[So I&#8217;ve been neglecting this site for awhile now. For those of you who read this blog, I apologize for being so quiet. I ended up taking up 2 jobs which took up a lot more of my time than I had realized and I didn&#8217;t have much time to work on my game much [...] [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been neglecting this site for awhile now. For those of you who read this blog, I apologize for being so quiet. I ended up taking up 2 jobs which took up a lot more of my time than I had realized and I didn&#8217;t have much time to work on my game much less make any new posts here.</p>
<p><span id="more-400"></span></p>
<p>So what have I been up to? Well, since my last post I&#8217;ve broken down and bought a MacBook. For various reasons but most importantly to finally dive in the iPhone SDK. A lot of my attention has been spent playing with Objective-C, XCode, and the iPhone SDK and I have to admit that it is quite enjoyable to mess with. It is taking me some time to get used to as Objective-C is just so strange to me but nothing I can&#8217;t handle.</p>
<p>I do hope that if I become familiar with the language and API that I may have something up on Apple&#8217;s AppStore but we all know how my home projects have been. I do hope this can finally keep my interest. Here are a few screenshots of what I&#8217;ve been doing.<br />

<a href='http://scyanide.com/2010/02/im-back-2/screen-shot-2010-02-06-at-4-54-49-pm/' title='Screen shot 2010-02-06 at 4.54.49 PM'><img width="150" height="150" src="http://scyanide.com/wp-content/uploads/2010/02/Screen-shot-2010-02-06-at-4.54.49-PM-150x150.png" class="attachment-thumbnail" alt="Screen shot 2010-02-06 at 4.54.49 PM" title="Screen shot 2010-02-06 at 4.54.49 PM" /></a>
<a href='http://scyanide.com/2010/02/im-back-2/screen-shot-2010-02-06-at-4-55-24-pm/' title='Screen shot 2010-02-06 at 4.55.24 PM'><img width="150" height="150" src="http://scyanide.com/wp-content/uploads/2010/02/Screen-shot-2010-02-06-at-4.55.24-PM-150x150.png" class="attachment-thumbnail" alt="Screen shot 2010-02-06 at 4.55.24 PM" title="Screen shot 2010-02-06 at 4.55.24 PM" /></a>
<a href='http://scyanide.com/2010/02/im-back-2/screen-shot-2010-02-06-at-4-55-50-pm/' title='Screen shot 2010-02-06 at 4.55.50 PM'><img width="150" height="150" src="http://scyanide.com/wp-content/uploads/2010/02/Screen-shot-2010-02-06-at-4.55.50-PM-150x150.png" class="attachment-thumbnail" alt="Screen shot 2010-02-06 at 4.55.50 PM" title="Screen shot 2010-02-06 at 4.55.50 PM" /></a>
<br />
They are not much but the first shows a simple menu screen which goes into the game screen shown by the other 2 images. The last image shows that the squares are clickable. I really don&#8217;t know where I&#8217;ll be going with this but we&#8217;ll see what comes up as I continue learn the environment.</p>
<p>On a side note, I am loving my new MacBook and the Mac OS X. This is my first time since having an Apple II in my middle school where I&#8217;ve touched a mac. I had no idea just how easy it is to use, everything just works and works really well.</p>
]]></content:encoded>
			<wfw:commentRss>http://scyanide.com/2010/02/im-back-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# and the readonly keyword</title>
		<link>http://scyanide.com/2009/09/c-and-the-readonly-keyword/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=c-and-the-readonly-keyword</link>
		<comments>http://scyanide.com/2009/09/c-and-the-readonly-keyword/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 19:55:32 +0000</pubDate>
		<dc:creator>Scyanide</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[declaration]]></category>
		<category><![CDATA[initialize]]></category>
		<category><![CDATA[readonly]]></category>

		<guid isPermaLink="false">http://scyanide.com/?p=376</guid>
		<description><![CDATA[<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>2026</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>2026</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>2398</b><br />
<br />
<b>Warning</b>:  implode() [<a href='function.implode'>function.implode</a>]: Argument must be an array in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3351</b><br />
<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3374</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3374</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3415</b><br />
<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3467</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3467</b><br />
<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3612</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3612</b><br />
I came across something interesting today and thought I&#8217;d share this small bit of information to the world. While this made me scratch my head for a second or two it really does make sense. In C#, and I assume VB.NET as well, we have the keyword readonly which allows one to initialize a read [...] [...]]]></description>
			<content:encoded><![CDATA[<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>2026</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>2026</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>2398</b><br />
<br />
<b>Warning</b>:  implode() [<a href='function.implode'>function.implode</a>]: Argument must be an array in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3351</b><br />
<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3374</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3374</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3415</b><br />
<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3467</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3467</b><br />
<br />
<b>Warning</b>:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3612</b><br />
<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/pvinson/scyanide.com/wp-content/plugins/wp-syntax/geshi/geshi.php</b> on line <b>3612</b><br />
<p>I came across something interesting today and thought I&#8217;d share this small bit of information to the world. While this made me scratch my head for a second or two it really does make sense. In C#, and I assume VB.NET as well, we have the keyword <em>readonly</em> which allows one to initialize a read only variable during declaration or within a constructor. I recently had the situation where I needed to use a <em>readonly</em> but couldn&#8217;t figure out the best area to place it, either in my parent class or in each child class created. Being one who believes less code is better I leaned towards just throwing it in my parent class. It turns out though, that a read only variable can ONLY be initialized during its declaration or in the class the read only variable resides in and children classes WILL NOT be allowed to initialize the variable.</p>
<p><span id="more-376"></span></p>
<p>Here is a quick and dirty code example of what I&#8217;m talking about&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="" style="font-family:monospace;">  public class ClassA
  <span class="br0">&#123;</span>
    protected readonly String stringA;
&nbsp;
    public ClassA<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><span class="br0">&#125;</span>
  <span class="br0">&#125;</span>
&nbsp;
  public class ClassB : ClassA
  <span class="br0">&#123;</span>
    public ClassB<span class="br0">&#40;</span>String value<span class="br0">&#41;</span>
    <span class="br0">&#123;</span>
      stringA = value; // ERROR: A readonly field cannot be assigned to <span class="br0">&#40;</span>except in a constructor or a variable initializer<span class="br0">&#41;</span>
    <span class="br0">&#125;</span>
  <span class="br0">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://scyanide.com/2009/09/c-and-the-readonly-keyword/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>C# Gotcha or /Facepalm moment?</title>
		<link>http://scyanide.com/2009/07/c-gotcha-or-facepalm-moment/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=c-gotcha-or-facepalm-moment</link>
		<comments>http://scyanide.com/2009/07/c-gotcha-or-facepalm-moment/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 14:36:30 +0000</pubDate>
		<dc:creator>Scyanide</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[exception]]></category>
		<category><![CDATA[properties]]></category>
		<category><![CDATA[stack overflow]]></category>

		<guid isPermaLink="false">http://scyanide.com/?p=350</guid>
		<description><![CDATA[So I was playing around with a little idea and while putting together a simple class, very hastily I might add, I accidentally did something that caused a StackOverflowException to be thrown. 1 2 3 4 5 private Int32 someValue; public Int32 SomeValue &#123; get &#123; return SomeValue; &#125; &#125; This is a very simple [...] [...]]]></description>
			<content:encoded><![CDATA[<p>So I was playing around with a little idea and while putting together a simple class, very hastily I might add, I accidentally did something that caused a <a href="http://msdn.microsoft.com/en-us/library/system.stackoverflowexception.aspx" target="_blank">StackOverflowException</a> to be thrown.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;">  <span style="color: #0600FF; font-weight: bold;">private</span> Int32 someValue<span style="color: #008000;">;</span>
  <span style="color: #0600FF; font-weight: bold;">public</span> Int32 SomeValue
  <span style="color: #008000;">&#123;</span>
    get <span style="color: #008000;">&#123;</span> <span style="color: #0600FF; font-weight: bold;">return</span> SomeValue<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span>
  <span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p><span id="more-350"></span></p>
<p>This is a very simple version of a Property in C# but can you see what is wrong with this bit of code? Take a look at the returned variable name, see how it starts with a capital &#8216;S&#8217;? This code actually does cause a StackOverflowException. Obviously, you want to use &#8216;someValue&#8217; and not &#8216;SomeValue&#8217; in your get and set methods. I made this mistake because I was in a rush and using Visual Studio&#8217;s little intellisense helper I accidentally selected my newly created Property over the actual variable I needed.</p>
<p>On a side note, I <em>really</em> need to find a good code colorizer/formatter plugin for WordPress. Does anyone have any good suggestions?</p>
]]></content:encoded>
			<wfw:commentRss>http://scyanide.com/2009/07/c-gotcha-or-facepalm-moment/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

