<?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>Core Systems, Inc.</title>
	<atom:link href="http://www.coresysinc.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coresysinc.com</link>
	<description></description>
	<lastBuildDate>Fri, 18 May 2012 19:02:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Ruby SSL Socket</title>
		<link>http://www.coresysinc.com/ruby-ssl-socket/</link>
		<comments>http://www.coresysinc.com/ruby-ssl-socket/#comments</comments>
		<pubDate>Fri, 18 May 2012 18:35:10 +0000</pubDate>
		<dc:creator>ben.hamilton</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[socket]]></category>

		<guid isPermaLink="false">http://www.coresysinc.com/?p=96</guid>
		<description><![CDATA[A note on creating an SSL Socket. Easy enough once you&#8217;ve done it, but getting started can be a bit of an unknown. [crayon-4fb95c057ca3a/] [crayon-4fb95c057d9d2/]]]></description>
			<content:encoded><![CDATA[<p>A note on creating an SSL Socket. Easy enough once you&#8217;ve done it, but getting started can be a bit of an unknown.</p>
<p></p><pre class="crayon-plain-tag">hostname='mytest host'
port=443

begin
  Timeout.timeout(timeout) do
    socket = TCPSocket.new(hostname, port)
    context = OpenSSL::SSL::SSLContext.new()
    context.verify_mode = OpenSSL::SSL::VERIFY_NONE
    ssl_socket = OpenSSL::SSL::SSLSocket.new(socket, context)
    ssl_socket.sync_close = true
    ssl_socket.connect
  end

  rescue =&gt; e
    # capture and handle errors for: DNS Name resolution failure, no route to host, connection timeout...
    raise e

end</pre><p></p>
<p></p><pre class="crayon-plain-tag"># this serves as the target for the ssl socket
class SSLHost
  attr_accessor :name, :port, :socket, :cert
  attr_reader :subject_key_identifier
  def initialize(host,port=443)
    @name = name  # name or IP of the host
    @port = port  # port on which to connect
    @cert = nil  # once connected retrieve the SSL cert
    @socket = nil  # store the SSL socket in memory for future use
  end

  def connect
    self.class.connect(self)
  end

  def socket
    connect unless @socket
    return nil unless @socket
    @socket
  end

  def cert
    @cert ||= socket.try(:peer_cert)
  end

  def self.connect(host,timeout=3)
    retries = 3
    ssl_socket = nil
    begin
      Timeout.timeout(timeout) do
        socket = TCPSocket.new(host.name, host.port)
        context = OpenSSL::SSL::SSLContext.new()
        context.verify_mode = OpenSSL::SSL::VERIFY_NONE
        ssl_socket = OpenSSL::SSL::SSLSocket.new(socket, context)
        ssl_socket.sync_close = true
        ssl_socket.connect
      end
   rescue Timeout::Error =&amp;gt; e
      return false
      raise e
   rescue Errno::EINPROGRESS
      resp = IO.select([ssl_socket], nil, nil, timeout.to_i)
      if resp.nil?
        raise Errno::ECONNREFUSED
      end
   rescue SocketError =&amp;gt; e
      if retries &amp;gt; 0
        retries -= 1
        print &quot;Retry #{retries}\n&quot;
        retry
      else
        print &quot;Retried three times. Fail\n\n&quot;
        raise e
      end
    end
    if ssl_socket
      host.socket = ssl_socket # stores the socket for future connections if needed
      host.cert # get it since we have it
      return true
    else
      return false
    end
  end

end</pre><p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.coresysinc.com/ruby-ssl-socket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic Coloring from Red to Green</title>
		<link>http://www.coresysinc.com/dynamic-coloring-from-red-to-green/</link>
		<comments>http://www.coresysinc.com/dynamic-coloring-from-red-to-green/#comments</comments>
		<pubDate>Tue, 15 May 2012 17:38:01 +0000</pubDate>
		<dc:creator>ben.hamilton</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[helper]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[scss]]></category>

		<guid isPermaLink="false">http://www.coresysinc.com/?p=88</guid>
		<description><![CDATA[I need to color code a set of items based on a 0 to 100 scale where 100 is green and 0 is red. I looked at sass, did the mixin, created the ten semi-dynamic class definitions. Dynamic is not really the target for sass&#8230; so I made a helper using the sass ruby library [...]]]></description>
			<content:encoded><![CDATA[<p>I need to color code a set of items based on a 0 to 100 scale where 100 is green and 0 is red. I looked at sass, did the mixin, created the ten semi-dynamic class definitions. Dynamic is not really the target for sass&#8230; so I made a helper using the sass ruby library since it had the color stuff already figured out.</p>
<p>After writing this it dawned on me that javascript is likely a better place for this to live if there are a large number of items that need to have color applied.</p>
<p></p><pre class="crayon-plain-tag">def get_color_scale(number)
    number = number.to_i
    number = 100 if number &amp;gt; 100
    number = 0 if number &amp;lt; 0
    lightness = 60 - (number/4) # I wanted to darken the color as it went closer to green
    color = Sass::Script::Color.new(hue: number, saturation: 100, lightness: lightness)
    color.options = {:style =&amp;gt; :compressed} # setting the options is required by the class before using the .to_s method
    color.to_s # return the hex representation of the color
  end</pre><p> </p>
<p>Hope this works well for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coresysinc.com/dynamic-coloring-from-red-to-green/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To Charge or Not To Charge</title>
		<link>http://www.coresysinc.com/to-charge-or-not-to-charge/</link>
		<comments>http://www.coresysinc.com/to-charge-or-not-to-charge/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 06:25:37 +0000</pubDate>
		<dc:creator>ben.hamilton</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Micropreneur]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[micropreneur]]></category>

		<guid isPermaLink="false">http://www.coresysinc.com/?p=83</guid>
		<description><![CDATA[For those micropreneurs out there that are considering their monitization model I recommned taking a look at this post (Scott Heiferman looks back at Meetup&#8217;s bet-the-company moment &#8211; (37signals) ). I am currently working on an application that I&#8217;ve really gone back and forth on the affiliate/advertising and free to use vs the pay to play [...]]]></description>
			<content:encoded><![CDATA[<p>For those micropreneurs out there that are considering their monitization model I recommned taking a look at this post (<a href="http://37signals.com/svn/posts/2751-scott-heiferman-looks-back-at-meetups-bet-the-company-moment-">Scott Heiferman looks back at Meetup&#8217;s bet-the-company moment &#8211; (37signals)</a> ).</p>
<p>I am currently working on an application that I&#8217;ve really gone back and forth on the affiliate/advertising and free to use vs the pay to play models. People I have a good deal of respect for have said that the only way to go is ads. That seems attractive but at the end of the day isn&#8217;t a good service is worth paying for?</p>
<p>How much and how often are still key considerations, but having another perspective so clearly articulated is helpful to say the least.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coresysinc.com/to-charge-or-not-to-charge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handy Electronics Links</title>
		<link>http://www.coresysinc.com/handy-electronics-links/</link>
		<comments>http://www.coresysinc.com/handy-electronics-links/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 03:19:44 +0000</pubDate>
		<dc:creator>ben.hamilton</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[color bands]]></category>
		<category><![CDATA[ohms]]></category>
		<category><![CDATA[resistor]]></category>

		<guid isPermaLink="false">http://www.coresysinc.com/handy-electronics-links/</guid>
		<description><![CDATA[Links that I find handy. Resistor Color Bands&#160;(Image)]]></description>
			<content:encoded><![CDATA[<p>Links that I find handy.</p>
<p><a href="http://alan-parekh.vstore.ca/watt-resistor-p-55.html">Resistor Color Bands</a>&nbsp;(Image)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coresysinc.com/handy-electronics-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing a MySQL index using a ruby on rails migration</title>
		<link>http://www.coresysinc.com/removing-a-mysql-index-using-a-migration/</link>
		<comments>http://www.coresysinc.com/removing-a-mysql-index-using-a-migration/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 17:39:00 +0000</pubDate>
		<dc:creator>ben.hamilton</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.coresysinc.com/?p=47</guid>
		<description><![CDATA[I ran into a bit of a problem with the standard documentation regarding the removal of an index by way of a ruby on rails migration&#8230; at least with some of the old data living out on the web. My initial searches produced an incorrect method: remove_index :table_name, :named_index The correct method is: remove_index :table_name, [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into a bit of a problem with the standard documentation regarding the removal of an index by way of a ruby on rails migration&#8230; at least with some of the old data living out on the web.</p>
<p>My initial searches produced an incorrect method:</p>
<blockquote><p>remove_index :table_name, :named_index</p>
</blockquote>
<p>The correct method is:</p>
<blockquote><p>remove_index :table_name, :name =&gt; &#8220;named_index&#8221;</p>
</blockquote>
<p>Which can actually be found on the <a title="updated documentation" href="http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#method-i-remove_index" target="_blank">updated documentation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coresysinc.com/removing-a-mysql-index-using-a-migration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache Zenoss Reverse Proxy</title>
		<link>http://www.coresysinc.com/apache-zenoss-reverse-proxy/</link>
		<comments>http://www.coresysinc.com/apache-zenoss-reverse-proxy/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 17:39:00 +0000</pubDate>
		<dc:creator>ben.hamilton</dc:creator>
				<category><![CDATA[Linux Admin]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Reverse Proxy]]></category>
		<category><![CDATA[Zenoss]]></category>

		<guid isPermaLink="false">http://www.coresysinc.com/?p=37</guid>
		<description><![CDATA[A few steps in making my zenoss installation more usefull. 1. Get rid of the localhost.localdomain in alert messages. Settings -&#62; Daemons -&#62; zenactions -&#62; zopeurl Put in the full URL as it will be seen and appended to by alert messages. Because I anticipated using SSL my zopeurl looked something like this: https://myserver.name:2345 2. [...]]]></description>
			<content:encoded><![CDATA[<p>A few steps in making my zenoss installation more usefull.</p>
<p>1. Get rid of the localhost.localdomain in alert messages.</p>
<p>Settings -&gt; Daemons -&gt; zenactions -&gt; zopeurl</p>
<p>Put in the full URL as it will be seen and appended to by alert messages. Because I anticipated using SSL my zopeurl looked something like this: https://myserver.name:2345</p>
<p>2. Create a http.conf file for my prxied service</p>
<p>vi /etc/http/conf.d/myserver.name-2345.conf</p>
<blockquote><p><code>Listen 0.0.0.0:2345</code></p>
<p><code>NameVirtualHost myserver.name:2345<br />
 <span style="font-size: 13.3333px;">&lt;VirtualHost &lt;http server IP Address&gt;:2345&gt;</span></code></p>
<p><code>
<p><span style="font-size: 13.3333px;">ServerName myserver.name</span></p>
<p><span style="font-size: 13.3333px;">ProxyRequests Off<br />
 </span><span style="font-size: 13.3333px;">RewriteEngine on<br />
 </span><span style="font-size: 13.3333px;">RewriteLog /var/log/httpd/myserver.name-2345-rewrite_log<br />
 </span><span style="font-size: 13.3333px;">RewriteLogLevel 1</span></p>
<p>SSLEngine On<br />
 <span style="font-size: 13.3333px;">SSLCACertificateFile /etc/httpd/conf/myserver.name/ssl/ssl-cachain.pem<br />
 </span><span style="font-size: 13.3333px;">SSLCertificateFile /etc/httpd/conf/myserver.name/ssl/cert.pem<br />
 </span><span style="font-size: 13.3333px;">SSLCertificateKeyFile /etc/httpd/conf/myserver.name/ssl/key.pem<br />
 </span><span style="font-size: 13.3333px;">SSLProtocol TLSv1 SSLv3<br />
 </span><span style="font-size: 13.3333px;">SSLCipherSuite HIGH</span></p>
<p><span style="font-size: 13.3333px;">ErrorLog logs/myserver.name-2345-error_log<br />
 </span><span style="font-size: 13.3333px;">CustomLog logs/myserver.name-2345-access_log common</span></p>
<p><span style="font-size: 13.3333px;">SetEnv force-proxy-request-1.0.1<br />
 </span><span style="font-size: 13.3333px;">SetEnv proxy-nokeepalive 1</span></p>
<div>
<p>ProxyPass / http://127.0.0.1:8080/VirtualHostBase/https/myserver.name:2345/VirtualHostRoot/</p>
</div>
<p></code></p>
<p>&nbsp;</p>
</blockquote>
<div>
<blockquote><code>&lt;Proxy *&gt;<br />
 <span style="font-size: 13.3333px;">Order deny,allow<br />
 </span><span style="font-size: 13.3333px;">Allow from all<br />
 </span><span style="font-size: 13.3333px;">&lt;/Proxy&gt;</span>
<p>&nbsp;</p>
<p><span style="font-size: 13.3333px;">&lt;Files ~ "\.(inc|class)$"&gt;<br />
 </span><span style="font-size: 13.3333px;">Deny from all<br />
 </span><span style="font-size: 13.3333px;">&lt;/Files&gt;</span></p>
<p></code>
<p>&lt;/VirtualHost&gt;</p>
</blockquote>
</div>
<p>Personally I like to keep the .conf file in a single location. I use /etc/http/conf/myserver.name/</p>
<p>In that directory I place my ssl and any related conf files then, from inside the conf.d directory I ln -s ../conf/myserver.name/<span style="font-size: 13.1944px;">myserver.name-2345.conf ./</span></p>
<p><span style="font-size: 13.1944px;">From there I check the conf/myserver.name into a git repo. A note on this. Beware of putting sensitive data like the key file into a shared repository.</span></p>
<p><span style="font-size: 13.1944px;">So&#8230; that&#8217;s it. Restart apache and you should be able to hit the secure site.</span></p>
<p>An easy way to create and manage certs if you are going with self signed is TinyCA2</p>
<p>Props go out to&nbsp;<span style="font-size: 13.1944px;"><a title="the backburner" href="http://jang.blogs.ilrt.org/2009/05/28/zenoss-general-zope-behind-an-apache-proxy/">http://jang.blogs.ilrt.org/2009/05/28/zenoss-general-zope-behind-an-apache-proxy/</a> for the actual URL to redirect to.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.coresysinc.com/apache-zenoss-reverse-proxy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RedCar Text Editor on Fedora Core 10 (FC10) and Fedora Core 11 (FC11)</title>
		<link>http://www.coresysinc.com/redcar-text-editor-on-fedora-core-10-fc10-and-fedora-core-11-fc11/</link>
		<comments>http://www.coresysinc.com/redcar-text-editor-on-fedora-core-10-fc10-and-fedora-core-11-fc11/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 08:42:58 +0000</pubDate>
		<dc:creator>ben.hamilton</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Tools and Commands]]></category>
		<category><![CDATA[RedCar]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.coresysinc.com/?p=14</guid>
		<description><![CDATA[<p>I use a lot of vi in writing ruby code. I've seen TextMate and wondered if such a beast exists for Linux... well, it does. It's in the form of a ruby project called RedCar. I started down the path of installing it but couldn't find instructions for Fedora and was running into problems getting the debian/ubuntu instructions to fly. That's why this is here. If I ever have to do this again I'll be glad I put these instructions here. I've done what I can to get this up and running in a clear way but your mileage may vary (YMMV).</p>
<p>Post back with comments and improvements.</p>]]></description>
			<content:encoded><![CDATA[<p>I use a lot of vi in writing ruby code. I&#8217;ve seen TextMate and wondered if such a beast exists for Linux&#8230; well, it does. It&#8217;s in the form of a ruby project called RedCar. I started down the path of installing it but couldn&#8217;t find instructions for Fedora and was running into problems getting the debian/ubuntu instructions to fly. That&#8217;s why this is here. If I ever have to do this again I&#8217;ll be glad I put these instructions here. I&#8217;ve done what I can to get this up and running in a clear way but your mileage may vary (YMMV).</p>
<p>Post back with comments and improvements.</p>
<p><strong>Get the basic install packages:</strong></p>
<p>On FC10 (32bit)</p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">sudo yum install git-all ruby-gconf2 ruby-gnome2 oniguruma oniguruma-devel gtk2 gtk2-devel glib2 glib2-devel libgee libgee-devel ruby-gtksourceview2 gtksourceview2 gtksourceview2-devel xulrunner xulrunner-devel xorg-x11-server-Xvfb dbus-devel WebKit-gtk-devel WebKit-gtk WebKit-doc ruby-gtk2 ruby-gtk2-devel</span></p></blockquote>
<p>On FC10 (64bit)</p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">sudo yum install git-all ruby-gconf2 ruby-gnome2 oniguruma.i386 oniguruma.x86_64 oniguruma-devel.i386 oniguruma-devel.x86_64 gtk2 gtk2-devel glib2 glib2-devel libgee.i386 libgee.x86_64 libgee-devel.i386 libgee-devel.x86_64 ruby-gtksourceview2 gtksourceview2 gtksourceview2-devel xulrunner xulrunner-devel xorg-x11-server-Xvfb dbus-devel WebKit-gtk-devel WebKit-gtk WebKit-doc ruby-gtk2 ruby-gtk2-devel</span></p></blockquote>
<p>On FC11 the process has only the exception that WebKit-gtk is now referred to as webkitgtk:</p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">sudo yum install webkitgtk-devel webkitgtk webkitgtk-doc</span></p></blockquote>
<p><span style="BACKGROUND-COLOR: #ffffff"><strong>Get missing development headers (not just for x64 systems):</strong></span></p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">wget redcareditor.com/stuff/missing_x64_headers/rbgdkconversions.h<br />
wget redcareditor.com/stuff/missing_x64_headers/rbgtkconversions.h</span></p></blockquote>
<p><strong>Determine your platform if you don&#8217;t alread know</strong></p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">uname -p<br />
</span>i686 == 32 bit<br />
x86_64 == 64 bit</p></blockquote>
<p>32 bit do:</p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">sudo cp rbgtkconversions.h rbgdkconversions.h /usr/lib/ruby/1.8/i386-linux/</span></p></blockquote>
<p>64 bit do:</p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">sudo cp sudo cp /usr/lib64/ruby/1.8/x86_64-linux/ rbgdkconversions.h /usr/lib64/ruby/1.8/x86_64-linux/<br />
</span></p></blockquote>
<p><strong>I use github often and so have it setup as a gem source:</strong></p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">sudo gem source -a http://gems.github.com</span></p></blockquote>
<p><strong>Install needed gems:</strong></p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">sudo gem install oniguruma activesupport rspec cucumber hoe open4 zerenity statemachine</span></p></blockquote>
<p><strong>Go to your development directory and:</strong></p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">git clone git://github.com/danlucraft/redcar.git</span></p></blockquote>
<p><strong>Change to the redcar directory:</strong></p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">cd redcar</span></p></blockquote>
<p><strong>Ensure you are using the &#8220;stable&#8221; branch:</strong></p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">git checkout stable</span></p></blockquote>
<p><strong>Get the redcar submodules (like textmate bundles):</strong></p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">git submodule init<br />
git submodule update</span></p></blockquote>
<p><strong><span style="text-decoration: line-through;">Install dbus gem.</span><br />
</strong></p>
<p><span style="text-decoration: line-through;">I used sdague-ruby-dbus because the plain old ruby-dbus (dbus gem) would not build for me. YMMV:</span></p>
<blockquote><p><span style="text-decoration: line-through;"><span style="BACKGROUND-COLOR: #c0c0c0">sudo gem install sdague-ruby-dbus</span></span></p></blockquote>
<p>It turns out that I could not get dbus to run (meaning that if I have RedCar running and attempt to load a file from the command line it opens as a separate instance instead of opening the file in the currently running RedCar instance. A minor hassle)</p>
<p><strong>Build redcar</strong></p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">rake build</span></p></blockquote>
<p><strong>Make an alias script for redcar<br />
</strong></p>
<p>This allows you to launch redcar from anywhere on the system</p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">sudo vi /usr/local/bin/redcar<br />
</span>#!/bin/sh<br />
# I use &#8211;multiple-instance because ruby-dbus just isn&#8217;t working for me.<br />
/&lt;YOUR REDCAR DIRECTORY&gt;/bin/redcar &#8211;multiple-instance $1</p></blockquote>
<p><strong>Make the script executable:</strong></p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">sudo chmod a+x /usr/local/bin/redcar</span></p></blockquote>
<p><strong>Start redcar</strong></p>
<blockquote><p><span style="BACKGROUND-COLOR: #c0c0c0">/usr/local/bin/redcar README.md</span></p></blockquote>
<p>The first time you run redcar it will take some time to collect all it&#8217;s library and bundle files. That&#8217;s a one time thing.</p>
<p>I use &#8211;multiple-instance because ruby-dbus just isn&#8217;t working for me. If you know how to make it hum please leave a comment and I&#8217;ll update the post.</p>
<p>Base configuration taken from: <a href="http://github.com/danlucraft/redcar/blob/eeebf739365d8bfd0e06ed001bd6b7960d76daa3/INSTALL.md">http://github.com/danlucraft/redcar/blob/eeebf739365d8bfd0e06ed001bd6b7960d76daa3/INSTALL.md</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.coresysinc.com/redcar-text-editor-on-fedora-core-10-fc10-and-fedora-core-11-fc11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rsync ext2/ext3 to samba/cifs</title>
		<link>http://www.coresysinc.com/rsync-ext2ext3-to-sambacifs/</link>
		<comments>http://www.coresysinc.com/rsync-ext2ext3-to-sambacifs/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 22:52:00 +0000</pubDate>
		<dc:creator>ben.hamilton</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[Tools and Commands]]></category>

		<guid isPermaLink="false">http://www.coresysinc.com/?p=8</guid>
		<description><![CDATA[The problem seems to be the default method used by rsync to determine which files need to be considered for copying is not appropriate for use between linux and cifs/smb mounted file systems. My setup is a Maxtor Central Axis 1TB using CIFS mounted to a linux file system using a standard mount -t cifs [...]]]></description>
			<content:encoded><![CDATA[<p>The problem seems to be the default method used by rsync to determine which files need to be considered for copying is not appropriate for use between linux and cifs/smb mounted file systems.</p>
<p>My setup is a Maxtor Central Axis 1TB using CIFS mounted to a linux file system using a standard mount -t cifs &#8230;. command.</p>
<p>The initial rsync run identified my thirty one thousand RAW and JPG files and took an age to get through them all&#8230; as expected. I realized something was terribly wrong when I kicked off a test run immediately after the first completed as rsync was copying one file at a time regardless of if the file had changed or not.</p>
<p>I started down the path of having rsync perform a checksum on each file to determine if it should be copied or not; however, the checksum process is computationally expesive and was taking more time than just copying the file. Needless to say I didn&#8217;t even get all the way through assessing which files needed to be copied. Next I considered looking at the modification times only but for some reason opening the modify window (ex. &#8211;modify-window=10) did not have any affect. I ended up just looking at the size of each file.</p>
<p>rsync &#8211;size-only -trvvhP &#8211;no-whole-file /src_directory/* /cifs_mounted_remote_directory/</p>
<p>I suspect that there may be CIFS mounting options that would lend themselves to backups based on modification time; however, the types of files I&#8217;m concerned with are in a large binary format. Any modification of the file under normal use will produce a file of a different size (in 99% of cases). The monthly full copy will get the outliers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coresysinc.com/rsync-ext2ext3-to-sambacifs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

