<?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>Big Bad Code &#187; snippet</title>
	<atom:link href="http://bigbadcode.com/category/snippet/feed/" rel="self" type="application/rss+xml" />
	<link>http://bigbadcode.com</link>
	<description>Don't blame me, I voted for Kodos</description>
	<lastBuildDate>Wed, 19 Aug 2009 21:49:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Just sitting here watching the logs go by.</title>
		<link>http://bigbadcode.com/2008/12/22/just-sitting-here-watching-the-logs-go-by/</link>
		<comments>http://bigbadcode.com/2008/12/22/just-sitting-here-watching-the-logs-go-by/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 00:12:01 +0000</pubDate>
		<dc:creator>jbloom</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://bigbadcode.com/?p=207</guid>
		<description><![CDATA[Some times while working on remote servers I need to watch various log files. Typically for something like this I&#8217;ll create an extremely simple script that watches all the logs at once, since the next time I&#8217;m on that machine I&#8217;ll probably have forgotten the paths in question.
Something like this:
tail -f /var/www/apache/access.log /var/www/apache/error.log
The problem with [...]]]></description>
			<content:encoded><![CDATA[<p>Some times while working on remote servers I need to watch various log files. Typically for something like this I&#8217;ll create an extremely simple script that watches all the logs at once, since the next time I&#8217;m on that machine I&#8217;ll probably have forgotten the paths in question.</p>
<p>Something like this:</p>
<pre>tail -f /var/www/apache/access.log /var/www/apache/error.log</pre>
<p>The problem with that approach is really long lines wrap and I usually just care about the far left of the file, so I&#8217;ve been looking for a way to turn off wrapping in tail. Unfortunately that seems to be impossible. I tried messing with my shell to kill the extra characters with this:</p>
<pre>echo -e "\e[?7l\c"</pre>
<p>But that was messing up other things. The best solution I&#8217;ve found so far is to use less with these options</p>
<pre>less +F -S /var/log/apache/access.log</pre>
<p>+F puts it in a tail like mode and -S chops the line to the screen width, the only drawback is that it doesn&#8217;t intersperse the 2 files like tail does. I was hoping to pipe tails input into less in the this fashion but that didn&#8217;t seem to work right either.</p>
]]></content:encoded>
			<wfw:commentRss>http://bigbadcode.com/2008/12/22/just-sitting-here-watching-the-logs-go-by/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Duplicate music file finder code.</title>
		<link>http://bigbadcode.com/2008/01/21/duplicate-music-file-finder-code/</link>
		<comments>http://bigbadcode.com/2008/01/21/duplicate-music-file-finder-code/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 01:11:52 +0000</pubDate>
		<dc:creator>jbloom</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://bigbadcode.com/2008/01/21/duplicate-music-file-finder-code/</guid>
		<description><![CDATA[I&#8217;ve been consolidating my music collection and found that there were lots of duplicate files. 
Most of the dupes were named something like &#8220;Happy Birthday 1.mp3&#8243; and &#8220;Happy Birthday.mp3&#8243; would exist in the same directory. I&#8217;m not sure which program added these dupes, but removing 2500 or so of em by hand would not be [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been consolidating my music collection and found that there were lots of duplicate files. </p>
<p>Most of the dupes were named something like &#8220;Happy Birthday 1.mp3&#8243; and &#8220;Happy Birthday.mp3&#8243; would exist in the same directory. I&#8217;m not sure which program added these dupes, but removing 2500 or so of em by hand would not be fun. </p>
<p>Without further ado, here&#8217;s some python code that takes care of that problem for you. It only examines the filename, not the date or the bitrate or the actual file contents, etc. But you could of course extend it to do all those things. </p>
<p>Enjoy.</p>

<div class="wp_syntax"><div class="code"><pre class="python python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#-------------------------------------------------------------------------------</span>
<span style="color: #808080; font-style: italic;"># Name:        cleanDuplicateMusicFiles.py</span>
<span style="color: #808080; font-style: italic;"># Purpose:     Loops over a directory structure looking for 'duplicate' music files</span>
<span style="color: #808080; font-style: italic;">#				and moving them to a safe directory for deletion.</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># Author:      Joshua Bloom</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># Created:     01/18/2008</span>
<span style="color: #808080; font-style: italic;">#-------------------------------------------------------------------------------</span>
<span style="color: #808080; font-style: italic;">#!/usr/bin/env python</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">sys</span>
&nbsp;
dupList = <span style="color: black;">&#91;</span><span style="color: black;">&#93;</span>
rootDirectory = <span style="color: #483d8b;">&quot;/Users/joshbloom/Music/iTunes/iTunes Music&quot;</span>
sequesteredFilesDirectory = <span style="color: #483d8b;">&quot;/Users/joshbloom&quot;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> main<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Starting search ...&quot;</span>
    checkDir<span style="color: black;">&#40;</span>rootDirectory<span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Found %s dupes&quot;</span> <span style="color: #66cc66;">%</span> <span style="color: #008000;">len</span><span style="color: black;">&#40;</span>dupList<span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> checkDir<span style="color: black;">&#40;</span>path<span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Checking path '%s' for duplicates&quot;</span> <span style="color: #66cc66;">%</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">basename</span><span style="color: black;">&#40;</span>path<span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">for</span> item <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: black;">&#91;</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span>path, x<span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">for</span> x <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">listdir</span><span style="color: black;">&#40;</span>path<span style="color: black;">&#41;</span> <span style="color: black;">&#93;</span>:
        <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">isdir</span><span style="color: black;">&#40;</span>item<span style="color: black;">&#41;</span>:
            checkDir<span style="color: black;">&#40;</span>item<span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">else</span>:
            checkForDupe<span style="color: black;">&#40;</span>item<span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> checkForDupe<span style="color: black;">&#40;</span>fName<span style="color: black;">&#41;</span>:
	<span style="color: #483d8b;">''</span><span style="color: #483d8b;">'Example: if we find '</span>Happy Birthday 1.<span style="color: black;">mp3</span><span style="color: #483d8b;">' and '</span>Happy Birthday.<span style="color: black;">mp3</span><span style="color: #483d8b;">' exists in the
	same directory we consider this a duplicate and send it for re-education. '</span><span style="color: #483d8b;">''</span>
    fileName = <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">basename</span><span style="color: black;">&#40;</span>fName<span style="color: black;">&#41;</span>
    folderList = <span style="color: #dc143c;">os</span>.<span style="color: black;">listdir</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">dirname</span><span style="color: black;">&#40;</span>fName<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">if</span> fileName.<span style="color: black;">endswith</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;1.mp3&quot;</span><span style="color: black;">&#41;</span>:
        <span style="color: #ff7700;font-weight:bold;">for</span> otherName <span style="color: #ff7700;font-weight:bold;">in</span> folderList:
            <span style="color: #ff7700;font-weight:bold;">if</span> otherName <span style="color: #66cc66;">!</span>= fileName: <span style="color: #808080; font-style: italic;">#Make sure we aren't comparing with the current file</span>
                <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">basename</span> <span style="color: black;">&#40;</span>otherName<span style="color: black;">&#41;</span>.<span style="color: black;">startswith</span><span style="color: black;">&#40;</span>fileName<span style="color: black;">&#91;</span>:-<span style="color: #ff4500;">6</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>:
                    <span style="color: #808080; font-style: italic;">#This is a duplicate</span>
                    dupList.<span style="color: black;">append</span><span style="color: black;">&#40;</span>fName<span style="color: black;">&#41;</span>
                    sequesterDup<span style="color: black;">&#40;</span>fName<span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> sequesterDup<span style="color: black;">&#40;</span>fName<span style="color: black;">&#41;</span>:
    <span style="color: #483d8b;">''</span><span style="color: #483d8b;">' Move em to a new folder, if you were confident you could change
 		this function to delete the file. '</span><span style="color: #483d8b;">''</span>
    <span style="color: #ff7700;font-weight:bold;">try</span>:
        <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Moving file: %s&quot;</span> <span style="color: #66cc66;">%</span> fName
        <span style="color: #dc143c;">os</span>.<span style="color: black;">rename</span><span style="color: black;">&#40;</span>fName, <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span>sequesteredFilesDirectory, <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">basename</span><span style="color: black;">&#40;</span>fName<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span> <span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">except</span> <span style="color: #008000;">Exception</span>, E:
        <span style="color: #ff7700;font-weight:bold;">print</span> E
&nbsp;
<span style="color: #ff7700;font-weight:bold;">if</span> __name__ == <span style="color: #483d8b;">'__main__'</span>:
    main<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://bigbadcode.com/2008/01/21/duplicate-music-file-finder-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert m4a to mp3</title>
		<link>http://bigbadcode.com/2007/06/06/convert-m4a-to-mp3/</link>
		<comments>http://bigbadcode.com/2007/06/06/convert-m4a-to-mp3/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 14:15:41 +0000</pubDate>
		<dc:creator>jbloom</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[m4a]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://bigbadcode.com/2007/06/06/convert-m4a-to-mp3/</guid>
		<description><![CDATA[I&#8217;ve been moving a bunch of my brothers music out of iTunes for him so he can use it with portable players besides iPod. Unfortunately he encoded a lot of his cd&#8217;s in .m4a format. I found a decent utility for converting to mp3 (and other formats) http://www.bonkenc.org/
Unfortunately when you point Bonk at a directory [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been moving a bunch of my brothers music out of iTunes for him so he can use it with portable players besides iPod. Unfortunately he encoded a lot of his cd&#8217;s in .m4a format. I found a decent <a href="http://www.bonkenc.org/">utility for converting to mp3 (and other formats) http://www.bonkenc.org/</a></p>
<p>Unfortunately when you point Bonk at a directory full of m4a&#8217;s it crashes on certain files for some reason (encoding issues probably.) After the crash you need to setup all of your settings and add the files again, which is really time consuming and annoying.</p>
<p>To make this easier I whipped  up a short python script that calls Bonk for you on each file, if it runs into a bad file it will rename the file for you so you don&#8217;t try to process it again. </p>
<p>Here&#8217;s the python code:</p>

<div class="wp_syntax"><div class="code"><pre class="python python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">pprint</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">subprocess</span>
curDir = <span style="color: #dc143c;">os</span>.<span style="color: black;">getcwd</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span> <span style="color: #808080; font-style: italic;"># The current directory. This should contain your .m4a files</span>
pathToBonk = <span style="color: #483d8b;">&quot;C:<span style="color: #000099; font-weight: bold;">\\</span>Program Files<span style="color: #000099; font-weight: bold;">\\</span>BonkEnc<span style="color: #000099; font-weight: bold;">\\</span>becmd.exe&quot;</span> <span style="color: #808080; font-style: italic;">#Where the becmd.exe file lives</span>
problemFiles = <span style="color: black;">&#91;</span><span style="color: black;">&#93;</span> <span style="color: #808080; font-style: italic;">#A list of files that failed conversion</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #ff7700;font-weight:bold;">for</span> item <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #dc143c;">os</span>.<span style="color: black;">listdir</span><span style="color: black;">&#40;</span>curDir<span style="color: black;">&#41;</span>:
	<span style="color: #ff7700;font-weight:bold;">if</span> item.<span style="color: black;">upper</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">endswith</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'.M4A'</span><span style="color: black;">&#41;</span>:
		fullPath = <span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span>curDir,item<span style="color: black;">&#41;</span>
		<span style="color: #dc143c;">cmd</span> = <span style="color: #483d8b;">'&quot;%s&quot; -e LAME -d &quot;%s&quot; &quot;%s&quot;'</span> <span style="color: #808080; font-style: italic;">#The command to convert a single file</span>
		<span style="color: #dc143c;">cmd</span> = <span style="color: #dc143c;">cmd</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>pathToBonk, curDir, fullPath<span style="color: black;">&#41;</span>
		val = <span style="color: #dc143c;">subprocess</span>.<span style="color: black;">call</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">cmd</span><span style="color: black;">&#41;</span>
		<span style="color: #ff7700;font-weight:bold;">if</span> val == 0: <span style="color: #808080; font-style: italic;">#Successfull conversion, delete the original</span>
			<span style="color: #dc143c;">os</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span>fullPath<span style="color: black;">&#41;</span>
		<span style="color: #ff7700;font-weight:bold;">else</span>:
			problemFiles.<span style="color: black;">append</span><span style="color: black;">&#40;</span>fullPath<span style="color: black;">&#41;</span>
			<span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'Problem converting %s'</span> <span style="color: #66cc66;">%</span> item
			<span style="color: #dc143c;">os</span>.<span style="color: black;">rename</span><span style="color: black;">&#40;</span>fullPath, fullPath + <span style="color: #483d8b;">&quot;.BAD&quot;</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'These files had problems converting and have been renamed with .BAD extensions:'</span>
<span style="color: #dc143c;">pprint</span>.<span style="color: #dc143c;">pprint</span><span style="color: black;">&#40;</span>problemFiles<span style="color: black;">&#41;</span></pre></div></div>

<p>NOTES: This will <strong>delete </strong>the .m4a file after converting it. If you want to keep your old files for some reason make sure to run this on a copy of your files. IE in a different directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://bigbadcode.com/2007/06/06/convert-m4a-to-mp3/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Count the duplicates in a Python List</title>
		<link>http://bigbadcode.com/2007/04/04/count-the-duplicates-in-a-python-list/</link>
		<comments>http://bigbadcode.com/2007/04/04/count-the-duplicates-in-a-python-list/#comments</comments>
		<pubDate>Wed, 04 Apr 2007 20:33:13 +0000</pubDate>
		<dc:creator>jbloom</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://bigbadcode.com/2007/04/04/count-the-duplicates-in-a-python-list/</guid>
		<description><![CDATA[Here&#8217;s a nice little function I&#8217;ve written to report the number of duplicates in a python list.

from sets import Set
#
def countDuplicatesInList&#40;dupedList&#41;:
   uniqueSet = Set&#40;item for item in dupedList&#41;
   return &#91;&#40;item, dupedList.count&#40;item&#41;&#41; for item in uniqueSet&#93;
#
lst = &#91;'I1','I2','I1','I3','I4','I4','I7','I7','I7','I7','I7'&#93;
print countDuplicatesInList&#40;lst&#41;

The Set datatype is an unordered set that doesn&#8217;t allow duplicates, so the first [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a nice little function I&#8217;ve written to report the number of duplicates in a python list.</p>

<div class="wp_syntax"><div class="code"><pre class="python python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">sets</span> <span style="color: #ff7700;font-weight:bold;">import</span> Set
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #ff7700;font-weight:bold;">def</span> countDuplicatesInList<span style="color: black;">&#40;</span>dupedList<span style="color: black;">&#41;</span>:
   uniqueSet = Set<span style="color: black;">&#40;</span>item <span style="color: #ff7700;font-weight:bold;">for</span> item <span style="color: #ff7700;font-weight:bold;">in</span> dupedList<span style="color: black;">&#41;</span>
   <span style="color: #ff7700;font-weight:bold;">return</span> <span style="color: black;">&#91;</span><span style="color: black;">&#40;</span>item, dupedList.<span style="color: black;">count</span><span style="color: black;">&#40;</span>item<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">for</span> item <span style="color: #ff7700;font-weight:bold;">in</span> uniqueSet<span style="color: black;">&#93;</span>
<span style="color: #808080; font-style: italic;">#</span>
lst = <span style="color: black;">&#91;</span><span style="color: #483d8b;">'I1'</span>,<span style="color: #483d8b;">'I2'</span>,<span style="color: #483d8b;">'I1'</span>,<span style="color: #483d8b;">'I3'</span>,<span style="color: #483d8b;">'I4'</span>,<span style="color: #483d8b;">'I4'</span>,<span style="color: #483d8b;">'I7'</span>,<span style="color: #483d8b;">'I7'</span>,<span style="color: #483d8b;">'I7'</span>,<span style="color: #483d8b;">'I7'</span>,<span style="color: #483d8b;">'I7'</span><span style="color: black;">&#93;</span>
<span style="color: #ff7700;font-weight:bold;">print</span> countDuplicatesInList<span style="color: black;">&#40;</span>lst<span style="color: black;">&#41;</span></pre></div></div>

<p>The Set datatype is an unordered set that doesn&#8217;t allow duplicates, so the first line in the function adds each item in the original list to the Set. The set automatically throws out duplicates so we end up with a unique list.<br />
The next line creates a tuple of the unique item name and its count in the original list.</p>
<p>The output of the function will look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="python python" style="font-family:monospace;"><span style="color: black;">&#91;</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'I1'</span>, <span style="color: #ff4500;">2</span><span style="color: black;">&#41;</span>, <span style="color: black;">&#40;</span><span style="color: #483d8b;">'I3'</span>, <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>, <span style="color: black;">&#40;</span><span style="color: #483d8b;">'I2'</span>, <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>, <span style="color: black;">&#40;</span><span style="color: #483d8b;">'I4'</span>, <span style="color: #ff4500;">2</span><span style="color: black;">&#41;</span>, <span style="color: black;">&#40;</span><span style="color: #483d8b;">'I7'</span>, <span style="color: #ff4500;">5</span><span style="color: black;">&#41;</span><span style="color: black;">&#93;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://bigbadcode.com/2007/04/04/count-the-duplicates-in-a-python-list/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
