<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>acloudtree</title>
	
	<link>http://www.acloudtree.com</link>
	<description>Programming, Computers, Writing, Economics, and Life</description>
	<lastBuildDate>Tue, 07 Feb 2012 00:03:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/acloudtree" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="acloudtree" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>You’re smart, you’re special, and you’re beautiful</title>
		<link>http://www.acloudtree.com/youre-smart-youre-special-and-youre-beautiful/</link>
		<comments>http://www.acloudtree.com/youre-smart-youre-special-and-youre-beautiful/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 23:37:32 +0000</pubDate>
		<dc:creator>jared.folkins</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[love]]></category>

		<guid isPermaLink="false">http://www.acloudtree.com/?p=1188</guid>
		<description><![CDATA[About six months ago we moved my daughter into a &#8220;big girl&#8221; bed. And about then, when it would get late and time for &#8220;nigh nigh&#8221;, I started a ritual with her. She would lay down in her bed, we would say some prayers, and then I would say. &#8220;Just remember, you&#8217;re smart, you&#8217;re special, [...]]]></description>
			<content:encoded><![CDATA[<p>About six months ago we moved my daughter into a &#8220;big girl&#8221; bed. And about then, when it would get late and time for &#8220;nigh nigh&#8221;, I started a ritual with her.</p>
<p>She would lay down in her bed, we would say some prayers, and then I would say.</p>
<p>&#8220;Just remember, you&#8217;re smart, you&#8217;re special, and you&#8217;re beautiful.&#8221;</p>
<p>And then I would list everyone in her close family that loves her.</p>
<p>&#8220;Your Daddy loves you<br />
Your Mommy loves you<br />
Your Jude brother loves you<br />
Papa and Grandma Folkins love you<br />
Papa and Grandma Bogen love you<br />
Uncle Sean loves you<br />
Auntie Anna loves you<br />
And cousin Elena loves you&#8221;</p>
<p>I never really had a plan, I just remember thinking that my daughter needs to know that she is amazing. And she needs to remember all the people who will come running if she calls.</p>
<p>So today I went home for lunch. And it was right around her nap time. Without thinking, I volunteered to put her to bed.</p>
<p>She laid down, and then I said</p>
<p>&#8220;Now just remember, you&#8217;re-&#8221;</p>
<p>But before I could finish, and still with a binky partially in her mouth, she said</p>
<p>&#8220;-yur smarr, yur spesh-al, and yur beu-i-ful&#8221;</p>
<p>Then she gave me a big hug and smiled.</p>
<p>I melted.</p>
<p>You could wreck my car, steal my laptop, or even lay me off, but you would not be able to ruin my day today. My daughter knows she is valuable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.acloudtree.com/youre-smart-youre-special-and-youre-beautiful/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Developing a Chrome Extension and the “Origin is not allowed by Access-Control-Allow-Origin Error”</title>
		<link>http://www.acloudtree.com/developing-a-chrome-extension-and-the-origin-is-not-allowed-by-access-control-allow-origin-error/</link>
		<comments>http://www.acloudtree.com/developing-a-chrome-extension-and-the-origin-is-not-allowed-by-access-control-allow-origin-error/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 15:30:38 +0000</pubDate>
		<dc:creator>jared.folkins</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.acloudtree.com/?p=1180</guid>
		<description><![CDATA[I have been messing around building a Chrome extension and am fetching some resources using good ol&#8217; XMLHttpRequest(). At least I was trying to do so and instead was getting an epic fail. I am using the google developer debugger to test (tutorial) and saw the following error in the console. Example: Origin &#91;YOUR_RESOURCE_NAME&#93; is [...]]]></description>
			<content:encoded><![CDATA[<p>I have been messing around building a Chrome extension and am fetching some resources using good ol&#8217; XMLHttpRequest(). At least I was trying to do so and instead was getting an epic fail.</p>
<p>I am using the google developer debugger to test (<a title="google tutorial for developers tools" href="http://code.google.com/chrome/extensions/tut_debugging.html" target="_blank">tutorial</a>) and saw the following error in the console.</p>
<p>Example:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Origin <span style="color: #7a0874; font-weight: bold;">&#91;</span>YOUR_RESOURCE_NAME<span style="color: #7a0874; font-weight: bold;">&#93;</span> is not allowed by Access-Control-Allow-Origin Error.</pre></div></div>

<p>I thought I had configured my manifest.json file with the correct permissions.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">...<span style="color: #660066;">snip</span>...
  <span style="color: #3366CC;">&quot;permissions&quot;</span> <span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span>
    <span style="color: #3366CC;">&quot;https://*.domain.com&quot;</span>
  <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
...<span style="color: #660066;">snip</span>...</pre></div></div>

<p>Turns out I was simply missing the trailing slash /.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">...<span style="color: #660066;">snip</span>...
  <span style="color: #3366CC;">&quot;permissions&quot;</span> <span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span>
    <span style="color: #3366CC;">&quot;https://*.domain.com/&quot;</span>
  <span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span>
...<span style="color: #660066;">snip</span>...</pre></div></div>

<p>Hope that helps someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.acloudtree.com/developing-a-chrome-extension-and-the-origin-is-not-allowed-by-access-control-allow-origin-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Install FreeTDS and UnixODBC On OSX Using Homebrew For Use With Ruby, Php, And Perl</title>
		<link>http://www.acloudtree.com/how-to-install-freetds-and-unixodbc-on-osx-using-homebrew-for-use-with-ruby-php-and-perl/</link>
		<comments>http://www.acloudtree.com/how-to-install-freetds-and-unixodbc-on-osx-using-homebrew-for-use-with-ruby-php-and-perl/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 17:44:52 +0000</pubDate>
		<dc:creator>jared.folkins</dc:creator>
				<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.acloudtree.com/?p=1149</guid>
		<description><![CDATA[This little project started out as a basic script to connect to a Microsoft SqlServer and get data. It was a nightmare as I probably spent 15 hours learning about and troubleshooting both FreeTDS and UnixODBC. My pain is now your gain. NOTICE: I have homebrew configured to install all packages into my local directory [...]]]></description>
			<content:encoded><![CDATA[<p>This little project started out as a basic script to connect to a Microsoft SqlServer and get data. It was a nightmare as I probably spent 15 hours learning about and troubleshooting both FreeTDS and UnixODBC. My pain is now your gain.</p>
<p>NOTICE: I have homebrew configured to install all packages into my local directory /Users/jared/.homebrew/</p>
<p><strong>1) Install UnixODBC</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>jared<span style="color: #000000; font-weight: bold;">@</span>localhost<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ brew <span style="color: #c20cb9; font-weight: bold;">install</span> unixodbc
==<span style="color: #000000; font-weight: bold;">&gt;</span> Downloading http:<span style="color: #000000; font-weight: bold;">//</span>www.unixodbc.org<span style="color: #000000; font-weight: bold;">/</span>unixODBC-2.3.0.tar.gz
File already downloaded <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Caches<span style="color: #000000; font-weight: bold;">/</span>Homebrew
==<span style="color: #000000; font-weight: bold;">&gt;</span> .<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--disable-debug</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>Cellar<span style="color: #000000; font-weight: bold;">/</span>unixodbc<span style="color: #000000; font-weight: bold;">/</span>2.3.0 <span style="color: #660033;">--enable-gui</span>=no
==<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>Cellar<span style="color: #000000; font-weight: bold;">/</span>unixodbc<span style="color: #000000; font-weight: bold;">/</span>2.3.0: <span style="color: #000000;">24</span> files, 932K, built <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">22</span> seconds
<span style="color: #7a0874; font-weight: bold;">&#91;</span>jared<span style="color: #000000; font-weight: bold;">@</span>localhost<span style="color: #7a0874; font-weight: bold;">&#93;</span>$</pre></div></div>

<p><strong>2) Edit the FreeTDS formula And install</strong></p>
<p>What we are doing is changing the default tds version, enabling the msdblib, and pointing out where unixodbc installed.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'formula'</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">class</span> Freetds <span style="color:#006600; font-weight:bold;">&gt;</span> Formula
url <span style="color:#996600;">'http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-0.91.tar.gz'</span>
homepage <span style="color:#996600;">'http://www.freetds.org/'</span>
md5 <span style="color:#996600;">'b14db5823980a32f0643d1a84d3ec3ad'</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">def</span> install
<span style="color:#CC0066; font-weight:bold;">system</span> <span style="color:#996600;">&quot;./configure&quot;</span>,·
<span style="color:#996600;">&quot;--prefix=#{prefix}&quot;</span>,·
<span style="color:#996600;">&quot;--with-tdsver=7.0&quot;</span>,·
<span style="color:#996600;">&quot;--enable-msdblib&quot;</span>,
<span style="color:#996600;">&quot;--with-unixodbc=/Users/USERNAME/.homebrew/Cellar/unixodbc/2.3.0&quot;</span>,
<span style="color:#996600;">&quot;--mandir=#{man}&quot;</span>
<span style="color:#CC0066; font-weight:bold;">system</span> <span style="color:#996600;">'make'</span>
ENV.<span style="color:#9900CC;">j1</span> <span style="color:#008000; font-style:italic;"># Or fails to install on multi-core machines</span>
<span style="color:#CC0066; font-weight:bold;">system</span> <span style="color:#996600;">'make install'</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>jared<span style="color: #000000; font-weight: bold;">@</span>localhost<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ brew <span style="color: #c20cb9; font-weight: bold;">install</span> freetds</pre></div></div>

<p><strong>3) Start a new terminal session to make sure all your paths update</strong></p>
<p><strong>4) Confirm that you can connect to the server</strong></p>
<p>We need to make sure that you can connect to the sqlserver and that the port is open and available to you.</p>
<p>To do this we use telnet. If you see the following, success! The port is open on the server.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>jared<span style="color: #000000; font-weight: bold;">@</span>localhost<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ telnet server.example.com <span style="color: #000000;">1433</span>
Trying 192.168.1.101...
Connected to server.example.com.
Escape character is <span style="color: #ff0000;">'^]'</span>.</pre></div></div>

<p>If you see the following. You failed. Check the Sqlserver configuration, firewalls, or network configuration.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>jared<span style="color: #000000; font-weight: bold;">@</span>localhost<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ telnet server.example.com <span style="color: #000000;">1433</span>
Trying 192.168.1.101...
telnet: connect to address 192.168.1.101: Connection refused
telnet: Unable to connect to remote host</pre></div></div>

<p>Note: Press the ctrl + ] keys to break to a prompt and then type exit.</p>
<p><strong>5) Tsql</strong></p>
<p>FreeTDS comes with a couple cli applications. One of them is tsql. It isn&#8217;t great, but I use it test and see if at least FreeTDS is working correctly. After you install FreeTDS using homebrew try and connect to the host using the following command.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>jared<span style="color: #000000; font-weight: bold;">@</span>localhost<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ tsql <span style="color: #660033;">-H</span> server.example.com <span style="color: #660033;">-U</span> USERNAME <span style="color: #660033;">-P</span> PASSWORD <span style="color: #660033;">-v</span>
&nbsp;
locale is <span style="color: #ff0000;">&quot;en_US.UTF-8&quot;</span>
locale charset is <span style="color: #ff0000;">&quot;UTF-8&quot;</span>
using default charset <span style="color: #ff0000;">&quot;UTF-8&quot;</span>
<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">exit</span></pre></div></div>

<p>If you see a prompt, you haz awesome!</p>
<p><strong>6) Sym link the FreeTDS and UnixODBC conf files</strong></p>
<p>I create 3 sym links to the following files just for simplicity.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>Cellar<span style="color: #000000; font-weight: bold;">/</span>freetds<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0.91</span><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>freetds.conf ~<span style="color: #000000; font-weight: bold;">/</span>.freetds.conf
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>Cellar<span style="color: #000000; font-weight: bold;">/</span>unixodbc<span style="color: #000000; font-weight: bold;">/</span>2.3.0<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>odbc.ini ~<span style="color: #000000; font-weight: bold;">/</span>.odbc.ini
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>Cellar<span style="color: #000000; font-weight: bold;">/</span>unixodbc<span style="color: #000000; font-weight: bold;">/</span>2.3.0<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>odbcinst.ini ~<span style="color: #000000; font-weight: bold;">/</span>.odbcinst.ini</pre></div></div>

<p><strong>7) edit the .freetds.conf and add the following</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>example<span style="color: #7a0874; font-weight: bold;">&#93;</span>
host = server.example.com
port = <span style="color: #000000;">1433</span>
tds version = <span style="color: #000000;">7.0</span></pre></div></div>

<p><strong>8 ) edit the odbcinst.ini and add the following</strong></p>
<p>You are telling unixodbc where your FreeTDS drivers are located using this configuration file.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>FreeTDS<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Description = FreeTDS
Driver = <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libtdsodbc.so
Setup = <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libtdsodbc.so
UsageCount = <span style="color: #000000;">1</span></pre></div></div>

<p><strong>9) edit the .odbc.ini and add the following</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>myexample<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Driver = FreeTDS <span style="color: #000000; font-weight: bold;">//</span> we just <span style="color: #000000; font-weight: bold;">set</span> this up a second ago
Description = MyExample
ServerName = example <span style="color: #000000; font-weight: bold;">//</span> this is the name of the configuration we used <span style="color: #000000; font-weight: bold;">in</span> the .freetds.conf <span style="color: #c20cb9; font-weight: bold;">file</span>
UID = USERNAME
PWD = PASSWORD</pre></div></div>

