<?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>Answer My Searches</title>
	<atom:link href="http://www.answermysearches.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.answermysearches.com</link>
	<description>Answers to everything I search for, every day</description>
	<lastBuildDate>Wed, 01 Feb 2012 16:27:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Weird FileMaker JDBC Error</title>
		<link>http://www.answermysearches.com/weird-filemaker-jdbc-error/2288/</link>
		<comments>http://www.answermysearches.com/weird-filemaker-jdbc-error/2288/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 14:29:38 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.answermysearches.com/?p=2288</guid>
		<description><![CDATA[I was querying a table from FileMaker using DB Visualizer via JDBC/ODBC and I kept seeing error messages like this one:
Error getting value for: 19037/4: com.filemaker.jdbc.FMSQLException: [FileMaker][FileMaker JDBC] For input string: "?": ?
I couldn&#8217;t figure out a good way to prevent it, so I looked at the row in the results it was mentioning e.g., [...]]]></description>
			<content:encoded><![CDATA[<p>I was querying a table from FileMaker using DB Visualizer via JDBC/ODBC and I kept seeing error messages like this one:</p>
<p><code>Error getting value for: 19037/4: com.filemaker.jdbc.FMSQLException: [FileMaker][FileMaker JDBC] For input string: "?": ?</code></p>
<p>I couldn&#8217;t figure out a good way to prevent it, so I looked at the row in the results it was mentioning e.g., 19037, then looked up the corresponding record in FileMaker, and noticed it had &#8220;?&#8221; instead of numbers in a number field.  So I replaced the &#8220;?&#8221; with 0 and now it seems to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.answermysearches.com/weird-filemaker-jdbc-error/2288/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python &#8211; How to use MySQLdb when MySQL Isn&#8217;t Installed Locally</title>
		<link>http://www.answermysearches.com/python-how-to-use-mysqldb-when-mysql-isnt-installed-locally/2284/</link>
		<comments>http://www.answermysearches.com/python-how-to-use-mysqldb-when-mysql-isnt-installed-locally/2284/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 14:15:22 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.answermysearches.com/?p=2284</guid>
		<description><![CDATA[It turns out there&#8217;s a new MySQL connection library called MySQL Connector.
I installed it and then I just imported that into my script and everything else seemed to work normally.  At least for my simply import script.  
import mysql.connector as MySQLdb
I believe this library is designed for those who want to connect to [...]]]></description>
			<content:encoded><![CDATA[<p>It turns out there&#8217;s a new MySQL connection library called <a href="https://launchpad.net/myconnpy">MySQL Connector</a>.</p>
<p>I installed it and then I just imported that into my script and everything else seemed to work normally.  At least for my simply import script.  </p>
<p><code>import mysql.connector as MySQLdb</code></p>
<p>I believe this library is designed for those who want to connect to MySQL on another server.  It doesn&#8217;t seem to require any MySQL libraries to be installed.</p>
<p>When I tried to install mySQLdb it complained with the following message.  I&#8217;m guessing the problem was that it requires MySQL to be installed:</p>
<p><code>  File "/Users/pinerog/Downloads/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config<br />
    raise EnvironmentError("%s not found" % (mysql_config.path,))<br />
EnvironmentError: mysql_config not found<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.answermysearches.com/python-how-to-use-mysqldb-when-mysql-isnt-installed-locally/2284/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mini Searches with Answers</title>
		<link>http://www.answermysearches.com/mini-searches-with-answers-113/2282/</link>
		<comments>http://www.answermysearches.com/mini-searches-with-answers-113/2282/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 08:02:27 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.answermysearches.com/?p=2282</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.
    
Sun Grid Engine (SGE) &#8211; qstat &#8211; What do the states stand for?Category 	State 	SGE Letter Code
Pending 	pending 	qw
	pending, user hold 	qw
	pending, system hold 	hqw
	pending, user and system [...]]]></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 class="delicious"><a href="http://impact.open.ac.uk/?q=faq/7" class="delicious">Sun Grid Engine (SGE) &#8211; qstat &#8211; What do the states stand for?</a><br />Category 	State 	SGE Letter Code<br />
Pending 	pending 	qw<br />
	pending, user hold 	qw<br />
	pending, system hold 	hqw<br />
	pending, user and system hold 	hqw<br />
	pending, user hold, re-queue 	hRwq<br />
	pending, system hold, re-queue 	hRwq<br />
	pending, user and system hold, re-queue 	hRwq<br />
Running 	running 	r<br />
	transferring 	t<br />
	running, re-submit 	Rr<br />
	transferring, re-submit 	Rt<br />
Suspended 	job suspended 	s, ts<br />
	queue suspended 	S, tS<br />
	queue suspended by alarm 	T, tT<br />
	all suspended with re-submit 	Rs, Rts, RS, RtS, RT, RtT<br />
Error 	all pending states with error 	Eqw, Ehqw, EhRqw<br />
Deleted 	all running and suspended states with deletion 	dr, dt, dRr, dRt, ds, dS, dT, dRs, dRS, dRT</div>
<p>
<div class="delicious"><a href="http://www.idautomation.com/filemaker/barcode-generator.html" class="delicious">FileMaker Pro Barcode Tutorial 2D Barcodes</a><br />I think you can use a Google chart API instead of buying this service?</div>
<p>
<div class="delicious"><a href="http://gitready.com/intermediate/2009/03/04/pick-out-individual-commits.html" class="delicious">git ready » pick out individual commits</a><br />A good explanation of git cherry picking.</div>
<p>
<div class="delicious"><a href="http://pytools.codeplex.com/wikipage?title=PyKinect" class="delicious">PyKinect – write Kinect games using Python!</a></div>
<p>
<div class="delicious"><a href="http://code.activestate.com/recipes/577187-python-thread-pool/" class="delicious">Python Thread Pool « Python recipes « ActiveState Code</a><br />This thread pool implementation seems to work well</div>
<p>
<div class="delicious"><a href="http://meta.stackoverflow.com/questions/2950/should-hi-thanks-taglines-and-salutations-be-removed-from-posts/93989#93989" class="delicious">Should &#8216;Hi&#8217;, &#8216;thanks,&#8217; taglines, and salutations be removed from posts? &#8211; Meta Stack Overflow</a><br />Stackoverflow just removed my greeting &#8220;hi guys&#8221;!  I found the explanation here.  </p>
<p>If you want your greeting to show up on a question prefix it with non space characters e.g.,</p>
<p>&#8211; hi guys,</p></div>
<p><small>Tags: <a href="http://technorati.com/tag/Barcode" rel="tag">Barcode</a>, <a href="http://technorati.com/tag/Filemaker" rel="tag">Filemaker</a>, <a href="http://technorati.com/tag/Game" rel="tag">Game</a>, <a href="http://technorati.com/tag/Git" rel="tag">Git</a>, <a href="http://technorati.com/tag/Kinect" rel="tag">Kinect</a>, <a href="http://technorati.com/tag/Python" rel="tag">Python</a>, <a href="http://technorati.com/tag/Sge" rel="tag">Sge</a>, <a href="http://technorati.com/tag/Stackoverflow" rel="tag">Stackoverflow</a>, <a href="http://technorati.com/tag/Thread" rel="tag">Thread</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.answermysearches.com/mini-searches-with-answers-113/2282/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mini Searches with Answers</title>
		<link>http://www.answermysearches.com/mini-searches-with-answers-112/2280/</link>
		<comments>http://www.answermysearches.com/mini-searches-with-answers-112/2280/#comments</comments>
		<pubDate>Sat, 22 Oct 2011 08:01:14 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.answermysearches.com/?p=2280</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.
    
svn &#8211; Revision 4862: /xlwt/trunk/xlwt/examplesUseful examples of how to use the Python Excel library, xlwt.

The equivalent of Python&#8217;s repr in perluse Data::Dumper;
$boo = &#8221; test n&#8221;;
print Dumper($boo);

Preserving styles [...]]]></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 class="delicious"><a href="https://secure.simplistix.co.uk/svn/xlwt/trunk/xlwt/examples/" class="delicious">svn &#8211; Revision 4862: /xlwt/trunk/xlwt/examples</a><br />Useful examples of how to use the Python Excel library, xlwt.</div>
<p>
<div class="delicious"><a href="http://perldoc.perl.org/Data/Dumper.html" class="delicious">The equivalent of Python&#8217;s repr in perl</a><br />use Data::Dumper;<br />
$boo = &#8221; test n&#8221;;<br />
print Dumper($boo);</div>
<p>
<div class="delicious"><a href="http://stackoverflow.com/questions/3723793/preserving-styles-using-pythons-xlrd-xlwt-and-xlutils-copy" class="delicious">Preserving styles using python&#8217;s xlrd,xlwt, and xlutils.copy &#8211; Stack Overflow</a><br />Python Excel (xlrd, xlwt) &#8211; How to copy a style from one cell and put it on another:</p>
<p>newCell.xf_idx = previousCell.xf_idx</p></div>
<p>
<div class="delicious"><a href="http://help.filemaker.com/app/answers/detail/a_id/7865" class="delicious">New JDBC Drivers for FileMaker 11</a><br />I was getting these errors trying to connect to FileMaker 11 via JDBC on DBVisualizer.  It turns out you need this new JDBC driver.</p>
<p>Product:  DbVisualizer Personal 7.1.5<br />
Build:  #1590 (2011/02/24 17:23)<br />
Java VM:  Java HotSpot(TM) 64-Bit Server VM<br />
Java Version:  1.6.0_26<br />
Java Vendor:  Apple Inc.<br />
OS Name:  Mac OS X<br />
OS Arch:  x86_64<br />
OS Version:  10.6.8</p>
<p>An error occurred while establishing the connection:</p>
<p>Long Message:<br />
[DataDirect][SequeLink JDBC Driver]Internal network error, session aborted due to session protocol data unit format error, connection closed.</p>
<p>Details:<br />
   Type: java.sql.SQLException<br />
   Error Code: 2207<br />
   SQL State: HY000</p>
<p>1) Nested Exception:</p>
<p>Long Message:<br />
Session aborted due to IIOP problems.</p>
<p>Details:<br />
   Type: java.sql.SQLException<br />
   Error Code: 7772<br />
   SQL State: HY000</p>
<p>2) Nested Exception:</p>
<p>Long Message:<br />
IIOP error, invalid protocol identifier.</p>
<p>Details:<br />
   Type: java.sql.SQLException<br />
   Error Code: 7529<br />
   SQL State: HY000</p></div>
