<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0" -->
<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/"
	>

<channel>
	<title>Answer My Searches</title>
	<link>http://www.answermysearches.com</link>
	<description>Answers to everything I search for, every day</description>
	<pubDate>Tue, 08 Jul 2008 16:26:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>
	<language>en</language>
			<item>
		<title>Fixing RDO Error (Exchange) When Trying to Move an Email</title>
		<link>http://www.answermysearches.com/fixing-rdo-error-exchange-when-trying-to-move-an-email/372/</link>
		<comments>http://www.answermysearches.com/fixing-rdo-error-exchange-when-trying-to-move-an-email/372/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 16:26:41 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
		
	<category>win32</category>
	<category>Python</category>
	<category>Other</category>
		<guid isPermaLink="false">http://www.answermysearches.com/fixing-rdo-error-exchange-when-trying-to-move-an-email/372/</guid>
		<description><![CDATA[I&#8217;m using Python win32 stuff to automate some Exchange tasks.  This is an issue I ran into.
Here&#8217;s my one-way email correspondence with the authors that lists the error and how I fixed it:

This turned out to be a permissions issue.  Sorry for the bother.
-Greg
&#8212;&#8211;Original Message&#8212;&#8211;
From: Greg Pinero
Sent: Tuesday, July 08, 2008 11:02 AM
To: [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using Python win32 stuff to automate some Exchange tasks.  This is an issue I ran into.</p>
<p>Here&#8217;s my one-way email correspondence with the authors that lists the error and how I fixed it:</p>
<blockquote><p>
This turned out to be a permissions issue.  Sorry for the bother.</p>
<p>-Greg</p>
<p>&#8212;&#8211;Original Message&#8212;&#8211;<br />
From: Greg Pinero<br />
Sent: Tuesday, July 08, 2008 11:02 AM<br />
To: redemption@di&#8230;.com<br />
Subject: Outlook Redemption Question</p>
<p>Hi there,</p>
<p>I&#8217;m trying to use the RDOMail object&#8217;s Move method:</p>
<p>Move(DestFolder)<br />
Moves message to a new folder.<br />
DestFolder - The destination folder (RDOFolder object).<br />
Returns the new message (RDOMail object) in the destination folder.</p>
<p>However I am getting this error:</p>
<p>Traceback (most recent call last):<br />
  File &#8220;<interactive input>&#8220;, line 1, in ?<br />
  File &#8220;<COMObject <unknown>>&#8221;, line 2, in Move<br />
com_error: (-2147352567, &#8216;Exception occurred.&#8217;, (0, &#8216;Redemption.RDOMail&#8217;, &#8216;Error in IMAPITable.FindRow(PR_SEARCH_KEY): MAPI_E_NOT_FOUND&#8217;, None, 0, -2147221233), None)</p>
<p>I&#8217;m simply calling e.Move(rdoFolder)</p>
<p>Where e is an email message and rdoFolder is an RDO folder of the folder I want to move the message to.  Let me know if it would help to see my code.</p>
<p>Thanks in advance for the help.</p>
<p>Greg Pinero
</p></blockquote>
]]></content:encoded>
			<wfw:commentRSS>http://www.answermysearches.com/fixing-rdo-error-exchange-when-trying-to-move-an-email/372/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>MySQL Tip - Concatenate Multiple Values Across Rows</title>
		<link>http://www.answermysearches.com/mysql-tip-concatenate-multiple-values-across-rows/369/</link>
		<comments>http://www.answermysearches.com/mysql-tip-concatenate-multiple-values-across-rows/369/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 02:49:46 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
		
	<category>SQL</category>
		<guid isPermaLink="false">http://www.answermysearches.com/mysql-tip-concatenate-multiple-values-across-rows/369/</guid>
		<description><![CDATA[The function group_concat in MySQL will let you combine the values from multiple rows together in an aggregate function.
It&#8217;s a little hard to picture, so here&#8217;s a hypothetical aggregate query from the Netflix prize dataset:

select movie_id, customer_id, max(date) as latest, group_concat(rating) as all_ratings, count(*) as total_ratings
from ratings
group by movie_id,customer_id
having count(*)>1;

And we get back* **:

+----------+-------------+------------+-------------+---------------+
&#124; MOVIE_ID [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_group-concat">function <code>group_concat</code></a> in MySQL will let you combine the values from multiple rows together in an aggregate function.</p>
<p>It&#8217;s a little hard to picture, so here&#8217;s a hypothetical aggregate query from the Netflix prize dataset:</p>
<pre>
select movie_id, customer_id, max(date) as latest, group_concat(rating) as all_ratings, count(*) as total_ratings
from ratings
group by movie_id,customer_id
having count(*)>1;
</pre>
<p>And we get back* **:</p>
<pre>
+----------+-------------+------------+-------------+---------------+
| MOVIE_ID | CUSTOMER_ID | LATEST     | ALL_RATINGS | TOTAL_RATINGS |
+----------+-------------+------------+-------------+---------------+
| 1        | 5           | 2007-12-02 | 3,2,4,5     | 4             |
| 54       | 3           | 2007-12-04 | 1,3,1       | 3             |
| 23       | 34          | 2007-12-07 | 5,5         | 2             |
+----------+-------------+------------+-------------+---------------+
</pre>
<p>As you can see for each set of rows grouped by the same movie_id and customer_id, it took each individual rating value and concatenated them all together in the new aggregate row.</p>
<p>* My actual query returned 0 rows so I thought I&#8217;d make up a quick example to illustrate the point.<br />
** I made that pretty table*** with this <a href="http://utilitymill.com/utility/ASCII_Table_Generator">ASCII table generating utility</a>.  Yay!<br />
*** Pretty table may not be pretty in RSS readers or Blackberries.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.answermysearches.com/mysql-tip-concatenate-multiple-values-across-rows/369/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Mini Searches with Answers</title>
		<link>http://www.answermysearches.com/mini-searches-with-answers-48/368/</link>
		<comments>http://www.answermysearches.com/mini-searches-with-answers-48/368/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 10:00:01 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
		
	<category>Uncategorized</category>
		<guid isPermaLink="false">http://www.answermysearches.com/mini-searches-with-answers-48/368/</guid>
		<description><![CDATA[These are links associated with recent searches I&#8217;ve done.  They&#8217;re not difficult enough to warrant to their own posts but still super useful.
    
Instant SQL FormatterMake SQL code look nice, automatically?

How to restore GRUB using the Ubuntu Live CD « Odzangba Kafui Dake’s BlogAn option for fixing grub error 18?  [...]]]></description>
			<content:encoded><![CDATA[<p>These are links associated with recent searches I&#8217;ve done.  They&#8217;re not difficult enough to warrant to their own posts but still super useful.<br />
    </p>
<div><a href="http://www.wangz.net/cgi-bin/pp/gsqlparser/sqlpp/sqlformat.tpl">Instant SQL Formatter</a><br />Make SQL code look nice, automatically?</div>
<p>
<div><a href="http://odzangba.wordpress.com/2007/03/10/how-to-restore-grub-using-the-ubuntu-live-cd/">How to restore GRUB using the Ubuntu Live CD « Odzangba Kafui Dake’s Blog</a><br />An option for fixing grub error 18?  I&#8217;ll reboot now and try it.</div>
<p>
<div><a href="http://www.httrack.com/">HTTrack is a free (GPL, libre/free software) and easy-to-use offline browser utility.</a><br />Mirror a website locally for off line access</div>
<p>
<div><a href="http://fosswire.com/2008/04/21/create-a-mirror-of-a-website-with-wget/">FOSSwire » Create a mirror of a website with Wget</a><br />$ wget -mk -w 20 http://www.example.com/</div>
<p>
<div><a href="https://answers.launchpad.net/ubuntu/+question/37748">mysqldump on Ubuntu - Fixing: Got error: 1: Can&#8217;t create/write to file &#8216;&#8230;&#8217; (Errcode: 13) when executing &#8216;SELECT INTO OUTFILE&#8217;</a><br />The answer is to output to the /tmp directory.  Very sucky Ubuntu!</div>
<p>
<div><a href="https://help.ubuntu.com/community/AppArmor">AppArmor - Community Ubuntu Documentation</a><br />Maybe good for debugging Ubuntu permissions issues?</div>
<p>Tags: <a href="http://technorati.com/tag/Apparmor" rel="tag">Apparmor</a>, <a href="http://technorati.com/tag/Backup" rel="tag">Backup</a>, <a href="http://technorati.com/tag/Debug" rel="tag">Debug</a>, <a href="http://technorati.com/tag/Download" rel="tag">Download</a>, <a href="http://technorati.com/tag/Forum_I_Posted_To" rel="tag">Forum_I_Posted_To</a>, <a href="http://technorati.com/tag/Grub" rel="tag">Grub</a>, <a href="http://technorati.com/tag/Linux" rel="tag">Linux</a>, <a href="http://technorati.com/tag/Mirror" rel="tag">Mirror</a>, <a href="http://technorati.com/tag/Mysql" rel="tag">Mysql</a>, <a href="http://technorati.com/tag/Pfam" rel="tag">Pfam</a>, <a href="http://technorati.com/tag/Programming" rel="tag">Programming</a>, <a href="http://technorati.com/tag/Python" rel="tag">Python</a>, <a href="http://technorati.com/tag/Security" rel="tag">Security</a>, <a href="http://technorati.com/tag/Sql" rel="tag">Sql</a>, <a href="http://technorati.com/tag/Ubuntu" rel="tag">Ubuntu</a>, <a href="http://technorati.com/tag/Wget" rel="tag">Wget</a>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.answermysearches.com/mini-searches-with-answers-48/368/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Python - How to Make MySQLdb Store Query Results on the Server</title>
		<link>http://www.answermysearches.com/python-how-to-make-mysqldb-store-query-results-on-the-server/367/</link>
		<comments>http://www.answermysearches.com/python-how-to-make-mysqldb-store-query-results-on-the-server/367/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 01:49:17 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
		
	<category>Python</category>
		<guid isPermaLink="false">http://www.answermysearches.com/python-how-to-make-mysqldb-store-query-results-on-the-server/367/</guid>
		<description><![CDATA[Sometimes I&#8217;ll want to run a query against a MySQL database from Python that returns a large result set.  So large in fact that Python hits a memory error.
One way around this is to have the Python MySQL library (MySQLdb) store the results from a query on the database server and bring them back [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I&#8217;ll want to run a query against a MySQL database from Python that returns a large result set.  So large in fact that Python hits a memory error.</p>
<p>One way around this is to have the Python MySQL library (MySQLdb) store the results from a query on the database server and bring them back to you one at a time as you request them.</p>
<p>Here&#8217;s how you set that up:</p>
<pre class="Python">
import MySQLdb
import MySQLdb.cursors #Make sure to import this seperately

#build your connection object normally but pass it a cursorclass keyword
db=MySQLdb.connect(host=HOSTNAME,user=USERNAME,passwd=PASSWORD,db=DATABASE,
            cursorclass=MySQLdb.cursors.SSCursor)

#Usage

cursor=db.cursor()
cursor.execute('select huge_column from huge_table')
#iterate over the results pulling them down from the server on each iteration
for row in cursor:
    print row
cursor.close()
</pre>
]]></content:encoded>
			<wfw:commentRSS>http://www.answermysearches.com/python-how-to-make-mysqldb-store-query-results-on-the-server/367/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Mini Searches with Answers</title>
		<link>http://www.answermysearches.com/mini-searches-with-answers-47/365/</link>
		<comments>http://www.answermysearches.com/mini-searches-with-answers-47/365/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 04:10:32 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
		
	<category>Uncategorized</category>
		<guid isPermaLink="false">http://www.answermysearches.com/mini-searches-with-answers-47/365/</guid>
		<description><![CDATA[These are links associated with recent searches I&#8217;ve done.  They&#8217;re not difficult enough to warrant to their own posts but still super useful.
    
DLC Taxi/Cab Phone number for transport to Westchester (HPN) AirportTaxi: DLC Car Service (tel: (914) 946 6664) provides taxi service from the airport.

Repairing this weird Mysql error: Table [...]]]></description>
			<content:encoded><![CDATA[<p>These are links associated with recent searches I&#8217;ve done.  They&#8217;re not difficult enough to warrant to their own posts but still super useful.<br />
    </p>
<div><a href="http://www.worldairportguide.com/airport/486/airport_guide/North-America/Westchester-County-Airport.html">DLC Taxi/Cab Phone number for transport to Westchester (HPN) Airport</a><br />Taxi: DLC Car Service (tel: (914) 946 6664) provides taxi service from the airport.</div>
<p>
<div><a href="http://news.softpedia.com/news/How-to-repair-tables-in-MySQL-67128.shtml">Repairing this weird Mysql error: Table &#8216;./mysql/user&#8217; is marked as crashed and should be repaired.</a><br />Repairing this weird Mysql error: Table &#8216;./mysql/user&#8217; is marked as crashed and should be repaired.</div>
<p>
<div><a href="http://geocoder.us/">geocoder.us: a free US address geocoder</a><br />Lots of geographic tools with an API too.   Get lat/long of an address, find distances, etc.</div>
<p>
<div><a href="http://webplicity.net/flexigrid/">Flexigrid</a><br />Lightweight but rich data grid with resizable columns and a scrolling data to match the headers, plus an ability to connect to an xml based data source using Ajax to load the content.  Supposedly it can convert existing tables too?</div>
<p>
<div><a href="http://www.protocolostomy.com/2008/05/12/a-couple-of-mysql-performance-tips/">Musings of an Anonymous Geek » Blog Archive » A Couple of MySQL Performance Tips</a><br />Useful MySQL performance tips</div>
<p>
<div><a href="http://ubuntuforums.org/archive/index.php/t-969.html">Add new Path variables in Ubuntu</a><br />$ sudo nano /etc/profile<br />
Add &quot;PATH=$PATH:/new/path\nexport PATH&quot; to end of file and save.<br />
Then do<br />
$ . /etc/profile (to restart)</div>
<p>
<div><a href="http://dev.mysql.com/doc/refman/5.0/en/index-hints.html">MySQL :: MySQL 5.0 Reference Manual :: 12.2.7.2 Index Hint Syntax</a><br />Here&#8217;s how to suggest and/or force MySQL to use an index.</div>
<p>
<div><a href="http://earth.google.com/userguide/v4/geoweb_faq.html">How do I get my Wikipedia article to show up in the Google Earth Geographic Web layer?</a><br />You must geotag the article. The simplest way to do this is to use the {{coord}} template. This template can be used anywhere within the article text. For example, if the article for San Francisco, California contained this markup anywhere within the arti</div>
<p>
<div><a href="http://ubuntuforums.org/showthread.php?t=47525">HOWTO: open a file in Nautilus with gedit as root - Ubuntu Forums</a><br />Let&#8217;s you right click on a file and open it in a text editor as root in Ubuntu Hardy Heron (8.04)</div>
<p>
<div><a href="http://www.mysqlperformanceblog.com/2008/03/07/speeding-up-group-by-if-you-want-aproximate-results/">Speeding up GROUP BY if you want aproximate results | MySQL Performance Blog</a><br />This guy claims grouping by crc32(&lt;some string&gt;) instead of just &lt;some string&gt; will make your query 120 times faster&#8230;</div>
<p>
<div><a href="http://kayaking.meetup.com/171/messages/boards/thread/4526472">Places to store your kayak - The Stamford Kayaking Meetup Group (Stamford, CT) - Meetup.com</a><br />Places to store your Kayak near Stamford, CT</div>
<p>
<div><a href="http://www.linuxnetadmin.com/2008/01/how-to-add-disk-space-with-lvm-on-linux.html">Thad&#8217;s Tech Blog: How to add disk space with LVM on Linux</a><br />$ sudo fdisk /dev/sda  (new partition type 8e, w for write)<br />
$ sudo pvcreate /dev/sda1<br />
$ sudo vgdisplay<br />
$ sudo vgextend PFA-CT-LPDB01 /dev/sda1<br />
$ sudo lvextend -L +930G /dev/PFA-CT-LPDB01/root<br />
$ sudo ext2online /dev/PFA-CT-LPDB</div>
<p>Tags: <a href="http://technorati.com/tag/Address" rel="tag">Address</a>, <a href="http://technorati.com/tag/Airport" rel="tag">Airport</a>, <a href="http://technorati.com/tag/Ajax" rel="tag">Ajax</a>, <a href="http://technorati.com/tag/Api" rel="tag">Api</a>, <a href="http://technorati.com/tag/Census" rel="tag">Census</a>, <a href="http://technorati.com/tag/Distance" rel="tag">Distance</a>, <a href="http://technorati.com/tag/Forum_I_Posted_To" rel="tag">Forum_I_Posted_To</a>, <a href="http://technorati.com/tag/Geolocation" rel="tag">Geolocation</a>, <a href="http://technorati.com/tag/Geotagging" rel="tag">Geotagging</a>, <a href="http://technorati.com/tag/Gis" rel="tag">Gis</a>, <a href="http://technorati.com/tag/Googleearth" rel="tag">Googleearth</a>, <a href="http://technorati.com/tag/Gps" rel="tag">Gps</a>, <a href="http://technorati.com/tag/Groupby" rel="tag">Groupby</a>, <a href="http://technorati.com/tag/Javascript" rel="tag">Javascript</a>, <a href="http://technorati.com/tag/Jquery" rel="tag">Jquery</a>, <a href="http://technorati.com/tag/Kayak" rel="tag">Kayak</a>, <a href="http://technorati.com/tag/Linux" rel="tag">Linux</a>, <a href="http://technorati.com/tag/Local" rel="tag">Local</a>, <a href="http://technorati.com/tag/Lvm" rel="tag">Lvm</a>, <a href="http://technorati.com/tag/Maps" rel="tag">Maps</a>, <a href="http://technorati.com/tag/Mysql" rel="tag">Mysql</a>, <a href="http://technorati.com/tag/Optimization" rel="tag">Optimization</a>, <a href="http://technorati.com/tag/Performance" rel="tag">Performance</a>, <a href="http://technorati.com/tag/Pfam" rel="tag">Pfam</a>, <a href="http://technorati.com/tag/Query" rel="tag">Query</a>, <a href="http://technorati.com/tag/Sql" rel="tag">Sql</a>, <a href="http://technorati.com/tag/Storage" rel="tag">Storage</a>, <a href="http://technorati.com/tag/Table" rel="tag">Table</a>, <a href="http://technorati.com/tag/Taxi" rel="tag">Taxi</a>, <a href="http://technorati.com/tag/Ubuntu" rel="tag">Ubuntu</a>, <a href="http://technorati.com/tag/Visualization" rel="tag">Visualization</a>, <a href="http://technorati.com/tag/Webservices" rel="tag">Webservices</a>, <a href="http://technorati.com/tag/Wikipedia" rel="tag">Wikipedia</a>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.answermysearches.com/mini-searches-with-answers-47/365/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
