<?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>Connecting the dots... &#187; OSX</title>
	<atom:link href="http://blog.rajatpandit.com/tag/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rajatpandit.com</link>
	<description>Thoughts on Web Development, Infrastructure and Application Scalability</description>
	<lastBuildDate>Thu, 29 Dec 2011 13:21:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Fixing backspace in screen in terminal on OSX</title>
		<link>http://blog.rajatpandit.com/2010/06/17/fixing-backspace-in-screen-in-terminal-on-osx/</link>
		<comments>http://blog.rajatpandit.com/2010/06/17/fixing-backspace-in-screen-in-terminal-on-osx/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 20:02:20 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=519</guid>
		<description><![CDATA[Screen is awesome, I am surprised I never bothered to learn about it earlier. It all stemmed from the fact that I was working on a pretty low powered VM...]]></description>
			<content:encoded><![CDATA[<p>Screen is awesome, I am surprised I never bothered to learn about it earlier. It all stemmed from the fact that I was working on a pretty low powered VM and couldn&#8217;t afford to open multiple xterms on it. Later when I started SSH&#8217;ing into it the screen utility came in pretty handy, however when you are on OSX and ssh into a remote box and use screen, when you hit backspace, it doesn&#8217;t instead gets the screen to give you a &#8216;wuff &#8212; wuff&#8217; and I am not kidding, that&#8217;s the default message.<br />
The fix is simple, run this on the console, close and restart, sorted.</p>
<pre class="brush: bash; title: ; notranslate">
defaults write com.apple.Terminal TermCapString xterm
</pre>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2010/06/17/fixing-backspace-in-screen-in-terminal-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling HTTPS support in curl installed through MacPorts on OSX</title>
		<link>http://blog.rajatpandit.com/2009/03/31/enabling-https-support-in-curl-installed-through-macports-on-osx/</link>
		<comments>http://blog.rajatpandit.com/2009/03/31/enabling-https-support-in-curl-installed-through-macports-on-osx/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 22:27:40 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Clean]]></category>
		<category><![CDATA[dependencies]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[variants]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=250</guid>
		<description><![CDATA[While doing development just noticed that if you have installed php with curl support using macports it does&#8217;nt install ssl support in curl by default which is quite frustrating. Especially...]]></description>
			<content:encoded><![CDATA[<p>While doing development just noticed that if you have installed php with curl support using macports it does&#8217;nt install ssl support in curl by default which is quite frustrating. Especially I just spent 30mins of my life trying to debugging what had gone wrong.</p>
<p>This is what you would get if you have a similar problem:</p>
<pre class="brush: bash; title: ; notranslate">
% curl -k https://www.yahoo.com
curl: (1) Protocol https not supported or disabled in libcurl
</pre>
<p>The problem is that you would usually have something that depends on curl so you cant install the version of curl with its variant straightaway, so you will first need to remove the dependent first, then remove curl and clean up the install and then finally install curl with its ssl variant followed by its dependents.</p>
<p>The steps are something like this:</p>
<pre class="brush: bash; title: ; notranslate">
busybox:web rp$ sudo port uninstall curl @7.19.3_0 curl @7.19.3_0+ssl
---&gt;  Unable to uninstall curl 7.19.3_0, the following ports depend on it:
---&gt;  	php5
Error: port uninstall failed: Please uninstall the ports that depend on curl first.
busybox:web rp$ sudo port uninstall curl @7.19.3_0 curl @7.19.3_0+ssl
busybox:web rp$ sudo port uninstall php5
---&gt;  Deactivating php5 @5.2.9_0+apache2+macosx+mysql5+pear+sqlite
---&gt;  Uninstalling php5 @5.2.9_0+apache2+macosx+mysql5+pear+sqlite
busybox:web rp$ sudo port uninstall curl @7.19.3_0 curl @7.19.3_0+ssl
---&gt;  Deactivating curl @7.19.3_0
---&gt;  Uninstalling curl @7.19.3_0
---&gt;  Uninstalling curl @7.19.3_0+ssl
busybox:web rp$ sudo port install php5 @5.2.9_0+apache2+macosx+mysql5+pear+sqlite
Error: Requested variants do not match original selection.
Please perform 'port clean curl' or specify the force option.
Error: The following dependencies failed to build: curl
Error: Status 1 encountered during processing.
busybox:web rp$ sudo port clean curl
---&gt;  Cleaning curl
busybox:web rp$ sudo port clean php5
---&gt;  Cleaning php5
busybox:web rp$ sudo port clean php5
---&gt;  Cleaning php5
busybox:web rp$ sudo port clean curl
---&gt;  Cleaning curl
busybox:web rp$ sudo port clean php5
busybox:web rp$ sudo port install curl +ssl
---&gt;  Fetching curl
---&gt;  Verifying checksum(s) for curl
---&gt;  Extracting curl
---&gt;  Configuring curl
---&gt;  Building curl
---&gt;  Staging curl into destroot
---&gt;  Installing curl @7.19.3_0+ssl
---&gt;  Activating curl @7.19.3_0+ssl
---&gt;  Cleaning curl
busybox:web rp$ sudo port install php5 @5.2.9_0+apache2+macosx+mysql5+pear+sqlite
---&gt;  Fetching php5
---&gt;  Verifying checksum(s) for php5
---&gt;  Extracting php5
---&gt;  Applying patches to php5
---&gt;  Configuring php5
---&gt;  Building php5
---&gt;  Staging php5 into destroot
Warning: php5 requests to install files outside the common directory structure!
---&gt;  Installing php5 @5.2.9_0+apache2+macosx+mysql5+pear+sqlite

If this is your first install, you might want
cd /opt/local/apache2/modules
/opt/local/apache2/bin/apxs -a -e -n &quot;php5&quot; libphp5.so

* copy  /opt/local/etc/php.ini-dist to  /opt/local/etc/php.ini
---&gt;  Activating php5 @5.2.9_0+apache2+macosx+mysql5+pear+sqlite
---&gt;  Cleaning php5
</pre>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2009/03/31/enabling-https-support-in-curl-installed-through-macports-on-osx/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Cisco VPN on OSX</title>
		<link>http://blog.rajatpandit.com/2008/03/04/cisco-vpn-on-osx/</link>
		<comments>http://blog.rajatpandit.com/2008/03/04/cisco-vpn-on-osx/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 21:55:28 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[sleep]]></category>
		<category><![CDATA[vpn client]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/2008/03/04/cisco-vpn-on-osx/</guid>
		<description><![CDATA[This has happened to me far many times, so thought I might as well document it somewhere instead of having to search for the solution. So here&#8217;s the problem, you...]]></description>
			<content:encoded><![CDATA[<p>This has happened to me far many times, so thought I might as well document it somewhere instead of having to search for the solution. So here&#8217;s the problem, you are on VPN and then you put the laptop to sleep, you wake it up later and try to make it connect to the VPN again and it complains there are no interfaces available to hookup to.<br />
The exact error message is this:</p>
<pre>
Could not attach to driver. Is kernel module loaded?
The application was unable to communicate with the VPN sub-system.</pre>
<p>The solution to this is the following set of commands:</p>
<pre class="brush: bash; title: ; notranslate">
# Shut down the FireWire network interface
sudo ifconfig fw0 down
# Restart the cisco vpn subsystem and verify that it works
sudo /System/Library/StartupItems/CiscoVPN/CiscoVPN restart &amp;&amp;  \
sudo /usr/local/bin/vpnclient autoinit
</pre>
<p>and then fire your vpnclient again, this time it works fine and asks you for your username and password.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2008/03/04/cisco-vpn-on-osx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

