<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
	<title>Qcodo.com RSS Feed</title>
	<link>http://www.qcodo.com/</link>
	<description>The Qcodo Development Framework is an open-source PHP framework that focuses on freeing developers from unnecessary tedious, mundane coding.  This RSS feed reports on the most recent activity, posts and community contributions to the framework via the Qcodo.com website.</description>
	<pubDate>Wed, 16 May 2012 19:00:33 PDT</pubDate>
	<generator>Qcodo Development Framework 0.4.22</generator>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<image>
		<url>http://www.qcodo.com/images/qcodo_smaller.png</url>
		<title>Qcodo.com RSS Feed</title>
		<link>http://www.qcodo.com/</link>
		<width>200</width>
		<height>84</height>
	</image>
	<item>
		<title>[Forums] Re: Export Datagrid to xls (or csv), pdf, and/or html on the fly</title>
		<link>http://www.qcodo.com/forums/forum.php/2/2103/lastpage</link>
		<description><![CDATA[<p>One easy way I have found to do this export thing is to create a button, and using a SERVER action (not ajax) I am able to get a download to occur. &nbsp;Below is the simple button create and action to prompt a download.</p>

<pre ><code><span style="color: #000000">protected&nbsp;function&nbsp;btnExport_Create(){<br />&nbsp;&nbsp;&nbsp;$this-&gt;btnExport&nbsp;=&nbsp;new&nbsp;QButton($this);<br />&nbsp;&nbsp;&nbsp;$this-&gt;btnExport-&gt;Text&nbsp;=&nbsp;QApplication::Translate('Export&nbsp;to&nbsp;CSV');<br />&nbsp;&nbsp;&nbsp;$this-&gt;btnExport-&gt;AddAction(new&nbsp;QClickEvent(),&nbsp;new&nbsp;QServerAction('btnExport_Click'));<br />}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />protected&nbsp;function&nbsp;btnExport_Click($strFormId,&nbsp;$strControlId,&nbsp;$strParameter)&nbsp;{<br />&nbsp;&nbsp;&nbsp;header("Content-type:&nbsp;application/octet-stream");<br />&nbsp;&nbsp;&nbsp;header("Content-Disposition:&nbsp;attachment;&nbsp;filename=\"my-data.csv\"");<br />&nbsp;&nbsp;&nbsp;echo&nbsp;"this&nbsp;and,&nbsp;that";&nbsp;//&nbsp;replace&nbsp;this&nbsp;with&nbsp;table&nbsp;data&nbsp;or&nbsp;whatever<br />&nbsp;&nbsp;&nbsp;exit;<br />}</span></code></pre>

]]></description>
		<author>w. Patrick Gale</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/2103/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/2103/lastpage#36</guid>
		<pubDate>Thu, 10 May 2012 09:46:03 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] Migrating a site to a new server</title>
		<link>http://www.qcodo.com/forums/forum.php/6/4474/lastpage</link>
		<description><![CDATA[<p>We are attempting to migrate a QCodo 0.3.32 site to another host.</p>

<p>Based on the following page, I thought this would be fairly straightforward:<br/>
http://www.qcodo.com/wiki/qcodo/requirements</p>

<p>I copied the current site from the old box (RHEL 4 [32-bit], PHP 5.2.3, MySQL 5.0.41, WebAuth 3.5.1) to a newer box (RHEL 5 [32-bit], PHP 5.2.9, MySQL 5.0.77, WebAuth 3.6.1).</p>

<p>I did a mysqldump on the old box and imported into the new box.</p>

<p>I copied the old Apache config over to the new box.</p>

<p>I have the correct PHP extensions (and their dependencies) installed.</p>

<p>WebAuth is working on the new box.</p>

<p>I'm just not sure what else to try - and I'm not seeing any errors in the Apache logs.</p>

<p>Upon visiting the site via a browser, I get CSS, images, JS, and such, but no content. Inside of the areas where the content should be, I see either blank white areas or one with the following error:<br/>
&ldquo;Oops, an error has occurred. Either the page you are looking for does not exist or an error occurred while trying to load the page.&rdquo;</p>

<p>Any thoughts?</p>

]]></description>
		<author>maseda</author>
		<category>Getting Started, Installation and Setup</category>
		<comments>http://www.qcodo.com/forums/forum.php/6/4474/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/6/4474/lastpage#1</guid>
		<pubDate>Mon, 30 Apr 2012 21:55:24 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] QCodo 0.3.x to 0.4.x Upgrade</title>
		<link>http://www.qcodo.com/forums/forum.php/9/4473/lastpage</link>
		<description><![CDATA[<p>We are seeking a consultant to upgrade our QCodo site to the latest stable version.</p>

<p>There were customizations performed to the site by a knowledgeable QCodo developer. Plus, the site is WebAuth aware:<br/>
http://webauth.stanford.edu</p>

<p>The individual we are seeking should have intermediate to advanced knowledge in the above areas. </p>

<p>Please feel free to contact us with any questions.</p>

]]></description>
		<author>maseda</author>
		<category>Qcodo Jobs Board</category>
		<comments>http://www.qcodo.com/forums/forum.php/9/4473/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/9/4473/lastpage#1</guid>
		<pubDate>Mon, 30 Apr 2012 21:34:24 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] Re: QPM Not Working</title>
		<link>http://www.qcodo.com/forums/forum.php/2/4472/lastpage</link>
		<description><![CDATA[<p>Thanks Mike, works like a charm.</p>

]]></description>
		<author>banetbi</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/4472/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/4472/lastpage#3</guid>
		<pubDate>Mon, 30 Apr 2012 07:02:12 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] Re: QPM Not Working</title>
		<link>http://www.qcodo.com/forums/forum.php/2/4472/lastpage</link>
		<description><![CDATA[<p>Strange ... this was fixed a while ago, but I guess the fixed wasn't checked in to the GIT repository for the qcodo website, and so it got re-placed in there.</p>

<p>Regardless, it's fixed now, and hopefully this time, it's fixed for good.</p>

]]></description>
		<author>Mike Ho</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/4472/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/4472/lastpage#2</guid>
		<pubDate>Fri, 27 Apr 2012 13:03:13 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] Re: QPM Not Working</title>
		<link>http://www.qcodo.com/forums/forum.php/2/4472/lastpage</link>
		<description><![CDATA[<p>============================================= Error in PHP CLI Script - qpm-download.cli.php =============================================<br/>
fopen(http://qpm.qcodo.com/1_0.php/DownloadPackage?name=qckeditor&amp;u=klucznik&amp;gz=0): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error</p>

<p>Any ideas on what the problem might be?</p>

]]></description>
		<author>banetbi</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/4472/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/4472/lastpage#1</guid>
		<pubDate>Fri, 27 Apr 2012 06:49:27 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] Re: Array type in QSoap</title>
		<link>http://www.qcodo.com/forums/forum.php/2/3402/lastpage</link>
		<description><![CDATA[<p>Finally figured it out.</p>

<p>Qcodo always checks the type of data in array, if datatype specified in phpdoc ends with [].</p>

<p>Workaround<br/>
 &nbsp;@return String[]</p>

<p>Regards,<br/>
 Attila</p>

]]></description>
		<author>Gaspar Attila</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/3402/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/3402/lastpage#4</guid>
		<pubDate>Wed, 25 Apr 2012 11:55:56 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] Re: Array type in QSoap</title>
		<link>http://www.qcodo.com/forums/forum.php/2/3402/lastpage</link>
		<description><![CDATA[<p>Hello,</p>

<p> I have a similar problem, but I wan`t to return an array which values not objects.<br/>
For ex. an array of types generated from _type tables. (ProductType::$NameArray)</p>

<p>This is possible?</p>

<p>I tryed to use @return array - but isgenerated an exception, then @return [] - with this no exception but only null returned.</p>

<p>My Qcodo version is 0.4.22</p>

<p>Regards,<br/>
 Attila</p>

]]></description>
		<author>Gaspar Attila</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/3402/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/3402/lastpage#3</guid>
		<pubDate>Wed, 25 Apr 2012 11:43:03 PDT</pubDate>
	</item>
	<item>
		<title>[Issue] Re: QEmailServer header issues</title>
		<link>http://www.qcodo.com/issues/view.php/84/lastpage</link>
		<description><![CDATA[<p>I have a related patch for QCubed at http://trac.qcu.be/projects/qcubed/attachment/ticket/654/qemailserverpatch<br/>
See http://trac.qcu.be/projects/qcubed/ticket/654 for the bugreport.</p>

<p>Last time I checked, most of the changes could also be applied to Qcodo...</p>

]]></description>
		<author>michaelarnauts</author>
		<comments>http://www.qcodo.com/issues/view.php/84/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/issues/view.php/84/lastpage#8</guid>
		<pubDate>Sat, 21 Apr 2012 16:09:06 PDT</pubDate>
	</item>
	<item>
		<title>[Issue] Re: QEmailServer header issues</title>
		<link>http://www.qcodo.com/issues/view.php/84/lastpage</link>
		<description><![CDATA[<p>Rfc 1342 contains a reference to this.</p>

]]></description>
		<author>michaelarnauts</author>
		<comments>http://www.qcodo.com/issues/view.php/84/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/issues/view.php/84/lastpage#7</guid>
		<pubDate>Sat, 21 Apr 2012 16:03:48 PDT</pubDate>
	</item>
	<item>
		<title>[Issue] QImageControl transparent background</title>
		<link>http://www.qcodo.com/issues/view.php/87/lastpage</link>
		<description><![CDATA[<p>When resize a transparent background image, after the image resized the background changed to white.</p>

<p>I modified the core QControlImageBase to handle background transparency.</p>

<p>Here is the code:<br/>
https://github.com/snowmann/qcodo/commit/929701a93dee79b65b61ebfa37fb50ff9f79d3d5</p>

<p>and</p>

<p>https://github.com/snowmann/qcodo/commit/f12fd7ee7a3bb320c93ee1068f91659c511a7848</p>

]]></description>
		<author>Gaspar Attila</author>
		<comments>http://www.qcodo.com/issues/view.php/87/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/issues/view.php/87/lastpage#1</guid>
		<pubDate>Wed, 18 Apr 2012 11:49:00 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] Re: database Qcodo query speed</title>
		<link>http://www.qcodo.com/forums/forum.php/2/4449/lastpage</link>
		<description><![CDATA[<p>I fit in with your conclusions and looking forward to your updates.<br/>
</p>

]]></description>
		<author>stevetamer</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/4449/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/4449/lastpage#10</guid>
		<pubDate>Tue, 17 Apr 2012 21:34:05 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] Re: DevTips: Comparing "Type" Values Between Environments</title>
		<link>http://www.qcodo.com/forums/forum.php/5/4467/lastpage</link>
		<description><![CDATA[<p>Thanks for sharing, we'll put this to good use.</p>

]]></description>
		<author>cdhamm</author>
		<category>Official Blog</category>
		<comments>http://www.qcodo.com/forums/forum.php/5/4467/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/5/4467/lastpage#2</guid>
		<pubDate>Tue, 17 Apr 2012 20:19:50 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] Re: DevTips: Comparing "Type" Values Between Environments</title>
		<link>http://www.qcodo.com/forums/forum.php/5/4467/lastpage</link>
		<description><![CDATA[<p>Hey all...</p>

<p>I know it's been a while since I've posted here... but I just wanted to give a quick &ldquo;hi&rdquo; to everyone, and also I wanted to start a new series of postings within the Official Blog forum that I want to begin to have:</p>

<p>Over the years of working with, consulting, and talking to development teams, there are common, deeper rooted questions that come up time and time again with regards to efficiently and effectively using Qcodo (as well as PHP overall) in a mature project dev cycle. &nbsp;Things from architecture issues, code structure, maintenance and ongoing modularity, refactoring advice, etc... all issues that come up time and time again, especially on applications that have been up and running for months and years.</p>

<p>Since a lot of these things aren't really covered in any sort of in-depth tutorial (and quite frankly, since many of these things aren't really well suited for an in-depth tutorial), I figure I should start blogging about them from time to time...</p>

<p>And so I present to you our first posting of a series known as &ldquo;DevTips&rdquo;.</p>

<h3>Comparing &ldquo;Type&rdquo; Values Between Environments</h3>

<p>For our first entry, I wanted to talk about something that a lot of mature Qcodo applications run into on a very regular basis. &nbsp;Specifically, most development teams are running (or if you're not, you <strong>should</strong> be running) separate environments between production and development, which means that they are maintaining two distinct databases.</p>

<p>In general, you want to keep the two database environments in sync (e.g. if you make data model changes on dev, you should make those same changes on production when you push the updated code to production).</p>

<p>The tough part of course is keeping track of <strong>what</strong> changed in dev, so that you know what should be applied to production.</p>

<p>I'll talk about the overall data model and tips on how to keep the model, itself, in sync. &nbsp;But for now, I wanted to talk specifically about the &ldquo;_type&rdquo; tables.</p>

<p>I've got a really simple CLI-based PHP script that I call <strong>typediff</strong> that can be run from any POSIX-based command line (e.g. Mac OS X, Linux, Unix, or Cygwin) which basically takes the name of two different databases. &nbsp;And all it does is compare all the various type tables, and inspects the actual values stored within those type tables, in each database you specify.</p>

<p>Then the next step is that it does a simple &ldquo;diff&rdquo; on the results of both, and it shows you what type values are missing from one vs. the other.</p>

<pre ><code><span style="color: #000000">#!/usr/local/bin/php<br /><span style="color: #0000BB">&lt;?php<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;((</span><span style="color: #0000BB">$_SERVER</span><span style="color: #007700">[</span><span style="color: #DD0000">'argc'</span><span style="color: #007700">]&nbsp;!=&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">)&nbsp;&amp;&amp;&nbsp;(</span><span style="color: #0000BB">$_SERVER</span><span style="color: #007700">[</span><span style="color: #DD0000">'argc'</span><span style="color: #007700">]&nbsp;!=&nbsp;</span><span style="color: #0000BB">4</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print&nbsp;(</span><span style="color: #DD0000">'usage:&nbsp;typediff&nbsp;FROM_DB&nbsp;TO_DB&nbsp;[TABLES_TO_IGNORE]'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"\r\n"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit&nbsp;(</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;</span><span style="color: #0000BB">ProcessDatabaseType</span><span style="color: #007700">(</span><span style="color: #0000BB">$strDatabaseName</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$strTablesToIgnoreArray</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$objDb&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">mysqli</span><span style="color: #007700">(</span><span style="color: #DD0000">'localhost'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'root'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$strDatabaseName</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$objTableResult&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$objDb</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'SHOW&nbsp;TABLES&nbsp;WHERE&nbsp;Tables_in_'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$strDatabaseName&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"&nbsp;LIKE&nbsp;'%_type';"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$strToReturn&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;(</span><span style="color: #0000BB">$objTableRow&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$objTableResult</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch_array</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$strTableName&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$objTableRow</span><span style="color: #007700">[</span><span style="color: #DD0000">'Tables_in_'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$strDatabaseName</span><span style="color: #007700">];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(!</span><span style="color: #0000BB">array_key_exists</span><span style="color: #007700">(</span><span style="color: #0000BB">strtolower</span><span style="color: #007700">(</span><span style="color: #0000BB">$strTableName</span><span style="color: #007700">),&nbsp;</span><span style="color: #0000BB">$strTablesToIgnoreArray</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$objResult&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$objDb</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'SELECT&nbsp;*&nbsp;FROM&nbsp;'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$strTableName&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">'&nbsp;ORDER&nbsp;BY&nbsp;id;'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;(</span><span style="color: #0000BB">$objRow&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$objResult</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch_array</span><span style="color: #007700">())&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$strToReturn&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #0000BB">sprintf</span><span style="color: #007700">(</span><span style="color: #DD0000">'%s[%s]&nbsp;=&nbsp;"%s"'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"\r\n"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$strTableName</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$objRow</span><span style="color: #007700">[</span><span style="color: #DD0000">'id'</span><span style="color: #007700">],<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$objRow</span><span style="color: #007700">[</span><span style="color: #DD0000">'name'</span><span style="color: #007700">]);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">$strToReturn</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Should&nbsp;we&nbsp;ignore&nbsp;any&nbsp;tables?<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$strTablesToIgnoreArray&nbsp;</span><span style="color: #007700">=&nbsp;array();<br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">array_key_exists</span><span style="color: #007700">(</span><span style="color: #0000BB">3</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$_SERVER</span><span style="color: #007700">[</span><span style="color: #DD0000">'argv'</span><span style="color: #007700">]))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;(</span><span style="color: #0000BB">explode</span><span style="color: #007700">(</span><span style="color: #DD0000">','</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$_SERVER</span><span style="color: #007700">[</span><span style="color: #DD0000">'argv'</span><span style="color: #007700">][</span><span style="color: #0000BB">3</span><span style="color: #007700">])&nbsp;as&nbsp;</span><span style="color: #0000BB">$strTableName</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$strTablesToIgnoreArray</span><span style="color: #007700">[</span><span style="color: #0000BB">strtolower</span><span style="color: #007700">(</span><span style="color: #0000BB">$strTableName</span><span style="color: #007700">)]&nbsp;=&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">file_put_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">'/tmp/from.sql'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ProcessDatabaseType</span><span style="color: #007700">(</span><span style="color: #0000BB">$_SERVER</span><span style="color: #007700">[</span><span style="color: #DD0000">'argv'</span><span style="color: #007700">][</span><span style="color: #0000BB">1</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">$strTablesToIgnoreArray</span><span style="color: #007700">));<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">file_put_contents</span><span style="color: #007700">(</span><span style="color: #DD0000">'/tmp/to.sql'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ProcessDatabaseType</span><span style="color: #007700">(</span><span style="color: #0000BB">$_SERVER</span><span style="color: #007700">[</span><span style="color: #DD0000">'argv'</span><span style="color: #007700">][</span><span style="color: #0000BB">2</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">$strTablesToIgnoreArray</span><span style="color: #007700">));<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">passthru</span><span style="color: #007700">(</span><span style="color: #DD0000">'diff&nbsp;/tmp/from.sql&nbsp;/tmp/to.sql'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></pre>

<p>A few assumptions: you have your PHP cli executable located in /usr/local/bin/php (see line #1) and you have the CLI tool <strong>diff</strong> installed on your local machine. &nbsp;Also, it assumes that you are accessing the database via localhost, using &ldquo;root&rdquo; as the username and no password.</p>

<p>A tool like this can help when you do a build/release to production to ensure your type tables are up to date on production as what you were developing against on dev. &nbsp;A typical approach would be to get the latest copy of your production database locally onto your machine in dev, and then run the <strong>typediff</strong> between your local copy of prod and your local dev instance, and you should see the differences.</p>

<p>From there, it should be pretty simple/straightforward to write up a little SQL script to perform any INSERTs, UPDATEs or DELETEs in order to get your prod to match what you have in dev.</p>

<p>Hopefully this quick little utility will help folks when trying to deal with simply knowing what the differences are within the &ldquo;_type&rdquo; tables on two difference versions of the same database.</p>

<p>As always, please post with any comments or suggestions.</p>

]]></description>
		<author>Mike Ho</author>
		<category>Official Blog</category>
		<comments>http://www.qcodo.com/forums/forum.php/5/4467/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/5/4467/lastpage#1</guid>
		<pubDate>Tue, 17 Apr 2012 16:20:24 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] Re: Event handler in DataGrid row</title>
		<link>http://www.qcodo.com/forums/forum.php/2/1838/lastpage</link>
		<description><![CDATA[<p>Is it possible do to so by now (2012) to do so? I mean, to add an event to a datagrid row? If not, what should I do (if you could give an example I would appreciate it)?</p>

]]></description>
		<author>Bruno Gama</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/1838/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/1838/lastpage#5</guid>
		<pubDate>Wed, 11 Apr 2012 10:16:14 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] Re: Patch for AJAX file uploads</title>
		<link>http://www.qcodo.com/forums/forum.php/2/1991/lastpage</link>
		<description><![CDATA[<p>First of all thanks Matthew for this patch. I was using it for a while and has found a bug but only today finally solved it. </p>

<p>The bug is when using ajax file uploads (for example a modified QFileAsset) together with a normal serveraction for form. Your patch modify form target to the id of the iframe that you dynamically create and the file upload goes just fine. The problem is when submit later the form with standard serveraction. The form has left to that target, but iframe is already deleted, so it submits in a new page, etc. So, my solution was very simple:</p>

<pre ><code><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;bkTarget&nbsp;=&nbsp;objForm.target;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objForm.target&nbsp;=&nbsp;id;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objForm.submit();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;objForm.target&nbsp;=&nbsp;bkTarget;<br /></span></code></pre>

<p>Hope it will help someone.</p>

]]></description>
		<author>Igor Butuc</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/1991/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/1991/lastpage#7</guid>
		<pubDate>Fri, 23 Mar 2012 01:07:01 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] Re: Ajax broken after file download</title>
		<link>http://www.qcodo.com/forums/forum.php/2/2143/lastpage</link>
		<description><![CDATA[<p>Here is the fix:</p>

<p> &nbsp; &nbsp; &nbsp; &nbsp;//$this-&gt;objForm-&gt;RenderBegin(false);<br/>
 &nbsp; &nbsp; &nbsp; &nbsp;//$this-&gt;objForm-&gt;RenderEnd(false);</p>

<p>-&gt; WORKING</p>

<p>Best Regards,<br/>
tronics</p>

]]></description>
		<author>tronics</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/2143/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/2143/lastpage#11</guid>
		<pubDate>Sun, 11 Mar 2012 08:11:37 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] Re: Ajax broken after file download</title>
		<link>http://www.qcodo.com/forums/forum.php/2/2143/lastpage</link>
		<description><![CDATA[<p>Sorry to push this old thread, but I have the same problem.</p>

]]></description>
		<author>tronics</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/2143/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/2143/lastpage#10</guid>
		<pubDate>Sun, 11 Mar 2012 08:05:34 PDT</pubDate>
	</item>
	<item>
		<title>[Forums] Re: database Qcodo query speed</title>
		<link>http://www.qcodo.com/forums/forum.php/2/4449/lastpage</link>
		<description><![CDATA[<p>The instantiation of the objects take time.</p>

<p>Using query cursor instead of query array does not reduce the time significantly.</p>

]]></description>
		<author>arunjohnruben</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/4449/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/4449/lastpage#9</guid>
		<pubDate>Fri, 09 Mar 2012 00:01:34 PST</pubDate>
	</item>
	<item>
		<title>[Forums] Re: Difference between php codegen and cli codegen</title>
		<link>http://www.qcodo.com/forums/forum.php/2/4181/lastpage</link>
		<description><![CDATA[<p>hi, we had the same problem and found the was a space in codegen .xml, not very apparent in our windows 7 &nbsp;local environment (where default names and extensions are in separate columns making extra white space not very obvious to spot.</p>

<p>Package problem (0.4.22 - apparently not) or common mistake renaming ?</p>

]]></description>
		<author>Peter Janssens</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/4181/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/4181/lastpage#5</guid>
		<pubDate>Thu, 08 Mar 2012 01:37:18 PST</pubDate>
	</item>
	<item>
		<title>[Forums] Re: RenderWithError odd behaviour if CSS changed</title>
		<link>http://www.qcodo.com/forums/forum.php/2/4464/lastpage</link>
		<description><![CDATA[<p>I hope this saves somebody a week of their lives!</p>

<p>The code below for some reason caused the problems I was having:</p>

<p>&lt;body&gt;<br/>
 &nbsp; &nbsp;&lt;div id=&ldquo;main-container&rdquo;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br/>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;div id=&ldquo;top-panel&rdquo;&gt;<br/>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;?php $this-&gt;RenderBegin(); ?&gt;</p>

<p>To solve it required moving RenderBegin() to immediately below the body tag as follows:</p>

<p>&lt;body&gt;<br/>
 &nbsp; &nbsp;&lt;?php $this-&gt;RenderBegin(); ?&gt;<br/>
 &nbsp; &nbsp;&lt;div id=&ldquo;main-container&rdquo;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br/>
 &nbsp; &nbsp; &nbsp; &lt;div id=&ldquo;top-panel&rdquo;&gt;</p>

<p>I don't confess to understand why but problem solved.<br/>
Mike</p>

]]></description>
		<author>Mike Cobb</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/4464/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/4464/lastpage#3</guid>
		<pubDate>Thu, 23 Feb 2012 15:07:01 PST</pubDate>
	</item>
	<item>
		<title>[Forums] Forget password not working in qcodo.com</title>
		<link>http://www.qcodo.com/forums/forum.php/7/4465/lastpage</link>
		<description><![CDATA[<p>I have tried to retrieve my another account password using the Forget Password feature but I have not received any email after waited for an hour. I have checked Spam folder and it's not in there too.</p>

]]></description>
		<author>bfossil2</author>
		<category>Qcodo.com, Examples Site and API Documentation</category>
		<comments>http://www.qcodo.com/forums/forum.php/7/4465/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/7/4465/lastpage#1</guid>
		<pubDate>Wed, 22 Feb 2012 19:41:24 PST</pubDate>
	</item>
	<item>
		<title>[Forums] Re: Web App Designer Needed</title>
		<link>http://www.qcodo.com/forums/forum.php/9/4461/lastpage</link>
		<description><![CDATA[<p>Hi, have you found anyone helping you yet ? I am interested with the project. I've been using qcodo since 2009 and have developed more than 5 qcodo-based projects. Perhaps we should discuss about it. You can reached me at info@khsoftware.com.my</p>

]]></description>
		<author>bfossil2</author>
		<category>Qcodo Jobs Board</category>
		<comments>http://www.qcodo.com/forums/forum.php/9/4461/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/9/4461/lastpage#2</guid>
		<pubDate>Wed, 22 Feb 2012 19:35:56 PST</pubDate>
	</item>
	<item>
		<title>[Forums] Re: RenderWithError odd behaviour if CSS changed</title>
		<link>http://www.qcodo.com/forums/forum.php/2/4464/lastpage</link>
		<description><![CDATA[<p>I now have a similar problem if I don't change the CssClass but the user input text is cleared if it fails validation. If the user reenters valid text the validation continues to fail as their first input text is sent not the new text.<br/>
Mike</p>

]]></description>
		<author>Mike Cobb</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/4464/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/4464/lastpage#2</guid>
		<pubDate>Tue, 21 Feb 2012 09:10:36 PST</pubDate>
	</item>
	<item>
		<title>[Forums] Re: QRadioButtonList SelectedValue null when repopulated</title>
		<link>http://www.qcodo.com/forums/forum.php/2/4463/lastpage</link>
		<description><![CDATA[<p>Thanks for getting back.</p>

<p>The QRadioButtonList is on a panel separate to the datagrid. When the page first loads it populates the radiobuttonlist using the same action that the DataGrid items use to populate it.</p>

<p>This works fine but when a different item is selected in the DataGrid although the list correctly updates showing a new set of radio items the radiobuttonlist always returns null as the selectedvalue. The values of each radioitem are correctly set.<br/>
Mike</p>

]]></description>
		<author>Mike Cobb</author>
		<category>General Discussion</category>
		<comments>http://www.qcodo.com/forums/forum.php/2/4463/lastpage</comments>
		<guid isPermaLink="true">http://www.qcodo.com/forums/forum.php/2/4463/lastpage#3</guid>
		<pubDate>Tue, 21 Feb 2012 01:20:00 PST</pubDate>
	</item>
</channel>
</rss>

