<?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>LukeJenkins.com</title>
	<atom:link href="http://www.lukejenkins.com/lj/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lukejenkins.com/lj</link>
	<description>Always something new to learn!</description>
	<lastBuildDate>Thu, 03 Nov 2011 05:59:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Android HTC EVO 4g</title>
		<link>http://www.lukejenkins.com/lj/web/android/android-htc-evo-4g/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=android-htc-evo-4g</link>
		<comments>http://www.lukejenkins.com/lj/web/android/android-htc-evo-4g/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 04:01:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[phone]]></category>

		<guid isPermaLink="false">http://www.lukejenkins.com/android/android-htc-evo-4g/</guid>
		<description><![CDATA[This is a post sent directly from my Android phone.  Sweet!]]></description>
			<content:encoded><![CDATA[<p>This is a post sent directly from my Android phone.  Sweet!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukejenkins.com/lj/web/android/android-htc-evo-4g/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sim linking Django Admin command</title>
		<link>http://www.lukejenkins.com/lj/web/web-development/sim-linking-django-admin-command/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sim-linking-django-admin-command</link>
		<comments>http://www.lukejenkins.com/lj/web/web-development/sim-linking-django-admin-command/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 05:04:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.lukejenkins.com/?p=398</guid>
		<description><![CDATA[sudo ln -s /var/lib/python-support/python2.5/django/bin/django-admin.py /usr/local/bin/]]></description>
			<content:encoded><![CDATA[<p>sudo ln -s /var/lib/python-support/python2.5/django/bin/django-admin.py /usr/local/bin/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukejenkins.com/lj/web/web-development/sim-linking-django-admin-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find Command</title>
		<link>http://www.lukejenkins.com/lj/web/web-development/ubuntu-find/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu-find</link>
		<comments>http://www.lukejenkins.com/lj/web/web-development/ubuntu-find/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 05:02:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.lukejenkins.com/?p=400</guid>
		<description><![CDATA[find {directory} -name '{filename}' find / -name 'django-admin.py' http://www.debuntu.org/how-to-find-files-on-your-computer-with-find]]></description>
			<content:encoded><![CDATA[<p><code><br />
find {directory} -name '{filename}'<br />
find / -name 'django-admin.py'</code></p>
<p>http://www.debuntu.org/how-to-find-files-on-your-computer-with-find</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukejenkins.com/lj/web/web-development/ubuntu-find/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Good intro to Drupal video</title>
		<link>http://www.lukejenkins.com/lj/web/content-management-systems/good-intro-to-drupal-video/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=good-intro-to-drupal-video</link>
		<comments>http://www.lukejenkins.com/lj/web/content-management-systems/good-intro-to-drupal-video/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 19:26:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Content Management Systems]]></category>
		<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://superbub.w02.winhost.com/lukejenkins.com/uncategorized/good-intro-to-drupal-video/</guid>
		<description><![CDATA[I found this to be a helpful video when working on this site: http://www.dailymotion.com/video/x4gfqu_introduction-to-drupal_tech.]]></description>
			<content:encoded><![CDATA[<p>I found this to be a helpful video when working on this site: <a href="http://www.dailymotion.com/video/x4gfqu_introduction-to-drupal_tech">http://www.dailymotion.com/video/x4gfqu_introduction-to-drupal_tech</a>.</p>
<p><span id="more-81"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukejenkins.com/lj/web/content-management-systems/good-intro-to-drupal-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing assets in Mephisto</title>
		<link>http://www.lukejenkins.com/lj/web/content-management-systems/fixing-assets-in-mephisto/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fixing-assets-in-mephisto</link>
		<comments>http://www.lukejenkins.com/lj/web/content-management-systems/fixing-assets-in-mephisto/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 19:25:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Content Management Systems]]></category>
		<category><![CDATA[Mephisto]]></category>

		<guid isPermaLink="false">http://superbub.w02.winhost.com/lukejenkins.com/uncategorized/fixing-assets-in-mephisto/</guid>
		<description><![CDATA[I found that the install went fine, but the assets appeared as broken images. This needed a couple things fixed. Assets are stored in a subfolder inside assets (mephisto/public/assets/www.example.com/{YEAR}/{MONTH}/{DAY}/{IMAGE NAME}). The asset URLs however do not include that subfolder (example.com/assets/{YEAR}/{MONTH}/{DAY}/{IMAGE NAME}). This is fixed in the second block of mod_rewrite code. That subfolder is the [...]]]></description>
			<content:encoded><![CDATA[<p>I found that the install went fine, but the assets appeared as broken images.  This needed a couple things fixed.</p>
<ol>
<li>Assets are stored in a subfolder inside assets (mephisto/public/assets/www.example.com/{YEAR}/{MONTH}/{DAY}/{IMAGE NAME}).  The asset URLs however do not include that subfolder (example.com/assets/{YEAR}/{MONTH}/{DAY}/{IMAGE NAME}).  This is fixed in the second block of mod_rewrite code.  That subfolder is the name of the your site (click on the &#8220;Sites&#8221; link in the admin area &#8211; &#8220;www.example.com&#8221;).</li>
<li>The images break if there is no www, so the first mod_rewrite looks at the domain and www if it is missing.</li>
</ol>
<p>Here is the vhost configuration:</p>
<pre><code>&lt;VirtualHost 11.22.33.44:80&gt;
    ServerName www.example.com:80
    ServerAlias example.com
    DocumentRoot /var/www/web1/web/mephisto/public

    RewriteEngine On

    # Redirect adding leading www to root domain if no subdomain
    RewriteCond %{HTTP_HOST} ^example.com$
    RewriteRule (.*) http://www.example.com$1 [R=301]

    # Redirect assets
    RewriteCond %{REQUEST_URI} ^/assets/.*$
    RewriteCond %{DOCUMENT_ROOT}/assets/%{HTTP_HOST}/$1 -f
    RewriteRule ^/assets/(.*)$ /assets/%{HTTP_HOST}/$1 [QSA,L]
&lt;/VirtualHost&gt;
</code></pre>
<p><span id="more-80"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukejenkins.com/lj/web/content-management-systems/fixing-assets-in-mephisto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mardown Language for Mephisto</title>
		<link>http://www.lukejenkins.com/lj/web/content-management-systems/mardown-language-for-mephisto/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mardown-language-for-mephisto</link>
		<comments>http://www.lukejenkins.com/lj/web/content-management-systems/mardown-language-for-mephisto/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 19:24:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Content Management Systems]]></category>
		<category><![CDATA[Mephisto]]></category>

		<guid isPermaLink="false">http://superbub.w02.winhost.com/lukejenkins.com/uncategorized/mardown-language-for-mephisto/</guid>
		<description><![CDATA[Well, I am not very familiar with the included markup languages included with Mephisto. I decided to give Markdown with Smarty Pants a try. I found that Daring Fireball had a good overview of the language.]]></description>
			<content:encoded><![CDATA[<p>Well, I am not very familiar with the included markup languages included with Mephisto.  I decided to give Markdown with Smarty Pants a try.  I found that <a href="http://daringfireball.net/projects/markdown/basics/">Daring Fireball</a> had a good overview of the language.</p>
<p><span id="more-79"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukejenkins.com/lj/web/content-management-systems/mardown-language-for-mephisto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript &#8211; back to previous page</title>
		<link>http://www.lukejenkins.com/lj/web/web-development/javascript-back-to-previous-page/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=javascript-back-to-previous-page</link>
		<comments>http://www.lukejenkins.com/lj/web/web-development/javascript-back-to-previous-page/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 19:23:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://superbub.w02.winhost.com/lukejenkins.com/uncategorized/javascript-back-to-previous-page/</guid>
		<description><![CDATA[The command to go back to the previous page &#60;a href="#" onclick="window.history.go(-1);"&#62;Go Back&#60;/a&#62; or &#60;a href="javascript:void(history.back());"&#62;Go Back&#60;/a&#62;]]></description>
			<content:encoded><![CDATA[<p>The command to go back to the previous page</p>
<p><code>&lt;a href="#" onclick="window.history.go(-1);"&gt;Go Back&lt;/a&gt;</code></p>
<p>or</p>
<p><code>&lt;a href="javascript:void(history.back());"&gt;Go Back&lt;/a&gt;</code></p>
<p><span id="more-78"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukejenkins.com/lj/web/web-development/javascript-back-to-previous-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving your rails app to production.</title>
		<link>http://www.lukejenkins.com/lj/web/web-development/moving-your-rails-app-to-production-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=moving-your-rails-app-to-production-2</link>
		<comments>http://www.lukejenkins.com/lj/web/web-development/moving-your-rails-app-to-production-2/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 19:22:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://superbub.w02.winhost.com/lukejenkins.com/uncategorized/moving-your-rails-app-to-production-2/</guid>
		<description><![CDATA[Definitely have trouble moving to production. make a new rails app in the web directory for that vhost. rails APP_NAME -d mysql move over the app, public, and vendor folders to the production server. Get latest schema from dev rake db:schema:dump Update the database.yml file Copy over schema file (found in db folder) Create new [...]]]></description>
			<content:encoded><![CDATA[<p>Definitely have trouble moving to production.</p>
<ol>
<li>
<p>make a new rails app in the web directory for that vhost.</p>
<blockquote>
<p>rails APP_NAME -d mysql</p>
</blockquote>
</li>
<li>
<p>move over the app, public, and vendor folders to the production server.</p>
</li>
<li>
<p>Get latest schema from dev</p>
<blockquote>
<p>rake db:schema:dump</p>
</blockquote>
</li>
<li>
<p>Update the database.yml file</p>
</li>
<li>
<p>Copy over schema file (found in db folder)</p>
</li>
<li>
<p>Create new database</p>
<blockquote>
<p>rake db:create RAILS_ENV=production</p>
</blockquote>
</li>
<li>
<p>Load schema</p>
<blockquote>
<p>rake db:schema:load RAILS<em>ENV=production   (This step didn&#8217;t work for me, so I created a migration added the schema contents into that migration and ran   rake db:migrate RAILS</em>ENV=production)</p>
</blockquote>
</li>
<li>
<p>Update apache configuration:</p>
<blockquote>
<p>pico /etc/apache2/apache2.conf</p>
</blockquote>
</li>
</ol>
<p>ServerName www.example.com:80     ServerAlias example.com     DocumentRoot /var/www/example.com/rails_app/public</p>
<pre><code>RewriteEngine On

# Redirect adding leading www to root domain if not subdomain specified
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule (.*) http://www.example.com$1 [R=301]
</code></pre>
<p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukejenkins.com/lj/web/web-development/moving-your-rails-app-to-production-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restarting ISPConfig</title>
		<link>http://www.lukejenkins.com/lj/web/linux-administration/restarting-ispconfig-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=restarting-ispconfig-2</link>
		<comments>http://www.lukejenkins.com/lj/web/linux-administration/restarting-ispconfig-2/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 19:21:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Administration]]></category>
		<category><![CDATA[ISPConfig]]></category>

		<guid isPermaLink="false">http://superbub.w02.winhost.com/lukejenkins.com/uncategorized/restarting-ispconfig-2/</guid>
		<description><![CDATA[This is the basic function for restarting ISPConfig. Remember that you will need to enter your SSL passphrase at this time if you have one. /etc/init.d/ispconfig_server start&#124;stop&#124;restart The server runs a seperate webserver at: https://www.example.com:81]]></description>
			<content:encoded><![CDATA[<p>This is the basic function for restarting ISPConfig.   Remember that you will need to enter your SSL passphrase at this time if you have one. /etc/init.d/ispconfig_server start|stop|restart</p>
<p>The server runs a seperate webserver at: https://www.example.com:81</p>
<p><span id="more-76"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukejenkins.com/lj/web/linux-administration/restarting-ispconfig-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby Field Types</title>
		<link>http://www.lukejenkins.com/lj/web/web-development/ruby-field-types-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ruby-field-types-2</link>
		<comments>http://www.lukejenkins.com/lj/web/web-development/ruby-field-types-2/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 19:21:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://superbub.w02.winhost.com/lukejenkins.com/uncategorized/ruby-field-types-2/</guid>
		<description><![CDATA[When inserting columns into the database you must select your field type. Here is a list of the main ones: binary boolean date datetime decimal float integer primary_key string (255 characters) text time timestamp]]></description>
			<content:encoded><![CDATA[<p>When inserting columns into the database you must select your field type.  Here is a list of the main ones:</p>
<ul>
<li>binary</li>
<li>boolean</li>
<li>date</li>
<li>datetime</li>
<li>decimal</li>
<li>float</li>
<li>integer</li>
<li>primary_key</li>
<li>string (255 characters)</li>
<li>text</li>
<li>time</li>
<li>timestamp</li>
</ul>
<p><span id="more-75"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukejenkins.com/lj/web/web-development/ruby-field-types-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

