<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>sublimated</title>
	<atom:link href="http://sublimated.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sublimated.wordpress.com</link>
	<description></description>
	<lastBuildDate>Fri, 06 Jan 2012 06:51:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sublimated.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>sublimated</title>
		<link>http://sublimated.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sublimated.wordpress.com/osd.xml" title="sublimated" />
	<atom:link rel='hub' href='http://sublimated.wordpress.com/?pushpress=hub'/>
		<item>
		<title>11 Oceans</title>
		<link>http://sublimated.wordpress.com/2011/12/15/11-oceans/</link>
		<comments>http://sublimated.wordpress.com/2011/12/15/11-oceans/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 03:52:09 +0000</pubDate>
		<dc:creator>Carson Reynolds</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[music]]></category>

		<guid isPermaLink="false">http://sublimated.wordpress.com/?p=382</guid>
		<description><![CDATA[The year in which wub-wave became clichéd at half the usual number of beats per minute. Standard Issue: (1) Real Estate [Days] (2) The Weeknd [House of Balloons] (3) tUnE-yArDs [w h o k i l l] (4) SBTRKT [SBTRKT] (5) The Field [Looping State of Mind] (6) Cults [Go Outside] (7) Neon Indian [Era [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=382&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The year in which wub-wave became clichéd at half the usual number of beats per minute.</p>
<p>Standard Issue:</p>
<p>(1) <a href="http://www.youtube.com/watch?v=4HWcViTXdYc">Real Estate [Days]</a><br />
(2) <a href="http://www.youtube.com/watch?v=yI-zb_aP0So">The Weeknd [House of Balloons]</a><br />
(3) <a href="http://www.youtube.com/watch?v=cbWqhITwgL0">tUnE-yArDs [w h o k i l l]</a><br />
(4) <a href="http://www.youtube.com/watch?v=o-X_s4Gx6b0">SBTRKT [SBTRKT]</a><br />
(5) <a href="http://www.youtube.com/watch?v=25utggLUjCU">The Field [Looping State of Mind]</a><br />
(6) <a href="http://www.youtube.com/watch?v=UXeLGCxJwhw">Cults [Go Outside]</a><br />
(7) <a href="http://www.youtube.com/watch?v=yU-3N-Vn8lk">Neon Indian [Era Extrana]</a><br />
(8) <a href="http://www.youtube.com/watch?v=7fYnfE5Cycg">Washed Out [Within and Without]</a><br />
(9) <a href="http://www.youtube.com/watch?v=SXFDQ6xRlqM">Starfucker [Reptilians]</a><br />
(10) <a href="http://www.youtube.com/watch?v=K6aHWgM74OQ">Royal Headache [Royal Headache]</a></p>
<p>Honorable Mention:</p>
<p>Star Slinger [Fabric Mix April 2011]<br />
Purity Ring [Ungirthed 7"]<br />
Shabazz Palaces [Black Up]<br />
Tycho [Dive]<br />
Cut Copy [Zonoscope]</p>
<p>Albums that I only really started listening to this year, but came out sometime before then:</p>
<p>Steve Reich [Music for 18 Musicians]<br />
Toro y Moi [Causers Of This]<br />
The Clean [Mixotheque NZ Vol. 1: Tally Ho!]<br />
Richard Wagner [Wilhelm Furtwängler dirige Richard Wagner]<br />
Small Black [New Chain]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sublimated.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sublimated.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sublimated.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sublimated.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sublimated.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sublimated.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sublimated.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sublimated.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sublimated.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sublimated.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sublimated.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sublimated.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sublimated.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sublimated.wordpress.com/382/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=382&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sublimated.wordpress.com/2011/12/15/11-oceans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d4690f2c1dc795511f3043f955ff819?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fool</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Cuda 4.0 on Ubuntu 11.04 64-bit</title>
		<link>http://sublimated.wordpress.com/2011/10/03/installing-cuda-4-0-on-ubuntu-11-04-64-bit/</link>
		<comments>http://sublimated.wordpress.com/2011/10/03/installing-cuda-4-0-on-ubuntu-11-04-64-bit/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 09:54:33 +0000</pubDate>
		<dc:creator>Carson Reynolds</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sublimated.wordpress.com/?p=370</guid>
		<description><![CDATA[Here are some rough notes describing my steps to get Cuda 4.0 installed and the SDK samples built on Ubuntu 11.04 (Natty Narwhal) 64-bit. I&#8217;ve cribbed some steps from Shenbo Yu&#8217;s instructions but installed components into &#8220;/opt&#8221;. First you must download the Cuda 4.0 install files. From there you want to get: devdriver_4.0_linux_64_270.41.19.run cudatoolkit_4.0.17_linux_64_ubuntu10.10.run gpucomputingsdk_4.0.17_linux.run<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=370&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here are some rough notes describing my steps to get Cuda 4.0 installed and the SDK samples built on Ubuntu 11.04 (Natty Narwhal) 64-bit. I&#8217;ve cribbed some steps from <a href="http://hdfpga.blogspot.com/2011/05/install-cuda-40-on-ubuntu-1104.html">Shenbo Yu&#8217;s instructions</a> but installed components into &#8220;/opt&#8221;. First you must download the <a href="http://developer.nvidia.com/cuda-toolkit-40">Cuda 4.0 install files</a>.</p>
<p>From there you want to get:</p>
<ul>
<li>devdriver_4.0_linux_64_270.41.19.run
<li>cudatoolkit_4.0.17_linux_64_ubuntu10.10.run
<li>gpucomputingsdk_4.0.17_linux.run
</ul>
<p><pre class="brush: bash;">
# turn off X
sudo stop gdm

# uninstall any previously installed Nvidia drivers
sudo apt-get --purge remove nvidia-*

# make all the installers executable
chmod +x ~/Downloads/*.run

# run the driver installer
sudo ~/Downloads/devdriver_4.0_linux_64_270.41.19.run

# reboot
sudo reboot

# install dependencies
sudo apt-get install libxi-dev libxmu-dev freeglut3-dev gcc-4.4 g++-4.4 build-essential

# install toolkit
sudo ~/Downloads/\
 cudatoolkit_4.0.17_linux_64_ubuntu10.10.run

# install SDK
sudo ~/Downloads/gpucomputingsdk_4.0.17_linux.run

# I use /opt/NVIDIA_GPU_Computing_SDK because
# I like my home directory uncluttered

# Set path variables
export PATH=$PATH:/usr/local/cuda/bin
# 32-bit would use lib instead of lib64
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/lib
# You probably want to append these to your .bashrc if you use cuda frequently

# install gcc 4.4 into a directory for nvcc to use
sudo mkdir /opt/gcc44
sudo ln -s /usr/bin/cpp-4.4 /opt/gcc44/cpp
sudo ln -s /usr/bin/gcc-4.4 /opt/gcc44/gcc
sudo ln -s /usr/bin/g++-4.4 /opt/gcc44/g++

# modify cuda to use this gcc 4.4 installation
sudo bash -c &quot;echo 'compiler-bindir = /opt/gcc44' &gt;&gt; /usr/local/cuda/bin/nvcc.profile&quot;

# Make the SDK examples
cd /opt/NVIDIA_GPU_Computing_SDK
sudo chown -R [username] .
make

# Try out an example
./C/bin/linux/release/smokeParticles
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sublimated.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sublimated.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sublimated.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sublimated.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sublimated.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sublimated.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sublimated.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sublimated.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sublimated.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sublimated.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sublimated.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sublimated.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sublimated.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sublimated.wordpress.com/370/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=370&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sublimated.wordpress.com/2011/10/03/installing-cuda-4-0-on-ubuntu-11-04-64-bit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d4690f2c1dc795511f3043f955ff819?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fool</media:title>
		</media:content>
	</item>
		<item>
		<title>Building OpenGazer 0.1.2 on OS X 10.6</title>
		<link>http://sublimated.wordpress.com/2011/09/20/building-opengazer-0-1-2-on-os-x-10-6/</link>
		<comments>http://sublimated.wordpress.com/2011/09/20/building-opengazer-0-1-2-on-os-x-10-6/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 07:02:47 +0000</pubDate>
		<dc:creator>Carson Reynolds</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sublimated.wordpress.com/?p=359</guid>
		<description><![CDATA[For a project in development we&#8217;ve been experimenting with OpenGazer. The system needs a bit of coaxing to work on OS X. To help other folks along here is a Makefile which works with the current version of OpenGazer.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=359&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For a project in development we&#8217;ve been experimenting with <a href="http://www.inference.phy.cam.ac.uk/opengazer/">OpenGazer</a>. The system needs a bit of coaxing to work on OS X. To help other folks along here is a Makefile which works with the current version of OpenGazer.</p>
<p><pre class="brush: bash;">

# Before running make you first need to do the following:

# sudo port install vxl gtkmm
# svn co https://opengazer.svn.sourceforge.net\
# /svnroot/opengazer

VXLLIB = /opt/local/lib/vxl/
VERSION = opengazer-0.1.2
CPPFLAGS = -Wall -g -O3
LINKER = -L$(VXLLIB) -L/opt/local/lib -lm -ldl -lvnl -lmvl -lvnl_algo -lvgl -lgthread-2.0 

INCLUDES = -L/opt/local/lib/vxl/ -I{/usr/local/include,/opt/local/include/vxl}{,/core,/vcl,/contrib/oxl}

sources = opengazer.cpp Calibrator.cpp GazeTrackerGtk.cpp HeadTracker.cpp LeastSquares.cpp EyeExtractor.cpp GazeTracker.cpp MainGazeTracker.cpp OutputMethods.cpp PointTracker.cpp FaceDetector.cpp GazeArea.cpp TrackingSystem.cpp GtkStore.cpp Containers.cpp GraphicalPointer.cpp Point.cpp utils.cpp BlinkDetector.cpp FeatureDetector.cpp Alert.cpp 

objects = $(patsubst %.cpp,%.o,$(sources))

%.o.depends: %.cpp
	g++ -MM $&lt; &gt; $@

%.o: %.cpp 
	g++ -c $(CPPFLAGS) -o $@ `pkg-config cairomm-1.0 opencv gtkmm-2.4 --cflags` $(INCLUDES) $&lt; 

opengazer: 	$(objects)
	g++ $(CPPFLAGS) -o $@ `pkg-config cairomm-1.0 opencv gtkmm-2.4 --libs`  $(LINKER) $^

include $(patsubst %.cpp,%.o.depends,$(sources))

TAGS: always
	etags *.cpp *.h

ship: always
	mkdir $(VERSION) || rm -fr $(VERSION)/*
	cp LICENSE README Makefile calpoints.txt haarcascade_frontalface_alt.xml $$(for file in $$(cat $(addsuffix .depends,$(objects))) ; do test -f $$file &amp;&amp; echo $$file ; done | sort -u) $(VERSION)/
	tar czf $(VERSION).tar.gz $(VERSION)
	cp $(VERSION).tar.gz README /home/ftp/pub/www/opengazer/

.PHONY: always ship

clean:
	rm -rf opengazer
	rm -rf *.o
	rm -rf *.o.depends

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sublimated.wordpress.com/359/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sublimated.wordpress.com/359/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sublimated.wordpress.com/359/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sublimated.wordpress.com/359/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sublimated.wordpress.com/359/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sublimated.wordpress.com/359/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sublimated.wordpress.com/359/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sublimated.wordpress.com/359/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sublimated.wordpress.com/359/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sublimated.wordpress.com/359/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sublimated.wordpress.com/359/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sublimated.wordpress.com/359/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sublimated.wordpress.com/359/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sublimated.wordpress.com/359/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=359&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sublimated.wordpress.com/2011/09/20/building-opengazer-0-1-2-on-os-x-10-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d4690f2c1dc795511f3043f955ff819?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fool</media:title>
		</media:content>
	</item>
		<item>
		<title>DIY Book Index Generation using Python</title>
		<link>http://sublimated.wordpress.com/2011/08/25/diy-book-index-generation-using-python/</link>
		<comments>http://sublimated.wordpress.com/2011/08/25/diy-book-index-generation-using-python/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 08:56:04 +0000</pubDate>
		<dc:creator>Carson Reynolds</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sublimated.wordpress.com/?p=347</guid>
		<description><![CDATA[Recently I published Devices Alter Perception 2010 in paperback format. I learned a bit about editing books and technical material when I studied Technical Communication as an undergraduate (although that department has since morphed into Human-Centered Design and Engineering). Working with Gunnar Green of TheGreenEyl, we took the PDFs supplied by workshop participants and reworked [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=347&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I published <a href="http://amzn.com/1463664249">Devices Alter Perception 2010</a> in paperback format. I learned a bit about editing books and technical material when I studied Technical Communication as an undergraduate (although that department has since morphed into Human-Centered Design and Engineering).</p>
<p>Working with <a href="http://www.gunnargreen.de/">Gunnar Green</a> of <a href="http://www.thegreeneyl.com/">TheGreenEyl</a>, we took the PDFs supplied by workshop participants and reworked the text and layout using InDesign 5. While InDesign can <a href="http://help.adobe.com/en_US/indesign/cs/using/WSBB6698B3-6E51-4d57-A6FF-3C478436C963a.html">&#8220;generate&#8221; an index</a>, it actually needs a set of keywords. InDesign really just renders the index and isn&#8217;t smart enough to figure out what words should be included.</p>
<p>At this point I did a bit of research into what is available for <a href="http://www.jalamb.com/diyresources.html">index generation</a>. Over on MetaFilter you drop in to an <a href="http://ask.metafilter.com/4835/How-do-I-create-a-book-index">informative thread</a> about the variety of options. You might want to hire a professional indexer or pay for some software. But if you are like me you might start to view index generation as a very simple pattern recognition problem.</p>
<p>What follows are some building blocks for index generation written in Python and using nltk. I used them to generate an index for the multi-author workshop proceedings book mentioned above. The instructions assume you have Python and nltk installed on your computer.</p>
<p>Step 1:</p>
<p>Get your text into plaintext format with a decent encoding. I&#8217;d recommend UTF-8 as it has good unicode support. For convenience I&#8217;ve named this plaintext file &#8220;book.txt&#8221;.</p>
<p>Step 2:</p>
<p>Start simple by just making a histogram of the words appearing in the text. I wanted to just make a CSV file that I could open in Excel, Numbers, Mathematica or R. After looking over the most frequently occurring words, I was able to manually screen out parts of speech, punctuation and find the words which were meaningful to my book.</p>
<p>The following code opens up a file book.txt and prints out a comma-seperated list consisting of the term frequency and the term itself:</p>
<p><pre class="brush: python;">
import nltk
from nltk import word_tokenize
import operator
from collections import defaultdict

text = open('book.txt').read()
words = word_tokenize(text)

# improvement due to patch by Paul Masurel
frequencies = defaultdict(int)

for w in words:
    frequencies[w] += 1

# sort the list before printing
for word, freq in sorted(frequencies.iteritems(), key=operator.itemgetter(1)):
    print str(freq) + &quot;,&quot; + word
</pre></p>
<p>Step 3:</p>
<p>Looking over a typical book, one quickly realizes that a hefty part of a good index consists in multiple word phrases. And so I also built some programs to identify the most frequently occurring pairs of words (also known as bigrams):<br />
<pre class="brush: python;">
import nltk
from nltk.collocations import *
from nltk.probability import *
from nltk import word_tokenize

from collections import defaultdict

text=open('book.txt').read()
words = word_tokenize(text)

bigram_measures = nltk.collocations.BigramAssocMeasures()
finder = BigramCollocationFinder.from_words(words)
finder.apply_freq_filter(3)

print finder.nbest(bigram_measures.pmi, 50)
</pre></p>
<p>A program to find trigrams is quite similar:<br />
<pre class="brush: python;">

from nltk.collocations import *
from nltk.probability import *
from nltk import word_tokenize

text=open('book.txt').read()
words = word_tokenize(text)

trigram_measures = nltk.collocations.TrigramAssocMeasures()
finder = TrigramCollocationFinder.from_words(words)
finder.apply_freq_filter(2)

print finder.nbest(trigram_measures.pmi, 50)
</pre></p>
<p>Step 4:</p>
<p>Combining the output of Steps 2 and 3 I created a list of 1-3 word keywords.  Were I not in such a rush to get the book to press I might have paused to make output format of the bigram and trigram code similar to the CSV file, but I found that I only used a small number of phrases from this analysis which was easy enough to copy by hand. I then in my spreadsheet program whittled these lists down to a final index list which can be sorted alphabetically. If you&#8217;d rather not use a a spreadsheet the following script can alphabetize for you:</p>
<p><pre class="brush: python;">
#!/usr/bin/python

import sys

if len(sys.argv) &lt; 3:
    print &quot;usage: alphabetize.py [input filename] [output filename]&quot;
    exit(-1)

inputFile = open(sys.argv[1], &quot;r&quot;)
outputFile = open(sys.argv[2], &quot;w&quot;)

for line in sorted(inputFile, key = str.lower):
    outputFile.write(line)   
</pre></p>
<p>While these tools are a bit primitive, they do give you a bit more insight into how the index itself is built and thus allow you make your own decisions about what will be indexed. Think of them as helper tools to narrow down the list of candidates you might want to include based on frequency.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sublimated.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sublimated.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sublimated.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sublimated.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sublimated.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sublimated.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sublimated.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sublimated.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sublimated.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sublimated.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sublimated.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sublimated.wordpress.com/347/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sublimated.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sublimated.wordpress.com/347/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=347&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sublimated.wordpress.com/2011/08/25/diy-book-index-generation-using-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d4690f2c1dc795511f3043f955ff819?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fool</media:title>
		</media:content>
	</item>
		<item>
		<title>Re-titling a Mathematica Notebook Window</title>
		<link>http://sublimated.wordpress.com/2011/06/25/re-titling-a-mathematica-notebook-window/</link>
		<comments>http://sublimated.wordpress.com/2011/06/25/re-titling-a-mathematica-notebook-window/#comments</comments>
		<pubDate>Sat, 25 Jun 2011 09:31:56 +0000</pubDate>
		<dc:creator>Carson Reynolds</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sublimated.wordpress.com/?p=343</guid>
		<description><![CDATA[Mathematica&#8217;s manipulable interactive graphics can be built so quickly. This causes me to favor it for visualizations involving equations. However, other things are far too brittle, which might have something to do with the closed-sourced culture that produced Mathematica. Suppose you want to have a new window title for a notebook you get from someone [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=343&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Mathematica&#8217;s manipulable interactive graphics can be built so quickly. This causes me to favor it for visualizations involving equations. However, other things are <strong>far</strong> too brittle, which might have something to do with the closed-sourced culture that produced Mathematica.</p>
<p>Suppose you want to have a new window title for a notebook you get from someone else or the Wolfram Demonstration Project. You started with another person&#8217;s code, but you&#8217;ve spent a lot of time modifying it and now it describes something entirely different. Before you try it, I&#8217;ll tell you that editing the notebooks with &#8220;Internal cache information&#8221; in a text editor is punished with infuriating warning messages and doesn&#8217;t work without further hacking.</p>
<p>Now that I&#8217;ve vented my spleen, here is a workaround to re-title the notebook it is pasted into:</p>
<p><pre class="brush: plain;">
SetOptions[EvaluationNotebook[], WindowTitle -&gt; &quot;Your Title Here&quot;]
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sublimated.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sublimated.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sublimated.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sublimated.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sublimated.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sublimated.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sublimated.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sublimated.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sublimated.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sublimated.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sublimated.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sublimated.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sublimated.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sublimated.wordpress.com/343/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=343&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sublimated.wordpress.com/2011/06/25/re-titling-a-mathematica-notebook-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d4690f2c1dc795511f3043f955ff819?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fool</media:title>
		</media:content>
	</item>
		<item>
		<title>Ace of Spades on OS X</title>
		<link>http://sublimated.wordpress.com/2011/05/01/ace-of-spades-on-os-x/</link>
		<comments>http://sublimated.wordpress.com/2011/05/01/ace-of-spades-on-os-x/#comments</comments>
		<pubDate>Sun, 01 May 2011 18:37:20 +0000</pubDate>
		<dc:creator>Carson Reynolds</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sublimated.wordpress.com/?p=336</guid>
		<description><![CDATA[While Minecraft is the current champion of wonder-inducing and sandbox games, I do feel that Ace of Spades brings some new dimensions to the genre. Brute-force terraforming in order to trick players viewing the map makes an amazing game-within-a-game. Camouflaged bridges and visually salient decoys all make for an entertaining game. So here I provide [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=336&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While <a title="Minecraft" href="http://www.minecraft.net/">Minecraft</a> is the current champion of wonder-inducing and sandbox games, I do feel that <a href="http://ace-spades.com/">Ace of Spades</a> brings some new dimensions to the genre. Brute-force terraforming in order to trick players viewing the map makes an amazing game-within-a-game. Camouflaged bridges and visually salient decoys all make for an entertaining game.</p>
<p>So here I provide some rough notes for the process of running Ace of Spades 0.36 on Macintosh computers through Wine:</p>
<ol>
<ol>
<li>Install macports. At present this requires downloading Xcode 3.2.6 first and then grabbing the macports installer. You can find <a href="http://www.macports.org/install.php">instructions</a> on the macports site.</li>
<li>Open a terminal and install wine via macports with the following command. Beware that building wine is a lengthy process and took around 4~6 hours in my case.</li>
<p><pre class="brush: bash;">
sudo port install wine
</pre></p>
<li>Reconfigure wine to use a virtual desktop. The exact size seems to vary from system to system but 1024 x 768 seems to work on 2010 Macbook Airs and 800 x 600 works on 2007 Macbook Pros. You can accomplish this by running winecfg from the terminal. It may take some time to launch wine so be a little patient. When it does, click the graphics tab, select emulate a virtual desktop and set it to be 800&#215;600 or 1024&#215;768</li>
<p><pre class="brush: bash;">
winecfg
</pre></p>
<li>Download the Ace of Spades installer from Ben Aksoy&#8217;s <a href="http://ace-spades.com/" title="site">site</a>.</li>
<li>Use wine to run the installer.</li>
<p><pre class="brush: bash;">
wine msiexec /i ~/Downloads/aos036install.msi
</pre></p>
<li>Once it is installed you can play AoS using the following command if you have a server address</li>
<p><pre class="brush: bash;">
wine ~/.wine/drive_c/Program\ Files/Ace\ of\ Spades/client.exe -aos://432934936
</pre></p>
<li>You can find aos:// addresses over on the Ace of Spades <a href="http://ace-spades.com/?page_id=5" title="listing">server listing</a>. Just control-click on one of the game names and copy its link address. Paste the link into the terminal for your wine command replacing PASTE_LINK_HERE in the example below:</li>
<p><pre class="brush: bash;">
wine ~/.wine/drive_c/Program\ Files/Ace\ of\ Spades/client.exe -PASTE_LINK_HERE
</pre>
</ol>
<p>It is a bit of lengthy process but is really worth all the mayhem and ingenuity happening in the AoS block worlds. Danger: for weekends and vacation time only.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sublimated.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sublimated.wordpress.com/336/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sublimated.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sublimated.wordpress.com/336/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sublimated.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sublimated.wordpress.com/336/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sublimated.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sublimated.wordpress.com/336/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sublimated.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sublimated.wordpress.com/336/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sublimated.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sublimated.wordpress.com/336/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sublimated.wordpress.com/336/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sublimated.wordpress.com/336/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=336&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sublimated.wordpress.com/2011/05/01/ace-of-spades-on-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d4690f2c1dc795511f3043f955ff819?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fool</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing  Cuda 4.0 RC on Ubuntu 10.10 64-bit</title>
		<link>http://sublimated.wordpress.com/2011/03/25/installing-cuda-4-0-rc-on-ubuntu-10-10-64-bit/</link>
		<comments>http://sublimated.wordpress.com/2011/03/25/installing-cuda-4-0-rc-on-ubuntu-10-10-64-bit/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 08:39:25 +0000</pubDate>
		<dc:creator>Carson Reynolds</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sublimated.wordpress.com/?p=331</guid>
		<description><![CDATA[Here are some rough notes describing my steps to get Cuda 4.0 installed and the SDK samples built on Ubuntu 10.10 (Maverick Meerkat) 64-bit. At present you need an Nvidia developer account and once you&#8217;ve signed up for one you can download the Cuda 4.0 RC. From there you want to get: devdriver_4.0_linux_32_270.35.run cudatoolkit_4.0.11_linux_64_ubuntu10.10.run gpucomputingsdk_4.0.11_linux.run<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=331&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here are some rough notes describing my steps to get Cuda 4.0 installed and the SDK samples built on Ubuntu 10.10 (Maverick Meerkat) 64-bit. At present you need an Nvidia developer account and once you&#8217;ve signed up for one you can download the <a href="http://developer.nvidia.com/object/cuda_4_0_RC_downloads.html">Cuda 4.0 RC</a>.</p>
<p>From there you want to get:</p>
<ul>
<li>devdriver_4.0_linux_32_270.35.run
<li>cudatoolkit_4.0.11_linux_64_ubuntu10.10.run
<li>gpucomputingsdk_4.0.11_linux.run
</ul>
<p><pre class="brush: bash;">
# turn off X
sudo stop gdm

# uninstall any previously installed Nvidia drivers
sudo apt-get --purge remove nvidia-*

# make all the installers executable
chmod +x ~/Downloads/*.run

# run the driver installer
sudo ~/Downloads/devdriver_4.0_linux_64_270.35.run

# reboot
sudo reboot

# install dependencies
sudo apt-get install libxi-dev libxmu-dev freeglut3-dev gcc g++ build-essential

# install toolkit
sudo ~/Downloads/cudatoolkit_4.0.11_linux_64_ubuntu10.10.run

# install SDK
sudo ~/Downloads/gpucomputingsdk_4.0.11_linux.run

# I use /opt/NVIDIA_GPU_Computing_SDK because
# I like my home directory uncluttered

# Set path variables
export PATH=$PATH:/usr/local/cuda/bin
# 32-bit would use lib instead of lib64
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/lib
# You might want to append these to your .bashrc if you use cuda frequently

# Make the SDK examples
cd /opt/NVIDIA_GPU_Computing_SDK
sudo chown [username] .
make

# Try out an example
./C/bin/linux/release/particles
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sublimated.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sublimated.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sublimated.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sublimated.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sublimated.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sublimated.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sublimated.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sublimated.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sublimated.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sublimated.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sublimated.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sublimated.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sublimated.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sublimated.wordpress.com/331/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=331&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sublimated.wordpress.com/2011/03/25/installing-cuda-4-0-rc-on-ubuntu-10-10-64-bit/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d4690f2c1dc795511f3043f955ff819?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fool</media:title>
		</media:content>
	</item>
		<item>
		<title>Making cvCalcCovarMatrix act like MATLAB</title>
		<link>http://sublimated.wordpress.com/2011/03/22/making-cvcalccovarmatrix-act-like-matlab/</link>
		<comments>http://sublimated.wordpress.com/2011/03/22/making-cvcalccovarmatrix-act-like-matlab/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 12:04:44 +0000</pubDate>
		<dc:creator>Carson Reynolds</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sublimated.wordpress.com/?p=324</guid>
		<description><![CDATA[For an online Mahalanobis distance calculator, Connsynn set out to use OpenCV&#8217;s built in functions. However to her surprise there were few good examples of computing covariance matrices with OpenCV and fewer whose results matched MATLAB and Mathematica&#8217;s output. Just to save other folks the trouble, below is a quick test program. You can verify [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=324&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For an online Mahalanobis distance calculator, Connsynn set out to use OpenCV&#8217;s built in functions. However to her surprise there were few good examples of computing covariance matrices with OpenCV and fewer whose results matched MATLAB and Mathematica&#8217;s output. Just to save other folks the trouble, below is a quick test program. You can verify that its results match WolframAlpha&#8217;s for <a href="http://www.wolframalpha.com/input/?i=Covariance%5B{{38%2C+55%2C+49}%2C{43%2C+54%2C+4}}%5D">Covariance[{{38, 55, 49},{43, 54, 4}}]</a></p>
<p><pre class="brush: cpp;">
#include &lt;iostream&gt;
#include &lt;fstream&gt;
#include &lt;cv.h&gt;
#include &lt;highgui.h&gt;

using namespace std;
using namespace cv; 

// OpenCV Covariance Example
// Chye Connsynn and Carson Reynolds March 23, 2011
// An example that computes a covariance matrix
// Tested using OpenCV 2.2 on OS X 10.6.7

int main( int argc, char** argv ) {
  // Input matrix size
  const int rows = 2;
  const int cols = 3;  

  // Input matrix
  float x[rows][cols] = {{38, 55, 49},
			 {43, 54, 4}};

  // Place input into CvMat**
  CvMat** input = new CvMat*[rows];		
  for(int i=0; i&lt;rows; i++) {
    input[i] = cvCreateMat(1, cols, CV_32FC1);
    for(int j=0; j&lt;cols; j++) {
      cvmSet(input[i], 0, j, x[i][j]);
    }
  }

  // Covariance matrix is N x N,
  // where N is input matrix column size
  const int n = cols;

  // Output variables passed by reference
  CvMat* output = cvCreateMat(n, n, CV_32FC1);
  CvMat* meanvec = cvCreateMat(1, rows, CV_32FC1);

  // Calculate covariance matrix
  cvCalcCovarMatrix((const void **) input, \
		    rows, output, meanvec, CV_COVAR_NORMAL);

  //Show result
  cout &lt;&lt; &quot;Covariance matrix:&quot; &lt;&lt; endl;
  for(int i=0; i&lt;n; i++) {
    for(int j=0; j&lt;n; j++) {
      cout &lt;&lt; &quot;(&quot; &lt;&lt; i &lt;&lt; &quot;,&quot; &lt;&lt; j &lt;&lt; &quot;): &quot;;
      // normalize by n - 1 so that results are the same 
      // as MATLAB's cov() and Mathematica's Covariance[] do
      printf (&quot;%f &quot;, cvGetReal2D(output,i,j) / (rows - 1));
      cout &lt;&lt; &quot;\t&quot;;
    }
    cout &lt;&lt; endl;      
  }
  return(0);
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sublimated.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sublimated.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sublimated.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sublimated.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sublimated.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sublimated.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sublimated.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sublimated.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sublimated.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sublimated.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sublimated.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sublimated.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sublimated.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sublimated.wordpress.com/324/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=324&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sublimated.wordpress.com/2011/03/22/making-cvcalccovarmatrix-act-like-matlab/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d4690f2c1dc795511f3043f955ff819?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fool</media:title>
		</media:content>
	</item>
		<item>
		<title>Using the terminal to monitor bandwidth and processor utilization on remote machines</title>
		<link>http://sublimated.wordpress.com/2011/02/19/command-line-processor-and-bandwidt/</link>
		<comments>http://sublimated.wordpress.com/2011/02/19/command-line-processor-and-bandwidt/#comments</comments>
		<pubDate>Sat, 19 Feb 2011 21:01:36 +0000</pubDate>
		<dc:creator>Carson Reynolds</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://sublimated.wordpress.com/?p=318</guid>
		<description><![CDATA[Now that I have started working with some custom Linux kernels for the Gumstix Overo, I find I often need to keep a build machine churning. This wouldn&#8217;t really go smoothly without the following small command-line tools: screen: allows me to disconnect and reconnect to a running process htop: visually displays processor utilization iftop: same [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=318&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Now that I have started working with some custom Linux kernels for the Gumstix Overo, I find I often need to keep a build machine churning. This wouldn&#8217;t really go smoothly without the following small command-line tools:</p>
<ul><a href="http://www.gnu.org/software/screen/manual/screen.html">screen</a>: allows me to <a href="http://www.go2linux.org/linux/2010/11/how-attach-gnu-screen-session-810">disconnect and reconnect</a> to a running process</ul>
<ul><a href="http://htop.sourceforge.net/">htop</a>: visually displays processor utilization</ul>
<ul><a href="http://www.ex-parrot.com/pdw/iftop/">iftop</a>: same as the above, but for bandwidth instead</ul>
<p>Recombining the above, you can keep a remote computer busily working and look at a glance at how your build is progressing. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sublimated.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sublimated.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sublimated.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sublimated.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sublimated.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sublimated.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sublimated.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sublimated.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sublimated.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sublimated.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sublimated.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sublimated.wordpress.com/318/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sublimated.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sublimated.wordpress.com/318/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=318&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sublimated.wordpress.com/2011/02/19/command-line-processor-and-bandwidt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d4690f2c1dc795511f3043f955ff819?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fool</media:title>
		</media:content>
	</item>
		<item>
		<title>Benchmarking frames per second when using OpenCV&#8217;s cvCaptureFromCAM</title>
		<link>http://sublimated.wordpress.com/2011/02/17/benchmarking-frames-per-second-when-using-opencvs-cvcapturefromcam/</link>
		<comments>http://sublimated.wordpress.com/2011/02/17/benchmarking-frames-per-second-when-using-opencvs-cvcapturefromcam/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 21:33:25 +0000</pubDate>
		<dc:creator>Carson Reynolds</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sublimated.wordpress.com/2011/02/17/benchmarking-frames-per-second-when-using-opencvs-cvcapturefromcam/</guid>
		<description><![CDATA[I find myself benchmarking a lot of cameras these days. Oddly, the OpenCV stuff (e.g. CV_CAP_PROP_POS_MSEC) which you&#8217;d tend to use seems to work well for recorded video files but not live capture. But no matter, an FPS meter is a trivial undertaking: Maybe Connsynn will find this an interesting alternative to her FPS calculation [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=317&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I find myself benchmarking a lot of cameras these days. Oddly, the OpenCV stuff (e.g. CV_CAP_PROP_POS_MSEC) which you&#8217;d tend to use seems to work well for recorded video files but not live capture. But no matter, an FPS meter is a trivial undertaking:</p>
<p><pre class="brush: cpp;">
#include &lt;cv.h&gt;    
#include &lt;highgui.h&gt;

#include &lt;time.h&gt;
#include &lt;stdio.h&gt;

using namespace std;

int main(int argc, char** argv)
{
  // OpenCV Capture object to grab frames
  CvCapture *capture = cvCaptureFromCAM(0);

  // start and end times
  time_t start, end;

  // fps calculated using number of frames / seconds
  double fps;

  // frame counter
  int counter = 0;

  // floating point seconds elapsed since start
  double sec;

  // start the clock
  time(&amp;start);
  
  while(cvGrabFrame(capture))
    {
      // grab a frame
      IplImage *frame = cvRetrieveFrame(capture);

      // see how much time has elapsed
      time(&amp;end);

      // calculate current FPS
      ++counter;		
      sec = difftime (end, start);      
      
      fps = counter / sec;

      // will print out Inf until sec is greater than 0
      printf(&quot;FPS = %.2f\n&quot;, fps);
    }
	
  cvReleaseCapture(&amp;capture);
  return 0;
}
</pre></p>
<p>Maybe Connsynn will find this an interesting alternative to her <a href="http://connsynn.wordpress.com/2011/02/05/6/">FPS calculation</a> approach?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sublimated.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sublimated.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sublimated.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sublimated.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sublimated.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sublimated.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sublimated.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sublimated.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sublimated.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sublimated.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sublimated.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sublimated.wordpress.com/317/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sublimated.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sublimated.wordpress.com/317/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sublimated.wordpress.com&amp;blog=282345&amp;post=317&amp;subd=sublimated&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sublimated.wordpress.com/2011/02/17/benchmarking-frames-per-second-when-using-opencvs-cvcapturefromcam/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d4690f2c1dc795511f3043f955ff819?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fool</media:title>
		</media:content>
	</item>
	</channel>
</rss>
