<?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>Gepatto Blog &#187; Code</title>
	<atom:link href="http://blog.gepatto.nl/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gepatto.nl</link>
	<description>Who needs a tagline anyway?</description>
	<lastBuildDate>Mon, 17 May 2010 13:34:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Xcode Duplicate line</title>
		<link>http://blog.gepatto.nl/2010/05/17/xcode-duplicate-line/</link>
		<comments>http://blog.gepatto.nl/2010/05/17/xcode-duplicate-line/#comments</comments>
		<pubDate>Mon, 17 May 2010 13:28:01 +0000</pubDate>
		<dc:creator>patrick</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[LifeSavers]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://blog.gepatto.nl/?p=240</guid>
		<description><![CDATA[So I have started working in xcode, and the first thing I was missing was some key bindings for duplicating a line up or down like eclipse does. I took a while to figure out how to do it. So here&#8217;s an explanation. (I&#8217;m using xcode 3.2) Make a duplicate of the xcode keybindings set [...]]]></description>
			<content:encoded><![CDATA[<p>So I have started working in xcode, and the first thing I was missing was some key bindings for duplicating a line up or down like eclipse does.<br />
I took a while to figure out how to do it. So here&#8217;s an explanation. (I&#8217;m using xcode 3.2)<br />
<strong>Make a duplicate of the xcode keybinding</strong>s set in the xcode preferences: (i named mine patrick <img src='http://blog.gepatto.nl/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><a href="http://blog.gepatto.nl/wp-content/uploads/2010/05/xcodepref.png" rel="shadowbox[post-240];player=img;"><img class="alignnone size-full wp-image-241" title="xcode preferences" src="http://blog.gepatto.nl/wp-content/uploads/2010/05/xcodepref.png" alt="" width="790" height="398" /></a></p>
<p><strong><br />
Close xcode</strong></p>
<p>You should be able to find the file xode created in<br />
<code>/Users/YOURUSERNAME/Library/Application Support/Xcode/Key Bindings</code><br />
for me it is called Patrick.pbxkeys</p>
<p><strong>Edit this file with the property editor.</strong><br />
From the view menu select :<br />
<code>Show Strings as Non-lossy ASCII</code></p>
<p><a href="http://blog.gepatto.nl/wp-content/uploads/2010/05/showasnonlossyascii.png" rel="shadowbox[post-240];player=img;"><img class="alignnone size-full wp-image-242" title="show strings as non-lossy ascii" src="http://blog.gepatto.nl/wp-content/uploads/2010/05/showasnonlossyascii.png" alt="" width="269" height="100" /></a></p>
<p>Add 2 children as follows<br />
<a href="http://blog.gepatto.nl/wp-content/uploads/2010/05/proplistedit.png" rel="shadowbox[post-240];player=img;"><img class="alignnone size-full wp-image-243" title="property list editor" src="http://blog.gepatto.nl/wp-content/uploads/2010/05/proplistedit.png" alt="" width="631" height="277" /></a></p>
<p><strong>Save, and open up xcode</strong></p>
<p><strong>ctrl+shift+uparrow</strong> should now duplicate the current line upwards<br />
<strong>ctrl+shift+downarrow</strong> should now duplicate the current line downwards</p>
<h2><span style="color: #339966;"><strong>happy coding</strong></span></h2>
]]></content:encoded>
			<wfw:commentRss>http://blog.gepatto.nl/2010/05/17/xcode-duplicate-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microphone bug in as3?</title>
		<link>http://blog.gepatto.nl/2007/11/04/microphone-bug-in-as3/</link>
		<comments>http://blog.gepatto.nl/2007/11/04/microphone-bug-in-as3/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 15:05:10 +0000</pubDate>
		<dc:creator>patrick</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Flash & More]]></category>

		<guid isPermaLink="false">http://blog.gepatto.nl/2007/11/04/microphone-bug-in-as3/</guid>
		<description><![CDATA[[UPDATE] Ok, so it really is a bug,  Thnx Matt for the comment with the link: &#8220;you need to pass a value of “-1″ to the getMicrophone() call to get the one you’ve chosen&#8221; &#8212;- Seems like there&#8217;s a bug in the As3 (or flash player 9) in the Microphone class. I&#8217;m not able to [...]]]></description>
			<content:encoded><![CDATA[<p>[UPDATE]</p>
<p>Ok, so it really is a bug,  Thnx Matt for the comment with the <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/Microphone.html" target="_blank">link</a>:</p>
<p>&#8220;you need to pass a value of “-1″ to the getMicrophone() call to get the one you’ve chosen&#8221;</p>
<p>&#8212;-</p>
<p>Seems like there&#8217;s a bug in the As3 (or flash player 9) in the Microphone class.</p>
<p>I&#8217;m not able to switch between Audio-input devices using the Settings panel.<br />
And Microphone.getMicrophone() always seems to get the First Audio-device,<br />
and not the device the user has selected in the settings panel.</p>
<p>Try this:<br />
do a Microphone.getMicrophone();<br />
bring up the settings panel (through rightclick or code: Security.showSettings(SecurityPanel.MICROPHONE); )<br />
switch audio-device.<br />
Now, for me it&#8217;s still using the firts audio device, and NOT the one I just selected.</p>
<p>Can anyone confirm?</p>
<p>I&#8217;m using the latest Player. 9,0,64,0</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gepatto.nl/2007/11/04/microphone-bug-in-as3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Black Screen Visualizer for WMP</title>
		<link>http://blog.gepatto.nl/2006/04/18/black-screen-visualizer-for-wmp/</link>
		<comments>http://blog.gepatto.nl/2006/04/18/black-screen-visualizer-for-wmp/#comments</comments>
		<pubDate>Tue, 18 Apr 2006 09:37:49 +0000</pubDate>
		<dc:creator>patrick</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://blog.gepatto.nl/?p=22</guid>
		<description><![CDATA[Last year I assembled my Media Center machine. Although I think the interface design is not optimal, I&#8217;ll never go back to having a separate TV, DVD an Audio System. One thing that bugged was not being able to turn off the monitor with the remote. When I&#8217;m playing music I don&#8217;t really need to [...]]]></description>
			<content:encoded><![CDATA[<p>Last year I assembled my Media Center machine. Although I think the interface design is not optimal, I&#8217;ll never go back to having a separate TV, DVD an Audio System. One thing that bugged was not being able to turn off the monitor with the remote. When I&#8217;m playing music I don&#8217;t really need to see the mce interface. So this weekend I decided to figure out how to make a Visualizer plugin. I wanted to build a visualizer that visualizes&#8230; uhm .. NOTHING&#8230; Just a black screen so I won&#8217;t have to turn of my monitor.</p>
<p>So I downloaded the Windows Media SDK, read the help files and found a code sample. Unfortunately it didn&#8217;t work right away, because I&#8217;m using visual studio 2005. Searching msdn,<a target="_blank" href="http://msdn.microsoft.com/library/en-us/dnwmt/html/playersdk_readme.asp?frame=true#using_the_plug_in_wizard_with_visual_studio_2005__xesn"> I did find a way</a> to convert the windowsmediaplugin wizard to VS 2005.</p>
<p>In the sample I just commented out the lines that did the visualizing, and changed the presets that came with it.<br />
After building the solution, I got a <a target="_blank" href="http://blog.gepatto.nl/files/BlackScreenViz.zip">dll </a>that I could register on my MCE machine.</p>
<p>Sweet, now all it needs is some testing.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gepatto.nl/2006/04/18/black-screen-visualizer-for-wmp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
