<?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>inphamous development</title>
	<atom:link href="http://inphamous.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://inphamous.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Wed, 24 Aug 2011 14:11:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Auto formatting XML</title>
		<link>http://inphamous.com/2011/08/auto-formatting-xml/</link>
		<comments>http://inphamous.com/2011/08/auto-formatting-xml/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 14:11:53 +0000</pubDate>
		<dc:creator>kevingrant</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://inphamous.com/?p=1007</guid>
		<description><![CDATA[Sometimes, I have to read unformatted XML. This always makes me angry, as I have to spend a lot of time pressing the enter key and what not. I found 2 tricks that could help you out. Trick 1: Use notepad++ http://notepad-plus-plus.org/ Its a nice text editor, and it add itself to the right-click in [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, I have to read unformatted XML. This always makes me angry, as I have to spend a lot of time pressing the enter key and what not.  I found 2 tricks that could help you out.</p>
<p>Trick 1:<br />
Use notepad++</p>
<p>http://notepad-plus-plus.org/</p>
<p>Its a nice text editor, and it add itself to the right-click in windows, so you can open appropriate files with it very easily without changing your default editor.</p>
<p>Trick 2:<br />
First, I just wanted to put everything onto a new line.  I took the easy way.  Press ctrl+H for Replace, or click Replace in search.  Click on the option for &#8220;Regular Expressions&#8221;.  Then, in the Search, put &#8220;><" and in the replace, put ">/n<"</p>
<p>Tada!</p>
<p>That still doesn't help the indenting however, so I abandoned this approach.</p>
<p>Trick 3:<br />
This is the best one.  In notepad++, click Plugins -> Plugin Manager -> Show Plugin Manager.  Scroll down and install &#8220;XML Tools&#8221;.</p>
<p>Once this is installed, select all on your text that you want to format, then click Plugins -> XML Tools -> Pretty Print (XML Only with Line Breaks)</p>
<p>Ahhh yes, this is what I wanted all along!  Hope it helped!</p>
<p>-Kevin</p>
]]></content:encoded>
			<wfw:commentRss>http://inphamous.com/2011/08/auto-formatting-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ViewSwitchers revisited</title>
		<link>http://inphamous.com/2011/08/hello-world/</link>
		<comments>http://inphamous.com/2011/08/hello-world/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 20:00:52 +0000</pubDate>
		<dc:creator>kevingrant</dc:creator>
				<category><![CDATA[Android Development]]></category>
		<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[General Coding Techniques]]></category>

		<guid isPermaLink="false">http://inphamous.com/wordpress/?p=1</guid>
		<description><![CDATA[An oldie but a goodie. Shows the simplicity of of using the various ViewSwitchers available to you in Android, including the ImageSwitcher and the TextSwitcher]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJava.js"></script>
            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>Welcome to the shiny new blog!  I have decided to embrace my developer spirit and break free of the bonds of WordPress.com, and begin to maintain and hold my own data, rarrr!  In light of this, I am slightly modifying the most popular post of all time, the ViewSwitcher.</p>
<p>For far too long, the ViewSwitcher has eluded many people. It can be conceptually hard to tackle, as you still are only using one Activity, but you can essentially have 2 different layouts.</p>
<p>Why would you want to do this? <a title="ViewSwitcher" href="http://inphamous.com/wordpress/?p=608" target="_blank">Previously</a>, I had used to ViewSwitcher to switch from a loading screen to the loaded screen. Since then, I have used the ViewSwitcher a few more times, but under different circumstances. I&#8217;ve also even found more switchers that I never even realized existed.</p>
<p>With this new example, I will reintroduce the ViewSwitcher, as well as a TextSwitcher, and an ImageSwitcher! O boy&#8230;.</p>
<p>This is a one activity program, the entire activity is below.  All fairly standard variable declaration and initialization, grabbing the ID from the id we give it in the xml file later. </p>
<p>One thing I have learned, is that if you don&#8217;t need global access to your buttons, don&#8217;t declare them globally! As you see in this example, the switchers are global, but the button is a local variable! Once applications get bigger, making these local declarations makes a smaller footprint for your application.</p>
<p><pre class="brush: java">public class ViewSwitcherActivity extends Activity {

	ViewSwitcher mViewSwitcher;
	TextSwitcher mTextSwitcher;
	ImageSwitcher mImageSwitcher;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		mViewSwitcher = (ViewSwitcher) findViewById(R.id.viewswitcher);
		mTextSwitcher = (TextSwitcher) findViewById(R.id.textswitcher);
		mImageSwitcher = (ImageSwitcher) findViewById(R.id.imageswitcher);

		Button button = (Button) findViewById(R.id.button);
		button.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				mViewSwitcher.showNext();
				mTextSwitcher.showNext();
				mImageSwitcher.showNext();
			}
		});
	}
}</pre></p>
<p>Here, you can see the layout of the main.xml file. Each switcher can have a MAXIMUM of 2 parent views. You can try to add a 3rd, and you will see your program crash.  That doesn&#8217;t mean you can&#8217;t have more than two views, it just means there can only be 2 parents, eg: 1 linear layout and 1 relative layout, and they can be filled with as many views as you&#8217;d like.</p>
<p><pre class="brush: xml">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    android:orientation=&quot;vertical&quot;
    android:layout_width=&quot;fill_parent&quot;
    android:layout_height=&quot;fill_parent&quot;&gt;
    
    &lt;Button
    	android:id=&quot;@+id/button&quot;
    	android:text=&quot;Switch the view!&quot;
    	android:layout_width=&quot;fill_parent&quot;
    	android:layout_height=&quot;wrap_content&quot;/&gt;
    
    &lt;ViewSwitcher 
    	android:id=&quot;@+id/viewswitcher&quot;
    	android:layout_width=&quot;wrap_content&quot;
    	android:layout_height=&quot;wrap_content&quot;&gt;
    	
    	&lt;TextView 
    		android:text=&quot;This is the 1st view!&quot;
    		android:layout_width=&quot;wrap_content&quot;
    		android:layout_height=&quot;wrap_content&quot;/&gt;	
    	
    	&lt;TextView 
    		android:text=&quot;This is the 2nd view!&quot;
    	    android:layout_width=&quot;wrap_content&quot;
    		android:layout_height=&quot;wrap_content&quot;/&gt;		
    &lt;/ViewSwitcher&gt;
    
    &lt;TextSwitcher
    	android:id=&quot;@+id/textswitcher&quot;
    	android:layout_width=&quot;wrap_content&quot;
    	android:layout_height=&quot;wrap_content&quot;&gt;
    	
    	&lt;TextView 
    		android:text=&quot;This is the 1st view!&quot;
    		android:layout_width=&quot;wrap_content&quot;
    		android:layout_height=&quot;wrap_content&quot;/&gt;	
    	
    	&lt;TextView 
    		android:text=&quot;This is the 2nd view!&quot;
    	    android:layout_width=&quot;wrap_content&quot;
    		android:layout_height=&quot;wrap_content&quot;/&gt;	
    	&lt;/TextSwitcher&gt;
    
    &lt;ImageSwitcher
    	android:id=&quot;@+id/imageswitcher&quot;
    	android:layout_width=&quot;wrap_content&quot;
    	android:layout_height=&quot;wrap_content&quot;&gt;
    		
		&lt;ImageView
    		android:src=&quot;@drawable/icon_green&quot;
    		android:layout_width=&quot;wrap_content&quot;
    		android:layout_height=&quot;wrap_content&quot;/&gt;
    		
		&lt;ImageView
    		android:src=&quot;@drawable/icon_blue&quot;
    		android:layout_width=&quot;wrap_content&quot;
    		android:layout_height=&quot;wrap_content&quot;/&gt;
    		
	&lt;/ImageSwitcher&gt;
    	
