<?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>ls /home/jeffrey &#187; Coding</title>
	<atom:link href="http://www.jeffreystone.net/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeffreystone.net</link>
	<description>A little of this and that with a fair dose of geek</description>
	<lastBuildDate>Sat, 04 Feb 2012 19:40:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Twitter Bootstrap: Move the Topbar</title>
		<link>http://www.jeffreystone.net/2012/01/29/twitter-bootstrap-move-the-topbar/</link>
		<comments>http://www.jeffreystone.net/2012/01/29/twitter-bootstrap-move-the-topbar/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 12:00:51 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Tutorial / Primers]]></category>
		<category><![CDATA[Twitter Bootstrap]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.jeffreystone.net/?p=269</guid>
		<description><![CDATA[Customizing Twitter Bootstrap can be confusing to those that do not understand CSS, and maybe even to those that do. One of the things I found was while I like the topbar, I didn&#8217;t always want it at the top of my page. Sometimes you want a logo at the top with the topbar just [...]]]></description>
			<content:encoded><![CDATA[<p>Customizing Twitter Bootstrap can be confusing to those that do not understand CSS, and maybe even to those that do. One of the things I found was while I like the topbar, I didn&#8217;t always want it at the top of my page. Sometimes you want a logo at the top with the topbar just below it. Moving the topbar is not something that is explicitly spelled out in the Twitter Bootstrap documentation so I wanted to share with you a simple way to do it. </p>
<p>Lets say you want to do something like this:</p>
<p><a href="http://www.jeffreystone.net/2012/01/29/twitter-bootstrap-move-the-topbar/topbar-demo/" rel="attachment wp-att-272"><img src="http://www.jeffreystone.net/wp-content/uploads/2012/01/topbar-demo.png" alt="" title="topbar-demo" width="600" height="296" class="aligncenter size-full wp-image-272" /></a></p>
<p>The easiest thing to do is simply override the topbar selectors. Because of the nature of cascading stye sheets we do not need to include every element included in the topbar selectors within the bootstrap.css file, just the ones we want to change. In this example I created my own CSS file with just the selectors with the elements I needed to modify. This is preferred to editing the bootstrap.css file directly because it enables you upgrade the bootstrap framework without breaking your customizations in the future. So I created a css file, I called mine style.css, and included the following in style.css file:</p>
<pre class="brush: css; title: Code Snippet; notranslate">
.topbar-wrapper {
  position: relative;
  height: 40px;
  margin: 0;

}

.topbar-wrapper .topbar {
  position: absolute;
  margin: 0;
}

.topbar-wrapper .topbar .topbar-inner {
  /* Rounded Top */
  -moz-border-radius-topleft:4px;
  -moz-border-radius-topright:4px;
  -webkit-border-top-left-radius:4px;
  -webkit-border-top-right-radius:4px;
  border-top-left-radius:4px;
  border-top-right-radius:4px;
}
</pre>
<p>Then to ensure your css overrides the bootstrap css all you have to do is include your css file after the bootstrap css file in the head section of your html. </p>
<pre class="brush: xml; title: Code Snippet; notranslate">
&lt;link rel=&quot;stylesheet&quot; href=&quot;css/bootstrap.min.css&quot; type=&quot;text/css&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;css/style.css&quot; type=&quot;text/css&quot; /&gt;
</pre>
<p>The last step is body of your html. Just include your logo, and/or div that you want to contain the content you wish to display above the topbar. Like this:</p>
<pre class="brush: xml; title: Code Snippet; notranslate">
&lt;div class=&quot;container&quot;&gt;
  &lt;a href=&quot;/&quot;&gt;&lt;img src=&quot;images/logo.png&quot; alt=&quot;Jeffrey Stone&quot; title=&quot;Jeffrey Stone&quot; &gt;&lt;/a&gt;
    &lt;div class=&quot;topbar-wrapper&quot; style=&quot;z-index: 5;&quot;&gt;
</pre>
<p>That all there is to it. Other customizations to Twitter Bootstrap can be carried out in the same way allowing you to customize Twitter Bootstrap to fit you next project. This code has only been tested with Twitter Bootstrap 1.4.</p>
<p>You can view the <a href="http://jeffreystone.net/demos/bootstrap-topbar/">live demo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreystone.net/2012/01/29/twitter-bootstrap-move-the-topbar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Time to Git Some Version Control</title>
		<link>http://www.jeffreystone.net/2012/01/24/time-to-git-some-version-control/</link>
		<comments>http://www.jeffreystone.net/2012/01/24/time-to-git-some-version-control/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 20:48:04 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Tutorial / Primers]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Primer]]></category>
		<category><![CDATA[Version Control]]></category>

		<guid isPermaLink="false">http://www.jeffreystone.net/?p=63</guid>
		<description><![CDATA[I know I&#8217;m a little late to the version control party, but up until now I have been using Subversion. Subversion is good, but when compared to Git it requires a lot of work to get going. For a quick comparison check out my previous post on getting Subversion setup on a local server. Git [...]]]></description>
			<content:encoded><![CDATA[<p>I know I&#8217;m a little late to the version control party, but up until now I have been using Subversion. Subversion is good, but when compared to <a href="http://git-scm.com/">Git</a> it requires a lot of work to get going. For a quick comparison check out my previous post on getting <a href="http://www.jeffreystone.net/2010/01/01/subversion-a-quick-primer/">Subversion setup on a local server</a>. </p>
<p><a href="http://git-scm.com/">Git</a> is a little more contained. No servers to setup. Actually not much setup at all until you want to publish your project at <a href="http://github.com/">Github</a>. </p>
<p>I am on a Mac so these instructions are for Mac, although its just as easy to setup on your PC. </p>
<p>First, you will need to grab git. You can find the dmg file at <a href="http://code.google.com/p/git-osx-installer/downloads/list?can=3&#038;q=&#038;sort=-uploaded&#038;colspec=Filename+Summary+Uploaded+Size+DownloadCount">code.google.com</a>. Or if you have macports installed on your system you can just do the following:</p>
<pre class="brush: bash; title: Code Snippet; notranslate">
sudo macport install git-core
</pre>
<p>Once you have that installed we will need to do a little configuration. The following commands just setup the default user and email that will be included in the git files. From the command line you will need to run:</p>
<pre class="brush: bash; title: Code Snippet; notranslate">
git config --global user.name &quot;Joe User&quot;
git config --global user.email &quot;joe@user.net&quot;
</pre>
<p>After that we are ready to setup project. You will want to do the next commands from the directory your project is in, so you will need to cd to the directory:</p>
<pre class="brush: bash; title: Code Snippet; notranslate">
cd /home/jeffrey/newproject
</pre>
<p>Once you are in the project directory run the following command to setup the repository. </p>
<pre class="brush: bash; title: Code Snippet; notranslate">
git init
</pre>
<p>After we have the repository setup we need to add the files. The following command add the files to the staging area.</p>
<pre class="brush: bash; title: Code Snippet; notranslate">
git add .
</pre>
<p>Now that the files are staged we need to commit the changes to the repository. What ever you put in the quotes should briefly describe the changes. </p>
<pre class="brush: bash; title: Code Snippet; notranslate">
git commit -m &quot;First Commit&quot;
</pre>
<p>After that everything is setup. After you make changes and are ready to update the repository just do the following. </p>
<pre class="brush: bash; title: Code Snippet; notranslate">
git add .
git commit -m &quot;Fixed typo in index.php&quot;
</pre>
<p>The period on the git add line simple means include all files. Instead of a period you could just specify a specific file as in &#8220;git add index.php&#8221;</p>
<p>Once you have got your initial repo going with git, now is time to start using it to it&#8217;s full intention. I suggest you read <a href="http://andrewburgess.ca/" target="_blank">Andrew Burgess&#8217;s</a> <a href="http://rockablepress.com/books/getting-good-with-git/" target="_blank">Getting Good with Git</a>. He goes into branching and checking out branches which is where the true power lies in my opinion. Git can literally manage multiple versions of your application in one directory. The files that are visible in that directory are set by Git and based on what branch you have checked out. Git makes it very simple way to manage your source code and without the headache of setting up a repository on a server. There is no reason why you couldn&#8217;t be using Git to manage your source code today even if you have no desire to ever push that code to a public repo like <a href="https://github.com/" target="_blank">Github</a>. </p>
<p><a href="http://git-scm.com/">Git</a> definitely makes version control easier. If you are struggling with the concept of version control and how to set it up and use check out <a href="http://git-scm.com/">git</a> and put <a href="http://andrewburgess.ca/" target="_blank">Andrew Burgess&#8217;s</a> <a href="http://rockablepress.com/books/getting-good-with-git/" target="_blank">Getting Good with Git</a> on your reading list. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreystone.net/2012/01/24/time-to-git-some-version-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Bootstrap</title>
		<link>http://www.jeffreystone.net/2012/01/20/twitter-bootstrap/</link>
		<comments>http://www.jeffreystone.net/2012/01/20/twitter-bootstrap/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 20:16:04 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Twitter Bootstrap]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.jeffreystone.net/?p=264</guid>
		<description><![CDATA[For a project at work I needed to standup a website that would become the basis of a suite of tools and turned to my old friend PHP. The initial scope was small so instead of using one of the many frameworks out there I wrote my own. The goal was to open source it [...]]]></description>
			<content:encoded><![CDATA[<p>For a project at work I needed to standup a website that would become the basis of a suite of tools and turned to my old friend PHP. The initial scope was small so instead of using one of the many frameworks out there I wrote my own. The goal was to open source it &#8211; and I might still &#8211;  because it was perfect for the small site yet was built on the MVC pattern. About the only features I included was the typical load helper, DB access, and error handling. The application ignited the imaginations of those using it and now it has morphed into something bigger. I have started refactoring the site to use the Zend Framework, but I also needed an admin area. </p>
<p>I am not a designer so one of the tasks that seems to drain my spirt is designing a layout. Don&#8217;t get me wrong. I am very opinionated about usability of a layout I just hate coding the layout. Then I stumbled on the <a href="http://twitter.github.com/bootstrap/" title="Twitter Bootstrap" target="_blank">Twitter Bootstrap</a> project. If you have not seen this open source project from the Twitter team you really need to&#8230; especially if you are like me and hate building the UI. I won&#8217;t go into the particulars because U trust you can all read for yourself. The Bootstrap framework has some great documentation. It basically contains 90% of everything you would need for the majority of sites and is easy to use. Customization is not as easy, but as long as you understand CSS you should be fine. </p>
<p>So if you need a new layout for your site or application I suggest checking it out. If it isn&#8217;t perfect it will at least be a great spring board. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreystone.net/2012/01/20/twitter-bootstrap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back Coding</title>
		<link>http://www.jeffreystone.net/2011/08/06/back-coding/</link>
		<comments>http://www.jeffreystone.net/2011/08/06/back-coding/#comments</comments>
		<pubDate>Sat, 06 Aug 2011 17:07:38 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.jeffreystone.net/?p=253</guid>
		<description><![CDATA[Well, I went about 2 weeks, maybe a little less, without spending the majority of my spare time coding. It wasn&#8217;t so much on purpose as it was a lack of time. That said, I have spent a good chunk of my free time this last week working on a couple of projects. First was [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I went about 2 weeks, maybe a little less, without spending the majority of my spare time coding. It wasn&#8217;t so much on purpose as it was a lack of time. That said, I have spent a good chunk of my free time this last week working on a couple of projects. </p>
<p>First was a redesign on <a href="http://www.katherinestone.net" title="katherinestone.net" target="_blank">katherinestone.net</a>. Previously the site was a simple photoblog. We updated it so it could not only have a portfolio but also a blog for news about her work, and a store. I think it looks good and does an excellent job of showing off her images. The change was in part due to her first solo photography show which officially opens today. </p>
<p>Second was a redesign of <a href="http://www.angel-photography.com" title="angel-photography.com" target="_blank">angel-photography.com</a>. The biggest reason behind the change was I wanted to not only get rid of the flash slideshow on the main page (I hate flash) but also update the site to HTML5/CSS3. I used <a href="http://jquery.com/" title="jquery.com" target="_blank">jQuery</a> to power the slideshow to ensure it was accesible on any computer or mobile device. The layout was slightly modified in the process to give it an updated look, but the majority of the content remains the same.</p>
<p>If you get a chance to check them out, let me know what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreystone.net/2011/08/06/back-coding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion: A Quick Primer</title>
		<link>http://www.jeffreystone.net/2010/01/01/subversion-a-quick-primer/</link>
		<comments>http://www.jeffreystone.net/2010/01/01/subversion-a-quick-primer/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 05:04:19 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Primer]]></category>

		<guid isPermaLink="false">http://www.jeffreystone.net/?p=5</guid>
		<description><![CDATA[I won&#8217;t bore you with what Subversion is. If you have found this post, then you already know what it is, perhaps you have even have tried to install it, or maybe even have used it. When I decided to setup a local Subversion server, I found that while there was several guides on how [...]]]></description>
			<content:encoded><![CDATA[<p>
I won&#8217;t bore you with what <a href="http://subversion.tigris.org/">Subversion</a> is. If you have found this post, then you already know what it is, perhaps you have even have tried to install it, or maybe even have used it.</p>
<p>
When I decided to setup a local <a href="http://subversion.tigris.org/">Subversion</a> server, I found that while there was several guides on how to do it, not one completely got me going. What follows is what worked for me. While it may not be 100% complete for you, I hope it does help point you in the right direction.</p>
<p>
For this guide I am using Ubuntu 8.04 LTS as my server. This guide assumes you have at least a good working knoweldge of Ubuntu, Linux, and are not afraid of the command line. With that in mind, let&#8217;s get going.</p>
<p><pre class="brush: bash; title: Code Snippet; notranslate">
 sudo apt-get install subversion libapache2-svn
</pre>
<p><pre class="brush: bash; title: Code Snippet; notranslate">
 sudo svnadmin create /path/to/repos/project
</pre>
<p>
Next you will want to setup the permissions on the repos you just created. First setup your login to the repo.</p>
<pre class="brush: bash; title: Code Snippet; notranslate">
 sudo vim /path-to-repos/project/conf/passwd
</pre>
<p>
At the end of the file add the a line in the format as the examples show in the file. <username> =
<password> For example:</p>
<pre class="brush: bash; title: Code Snippet; notranslate">
 jeff = password
</pre>
<p>
Personally I use the same login name I typically use the same username my linux user account is on the box. Next you need to edit the conf file.</p>
<pre class="brush: bash; title: Code Snippet; notranslate">
sudo vim /path-to-repos/project/conf/svnserve.conf
</pre>
<p>
Here we want to uncomment 3 lines and edit one so they are like this:</p>
<pre class="brush: bash; title: Code Snippet; notranslate">
anon-access = none
auth-access = write
password-db = passwd
</pre>
<p>
There is of course more options in the terms of security and such, but these basic settings will get you up and running. </p>
<p>
Now we need to start the server.</p>
<pre class="brush: bash; title: Code Snippet; notranslate">
sudo svnserve -d -r /path-to-repos
</pre>
<p>
After that we can now import our files. There is a couple of ways to do this. If you are doing this from the server where subversion is installed, you can use this command to import:</p>
<pre class="brush: bash; title: Code Snippet; notranslate">
sudo svn import /path-to-local-directory file:///path-to-repos/project --username username
</pre>
<p>
You should be promoted to enter the password you designated in the passwd file above.</p>
<p>
If you are doing this remotely from a linux machine you can use this command:</p>
<pre class="brush: bash; title: Code Snippet; notranslate">
sudo svn import /path-to-local-directory svn://svnserver/project --username username
</pre>
<p>
And if you want to upload your repo from a windows machine, you will need a subversion client. I use <a href="http://www.sliksvn.com/en/download">sliksvn</a>. From the command line I use the following to import:</p>
<pre class="brush: bash; title: Code Snippet; notranslate">
c:\ svn import -m &quot;project&quot; --force-log path-to-local-files svn://svnserver/project --username username
</pre>
<p><pre class="brush: bash; title: Code Snippet; notranslate">
svn co svn://svnserver/project /local-project-folder --username username
</pre>
<p>
To commit the changes:</p>
<pre class="brush: bash; title: Code Snippet; notranslate">
svn commit -m &quot;Saving Changes&quot; /local-project-folder
</pre>
<p>
There is a lot more to <a href="http://subversion.tigris.org/">Subversion</a>, but I hope that this guide has helped you your own copy up and running.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffreystone.net/2010/01/01/subversion-a-quick-primer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

