<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3996675893538605870</id><updated>2024-10-25T05:00:41.398-07:00</updated><category term="Cross Browser"/><category term="Python"/><category term="CSS"/><category term="CoLinux"/><category term="Firefox"/><category term="Mac"/><category term="MySQL"/><category term="Plone"/><category term="PyQT"/><category term="Python to Windows Executable"/><category term="Windows Executable"/><category term="directives"/><category term="hardware failure"/><category term="htaccess"/><category term="pdf"/><category term="windows XP search"/><title type='text'>The Exile&#39;s Mind</title><subtitle type='html'>The future belongs to those who believe in the beauty of their dreams…</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://theexilesmind.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://theexilesmind.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3996675893538605870.post-7848823944201202413</id><published>2010-01-30T08:33:00.000-08:00</published><updated>2010-01-30T08:36:16.422-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cross Browser"/><category scheme="http://www.blogger.com/atom/ns#" term="directives"/><category scheme="http://www.blogger.com/atom/ns#" term="htaccess"/><category scheme="http://www.blogger.com/atom/ns#" term="pdf"/><title type='text'>How to automatically download PDF instead of loading to the browser?</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Most of the time accessing a pdf link will lead the browser to load it if the pdf viewer add-on is installed.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;But what if we need is to have the pdf to automatically be downloaded once we click the link? One approach that I have tried&amp;nbsp;is to use a javascript that would enforce downloading of the pdf instead of loading it, yet the problem&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;with javascript is, if it was disabled on the users browser preference making the pdf link broken. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The solution that I have found is via &lt;b&gt;.htaccess&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If your hosting allows you to use .htaccess files, add this directives into the .htaccess at the folder with your PDF-files:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;files *.pdf=&quot;&quot;&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; ForceType application/octet-stream&lt;br /&gt;
Header set Content-Disposition attachment&lt;br /&gt;
Header set Content-Transfer-Encoding binary&lt;/span&gt;&lt;/span&gt; &lt;/files&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This prevents loading the pdf’s into the browser.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;N.B.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Make sure the LoadModule headers_module modules/mod_headers.so is loaded on your apache config file &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;or you will get  &quot;Invalid command &#39;Header&#39;&quot; error&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://theexilesmind.blogspot.com/feeds/7848823944201202413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theexilesmind.blogspot.com/2010/01/how-to-automatically-download-pdf.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/7848823944201202413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/7848823944201202413'/><link rel='alternate' type='text/html' href='http://theexilesmind.blogspot.com/2010/01/how-to-automatically-download-pdf.html' title='How to automatically download PDF instead of loading to the browser?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3996675893538605870.post-2327850032118734046</id><published>2010-01-28T07:08:00.000-08:00</published><updated>2010-01-28T08:16:26.078-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cross Browser"/><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="Firefox"/><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><title type='text'>Margin and Line Height effects on FireFox 3.5.5 on Mac</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:arial;&quot;&gt;&lt;div&gt;If you set the margin top and bottom of a &lt;b&gt;&amp;lt;p&amp;gt;&lt;/b&gt; tag you have to set the &lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF0000;&quot;&gt;line-height&lt;/span&gt;&lt;/b&gt; as well as a work around for firefox 3.5.5 on Mac, this work around will not affect other browser both on mac and windows and this is to rectify the &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF0000;&quot;&gt;&lt;b&gt;line-height spacing&lt;/b&gt;&lt;/span&gt; of the &lt;b&gt;&amp;lt;p&amp;gt;&lt;/b&gt; tag.&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;Example:&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;overflow:auto; padding:10px 20px; border:1px solid #CCCCCC&quot;&gt;&amp;lt;p style=&quot;margin: 11px 0; line-height: 13px&quot;&amp;gt;Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum &amp;lt;/p&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;- this is noticeable if you have multiple paragraph inside a box with a background image, the paragraph appears to be at the center of the box in other browser but not with firefox on mac and you will notice the &lt;span class=&quot;Apple-style-span&quot;  style=&quot;color:#FF0000;&quot;&gt;&lt;b&gt;line-height&lt;/b&gt;&lt;/span&gt; is not similar to the other browser that renders it.&lt;/div&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://theexilesmind.blogspot.com/feeds/2327850032118734046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theexilesmind.blogspot.com/2010/01/margin-and-line-height-effects-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/2327850032118734046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/2327850032118734046'/><link rel='alternate' type='text/html' href='http://theexilesmind.blogspot.com/2010/01/margin-and-line-height-effects-on.html' title='Margin and Line Height effects on FireFox 3.5.5 on Mac'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3996675893538605870.post-2057613301586108296</id><published>2008-05-30T04:55:00.000-07:00</published><updated>2010-01-28T08:11:35.493-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><category scheme="http://www.blogger.com/atom/ns#" term="windows XP search"/><title type='text'>Searching for word or phrase in a file using Windows XP Search tool</title><content type='html'>I&#39;m working on a Plone product and wanted to reference some existing product wherein I needed to search for a particular word in a file because I cannot remenber where it is. Im using Windows XP and it has a search tool wherein I can search for files that contains word by using the &quot;A word or phrase in the file&quot; search criteria, when I look for a word inside a .py file it doesn&#39;t show any results and I&#39;ve noticed that it only works for .txt files only, googling around I&#39;ve discovered that Windows XP search tool is using a filter component and a valid filter component must be registered for the .py file type in order for my to search word in a .py file, this behavior is to enhance the performance of searching and avoid irrelevant results, but where can I find the appropriate filter component for my python files? Is there a way I can set Windows XP search tool to search all files just like Windows 2000 wherein all files are searched for the content type I specify? Luckily there is a way, I&#39;ve found it on Microsoft support website &lt;a href=&quot;http://support.microsoft.com/kb/309173&quot;&gt;http://support.microsoft.com/kb/309173&lt;/a&gt;, method #2 works for me.</content><link rel='replies' type='application/atom+xml' href='http://theexilesmind.blogspot.com/feeds/2057613301586108296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theexilesmind.blogspot.com/2008/05/searching-for-word-or-phrase-in-file.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/2057613301586108296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/2057613301586108296'/><link rel='alternate' type='text/html' href='http://theexilesmind.blogspot.com/2008/05/searching-for-word-or-phrase-in-file.html' title='Searching for word or phrase in a file using Windows XP Search tool'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3996675893538605870.post-774121783361368209</id><published>2008-05-27T01:33:00.000-07:00</published><updated>2010-01-28T08:11:28.557-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><title type='text'>Enabling MySQL log_warnings variable</title><content type='html'>I&#39;m encountering a MySQL connection error [&lt;span style=&quot;font-style: italic; color: rgb(204, 0, 0);&quot;&gt;host &quot;ip-address&quot; is blocked because of too many connection errors. Unblock with &#39;mysqladmin flush-host&quot;&lt;/span&gt;] whenever I use my MySQL Tools to connect to our MySQL server, what the error means is that I&#39;m having too many connection error and MySQL is now blocking any incoming connection.  I had in my MySQL server configuration set the &quot;max_connect_error&quot; variable set to 10 and don&#39;t want to increase it but I would want to know what account is trying to connect and failed, by default the &quot;log_warnings&quot; variable is set to &quot;OFF&quot; in order to turn it &quot;ON&quot; you have to login to mysql and invoke the &quot;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;set global&lt;/span&gt;&quot; command like so:&lt;br /&gt;
&lt;br /&gt;
&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOc_4FgvzG771CbblWbzu1DwXZQdhOLy1SOxTdxSGa0jmjuwsks0_tzvNvB0MecFNgL0L9zwctz-ru7yLsB9m1qpRy-aXLkEXASuJBC0uF9BdJI5RFGnc_mt7INxEgVRPZowNQJ6JT_nWh/s1600-h/New+Picture.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOc_4FgvzG771CbblWbzu1DwXZQdhOLy1SOxTdxSGa0jmjuwsks0_tzvNvB0MecFNgL0L9zwctz-ru7yLsB9m1qpRy-aXLkEXASuJBC0uF9BdJI5RFGnc_mt7INxEgVRPZowNQJ6JT_nWh/s400/New+Picture.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5204979155498638162&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://theexilesmind.blogspot.com/feeds/774121783361368209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theexilesmind.blogspot.com/2008/05/enabling-mysql-logwarnings-variable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/774121783361368209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/774121783361368209'/><link rel='alternate' type='text/html' href='http://theexilesmind.blogspot.com/2008/05/enabling-mysql-logwarnings-variable.html' title='Enabling MySQL log_warnings variable'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOc_4FgvzG771CbblWbzu1DwXZQdhOLy1SOxTdxSGa0jmjuwsks0_tzvNvB0MecFNgL0L9zwctz-ru7yLsB9m1qpRy-aXLkEXASuJBC0uF9BdJI5RFGnc_mt7INxEgVRPZowNQJ6JT_nWh/s72-c/New+Picture.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3996675893538605870.post-2644770227703416384</id><published>2008-05-20T22:23:00.000-07:00</published><updated>2010-01-28T08:11:21.315-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hardware failure"/><title type='text'>My Laptop Broke</title><content type='html'>My laptop broke last friday, when I came into office and open it up it just went on blue screen and when I restarted it, it won&#39;t boot and gives me the &quot;Operating System not found&quot; error, I tried to restart it several times but to no avail. I&#39;ve asked our Help Desk to check and hopefully fixed my laptop, weekends passed then tuesday came and they informed me that the problem was the harddisk and they can&#39;t fixed it, which means that all my files and codes are lost. I feel disappointed because the Plone upgrade that I&#39;m working on is in that harddisk. I was about to make a backup of it on that day, have not the blue screen. Now I&#39;m just waiting for the spare laptop so that I can continue my work but before that have to start installing/copying all the necessary files again.</content><link rel='replies' type='application/atom+xml' href='http://theexilesmind.blogspot.com/feeds/2644770227703416384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theexilesmind.blogspot.com/2008/05/my-laptop-broke.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/2644770227703416384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/2644770227703416384'/><link rel='alternate' type='text/html' href='http://theexilesmind.blogspot.com/2008/05/my-laptop-broke.html' title='My Laptop Broke'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3996675893538605870.post-3486976773734713395</id><published>2008-05-16T02:36:00.000-07:00</published><updated>2010-01-28T08:11:14.075-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Plone"/><title type='text'>Plone 2.0.5 to Plone 3.1.1 upgrade</title><content type='html'>I&#39;d been working on upgrading our corporate website which is currently using Plone 2.0.5 to the latest version Plone 3.1.1, been googling around and reading stuffs on how to properly upgrade to the latest one. We&#39;ve decided to do the upgrade because we&#39;ve already missed several upgrades and wanted to avail new features and feature polishes but it turned out that upgrading from 2.0.5 to 3.1.1 is not an easy task most of the products and templates are already deprecated, new implementation of portlets, the use of viewlets in replacement to the default plone templates, acl user is upgraded, tabless skin is removed although you can use NUPlone tableless skin as an alternative, products that I am using in Plone 2.0.5 have no equivalent in Plone 3.1.1 and much more. I&#39;ll try to document as much as I can while doing the upgrade and hopefully I can post it here.</content><link rel='replies' type='application/atom+xml' href='http://theexilesmind.blogspot.com/feeds/3486976773734713395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theexilesmind.blogspot.com/2008/05/plone-205-to-plone-311-upgrade.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/3486976773734713395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/3486976773734713395'/><link rel='alternate' type='text/html' href='http://theexilesmind.blogspot.com/2008/05/plone-205-to-plone-311-upgrade.html' title='Plone 2.0.5 to Plone 3.1.1 upgrade'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3996675893538605870.post-6763145244346749375</id><published>2008-05-06T01:46:00.000-07:00</published><updated>2010-01-28T08:11:05.274-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PyQT"/><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><category scheme="http://www.blogger.com/atom/ns#" term="Python to Windows Executable"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Executable"/><title type='text'>Python to Windows executable</title><content type='html'>I&#39;m working on freelance project which is a python application using PyQT as a GUI, during the testing phase the application needs to be installed on clients workstation and in order to do that I have to install Python and PyQT before I can run my application. This is fine If I&#39;m the one who will install the application but the problem will arise if the end user will be the one installing it, they might run into problems such as installing the wrong version of Python and PyQt. I also need to include Python and PyQT  installer to make sure that they have the right version but this will make my distribution package large. It would be great if i can redistribute my application that the end user can install on his machine minus the worries of incompatible Python version and the exclusion of Python and PyQT installer. So I googled around and found this site &lt;a href=&quot;http://www.py2exe.org/&quot;&gt;http://www.py2exe.org&lt;/a&gt; this can convert my Python script into packages and executable Windows program without installing Python, py2exe is not an installer builder what it does is convert and assemble the files needed in order to run Python program without installing Python.&lt;br /&gt;
&lt;br /&gt;
py2exe requires the creation of setup.py and we just need to import py2exe package and setup script from disutils package like so:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: rgb(153, 51, 0);font-size:100%;&quot; &gt;setup.py&lt;br /&gt;
-------------------------------------------------------------&lt;br /&gt;
&lt;/span&gt;&lt;div  style=&quot;text-align: left; color: rgb(153, 51, 0);font-family:Verdana;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;from distutils.core import setup&lt;br /&gt;
import py2exe&lt;br /&gt;
&lt;br /&gt;
setup(console=[&#39;testing.py&#39;])&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:100%;&quot; &gt;-------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
the next step is to run the setup script on the command prompt like this:&lt;br /&gt;
&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:100%;&quot; &gt;c:\testing &gt; python setup.py py2exe&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;We will see lots of output printed on the console and at the end two directories will be created -- &quot;build&quot; and &quot;dist&quot; folder, we can delete &lt;span style=&quot;font-weight: bold;&quot;&gt;build &lt;/span&gt;directory while &lt;span style=&quot;font-weight: bold;&quot;&gt;dist &lt;/span&gt;directory contains the package and windows executables. As I have mentioned a while ago py2exe is not an installer builder if we need one we can use Inno Setup to build one.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s my setup script&lt;br /&gt;
&lt;span style=&quot;color: rgb(153, 51, 0);font-family:Verdana;font-size:100%;&quot;  &gt;-------------------------------------------------------------&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-size:100%;&quot; &gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;from distutils.core import setup&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;import py2exe, os&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;class build_DIRIncludes(py2exe):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;def run(self):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# First, let py2exe do it&#39;s work.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;py2exe.run(self)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print &quot;--- moving conf ---&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print os.popen(&#39;move conf&#39;).read() &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print &quot;--- moving inputs ---&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print os.popen(&#39;move inputs&#39;).read() &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print &quot;--- moving output ---&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print os.popen(&#39;move output&#39;).read() &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print &quot;done&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;setup(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;options = {&quot;py2exe&quot;: {&quot;optimize&quot;: 2,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;packages&quot;: [&quot;PyQt4&quot;,&quot;sip&quot;],&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;dist_dir&quot;: &quot;my_application&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;                                                &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;windows=[&#39;my_application.py&#39;],&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cmdclass = {&quot;py2exe&quot;: build_DIRIncludes},&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family:Verdana;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: rgb(153, 51, 0);font-family:courier new;font-size:100%;&quot;  &gt;-------------------------------------------------------------&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://theexilesmind.blogspot.com/feeds/6763145244346749375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theexilesmind.blogspot.com/2008/05/python-to-windows-executable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/6763145244346749375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/6763145244346749375'/><link rel='alternate' type='text/html' href='http://theexilesmind.blogspot.com/2008/05/python-to-windows-executable.html' title='Python to Windows executable'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3996675893538605870.post-7989026167889848349</id><published>2008-03-11T04:16:00.000-07:00</published><updated>2010-01-28T08:10:25.345-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CoLinux"/><title type='text'>Replacing Xvnc with KDE/GNOME Desktop Environment on CoLinux</title><content type='html'>&lt;div&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW0HgwuInfkN8X0iZ1BA6jl3ooR4Lj85nb2W_Z2LgMI9fgZfeP95YdnQlB8dcm-E20q0Ui8ojlBbc5-qXpfCgPnSoMbzMMpavWk6y5CRZdPl8GBE_xPUNECZCfIiIMyAp3es6Qat9i3Njv/s1600-h/xnvc.gif&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW0HgwuInfkN8X0iZ1BA6jl3ooR4Lj85nb2W_Z2LgMI9fgZfeP95YdnQlB8dcm-E20q0Ui8ojlBbc5-qXpfCgPnSoMbzMMpavWk6y5CRZdPl8GBE_xPUNECZCfIiIMyAp3es6Qat9i3Njv/s320/xnvc.gif&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5176737931124127858&quot; /&gt;&lt;/a&gt;I&#39;ve just upgraded my Fedora Core 5 to Fedora Core 7, the latter is already configured to use Xvnc when using a VNC client and it can be configured using KDE and GNOME Desktop Environment so I&#39;ve tried it out. What I did is access Fedora Core 7 using VNC as it is already configured and used Xvnc as the default Desktop Environment, unlike the prior version of fedora that I have used, I need to configure manually the X window and have it run under Windows and launch an X session using Xming and I had to deal with a lot of difficulties in doing so, but with the current version I just need to run &quot;pirut&quot; on the terminal and select KDE/GNOME Desktop Environment and install it, after that just restart colinux and you will be able to use KDE/GNOME as your default Desktop Environment.&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align:center&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSjnKP0ChJ2HDs2fNfByNiSDfiiNhVINKpnhh18KUWYbJTplt0fpxVX_qx0KPqRpqdBypBiHabPvf1LbDtAFFgYtOt-KV_Sd54R3oVqUZTzSRCeF_bxduxSj0vZSgz2FDRDjm4bEWzdJBA/s1600-h/kde.gif&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSjnKP0ChJ2HDs2fNfByNiSDfiiNhVINKpnhh18KUWYbJTplt0fpxVX_qx0KPqRpqdBypBiHabPvf1LbDtAFFgYtOt-KV_Sd54R3oVqUZTzSRCeF_bxduxSj0vZSgz2FDRDjm4bEWzdJBA/s320/kde.gif&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5176716507827255330&quot; /&gt;&lt;/a&gt;&lt;div&gt;KDE&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align:center&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaMjKQDWsYHz72YRJaak2c3Ihu7Px8a31rIuAROS_XnnLjdrzjCaFAuE_JCuIOOPzgi8alztzkE0nqgi1LKLzoKDiJEi-_iW9B6pnSrWMY-IZPOcPwW2N7LDyoxeKAyj6gaOGyvofuwxph/s1600-h/gnome.gif&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaMjKQDWsYHz72YRJaak2c3Ihu7Px8a31rIuAROS_XnnLjdrzjCaFAuE_JCuIOOPzgi8alztzkE0nqgi1LKLzoKDiJEi-_iW9B6pnSrWMY-IZPOcPwW2N7LDyoxeKAyj6gaOGyvofuwxph/s320/gnome.gif&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5176736479425181778&quot; /&gt;&lt;/a&gt;&lt;div&gt;GNOME&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theexilesmind.blogspot.com/feeds/7989026167889848349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theexilesmind.blogspot.com/2008/03/replacing-xvnc-with-kdegnome-desktop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/7989026167889848349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/7989026167889848349'/><link rel='alternate' type='text/html' href='http://theexilesmind.blogspot.com/2008/03/replacing-xvnc-with-kdegnome-desktop.html' title='Replacing Xvnc with KDE/GNOME Desktop Environment on CoLinux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW0HgwuInfkN8X0iZ1BA6jl3ooR4Lj85nb2W_Z2LgMI9fgZfeP95YdnQlB8dcm-E20q0Ui8ojlBbc5-qXpfCgPnSoMbzMMpavWk6y5CRZdPl8GBE_xPUNECZCfIiIMyAp3es6Qat9i3Njv/s72-c/xnvc.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3996675893538605870.post-6411525019215910641</id><published>2008-03-04T00:42:00.000-08:00</published><updated>2010-01-28T08:09:55.098-08:00</updated><title type='text'>Initial Posting</title><content type='html'>&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;font-family:arial;&quot;&gt;This will be my initial posting, am planning to post more as I go along...&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://theexilesmind.blogspot.com/feeds/6411525019215910641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theexilesmind.blogspot.com/2008/03/initial-posting.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/6411525019215910641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3996675893538605870/posts/default/6411525019215910641'/><link rel='alternate' type='text/html' href='http://theexilesmind.blogspot.com/2008/03/initial-posting.html' title='Initial Posting'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>