<?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>mikwat code &#187; osx</title>
	<atom:link href="http://code.mikwat.com/archives/category/osx/feed" rel="self" type="application/rss+xml" />
	<link>http://code.mikwat.com</link>
	<description>A coder's daily explorations through PHP, Java, CSS, JavaScript, Linux, OS X, Apache, Tomcat, and everything else.</description>
	<lastBuildDate>Tue, 08 Mar 2011 19:23:33 +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>Monitoring MySQL Import Progress</title>
		<link>http://code.mikwat.com/archives/47</link>
		<comments>http://code.mikwat.com/archives/47#comments</comments>
		<pubDate>Tue, 08 Mar 2011 19:22:27 +0000</pubDate>
		<dc:creator>mikwat</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://code.mikwat.com/?p=47</guid>
		<description><![CDATA[When importing a large MySQL dump file, use pv to monitor the progress of data through a pipe: pv -petr dumpfile.sql &#124; mysql -uroot my_database This will give you a progress indicator such as: 0:00:05 [3.63MB/s] [===>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;] 0% ETA 0:09:41]]></description>
			<content:encoded><![CDATA[<p>When importing a large MySQL dump file, use pv to monitor the progress of data through a pipe:<br />
<code>pv -petr dumpfile.sql | mysql -uroot my_database</code></p>
<p>This will give you a progress indicator such as:<br />
<code>0:00:05 [3.63MB/s] [===>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]  0% ETA 0:09:41</code></p>
]]></content:encoded>
			<wfw:commentRss>http://code.mikwat.com/archives/47/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uninitialized constant MysqlCompat::MysqlRes</title>
		<link>http://code.mikwat.com/archives/37</link>
		<comments>http://code.mikwat.com/archives/37#comments</comments>
		<pubDate>Thu, 09 Dec 2010 17:12:29 +0000</pubDate>
		<dc:creator>mikwat</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://code.mikwat.com/?p=37</guid>
		<description><![CDATA[After getting the dreaded uninitialized constant MysqlCompat::MysqlRes error on OS X Snow Leopard, I finally found a solution. Error: $ rake db:migrate ... rake aborted! uninitialized constant MysqlCompat::MysqlRes Solution from http://techliberty.blogspot.com/: sudo gem uninstall mysql sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config]]></description>
			<content:encoded><![CDATA[<p>After getting the dreaded <code>uninitialized constant MysqlCompat::MysqlRes</code> error on OS X Snow Leopard, I finally found a solution.</p>
<p>Error:</p>
<pre>
$ rake db:migrate
...
rake aborted!
uninitialized constant MysqlCompat::MysqlRes
</pre>
<p>Solution from <a href="http://techliberty.blogspot.com/" onclick="pageTracker._trackPageview('/outgoing/techliberty.blogspot.com/?referer=');">http://techliberty.blogspot.com/</a>:</p>
<pre>
sudo gem uninstall mysql
sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
</pre>
]]></content:encoded>
			<wfw:commentRss>http://code.mikwat.com/archives/37/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH Tunnel in OS X</title>
		<link>http://code.mikwat.com/archives/26</link>
		<comments>http://code.mikwat.com/archives/26#comments</comments>
		<pubDate>Wed, 20 Feb 2008 22:13:28 +0000</pubDate>
		<dc:creator>mikwat</dc:creator>
				<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://code.mikwat.com/archives/26</guid>
		<description><![CDATA[Open tunnel: $ ssh -L 8080:remote-host:80 -f -C -q -N me@myserver.com Close tunnel: $ ps -aux &#124; grep ssh $ kill {pid}]]></description>
			<content:encoded><![CDATA[<p>Open tunnel:<br />
<code><br />
$ ssh -L 8080:remote-host:80 -f -C -q -N me@myserver.com<br />
</code></p>
<p>Close tunnel:<br />
<code><br />
$ ps -aux | grep ssh<br />
$ kill {pid}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://code.mikwat.com/archives/26/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

