<?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>Prattski &#124; Magento &#38; Web Development &#187; Mac OS X</title>
	<atom:link href="http://prattski.com/category/mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://prattski.com</link>
	<description></description>
	<lastBuildDate>Fri, 11 May 2012 14:05:27 +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>Cool Mac App Idea?  A Better Log Viewer</title>
		<link>http://prattski.com/2010/08/23/cool-mac-app-idea-a-better-log-viewer/</link>
		<comments>http://prattski.com/2010/08/23/cool-mac-app-idea-a-better-log-viewer/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 02:40:17 +0000</pubDate>
		<dc:creator>Josh Pratt</dc:creator>
				<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://prattski.com/?p=531</guid>
		<description><![CDATA[On my computer, I have a bunch of Magento installs that I work on here and there. I probably have 12 sites on here right now, all being Magento sites. Each Magento install has 2 files that I monitor: var/log/system.log &#8230; <a href="http://prattski.com/2010/08/23/cool-mac-app-idea-a-better-log-viewer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On my computer, I have a bunch of Magento installs that I work on here and there.  I probably have 12 sites on here right now, all being Magento sites.  Each Magento install has 2 files that I monitor:  var/log/system.log and var/log/exception.log.  Each of those sites has their own apache error logs as well for any php errors that arise.  That&#8217;s 36 different log files.</p>
<p>I currently run up a <code>tail -f var/log/system.log &#038;</code> in Terminal to monitor files, which works pretty good.  That is my preferred method at this point.  I know that I could also use the Console app, but quite honestly, there&#8217;s no organization there, and there&#8217;s loads of other log files that I don&#8217;t care about.</p>
<p>I think it would be awesome to have a native Mac app that allows you to &#8216;subscribe&#8217; or &#8216;unsubscribe&#8217; from any log files of your choosing, almost like a feed reader (like NetNewsWire).  Here are some features that I think would be really great:</p>
<ul>
<li>Ability to subscribe/unsubscribe easily to any log files on your system</li>
<li>Easily clear the log display (just like command + k in Terminal) or delete everything in the log file</li>
<li>Set filters that look for specific matches (using regex).  If a match is found, the app would notify you in some way (Growl, dock bounce, etc.)</li>
<li>Nice display of log entries (subtle zebra stripe perhaps?  Color-coded, or color icons to easily distinguish between errors, warnings, debug, etc.)</li>
<li>On the logs that you aren&#8217;t currently viewing, show the number of unread log entries for all other logs that you&#8217;ve subscribed to &#8211; just like a feed reader</li>
<li>Ability to organize logs in folders, and rename them (without actually renaming the actual file)</li>
<li>Perhaps some sort of integration with IDE&#8217;s, like Eclipse, Aptana, Netbeans, etc. that would allow you to click on a particular error if there is a file and line number in the log, and it would take you to the error in the file</li>
<li>Ability perhaps to also monitor log files on servers (if proper credentials were given to access them)</li>
</ul>
<p>If you think that this would be a good idea, and something you would be really interested in having, please leave a comment.  Also, if you have any additional ideas that would make this app even more useful, post a comment for that too.</p>
<p>If you would be at all interested in making an app like this, while I do not know cocoa or mac app development, I would love to help in anyway I could.</p>
]]></content:encoded>
			<wfw:commentRss>http://prattski.com/2010/08/23/cool-mac-app-idea-a-better-log-viewer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Turn Off Word Wrap in Leopard Terminal</title>
		<link>http://prattski.com/2008/09/16/turn-off-word-wrap-in-leopard-terminal/</link>
		<comments>http://prattski.com/2008/09/16/turn-off-word-wrap-in-leopard-terminal/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 19:07:30 +0000</pubDate>
		<dc:creator>Josh Pratt</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://devzone.pratthost.com/?p=55</guid>
		<description><![CDATA[As I said in the post prior to this, I have really been enjoying using Terminal for accessing MySQL databases. I found a problem with it though. If you have a table with a lot of columns, or a column &#8230; <a href="http://prattski.com/2008/09/16/turn-off-word-wrap-in-leopard-terminal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://prattski.com/wp-content/uploads/2008/09/terminal_icon.jpg" rel="lightbox[55]"><img src="http://prattski.com/wp-content/uploads/2008/09/terminal_icon.jpg" alt="" title="Terminal Icon" width="90" height="90" class="alignleft size-medium wp-image-49" /></a></p>
<p>As I said in the post prior to this, I have really been enjoying using Terminal for accessing MySQL databases.  I found a problem with it though.  If you have a table with a lot of columns, or a column with a lot of data in it, Terminal will wrap the results of your query making it almost completely unreadable (or a pain to read at best).<br />
<br style="clear: both" /></p>
<div style="width: 300px; margin: 0 auto"><a href="http://prattski.com/wp-content/uploads/2008/09/mysql_wrap.jpg" rel="lightbox[55]"><img src="http://devzone.pratthost.com/wp-content/uploads/2008/09/mysql_wrap-300x256.jpg" alt="" title="Mysql Terminal Wrap" width="300" height="256" class="aligncenter size-medium wp-image-56" /></a></div>
<p></p>
<p>I found a work-around.  Though it isn&#8217;t as good as it could be, it does work.  It prevents the wrap, but, everything beyond the right-side of your terminal window is completely removed.  It doesn&#8217;t give you a scroll bar to see beyond, it is literally gone.  If you try to resize your window, you&#8217;ll just get blank space.</p>
<div style="width: 300px; margin: 0 auto"><a href="http://prattski.com/wp-content/uploads/2008/09/mysql_nowrap.jpg" rel="lightbox[55]"><img src="http://devzone.pratthost.com/wp-content/uploads/2008/09/mysql_nowrap-300x80.jpg" alt="" title="Mysql Terminal No Wrap" width="300" height="80" class="aligncenter size-medium wp-image-57" /></a></div>
<p></p>
<p>Why Terminal doesn&#8217;t have the ability to turn it on or off is a mystery to me.  But, that said, this fix does have it&#8217;s place, and it is fairly easy to turn on and off.  Here&#8217;s what you do:</p>
<p>Open this file:  $YOURHOME/.bashrc  and place the following in there and save it:</p>
<p><code># Wordwrap off<br />
echo -e "\e[?7l\c"</code></p>
<p>After it is saved, you can close Terminal and re-open it, or restart bash with this command:</p>
<p><code>. ~/.bashrc</code></p>
<p>To turn it off again, just remove or comment out the echo statement you added to .bashrc and restart bash again.</p>
<p>If you have any better suggestions for this, please let me know!  I&#8217;d love to have a better solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://prattski.com/2008/09/16/turn-off-word-wrap-in-leopard-terminal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

