<?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>armisael.silix.org &#187; Senza categoria</title>
	<atom:link href="http://armisael.silix.org/category/senza-categoria/feed/" rel="self" type="application/rss+xml" />
	<link>http://armisael.silix.org</link>
	<description>Armisael's scientific world</description>
	<lastBuildDate>Sat, 28 Jan 2012 13:35:17 +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>Google and OAuth problems</title>
		<link>http://armisael.silix.org/2011/10/google-and-oauth-problems/</link>
		<comments>http://armisael.silix.org/2011/10/google-and-oauth-problems/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 07:54:51 +0000</pubDate>
		<dc:creator>Armisael</dc:creator>
				<category><![CDATA[Senza categoria]]></category>
		<category><![CDATA[activation token]]></category>
		<category><![CDATA[google data api]]></category>
		<category><![CDATA[oauth]]></category>

		<guid isPermaLink="false">http://armisael.silix.org/?p=125</guid>
		<description><![CDATA[Okay, I&#8217;ve lost like three days on this, so I really have to write it down. It happened I found myself trying to connect to Google using the Google Data API for retrieving the user contacts (in my case I was using Python and Django, but it doesn&#8217;t really matter). I was &#8211; after a &#8230; </p><p><a class="more-link block-button" href="http://armisael.silix.org/2011/10/google-and-oauth-problems/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Okay, I&#8217;ve lost like three days on this, so I really have to write it down.</p>
<p>It happened I found myself trying to connect to Google using the Google Data API for retrieving the user contacts (in my case I was using Python and Django, but it doesn&#8217;t really matter). I was &#8211; after a while &#8211; able to get an access token, but I was unable to actually download data: Google always returned an error page saying:</p>
<blockquote><p>401. That&#8217;s an error.<br />
There was an error in your request. That&#8217;s all we know.</p></blockquote>
<p>Thanks, Google.</p>
<p>Well, playing around with the <a href="http://googlecodesamples.com/oauth_playground/index.php">OAuth Playground</a> (very bugged, but useful) I realized the problem was with my access token, so I debugged a bit. It just happens that Google returns you an escaped access token, in my case:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">1%2FAhSlGsMB_2VHwzMI3Y9X0op5VWsciV-NZqM3PoZESG0</pre></div></div>

<p>While the actual (unescaped) token was</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">1/AhSlGsMB_2VHwzMI3Y9X0op5VWsciV-NZqM3PoZESG0</pre></div></div>

<p>After running a simple</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #dc143c;">urllib</span>.<span style="color: black;">unquote</span></pre></div></div>

<p>on it, I was finally able to download data.</p>
]]></content:encoded>
			<wfw:commentRss>http://armisael.silix.org/2011/10/google-and-oauth-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to compile iPhone 3.1.3 applications with Xcode 3.2.1 without Provisioning Profile</title>
		<link>http://armisael.silix.org/2010/04/how-to-compile-iphone-3-1-3-applications-with-xcode-3-2-1-without-provisioning-profile/</link>
		<comments>http://armisael.silix.org/2010/04/how-to-compile-iphone-3-1-3-applications-with-xcode-3-2-1-without-provisioning-profile/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 10:27:24 +0000</pubDate>
		<dc:creator>Armisael</dc:creator>
				<category><![CDATA[Senza categoria]]></category>
		<category><![CDATA[iPhone 3.1.3]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[Xcode 3.2.1]]></category>

		<guid isPermaLink="false">http://armisael.silix.org/?p=81</guid>
		<description><![CDATA[Some days ago I started to develop an iPhone application with the latest version of Xcode. When I realized that I need to pay 99 dollars to Apple in order to test my application (that, by the way, I would share freely), I started to search on the web a solution for this problem. Unfortunately &#8230; </p><p><a class="more-link block-button" href="http://armisael.silix.org/2010/04/how-to-compile-iphone-3-1-3-applications-with-xcode-3-2-1-without-provisioning-profile/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Some days ago I started to develop an iPhone application with the latest version of Xcode. When I realized that I need to pay 99 dollars to Apple in order to test my application (that, by the way, I would share freely), I started to search on the web a solution for this problem. Unfortunately all the proposed solutions where about iPhone 2.0, and these don&#8217;t work the same with iPhone 3.1.3. Today I found an how-to that worked for me, but with some passages that could be a bit tricky for non-hackers, so I decided to share it here, with some more passages needed to get our final goal: develop an iPhone application with Xcode 3.2.1 without being registered to any Apple Development Service.</p>
<p>Nothing from this page comes from me, everything was written by <strong>KennyTM</strong> on his blog: <a href="http://networkpx.blogspot.com/2009/09/compiling-iphoneos-31-apps-with-xcode.html" target="_blank">networkpx Project Blog</a> so don&#8217;t thank me &#8211; if it works &#8211; but go to his blog and visit him!</p>
<h2>Only compile the executable</h2>
<p>If you just want to compile the executable, maybe for including it in a .ipa file, or for copying it with scp on your device, just follow the instructions on KennyTM&#8217;s blog, under the &#8220;I want to compile.&#8221; title. It&#8217;s simple, clear and understandable (thanks, KennyTM!).</p>
<h2>Also install it on your device</h2>
<p>Well, this part is more tricky, but it&#8217;s not so difficult if you know how to use the Terminal (and you know how to use it, right?).</p>
<ul>
<li>The point 1 is quiet simple, just download the executable by following the link, and place it in /usr/local/bin as KennyTM said. Remember to make it executable running

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ldid.</pre></div></div>

</li>
<li>The point 2 is also simple, but remember again to make it executable, as shown above.</li>
<li>Points 3 and 4 are easy.</li>
<li>In point 5, in order to copy installd from my device to my mac, I used ssh. I have it since I have a Jailbroken iPod Touch, and I have been able to install OpenSsh with Cydia; if you have an original OS on your device (good for you) check if ssh is available looking in the Preference Panel of the device which is its IP address (you need to connect it at the same network of your mac, obviously) and executing

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> root<span style="color: #000000; font-weight: bold;">@</span>IP_ADDRESS</pre></div></div>

<p>from a Terminal of your mac. The default password for your device is &#8220;alpine&#8221; (remember to change it with passwd, since it&#8217;s the same for all iPhones and iPods). If it works, just run</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">scp</span> root<span style="color: #000000; font-weight: bold;">@</span>IP_ADDRESS:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>libexec<span style="color: #000000; font-weight: bold;">/</span>installd ~<span style="color: #000000; font-weight: bold;">/</span>Desktop<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>and you have copied installd on your mac.</li>
<li>Points 6 and 7 are simple, just follow them.</li>
<li>In order to complete point 8, you need to use the iPhone gcc. Looking at some comments on the blog you can find how to do this, but here it is the command you have to execute:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>Platforms<span style="color: #000000; font-weight: bold;">/</span>iPhoneOS.platform<span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gcc-<span style="color: #000000;">4.2</span> libmiss.c \
<span style="color: #660033;">-dynamiclib</span> \
-install_name <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libmiss.dylib \
-current_version <span style="color: #000000;">1</span> \
-compatibility_version <span style="color: #000000;">1</span> \
-Wl,-reexport-lmis \
-flat_namespace \
<span style="color: #660033;">-isysroot</span> <span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>Platforms<span style="color: #000000; font-weight: bold;">/</span>iPhoneOS.platform<span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>SDKs<span style="color: #000000; font-weight: bold;">/</span>iPhoneOS3.0.sdk \
<span style="color: #660033;">-arch</span> armv6 \
<span style="color: #660033;">-o</span> libmiss.dylib</pre></div></div>

</li>
<li>Points from 9 to 12 are simple, just use scp again to copy the modified files from your mac to your device (scp SOURCE DEST).</li>
</ul>
<p>Remember to add your device to Xcode. To do that, run it and from the menu select &#8220;Window / Organizer&#8221;. Connect your device, select it and enable it!<br />
Now you are able to compile your applications on your device! Happy working!</p>
]]></content:encoded>
			<wfw:commentRss>http://armisael.silix.org/2010/04/how-to-compile-iphone-3-1-3-applications-with-xcode-3-2-1-without-provisioning-profile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MindGapper changes into MooGraph</title>
		<link>http://armisael.silix.org/2009/07/mindgapper-changes-into-moograph/</link>
		<comments>http://armisael.silix.org/2009/07/mindgapper-changes-into-moograph/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 10:35:57 +0000</pubDate>
		<dc:creator>Armisael</dc:creator>
				<category><![CDATA[Senza categoria]]></category>
		<category><![CDATA[mindgapper]]></category>
		<category><![CDATA[moograph]]></category>

		<guid isPermaLink="false">http://armisael.silix.org/?p=70</guid>
		<description><![CDATA[Yep, it is, MindGapper has been renamed into MooGraph. Why? Well, it&#8217;s pretty simple, MindGapper was a funny name based on GapMinder, but now MindGapper &#8211; MooGraph is a complete software for statistical data, so we decided to change it&#8217;s name. Sooner or later also the project on SourceForce will be renamed (we hope!), so &#8230; </p><p><a class="more-link block-button" href="http://armisael.silix.org/2009/07/mindgapper-changes-into-moograph/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Yep, it is, MindGapper has been renamed into MooGraph.</p>
<p>Why? Well, it&#8217;s pretty simple, MindGapper was a funny name based on GapMinder, but now MindGapper &#8211; MooGraph is a complete software for statistical data, so we decided to change it&#8217;s name.</p>
<p>Sooner or later also the project on SourceForce will be renamed (we hope!), so keep on following us on our trac! And if you have questions, don&#8217;t heistate writing them down as comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://armisael.silix.org/2009/07/mindgapper-changes-into-moograph/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why a blog?</title>
		<link>http://armisael.silix.org/2008/09/why-a-blog/</link>
		<comments>http://armisael.silix.org/2008/09/why-a-blog/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 17:26:41 +0000</pubDate>
		<dc:creator>Armisael</dc:creator>
				<category><![CDATA[Senza categoria]]></category>
		<category><![CDATA[about me]]></category>
		<category><![CDATA[introduction]]></category>

		<guid isPermaLink="false">http://armisael.silix.org/?p=10</guid>
		<description><![CDATA[In my informatic life I&#8217;ve wrote a lot of code lines, and sometimes I&#8217;ve spent hours and hours searching on the web the solution to problems, finding them on forums and blogs. But sometimes people that solve their problems don&#8217;t write it down their solutions, or sometimes the discussion about how to solve something is &#8230; </p><p><a class="more-link block-button" href="http://armisael.silix.org/2008/09/why-a-blog/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>In my informatic life I&#8217;ve wrote a lot of code lines, and sometimes I&#8217;ve spent hours and hours searching on the web the solution to problems, finding them on forums and blogs. But sometimes people that solve their problems don&#8217;t write it down their solutions, or sometimes the discussion about how to solve something is very very chaotic.</p>
<p>I&#8217;ve decided to write down the solution to my informatic problem here, hoping that this will help someone to solve their ones.</p>
<p>Another reason of this blog is that I&#8217;ve to improve my english, and the only way to do it is to use it! So first of all, I&#8217;m sorry for all the mistakes you will find on this blog, but I&#8217;m italian and is known that Italy people like only their own language&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://armisael.silix.org/2008/09/why-a-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

