<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title><![CDATA[JC Web Concepts]]></title>
  <link href="http://jcwebconcepts.net/atom.xml" rel="self"/>
  <link href="http://jcwebconcepts.net/"/>
  <updated>2012-02-02T08:07:08-05:00</updated>
  <id>http://jcwebconcepts.net/</id>
  <author>
    <name><![CDATA[John Costanzo]]></name>
    
  </author>
  <generator uri="http://octopress.org/">Octopress</generator>

  
  <entry>
    <title type="html"><![CDATA[Using Git for SVN]]></title>
    <link href="http://jcwebconcepts.net/blog/2012/01/04/using-git-for-svn/"/>
    <updated>2012-01-04T15:01:00-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2012/01/04/using-git-for-svn</id>
    <content type="html"><![CDATA[<p>So I have switched from SVN to Git and I am very happy about it. When I am at work I am stuck using SVN and I hate it. So I learned about a command that git has called git svn. It allows me to clone an SVN repo and locally use Git for it. I can make my commits and keep things versioned via Git. When I am done I can then commit it to the SVN repo and nobody would know I used Git instead of SVN. What is nice is it will commit all the changes, not just one massive one. I have yet to run into and issue but that&#8217;s ok if I do. So if you are a Git user stuck in an SVN world, then this is the way to save yourself. Let me show you an example of how to use this.</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>git svn clone <span class="s2">&quot;urlToSVNrepository&quot;</span> <span class="s2">&quot;LocalLocationYouWantThis&quot;</span>
</span></code></pre></td></tr></table></div></figure>


<p>Example</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>git svn clone <span class="s2">&quot;http://svn.google.com/sampleTest&quot;</span> <span class="s2">&quot;sampleTest&quot;</span>
</span></code></pre></td></tr></table></div></figure>


<p>Now lets say your repository has a trunk, branches, and or tags, you can do something with them as well.</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>git svn clone <span class="s2">&quot;urlToSVNrepository&quot;</span> <span class="s2">&quot;LocalLocationYouWantThis&quot;</span> -T trunk -b branches -t tags
</span></code></pre></td></tr></table></div></figure>


<p>Example</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>git svn clone <span class="s2">&quot;http://svn.google.com/sampleTest&quot;</span> <span class="s2">&quot;sampleTest&quot;</span> -T trunk -b branches -t tags
</span></code></pre></td></tr></table></div></figure>


<p>So now you have your svn project using git, which is nice. What also is nice is your project no longer has a bunch of .svn folders like you see in SVN land. That should be one of many things that will make you want to do this. I will make tutorial video on this soon so stay tuned if you are interested.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[TextMate2 Alpha Intro]]></title>
    <link href="http://jcwebconcepts.net/blog/2011/12/14/textmate2-alpha-intro/"/>
    <updated>2011-12-14T11:03:00-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2011/12/14/textmate2-alpha-intro</id>
    <content type="html"><![CDATA[<p>So the other day, it was announced that the alpha release of TextMate2 was avaliable for licensed users of <a href="http://macromates.com/">TextMate</a> So I decided to make a little video on some of the changes that I have seen so far. I am excited what I have seen and look forward in helping making TextMate the best editor around.</p>

<iframe width="560" height="315" src="http://www.youtube.com/embed/wn8sivLHNtA" frameborder="0" allowfullscreen></iframe>



]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Switching to Octopress]]></title>
    <link href="http://jcwebconcepts.net/blog/2011/12/12/switching-to-octopress/"/>
    <updated>2011-12-12T07:36:00-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2011/12/12/switching-to-octopress</id>
    <content type="html"><![CDATA[<p>I have decided to leave the world of Wordpress, for the world of <a href="http://octopress.org/">Octopress</a>. I will have some tutorials on this blogging framework but there are some reasons I made this change. I think the biggest reason I changes was Octopress does not use a database. To me that is just a great performance boost. The application comes with some nice plugins like twitter, Github, and Google+.</p>

<p>Using one command like rake deploy, and it automatically pushes the compiled static content to my web server with <a href="http://www.1and1.com/?affiliate_id=195911">1and1</a> via rsync. I no longer have to login to an admin panel and use a bloated tool like Wordpress has. I can open vim or TextMate and start writing my post using Markdown. So go try it out. I think you guys and gals will love it.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Spotlight for Windows and Linux]]></title>
    <link href="http://jcwebconcepts.net/blog/2011/12/02/spotlight-for-windows-and-linux/"/>
    <updated>2011-12-02T07:54:40-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2011/12/02/spotlight-for-windows-and-linux</id>
    <content type="html"><![CDATA[<p>One of the nice features in MacOSX is the use of Spotlight. I hardly use icons
anymore and just hit command+space and type what I need. While I am in Gentoo
or Windows XP, I sorely miss this functionality. Well today I started to look
and found a nice tool called <a href="http://www.launchy.net">Launchy</a>.</p>

<p><img src="http://jcwebconcepts.net/images/posts/launchy.png" title="Launchy" ></p>

<p>This tool supports skinning and plugins to enhance the already nice tool. What
is nice is by default I can do math in it like I can do in spotlight. When I
want to call the tool I hit alt+space and it comes up. I will continue to play
with this tool but so far I love it.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[PHP Contact Form]]></title>
    <link href="http://jcwebconcepts.net/blog/2011/10/20/php-contact-form/"/>
    <updated>2011-10-20T06:02:18-04:00</updated>
    <id>http://jcwebconcepts.net/blog/2011/10/20/php-contact-form</id>
    <content type="html"><![CDATA[<p>I would like to take an opportunity to show you an example of how to developer
a simple php contact page. I will not use css or anything like that for this
tutorial. Just quick and dirty using the php mail function. Lets watch a
video, explaining the process</p>

<hr />

<iframe width="425" height="349" src="http://www.youtube.com/embed/EgNSbzY7_iU?hl=en&fs=1" frameborder="0" allowfullscreen></iframe>


<hr />

<p>Here is the code</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
<span class='line-number'>7</span>
<span class='line-number'>8</span>
<span class='line-number'>9</span>
<span class='line-number'>10</span>
<span class='line-number'>11</span>
<span class='line-number'>12</span>
<span class='line-number'>13</span>
<span class='line-number'>14</span>
<span class='line-number'>15</span>
<span class='line-number'>16</span>
<span class='line-number'>17</span>
<span class='line-number'>18</span>
<span class='line-number'>19</span>
<span class='line-number'>20</span>
<span class='line-number'>21</span>
<span class='line-number'>22</span>
<span class='line-number'>23</span>
<span class='line-number'>24</span>
<span class='line-number'>25</span>
<span class='line-number'>26</span>
<span class='line-number'>27</span>
<span class='line-number'>28</span>
<span class='line-number'>29</span>
<span class='line-number'>30</span>
<span class='line-number'>31</span>
<span class='line-number'>32</span>
<span class='line-number'>33</span>
<span class='line-number'>34</span>
<span class='line-number'>35</span>
<span class='line-number'>36</span>
<span class='line-number'>37</span>
<span class='line-number'>38</span>
<span class='line-number'>39</span>
<span class='line-number'>40</span>
<span class='line-number'>41</span>
<span class='line-number'>42</span>
<span class='line-number'>43</span>
<span class='line-number'>44</span>
<span class='line-number'>45</span>
<span class='line-number'>46</span>
<span class='line-number'>47</span>
<span class='line-number'>48</span>
<span class='line-number'>49</span>
<span class='line-number'>50</span>
</pre></td><td class='code'><pre><code class='php'><span class='line'><span class="x">&lt;html&gt;</span>
</span><span class='line'><span class="x">    &lt;head&gt;</span>
</span><span class='line'><span class="x">        &lt;title&gt;Contact Us&lt;/title&gt;</span>
</span><span class='line'><span class="x">    &lt;/head&gt;</span>
</span><span class='line'><span class="x">    &lt;body&gt;</span>
</span><span class='line'><span class="x">        </span><span class="cp">&lt;?php</span>
</span><span class='line'>            <span class="k">if</span><span class="p">(</span><span class="nv">$_SERVER</span><span class="p">[</span><span class="s1">&#39;REQUEST_METHOD&#39;</span><span class="p">]</span> <span class="o">!=</span> <span class="s1">&#39;POST&#39;</span><span class="p">)</span> <span class="p">{</span>
</span><span class='line'>                <span class="nv">$self</span> <span class="o">=</span> <span class="nv">$_SERVER</span><span class="p">[</span><span class="s1">&#39;PHP_SELF&#39;</span><span class="p">];</span>
</span><span class='line'>        <span class="cp">?&gt;</span><span class="x"></span>
</span><span class='line'><span class="x">            &lt;form method=&quot;post&quot; name=&quot;contactForm&quot; action=&quot;</span><span class="cp">&lt;?php</span> <span class="k">echo</span> <span class="nv">$self</span><span class="p">;</span> <span class="cp">?&gt;</span><span class="x">&quot;&gt;</span>
</span><span class='line'><span class="x">                &lt;table&gt;</span>
</span><span class='line'><span class="x">                    &lt;tr&gt;</span>
</span><span class='line'><span class="x">                        &lt;td&gt;Name: &lt;/td&gt;</span>
</span><span class='line'><span class="x">                        &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;cusName&quot; id=&quot;cusName&quot; /&gt;&lt;/td&gt;</span>
</span><span class='line'><span class="x">                    &lt;/tr&gt;</span>
</span><span class='line'><span class="x">                    &lt;tr&gt;</span>
</span><span class='line'><span class="x">                        &lt;td&gt;Email: &lt;/td&gt;</span>
</span><span class='line'><span class="x">                        &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;cusEmail&quot; id=&quot;cusEmail&quot; /&gt;&lt;/td&gt;</span>
</span><span class='line'><span class="x">                    &lt;/tr&gt;</span>
</span><span class='line'><span class="x">                    &lt;tr&gt;</span>
</span><span class='line'><span class="x">                        &lt;td&gt;What can I do for you? &lt;/td&gt;</span>
</span><span class='line'><span class="x">                        &lt;td&gt;&lt;textarea id=&quot;reason&quot; name=&quot;reason&quot; rows=&quot;8&quot; cols=&quot;40&quot;&gt;&lt;/textarea&gt;&lt;/td&gt;</span>
</span><span class='line'><span class="x">                    &lt;/tr&gt;</span>
</span><span class='line'><span class="x">                    &lt;tr&gt;</span>
</span><span class='line'><span class="x">                        &lt;td&gt;&lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;&lt;/td&gt;</span>
</span><span class='line'><span class="x">                        &lt;td&gt;&lt;input type=&quot;reset&quot; value=&quot;Reset&quot; /&gt;&lt;/td&gt;</span>
</span><span class='line'><span class="x">                    &lt;/tr&gt;</span>
</span><span class='line'><span class="x">                &lt;/table&gt;</span>
</span><span class='line'><span class="x">            &lt;/form&gt;</span>
</span><span class='line'><span class="x">        </span><span class="cp">&lt;?php</span>
</span><span class='line'>            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
</span><span class='line'>                <span class="nv">$name</span> <span class="o">=</span> <span class="nv">$_POST</span><span class="p">[</span><span class="s1">&#39;cusName&#39;</span><span class="p">];</span>
</span><span class='line'>                <span class="nv">$emailFrom</span> <span class="o">=</span> <span class="nv">$_POST</span><span class="p">[</span><span class="s1">&#39;cusEmail&#39;</span><span class="p">];</span>
</span><span class='line'>                <span class="nv">$reason</span> <span class="o">=</span> <span class="nv">$_POST</span><span class="p">[</span><span class="s1">&#39;reason&#39;</span><span class="p">];</span>
</span><span class='line'>                <span class="nv">$emailTo</span> <span class="o">=</span> <span class="s2">&quot;john@jcwebconcepts.net&quot;</span><span class="p">;</span>
</span><span class='line'>                <span class="nv">$subject</span> <span class="o">=</span> <span class="s2">&quot;Filled in form from website&quot;</span><span class="p">;</span>
</span><span class='line'>
</span><span class='line'>                <span class="nv">$header</span> <span class="o">=</span> <span class="s2">&quot;From: </span><span class="si">$name</span><span class="s2"> &lt;</span><span class="si">$emailFrom</span><span class="s2">&gt;</span><span class="se">\r\n</span><span class="s2">Reply-To: </span><span class="si">$emailFrom</span><span class="se">\r\n</span><span class="s2">&quot;</span><span class="p">;</span>
</span><span class='line'>                <span class="nv">$header</span> <span class="o">.=</span> <span class="s2">&quot;MIME-Version: 1.0</span><span class="se">\r\n</span><span class="s2">&quot;</span><span class="p">;</span>
</span><span class='line'>                <span class="nv">$header</span> <span class="o">.=</span> <span class="s2">&quot;Content-type:text/html;charset=iso-8859-1</span><span class="se">\r\n</span><span class="s2">&quot;</span><span class="p">;</span>
</span><span class='line'>
</span><span class='line'>                <span class="nv">$message</span> <span class="o">=</span> <span class="s2">&quot;From: #name, Email: </span><span class="si">$emailFrom</span><span class="s2">&lt;br /&gt;&lt;hr /&gt;</span><span class="si">$reason</span><span class="s2">&quot;</span><span class="p">;</span>
</span><span class='line'>
</span><span class='line'>                <span class="nb">mail</span><span class="p">(</span><span class="nv">$emailTo</span><span class="p">,</span> <span class="nv">$subject</span><span class="p">,</span> <span class="nv">$message</span><span class="p">,</span> <span class="nv">$header</span><span class="p">);</span>
</span><span class='line'>
</span><span class='line'>                <span class="k">echo</span> <span class="s2">&quot;Thank you for contacting us. Someone will get back to you as soon as we can. Thank you.&quot;</span><span class="p">;</span>
</span><span class='line'>            <span class="p">}</span>
</span><span class='line'>        <span class="cp">?&gt;</span><span class="x"></span>
</span><span class='line'><span class="x">    &lt;/body&gt;</span>
</span><span class='line'><span class="x">&lt;/html&gt;</span>
</span></code></pre></td></tr></table></div></figure>



]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Passing of Steve Jobs]]></title>
    <link href="http://jcwebconcepts.net/blog/2011/10/10/passing-of-steve-jobs/"/>
    <updated>2011-10-10T06:24:15-04:00</updated>
    <id>http://jcwebconcepts.net/blog/2011/10/10/passing-of-steve-jobs</id>
    <content type="html"><![CDATA[<p>As many bloggers have already done, we have lost someone this past week that
was dear to a lot of Mac fanboys. He will be missed but I am sure he was
working on his successor for a long time. I wonder how many people added to
their Netflix queue, &#8220;Pirates of Silicon Valley&#8221;? As I am sure everything in
that movie had some things that did not happen, Steve gained my respect. So
good luck Steve to where ever the road takes you. Good bye.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Setting up Blogofile]]></title>
    <link href="http://jcwebconcepts.net/blog/2011/06/04/blogofile/"/>
    <updated>2011-06-04T21:40:41-04:00</updated>
    <id>http://jcwebconcepts.net/blog/2011/06/04/blogofile</id>
    <content type="html"><![CDATA[<p><a href="http://www.blogofile.com">Blogofile</a> is a simple blogging engine that brings something nice without
the use of a database. I have been testing this out and I am starting to like
this. I have even been thinking of replacing it with this. I am really
enjoying this framework. Go ahead and watch this video below. After the video
I will post the step by step instructions just in case you do not want to
watch how to do it.</p>

<hr />

<iframe width="640" height="510" src="http://www.youtube.com/embed/EewaFKwnb_4" frameborder="0" allowfullscreen></iframe>


<hr />

<p>Here is the steps:</p>

<h3>On the server</h3>

<p>Install the python tool easy_install</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>sudo apt-get install
</span><span class='line'>python-setuptools
</span></code></pre></td></tr></table></div></figure>


<p>Install blogofile</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>sudo easy_install blogofile
</span></code></pre></td></tr></table></div></figure>


<p>If you do not have Git</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>sudo apt-get install git
</span></code></pre></td></tr></table></div></figure>


<p>Go to where you want the git repo to be installed and do the following</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>mkdir blogofile.git
</span><span class='line'><span class="nb">cd </span>blogofile.git
</span><span class='line'>git --bare init
</span></code></pre></td></tr></table></div></figure>


<p>Now configure the post-receive file</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>vim hooks/post-receive
</span><span class='line'><span class="nb">unset </span>GIT_DIR
</span><span class='line'><span class="nb">cd</span> /path/to/where/clone/repo/is
</span><span class='line'>git pull
</span><span class='line'>blogofile build
</span><span class='line'>cp -a _site/* /var/www
</span></code></pre></td></tr></table></div></figure>


<h3>Local computer</h3>

<p>Now lets go to your local computer to where you want the source files and do
the following</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
<span class='line-number'>7</span>
<span class='line-number'>8</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>mkdir blogofile
</span><span class='line'><span class="nb">cd </span>blogofile
</span><span class='line'>blogofile init simple_blog
</span><span class='line'>git init
</span><span class='line'>git add .
</span><span class='line'>git commit -m <span class="s2">&quot;Some message&quot;</span>
</span><span class='line'>git remote add origin username@yourservername:/path/to/repo/somerepo.git
</span><span class='line'>git push origin master
</span></code></pre></td></tr></table></div></figure>


<p>Now we need to setup our exclude file so we do not commit the _site folder.</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>vim .git/info/exclude
</span></code></pre></td></tr></table></div></figure>


<p>Now add this to the bottom of the file</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>_site/* _site/
</span></code></pre></td></tr></table></div></figure>


<p>Now if you want to test out your blog you will do the following:</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>blogofile build
</span><span class='line'>blogofile serve 8080
</span></code></pre></td></tr></table></div></figure>


<p>The 8080 can be any unused port you like. I hope this helped you as much as it
has helped me.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Dual boot MacBook 5,2 and Gentoo]]></title>
    <link href="http://jcwebconcepts.net/blog/2011/04/27/dual-boot-macbook-52-and-gentoo/"/>
    <updated>2011-04-27T09:32:45-04:00</updated>
    <id>http://jcwebconcepts.net/blog/2011/04/27/dual-boot-macbook-52-and-gentoo</id>
    <content type="html"><![CDATA[<p>One thing that I have always wanted to do was dual boot my Mac computer so I
could run Linux on real hardware instead of emulation. This tutorial is going
to show you how to accomplish this. A thing to note is you can do this with
any Linux distro. Also the Mac that was used in this tutorial was a 13 inch
White MacBook 5,2 version.</p>

<h2>Things needed for this process:</h2>

<ul>
<li>Boot manager: <a href="http://refit.sourceforge.net">rEFIt</a></li>
<li>Gentoo minimal ISO: <a href="http://mirrors.kernel.org/gentoo/releases/x86/autobuilds/current-iso/">Gentoo x86</a></li>
<li>USB keyboard and mouse</li>
<li>Wired internet connection</li>
</ul>


<h2>Partition HD</h2>

<ul>
<li><h3>Mac Already installed</h3>

<ul>
<li>Open boot camp assistant</li>
<li>Set the partition size to the size you want</li>
<li>When this is done go ahead and click quit and install later</li>
<li>At this point you are done with partitioning your drive</li>
</ul>
</li>
<li><h3>Mac not installed</h3>

<ul>
<li>Turn on your Mac and hold option key down until the selector comes up</li>
<li>Insert your Mac CD in and wait for it to show. Click on it</li>
<li>When cd is loaded you will what to open disk utilities in the menu up top</li>
<li>Click on your hard drive and then on the right click the partition tab</li>
<li>Under volume scheme you want to select two partitions</li>
<li>!!!!!!!Need to work on it ending of this part</li>
</ul>
</li>
</ul>


<p>You are down with the drive partition now. We now need to move into the boot
loader tool that is going to help us along the way</p>

<h2>rEFIt</h2>

<ul>
<li>Now go ahead and install the rEFIt appliacation</li>
<li>Note: There is nothing fancy with this install</li>
<li>Now reboot to verify that the boot loader app comes up. If it doesn&#8217;t, try rebooting again</li>
</ul>


<p>You are now done with the boot loader and we are now ready to install Gentoo</p>

<h2>Installing Gentoo</h2>

<p>After downloading and burning the ISO file to a disc you are ready, you are
ready to start. Plug in your USB keyboard for now, insert the gentoo disc you
burnt and restart. Remember to hold option key down so you get the option to
boot to your CD. Now I am not going to go thru all the steps to install
because this is well documented on Gentoo&#8217;s website. This can be found
<a href="http://www.gentoo.org/doc/en/handbook/handbook-x86.xml">here!</a></p>

<p>So lets highlight the sections that you need to make some adjustments since
you are not doing a typical dual boot on a regular PC</p>

<h3>Boot parameters</h3>

<p>When you get to the book parameters, you will want to type the following:
[bash]gentoo maxcpus=1 vga=791[/bash]</p>

<h3>Partition table</h3>

<p>Here is the partition setup I have and you are welcome to follow it. Now yours
might be different but should be close. If you are a cfdisk fan like I you
will need to open your sda parition in fdisk, to delete the partition created
by apple. Also do not worry about the warnings about unsupported GPT table.
Its ok, so here is what my partitions looks like after I am done setting up
the partitions that the guide tells us too</p>

<ul>
<li>sda1 - GPT</li>
<li>sda2 - Mac HFS/HFS+</li>
<li>sda3 - Linux root</li>
<li>sda4 - Linux swap</li>
</ul>


<p>After you are done with this you will want to type the following:</p>

<p>modprobe hid-apple This is done so your drivers get loaded for the apple
keyboard. At this point you can remove the USB keyboard.</p>

<p>When downloading the stage3, make sure you download the i686 one</p>

<p>Now I do not use the genkernel. If you follow the install guide you use ext2
for the boot partition. So for some reason the kernel does not have this
enabled so that is the only thing at this time I enable, beyond what is
already enabled. After you exit you will want to back up the .config file. I
like to do this so I can keep my kernel config files backed up.</p>

<p>When you are setting up your grub or lilo, you want to make sure on the kernel
line that you add the following:</p>

<p>[bash] maxcpus=1 [/bash]</p>

<h2>After Gentoo install</h2>

<p>After you are done installing and you reboot you will want to leave your
reboot until you get to the rEFIt menu. It does take a little bit to get to it
so do not be too concerned. When you get there select the partitioning tool.
You will get an error but that is ok. Hit any key and shut off your Mac. Now
turn it back on and when you hear the ding hold the option key. Select the
hard drive that says Windows. you should boot into Gentoo. If so then clap
your hands. Log in as root and restart your computer. Try going into your Mac
OS. If you can then you can go to rEFIt site and get the uninstall directions.
Congratulations, you have just installed and got Gentoo somewhat working on
your MacBook.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Media and Linux]]></title>
    <link href="http://jcwebconcepts.net/blog/2011/03/25/graphic-design-and-linux-2/"/>
    <updated>2011-03-25T07:12:34-04:00</updated>
    <id>http://jcwebconcepts.net/blog/2011/03/25/graphic-design-and-linux-2</id>
    <content type="html"><![CDATA[<p>This is part 6 of my using Linux for everything blog posts. Some time ago, if
you wanted to listen to music or watch videos, you ran into issues. Today&#8217;s
Linux has changed all that. Honestly the only issues I have had is that my
iTunes purchased content cannot be played. This is hugh since I do a lot of
purchasing of music on iTunes. If you do not use iTunes then this is not an
issue. So with this being said I would say that I could not make the switch to
Linux fully since I would lose the ability to watch my movies and listen to my
music. Maybe someday this block will not be here.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Setting up a Git Server]]></title>
    <link href="http://jcwebconcepts.net/blog/2011/03/12/setting-up-a-git-server/"/>
    <updated>2011-03-12T11:17:47-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2011/03/12/setting-up-a-git-server</id>
    <content type="html"><![CDATA[<p>Version control is something that a lot of developers use. I have been using
SVN for the longest time and ignoring Git. I found it confusing and I just
left it alone. I did the same thing before I started to use SVN. I thought I
would have learned by now. So take a look at the video below and I will also
put the steps at the end of the post.</p>

<hr />

<iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/1gNFrPNF9-Y" frameborder="0" allowfullscreen></iframe>


<hr />

<p>On where the master git server will be hosted</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>mkdir /home/git/somerepo.git
</span><span class='line'><span class="nb">cd</span> /home/git/somerepo.git
</span><span class='line'>git --bare init
</span></code></pre></td></tr></table></div></figure>


<p>Now lets go to your computer</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
<span class='line-number'>5</span>
<span class='line-number'>6</span>
<span class='line-number'>7</span>
<span class='line-number'>8</span>
<span class='line-number'>9</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>mkdir somerepo.git
</span><span class='line'><span class="nb">cd </span>somerepo.git
</span><span class='line'>git init
</span><span class='line'>**Create a README file or you can <span class="nb">type</span>:
</span><span class='line'>touch README
</span><span class='line'>git add .
</span><span class='line'>git commit -m <span class="s2">&quot;Some message&quot;</span>
</span><span class='line'>git remote add origin username@yourservername:somerepo.git
</span><span class='line'>git push origin master
</span></code></pre></td></tr></table></div></figure>


<p>Now this setup is just using the users that are already on the server. You can
setup that you do not need to type in password. You can create just a git
user. I hope that this tutorial has helped.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Graphic design and Linux]]></title>
    <link href="http://jcwebconcepts.net/blog/2011/02/26/graphic-design-and-linux/"/>
    <updated>2011-02-26T21:22:06-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2011/02/26/graphic-design-and-linux</id>
    <content type="html"><![CDATA[<p>This is part 5 of my using Linux for everything blog posts. As a web developer
I started to use Photoshop. As I started to use Linux I realized that I could
not use Photoshop to its fullest. So I then heard of GIMP. It is a nice tool
and it can get the job done. I just did not like the interface that came with
it. I also missed some features that were in photoshop.</p>

<p>As GIMP has grown it has started to become an app I could see myself using. So
for this part I would feel comfortable switching to pure Linux.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Web/Java/Selenium Development and Linux]]></title>
    <link href="http://jcwebconcepts.net/blog/2011/01/29/webjavaselenium-development-and-linux/"/>
    <updated>2011-01-29T21:34:35-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2011/01/29/webjavaselenium-development-and-linux</id>
    <content type="html"><![CDATA[<p>This is part 4 of my using Linux for everything blog posts. As of right now my
main job is writing Selenium automation using Java and my side job is web
development. So could Linux handle all of this with no issues. The answer is
no and I will tell you why. As a web developer selenium developer I need to
test sometimes against Internet Explorer and or Safari. You can look in my
previous post to read the reasons to why this is not possible for me to
emulate. Other than that I can install Eclipse and Java in Linux with no
issues. So writing my code I can be in Linux.</p>

<p>Web developing in Linux I again have no issues. I can pull up VIM and I will
be just fine. Even though I might miss TextMate since I have recently fell in
love with it.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Browsing and Linux]]></title>
    <link href="http://jcwebconcepts.net/blog/2011/01/26/browsing-and-linux/"/>
    <updated>2011-01-26T17:30:27-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2011/01/26/browsing-and-linux</id>
    <content type="html"><![CDATA[<p>So this is part 3 of my replace Linux everywhere blog. In this part we will be
discussing web browsing. So looking at browsers the only major browser that is
not in Linux is Internet Explorer. Now yes I could install <a href="http://www.winehq.org/" title="Winehq">Wine</a> or some
other emulator to solve this. But this is not going to solve this issue. Using
Wine there is something in me that states are we really seeing Internet
Explorer.  Now the only reason I need internet explorer is for work. With me
at the time doing QA work I need to test the quality of a website in Internet
Explorer. Now to be honest I have the same issue in Mac so Linux is not alone
here.</p>

<p>So, is there something I am missing here? Is there an solid option that would
allow me to get the real Internet Explorer experience? Look forward to hearing
your comments.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Email and Linux]]></title>
    <link href="http://jcwebconcepts.net/blog/2011/01/24/email-and-linux/"/>
    <updated>2011-01-24T18:05:06-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2011/01/24/email-and-linux</id>
    <content type="html"><![CDATA[<p>So continuing on with my series of the question if Linux can replace it all,
we are going to talk about email. For me I use e-mail at home and at work. For
home I use Gmail and at work I use Exchange. So with Gmail I have nothing to
worry about but with Exchange well there might be an issue. I have tried using
Evolution and it is very close but it just fails when it comes to Exchange.</p>

<p>Now maybe it has changed since I last used it but man, when I tried to bring
down my exchange account it just froze up. This was running Ubuntu 10.10. Now
to be honest it was running in Parallels on my Mac which might be the cause.
Though I am not sure it is. I have talked about it with a few others and they
have stated the same issues.</p>

<p>So am I missing something? Is there another app that can save the day? If so
please comment and or send me a tweet.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Replace Linux Everywhere]]></title>
    <link href="http://jcwebconcepts.net/blog/2011/01/21/replace-linux-everywhere/"/>
    <updated>2011-01-21T12:32:35-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2011/01/21/replace-linux-everywhere</id>
    <content type="html"><![CDATA[<p>So a colleague and I have a long commute and we are always talking about Linux
and technology. We listen to podcasts after podcasts and in my mind I have
been thinking about something. Could I replace everything with Linux? I am
talking about computers, tablets, and or cell phones. I guess first let me
show you a small list of what I currently do with my computers.</p>

<ul>
<li>Email</li>
<li>Browsing</li>
<li>Web/Java/Selenium Development</li>
<li>Graphic design (Small amount)</li>
<li>Media</li>
<li>Work</li>
<li>etc&#8230;</li>
</ul>


<p>I could go on with some more but this is a good list for now. I would find it
very difficult to switch from my Mac to Linux. Now I know I am pretty much
using Linux but it is fine tuned and very hard to call Linux/Unix anymore.
Please I am not trying to write more blogs about Mac vs Linux. I want to use
these next few blog posts to possibly learn about Linux apps that might make
it easier to replace other computers with Linux.</p>

<p>So what are the people&#8217;s opinion on this? Do you think you could replace your
computers, tables, and or cell phones with a Linux device? Please stay tuned
to my blog as I will make posts for each bullet points I specified above.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[RabbitVCS SVN Client Linux]]></title>
    <link href="http://jcwebconcepts.net/blog/2010/12/13/rabbitvcs-svn-client-linux/"/>
    <updated>2010-12-13T09:45:25-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2010/12/13/rabbitvcs-svn-client-linux</id>
    <content type="html"><![CDATA[<p>If you have used SVN in the past in the Windows world, you are probably pretty
use too TortoiseSVN. It is a nice tool that integrates itself into the Windows
shell. In the Linux world you probably were using the command line to do these
things. Hey I understand I was doing that on my work computer when it was
running Linux. I have something in Linux that will get rid of this. RabbitVCS
is a client that integrates itself into Nautilus. It is pretty close to being
a clone to Tortoise and I really like it.</p>

<object width="640" height="385" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/eKPtky35FJ4?fs=1&amp;hl=en_US&amp;hd=1" /><param name="allowfullscreen" value="true" /><embed width="640" height="385" type="application/x-shockwave-flash" src="http://www.youtube.com/v/eKPtky35FJ4?fs=1&amp;hl=en_US&amp;hd=1" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object>



]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Using TextMate Over Eclipse?]]></title>
    <link href="http://jcwebconcepts.net/blog/2010/12/03/using-textmate-over-eclipse/"/>
    <updated>2010-12-03T12:06:01-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2010/12/03/using-textmate-over-eclipse</id>
    <content type="html"><![CDATA[<p>So as doing automation as my everyday job I find myself in the Eclipse IDE all
day. Now there are lots of advantages of using Eclipse but I hate that it is
so slow. One day I got so frustrated that I decided to try using my favorite
editor TextMate, to do my job. So I thought I would discuss both applications
and what I like and disliked. Please post comments or reply to me on twitter
with your comments.</p>

<p><strong>Eclipse</strong><br/>
This is a very popular tool that a lot over developers use for Java
programming. It has a lot of features to autocomplete method names. Code
refactoring is another nice tool that it has. If you are working with Maven
and TestNG it is also supported as well. The two biggest issues with Eclipse
is that it is slow and a big resource hog. Other than that it is not that bad.</p>

<p><strong>TextMate</strong><br/>
This is a popular text editor for the Mac. With its bundle support it is a
very nice tool to use. TextMate does have bundles that cover Maven and some
TestNG. The issues that I come up with is that autocomplete is limited in
TextMate. If I am referencing a page object and I want to call a method of
that page object, there is no autocomplete for that. This is the biggest
reason why I have trouble using TextMate as my editor for Selenium code. I
like TextMate cause it is small and is not a resource hog.</p>

<p>Again if I am missing something with TextMate, please let me know. I would
love to be able to get rid of Eclipse all together.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Commenting your code]]></title>
    <link href="http://jcwebconcepts.net/blog/2010/11/30/commenting-your-code/"/>
    <updated>2010-11-30T08:11:39-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2010/11/30/commenting-your-code</id>
    <content type="html"><![CDATA[<p>One of the things that a lot of people over look when coding is adding
comments to it. Everyone should comment their code and there is no reason why
you do not need comments. Even if you are writing something for your own use
you still should comment on that code. Here are a few reasons why you should
comment:</p>

<ul>
<li>Makes reading code easier.</li>
<li>Helps someone understand your code when they are new or have not read it recently.</li>
<li>It shows that you understand the standards of coding</li>
</ul>


<p>Commenting is one thing that I myself find that I lack but I work on it to
make sure its there. I am not stating that you have to comment every line but
you should try to keep it to every 4 to 5 lines. Be brief in your comments and
get to the point. So look at your code and see if there are comments there. If
not you should start to add some. I hope this helps.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Tour of TextMate]]></title>
    <link href="http://jcwebconcepts.net/blog/2010/10/29/tour-of-textmate/"/>
    <updated>2010-10-29T08:37:08-04:00</updated>
    <id>http://jcwebconcepts.net/blog/2010/10/29/tour-of-textmate</id>
    <content type="html"><![CDATA[<p>I wanted to get into showing you the basics of <a href="http://macromates.com/">TextMate</a>. If you talk to a
lot of Apple users and ask them what is the best text editor they will say
TextMate. At first I said wow paying for a text editor and I wish I did not do
that. If you want to see more go ahead and view their site or click the watch
video button below.</p>

<p>You can see TextMate in action <a href="http://macromates.com/screencasts">here</a>.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Moving your SVN repo]]></title>
    <link href="http://jcwebconcepts.net/blog/2010/10/29/moving-your-svn-repo/"/>
    <updated>2010-10-29T06:28:41-04:00</updated>
    <id>http://jcwebconcepts.net/blog/2010/10/29/moving-your-svn-repo</id>
    <content type="html"><![CDATA[<p>One of the things that I sometimes have to do is move an SVN repo to another
server or you just want to back it up. This tutorial will show you how to do
this.</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>svnadmin dump /pathToYourRepo &gt; reponame_dump
</span><span class='line'>
</span><span class='line'>Example: svnadmin dump /var/svn/mywebsite &gt; mywebsite_dump
</span></code></pre></td></tr></table></div></figure>


<p>So now you want to go move this file to your new server and create your
subversion repo. Make sure you use the same name as the old one. Go to folder
where you uploaded your dump file to and do the following:</p>

<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
</pre></td><td class='code'><pre><code class='bash'><span class='line'>svnadmin load /pathToYourRepo &lt; reponame_dump
</span><span class='line'>
</span><span class='line'>Example: svnadmin dump /var/svn/mywebsite &lt; mywebsite_dump
</span></code></pre></td></tr></table></div></figure>


<p>So there you go. In this tutorial I did not include setting up the subversion
server cause I made the assumption you know how to do this since you already
have an SVN repo setup.</p>
]]></content>
  </entry>
  
</feed>

