<?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>2013-02-02T23:25:30-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[Xdebug Basics Tutorial]]></title>
    <link href="http://jcwebconcepts.net/blog/2013/02/02/xdebug-basics-tutorial/"/>
    <updated>2013-02-02T23:10:00-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2013/02/02/xdebug-basics-tutorial</id>
    <content type="html"><![CDATA[<p>As promised, here is the basics tutorial of using xdebug in action.</p>

<iframe width="960" height="720" src="http://www.youtube.com/embed/9bV0_gk0fkk" frameborder="0" allowfullscreen></iframe>


<p>The one thing I forgot to mention in the video is that in Sublime Text, you need install the xdebug plug-in. Also here are the settings from my php.ini file</p>

<figure class='code'><figcaption><span>/etc/php.ini </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='ini'><span class='line'><span class="na">zend_extension</span><span class="o">=</span><span class="s">&quot;/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so&quot;</span>
</span></code></pre></td></tr></table></div></figure>


<p>and</p>

<figure class='code'><figcaption><span>/etc/php.ini </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>
</pre></td><td class='code'><pre><code class='ini'><span class='line'><span class="k">[xdebug]</span>
</span><span class='line'><span class="na">xdebug.idekey</span><span class="o">=</span><span class="s">&quot;macgdbp&quot;</span>
</span><span class='line'><span class="na">xdebug.remote_enable</span><span class="o">=</span><span class="s">On</span>
</span><span class='line'><span class="na">xdebug.var_display_max_children</span> <span class="o">=</span> <span class="s">999</span>
</span><span class='line'><span class="na">xdebug.var_display_max_data</span> <span class="o">=</span> <span class="s">99999</span>
</span><span class='line'><span class="na">xdebug.var_display_max_depth</span> <span class="o">=</span> <span class="s">100</span>
</span><span class='line'><span class="na">xdebug.remote_host</span><span class="o">=</span><span class="s">&quot;localhost&quot;</span>
</span><span class='line'><span class="na">xdebug.remote_port</span><span class="o">=</span><span class="s">9000</span>
</span><span class='line'><span class="na">xdebug.remote_handler</span><span class="o">=</span><span class="s">&quot;dbgp&quot;</span>
</span><span class='line'><span class="na">xdebug.remote_log</span><span class="o">=</span><span class="s">&quot;/tmp/xdebug.log</span>
</span></code></pre></td></tr></table></div></figure>

]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Xdebug]]></title>
    <link href="http://jcwebconcepts.net/blog/2013/02/02/xdebug/"/>
    <updated>2013-02-02T21:38:00-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2013/02/02/xdebug</id>
    <content type="html"><![CDATA[<p>As an automation developer, I have learned how to write code in Java. When I am having an issue, one of the nice things that you can do is debug your code, line by line. For the longest I had wished that something like this existed in PHP. I have come to find out that you can actually debug code, like I do in Java. This is such a helpful task because I do not have to waste time using var_dump and such on variables or results. In your apache/php server you need to install and or enable something called <a href="http://xdebug.org/">Xdebug</a>. I will work on a tutorial on how to use xdebug while writing code in Sublime Text 2. So keep an eye out on my blog and or <a href="http://www.youtube.com/jrock20041">YouTube</a> channel for this tutorial.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Bought An Android Phone]]></title>
    <link href="http://jcwebconcepts.net/blog/2012/08/08/bought-an-android-phone/"/>
    <updated>2012-08-08T22:11:00-04:00</updated>
    <id>http://jcwebconcepts.net/blog/2012/08/08/bought-an-android-phone</id>
    <content type="html"><![CDATA[<p>I finally took the plunge and converted from iPhone to Android. I just bought the Samsung Galaxy S3. I guess buying the Samsung Galaxy Tab 2 has made me make the change. It could also be due to the changes that are rumored for the iPhone 5. I have owned it for few days and so far I am liking it. In the following weeks I would like to post on how I am doing things that I use to do with my iPhone. I have read a few of these blog posts, but I am sure some would love to hear my perspective.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Terminal IDE for Android]]></title>
    <link href="http://jcwebconcepts.net/blog/2012/06/12/terminal-ide-for-android/"/>
    <updated>2012-06-12T10:29:00-04:00</updated>
    <id>http://jcwebconcepts.net/blog/2012/06/12/terminal-ide-for-android</id>
    <content type="html"><![CDATA[<p>I just purchased a <a href="http://www.amazon.com/Samsung-Galaxy-Tab-10-1-Inch-Wi-Fi/dp/B007M50PTM/ref=sr_1_1?ie=UTF8&amp;qid=1339511679&amp;sr=8-1">Samsung Galaxy Tab 2 10.1</a> and I am loving it. So since I am new I have been looking around for some good apps to use. I think I found one in an app called <a href="https://play.google.com/store/apps/details?id=com.spartacusrex.spartacuside&amp;hl=en">Terminal IDE</a>. This application brings a developmenting environment with Git support that I can do some web development work with it. I am not going to say I can replace my desktop or a laptop, but you can do some quick fixes with it. A good accessory to get with it is the <a href="http://www.amazon.com/Logitech-Tablet-Keyboard-Android-920-003390/dp/B0054L8N7M/ref=sr_1_1?s=electronics&amp;ie=UTF8&amp;qid=1339512202&amp;sr=1-1">Logitech bluetooth keyboard</a>. You will have to let me know in the comments below on what you think about this nice application.</p>

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



]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Web Development On Android]]></title>
    <link href="http://jcwebconcepts.net/blog/2012/05/29/web-development-on-android/"/>
    <updated>2012-05-29T14:51:00-04:00</updated>
    <id>http://jcwebconcepts.net/blog/2012/05/29/web-development-on-android</id>
    <content type="html"><![CDATA[<p>One of my latest purchases was an Android Samsung Galaxy Tablet 10.1. Unfortunately I have to get a replacement but it happens. So getting back on track I am new to an Android device. I found a great app on the Google Play Store, called <a href="https://play.google.com/store/apps/details?id=com.spartacusrex.spartacuside&amp;feature=search_result">Terminal IDE</a>. This app brings you access to the terminal and you have some nice commands to work with. A few to name is, Git, VIM, find, etc&#8230; Once I get my tablet back I will do a video demo to show it off.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Adobe Creative Cloud]]></title>
    <link href="http://jcwebconcepts.net/blog/2012/05/14/adobe-creative-cloud/"/>
    <updated>2012-05-14T14:30:00-04:00</updated>
    <id>http://jcwebconcepts.net/blog/2012/05/14/adobe-creative-cloud</id>
    <content type="html"><![CDATA[<p>Well this past week Adobe has launched their new cloud service called, <a href="http://www.adobe.com/products/creativecloud.html">Adobe Creative Cloud</a>. As of launch they are charging a monthly fee of $49.99 and I believe it is going to be well worth it. I will gladly pay that amount to get all of the Adobe products for both Windows and Mac. So lets say you wanted to buy a master collection copy of Adobe for both OS&#8217;es, you would be paying 2599.99 per OS. Yep that would cost you $5199.98 and that is for the current version. When a new version comes out you can pay and upgrade rate but still pay.</p>

<p>So with doing some simple math here, 5199.98/49.99=104. That would be almost 9 years to get what I would have paid for one version. I think I will gladly take that. I will let you guys decide but right now I think that is pretty much a steal. Thoughts?</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Octopress and Lion]]></title>
    <link href="http://jcwebconcepts.net/blog/2012/03/04/octopress-and-lion/"/>
    <updated>2012-03-04T13:01:00-05:00</updated>
    <id>http://jcwebconcepts.net/blog/2012/03/04/octopress-and-lion</id>
    <content type="html"><![CDATA[<p>I just bought a few weeks ago a new MacBook Pro and I love it. So now it was time to setup my computer to use rvm and Octopress. So I logged into the Mac App store and downloaded the newest version of Xcode and installed it. I then went to the Octopress webstite and followed the directions on setting up RVM.</p>

<p>I ran into several errors about make and gcc-4.2. So after searching around the internet I found some help. It appears that after version 4.1, Ruby and xcode do not play nice. So I downgraded my version of Xcode and had to install a <a href="https://github.com/kennethreitz/osx-gcc-installer/downloads">patch for gcc</a>. Lastly you will want to add the following to your bash_profile or your zshrc:</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'><span class="nb">export </span><span class="nv">CC</span><span class="o">=</span>/usr/bin/gcc-4.2
</span></code></pre></td></tr></table></div></figure>


<p>Now, just restart your terminal app and then go ahead and follow the <a href="http://octopress.org/docs/setup/">Octopress site</a> to finish setting it up.</p>
]]></content>
  </entry>
  
  <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>
  
</feed>
