<?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>Honolulu Hacker &#187; admin</title>
	<atom:link href="http://honoluluhacker.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://honoluluhacker.com</link>
	<description>Tech, Linux, Rails by Honululu-based Kevin English</description>
	<lastBuildDate>Sat, 24 Sep 2011 22:53:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Hello world!</title>
		<link>http://honoluluhacker.com/2008/12/15/hello-world/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hello-world</link>
		<comments>http://honoluluhacker.com/2008/12/15/hello-world/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 20:34:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://honoluluhacker.com/?p=1</guid>
		<description><![CDATA[Dudes, WordPress is pretty easy to install. Took me 4.35 minutes.  My awesome host (Black Dog Hosting) hooked me up pretty quickly. He has PHP 4.4.4 and Mysql 5.0.32. I&#8217;m suprised he hasn&#8217;t upgraded to Php 5. When are we gonna see Php 6? I think that people will have the same reaction to Php [...]]]></description>
			<content:encoded><![CDATA[<p>Dudes, WordPress is pretty easy to install. Took me 4.35 minutes.  My awesome host (<a title="Black Dog Hosting" href="http://bdhx.com">Black Dog Hosting)</a> hooked me up pretty quickly. He has PHP 4.4.4 and Mysql 5.0.32. I&#8217;m suprised he hasn&#8217;t upgraded to Php 5. When are we gonna see Php 6? I think that people will have the same reaction to Php 6 will probably be like Perl 6: Who cares, we&#8217;re all using Ruby and Python now ! Damn, I just burned my whole Php readership. This blog is off to a bad start.</p>
]]></content:encoded>
			<wfw:commentRss>http://honoluluhacker.com/2008/12/15/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shallows, PM</title>
		<link>http://honoluluhacker.com/2008/11/11/shallows-pm-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=shallows-pm-2</link>
		<comments>http://honoluluhacker.com/2008/11/11/shallows-pm-2/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 17:35:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Surf Journal]]></category>

		<guid isPermaLink="false">http://kenglish77.net/surfblog/index.php?entry=entry081111-073505</guid>
		<description><![CDATA[Veteran&#039;s Day session, there was actually some nice sets rolling through&#8230;]]></description>
			<content:encoded><![CDATA[<p>Veteran&#039;s Day session, there was actually some nice sets rolling through&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://honoluluhacker.com/2008/11/11/shallows-pm-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shallows, PM</title>
		<link>http://honoluluhacker.com/2008/10/26/shallows-pm-3/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=shallows-pm-3</link>
		<comments>http://honoluluhacker.com/2008/10/26/shallows-pm-3/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 18:55:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Surf Journal]]></category>

		<guid isPermaLink="false">http://kenglish77.net/surfblog/index.php?entry=entry081026-085537</guid>
		<description><![CDATA[Dude, i had it all to myself. It was fun for about 30 minutes, had a couple good ones and then it was dead&#8230;]]></description>
			<content:encoded><![CDATA[<p>Dude, i had it all to myself. It was fun for about 30 minutes, had a couple good ones and then it was dead&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://honoluluhacker.com/2008/10/26/shallows-pm-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Awesome incident of the month</title>
		<link>http://honoluluhacker.com/2008/10/17/awesome-incident-of-the-month/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=awesome-incident-of-the-month</link>
		<comments>http://honoluluhacker.com/2008/10/17/awesome-incident-of-the-month/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 19:50:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://kenglish77.net/surfblog/index.php?entry=entry081017-095028</guid>
		<description><![CDATA[I&#039;m (finally) getting more structured and object-oriented with my JavaScript. My co-worker is a guru at this stuff. I was working on an awesome class called FirstTree. It was super-object-oriented. I went to go use it in my code like this: var myObject = FirstTree.new({config: configuration}); I pounded my head on this for like 20 [...]]]></description>
			<content:encoded><![CDATA[<p>I&#039;m (finally) getting more structured and  object-oriented with my JavaScript. My co-worker is a guru at this stuff. </p>
<p>I was working on an awesome class called FirstTree. It was super-object-oriented. I went to go use it in my code like this:</p>
<p>var myObject = FirstTree.new({config: configuration});</p>
<p>I pounded my head on this for like 20 minutes. Why was it giving some strange error?!?!? I thought JavaScript would let me be object-oriented!</p>
<p>So, I asked the guru to look at my code. And he pointed out, &#8220;Dumbass, you write that line of code like this&#8221;:</p>
<p>var myObject = new FirstTree({config: configuration});</p>
<p>Moral of the story: Stop thinking in Ruby!</p>
]]></content:encoded>
			<wfw:commentRss>http://honoluluhacker.com/2008/10/17/awesome-incident-of-the-month/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache SSL with 2 IPs and 2 Certificates</title>
		<link>http://honoluluhacker.com/2008/10/17/apache-ssl-with-2-ips-and-2-certificates/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=apache-ssl-with-2-ips-and-2-certificates</link>
		<comments>http://honoluluhacker.com/2008/10/17/apache-ssl-with-2-ips-and-2-certificates/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 18:06:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://kenglish77.net/surfblog/index.php?entry=entry081017-080616</guid>
		<description><![CDATA[Yesterday we had to set up Apache to host 2 SSL certificates for 2 different IPs. There&#8217;s all kind of crackheads on the internet who think you can install 2 SSL certificates for 1 IP but it simply can&#8217;t be done. So, here&#8217;s what I did: There&#8217;s info on the Apache VirtaulHost Examples site. The [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday we had to set up Apache to host 2 SSL certificates for 2 different IPs. There&#8217;s all kind of crackheads on the internet who think you can install 2 SSL certificates for 1 IP but it simply can&#8217;t be done. So, here&#8217;s what I did:</p>
<p>There&#8217;s info on the <a href="http://httpd.apache.org/docs/2.2/vhosts/examples.html" target="_blank">Apache VirtaulHost Examples</a> site. The best examples are &#8220;Mixed name-based and IP-based vhosts&#8221; and &#8220;Mixed port-based and ip-based virtual hosts.&#8221;</p>
<p>Let&#8217;s say we have 2 domains: mauka.com and makai.com.</p>
<p>We change our DNS so that the IP xx.xx.xx.1 points to mauka.com and   xx.xx.xx.2 points to makai.com points to xx.xx.xx.2. This means the server has to be set up with 2 IPs.</p>
<p>Before we change anything in Apache, we need to generate 2 ssl certificates. We will make these wildcard certificates for the names *.mauka.com and *.makai.com. There&#8217;s plenty of information out there about how to generate the key, this site has some good stuff: <a href="http://www.madboa.com/geek/openssl/" target="_blank">http://www.madboa.com/geek/openssl/</a><br />
So, we generate our keys and certs and place them in  /etc/pki/tls/private/wildcard-makai.key, /etc/pki/tls/certs/wildcard-makai.crt, /etc/pki/tls/certs/wildcard-mauka.crt and /etc/pki/tls/private/wildcard-mauka.key.</p>
<p>Here&#8217;s what the set up will look like for our domain to configure the following urls. :</p>
<p><a href="http://www.mauka.com" target="_blank">http://www.mauka.com</a><br />
<a href="http://www2.mauka.com" target="_blank">http://www2.mauka.com</a><br />
<a href="https://www.mauka.com" target="_blank">https://www.mauka.com</a><br />
<a href="https://www2.mauka.com" target="_blank">https://www2.mauka.com</a></p>
<p><a href="http://www.makai.com" target="_blank">http://www.makai.com</a><br />
<a href="http://www2.makai.com" target="_blank">http://www2.makai.com</a><br />
<a href="https://www.makai.com" target="_blank">https://www.makai.com</a><br />
<a href="https://www2.makai.com" target="_blank">https://www2.makai.com</a></p>
<p>in the main http.conf</p>
<pre>
NameVirtualHost xx.xx.xx.1:80
NameVirtualHost xx.xx.xx.2:80
</pre>
<p>Add after our mod_ssl setup, for us it is a file ssl.conf</p>
<pre>
DocumentRoot /www/www.mauka.com
ServerName <a href="http://www.mauka.com" target="_blank">www.mauka.com</a>
DocumentRoot /www/www2.mauka.com
ServerName www2.mauka.com
DocumentRoot /www/www.makai.com
ServerName <a href="http://www.makai.com" target="_blank">www.makai.com</a>
DocumentRoot /www/www2.makai.com
ServerName www2.makai.com
</pre>
<p>SSL Configurations<br />
Add after our mod_ssl setup, for us it is a file ssl.conf</p>
<pre>
NameVirtualHost xx.xx.xx.1:443
NameVirtualHost xx.xx.xx.2:433
DocumentRoot /www/www.mauka.com
ServerName <a href="http://www.mauka.com" target="_blank">www.mauka.com</a>

SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
SSLCertificateFile /etc/pki/tls/certs/wildcard-mauka.crt
SSLCertificateKeyFile /etc/pki/tls/private/wildcard-mauka.key
SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
DocumentRoot /www/www2.mauka.com
ServerName www2.mauka.com

SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
SSLCertificateFile /etc/pki/tls/certs/wildcard-mauka.crt
SSLCertificateKeyFile /etc/pki/tls/private/wildcard-mauka.key
SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
DocumentRoot /www/www.makai.com
ServerName <a href="http://www.makai.com" target="_blank">www.makai.com</a>

SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
SSLCertificateFile /etc/pki/tls/certs/wildcard-makai.crt
SSLCertificateKeyFile /etc/pki/tls/private/wildcard-makai.key
SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
DocumentRoot /www/www2.makai.com
ServerName www2.makai.com

SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
SSLCertificateFile /etc/pki/tls/certs/wildcard-makai.crt
SSLCertificateKeyFile /etc/pki/tls/private/wildcard-makai.key
SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
</pre>
<p>Note: This is very general, there&#8217;s a lot of other options that are missing here. This is to give you an idea of what it looks like.</p>
]]></content:encoded>
			<wfw:commentRss>http://honoluluhacker.com/2008/10/17/apache-ssl-with-2-ips-and-2-certificates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lighthouse, AM</title>
		<link>http://honoluluhacker.com/2008/10/13/lighthouse-am/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=lighthouse-am</link>
		<comments>http://honoluluhacker.com/2008/10/13/lighthouse-am/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 06:59:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Surf Journal]]></category>

		<guid isPermaLink="false">http://kenglish77.net/surfblog/index.php?entry=entry081013-205927</guid>
		<description><![CDATA[wow, it&#039;s been a long ass time. don&#039;t worry, i have forgetten about my fanclub, just busy with grad school. Nice day to be out though&#8230;]]></description>
			<content:encoded><![CDATA[<p>wow, it&#039;s been a long ass time. don&#039;t worry, i have forgetten about my fanclub, just busy with grad school. Nice day to be out though&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://honoluluhacker.com/2008/10/13/lighthouse-am/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>git: Get a single file from another repository</title>
		<link>http://honoluluhacker.com/2008/09/25/git-get-a-single-file-from-another-repository/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=git-get-a-single-file-from-another-repository</link>
		<comments>http://honoluluhacker.com/2008/09/25/git-get-a-single-file-from-another-repository/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 23:30:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://kenglish77.net/surfblog/index.php?entry=entry080925-133004</guid>
		<description><![CDATA[This is so easy it&#039;s almost stupid. Let&#039;s say want to copy a single file from b0 to another branch, b1, without doing a merge and all that crap. all you do is this: # change to b1get-checkout b1# checkout the single filegit-checkout b0 path/to/file Then you can do something like to see the differences: [...]]]></description>
			<content:encoded><![CDATA[<p>This is so easy it&#039;s almost stupid. Let&#039;s say want to copy a single file from b0 to another branch, b1, without doing a merge and all that crap. all you do is this:</p>
<p># change to b1<br />get-checkout b1<br /># checkout the single file<br />git-checkout b0 path/to/file </p>
<p>Then you can do something like to see the differences: </p>
<p>git-diff HEAD path/to/file </p>
<p>and when you are done:</p>
<p>git-commit -m &#8220;Commit it, baby&#8221; path/to/file </p>
<p>&#8220;Commit it, baby&#8221; as a comment is mandatory.</p>
]]></content:encoded>
			<wfw:commentRss>http://honoluluhacker.com/2008/09/25/git-get-a-single-file-from-another-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make irb remember your history with the irbrc</title>
		<link>http://honoluluhacker.com/2008/09/17/make-irb-remember-your-history-with-the-irbrc/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=make-irb-remember-your-history-with-the-irbrc</link>
		<comments>http://honoluluhacker.com/2008/09/17/make-irb-remember-your-history-with-the-irbrc/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 19:49:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://kenglish77.net/surfblog/index.php?entry=entry080917-094949</guid>
		<description><![CDATA[I always forget this one too. To make ruby&#039;s irb remember commands you entered in the last session(s), you need to add the following lines to /home/kenglish/.irbrc: require &#039;irb/completion&#039;require &#039;irb/ext/save-history&#039; IRB.conf[:SAVE_HISTORY] = 100IRB.conf[:HISTORY_FILE] = &#8220;#{ENV[&#039;HOME&#039;]}/.irb-save-history&#8221;IRB.conf[:PROMPT_MODE] = :SIMPLE Isn&#039;t IRB-RC an awesome name for a file? isn&#039;t Camber First]]></description>
			<content:encoded><![CDATA[<p>I always forget this one too. To make ruby&#039;s irb remember commands you entered in the last session(s), you need to add the following lines to /home/kenglish/.irbrc:</p>
<p>require &#039;irb/completion&#039;<br />require &#039;irb/ext/save-history&#039;</p>
<p>IRB.conf[:SAVE_HISTORY] = 100<br />IRB.conf[:HISTORY_FILE] = &#8220;#{ENV[&#039;HOME&#039;]}/.irb-save-history&#8221;<br />IRB.conf[:PROMPT_MODE]  = :SIMPLE</p>
<p>Isn&#039;t IRB-RC an awesome name for a file?</p>
<p>isn&#039;t <a href="http://first.camber.com" target="_blank" >Camber First</a></p>
]]></content:encoded>
			<wfw:commentRss>http://honoluluhacker.com/2008/09/17/make-irb-remember-your-history-with-the-irbrc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>git &#8211; adding e-mail alerts &amp; hooks</title>
		<link>http://honoluluhacker.com/2008/09/15/git-adding-e-mail-alerts-hooks/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=git-adding-e-mail-alerts-hooks</link>
		<comments>http://honoluluhacker.com/2008/09/15/git-adding-e-mail-alerts-hooks/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 00:04:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://kenglish77.net/surfblog/index.php?entry=entry080915-140421</guid>
		<description><![CDATA[Before you do anything, you may want to back up the file .git/hooks/post-receive in your project directory or at least view it to make sure that there&#039;s nothing in it. Now, get a copy of the git source code: git clone git://git.kernel.org/pub/scm/git/git.git Overwrite the post-receive in your hook folder with the file git/contrib/hooks/post-receive-email : cp [...]]]></description>
			<content:encoded><![CDATA[<p>Before you do anything, you may want to back up the file .git/hooks/post-receive in your project directory or at least view it to make sure that there&#039;s nothing in it.</p>
<p>Now, get a copy of  the git source code:</p>
<p>git clone git://git.kernel.org/pub/scm/git/git.git</p>
<p>Overwrite the post-receive in your hook folder with the file git/contrib/hooks/post-receive-email :</p>
<p>cp git/contrib/hooks/post-receive-email /var/data/repos/myproject/.git/hooks/post-receive</p>
<p>Now, go to your project home and add the git-config variable:</p>
<p>cd /var/data/repos/myproject/<br />git-config hooks.mailinglist &#8220;kenglish@someweakdomain.org&#8221;<br />git-config hooks.mailinglist &#8220;[GIT-MYPROJECT] &#8220;</p>
<p>Now test it out, do a git-commit -a on your repository and push it to the master. Should send an e-mail about the checkin.</p>
<p>BONUS:<br />By default, the script will just e-mail you that files have checked in. If you want to <a href="http://n2.nabble.com/-PATCH--Add-option-hooks.emaildiff-to-include-full-diff-in-post-receive-email.-td686798.html" target="_blank" >Email the diffs of the files themselves, </a> basically, copy the diff of from that guys post into your post-receive file. THen set hooks.emailprefix=1</p>
<p>with:<br />git-config hooks.emailprefix 1</p>
]]></content:encoded>
			<wfw:commentRss>http://honoluluhacker.com/2008/09/15/git-adding-e-mail-alerts-hooks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ignoring local changes</title>
		<link>http://honoluluhacker.com/2008/09/11/ignoring-local-changes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ignoring-local-changes</link>
		<comments>http://honoluluhacker.com/2008/09/11/ignoring-local-changes/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 00:43:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://kenglish77.net/surfblog/index.php?entry=entry080911-144300</guid>
		<description><![CDATA[If You have something checked into the repository that you will change locally but never want to check back in, you can do this: git update-index &#8211;assume-unchanged config/initializers/ruby_inline.rb]]></description>
			<content:encoded><![CDATA[<p>If You have something checked into the repository that you will change locally but never want to check back in, you can do this:</p>
<p>git update-index &#8211;assume-unchanged config/initializers/ruby_inline.rb</p>
]]></content:encoded>
			<wfw:commentRss>http://honoluluhacker.com/2008/09/11/ignoring-local-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

