<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:iweb="http://www.apple.com/iweb" version="2.0">
  <channel>
    <title>Dev blog</title>
    <link>http://www.desknotes.it/siten/DevBlog/DevBlog.html</link>
    <description>Hi guys, here is the place where I put all my stickies around software development latest learnings. For me it’s very useful do this frequently, it allows me to learn things faster...maybe these pages are useful for you too.&lt;br/&gt;&lt;br/&gt;This it not an eye candy web site, it’s horrible to see but, hopefully, nice to read...and keep in mind that my English it’s poor, however I hope you can understand almost everything. </description>
    <generator>iWeb 3.0.1</generator>
    <item>
      <title>Xcode 3: change default company header </title>
      <link>http://www.desknotes.it/siten/DevBlog/Entries/2009/4/10_Xcode_3%3A_change_default_company_header_.html</link>
      <guid isPermaLink="false">fe402b2b-de09-4f8a-9b3b-f9c2ba54acd8</guid>
      <pubDate>Fri, 10 Apr 2009 20:23:44 +0200</pubDate>
      <description>defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ &amp;quot;ORGANIZATIONNAME&amp;quot; = &amp;quot;by Desk Notes, Inc&amp;quot; ; }'</description>
    </item>
    <item>
      <title>Leopard: launch MySql manually without headache</title>
      <link>http://www.desknotes.it/siten/DevBlog/Entries/2009/3/22_Leopard%3A_launch_MySql_manually_without_headache.html</link>
      <guid isPermaLink="false">e316a592-ee05-4080-8789-ca447e098cf2</guid>
      <pubDate>Sun, 22 Mar 2009 12:21:29 +0100</pubDate>
      <description>I was looking for an easy way for launching mysql deamon from command line.&lt;br/&gt;I’ve installed one of the latest build from &lt;a href=&quot;http://dev.mysql.com/downloads/mysql/5.1.html&quot;&gt;here&lt;/a&gt;.&lt;br/&gt;&lt;br/&gt;So, after having installed it (without Preference Pane support) create with your editor a plist file equal to this:&lt;br/&gt;&lt;br/&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&gt;&lt;br/&gt;&amp;lt;!DOCTYPE plist PUBLIC &amp;quot;-//Apple//DTD PLIST 1.0//EN&amp;quot; &amp;quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&amp;quot;&gt;&lt;br/&gt;&amp;lt;plist version=&amp;quot;1.0&amp;quot;&gt;&lt;br/&gt;&amp;lt;dict&gt;&lt;br/&gt;	&amp;lt;key&gt;KeepAlive&amp;lt;/key&gt;&lt;br/&gt;	&amp;lt;true/&gt;&lt;br/&gt;	&amp;lt;key&gt;Label&amp;lt;/key&gt;&lt;br/&gt;	&amp;lt;string&gt;com.mysql.mysqld&amp;lt;/string&gt;&lt;br/&gt;	&amp;lt;key&gt;Program&amp;lt;/key&gt;&lt;br/&gt;	&amp;lt;string&gt;/usr/local/mysql/bin/mysqld_safe&amp;lt;/string&gt;&lt;br/&gt;	&amp;lt;key&gt;RunAtLoad&amp;lt;/key&gt;&lt;br/&gt;	&amp;lt;true/&gt;&lt;br/&gt;	&amp;lt;key&gt;UserName&amp;lt;/key&gt;&lt;br/&gt;	&amp;lt;string&gt;mysql&amp;lt;/string&gt;&lt;br/&gt;	&amp;lt;key&gt;WorkingDirectory&amp;lt;/key&gt;&lt;br/&gt;	&amp;lt;string&gt;/usr/local/mysql&amp;lt;/string&gt;&lt;br/&gt;&amp;lt;/dict&gt;&lt;br/&gt;&amp;lt;/plist&gt;  &lt;br/&gt;&lt;br/&gt;and name it com.mysql.mysqld.plist.&lt;br/&gt;&lt;br/&gt;Put this file where you want (not inside /System/Library/LaunchDaemon system folder, doing this means that mysqld_safe daemon will start every time you boot the system, I don’t like this behavior) and then add this to lines in .bash_profile (see this &lt;a href=&quot;Entries/2009/3/9_Cappuccino_Tools.html&quot;&gt;post&lt;/a&gt; for info about this file):&lt;br/&gt;&lt;br/&gt;alias mysqlstop='sudo launchctl unload -w $HOME/Sites/com.mysql.mysqld.plist'&lt;br/&gt;alias mysqlstart='sudo launchctl load -w $HOME/Sites/com.mysql.mysqld.plist'  &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Now typing:&lt;br/&gt;mysqlstart =&gt; will start mysql daemon manually&lt;br/&gt;mysqlstop =&gt; will stop mysql daemon manually</description>
    </item>
    <item>
      <title>Apache2 FollowSymLinks</title>
      <link>http://www.desknotes.it/siten/DevBlog/Entries/2009/3/16_Apache2_FollowSymLinks.html</link>
      <guid isPermaLink="false">59ef8ee7-3d46-4e9c-8d66-6cce77124d67</guid>
      <pubDate>Mon, 16 Mar 2009 21:31:16 +0100</pubDate>
      <description>As we saw in this &lt;a href=&quot;Entries/2009/3/9_Cappuccino_Tools.html&quot;&gt;post&lt;/a&gt; steam tool creates a new empty and full working app providing inside the application path the symbolic links to the latest framework builded from git repository with the ant command.&lt;br/&gt;&lt;br/&gt;By default the Apache installation embedded in Leopard does not follow symbolic links, so your app will not work if you launch it inside Apache server, for example:&lt;br/&gt;&lt;br/&gt;http://localhost/cp/MyFirstApp&lt;br/&gt;&lt;br/&gt;You will get an error like:&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;!DOCTYPE HTML PUBLIC &amp;quot;-//IETF//DTD HTML 2.0//EN&amp;quot;&gt;  &amp;lt;html&gt;&amp;lt;head&gt;  &amp;lt;title&gt;403 Forbidden&amp;lt;/title&gt;  &amp;lt;/head&gt;&amp;lt;body&gt;  &amp;lt;h1&gt;Forbidden&amp;lt;/h1&gt;  &amp;lt;p&gt;You don't have permission to access /cp/MyFirstApp/Frameworks/  Objective-J/Objective-J.js  on this server.&amp;lt;/p&gt;  &amp;lt;/body&gt;&amp;lt;/html&gt; &lt;br/&gt;&lt;br/&gt;To solve the problem you need to add the FollowSymLinks inside the yourname.conf file you find inside /private/etc/apache2/users/ path.&lt;br/&gt;&lt;br/&gt;</description>
    </item>
    <item>
      <title>TextMate head comment shortcut</title>
      <link>http://www.desknotes.it/siten/DevBlog/Entries/2009/3/16_TextMate_head_comment_shortcut.html</link>
      <guid isPermaLink="false">f3e32654-74d5-4509-971d-efd32ac0b753</guid>
      <pubDate>Mon, 16 Mar 2009 21:04:16 +0100</pubDate>
      <description>If you like the header comment in top of your source files, in TextMate put the caret at the beginning of the file and type:&lt;br/&gt;&lt;br/&gt;head + TAB&lt;br/&gt;&lt;br/&gt;It will fill the lines with the data you provided inside the Shell Variables preference tab.&lt;br/&gt;&lt;br/&gt;</description>
    </item>
    <item>
      <title>Cappuccino Tools</title>
      <link>http://www.desknotes.it/siten/DevBlog/Entries/2009/3/9_Cappuccino_Tools.html</link>
      <guid isPermaLink="false">d6464746-5047-4076-9ad6-d43a2ffae162</guid>
      <pubDate>Mon, 9 Mar 2009 20:03:41 +0100</pubDate>
      <description>Let’s install git from the link provided in the &lt;a href=&quot;Entries/2009/3/8_Links_and_tools_we_need.html&quot;&gt;previous post&lt;/a&gt;. Then, after having choosed a right place where to put all our Cappuccino stuff, we launch this command from Terminal:&lt;br/&gt;&lt;br/&gt;git clone git://github.com/280north/cappuccino.git cappuccino&lt;br/&gt;&lt;br/&gt;It will get the latest source version from the repository server.&lt;br/&gt;&lt;br/&gt;On the left you can see the content of the files retrieved by git command.&lt;br/&gt;&lt;br/&gt;Now we need to install command line tools first, to do this go in Terminal, reach the Tools folder and type:&lt;br/&gt;&lt;br/&gt;sudo Install/install-tools &lt;br/&gt;&lt;br/&gt;The procedure it is not finished yet, in fact it tells us to set some environment variables before starting using all that stuff.&lt;br/&gt;&lt;br/&gt;If you have TextMate type (you can use any other text editor):&lt;br/&gt;&lt;br/&gt;mate $HOME/.bash_profile&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;This one is my current .bash_profile file, as you can see it contains all the variables needed by cappuccino tools. You can use any path you want. This file is loaded every time you launch Terminal so you have the correct setting every time without rewriting all these lines.&lt;br/&gt;&lt;br/&gt;OK...the last thing is building the framework with the java ant tool. Go inside the path where you have downloaded cp from git (the same path where you find build.xml file)&lt;br/&gt;&lt;br/&gt;Type (remember to launch a random command before this with sudo to allow ant finish with success, it has a bug still not fixed):&lt;br/&gt;&lt;br/&gt;ant boostrap&lt;br/&gt;&lt;br/&gt;Great!!! Now we have all at the right place.&lt;br/&gt;&lt;br/&gt;To create a new empty Application simply type:&lt;br/&gt;&lt;br/&gt;steam create myfirstapp -l&lt;br/&gt;&lt;br/&gt;This command builds a good Hello World application based on the latest Cappuccino release (thanx to -l option).&lt;br/&gt;&lt;br/&gt;That’s all...next post we’ll see a simple example about using CPURLConnection class.&lt;br/&gt;&lt;br/&gt;</description>
    </item>
    <item>
      <title>Links and tools we need</title>
      <link>http://www.desknotes.it/siten/DevBlog/Entries/2009/3/8_Links_and_tools_we_need.html</link>
      <guid isPermaLink="false">03e33fb4-0586-4852-b059-ff28a3186dcb</guid>
      <pubDate>Sun, 8 Mar 2009 22:26:09 +0100</pubDate>
      <description>Here is the list of all the tools and links needed:&lt;br/&gt;&lt;br/&gt;	-	&lt;a href=&quot;http://github.com/280north&quot;&gt;github&lt;/a&gt;: cappuccino source repository. Here we can stay in touch with core developers and see the latest improvements and fixes.&lt;br/&gt;	-	&lt;a href=&quot;http://git.or.cz/index.html#download&quot;&gt;git&lt;/a&gt;: this is the command line tool to retrieve the cappuccino source from github server&lt;br/&gt;	-	&lt;a href=&quot;http://ant.apache.org/&quot;&gt;ant&lt;/a&gt;: Java compiler (you do not need it if using Mac OSX Leopard)&lt;br/&gt;	-	Cappuccino API and dev tools: you can download the Starter package to begin learning the idea...but I recommend to download the entire source from github because it contains many command line tools very useful to manage programming cycle.&lt;br/&gt;	-	a good editor: yes, it’s important that is good! For me good means lightweight and smart. There are many good editors around for Mac (TextMate, Coda...). If you are a command line lover “vi” if for you. I prefer to write lines without hurt myself, so my decision felt on &lt;a href=&quot;http://macromates.com/&quot;&gt;TextMate&lt;/a&gt; (a good compromise between lightweight and smart)&lt;br/&gt;	-	iTunes....YES! Find the word “cappuccino” and subscribe to podcast! It’s a must have!!! You’ll understand how to use cappuccino tools and API’s. This is a great starting &lt;a href=&quot;http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=303517455&quot;&gt;point&lt;/a&gt;!&lt;br/&gt;	-	ATLAS: it’s not available yet, but soon...take a look at &lt;a href=&quot;http://280atlas.com/&quot;&gt;http://280atlas.com&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;In the next post I’ll describe in short how to use the command tools and setting up the environment.&lt;br/&gt;&lt;br/&gt;See you!</description>
    </item>
    <item>
      <title>Starting the learning curve of Cappuccino</title>
      <link>http://www.desknotes.it/siten/DevBlog/Entries/2009/3/8_Photo_of_the_Day.html</link>
      <guid isPermaLink="false">860eef35-87b1-49e3-a8fa-035dc6e2d6cd</guid>
      <pubDate>Sun, 8 Mar 2009 21:33:02 +0100</pubDate>
      <description>It’s some months I’m following &lt;a href=&quot;http://cappuccino.org/&quot;&gt;this&lt;/a&gt; project, and from the first time I was so impressed on its power. I bet on this framework, so I decided to study it and try to do a simple web app.&lt;br/&gt;&lt;br/&gt;	★	I’m an Apple fan&lt;br/&gt;	★	I read some Cocoa technical guides&lt;br/&gt;	★	I think that the future of web is Desktop Caliber Applications (see &lt;a href=&quot;http://280slides.com/&quot;&gt;http://280slides.com&lt;/a&gt;)&lt;br/&gt;&lt;br/&gt;=&gt; maybe it’s time to study hard...and Cappuccino is a great tool...not simple for a C++ developer like me, I need to learn the language, but if a day I will know Objective-J maybe it will be easier building Cocoa apps in the future if I need them.</description>
    </item>
  </channel>
</rss>