<p><strong>10) isql should work</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>jared<span style="color: #000000; font-weight: bold;">@</span>localhost<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ isql sqlinternal USERNAME PASSWORD
+---------------------------------------+
<span style="color: #000000; font-weight: bold;">|</span> Connected<span style="color: #000000; font-weight: bold;">!</span>
<span style="color: #000000; font-weight: bold;">|</span> sql-statement
<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #7a0874; font-weight: bold;">help</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>tablename<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">|</span> quit
+---------------------------------------+
SQL<span style="color: #000000; font-weight: bold;">&gt;</span>quit</pre></div></div>

<p><strong>11) Osql Error</strong></p>
<p>If you try osql, it throws an error.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>jared<span style="color: #000000; font-weight: bold;">@</span>localhost<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ osql <span style="color: #660033;">-S</span> myexample <span style="color: #660033;">-U</span> USERNAME <span style="color: #660033;">-P</span> PASSWORD
checking shared odbc libraries linked to isql <span style="color: #000000; font-weight: bold;">for</span> default directories...
<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>osql: line <span style="color: #000000;">53</span>: <span style="color: #c20cb9; font-weight: bold;">ldd</span>: <span style="color: #7a0874; font-weight: bold;">command</span> not found
<span style="color: #c20cb9; font-weight: bold;">strings</span>: can<span style="color: #ff0000;">'t open file: (No such file or directory)
osql: problem: no potential directory strings in &quot;/Users/jared/.homebrew/bin/isql&quot;
osql: advice: use &quot;osql -I DIR&quot; where DIR unixODBC\'</span>s <span style="color: #c20cb9; font-weight: bold;">install</span> prefix e.g. <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span>
isql <span style="color: #c20cb9; font-weight: bold;">strings</span> are:
checking odbc.ini files
reading <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.odbc.ini
<span style="color: #7a0874; font-weight: bold;">&#91;</span>myexample<span style="color: #7a0874; font-weight: bold;">&#93;</span> found <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.odbc.ini
found this section:
<span style="color: #7a0874; font-weight: bold;">&#91;</span>myexample<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Driver = FreeTDS
Description = MyExample
Servername = example
UID = USERNAME
PWD = PASSWORD
&nbsp;
looking <span style="color: #000000; font-weight: bold;">for</span> driver <span style="color: #000000; font-weight: bold;">for</span> DSN <span style="color: #7a0874; font-weight: bold;">&#91;</span>myexample<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.odbc.ini
found driver line: <span style="color: #ff0000;">&quot; Driver = FreeTDS&quot;</span>
driver <span style="color: #ff0000;">&quot;FreeTDS&quot;</span> found <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>myexample<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">in</span> .odbc.ini
found driver named <span style="color: #ff0000;">&quot;FreeTDS&quot;</span>
<span style="color: #ff0000;">&quot;FreeTDS&quot;</span> is not an executable <span style="color: #c20cb9; font-weight: bold;">file</span>
looking <span style="color: #000000; font-weight: bold;">for</span> entry named <span style="color: #7a0874; font-weight: bold;">&#91;</span>FreeTDS<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>odbcinst.ini
found driver line: <span style="color: #ff0000;">&quot; Driver = /Users/jared/.homebrew/lib/libtdsodbc.so&quot;</span>
found driver <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libtdsodbc.so <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>FreeTDS<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">in</span> odbcinst.ini
<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libtdsodbc.so is not an executable <span style="color: #c20cb9; font-weight: bold;">file</span>
osql: error: no driver found <span style="color: #000000; font-weight: bold;">for</span> sqlinternal
<span style="color: #7a0874; font-weight: bold;">&#91;</span>jared<span style="color: #000000; font-weight: bold;">@</span>localhost<span style="color: #7a0874; font-weight: bold;">&#93;</span>$</pre></div></div>

