<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Official Kountr Blog</title>
	<atom:link href="http://kountr.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kountr.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<pubDate>Fri, 08 Aug 2008 08:08:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>IE, setAttribute, and Style</title>
		<link>http://kountr.wordpress.com/2008/07/06/ie-setattribute-and-style/</link>
		<comments>http://kountr.wordpress.com/2008/07/06/ie-setattribute-and-style/#comments</comments>
		<pubDate>Sun, 06 Jul 2008 09:46:13 +0000</pubDate>
		<dc:creator>Michael Artemiw</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kountr.wordpress.com/?p=35</guid>
		<description><![CDATA[I was using setAttribute to set the style attribute for some AJAX action on the site. It worked great in Firefox but when we tested on IE7 it did nothing.
I found some great information here.
It is all working now.
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was using setAttribute to set the style attribute for some AJAX action on the site. It worked great in Firefox but when we tested on IE7 it did nothing.</p>
<p>I found some great information <a href="http://www.quirksmode.org/bugreports/archives/2005/03/setAttribute_does_not_work_in_IE_when_used_with_th.html">here</a>.</p>
<p>It is all working now.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/kountr.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/kountr.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kountr.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kountr.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kountr.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kountr.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kountr.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kountr.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kountr.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kountr.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kountr.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kountr.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kountr.wordpress.com&blog=3249504&post=35&subd=kountr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kountr.wordpress.com/2008/07/06/ie-setattribute-and-style/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/martemiw-128.jpg" medium="image">
			<media:title type="html">martemiw</media:title>
		</media:content>
	</item>
		<item>
		<title>Great to See People Using the Site</title>
		<link>http://kountr.wordpress.com/2008/07/01/great-to-see-people-using-the-site/</link>
		<comments>http://kountr.wordpress.com/2008/07/01/great-to-see-people-using-the-site/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 05:38:15 +0000</pubDate>
		<dc:creator>Michael Artemiw</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kountr.wordpress.com/?p=33</guid>
		<description><![CDATA[I was following up on some links today and came across someone using Kountr.
http://grammar.quickanddirtytips.com/
I bumped into GrammerGirl on twitter and she gave us some great feedback after trying out the site. You can thank her for the reintroduction of uppercase letters on the site.
We can all use a little help with our writing, go check [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was following up on some links today and came across someone using Kountr.</p>
<p><a href="http://grammar.quickanddirtytips.com/">http://grammar.quickanddirtytips.com/</a></p>
<p>I bumped into GrammerGirl on twitter and she gave us some great feedback after trying out the site. You can thank her for the reintroduction of uppercase letters on the site.</p>
<p>We can all use a little help with our writing, go check out her podcasts and her new book, set to launch in a matter of days.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/kountr.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/kountr.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kountr.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kountr.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kountr.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kountr.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kountr.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kountr.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kountr.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kountr.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kountr.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kountr.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kountr.wordpress.com&blog=3249504&post=33&subd=kountr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kountr.wordpress.com/2008/07/01/great-to-see-people-using-the-site/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/martemiw-128.jpg" medium="image">
			<media:title type="html">martemiw</media:title>
		</media:content>
	</item>
		<item>
		<title>Big Change for Users</title>
		<link>http://kountr.wordpress.com/2008/06/27/big-change-for-users/</link>
		<comments>http://kountr.wordpress.com/2008/06/27/big-change-for-users/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 07:26:53 +0000</pubDate>
		<dc:creator>Michael Artemiw</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kountr.wordpress.com/?p=32</guid>
		<description><![CDATA[We started Kountr, simple. When first asked for persistent features we opted to use sessions and client side cookies to achieve these features. The Your Kounts and Your Recent sections were achieved this way.
Recently we added the notion of users. When you joined we would sweep up all the kounts you “owned” and make this [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We started Kountr, simple. When first asked for persistent features we opted to use sessions and client side cookies to achieve these features. The Your Kounts and Your Recent sections were achieved this way.</p>
<p>Recently we added the notion of users. When you joined we would sweep up all the kounts you “owned” and make this right in the database. For the last couple weeks I have been trying to maintain these two seperate systems for ownership of kounts.</p>
<p>Bugs and new feature requests have pushed me to remove the cookie based system. Now if you want to own your kounts, then you need to join the site. It is just about the easiest site to join. Provide a username and email and you are immediate joined and logged in. We email your password for the next time you need to login.</p>
<p>If you join Kountr and would like to take ownership of your kounts, just send us some feedback, which kounts, and we will make it right.</p>
<p>We appreciate your patience during these bumpy changes and hope you will enjoy and be inspired by the new features we are developing.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/kountr.wordpress.com/32/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/kountr.wordpress.com/32/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kountr.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kountr.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kountr.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kountr.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kountr.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kountr.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kountr.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kountr.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kountr.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kountr.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kountr.wordpress.com&blog=3249504&post=32&subd=kountr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kountr.wordpress.com/2008/06/27/big-change-for-users/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/martemiw-128.jpg" medium="image">
			<media:title type="html">martemiw</media:title>
		</media:content>
	</item>
		<item>
		<title>I Just Knew</title>
		<link>http://kountr.wordpress.com/2008/06/23/i-just-knew/</link>
		<comments>http://kountr.wordpress.com/2008/06/23/i-just-knew/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 08:16:56 +0000</pubDate>
		<dc:creator>Michael Artemiw</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kountr.wordpress.com/?p=31</guid>
		<description><![CDATA[I have had a data model for all of a week, maybe. And I want to replace it all. It just doesn&#8217;t scale. I have three ways to deal with the three different security related features I have implemented. So tonight I will do the biggest DB mod and data migration I have done to [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have had a data model for all of a week, maybe. And I want to replace it all. It just doesn&#8217;t scale. I have three ways to deal with the three different security related features I have implemented. So tonight I will do the biggest DB mod and data migration I have done to date. This will be a tough one. I&#8217;ll try to keep some notes going here as I go along.</p>
<p>Step one, take down the site.</p>
<p>Most important technical thing I learned this week;</p>
<p><strong>INSERT INTO <em>table_name </em>( <em>col1, col2, &#8230; </em>) SELECT ( <em>col1, col2, &#8230; ) </em>FROM <em>table_name2;</em></strong></p>
<p>This is just what I needed for my data migration. I am normalizing the DB so I needed to move partial data from one table to another. This saved my life. I might actually get to bed before 2 am now.</p>
<p>Second best technical thing I learned this week;</p>
<p><strong>UPDATE <em>table_name </em>SET <em>col </em>= <em>other_table.col2 </em>FROM <em>other_table</em> WHERE &#8230;</strong></p>
<p>So awesome! Inline Datamigration is a total possibility.</p>
<p>Third;</p>
<p><strong>SELECT * FROM <em>table1_name</em> t1, <em>table2_name</em> t2 where t1.<em>col1</em> = t2.<em>col2</em>;</strong></p>
<p>I am such a SQL newb.</p>
<p>Fourth, a ringer really, I learned this last week but didn&#8217;t blog about it.</p>
<p>Django model managers are awesome. They enable you to create much cleaner code. Basically you can move any DB related processing into the manager so that your views are written at a higher level. I will write about this more in the future.</p>
<p>I went live, had a couple issues, but overall that was a pretty smooth data migration. Quick lessons learned once the site was live;</p>
<ol>
<li>manager functions are not accessible by instances</li>
<li>don&#8217;t forget to include new models in your view files</li>
<li>the filter function cannot take expressions, not sure I am properly understanding how this works</li>
</ol>
<p>This was a pretty good evening. Started the migration around 10:15pm, it is 1:15am now and I am heading to bed. I have tested the site for 10 minutes but I need some real QA after I do something as big as this.</p>
<p>My next step will be to move iKount, and Privacy over to this new model. Then I will implement the visibility functionality with the same model. Some other cool features are just on the horizon.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/kountr.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/kountr.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kountr.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kountr.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kountr.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kountr.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kountr.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kountr.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kountr.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kountr.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kountr.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kountr.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kountr.wordpress.com&blog=3249504&post=31&subd=kountr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kountr.wordpress.com/2008/06/23/i-just-knew/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/martemiw-128.jpg" medium="image">
			<media:title type="html">martemiw</media:title>
		</media:content>
	</item>
		<item>
		<title>Django&#8217;s “order_by”</title>
		<link>http://kountr.wordpress.com/2008/06/17/djangos-%e2%80%9corder_by%e2%80%9d/</link>
		<comments>http://kountr.wordpress.com/2008/06/17/djangos-%e2%80%9corder_by%e2%80%9d/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 05:43:56 +0000</pubDate>
		<dc:creator>Michael Artemiw</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kountr.wordpress.com/?p=30</guid>
		<description><![CDATA[Django is awesome for all of the “we&#8217;ve already done it so you don&#8217;t have to” features. So I am always caught off guard when it falls short.
When you have a QuerySet you can use order_by to order the set before display. This is really handy. Unfortunately, you cannot instruct it to ignore the case [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Django is awesome for all of the “we&#8217;ve already done it so you don&#8217;t have to” features. So I am always caught off guard when it falls short.</p>
<p>When you have a QuerySet you can use order_by to order the set before display. This is really handy. Unfortunately, you cannot instruct it to ignore the case of the strings. Debugging this problem was even harder because I stored the strings in the DB as they were entered by users, but only display them in all lowercase on the website. I couldn&#8217;t figure out why the list was in two parts, both sorted correctly.</p>
<p>As a fix, I have set the strings to lowercase before they are written to the DB, and gone and changed the current ones to all lowercase. The SQL looks something like;</p>
<p><strong><em>update table set column=lower(column);</em></strong></p>
<p>Overall not a huge problem, but it would be pretty slick if Django allowed you to do;</p>
<p><em><strong>Count.objects.filter(&#8230;).order_by(&#8217;name&#8217;, &#8216;ignorecase&#8217;</strong></em></p>
<p>Hope I saved you some anguish.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/kountr.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/kountr.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kountr.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kountr.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kountr.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kountr.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kountr.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kountr.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kountr.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kountr.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kountr.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kountr.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kountr.wordpress.com&blog=3249504&post=30&subd=kountr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kountr.wordpress.com/2008/06/17/djangos-%e2%80%9corder_by%e2%80%9d/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/martemiw-128.jpg" medium="image">
			<media:title type="html">martemiw</media:title>
		</media:content>
	</item>
		<item>
		<title>Unhandled Exception</title>
		<link>http://kountr.wordpress.com/2008/06/15/unhandled-exception/</link>
		<comments>http://kountr.wordpress.com/2008/06/15/unhandled-exception/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 07:09:31 +0000</pubDate>
		<dc:creator>Michael Artemiw</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kountr.wordpress.com/?p=29</guid>
		<description><![CDATA[Never again.
If the browser gets an &#8220;Unhandled Exception&#8221; that means there is an exception occuring on the server that is not being caught. I guess many get caught by django and display as the normal error page, but there are some, I don&#8217;t know which, that sneak by and leave a totally useless error page.
In [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Never again.</p>
<p>If the browser gets an &#8220;Unhandled Exception&#8221; that means there is an exception occuring on the server that is not being caught. I guess many get caught by django and display as the normal error page, but there are some, I don&#8217;t know which, that sneak by and leave a totally useless error page.</p>
<p>In this case I had the added frustration that it didn&#8217;t happen on every computer, and it didn&#8217;t happen on my development box. I saw the problem on someone else&#8217;s computer, sent myself a note about it. When I got home and checked the problem was &#8220;solved&#8221; so I chocked it up to server error. It wasn&#8217;t until the traffic to the site fell of the face of the earth, and then a user sent me an email to say &#8220;what gives&#8221;, that I figured out there was a problem.</p>
<p>The problem is fixed now.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/kountr.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/kountr.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kountr.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kountr.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kountr.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kountr.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kountr.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kountr.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kountr.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kountr.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kountr.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kountr.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kountr.wordpress.com&blog=3249504&post=29&subd=kountr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kountr.wordpress.com/2008/06/15/unhandled-exception/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/martemiw-128.jpg" medium="image">
			<media:title type="html">martemiw</media:title>
		</media:content>
	</item>
		<item>
		<title>Security Model</title>
		<link>http://kountr.wordpress.com/2008/06/10/security-model/</link>
		<comments>http://kountr.wordpress.com/2008/06/10/security-model/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 05:50:47 +0000</pubDate>
		<dc:creator>Michael Artemiw</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kountr.wordpress.com/?p=28</guid>
		<description><![CDATA[Now that I have users, I can have the notion of ownership, and once granted ownership users will want to play with visibility and share with limited groups. This all gets very excited.
So what is the correct data model?
This post is just a mental note to self, of my current reasoning. I&#8217;d like to sleep [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Now that I have users, I can have the notion of ownership, and once granted ownership users will want to play with visibility and share with limited groups. This all gets very excited.</p>
<p>So what is the correct data model?</p>
<p>This post is just a mental note to self, of my current reasoning. I&#8217;d like to sleep on it before implementing.</p>
<p><strong>Keep It Simple</strong></p>
<p>Flat table, user_id, kount_id, permission_type, all ints.</p>
<p>It is a simple lookup to see if someone has the right permission. If the types of permissions permutates then I can do that without DB changes.</p>
<p>The open question is; Does this model scale? and how far?</p>
<p>I am a long way from needing to scale, and a simple, flat table should be relatively easy to migrate should a better, more scalable model, present itself.</p>
<p>I will ask one smart person about this before implementing. (This is a promise to all my future users who will not suffer from the capacity type problems plaguing Twitter)</p>
<p>Stay tuned, I&#8217;ll write more about this topic, soon.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/kountr.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/kountr.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kountr.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kountr.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kountr.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kountr.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kountr.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kountr.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kountr.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kountr.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kountr.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kountr.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kountr.wordpress.com&blog=3249504&post=28&subd=kountr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kountr.wordpress.com/2008/06/10/security-model/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/martemiw-128.jpg" medium="image">
			<media:title type="html">martemiw</media:title>
		</media:content>
	</item>
		<item>
		<title>A Confession</title>
		<link>http://kountr.wordpress.com/2008/06/08/a-confession/</link>
		<comments>http://kountr.wordpress.com/2008/06/08/a-confession/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 20:33:45 +0000</pubDate>
		<dc:creator>Michael Artemiw</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kountr.wordpress.com/?p=27</guid>
		<description><![CDATA[I have not had a proper backup routine in place for Kountr.
If the hard disk on my shared, remote server were to have been lost, all of the content on Kountr would have been lost with it. I have the application stored locally, but the DB is in one place.
I have setup a cron job [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have not had a proper backup routine in place for Kountr.</p>
<p>If the hard disk on my shared, remote server were to have been lost, all of the content on Kountr would have been lost with it. I have the application stored locally, but the DB is in one place.</p>
<p>I have setup a cron job on the server to dump the db nightly. I will run another cronjob on my computer to copy these dumps daily. Once the first one is complete I will go through the restore routine to make sure everything works.</p>
<p>In case anyone else is bootstrapping their own web app and don&#8217;t want to take the time to figure out the nightly back up here are some tips.</p>
<p>1. To create a nightly cronjob;</p>
<p>export EDITOR=vi</p>
<p>crontab -e</p>
<p>20 3 * * 0-6 command</p>
<p>This will run command at 3:20am everyday</p>
<p>2. Command for dumping a db and zipping it;</p>
<p>pg_dump -F t DBNAME | gzip &gt; FILENAME</p>
<p>3. Getting a date in the filename;</p>
<p>Insert $(date +%d%b%Y) in your filename string</p>
<p>Good luck.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/kountr.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/kountr.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kountr.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kountr.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kountr.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kountr.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kountr.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kountr.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kountr.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kountr.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kountr.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kountr.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kountr.wordpress.com&blog=3249504&post=27&subd=kountr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kountr.wordpress.com/2008/06/08/a-confession/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/martemiw-128.jpg" medium="image">
			<media:title type="html">martemiw</media:title>
		</media:content>
	</item>
		<item>
		<title>I Guess that Makes it Social</title>
		<link>http://kountr.wordpress.com/2008/06/07/i-guess-that-makes-it-social/</link>
		<comments>http://kountr.wordpress.com/2008/06/07/i-guess-that-makes-it-social/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 16:46:22 +0000</pubDate>
		<dc:creator>Michael Artemiw</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kountr.wordpress.com/?p=26</guid>
		<description><![CDATA[So I have finally exposed the user functionality. You can join, login, and logout. That is the extent of it. I have a back log of requests and bugs related to the user login functionality. I&#8217;ll be working on this over the next couple days and we will be doing a huge marketing push once [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So I have finally exposed the user functionality. You can join, login, and logout. That is the extent of it. I have a back log of requests and bugs related to the user login functionality. I&#8217;ll be working on this over the next couple days and we will be doing a huge marketing push once all that is in place.</p>
<p>Try it out and let us know what features you want to see now that you have an identity.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/kountr.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/kountr.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kountr.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kountr.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kountr.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kountr.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kountr.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kountr.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kountr.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kountr.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kountr.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kountr.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kountr.wordpress.com&blog=3249504&post=26&subd=kountr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kountr.wordpress.com/2008/06/07/i-guess-that-makes-it-social/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/martemiw-128.jpg" medium="image">
			<media:title type="html">martemiw</media:title>
		</media:content>
	</item>
		<item>
		<title>Where Should the Logic Go</title>
		<link>http://kountr.wordpress.com/2008/05/23/where-should-the-logic-go/</link>
		<comments>http://kountr.wordpress.com/2008/05/23/where-should-the-logic-go/#comments</comments>
		<pubDate>Fri, 23 May 2008 15:09:33 +0000</pubDate>
		<dc:creator>Michael Artemiw</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kountr.wordpress.com/?p=25</guid>
		<description><![CDATA[One of the features I added for someone was the days since last click, on a kount. Of course if the answer is 0, it reads “0 days ago” which, although true isn&#8217;t very smooth.
Someone suggested that if it is 0 it should just say “today”. This is an easy change to make, but I [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>One of the features I added for someone was the days since last click, on a <a href="http://www.kountr.com/kount/110/">kount</a>. Of course if the answer is 0, it reads “0 days ago” which, although true isn&#8217;t very smooth.</p>
<p>Someone suggested that if it is 0 it should just say “today”. This is an easy change to make, but I have an option. Currently I pass the number from the server to the template, where it is added to the string “ days ago” to produce the resultant phrase. Now I need to add logic to check for zero and change the string appropriately. I can do this logic in the template, or I can do it in the view and pass a string.</p>
<p>This isn&#8217;t a question of server vs. client because both of these will be executed on the server. It has to do whether this is presentation or not. I would argue that this is purely an issue of the presentation of the data, as such, it should be done in the template. I wasn&#8217;t sure when I started typing the post but I am sure now.</p>
<p>Use your views to serve up the raw data, as much as you can, and use the template for the presentation of that data. It is a soft rule because there are going to be cases where the power of python is necessary to solve the presentation of the information. I was working with date formats yesterday and I absolutely required the dateutil package to create the desired human readable date string. I couldn&#8217;t have done that presentation in the django template.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/kountr.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/kountr.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kountr.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kountr.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kountr.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kountr.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kountr.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kountr.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kountr.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kountr.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kountr.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kountr.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kountr.wordpress.com&blog=3249504&post=25&subd=kountr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://kountr.wordpress.com/2008/05/23/where-should-the-logic-go/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/martemiw-128.jpg" medium="image">
			<media:title type="html">martemiw</media:title>
		</media:content>
	</item>
	</channel>
</rss>