<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.5.2-alpha" -->
<rss version="0.92">
<channel>
	<title>Solutions Log</title>
	<link>http://solutions.treypiepmeier.com</link>
	<description>So I don't have to figure things out more than once.</description>
	<lastBuildDate>Thu, 03 Jul 2008 15:14:09 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Host a TextMate Bundle on GitHub</title>
		<description>Create a repository on GitHub

Go into the Bundle Editor and drag your bundle to your desktop and cd into it in the terminal.  This is the key to the whole thing.  If you just go into the bundle where it lives in TextMate, you might not get everything ...</description>
		<link>http://solutions.treypiepmeier.com/2008/06/23/textmate-bundle-on-github/</link>
			</item>
	<item>
		<title>Flagging a Post as Outdated Using Wordpress Custom Fields</title>
		<description>If you write a blog whose primary purpose is to help people find and remember information (mostly myself in this case), then it's probably a good idea to flag certain posts as out-of-date so as not to mislead people who are on a quest for knowledge.  That is, of ...</description>
		<link>http://solutions.treypiepmeier.com/2008/06/14/using-wordpress-custom-fields/</link>
			</item>
	<item>
		<title>Using Something Other Than the Site Root for a Wordpress Posts Page</title>
		<description>This is so you can use something like /blog/ for a list of your blog entries, and the home page for a static page (or something fancier).

Under Settings &#62; Reading &#62; Posts page, pick the page template you want to use.



If you're using a static page template for the home ...</description>
		<link>http://solutions.treypiepmeier.com/2008/06/09/wordpress-posts-page/</link>
			</item>
	<item>
		<title>Installing WordPress The Right Way</title>
		<description>svn co http://svn.automattic.com/wordpress/tags/[current_tag_number] [name_of_site]
cd [name_of_site]
touch .htaccess
chmod 666 .htaccess
cp wp-config-sample.php wp-config.php
cd wp-content/themes/
cp -R default [name_of_theme]
cd [name_of_theme]
rm -rf `find . -type d -name .svn`


Now import the content of wp-content/themes/[name_of_theme] into your choice of source code management systems and get to it.

Updating

 cd [name_of_site]
 svn sw http://svn.automattic.com/wordpress/tags/[new_tag_number]


Sources


Installing/Updating WordPress with Subversion
Changing File Permissions
Recursively delete ...</description>
		<link>http://solutions.treypiepmeier.com/2008/05/28/installing-wordpress-the-right-way/</link>
			</item>
	<item>
		<title>Starting a Magento Theme</title>
		<description>
Duplicate these folders:

app/design/frontend/default/default
skin/frontend/default/default


(Don't get me started about how awkward the folder structure is.)

Rename the duplicated folders to whatever you want (make them both the same).

FYI, the theme files under the app/ folder are for generated templates (things the system has to build when the site is viewed) and the theme ...</description>
		<link>http://solutions.treypiepmeier.com/2008/05/19/starting-a-magento-theme/</link>
			</item>
	<item>
		<title>Using Someone Else&#8217;s SVN Repository with Git</title>
		<description>If you have a repository URL that looks like this:

http://code.yourmom.com/project/trunk/


Issue this command (note that you leave off trunk/):

git svn clone -s http://code.yourmom.com/project/ project


After it's done, see how big it is:

du -hs project


And you'll see something like this:

20M project/


If it's particularly big, go into the folder and garbage collect:

cd project
git gc


From ...</description>
		<link>http://solutions.treypiepmeier.com/2008/03/29/using-someone-elses-svn-repository-with-git/</link>
			</item>
	<item>
		<title>Use Django&#8217;s Permalink Decorator with Generic Views</title>
		<description>The permalink decorator is the way to keep your URLs DRY.  The only place you need to define where something lives is in your urls.py.  In your templates, just point to {{ object.get_absolute.url }}.  The problem with how they tell you to do it in the book, ...</description>
		<link>http://solutions.treypiepmeier.com/2008/03/10/use-djangos-permalink-decorator-with-generic-views/</link>
			</item>
	<item>
		<title>Python Datatypes</title>
		<description>dictionary = {'a':'apple', 'b':'banana', 'c':'cat'}
    # Associative array / hash / array with non-numeric indices.
list = ['a', 'b', 'c']
    # Normal array with 0-based indices.
tuple = ('a', 'b', 'c')
    # Read-only array.


More&#8230;
 </description>
		<link>http://solutions.treypiepmeier.com/2008/03/05/python-datatypes/</link>
			</item>
	<item>
		<title>Django Template System Basics</title>
		<description>The long way


Load a template
Fill a Context
Return a HttpResponse object


Like so:

from django.template import Template, Context
from django.http import HttpResponse
...
t = get_template('current_datetime.html')
html = t.render(Context({'current_date': now}))
return HttpResponse(html)


The short way: render_to_response

Like so:

from django.shortcuts import render_to_response
...
return render_to_response('current_datetime.html', {'current_date': now})


Source:


The Django Book (pages 51, 52 of the print edition)

 </description>
		<link>http://solutions.treypiepmeier.com/2008/03/05/django-template-system-basics/</link>
			</item>
	<item>
		<title>Things you probably want to install to get the most out of Django</title>
		<description>Python Image Library (PIL)

Open and run:

sudo python setup.py install


Python Markdown library

Open and run:

sudo python setup.py install


See also.
 </description>
		<link>http://solutions.treypiepmeier.com/2008/02/26/things-you-probably-want-to-install-to-get-the-most-out-of-django/</link>
			</item>
</channel>
</rss>
