<?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>Thu, 20 Oct 2011 17:05:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<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>