&lt;/LinearLayout&gt;</pre></p>
<p>Here are the 2 icon resources used in the demonstration</p>
<p><a href="http://inphamous.com/wordpress/wp-content/uploads/2011/08/icon_green.png"><img src="http://inphamous.com/wordpress/wp-content/uploads/2011/08/icon_green.png" alt="icon_green" title="icon_green" width="72" height="72" class="alignnone size-full wp-image-976" /></a><a href="http://inphamous.com/wordpress/wp-content/uploads/2011/08/icon_blue.png"><img src="http://inphamous.com/wordpress/wp-content/uploads/2011/08/icon_blue.png" alt="icon_blue" title="icon_blue" width="72" height="72" class="alignnone size-full wp-image-977" /></a></p>
<p>And that&#8217;s it! I hope you guys have enjoyed this little revisit of a classic post!  Download the source below, post your comments!</p>
<p><a href="http://www.inphamous.com/code/examples/ViewSwitcherExample2.zip"><img src="http://inphamous.com/wordpress/wp-content/uploads/2011/08/zip.png" alt="Download the source!" title="zip" width="96" height="96" class="alignnone size-full wp-image-980" /></a></p>
<p>-Kevin</p>
]]></content:encoded>
			<wfw:commentRss>http://inphamous.com/2011/08/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pizza box chassis</title>
		<link>http://inphamous.com/2011/05/pizza-box-chassis/</link>
		<comments>http://inphamous.com/2011/05/pizza-box-chassis/#comments</comments>
		<pubDate>Thu, 19 May 2011 13:05:09 +0000</pubDate>
		<dc:creator>alext9586</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pizza]]></category>

		<guid isPermaLink="false">http://inphamousdevelopment.wordpress.com/?p=967</guid>
		<description><![CDATA[Takin' it literally.]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJava.js"></script>
            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<div id="attachment_968" class="wp-caption aligncenter" style="width: 510px"><a href="http://inphamousdevelopment.files.wordpress.com/2011/05/chassis_size_pizza.jpg"><img src="http://inphamousdevelopment.files.wordpress.com/2011/05/chassis_size_pizza.jpg" alt="Pizza box chassis" title="chassis_size_pizza" width="500" height="685" class="size-full wp-image-968" /></a><p class="wp-caption-text">Pizza box chassis</p></div>
<p>The top is a screenshot of a document from work outlining different chassis sizes and their byte value to set for programming. I thought it was a joke because engineers have the weirdest joke. The bottom is a picture of an actual pizza box computer. And it&#8217;s running Linux. *shudders* I&#8217;m not surprised though. Needs moar bell peppers.</p>
]]></content:encoded>
			<wfw:commentRss>http://inphamous.com/2011/05/pizza-box-chassis/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Formatting and Styling Strings (C#)</title>
		<link>http://inphamous.com/2011/05/formatting-and-styling-strings-c/</link>
		<comments>http://inphamous.com/2011/05/formatting-and-styling-strings-c/#comments</comments>
		<pubDate>Tue, 17 May 2011 15:42:19 +0000</pubDate>
		<dc:creator>alext9586</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[beginner]]></category>
		<category><![CDATA[c sharp]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://inphamousdevelopment.wordpress.com/?p=953</guid>
		<description><![CDATA[Formatting strings for C# is pretty easy.]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJava.js"></script>
            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>We&#8217;ve discussed different ways to format a string using <a href="http://inphamousdevelopment.wordpress.com/2011/01/30/formatting-and-styling-strings-cc/" target="_blank">printf for C++</a> and <a href="http://inphamousdevelopment.wordpress.com/2011/01/30/formatting-and-styling-strings-javaandroid/">string.format for Java/Android</a> and since I&#8217;ve been working with C# recently I would add that to the blog as well.</p>
<p>In C#, it&#8217;s just like Java/Android: use <a href="http://msdn.microsoft.com/en-us/library/system.string.format.aspx" target="_blank">string.Format()</a>. Instead of dollar signs, you would use curly brackets with the parameter number. What&#8217;s nice is that you don&#8217;t really need to worry about the type. For example:</p>
<pre>
int foo = 9000;
string bar = "sparta";

string fubar = string.Format("This is {0}! It is over {1}!", bar, foo);
</pre>
<p>Would result with:</p>
<pre>This is sparta! It is over 9000!"</pre>
<p>See how I didn&#8217;t need to tell it {0} was a string and {1} was an integer? You can also add the format inside the curly bracket if you wish such as:</p>
<pre>
{index,length:formatString}
</pre>
<p>Where index is the index of the value to use; length is the amount of spaces you want this variable to take up; and formatString is a standard or custom string that can be used to do more formatting (such as setting up a date in US or EU format).</p>
<p>As usual, if you&#8217;d like to know more about the details, visit <a href="http://msdn.microsoft.com/en-us/library/b1csw23d.aspx" title="MSDN" target="_blank">MSDN</a> for more reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://inphamous.com/2011/05/formatting-and-styling-strings-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android: Dialog Box with an EditText</title>
		<link>http://inphamous.com/2011/05/android-dialog-box-with-an-edittext/</link>
		<comments>http://inphamous.com/2011/05/android-dialog-box-with-an-edittext/#comments</comments>
		<pubDate>Tue, 17 May 2011 14:53:34 +0000</pubDate>
		<dc:creator>kevingrant</dc:creator>
				<category><![CDATA[Android App]]></category>
		<category><![CDATA[Android Development]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[General Coding Techniques]]></category>

		<guid isPermaLink="false">http://inphamousdevelopment.wordpress.com/?p=958</guid>
		<description><![CDATA[Sometimes, you just want that EditText in your dialog. Don't worry, it's just as easy as you think it should be.]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJava.js"></script>
            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>A simple code snippet I found over at <a title="http://www.androidsnippets.com/" href="http://www.androidsnippets.com/prompt-user-input-with-an-alertdialog" target="_blank">http://www.androidsnippets.com/</a>, shows how to create a dialog box with an EditText in it. I needed it to save a user&#8217;s login name into the preferences when first starting a program, but it pretty much has a limitless amount of uses.</p>
<p>Try playing around with setting different types of views to your dialog boxes. You&#8217;ll be surprised! Combine this with the techniques used in the <a href="http://inphamous.com/wordpress/?p=19">AddContentView</a> example and you can start adding some really unique layouts and stylings to your dialogs.</p>
<p><pre class="brush: java">AlertDialog.Builder alert = new AlertDialog.Builder(this);

alert.setTitle(&quot;Title&quot;);
alert.setMessage(&quot;Message&quot;);

// Set an EditText view to get user input
final EditText input = new EditText(this);
alert.setView(input);

alert.setPositiveButton(&quot;Ok&quot;, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
  String value = input.getText();
  // Do something with value!
  }
});

alert.setNegativeButton(&quot;Cancel&quot;, new DialogInterface.OnClickListener() {
  public void onClick(DialogInterface dialog, int whichButton) {
    // Canceled.
  }
});

alert.show();</pre></p>
<p>-Kevin Grant</p>
]]></content:encoded>
			<wfw:commentRss>http://inphamous.com/2011/05/android-dialog-box-with-an-edittext/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crypto++ and Linux</title>
		<link>http://inphamous.com/2011/05/crypto-and-linux/</link>
		<comments>http://inphamous.com/2011/05/crypto-and-linux/#comments</comments>
		<pubDate>Fri, 06 May 2011 13:39:25 +0000</pubDate>
		<dc:creator>alext9586</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[advanced]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[cryptography]]></category>
		<category><![CDATA[Example]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://inphamousdevelopment.wordpress.com/?p=948</guid>
		<description><![CDATA[Using Crypto++ for you Linux project? Good luck!]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJava.js"></script>
            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>This week I&#8217;ve re-acquainted myself with Linux at work in order to port an app from Windows to Linux. Besides the aggravation of setting up the OS, IDE, and workflow, I had to use a 3rd party library called <a href="http://www.cryptopp.com/" target="_blank">Crypto++</a>. Well, it wasn&#8217;t obvious to set up or figure out so I&#8217;d put this out there in case someone has the same problem.</p>
<p>Basically I was able to include the files, but I got a linker error despite including the files in the project file in Qt. This is the error:</p>
<pre>
g++ -o encrypter -L/usr/lib -Lcryptopp -lcrypto++ -lQtGui -lQtCore -lpthread
encrypter.o: In function `CryptoPP::AllocatorWithCleanup::allocate(unsigned int, void const*)':
encrypter.cpp:(.text._ZN8CryptoPP20AllocatorWithCleanupIhLb1EE8allocateEjPKv[CryptoPP::AllocatorWithCleanup::allocate(unsigned int, void const*)]+0x2b): undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
encrypter.cpp:(.text._ZN8CryptoPP20AllocatorWithCleanupIhLb1EE8allocateEjPKv[CryptoPP::AllocatorWithCleanup::allocate(unsigned int, void const*)]+0x38): undefined reference to `CryptoPP::UnalignedAllocate(unsigned int)'
encrypter.o: In function `CryptoPP::AllocatorWithCleanup::deallocate(void*, unsigned int)':
encrypter.cpp:(.text._ZN8CryptoPP20AllocatorWithCleanupIhLb1EE10deallocateEPvj[CryptoPP::AllocatorWithCleanup::deallocate(void*, unsigned int)]+0x25): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
encrypter.cpp:(.text._ZN8CryptoPP20AllocatorWithCleanupIhLb1EE10deallocateEPvj[CryptoPP::AllocatorWithCleanup::deallocate(void*, unsigned int)]+0x32): undefined reference to `CryptoPP::UnalignedDeallocate(void*)'
collect2: ld returned 1 exit status
make: Leaving directory `/home/alex/projects/encrypter'
make: *** [encrypter] Error 1
Exited with code 2.
Error while building project encrypter
When executing build step 'Make'
</pre>
<p>The proper way to include crypto++ is NOT to download it from the website. Use terminal to get the library:</p>
<pre>sudo apt-get install libcrypto++8 libcrypto++8-dbg libcrypto++-dev
</pre>
<p>Then check if installed on system:</p>
<pre>apt-cache pkgnames | grep -i crypto++
</pre>
<p>Which should result with:<code></code></p>
<pre>
libcrypto++-utils
libcrypto++8
libcrypto++8-dbg
libcrypto++-dev
libcrypto++-doc
</pre>
<p>If the information above is different (which is possible if it becomes out of date), check the <a href="http://www.cryptopp.com/wiki/Linux" target="_blank">Crypto++ Linux wiki</a> for instructions.</p>
<p>Now add the library to project with the following linkage (written as a makefile macro, but just put the -L and -I parts in the command line if you&#8217;re compiling manually):</p>
<pre>
LIBS += -L/usr/lib/crypto++ -lcrypto++
INCS += -I/usr/include/crypto++
</pre>
<p>While is is rather specific, someone out there is probably searching for this so here ya go!</p>
]]></content:encoded>
			<wfw:commentRss>http://inphamous.com/2011/05/crypto-and-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Want to learn C#?</title>
		<link>http://inphamous.com/2011/04/want-to-learn-c-sharp/</link>
		<comments>http://inphamous.com/2011/04/want-to-learn-c-sharp/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 14:33:13 +0000</pubDate>
		<dc:creator>alext9586</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[beginner]]></category>
		<category><![CDATA[c sharp]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://inphamousdevelopment.wordpress.com/?p=938</guid>
		<description><![CDATA[C# is so much easier to use than C++. Why didn't I learn this sooner?! You should learn too!]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJava.js"></script>
            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>I&#8217;ve been wanting to learn C# for a while so I finally started learning it a few weeks ago. I lightly touched C# back in the fall of 2009. We had a quick crash course trying to get a XNA game working thinking that was the best way to make a game in two weeks. That was a very terrible learning situation and I haven&#8217;t thought much about C# since then. Once I decided to take a shot at it again, I was definitely a lot wiser than I was 1.5 years ago. Now that I&#8217;ve got some good C++ programming, MFC UI development, and Visual Studio usage skills down, jumping into C# was not as hard as it was when I first came across it. Actually, working with C# in Visual Studio is so much easier than C++ and MFC that I feel like I&#8217;ve been converted to a new religion. Seriously, how did I live without this all my programming life?! String conversions, getting file paths/names/extensions, and capturing events are just one call away instead of some hackjob conversion and string parsing! C++ and MFC is like driving a Volvo 240: solid, reliable, and old, but hard to work on and possibly relies on hackjob repairs to make things work. C# with .NET is like a brand new Volvo S60: new, easy to use (from the driver&#8217;s seat), and safe with all the electro-nannies, but it&#8217;s a lot more complicated under the hood, but you&#8217;re not likely to go that deep anyways. I followed the tutorial at <a href="http://www.homeandlearn.co.uk/csharp/csharp.html" target="_new">Home and Learn</a> and got a nice primer on C#. The tutorials are very easy to read and understand so I recommend checking it out if you&#8217;re a beginner. It&#8217;s nice that Microsoft offers <a href="http://www.microsoft.com/express/Windows/" target="_new">Visual Studio Express</a> for free to play around with also. Get Visual Studio Express and start making some programs!</p>
]]></content:encoded>
			<wfw:commentRss>http://inphamous.com/2011/04/want-to-learn-c-sharp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prince William: Put a ring on it!</title>
		<link>http://inphamous.com/2011/04/prince-william-put-a-ring-on-it/</link>
		<comments>http://inphamous.com/2011/04/prince-william-put-a-ring-on-it/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 17:01:32 +0000</pubDate>
		<dc:creator>kevingrant</dc:creator>
				<category><![CDATA[Android App]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://inphamousdevelopment.wordpress.com/?p=933</guid>
		<description><![CDATA[At phamous-apps, we&#8217;re shameless fans of the royal wedding, and in lieu of this, we&#8217;re giving you another precious gem for your application arsenal. We present to you&#8230; Prince William: Put a ring on it! A simple mini-game where you can put a ring on Prince Williams finger. Description from the marketplace The Royal Wedding [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJava.js"></script>
            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>At phamous-apps, we&#8217;re shameless fans of the royal wedding, and in lieu of this, we&#8217;re giving you another precious gem for your application arsenal.  We present to you&#8230;</p>
<p><a href="https://market.android.com/details?id=inpha.mous.putaring">Prince William: Put a ring on it!</a></p>
<p>A simple mini-game where you can put a ring on Prince Williams finger. Description from the marketplace </p>
<blockquote><p>The Royal Wedding is soon, and Prince William is refusing to wear his ring. Kate Middleton seems ok with it, but we all know that shes not!<br />
In this minigame, &#8220;Put a Ring On it!&#8221; you need to put as many rings on the Prince&#8217;s hand as possible! Rack up a high score, let him know that you want that ring on there!</p></blockquote>
<p>There seem to be some problems if you have a ridiculously large screen where the hand moves too fast, but just think of it as &#8220;expert mode&#8221; and you&#8217;ll be fine, until we can fix it anyways <img src='http://inphamous.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
<a href="http://inphamousdevelopment.files.wordpress.com/2011/04/f-0-5365dc3d7ebb776514e4534034390887685faccc.jpeg"><img src="http://inphamousdevelopment.files.wordpress.com/2011/04/f-0-5365dc3d7ebb776514e4534034390887685faccc.jpeg?w=300" alt="" title="f-0-5365dc3d7ebb776514e4534034390887685faccc" width="300" height="146" class="aligncenter size-medium wp-image-934" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://inphamous.com/2011/04/prince-william-put-a-ring-on-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is there an Android API for Google Maps 5.0?</title>
		<link>http://inphamous.com/2011/03/is-there-an-android-api-for-google-maps-5-0/</link>
		<comments>http://inphamous.com/2011/03/is-there-an-android-api-for-google-maps-5-0/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 17:35:45 +0000</pubDate>
		<dc:creator>kevingrant</dc:creator>
				<category><![CDATA[Android Development]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Google Maps 5.0]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://inphamousdevelopment.wordpress.com/?p=924</guid>
		<description><![CDATA[I&#8217;ve been looking for this for some personal projects today. After a few hours of research and testing on 3/29/2011, my definitive answer is no. There remains an unanswered comment on the official blog post about it here from December, and when using the latest 2.3.3 Google APIs in the SDK, I still receive tile [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJava.js"></script>
            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>I&#8217;ve been looking for this for some personal projects today.  After a few hours of research and testing on 3/29/2011, my definitive answer is <b>no</b>. </p>
<p>There remains an unanswered comment on the official blog post about it <a href="http://googlemobile.blogspot.com/2010/12/under-hood-of-google-maps-50-for.html">here</a> from December, and when using the latest 2.3.3 Google APIs in the SDK, I still receive tile based maps.  I have also found numerous unanswered questions from stackoverflow and other QA sites to back up my statement that it is currently unavailable.</p>
<p>I will update this post when the Maps 5.0 API becomes updated, or if anyone hears otherwise before I do, please comment!</p>
<p><a href="http://inphamousdevelopment.files.wordpress.com/2011/03/notyet.png"><img src="http://inphamousdevelopment.files.wordpress.com/2011/03/notyet.png" alt="" title="notyet" width="478" height="479" class="alignleft size-full wp-image-925" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://inphamous.com/2011/03/is-there-an-android-api-for-google-maps-5-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to shoot yourself in the foot in any programming language</title>
		<link>http://inphamous.com/2011/03/how-to-shoot-yourself-in-the-foot-in-any-programming-language/</link>
		<comments>http://inphamous.com/2011/03/how-to-shoot-yourself-in-the-foot-in-any-programming-language/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 14:02:24 +0000</pubDate>
		<dc:creator>alext9586</dc:creator>
				<category><![CDATA[Concept]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Implementation]]></category>
		<category><![CDATA[Writing]]></category>

		<guid isPermaLink="false">http://inphamousdevelopment.wordpress.com/?p=919</guid>
		<description><![CDATA[If you ever want to know how to shoot yourself in the foot using a programming language, read on. I promise, it won't hurt.]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushJava.js"></script>
            <script type="text/javascript" src="http://inphamous.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>Searching through the documents on my hard drive this weekend I came across a document containing the joke of how to shoot yourself in the foot in any programming language. Well, not literally, but it does relate how the different languages behave by using the analogy of shooting one&#8217;s self in the foot. I forgot where I found this so if someone knows, post the link in the comments!</p>
<p>* * *</p>
<p><strong>How to Shoot Yourself in the Foot in Any Programming Language</strong></p>
<p>The proliferation of modern programming languages (all of which seem to have stolen countless features from one another) sometimes makes it difficult to remember what language you’re currently using. This guide is offered as a public service to help programmers who find themselves in such dilemmas.</p>
<p><strong>C</strong><br />
You shoot yourself in the foot.</p>
<p><strong>C++</strong><br />
You accidentally create a dozen clones of yourself and shoot them all in the foot. Providing emergency medical assistance is impossible since you can’t tell which are bitwise copies and which are just pointing at others and saying, “That’s me, over there.”</p>
<p><strong>JAVA</strong><br />
After importing java.awt.right.foot.* and java.awt.gun.right.hand.*, and writing the classes and methods of those classes needed, you’ve forgotten what the hell you’re doing.</p>
<p><strong>Ruby</strong><br />
Your foot is ready to be shot in roughly five minutes, but you just can’t find anywhere to shoot it.</p>
<p><strong>PHP</strong><br />
You shoot yourself in the foot with a gun made with pieces from 300 other guns.</p>
<p><strong>ASP.NET</strong><br />
Find a gun, it falls apart. Put it back together, it falls apart again. You try using the .GUN Framework, it falls apart. You stab yourself in the foot instead.</p>
<p><strong>SQL</strong><br />
SELECT @ammo:=bullet FROM gun WHERE trigger = ‘PULLED’;<br />
INSERT INTO leg (foot) VALUES (@ammo);</p>
<p><strong>Perl</strong><br />
You shoot yourself in the foot, but nobody can understand how you did it. Six months later, neither can you.</p>
<p><strong>Javascript</strong><br />
You’ve perfected a robust, rich user experience for shooting yourself in the foot. You then find that bullets are disabled on your gun.</p>
<p><strong>CSS</strong><br />
You shoot your right foot with one hand, then switch hands to shoot your left foot but you realize that the gun has turned into a banana.</p>
<p><strong>FORTRAN</strong><br />
You shoot yourself in each toe, iteratively, until you run out of toes, then you read in the next foot and repeat. If you run out of bullets, you continue anyway because you have no exception-handling ability.</p>
<p><strong>Modula2</strong><br />
After realizing that you can’t actually accomplish anything in this language, you shoot yourself in the head.</p>
<p><strong>COBOL</strong><br />
Using a COLT 45 HANDGUN, AIM gun at LEG.FOOT, THEN place ARM.HAND.FINGER. on HANDGUN.TRIGGER and SQUEEZE. THEN return HANDGUN to HOLSTER. CHECK whether shoelace needs to be retied.</p>
<p><strong>LISP</strong><br />
You shoot yourself in the appendage which holds the gun with which<br />
you shoot yourself in the appendage which holds the gun with which<br />
you shoot yourself in the appendage which holds the gun with which<br />
you shoot yourself in the appendage which holds the gun with which<br />
you shoot yourself in the appendage which holds ….</p>
<p><strong>BASIC</strong><br />
Shoot yourself in the foot with a water pistol. On big systems, continue until entire lower body is waterlogged.</p>
<p><strong>FORTH</strong><br />
Foot in yourself shoot.</p>
<p><strong>APL</strong><br />
You shoot yourself in the foot, then spend all day figuring out how to do it in fewer characters.</p>
<p><strong>Pascal</strong><br />
The compiler won’t let you shoot yourself in the foot.</p>
<p><strong>SNOBOL</strong><br />
If you succeed, shoot yourself in the left foot.<br />
If you fail, shoot yourself in the right foot.</p>
<p><strong>Concurrent Euclid</strong><br />
You shoot yourself in somebody else’s foot.</p>
<p><strong>HyperTalk</strong><br />
Put the first bullet of the gun into the foot of the left leg of you.<br />
Answer the result.</p>
<p><strong>Motif</strong><br />
You spend days writing a UIL description of your foot, the trajectory, the bullet, and the intricate scrollwork on the ivory handles of the gun. When you finally get around to pulling the trigger, the gun jams.</p>
<p><strong>Unix</strong><br />
% ls<br />
foot.c foot.h foot.o toe.c toe.o<br />
% rm * .o<br />
rm: .o: No such file or directory<br />
% ls<br />
%</p>
<p><strong>Paradox</strong><br />
Not only can you shoot yourself in the foot, your users can too.</p>
<p><strong>Revelation</strong><br />
You’ll be able to shoot yourself in the foot just as soon as you figure out what all these bullets are for.</p>
<p><strong>Visual Basic</strong><br />
You’ll shoot yourself in the foot, but you’ll have so much fun doing it that you won’t care.</p>
<p><strong>Prolog</strong><br />
You tell your program you want to be shot in the foot. The program figures out how to do it, but the syntax doesn’t allow it to explain.</p>
<p><strong>Ada</strong><br />
After correctly packaging your foot, you attempt to concurrently load the gun, pull the trigger, scream and shoot yourself in the foot. When you try, however, you discover that your foot is of the wrong type.</p>
<p><strong>Assembly</strong><br />
You try to shoot yourself in the foot only to discover you must first reinvent the gun, the bullet, and your foot. After that’s done, you pull the trigger, the gun beeps several times, then crashes.</p>
<p><strong>370 JCL</strong><br />
You send your foot down to MIS with a 4000-page document explaining how you want it to be shot. Three years later, your foot comes back deep-fried.</p>
<p><strong>Python</strong><br />
You try to shoot yourself in the foot but you just keep hitting the whitespace between your toes.</p>
]]></content:encoded>
			<wfw:commentRss>http://inphamous.com/2011/03/how-to-shoot-yourself-in-the-foot-in-any-programming-language/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

