<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Saved for later reference</title>
	<atom:link href="http://www.lejordet.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lejordet.com</link>
	<description>online repository of stuff I had to google for hours to figure out</description>
	<lastBuildDate>Wed, 24 Feb 2010 09:47:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Making a Trac install work on Apache 2.2/Python 2.6/win32, 2010 edition by Lars Erik Jordet</title>
		<link>http://www.lejordet.com/2010/01/making-a-trac-install-work-on-apache-2-2python-2-6win32-2010-edition/comment-page-1/#comment-73</link>
		<dc:creator>Lars Erik Jordet</dc:creator>
		<pubDate>Wed, 24 Feb 2010 09:47:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.lejordet.com/?p=98#comment-73</guid>
		<description>I&#039;ll have to try building the bindings again sometime soon, and update the article. I have a &quot;clean&quot; computer I use for these things, to make sure I have 100% control over the prerequisites.

I&#039;m not sure if I should just start posting my compiled versions (potentially wrapped in a nice installer) here.</description>
		<content:encoded><![CDATA[<p>I&#8217;ll have to try building the bindings again sometime soon, and update the article. I have a &#8220;clean&#8221; computer I use for these things, to make sure I have 100% control over the prerequisites.</p>
<p>I&#8217;m not sure if I should just start posting my compiled versions (potentially wrapped in a nice installer) here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Making a Trac install work on Apache 2.2/Python 2.6/win32, 2010 edition by Joel Low</title>
		<link>http://www.lejordet.com/2010/01/making-a-trac-install-work-on-apache-2-2python-2-6win32-2010-edition/comment-page-1/#comment-72</link>
		<dc:creator>Joel Low</dc:creator>
		<pubDate>Mon, 15 Feb 2010 08:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.lejordet.com/?p=98#comment-72</guid>
		<description>For the record, I found that a slightly less intrusive way (on the runtime, anyway) would be to use Property Sheets to define _USE_32BIT_TIME_T instead.

Yes, while the official bindings are built, I am yet to see 1.6.9&#039;s -- it&#039;s been nearly a month! I needed the binaries for a few servers so I decided to spend time and build it myself...</description>
		<content:encoded><![CDATA[<p>For the record, I found that a slightly less intrusive way (on the runtime, anyway) would be to use Property Sheets to define _USE_32BIT_TIME_T instead.</p>
<p>Yes, while the official bindings are built, I am yet to see 1.6.9&#8217;s &#8212; it&#8217;s been nearly a month! I needed the binaries for a few servers so I decided to spend time and build it myself&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Making a Trac install work on Apache 2.2/Python 2.6/win32, 2010 edition by Lars Erik Jordet</title>
		<link>http://www.lejordet.com/2010/01/making-a-trac-install-work-on-apache-2-2python-2-6win32-2010-edition/comment-page-1/#comment-71</link>
		<dc:creator>Lars Erik Jordet</dc:creator>
		<pubDate>Mon, 15 Feb 2010 07:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.lejordet.com/?p=98#comment-71</guid>
		<description>Yep, it looked like a signature mismatch, but I didn&#039;t really care enough to trace the exact reason for the problem when replacing libapr-1.dll worked :)

I could probably whip up a build script to automate most of the process, but it looks like the &quot;official&quot; SVN-python bindings are being kept up-to-date now.</description>
		<content:encoded><![CDATA[<p>Yep, it looked like a signature mismatch, but I didn&#8217;t really care enough to trace the exact reason for the problem when replacing libapr-1.dll worked <img src='http://www.lejordet.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I could probably whip up a build script to automate most of the process, but it looks like the &#8220;official&#8221; SVN-python bindings are being kept up-to-date now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Making a Trac install work on Apache 2.2/Python 2.6/win32, 2010 edition by Joel Low</title>
		<link>http://www.lejordet.com/2010/01/making-a-trac-install-work-on-apache-2-2python-2-6win32-2010-edition/comment-page-1/#comment-70</link>
		<dc:creator>Joel Low</dc:creator>
		<pubDate>Mon, 15 Feb 2010 07:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.lejordet.com/?p=98#comment-70</guid>
		<description>Thanks for the help you&#039;ve provided with this (and the previous) articles! I think I&#039;ve found the reason that we need to replace libapr-1.dll -- there&#039;s a signature mismatch.

In the trac ticket you mentioned, someone did nail it down to a change in the declaration of _apr_time_ansi_put (@12 vs @8, which took me 4 hours to nail down, urgh!) The declaration of apr_time_ansi_put takes a time_t argument, which until VS2005 was typedef&#039;ed to an int; after which was typedef&#039;ed to an long long. Thus, the size of time_t changed between versions of VS. Since we&#039;re compiling on VS2008, time_t defaults to 8 bytes (64 bits)

Since the compiler tacks on the size of the arguments to the function to the end of the function (the @x bit) our VS2008 declaration has a different name from the one declared in libapr-1.dll (which, presumably is compiled on an earlier version of VS). This results in our entry point not found error when using the binaries from within Apache (because, since the httpd&#039;s libapr-1.dll is already loaded in memory space, when the svn-python dlls import libapr-1.dll, they get the httpd copy and not our own)

Hence, I would imagine a better solution would be to define _USE_32BIT_TIME_T (see: http://msdn.microsoft.com/en-us/library/4wacf567.aspx) when building the projects which reference time_t (which is most of the SVN libraries) It&#039;s really tedious, so one may decide to modify the VS header files to define that preprocessor variable and remove it when we&#039;re done compiling svn-python.</description>
		<content:encoded><![CDATA[<p>Thanks for the help you&#8217;ve provided with this (and the previous) articles! I think I&#8217;ve found the reason that we need to replace libapr-1.dll &#8212; there&#8217;s a signature mismatch.</p>
<p>In the trac ticket you mentioned, someone did nail it down to a change in the declaration of _apr_time_ansi_put (@12 vs @8, which took me 4 hours to nail down, urgh!) The declaration of apr_time_ansi_put takes a time_t argument, which until VS2005 was typedef&#8217;ed to an int; after which was typedef&#8217;ed to an long long. Thus, the size of time_t changed between versions of VS. Since we&#8217;re compiling on VS2008, time_t defaults to 8 bytes (64 bits)</p>
<p>Since the compiler tacks on the size of the arguments to the function to the end of the function (the @x bit) our VS2008 declaration has a different name from the one declared in libapr-1.dll (which, presumably is compiled on an earlier version of VS). This results in our entry point not found error when using the binaries from within Apache (because, since the httpd&#8217;s libapr-1.dll is already loaded in memory space, when the svn-python dlls import libapr-1.dll, they get the httpd copy and not our own)</p>
<p>Hence, I would imagine a better solution would be to define _USE_32BIT_TIME_T (see: <a href="http://msdn.microsoft.com/en-us/library/4wacf567.aspx)" rel="nofollow">http://msdn.microsoft.com/en-us/library/4wacf567.aspx)</a> when building the projects which reference time_t (which is most of the SVN libraries) It&#8217;s really tedious, so one may decide to modify the VS header files to define that preprocessor variable and remove it when we&#8217;re done compiling svn-python.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Making a Trac install work on Apache 2.2/Python 2.6/win32 by Making a Trac install work on Apache 2.2/Python 2.6/win32, 2010 edition &#8211; Saved for later reference</title>
		<link>http://www.lejordet.com/2009/03/making-a-trac-install-work-on-apache-22python-26win32/comment-page-1/#comment-66</link>
		<dc:creator>Making a Trac install work on Apache 2.2/Python 2.6/win32, 2010 edition &#8211; Saved for later reference</dc:creator>
		<pubDate>Mon, 25 Jan 2010 11:14:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.lejordet.com/?p=11#comment-66</guid>
		<description>[...] 10 months ago I wrote a short article on getting Trac to work on Python 2.6 and Windows. Recently I updated the install, and took a look [...]</description>
		<content:encoded><![CDATA[<p>[...] 10 months ago I wrote a short article on getting Trac to work on Python 2.6 and Windows. Recently I updated the install, and took a look [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on lxml for Python 2.6/win32 by srid</title>
		<link>http://www.lejordet.com/2009/12/lxml-for-python26-win32/comment-page-1/#comment-60</link>
		<dc:creator>srid</dc:creator>
		<pubDate>Thu, 24 Dec 2009 05:04:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.lejordet.com/?p=95#comment-60</guid>
		<description>Or you can use ActivePython to install lxml: http://docs.activestate.com/activepython/2.6/pypm.html</description>
		<content:encoded><![CDATA[<p>Or you can use ActivePython to install lxml: <a href="http://docs.activestate.com/activepython/2.6/pypm.html" rel="nofollow">http://docs.activestate.com/activepython/2.6/pypm.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Printing to PDF from VBA in Excel by Lars Erik Jordet</title>
		<link>http://www.lejordet.com/2009/07/printing-to-pdf-from-vba-in-excel/comment-page-1/#comment-47</link>
		<dc:creator>Lars Erik Jordet</dc:creator>
		<pubDate>Fri, 23 Oct 2009 16:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.lejordet.com/?p=43#comment-47</guid>
		<description>You need to set the printer using the NetworkPrinter function specified above:

Application.ActivePrinter = NetworkPrinter(&quot;PS_Printer&quot;)

The NetworkPrinter function tries to detect which port the printer is on and set the printer string accordingly. If the string doesn&#039;t resolve to a proper printer (&quot;PS_Printer on PS_Port&quot;) it will use the default printer. 

Alternatively you can of course set .ActivePrinter = &quot;PS_Printer on PS_Port&quot; directly - the NetworkPrinter is more for when you use a physical printer which may or may not be on the same port on each computer in a network.</description>
		<content:encoded><![CDATA[<p>You need to set the printer using the NetworkPrinter function specified above:</p>
<p>Application.ActivePrinter = NetworkPrinter(&#8220;PS_Printer&#8221;)</p>
<p>The NetworkPrinter function tries to detect which port the printer is on and set the printer string accordingly. If the string doesn&#8217;t resolve to a proper printer (&#8220;PS_Printer on PS_Port&#8221;) it will use the default printer. </p>
<p>Alternatively you can of course set .ActivePrinter = &#8220;PS_Printer on PS_Port&#8221; directly &#8211; the NetworkPrinter is more for when you use a physical printer which may or may not be on the same port on each computer in a network.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Printing to PDF from VBA in Excel by Keith Thompson</title>
		<link>http://www.lejordet.com/2009/07/printing-to-pdf-from-vba-in-excel/comment-page-1/#comment-46</link>
		<dc:creator>Keith Thompson</dc:creator>
		<pubDate>Fri, 23 Oct 2009 13:16:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.lejordet.com/?p=43#comment-46</guid>
		<description>Hi,

Thanks for the article, I think it may have solved a very big problem for us.  However, I have a problem getting it to work, unfortunately.  I have set up a dummy printer (call it &quot;PS_Printer&quot;) on a dummy port (&quot;PS_Port&quot;), and used the following code:

            ThisWorkbook.Sheets(SheetName).ActivePrinter = &quot;PS_Printer&quot;
            ThisWorkbook.Sheets(SheetName).PrintOut(FileName:=strFilename, Copies:=1, PrintToFile:=True, OutputFileName:=sOutputFilename)

..but the application still tries to print to the default printer.  Have I missed something?  I have tried using the dummy printer from Word, and it seems to work just fine, so I&#039;m wondering if the code is somehow &quot;missing&quot; the dummy printer.

Any help would be very gratefully accepted!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the article, I think it may have solved a very big problem for us.  However, I have a problem getting it to work, unfortunately.  I have set up a dummy printer (call it &#8220;PS_Printer&#8221;) on a dummy port (&#8220;PS_Port&#8221;), and used the following code:</p>
<p>            ThisWorkbook.Sheets(SheetName).ActivePrinter = &#8220;PS_Printer&#8221;<br />
            ThisWorkbook.Sheets(SheetName).PrintOut(FileName:=strFilename, Copies:=1, PrintToFile:=True, OutputFileName:=sOutputFilename)</p>
<p>..but the application still tries to print to the default printer.  Have I missed something?  I have tried using the dummy printer from Word, and it seems to work just fine, so I&#8217;m wondering if the code is somehow &#8220;missing&#8221; the dummy printer.</p>
<p>Any help would be very gratefully accepted!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Compiling Subversion Python bindings on Windows by lejordet</title>
		<link>http://www.lejordet.com/2009/03/compiling-subversion-python-bindings-on-windows/comment-page-1/#comment-45</link>
		<dc:creator>lejordet</dc:creator>
		<pubDate>Wed, 02 Sep 2009 06:16:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.lejordet.com/?p=3#comment-45</guid>
		<description>I&#039;ve been trying to repeat this for building SVN 1.6.5, and I&#039;ve had some strange problems that didn&#039;t occur the first time around - I&#039;ll investigate if it&#039;s due to changing the SVN version, or if there&#039;s a problem with the procedure.

Notable changes:
- apr_* will build, but have 8-9 failed builds - the database modules won&#039;t build unless you add in the proper libraries, which is outside the scope of this article, for now.
- You might have to force VS2008 to recognize where your python.exe is found (Adding the path manually in options), otherwise some parts of the base library will build successfully (or so it seems), except there&#039;s a line about not finding &quot;python&quot;, and nothing is really built.

After a bit of work I got it to build, but the finished product, the .pyd/.py files, don&#039;t work...</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to repeat this for building SVN 1.6.5, and I&#8217;ve had some strange problems that didn&#8217;t occur the first time around &#8211; I&#8217;ll investigate if it&#8217;s due to changing the SVN version, or if there&#8217;s a problem with the procedure.</p>
<p>Notable changes:<br />
- apr_* will build, but have 8-9 failed builds &#8211; the database modules won&#8217;t build unless you add in the proper libraries, which is outside the scope of this article, for now.<br />
- You might have to force VS2008 to recognize where your python.exe is found (Adding the path manually in options), otherwise some parts of the base library will build successfully (or so it seems), except there&#8217;s a line about not finding &#8220;python&#8221;, and nothing is really built.</p>
<p>After a bit of work I got it to build, but the finished product, the .pyd/.py files, don&#8217;t work&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Compiling Subversion Python bindings on Windows by lejordet</title>
		<link>http://www.lejordet.com/2009/03/compiling-subversion-python-bindings-on-windows/comment-page-1/#comment-44</link>
		<dc:creator>lejordet</dc:creator>
		<pubDate>Mon, 31 Aug 2009 18:29:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.lejordet.com/?p=3#comment-44</guid>
		<description>Are you building all or just “__SWIG_PYTHON__”? I&#039;ll try this again to update a newer version, so I&#039;ll revise the steps if they&#039;ve become incorrect in the mean time.</description>
		<content:encoded><![CDATA[<p>Are you building all or just “__SWIG_PYTHON__”? I&#8217;ll try this again to update a newer version, so I&#8217;ll revise the steps if they&#8217;ve become incorrect in the mean time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->