<?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>Rusty Razor Blade &#187; tutorial</title>
	<atom:link href="http://www.rustyrazorblade.com/category/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rustyrazorblade.com</link>
	<description>Tech Thoughts, Mostly on LAMP - by Jon Haddad</description>
	<lastBuildDate>Fri, 13 Aug 2010 23:33:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>External Libraries in XCode</title>
		<link>http://www.rustyrazorblade.com/2008/02/external-libraries-in-xcode/</link>
		<comments>http://www.rustyrazorblade.com/2008/02/external-libraries-in-xcode/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 00:44:48 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[c++]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://www.rustyrazorblade.com/2008/02/06/external-libraries-in-xcode/</guid>
		<description><![CDATA[I need to compile something and use the MySQL C++ library.  I have mysql and mysql++ already compiled, I won&#8217;t go over how to do that now.
I added the following code to the top of my source:

#include &#60;mysql++.h&#62;

I got an error 
/Users/jhaddad/dev/search_engine/main.cpp:4:21: error: mysql++.h: No such file or directory

Not cool.  
How to fix:
In [...]]]></description>
			<content:encoded><![CDATA[<p>I need to compile something and use the MySQL C++ library.  I have mysql and mysql++ already compiled, I won&#8217;t go over how to do that now.</p>
<p>I added the following code to the top of my source:</p>
<p><code><br />
#include &lt;mysql++.h&gt;<br />
</code></p>
<p>I got an error </p>
<blockquote><p>/Users/jhaddad/dev/search_engine/main.cpp:4:21: error: mysql++.h: No such file or directory
</p></blockquote>
<p>Not cool.  </p>
<p>How to fix:</p>
<p>In XCode, open up the project settings (under the project menu).  Click the build tab.  Go down to search paths, and you can change your Header search paths to the correct locations where you installed whatever you&#8217;re looking for.  In this case, mine was /usr/local/includes and /usr/local/mysql/</p>
<p>Next time you try to recompile, you&#8217;ll get a different error, this time it should be during Linking.  Might look something like the below.</p>
<blockquote><p>  &#8220;mysqlpp::Query::store(mysqlpp::SQLQueryParms&#038;)&#8221;, referenced from:
</p></blockquote>
<p>Right click on your project in the left hand column (file listing), click &#8220;Add existing files&#8221;, then go to the prebuilt library (for me it was in /usr/local/lib), and add the file.  You don&#8217;t have to copy it into the directory, you can just add it and it should work.  Recompile and enjoy.</p>
<p>Edit: /usr/local/lib won&#8217;t be initially visible.  Type command-shift-g and it&#8217;ll bring up a text field you can type a path into to go directly to a directory.<br />
<img src="http://www.rustyrazorblade.com/wp-content/uploads/2008/02/xcode_header.png" alt="xcode_header" title="xcode_header" width="600" height="477" class="alignnone size-full wp-image-836" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rustyrazorblade.com/2008/02/external-libraries-in-xcode/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to use CURL to Hit a Web Api Using HTTP Basic Authentication</title>
		<link>http://www.rustyrazorblade.com/2007/05/how-to-use-curl-to-hit-a-web-api-using-http-basic-authentication/</link>
		<comments>http://www.rustyrazorblade.com/2007/05/how-to-use-curl-to-hit-a-web-api-using-http-basic-authentication/#comments</comments>
		<pubDate>Wed, 30 May 2007 20:20:45 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2007/05/30/how-to-use-curl-to-hit-a-web-api-using-http-basic-authentication/</guid>
		<description><![CDATA[Curl is a fantastic application.
The most basic use of curl is very straightforward, just put in a web site&#8217;s url:
curl http://twitter.com
If you copy and paste the above code, you&#8217;ll get the HTML output of twitter&#8217;s home page.
In order to demo this, I created a twitter account.  You can sign up for one on your [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://curl.haxx.se/">Curl</a> is a fantastic application.</p>
<p>The most basic use of curl is very straightforward, just put in a web site&#8217;s url:</p>
<p><code>curl http://twitter.com</code></p>
<p>If you copy and paste the above code, you&#8217;ll get the HTML output of twitter&#8217;s home page.</p>
<p>In order to demo this, I created a <a href="http://twitter.com/">twitter</a> account.  You can sign up for one on your own.</p>
<p>Now, to hit their api and update your status, they require you use HTTP Basic Authentication.  No sweat, we can use the -u flag for that.  The request must be sent as a post, so you must use the -d flag (data).</p>
<p><code>curl -u username:password' -d "status=i%20am%20human" http://twitter.com/statuses/update.json</code></p>
<p>Substitute your username and password in the appropriate place.</p>
<p>There you have it.  The .json at the end of the url indicates what format you want your results returned in.  Twitter also supports XML, RSS, and ATOM.  </p>
<p>I&#8217;ll be posting a follow up on how to perform curl POST requests using PHP in the next few days.  </p>
<p>The <a href="http://groups.google.com/group/twitter-development-talk/web/api-documentation"> twitter documentation</a> is very well written, check it out for more examples and other calls.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rustyrazorblade.com/2007/05/how-to-use-curl-to-hit-a-web-api-using-http-basic-authentication/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