<p>If you go through the error you will find that a certain driver is not executable. You just need to chmod the file.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>jared<span style="color: #000000; font-weight: bold;">@</span>localhost<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">554</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>Cellar<span style="color: #000000; font-weight: bold;">/</span>freetds<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0.91</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libtdsodbc.0.so</pre></div></div>

<p>Now run it again.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>jared<span style="color: #000000; font-weight: bold;">@</span>localhost<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ osql <span style="color: #660033;">-S</span> myexample <span style="color: #660033;">-U</span> USERNAME <span style="color: #660033;">-P</span> PASSWORD
checking shared odbc libraries linked to isql <span style="color: #000000; font-weight: bold;">for</span> default directories...
<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>osql: line <span style="color: #000000;">53</span>: <span style="color: #c20cb9; font-weight: bold;">ldd</span>: <span style="color: #7a0874; font-weight: bold;">command</span> not found
<span style="color: #c20cb9; font-weight: bold;">strings</span>: can<span style="color: #ff0000;">'t open file: (No such file or directory)
osql: problem: no potential directory strings in &quot;/Users/jared/.homebrew/bin/isql&quot;
osql: advice: use &quot;osql -I DIR&quot; where DIR unixODBC\'</span>s <span style="color: #c20cb9; font-weight: bold;">install</span> prefix e.g. <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span>
isql <span style="color: #c20cb9; font-weight: bold;">strings</span> are:
checking odbc.ini files
reading <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.odbc.ini
<span style="color: #7a0874; font-weight: bold;">&#91;</span>myexample<span style="color: #7a0874; font-weight: bold;">&#93;</span> found <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.odbc.ini
found this section:
<span style="color: #7a0874; font-weight: bold;">&#91;</span>myexample<span style="color: #7a0874; font-weight: bold;">&#93;</span>
Driver = FreeTDS
Description = myexamples
Servername = myexample
UID = USERNAME
PWD = PASSWORD
&nbsp;
looking <span style="color: #000000; font-weight: bold;">for</span> driver <span style="color: #000000; font-weight: bold;">for</span> DSN <span style="color: #7a0874; font-weight: bold;">&#91;</span>myexample<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.odbc.ini
found driver line: <span style="color: #ff0000;">&quot; Driver = FreeTDS&quot;</span>
driver <span style="color: #ff0000;">&quot;FreeTDS&quot;</span> found <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>myexample<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">in</span> .odbc.ini
found driver named <span style="color: #ff0000;">&quot;FreeTDS&quot;</span>
<span style="color: #ff0000;">&quot;FreeTDS&quot;</span> is not an executable <span style="color: #c20cb9; font-weight: bold;">file</span>
looking <span style="color: #000000; font-weight: bold;">for</span> entry named <span style="color: #7a0874; font-weight: bold;">&#91;</span>FreeTDS<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>odbcinst.ini
found driver line: <span style="color: #ff0000;">&quot; Driver = /Users/jared/.homebrew/lib/libtdsodbc.so&quot;</span>
found driver <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libtdsodbc.so <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>FreeTDS<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">in</span> odbcinst.ini
<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libtdsodbc.so is an executable <span style="color: #c20cb9; font-weight: bold;">file</span>
Using ODBC-Combined strategy
DSN <span style="color: #7a0874; font-weight: bold;">&#91;</span>myexample<span style="color: #7a0874; font-weight: bold;">&#93;</span> has servername <span style="color: #ff0000;">&quot;myexample&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>from <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.odbc.ini<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.freetds.conf is a readable <span style="color: #c20cb9; font-weight: bold;">file</span>
looking <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>myexample<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.freetds.conf
found this section:
<span style="color: #7a0874; font-weight: bold;">&#91;</span>myexample<span style="color: #7a0874; font-weight: bold;">&#93;</span>
host = myexample.bendcable.net
port = <span style="color: #000000;">1433</span>
tds version = <span style="color: #000000;">7.0</span>
&nbsp;
Configuration looks OK. Connection details:
&nbsp;
DSN: myexample
odbc.ini: <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.odbc.ini
Driver: <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>jared<span style="color: #000000; font-weight: bold;">/</span>.homebrew<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>libtdsodbc.so
Server <span style="color: #c20cb9; font-weight: bold;">hostname</span>: myexample.bendcable.net
Address: 192.168.12.103
&nbsp;
Attempting connection <span style="color: #c20cb9; font-weight: bold;">as</span> username ...
+ isql myexample USERNAME PASSWORD <span style="color: #660033;">-v</span>
+---------------------------------------+
<span style="color: #000000; font-weight: bold;">|</span> Connected<span style="color: #000000; font-weight: bold;">!</span>
<span style="color: #000000; font-weight: bold;">|</span> sql-statement
<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #7a0874; font-weight: bold;">help</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>tablename<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">|</span> quit
+---------------------------------------+
SQL<span style="color: #000000; font-weight: bold;">&gt;</span> quit</pre></div></div>