<p>
<div class="delicious"><a href="http://www.physics.rutgers.edu/~masud/computing/WPark_recipes_in_python.html" class="delicious">Mean and Standard Deviation in Python</a><br />8.3    meanstdv()</p>
<p>Summary<br />
    Mean and standard deviation of data </p>
<p>Usage<br />
    real, real = meanstdv(list) </p>
<p>&#8220;&#8221;" Calculate mean and standard deviation of data x[]: mean = {sum_i x_i over n} std = sqrt(sum_i (x_i &#8211; mean)^2 over n-1) &#8220;&#8221;" def meanstdv(x): from math import sqrt n, mean, std = len(x), 0, 0 for a in x: mean = mean + a mean = mean / float(n) for a in x: std = std + (a &#8211; mean)**2 std = sqrt(std / float(n-1)) return mean, std</p></div>
<p>
<div class="delicious"><a href="http://attic.fmforums.com/forum/showtopic.php?tid/216837/pid//" class="delicious">File Requires &#8220;Full Access&#8221; to login. &#8211; FileMaker Forums &#8211; FileMaker Pro Help and Support Worldwide Community</a><br />How to fix FileMaker error:<br />
&#8220;your access privileges do not allow you to perform this action&#8221; when logging in with a non-full-access account.</p>
<p>You simply want to add the extended privilege &#8220;Access via FileMaker Network (fmapp)&#8221; to make this work</p></div>
<p><small>Tags: <a href="http://technorati.com/tag/Dbvizualizer" rel="tag">Dbvizualizer</a>, <a href="http://technorati.com/tag/Excel" rel="tag">Excel</a>, <a href="http://technorati.com/tag/Filemaker" rel="tag">Filemaker</a>, <a href="http://technorati.com/tag/Jdbc" rel="tag">Jdbc</a>, <a href="http://technorati.com/tag/Perl" rel="tag">Perl</a>, <a href="http://technorati.com/tag/Python" rel="tag">Python</a>, <a href="http://technorati.com/tag/Sql" rel="tag">Sql</a>, <a href="http://technorati.com/tag/Xlwt" rel="tag">Xlwt</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.answermysearches.com/mini-searches-with-answers-112/2280/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python zipfile &#8211; Fixing Error: Unable to unarchive &#8220;..&#8221; into &#8220;Downloads&#8221;</title>
		<link>http://www.answermysearches.com/python-zipfile-fixing-error-unable-to-unarchive-into-downloads/2278/</link>
		<comments>http://www.answermysearches.com/python-zipfile-fixing-error-unable-to-unarchive-into-downloads/2278/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 12:48:07 +0000</pubDate>
		<dc:creator>Greg Pinero (Primary Searcher)</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.answermysearches.com/?p=2278</guid>
		<description><![CDATA[I made a zip file in Python and tried to open it on my mac.  I got the error mentioned in the title.
Investigating further, I got this information from running:
lm1:Downloads pinerog$ unzip -t costume_spreadsheets_from_jackrabbit.zip

Archive:  costume_spreadsheets_from_jackrabbit.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one [...]]]></description>
			<content:encoded><![CDATA[<p>I made a zip file in Python and tried to open it on my mac.  I got the error mentioned in the title.</p>
<p>Investigating further, I got this information from running:</p>
<p><code>lm1:Downloads pinerog$ unzip -t costume_spreadsheets_from_jackrabbit.zip</code></p>
<pre>
Archive:  costume_spreadsheets_from_jackrabbit.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of costume_spreadsheets_from_jackrabbit.zip or
        costume_spreadsheets_from_jackrabbit.zip.zip, and cannot find costume_spreadsheets_from_jackrabbit.zip.ZIP, period.</pre>
<p>Well, silly me, I forgot to close the zip file I made in Python.  Here is the correct code for generating a zip file.  Make sure you close the zip file object!</p>
<pre class="python">
import zipfile
import glob, os

file = zipfile.ZipFile("test.zip", "w")
for name in glob.glob("samples/*"):
    file.write(name, os.path.basename(name), zipfile.ZIP_DEFLATED)
file.close()
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.answermysearches.com/python-zipfile-fixing-error-unable-to-unarchive-into-downloads/2278/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

