<?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>Autarchy of the Private Cavefix &#187;</title> <atom:link href="http://bogdan.org.ua/tags/fix/feed" rel="self" type="application/rss+xml" /><link>http://bogdan.org.ua</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Fri, 03 Feb 2012 22:51:18 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>WordPress and Google Analytics external nofollow problem in comment links</title><link>http://bogdan.org.ua/2009/02/13/wordpress-and-google-analytics-external-nofollow-problem-in-comment-links.html</link> <comments>http://bogdan.org.ua/2009/02/13/wordpress-and-google-analytics-external-nofollow-problem-in-comment-links.html#comments</comments> <pubDate>Fri, 13 Feb 2009 19:41:55 +0000</pubDate> <dc:creator>Bogdan</dc:creator> <category><![CDATA[CMS]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[comment]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[link]]></category> <category><![CDATA[problem]]></category> <category><![CDATA[wordpress]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/?p=594</guid> <description><![CDATA[Since some WP release, the comment author's link in comments is broken - it has ' external nofollow' attached straight to the href attribute (which breaks the link). I assume that the problem is caused by Google Analytics, namely the "track outgoing clicks" feature (as recalled, might be inaccurate feature name). "Track outgoing links" adds [...]]]></description> <content:encoded><![CDATA[<p>Since some WP release, the comment author's link in comments is broken - it has ' external nofollow' attached straight to the href attribute (which breaks the link).</p><p>I assume that the problem is caused by Google Analytics, namely the "track outgoing clicks" feature (as recalled, might be inaccurate feature name). "Track outgoing links" adds some JavaScript code to all outgoing links, and that script has tick characters like this one ' which, incidentally, are also used for delimiting the values of comment anchor tags.</p><p>To fix:<br
/> <span
id="more-594"></span></p><ol><li>locate file <strong>wp-includes/comment-template.php</strong></li><li>in that file, find the <strong>get_comment_author_link</strong> function (lines 140-150 in WP 2.7.1)</li><li>replace the line<div
class="igBar"><span
id="lphp-3"><a
href="#" onclick="javascript:showPlainTxt('php-3'); return false;">PLAIN TEXT</a></span></div><div
class="syntax_hilite"><span
class="langName">PHP:</span><div
id="php-3"><div
class="php"><ol><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$return</span> = <span
style="color:#FF0000;">"&lt;a href='$url' rel='external nofollow' class='url'&gt;$author&lt;/a&gt;"</span>;</div></li></ol></div></div></div><p> with</p><div
class="igBar"><span
id="lphp-4"><a
href="#" onclick="javascript:showPlainTxt('php-4'); return false;">PLAIN TEXT</a></span></div><div
class="syntax_hilite"><span
class="langName">PHP:</span><div
id="php-4"><div
class="php"><ol><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$return</span> = <span
style="color:#FF0000;">'&lt;a href=&quot;'</span>.<span
style="color:#0000FF;">$url</span>.<span
style="color:#FF0000;">'&quot; rel=&quot;external nofollow&quot; class=&quot;url&quot;&gt;'</span>.<span
style="color:#0000FF;">$author</span>.<span
style="color:#FF0000;">'&lt;/a&gt;'</span>;</div></li></ol></div></div></div><p></li></ol><p>This helped me and might help you.</p> ]]></content:encoded> <wfw:commentRss>http://bogdan.org.ua/2009/02/13/wordpress-and-google-analytics-external-nofollow-problem-in-comment-links.html/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How to fix &#8220;MySQL server has gone away&#8221; (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html</link> <comments>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comments</comments> <pubDate>Thu, 25 Dec 2008 16:34:08 +0000</pubDate> <dc:creator>Bogdan</dc:creator> <category><![CDATA[*nix]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[error]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[mysql]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464</guid> <description><![CDATA[Source: George from vbulletin team. Two most common reasons (and fixes) for the MySQL server has gone away (error 2006) are: Server timed out and closed the connection. How to fix: check that wait_timeout variable in your mysqld's my.cnf configuration file is large enough. On Debian: sudo nano /etc/mysql/my.cnf, set wait_timeout = 600 seconds (you [...]]]></description> <content:encoded><![CDATA[<p>Source: <a
href="http://www.vbulletin.com/forum/member.php?u=245">George</a> from <a
href="http://www.vbulletin.com/forum/showthread.php?t=70410">vbulletin team</a>.</p><p>Two most common reasons (and fixes) for the <strong>MySQL server has gone away (error 2006)</strong> are:</p><ol><li>Server timed out and closed the connection. How to fix: check that <strong>wait_timeout</strong> variable in your mysqld's my.cnf configuration file is large enough. On Debian: <strong>sudo nano /etc/mysql/my.cnf</strong>, set <strong>wait_timeout = 600</strong> seconds (you can tweak/decrease this value when error 2006 is gone), then <strong>sudo /etc/init.d/mysql restart</strong>. I didn't check, but the default value for wait_timeout might be around 28800 seconds (8 hours).</li><li>Server dropped an incorrect or too large packet. If mysqld gets a packet that is too large or incorrect, it assumes that something has gone wrong with the client and closes the connection. You can increase the maximal packet size limit by increasing the value of <strong>max_allowed_packet</strong> in my.cnf file. On Debian: <strong>sudo nano /etc/mysql/my.cnf</strong>, set <strong>max_allowed_packet = 64M</strong> (you can tweak/decrease this value when error 2006 is gone), then <strong>sudo /etc/init.d/mysql restart</strong>.</li></ol><p>If you get <strong>MySQL server has gone away (error 2006)</strong> when using MySQL ODBC driver - give <a
href="http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-103489">this hint</a> a try.</p> ]]></content:encoded> <wfw:commentRss>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html/feed</wfw:commentRss> <slash:comments>31</slash:comments> </item> <item><title>Iceweasel/Firefox 3: how to work-around random/erratic right-click action</title><link>http://bogdan.org.ua/2008/07/19/iceweasel-firefox-3-how-to-fix-random-erratic-right-click-action-bahaviour.html</link> <comments>http://bogdan.org.ua/2008/07/19/iceweasel-firefox-3-how-to-fix-random-erratic-right-click-action-bahaviour.html#comments</comments> <pubDate>Sat, 19 Jul 2008 15:42:34 +0000</pubDate> <dc:creator>Bogdan</dc:creator> <category><![CDATA[Misc]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[action]]></category> <category><![CDATA[behavior]]></category> <category><![CDATA[behaviour]]></category> <category><![CDATA[erratic]]></category> <category><![CDATA[FireFox]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[IceWeasel]]></category> <category><![CDATA[random]]></category> <category><![CDATA[right click]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/?p=316</guid> <description><![CDATA[Update: as of FireFox/IceWeasel 3.0.14, this bug appears to be fixed. When right-clicking many links in FF3/IW3, it quite often happens so that a random action is performed instead of opening the context menu (bug report). One of the solutions work-arounds (suggested by Andre Pirard) is to slow-right-click, that is to hold the right mouse [...]]]></description> <content:encoded><![CDATA[<p><ins
datetime="2009-10-16T07:35:54+00:00">Update:</ins> as of FireFox/IceWeasel 3.0.14, this bug appears to be fixed.</p><p>When right-clicking many links in FF3/IW3, it quite often happens so that a <strong>random</strong> action is performed instead of opening the context menu (<a
href="https://bugs.launchpad.net/firefox/+bug/187313">bug report</a>).</p><p>One of the <del
datetime="2008-08-02T18:04:52+00:00">solutions</del> <ins
datetime="2008-08-02T18:04:52+00:00">work-arounds</ins> (suggested by <a
href="https://launchpad.net/~a.pirard">Andre Pirard</a>) is to <strong>slow-right-click</strong>, that is to <em>hold the right mouse button down</em> until the <em>menu actually appears</em>, then - and only then - <em>release it</em>. Or, you can even <em>slow-right-click</em>, <em>move the pointer over the desired menu item</em>, and <em>then release</em> - that will perform the desired action in a single long right click (instead of more common single right click with a following single left click.)</p><p>Alternative workaround (found at the bug report page): install the <a
href="https://addons.mozilla.org/en-US/firefox/addon/mouse-gestures-redox/" class="broken_link" rel="nofollow">mouse gestures</a> add-on, and restart firefox. Tested: works for me.</p><p>This bug/behaviour is otherwise unsolved.</p> ]]></content:encoded> <wfw:commentRss>http://bogdan.org.ua/2008/07/19/iceweasel-firefox-3-how-to-fix-random-erratic-right-click-action-bahaviour.html/feed</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>dotProject 2.0.4/2.1.2/2.1.3 on shared hosting</title><link>http://bogdan.org.ua/2007/01/22/dotproject-204-on-godaddy-shared-hosting.html</link> <comments>http://bogdan.org.ua/2007/01/22/dotproject-204-on-godaddy-shared-hosting.html#comments</comments> <pubDate>Mon, 22 Jan 2007 18:04:28 +0000</pubDate> <dc:creator>Bogdan</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[dotProject]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[project management]]></category> <guid
isPermaLink="false">http://www.bogdan.org.ua/2007/01/22/dotproject-on-godaddycom-shared-hosting.html</guid> <description><![CDATA[Update: the same solution seems to still apply to dotProject 2.1.2; the post instructions have been modified for dP 2.1.2. Update 2: fsmullin suggested a method to fix a similar error in index_table.php, the files_count_max cannot be found error when you click the FILES tab/menu item. His suggestion is now incorporated into the post. Update [...]]]></description> <content:encoded><![CDATA[<p><ins
datetime="2009-01-17T22:40:24+00:00">Update:</ins> the same solution seems to still apply to dotProject 2.1.2; the post instructions have been modified for dP 2.1.2.</p><p><ins
datetime="2009-01-30T19:21:41+00:00">Update 2:</ins> fsmullin <a
href="http://bogdan.org.ua/2007/01/22/dotproject-204-on-godaddy-shared-hosting.html#comment-97643">suggested</a> a method to fix a similar error in index_table.php, the <strong>files_count_max cannot be found error</strong> when you click the <strong>FILES</strong> tab/menu item. His suggestion is now incorporated into the post.</p><p><ins
datetime="2010-06-21T12:43:39+00:00">Update 3:</ins> this post is still relevant for dotProject 2.1.3.</p><p>In one of my recent posts about <a
href="http://bogdan.org.ua/2007/01/21/project-management-software.html">project management software</a> I stated the desire to extensively test dotProject 2.0.4. However, many shared hosting providers appear incompatible with dotProject: the right to CREATE TEMPORARY TABLES in MySQL is not granted, but is needed by dotProject.</p><p>Here's sample error (2.0.4):</p><blockquote><p>query failed(CREATE TEMPORARY TABLE tasks_sum SELECT task_project, COUNT(distinct task_id) AS total_tasks,<br
/> SUM(task_duration * task_percent_complete * IF(task_duration_type = 24, 8.0, task_duration_type))/<br
/> SUM(task_duration * IF(task_duration_type = 24, 8.0, task_duration_type)) AS project_percent_complete FROM `tasks` GROUP BY task_project)</p></blockquote><p>For 2.1.2, sample error would be:</p><blockquote><p>Table 'tasks_total' doesn't exist</p></blockquote><p>I tried looking for solutions, and here's what I found...<br
/> <span
id="more-106"></span><br
/> First of all, I tried issuing the "grant" command to try enabling temporary tables:</p><blockquote><p>GRANT CREATE TEMPORARY TABLES ON dot_projects.* to dot_projects@x.myserver.com;</p></blockquote><p>Expectedly, this didn't work: "access denied for user ....".</p><p>Then I tried looking for a ready-to-apply solution. Here are the links relevant to the topic, if you happen to prefer "the source", and not the retelling: <a
href="http://www.dotproject.net/vbulletin/archive/index.php/t-29.html">link 1</a>, <a
href="http://www.dotproject.net/vbulletin/showthread.php?t=2749&#038;highlight=temporary">link 2</a>, <a
href="http://www.dotproject.net/vbulletin/archive/index.php/t-2753.html">link 3</a>, and <a
href="http://www.dotproject.net/vbulletin/showthread.php?t=4261">link 4</a>.</p><p>However, none of the solutions described behind the links worked for me.</p><p><strong>Here's my solution (error fix).</strong></p><p>To fix, instead of creating temporary tables each time they are needed (what is impossible on many shared hostings), we need to create the necessary tables once. Then, instead of dropping temporary tables, we just truncate our "static" tables.</p><p>Here's how we proceed.</p><ol><li>Issue once the following MySQL statements (using, e.g., phpMyAdmin):<div
class="igBar"><span
id="lsql-14"><a
href="#" onclick="javascript:showPlainTxt('sql-14'); return false;">PLAIN TEXT</a></span></div><div
class="syntax_hilite"><span
class="langName">SQL:</span><div
id="sql-14"><div
class="sql"><ol><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">CREATE</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> <span
style="color: #993333; font-weight: bold;">IF</span> <span
style="color: #993333; font-weight: bold;">NOT</span> <span
style="color: #993333; font-weight: bold;">EXISTS</span> <span
style="color: #ff0000;">`tasks_problems`</span> <span
style="color:#006600; font-weight:bold;">&#40;</span></div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`task_project`</span> INT<span
style="color:#006600; font-weight:bold;">&#40;</span> <span
style="color: #cc66cc;color:#800000;">11</span> <span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span> ,</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`task_log_problem`</span> TINYINT<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color: #cc66cc;color:#800000;">1</span><span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span></div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#006600; font-weight:bold;">&#41;</span> TYPE=MyISAM;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">CREATE</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> <span
style="color: #993333; font-weight: bold;">IF</span> <span
style="color: #993333; font-weight: bold;">NOT</span> <span
style="color: #993333; font-weight: bold;">EXISTS</span> <span
style="color: #ff0000;">`tasks_critical`</span> <span
style="color:#006600; font-weight:bold;">&#40;</span></div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`task_project`</span> INT<span
style="color:#006600; font-weight:bold;">&#40;</span> <span
style="color: #cc66cc;color:#800000;">11</span> <span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span> ,</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`critical_task`</span> INT<span
style="color:#006600; font-weight:bold;">&#40;</span> <span
style="color: #cc66cc;color:#800000;">11</span> <span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span> ,</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`project_actual_end_date`</span> DATETIME <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span></div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#006600; font-weight:bold;">&#41;</span> TYPE=MyISAM;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">CREATE</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> <span
style="color: #993333; font-weight: bold;">IF</span> <span
style="color: #993333; font-weight: bold;">NOT</span> <span
style="color: #993333; font-weight: bold;">EXISTS</span> <span
style="color: #ff0000;">`tasks_sum`</span> <span
style="color:#006600; font-weight:bold;">&#40;</span></div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`task_project`</span> INT<span
style="color:#006600; font-weight:bold;">&#40;</span> <span
style="color: #cc66cc;color:#800000;">11</span> <span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span> ,</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`total_tasks`</span> INT<span
style="color:#006600; font-weight:bold;">&#40;</span> <span
style="color: #cc66cc;color:#800000;">6</span> <span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span> ,</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`project_percent_complete`</span> VARCHAR<span
style="color:#006600; font-weight:bold;">&#40;</span> <span
style="color: #cc66cc;color:#800000;">11</span> <span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span>,</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`project_duration`</span> VARCHAR<span
style="color:#006600; font-weight:bold;">&#40;</span> <span
style="color: #cc66cc;color:#800000;">11</span> <span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span></div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#006600; font-weight:bold;">&#41;</span> TYPE=MyISAM;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">CREATE</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> <span
style="color: #993333; font-weight: bold;">IF</span> <span
style="color: #993333; font-weight: bold;">NOT</span> <span
style="color: #993333; font-weight: bold;">EXISTS</span> <span
style="color: #ff0000;">`tasks_summy`</span> <span
style="color:#006600; font-weight:bold;">&#40;</span></div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`task_project`</span> INT<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color: #cc66cc;color:#800000;">11</span><span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span>,</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`my_tasks`</span> varchar<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color: #cc66cc;color:#800000;">10</span><span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span></div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#006600; font-weight:bold;">&#41;</span> TYPE=MyISAM;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">CREATE</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> <span
style="color: #993333; font-weight: bold;">IF</span> <span
style="color: #993333; font-weight: bold;">NOT</span> <span
style="color: #993333; font-weight: bold;">EXISTS</span> <span
style="color: #ff0000;">`tasks_users`</span> <span
style="color:#006600; font-weight:bold;">&#40;</span></div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`task_project`</span> INT<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color: #cc66cc;color:#800000;">11</span><span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span>,</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`user_id`</span> INT<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color: #cc66cc;color:#800000;">11</span><span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span></div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#006600; font-weight:bold;">&#41;</span> TYPE=MyISAM;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">CREATE</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> <span
style="color: #993333; font-weight: bold;">IF</span> <span
style="color: #993333; font-weight: bold;">NOT</span> <span
style="color: #993333; font-weight: bold;">EXISTS</span> <span
style="color: #ff0000;">`tasks_total`</span> <span
style="color:#006600; font-weight:bold;">&#40;</span></div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`task_project`</span> INT<span
style="color:#006600; font-weight:bold;">&#40;</span> <span
style="color: #cc66cc;color:#800000;">11</span> <span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span> ,</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`total_tasks`</span> INT<span
style="color:#006600; font-weight:bold;">&#40;</span> <span
style="color: #cc66cc;color:#800000;">6</span> <span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span></div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#006600; font-weight:bold;">&#41;</span> TYPE=MyISAM;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">CREATE</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> <span
style="color: #993333; font-weight: bold;">IF</span> <span
style="color: #993333; font-weight: bold;">NOT</span> <span
style="color: #993333; font-weight: bold;">EXISTS</span> <span
style="color: #ff0000;">`files_count_max`</span> <span
style="color:#006600; font-weight:bold;">&#40;</span></div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`file_versions`</span> INT<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color: #cc66cc;color:#800000;">11</span><span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #cc66cc;color:#800000;">0</span>,</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`file_lastversion`</span> float <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #ff0000;">'0'</span>,</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`file_version_id`</span> INT<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color: #cc66cc;color:#800000;">11</span><span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #cc66cc;color:#800000;">0</span>,</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #ff0000;">`file_project`</span> INT<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color: #cc66cc;color:#800000;">11</span><span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #cc66cc;color:#800000;">0</span></div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#006600; font-weight:bold;">&#41;</span> TYPE=MyISAM;</div></li></ol></div></div></div><p> This will create all the necessary tables.<br
/> <em>Note:</em> <strong>tasks_total</strong> and <strong>files_count_max</strong> tables are 2.1.2-specific.<br
/> <em>Another note</em>: for 2.1.2, the <strong>tasks_sum</strong> table is one field shorter:<div
class="igBar"><span
id="lsql-15"><a
href="#" onclick="javascript:showPlainTxt('sql-15'); return false;">PLAIN TEXT</a></span></div><div
class="syntax_hilite"><span
class="langName">SQL:</span><div
id="sql-15"><div
class="sql"><ol><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">CREATE</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> <span
style="color: #993333; font-weight: bold;">IF</span> <span
style="color: #993333; font-weight: bold;">NOT</span> <span
style="color: #993333; font-weight: bold;">EXISTS</span> <span
style="color: #ff0000;">`tasks_sum`</span> <span
style="color:#006600; font-weight:bold;">&#40;</span></div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span
style="color: #ff0000;">`task_project`</span> int<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color: #cc66cc;color:#800000;">11</span><span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span>,</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span
style="color: #ff0000;">`project_percent_complete`</span> varchar<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color: #cc66cc;color:#800000;">11</span><span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span>,</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span
style="color: #ff0000;">`project_duration`</span> varchar<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color: #cc66cc;color:#800000;">11</span><span
style="color:#006600; font-weight:bold;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span></div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#006600; font-weight:bold;">&#41;</span> TYPE=MyISAM;</div></li></ol></div></div></div><p></li><li><a
href="http://www.dotproject.net/vbulletin/showthread.php?t=2753">Now</a>, in <strong>classes/query.class.php</strong> at line 393 (for dotProject 2.0.4; just search for the matching line in 2.1.2) <strong>replace</strong> this line:<div
class="igBar"><span
id="lphp-16"><a
href="#" onclick="javascript:showPlainTxt('php-16'); return false;">PLAIN TEXT</a></span></div><div
class="syntax_hilite"><span
class="langName">PHP:</span><div
id="php-16"><div
class="php"><ol><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$q</span> = <span
style="color:#FF0000;">'CREATE TEMPORARY TABLE '</span> . <span
style="color:#0000FF;">$this</span>-&gt;_table_prefix . <span
style="color:#0000FF;">$this</span>-&gt;<span
style="color:#006600;">create_table</span>;</div></li></ol></div></div></div><p> with these:</p><div
class="igBar"><span
id="lphp-17"><a
href="#" onclick="javascript:showPlainTxt('php-17'); return false;">PLAIN TEXT</a></span></div><div
class="syntax_hilite"><span
class="langName">PHP:</span><div
id="php-17"><div
class="php"><ol><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#FF9933; font-style:italic;">//$q = 'CREATE TEMPORARY TABLE ' . $this-&gt;_table_prefix . $this-&gt;create_table;</span></div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$q</span> = <span
style="color:#FF0000;">'INSERT INTO '</span> . <span
style="color:#0000FF;">$this</span>-&gt;_table_prefix . <span
style="color:#0000FF;">$this</span>-&gt;<span
style="color:#006600;">create_table</span>;</div></li></ol></div></div></div><p> Now we won't get any errors about the tables which fail to be created.</li><li>Next, <strong>replace</strong> the following text in <strong>modules/projects/projects.class.php</strong> (lines 388-392 for 2.0.4):<div
class="igBar"><span
id="lphp-18"><a
href="#" onclick="javascript:showPlainTxt('php-18'); return false;">PLAIN TEXT</a></span></div><div
class="syntax_hilite"><span
class="langName">PHP:</span><div
id="php-18"><div
class="php"><ol><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#FF9933; font-style:italic;">// Let's delete temporary tables</span></div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$q</span>&nbsp; = <span
style="color:#000000; font-weight:bold;">new</span> DBQuery;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$q</span>-&gt;<span
style="color:#006600;">dropTemp</span><span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color:#FF0000;">'tasks_sum, tasks_summy, tasks_critical, tasks_problems, tasks_users'</span><span
style="color:#006600; font-weight:bold;">&#41;</span>;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$q</span>-&gt;<span
style="color:#006600;">exec</span><span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color:#006600; font-weight:bold;">&#41;</span>;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$q</span>-&gt;<span
style="color:#006600;">clear</span><span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color:#006600; font-weight:bold;">&#41;</span>;</div></li></ol></div></div></div><p> with this code:</p><div
class="igBar"><span
id="lphp-19"><a
href="#" onclick="javascript:showPlainTxt('php-19'); return false;">PLAIN TEXT</a></span></div><div
class="syntax_hilite"><span
class="langName">PHP:</span><div
id="php-19"><div
class="php"><ol><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#FF9933; font-style:italic;">// Let's delete temporary tables</span></div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$sql</span> = <span
style="color:#FF0000;">"TRUNCATE TABLE tasks_sum"</span>; db_exec<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color:#0000FF;">$sql</span><span
style="color:#006600; font-weight:bold;">&#41;</span>;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$sql</span> = <span
style="color:#FF0000;">"TRUNCATE TABLE tasks_summy"</span>; db_exec<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color:#0000FF;">$sql</span><span
style="color:#006600; font-weight:bold;">&#41;</span>;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$sql</span> = <span
style="color:#FF0000;">"TRUNCATE TABLE tasks_critical"</span>; db_exec<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color:#0000FF;">$sql</span><span
style="color:#006600; font-weight:bold;">&#41;</span>;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$sql</span> = <span
style="color:#FF0000;">"TRUNCATE TABLE tasks_problems"</span>; db_exec<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color:#0000FF;">$sql</span><span
style="color:#006600; font-weight:bold;">&#41;</span>;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$sql</span> = <span
style="color:#FF0000;">"TRUNCATE TABLE tasks_users"</span>; db_exec<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color:#0000FF;">$sql</span><span
style="color:#006600; font-weight:bold;">&#41;</span>;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$sql</span> = <span
style="color:#FF0000;">"TRUNCATE TABLE tasks_total"</span>; db_exec<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color:#0000FF;">$sql</span><span
style="color:#006600; font-weight:bold;">&#41;</span>;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$q</span>&nbsp; = <span
style="color:#000000; font-weight:bold;">new</span> DBQuery;</div></li></ol></div></div></div><p> Note: <strong>$sql = "TRUNCATE TABLE tasks_sum"; db_exec($sql);</strong> line is 2.1.2-specific.<br
/> At this point, you will no longer receive error messages while on the "projects" tab.</li><li><em>(this point applies to 2.1.2 only)</em> <strong>Replace</strong> lines 222 and 223 in <strong>modules/files/index_table.php</strong><div
class="igBar"><span
id="lphp-20"><a
href="#" onclick="javascript:showPlainTxt('php-20'); return false;">PLAIN TEXT</a></span></div><div
class="syntax_hilite"><span
class="langName">PHP:</span><div
id="php-20"><div
class="php"><ol><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$r</span>-&gt;<span
style="color:#006600;">dropTemp</span><span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color:#FF0000;">'files_count_max'</span><span
style="color:#006600; font-weight:bold;">&#41;</span>;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$r</span>-&gt;<span
style="color:#006600;">exec</span><span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color:#006600; font-weight:bold;">&#41;</span>;</div></li></ol></div></div></div><p> with:</p><div
class="igBar"><span
id="lphp-21"><a
href="#" onclick="javascript:showPlainTxt('php-21'); return false;">PLAIN TEXT</a></span></div><div
class="syntax_hilite"><span
class="langName">PHP:</span><div
id="php-21"><div
class="php"><ol><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#FF9933; font-style:italic;">//$r-&gt;dropTemp('files_count_max');</span></div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#FF9933; font-style:italic;">//$r-&gt;exec();</span></div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color:#0000FF;">$sql</span> = <span
style="color:#FF0000;">"TRUNCATE TABLE files_count_max"</span>; db_exec<span
style="color:#006600; font-weight:bold;">&#40;</span><span
style="color:#0000FF;">$sql</span><span
style="color:#006600; font-weight:bold;">&#41;</span>;</div></li></ol></div></div></div><p></li><li><strong>Optionally</strong>, if you want to improve the performance of dotProject specifically for these tables, change the 'engine' for the above-mentioned tables to 'memory'. To do that, execute the following SQL statements:<div
class="igBar"><span
id="lsql-22"><a
href="#" onclick="javascript:showPlainTxt('sql-22'); return false;">PLAIN TEXT</a></span></div><div
class="syntax_hilite"><span
class="langName">SQL:</span><div
id="sql-22"><div
class="sql"><ol><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">ALTER</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> tasks_problems engine=memory;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">ALTER</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> tasks_critical engine=memory;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">ALTER</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> tasks_sum engine=memory;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">ALTER</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> tasks_summy engine=memory;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">ALTER</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> tasks_users engine=memory;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">ALTER</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> tasks_total engine=memory;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #993333; font-weight: bold;">ALTER</span> <span
style="color: #993333; font-weight: bold;">TABLE</span> files_count_max engine=memory;</div></li></ol></div></div></div><p> This change will make MySQL keep these tables in RAM. As they are used as temporary tables, this decreases disk I/O a lot while working with dotProject. Of course, YMMV - to apply this change or not depends on where is your bottleneck.</li><p>Comments and further improvements are welcome.</p> ]]></content:encoded> <wfw:commentRss>http://bogdan.org.ua/2007/01/22/dotproject-204-on-godaddy-shared-hosting.html/feed</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>IE (Internet Explorer) margin doubling bug fixes</title><link>http://bogdan.org.ua/2006/09/27/ie-internet-explorer-margin-doubling-bug-fixes.html</link> <comments>http://bogdan.org.ua/2006/09/27/ie-internet-explorer-margin-doubling-bug-fixes.html#comments</comments> <pubDate>Wed, 27 Sep 2006 13:05:23 +0000</pubDate> <dc:creator>Bogdan</dc:creator> <category><![CDATA[Notepad]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[XHTML/CSS]]></category> <category><![CDATA[bug]]></category> <category><![CDATA[double]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[IE]]></category> <category><![CDATA[margin]]></category> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/27/ie-internet-explorer-margin-doubling-bug-fixes.html</guid> <description><![CDATA[In Internet Explorer for Windows (tested with version 6 SP2), if you write CSS code similar to this: PLAIN TEXT CSS: #floatbox &#123; &#160; float: left; &#160; width: 150px; &#160; height: 150px; &#160; margin-left: 100px; &#125; and put your "floatbox" inside a container (such as DIV), you will actually see 200px of the left margin [...]]]></description> <content:encoded><![CDATA[<p>In Internet Explorer for Windows (tested with version 6 SP2), if you write CSS code similar to this:</p><div
class="igBar"><span
id="lcss-26"><a
href="#" onclick="javascript:showPlainTxt('css-26'); return false;">PLAIN TEXT</a></span></div><div
class="syntax_hilite"><span
class="langName">CSS:</span><div
id="css-26"><div
class="css"><ol><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #cc00cc;">#floatbox</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #66cc66;">&#123;</span></span></div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span
style="color: #000000; font-weight: bold;">float</span>: <span
style="color: #000000; font-weight: bold;">left</span>;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span
style="color: #000000; font-weight: bold;">width</span>: 150px;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span
style="color: #000000; font-weight: bold;">height</span>: 150px;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span
style="color: #000000; font-weight: bold;">margin-left</span>: 100px;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #66cc66;">&#125;</span></div></li></ol></div></div></div><p> and put your "floatbox" inside a container (such as DIV), you will actually see 200px of the left margin instead of the expected 100px. This problem is known as "IE margin-doubling bug".</p><p>In this post I collected solutions you can use to avoid this problem. The solution I'd recommend is at the end.<br
/> <span
id="more-40"></span><br
/> The first solution is to apply some minimal height to the container:</p><div
class="igBar"><span
id="lcss-27"><a
href="#" onclick="javascript:showPlainTxt('css-27'); return false;">PLAIN TEXT</a></span></div><div
class="syntax_hilite"><span
class="langName">CSS:</span><div
id="css-27"><div
class="css"><ol><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">* html <span
style="color: #6666ff;">.visualIEFloatFix </span><span
style="color: #66cc66;">&#123;</span> <span
style="color: #000000; font-weight: bold;">height</span>: <span
style="color: #cc66cc;color:#800000;">0</span>.<span
style="color: #cc66cc;color:#800000;">01</span>%; <span
style="color: #66cc66;">&#125;</span></div></li></ol></div></div></div><p> This method is described in more details <a
href="http://plone.org/documentation/kb/internet-explorer-invisible-text">here</a> , and even better <a
href="http://plone.org/documentation/kb/ie-double-margin-bug">here</a>.</p><p>Another one is to apply position:relative, this is quite an old solution, described <a
href="http://www.communitymx.com/content/article.cfm?cid=C37E0">here</a> (there are also other fixes for the problem there, too; link returned error at the time of writing, might be a temporal problem - if not, please remind me to remove it).</p><p>Another solution is to wrap the element in another one, and apply float to that another. Removing float from the element helps avoid the trouble. This fix found <a
href="http://www.positioniseverything.net/explorer/floatIndent.html">here</a>. There are lots of examples there, too.</p><p>You can also set display:inline, as described in <a
href="http://www.positioniseverything.net/explorer/doubled-margin.html">this solution</a>. I would recommend using this one as the most clean and compatible. To apply it to our example at the beginning, we should write the following CSS code:</p><div
class="igBar"><span
id="lcss-28"><a
href="#" onclick="javascript:showPlainTxt('css-28'); return false;">PLAIN TEXT</a></span></div><div
class="syntax_hilite"><span
class="langName">CSS:</span><div
id="css-28"><div
class="css"><ol><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #6666ff;">.floatbox</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"></span><span
style="color: #66cc66;">&#123;</span></div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span
style="color: #000000; font-weight: bold;">float</span>: <span
style="color: #000000; font-weight: bold;">left</span>;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span
style="color: #000000; font-weight: bold;">width</span>: 150px;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span
style="color: #000000; font-weight: bold;">height</span>: 150px;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span
style="color: #000000; font-weight: bold;">margin-left</span>: 100px;</div></li><li
style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span
style="color: #000000; font-weight: bold;">display</span>: <span
style="color: #993333;">inline</span>;</div></li><li
style="font-weight: bold;color:#26536A;"><div
style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span
style="color: #66cc66;">&#125;</span></div></li></ol></div></div></div><p></p> ]]></content:encoded> <wfw:commentRss>http://bogdan.org.ua/2006/09/27/ie-internet-explorer-margin-doubling-bug-fixes.html/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