<p>SUCCESS!!!</p>
<p>Some other useful commands.</p>
<p>Useful commands</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">odbcinst <span style="color: #660033;">-j</span>
&nbsp;
odbcinst <span style="color: #660033;">-q</span> <span style="color: #660033;">-d</span>
&nbsp;
odbcinst <span style="color: #660033;">-q</span> <span style="color: #660033;">-s</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.acloudtree.com/how-to-install-freetds-and-unixodbc-on-osx-using-homebrew-for-use-with-ruby-php-and-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Be Cheap: Use Your Android Phone Without Cellular Service</title>
		<link>http://www.acloudtree.com/be-cheap-use-your-android-phone-without-cellular-service/</link>
		<comments>http://www.acloudtree.com/be-cheap-use-your-android-phone-without-cellular-service/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 18:38:02 +0000</pubDate>
		<dc:creator>jared.folkins</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[cheapskate]]></category>
		<category><![CDATA[EVO]]></category>
		<category><![CDATA[Sprint]]></category>

		<guid isPermaLink="false">http://www.acloudtree.com/?p=1128</guid>
		<description><![CDATA[THE STORY It&#8217;s that age old story. Boy meets android phone. Boy buys android phone. Boy&#8217;s new employer provides boy with a non-smart cell phone so boy sets out on a journey to uncover the mysteries of having a android device with no cellular service. THE DEVICE I&#8217;m using a Gen 1 HTC Evo 4G. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>THE STORY</strong></p>
<p>It&#8217;s that age old story. Boy meets android phone. Boy buys android phone. Boy&#8217;s new employer provides boy with a non-smart cell phone so boy sets out on a journey to uncover the mysteries of having a android device with no cellular service.</p>
<p><strong>THE DEVICE</strong></p>
<p>I&#8217;m using a Gen 1 HTC Evo 4G.</p>
<p><strong>THE ROOT</strong></p>
<p>I&#8217;m running <a href="http://download.cyanogenmod.com/?type=stable&amp;device=supersonic">Cyanogenmod 7.1</a></p>
<p><strong>THE COST</strong></p>
<p>Lets face it, at $80 bucks a month, a smart phone is not the cheapest luxury. My bi-annual cost for service was running me roughly $1920 ($2496 gross earned) dollars. After receiving a crack-berry from work. I (a) realized how much blackberry&#8217;s suck and (b) also knew I couldn&#8217;t justify the cost of keeping my android cellular service (sorry sprint).</p>
<p><strong>THE VOICE</strong></p>
<p>I&#8217;ve had my number for approximately 7 years. It was important for me to keep it. My problem was solved with the use of Google voice and the ability to <a href="http://support.google.com/voice/bin/answer.py?hl=en&amp;answer=1065667">port my mobile number</a>. For a one time $20 fee, I now have my old cell number attached to my google voice account.</p>
<p><strong>THE FORWARD</strong></p>
<p>I make my Google voice number forward to my work provided cell phone. So that should I get a call on my old number, I can still answer it.</p>
<p><strong>THE GROOVE</strong></p>
<p>And here is the secret sauce, <a href="https://market.android.com/details?id=com.gvoip&amp;hl=en">Groove IP</a>. This little android application allows me to make calls using my google voice number when connected to WiFi. It even uses the stock Android phone dialer so it feels just like a regular call. The quality carries the sound of &#8220;tin&#8221; a bit, but it&#8217;s more than usable.</p>
<p><strong>THE INTERNATIONAL</strong></p>
<p>Taking the device with me will also allow me to make free calls back to my friends and family in the US. That is a bonus.</p>
<p><strong>THE PLUGIN (honorable mention)</strong></p>
<p>While at work, I also use the <a href="https://chrome.google.com/webstore/detail/kcnhkahnjcbndmmehfkdnkjomaanaooo">Google Voice plugin</a> for Chrome so that I can send texts directly from my browser. This is actually pretty awesome as I don&#8217;t have to pick up my phone to text my wife back.</p>
<p><strong>THE CONCLUSION</strong></p>
<p>I&#8217;ve been using this setup for about a month now. I still can Facebook and Twitter. I still can play games. I still can read eBooks. I still can use it as a calendar. I can still use it as a flashlight. All these things and more, and it is working really well.</p>
<p>I realize that some may consider having a cell phone kind of cheating in this expiriement, but I think I could totally make this continue to function without the work provided phone. I would have to change my habits. Making sure to target locations to shop from with free WiFi and such.  But despite this inconvenience, I&#8217;d still see the value.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.acloudtree.com/be-cheap-use-your-android-phone-without-cellular-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

