<?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>Radu Lucaciu</title>
	<atom:link href="http://www.radulucaciu.ro/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.radulucaciu.ro</link>
	<description>on programming... and life</description>
	<lastBuildDate>Tue, 03 Jan 2012 13:42:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Upgrading to iOS5 causes &#8216;No Provisioned iOS devices are available&#8217; error</title>
		<link>http://www.radulucaciu.ro/upgrading-to-ios5-causing-no-provisioned-ios-devices-are-available/68/</link>
		<comments>http://www.radulucaciu.ro/upgrading-to-ios5-causing-no-provisioned-ios-devices-are-available/68/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 13:08:01 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.radulucaciu.ro/?p=68</guid>
		<description><![CDATA[I finally decided to upgrade my iPhone to iOS 5 today. The upgrade process was pretty smooth, but once it was done, I was no longer able to run the apps from XCode. I kept getting the no provisioned ios devices are available with a compatible ios version error. Turned out that all I had [...]]]></description>
			<content:encoded><![CDATA[<p>I finally decided to upgrade my iPhone to iOS 5 today. The upgrade process was pretty smooth, but once it was done, I was no longer able to run the apps from XCode. I kept getting the <strong><em>no provisioned ios devices are available with a compatible ios version </em></strong>error.</p>
<p>Turned out that all I had to do was to go to Window-&gt;Organizer and, from the <em>Devices pane,</em> select my iPhone and click on <em>Use this phone for development.</em></p>
<p>Easy solution, but was not immediately obvious to me<em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.radulucaciu.ro/upgrading-to-ios5-causing-no-provisioned-ios-devices-are-available/68/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Apple pains &#8211; Invalid signing certificate</title>
		<link>http://www.radulucaciu.ro/apple-pains-invalid-signing-certificate/62/</link>
		<comments>http://www.radulucaciu.ro/apple-pains-invalid-signing-certificate/62/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 04:52:57 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.radulucaciu.ro/?p=62</guid>
		<description><![CDATA[I&#8217;ve been trying for the past two days to submit a new version of CashBase but I kept getting the dreaded &#8220;application failed codesign verification. the signature was invalid, or it was not signed with an apple submission certificate. (-19011) &#8221; error. (Note: after migrating to XCode 4, all sorts of weird things happen, talk [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been trying for the past two days to submit a new version of <a href="http://itunes.apple.com/ro/app/cashbase/id408608679?mt=8" target="_blank">CashBase</a> but I kept getting the dreaded &#8220;application failed codesign verification. the signature was invalid, or it was not signed with an apple submission certificate. (-19011) &#8221; error. (Note: after migrating to XCode 4, all sorts of weird things happen, talk about a buggy piece of software, right there)</p>
<p>I tried all the tricks in the book: revoke the distribution certificate and re-create it, clean, made sure that the Code Signing for distribution is the correct one, etc. Nothing!</p>
<p>After many failed trials, I thought of taking a look at the entitlements used to sign the binary:</p>
<pre>codesign -dvvv CashBase.app</pre>
<p>I noticed that the <strong>Authority</strong> key was using my <em>iPhone Development</em> certificate. Turns out that the Archive Scheme in XCode 4 decided to switch all by itself to the Release Build configuration instead of the Distribution. Changing it back to Distribution solved my problem</p>
<p>With hindsight, I should have noticed that the binary was being compiled to the Release-iphoneos instead of the Distribution-iphoneos folder.</p>
<p><strong>Note: </strong>A collection of helpful hints for this error can be found <a href="http://www.codza.com/how-to-fix-iphone-code-signing-errors">here</a></p>
<p><strong>Edit:</strong> To edit the scheme, go to Product -&gt; Edit Scheme. Select the Archive Scheme and make sure that the Build Configuration is set to Distribution (this is for XCode 4.x)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.radulucaciu.ro/apple-pains-invalid-signing-certificate/62/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Windows 7 &#8211; keyboard hooks stop working, a workaround</title>
		<link>http://www.radulucaciu.ro/windows-7-keyboard-hooks-stop-working-a-workaround/49/</link>
		<comments>http://www.radulucaciu.ro/windows-7-keyboard-hooks-stop-working-a-workaround/49/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 20:20:58 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.radulucaciu.ro/?p=49</guid>
		<description><![CDATA[It seems that sometimes applications that install a keyboard hook (to monitor media keys, for instance) can randomly stop receiving the keyboard commands. I&#8217;ve seen this problem happen with the Groovie app. I&#8217;ve also heard of it happening with various music and video players. It turns out to be a bug in Windows7; under full-load, [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that sometimes applications that install a keyboard hook (to monitor media keys, for instance) can randomly stop receiving the keyboard commands. I&#8217;ve seen this problem happen with the <a href="http://www.radulucaciu.ro/grooveshark-keyboard-hook/41/">Groovie</a> app. I&#8217;ve also heard of it happening with various music and video players.</p>
<p>It turns out to be a bug in Windows7; under full-load, the Operating System will not allow sufficient time for the hooks to process the messages and will remove them without notifying the application.</p>
<p>One workaround that I found was to increase the Hooks Timeout setting in the Windows registry:</p>
<p>Go to <strong>HKEY_CURRENT_USER\Control Panel\Desktop</strong> and set the <strong>LowLevelHooksTimeout </strong>to a larger value, I used 2710 (which is 10 seconds)</p>
<p>Hope this helps someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.radulucaciu.ro/windows-7-keyboard-hooks-stop-working-a-workaround/49/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Grooveshark keyboard hook</title>
		<link>http://www.radulucaciu.ro/grooveshark-keyboard-hook/41/</link>
		<comments>http://www.radulucaciu.ro/grooveshark-keyboard-hook/41/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 16:30:27 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.radulucaciu.ro/?p=41</guid>
		<description><![CDATA[The guys at Grooveshark did an awesome job switching from the Flash based player to Javascript (as a side note, I just wish they&#8217;d lose the Flash ads, they make my Macbook Pro&#8217;s CPU hit 70% load just listening to music). This allowed me to write a new application that captures the play/pause/forward/backward media keys [...]]]></description>
			<content:encoded><![CDATA[<p>The guys at <a title="Grooveshark" href="http://www.grooveshark.com" target="_blank">Grooveshark</a> did an awesome job switching from the Flash based player to Javascript (as a side note, I just wish they&#8217;d lose the Flash ads, they make my Macbook Pro&#8217;s CPU hit 70% load just listening to music).</p>
<p>This allowed me to write a new application that captures the play/pause/forward/backward media keys and send the necessary messages to the player. Using the app is so much simpler as well, just launch the app and you&#8217;re ready to go! No need to go through the tedious process of selecting the window and keys, everything should be straightforward.</p>
<p><a href="http://www.radulucaciu.ro/wp-content/uploads/2011/02/Groovie.zip">Groovie</a></p>
<p><strong>Update:</strong></p>
<p>Since Grooveshark never replied to my email, I&#8217;m publishing the code</p>
<p><a href="http://www.radulucaciu.ro/wp-content/uploads/2011/12/GroovieSource.zip">Groovie Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.radulucaciu.ro/grooveshark-keyboard-hook/41/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>iPhone autocomplete class</title>
		<link>http://www.radulucaciu.ro/iphone-autocomplete-class/5/</link>
		<comments>http://www.radulucaciu.ro/iphone-autocomplete-class/5/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 15:30:02 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.radulucaciu.ro/?p=5</guid>
		<description><![CDATA[While working on the Cashbase iPhone project ( CashbaseHq ), I found myself longing for an autocomplete feature, but could not find anything on the web. So I decided to build my own. The functionality is identical to the way autocomplete is used on the web. Upon typing a text in the text field, a [...]]]></description>
			<content:encoded><![CDATA[<p>While working on the Cashbase iPhone project ( <a title="Cashbase" href="http://www.cashbasehq.com" target="_blank">CashbaseHq</a> ), I found myself longing for an autocomplete feature, but could not find anything on the web. So I decided to build my own. The functionality is identical to the way autocomplete is used on the web. Upon typing a text in the text field, a list with suggestions appears bellow it. Selecting an item from the suggestions list will hide the list and add the word in the textfield.</p>
<p>This is how it looks in our app (for space reasons we have designed the suggestion list to be displayed above the field that requires autocomplete, but you can easily display it below &#8211; just see the demo app)</p>
<p><a href="http://www.radulucaciu.ro/wp-content/uploads/2011/02/CashBase.jpg"><img class="alignnone size-medium wp-image-39" title="CashBase" src="http://www.radulucaciu.ro/wp-content/uploads/2011/02/CashBase-300x187.jpg" alt="" width="300" height="187" /></a></p>
<p>How to use:</p>
<p>Import the <em>Autocomplete.h</em> file</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #6e371a;">#import &quot;Autocomplete.h&quot;</span></pre></div></div>

<p>Prepare the target UITextField for autocomplete by disabling the iPhone&#8217;s default autocomplete feature. You usually do this in the <em>viewDidLoad</em> method.</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #11740a; font-style: italic;">//disable the iPhone's default autocomplete feature</span>
textField.autocorrectionType <span style="color: #002200;">=</span> UITextAutocorrectionTypeNo;
&nbsp;
<span style="color: #11740a; font-style: italic;">//create the Autocomplete class and initialize it with some data</span>
autocomplete <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>Autocomplete alloc<span style="color: #002200;">&#93;</span> initWithArray<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><span style="color: #400080;">NSArray</span> alloc<span style="color: #002200;">&#93;</span> initWithObjects<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;apples&quot;</span>, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;oranges&quot;</span>, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;bananas&quot;</span>, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;peaches&quot;</span>, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;grapes&quot;</span>, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;blackberries&quot;</span>, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;strawberies&quot;</span>, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;watermelons&quot;</span>, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;mangos&quot;</span>, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;pears&quot;</span>, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;lemons&quot;</span>, <span style="color: #a61390;">nil</span><span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;</pre></div></div>

<p>Now, when the text in the text field has changed (ie: in the <em>EditingChanged</em> handler), just call the <em>GetSuggestions</em> method, which will return an array of strings that match the parameter passed</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #400080;">NSArray</span> <span style="color: #002200;">*</span>suggestions <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>autocomplete GetSuggestions<span style="color: #002200;">:</span>textField.text<span style="color: #002200;">&#93;</span>;</pre></div></div>

<p>You can do whatever you want with these suggestions, I displayed them in  a table view and when the user taps a cell, the text is added to the text field (see attached demo project)</p>
<p><a href="http://www.radulucaciu.ro/wp-content/uploads/2011/03/AutocompleteDemo.zip">Autocomplete Demo Application</a></p>
<p><a title="Autocomplete Source" href="http://www.radulucaciu.ro/wp-content/uploads/2011/03/autocomplete.zip">Autocomplete Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.radulucaciu.ro/iphone-autocomplete-class/5/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Simple Grooveshark play / previous / next media keys hook</title>
		<link>http://www.radulucaciu.ro/simple-grooveshark-play-previous-next-media-keys-hook/17/</link>
		<comments>http://www.radulucaciu.ro/simple-grooveshark-play-previous-next-media-keys-hook/17/#comments</comments>
		<pubDate>Sun, 07 Nov 2010 07:49:03 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.radulucaciu.ro/?p=17</guid>
		<description><![CDATA[Notice: This software is obsolete, please read this post instead A few days ago, a good friend of mine told me he&#8217;d like to be able to play/go back/skip the songs on Grooveshark, and asked whether I could write a small application to implement the functionality he needed. I thought this to be a great [...]]]></description>
			<content:encoded><![CDATA[<h4><span style="color: #3366ff;">Notice: This software is obsolete, please read <a href="http://www.radulucaciu.ro/grooveshark-keyboard-hook/41/" target="_self">this post</a> instead</span></h4>
<p>A few days ago, a <a href="http://www.ixaarii.com/" target="_blank">good friend of mine</a> told me he&#8217;d like to be able to play/go back/skip the songs on Grooveshark, and asked whether I could write a small application to implement the functionality he needed.</p>
<p>I thought this to be a great occasion to stick my nose in C# and see what&#8217;s what. A few hours later I had a simple application that does just what was required. There&#8217;s nothing fancy about it, and I don&#8217;t plan on adding any new features, but feel free to grab the source code and modify it after your own heart&#8217;s desire.</p>
<p>How to use:</p>
<ol>
<li>Open the Skipper app</li>
<li>Open Grooveshark in your browser &#8211; I hope you&#8217;re using <a href="http://www.mozilla.com/en-US/firefox/personal.html">Firefox </a>or <a href="http://www.google.com/chrome/">Chrome</a>! If you&#8217;re using Internet Explorer, help make the world a better place and download one of the browsers mentioned above!</li>
<li>Drag the Window Finder tool on top of the Grooveshark window</li>
<li>Add the X,Y coordinates for the play / previous / next buttons in the app (you can find these by taking a capture of your screen and using any image editing software to find the coordinates). Please note that the coordinates have to be in Window space, meaning that you should compute X and Y starting with from the top-left corner of your window, not from the top-left of your screen)</li>
<li>Make sure you don&#8217;t change the tab in the browser. The Grooveshark tab must ALWAYS be active. If you need multiple tabs, I suggest you open Grooveshark in a separate browser.</li>
<li>Use the media keys (play / previous / next) on your keyboard to navigate through the songs.</li>
<li>NOTE: the browser window does <span style="text-decoration: underline;">not</span> have to be active, it can be hidden by other windows and this will still work</li>
</ol>
<p>I&#8217;ve only tested this on Windows 7 but it should work in Vista / XP as well.</p>
<p>If you need additional functionality, feel free to modify the source code, I will not have time to upgrade it.</p>
<p>Edit: A big thank you to Ruurd Moelker for taking the time to improve the application by adding the following:</p>
<ul>
<li>Media button target selection with mouse cursor.</li>
<li>Always visible target pointers</li>
<li>An icon.</li>
<li>Trayicon support.</li>
</ul>
<p><a href="http://www.radulucaciu.ro/wp-content/uploads/2010/11/Skipper.zip">Download Skipper</a></p>
<p><a href="http://www.radulucaciu.ro/wp-content/uploads/2010/11/SkipperSource.zip">Download Skipper Source code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.radulucaciu.ro/simple-grooveshark-play-previous-next-media-keys-hook/17/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Yahoo! Messenger archive search</title>
		<link>http://www.radulucaciu.ro/yahoo-messenger-search-archive/4/</link>
		<comments>http://www.radulucaciu.ro/yahoo-messenger-search-archive/4/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 13:38:07 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[archive]]></category>
		<category><![CDATA[Messenger]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Yahoo!]]></category>

		<guid isPermaLink="false">http://www.radulucaciu.ro/?p=4</guid>
		<description><![CDATA[For quite a while now I&#8217;ve been frustrated by the fact the Yahoo! Messenger does not give you the option to search through the archive. I&#8217;ve found myself wishing for that search function more and more often lately. Having to browse through each conversation, to find what I needed, was inhuman &#8211; especially since I [...]]]></description>
			<content:encoded><![CDATA[<p>For quite a while now I&#8217;ve been frustrated by the fact the Yahoo! Messenger does not give you the option to search through the archive. I&#8217;ve found myself wishing for that search function more and more often lately. Having to browse through each conversation, to find what I needed, was inhuman &#8211; especially since I didn&#8217;t remember when the conversation took place!</p>
<p>So I decided to build a small application, that reads the Yahoo! Messenger Archive and implements basic keyword search. The first version of the software is already complete and can be <a href="http://www.radulucaciu.ro/ymsearch/">downloaded here.</a> The current version is completely functional, though many improvements are still in store.</p>
<p>So far I&#8217;ve only been interested in functionality, so the interface is kind of awkward, but will be one of the last things I will take care of. There are still some issues with the multithreaded code that have to be sorted out, but I&#8217;ve  found this utility helpful a few times already.</p>
<p>Check it out and let me know if you find any bugs or have any suggestions!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.radulucaciu.ro/yahoo-messenger-search-archive/4/feed/</wfw:commentRss>
		<slash:comments>59</slash:comments>
		</item>
		<item>
		<title>C++ vs C#</title>
		<link>http://www.radulucaciu.ro/c-vs-c/3/</link>
		<comments>http://www.radulucaciu.ro/c-vs-c/3/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 19:09:31 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[programming languages]]></category>

		<guid isPermaLink="false">http://www.radulucaciu.ro/?p=3</guid>
		<description><![CDATA[For a while now, I&#8217;ve been thinking whether , for me, as a C++ programmer, learning C# is worth investing time in. I admit I was kind of annoyed seeing people with little experience in programming saying that C# is the way to go, it is the latest release from Microsoft so it must be [...]]]></description>
			<content:encoded><![CDATA[<p>For a while now, I&#8217;ve been thinking whether , for me, as a C++ programmer, learning C# is worth investing time in. I admit I was kind of annoyed seeing people with little experience in programming saying that C#  is the way to go, it is the latest release from Microsoft so it must be the greatest thing since sliced bread.</p>
<p>There are a lot of good posts on C++ vs. C#  out there, so I won&#8217;t repeat any of the traditional pros and cons, these are just some of my thoughts on the matter.</p>
<p>I believe some hotshots at Microsoft took a good look at Java and thought &#8220;Hmmmm&#8230;.this write once, run anywhere thingie seems intriguing&#8230;and why are so many people using it?&#8230; and we don&#8217;t like that Sun&#8217;s getting all this attention. Yeah, we definitely want a share of this! But&#8230;we didn&#8217;t really have that much of a success with J++, how can we rebrand it? Wait! Why don&#8217;t we create a new language that runs anywhere (as long as that anywhere supports a Win-based OS, of course) and market it as the language that incorporates the best features from all other major languages?&#8221;</p>
<p>Now, believe it or not, Microsoft has nailed a lot of good things  with C#. It is easy to use, the learning curve is nowhere near as steep as C++&#8217;s and, there&#8217;s plenty of documentation for it. Unfortunately, I believe these are also its pitfalls. IMHO, while C#&#8217;s relative simplicity will  &#8211; maybe &#8211; allow more people with great ideas, that might not have had the time to learn C++, to start programming, it will also encourage sloppy programming. Most (new) programmers will not bother about resource management (where and when the resources are allocated and when or where they are released) since the garbage collector does that transparently, but truth is this will have a great impact on performance.</p>
<p>So&#8230;back to my original problem, should a C++ programmer bother learning C# or not? Well, with the CLR included neatly into VS 2005 there&#8217;s no need to, but in the end it all comes down to the personal preference. I say, take a look at C#, you might end up liking it. Personally, I did program with it a little bit, but didn&#8217;t like it&#8230; I&#8217;m sticking with C++ for now <img src='http://www.radulucaciu.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.radulucaciu.ro/c-vs-c/3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

