<?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 Cave &#187; fix</title> <atom:link href="https://bogdan.org.ua/tags/fix/feed" rel="self" type="application/rss+xml" /><link>https://bogdan.org.ua</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Wed, 28 Dec 2022 16:09:04 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>https://wordpress.org/?v=3.8.27</generator> <item><title>Evernote web-interface beta: how to fix: saved searches are crossed out and do not work</title><link>https://bogdan.org.ua/2016/05/09/evernote-web-interface-beta-how-to-fix-saved-searches-are-crossed-out-and-do-not-work.html</link> <comments>https://bogdan.org.ua/2016/05/09/evernote-web-interface-beta-how-to-fix-saved-searches-are-crossed-out-and-do-not-work.html#comments</comments> <pubDate>Mon, 09 May 2016 10:30:10 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[how-to]]></category> <category><![CDATA[Notepad]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[evernote]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[problem]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/?p=2403</guid> <description><![CDATA[Another symptom is a message along the lines of the notebook you are searching in has been moved or renamed since the saved search was created (which is not true). I had this problem, and found a solution. Go to your Evernote on a client where you can edit saved searches (Windows for me), edit [&#8230;]]]></description> <content:encoded><![CDATA[<p>Another symptom is a message along the lines of</p><blockquote><p>the notebook you are searching in has been moved or renamed since the saved search was created</p></blockquote><p>(which is not true).</p><p>I had this problem, and found a <strong>solution</strong>.</p><p>Go to your Evernote on a client where you can <strong>edit saved searches</strong> (Windows for me),<br
/> edit all the searches, and make sure that <strong>notebook name is quoted</strong> in the search (and also, possibly, with all <strong>proper letter cases</strong>).</p><p>I found this solution by first creating a search from the web-beta interface, it looked like this: <code>notebook:"Mynotebook" tag:1-now</code><br
/> All the crossed-out searches (despite working totally fine on Windows) looked like this: <code>notebook:Mynotebook tag:1-now</code><br
/> or even like this (note the lower-case 1stÂ letter of the notebook name): <code>notebook:mynotebook tag:1-now</code>.</p><p>After editing saved searches and synchronizing, they all appear (and work) just fine in the beta web-interface.</p><p>If you cannot edit your searches right now, there is <strong>another workaround</strong>: all the saved searches <strong>work fine</strong> for me <strong>from the ShortcutsÂ menu</strong> (a star in the left panel).</p><p>Hope this helps!</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2016%2F05%2F09%2Fevernote-web-interface-beta-how-to-fix-saved-searches-are-crossed-out-and-do-not-work.html&amp;linkname=Evernote%20web-interface%20beta%3A%20how%20to%20fix%3A%20saved%20searches%20are%20crossed%20out%20and%20do%20not%20work" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2016%2F05%2F09%2Fevernote-web-interface-beta-how-to-fix-saved-searches-are-crossed-out-and-do-not-work.html&amp;linkname=Evernote%20web-interface%20beta%3A%20how%20to%20fix%3A%20saved%20searches%20are%20crossed%20out%20and%20do%20not%20work" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2016%2F05%2F09%2Fevernote-web-interface-beta-how-to-fix-saved-searches-are-crossed-out-and-do-not-work.html&amp;linkname=Evernote%20web-interface%20beta%3A%20how%20to%20fix%3A%20saved%20searches%20are%20crossed%20out%20and%20do%20not%20work" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2016%2F05%2F09%2Fevernote-web-interface-beta-how-to-fix-saved-searches-are-crossed-out-and-do-not-work.html&amp;linkname=Evernote%20web-interface%20beta%3A%20how%20to%20fix%3A%20saved%20searches%20are%20crossed%20out%20and%20do%20not%20work" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2016%2F05%2F09%2Fevernote-web-interface-beta-how-to-fix-saved-searches-are-crossed-out-and-do-not-work.html&amp;linkname=Evernote%20web-interface%20beta%3A%20how%20to%20fix%3A%20saved%20searches%20are%20crossed%20out%20and%20do%20not%20work" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2016%2F05%2F09%2Fevernote-web-interface-beta-how-to-fix-saved-searches-are-crossed-out-and-do-not-work.html&#038;title=Evernote%20web-interface%20beta%3A%20how%20to%20fix%3A%20saved%20searches%20are%20crossed%20out%20and%20do%20not%20work" data-a2a-url="https://bogdan.org.ua/2016/05/09/evernote-web-interface-beta-how-to-fix-saved-searches-are-crossed-out-and-do-not-work.html" data-a2a-title="Evernote web-interface beta: how to fix: saved searches are crossed out and do not work"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2016/05/09/evernote-web-interface-beta-how-to-fix-saved-searches-are-crossed-out-and-do-not-work.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to fix: Xiaomi Mi Band stopped tracking steps and sleep</title><link>https://bogdan.org.ua/2015/07/26/how-to-fix-xiaomi-mi-band-stopped-tracking-steps-and-sleep.html</link> <comments>https://bogdan.org.ua/2015/07/26/how-to-fix-xiaomi-mi-band-stopped-tracking-steps-and-sleep.html#comments</comments> <pubDate>Sun, 26 Jul 2015 15:01:43 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[Hardware]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[fitness]]></category> <category><![CDATA[fitness band]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[gadget]]></category> <category><![CDATA[Mi Band]]></category> <category><![CDATA[quantified self]]></category> <category><![CDATA[Xiaomi]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/?p=2301</guid> <description><![CDATA[A few days ago, my Mi Band (version 1) stopped properly tracking sleep and counting steps. Here is a full list of symptoms: synchronization appears to work correctly; total count of steps is updated, but when you click it &#8211; there are no per-hour details; in the older app version: after sync completes, there is [&#8230;]]]></description> <content:encoded><![CDATA[<p><img
src="http://bogdan.org.ua/wp-content/uploads/2015/07/mi_band-154x200.jpg" alt="Mi Band" width="154" height="200" class="alignright size-thumbnail wp-image-2303" />A few days ago, my Mi Band (<strong>version 1</strong>) stopped properly tracking sleep and counting steps. Here is a full list of symptoms:</p><ul><li>synchronization appears to work correctly;</li><li>total count of steps is updated, but when you click it &#8211; there are no per-hour details;</li><li>in the older app version: after sync completes, there is no green message &#8220;Updated X items&#8221;;</li><li>night sleep tracker does not update at all: neither total hours slept, nor per-hour details;</li><li>the band is otherwise functional, e.g. &#8220;Find the band&#8221; works &#8211; it vibrates and flashes diodes.</li></ul><p><a
href="http://en.miui.com/forum.php?mod=viewthread&#038;tid=69223&#038;page=17#pid2283207">Warangelo00</a> found a solution, which worked for me (and no, you do not need to <em>hard reset</em> the device):<br
/> <em>note: the fix below will most probably not work for Mi Band 2, see <a
href="/2015/07/26/how-to-fix-xiaomi-mi-band-stopped-tracking-steps-and-sleep.html#comment-435696">comments</a>; iPhone owners may try <a
href="#comment-477940">switching iPhone from AM/PM (12-hour clock) to 24-hour clock</a> to fix the non-synchronization problems with MiBand2 &#8211; please write in the comments if this method works for you.</em></p><ol><li>enable Bluetooth, if it is disabled;</li><li>start Mi Fit, go to <strong>Play â€“> Incoming call</strong> (or, in older app version, <strong>Settings</strong> &#8211; <strong>Incoming calls</strong>);</li><li>enable it &#8211; set to On;</li><li>now call your mobile phone from a different one &#8211; wait for the band to vibrate and flash lights;</li><li>you should now be able to refresh Mi Fit main page, and see both current day and previous night per-hour details; in the older app version, it should also show the green &#8220;Updated X items&#8221; message after syncing;</li><li>you can now disable incoming calls notification if you don&#8217;t need it.</li></ol><p>According to Holly, the trick <a
href="http://bogdan.org.ua/2015/07/26/how-to-fix-xiaomi-mi-band-stopped-tracking-steps-and-sleep.html#comment-439453">may also work for Mi Pulse</a>.</p><p>Not sure if this fix will last, but it did help me &#8211; thanks, Warangelo00!</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2015%2F07%2F26%2Fhow-to-fix-xiaomi-mi-band-stopped-tracking-steps-and-sleep.html&amp;linkname=How%20to%20fix%3A%20Xiaomi%20Mi%20Band%20stopped%20tracking%20steps%20and%20sleep" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2015%2F07%2F26%2Fhow-to-fix-xiaomi-mi-band-stopped-tracking-steps-and-sleep.html&amp;linkname=How%20to%20fix%3A%20Xiaomi%20Mi%20Band%20stopped%20tracking%20steps%20and%20sleep" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2015%2F07%2F26%2Fhow-to-fix-xiaomi-mi-band-stopped-tracking-steps-and-sleep.html&amp;linkname=How%20to%20fix%3A%20Xiaomi%20Mi%20Band%20stopped%20tracking%20steps%20and%20sleep" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2015%2F07%2F26%2Fhow-to-fix-xiaomi-mi-band-stopped-tracking-steps-and-sleep.html&amp;linkname=How%20to%20fix%3A%20Xiaomi%20Mi%20Band%20stopped%20tracking%20steps%20and%20sleep" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2015%2F07%2F26%2Fhow-to-fix-xiaomi-mi-band-stopped-tracking-steps-and-sleep.html&amp;linkname=How%20to%20fix%3A%20Xiaomi%20Mi%20Band%20stopped%20tracking%20steps%20and%20sleep" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2015%2F07%2F26%2Fhow-to-fix-xiaomi-mi-band-stopped-tracking-steps-and-sleep.html&#038;title=How%20to%20fix%3A%20Xiaomi%20Mi%20Band%20stopped%20tracking%20steps%20and%20sleep" data-a2a-url="https://bogdan.org.ua/2015/07/26/how-to-fix-xiaomi-mi-band-stopped-tracking-steps-and-sleep.html" data-a2a-title="How to fix: Xiaomi Mi Band stopped tracking steps and sleep"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2015/07/26/how-to-fix-xiaomi-mi-band-stopped-tracking-steps-and-sleep.html/feed</wfw:commentRss> <slash:comments>51</slash:comments> </item> <item><title>WordPress and Google Analytics external nofollow problem in comment links</title><link>https://bogdan.org.ua/2009/02/13/wordpress-and-google-analytics-external-nofollow-problem-in-comment-links.html</link> <comments>https://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><![CDATA[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&#8217;s link in comments is broken &#8211; it has &#8216; external nofollow&#8217; attached straight to the href attribute (which breaks the link). I assume that the problem is caused by Google Analytics, namely the &#8220;track outgoing clicks&#8221; feature (as recalled, might be inaccurate feature name). &#8220;Track outgoing links&#8221; adds [&#8230;]]]></description> <content:encoded><![CDATA[<p>Since some WP release, the comment author&#8217;s link in comments is broken &#8211; it has &#8216; external nofollow&#8217; attached straight to the href attribute (which breaks the link).</p><p>I assume that the problem is caused by Google Analytics, namely the &#8220;track outgoing clicks&#8221; feature (as recalled, might be inaccurate feature name). &#8220;Track outgoing links&#8221; adds some JavaScript code to all outgoing links, and that script has tick characters like this one &#8216; 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
id="ig-sh-1" class="syntax_hilite"><div
class="code"><ol
class="php" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$return = &quot;&lt;a href='$url' rel='external nofollow' class='url'&gt;$author&lt;/a&gt;&quot;;</div></li></ol></div></div><p>with</p><div
id="ig-sh-2" class="syntax_hilite"><div
class="code"><ol
class="php" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$return = '&lt;a href=&quot;'.$url.'&quot; rel=&quot;external nofollow&quot; class=&quot;url&quot;&gt;'.$author.'&lt;/a&gt;';</div></li></ol></div></div></li></ol><p>This helped me and might help you.</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F02%2F13%2Fwordpress-and-google-analytics-external-nofollow-problem-in-comment-links.html&amp;linkname=WordPress%20and%20Google%20Analytics%20external%20nofollow%20problem%20in%20comment%20links" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F02%2F13%2Fwordpress-and-google-analytics-external-nofollow-problem-in-comment-links.html&amp;linkname=WordPress%20and%20Google%20Analytics%20external%20nofollow%20problem%20in%20comment%20links" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F02%2F13%2Fwordpress-and-google-analytics-external-nofollow-problem-in-comment-links.html&amp;linkname=WordPress%20and%20Google%20Analytics%20external%20nofollow%20problem%20in%20comment%20links" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F02%2F13%2Fwordpress-and-google-analytics-external-nofollow-problem-in-comment-links.html&amp;linkname=WordPress%20and%20Google%20Analytics%20external%20nofollow%20problem%20in%20comment%20links" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2009%2F02%2F13%2Fwordpress-and-google-analytics-external-nofollow-problem-in-comment-links.html&amp;linkname=WordPress%20and%20Google%20Analytics%20external%20nofollow%20problem%20in%20comment%20links" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2009%2F02%2F13%2Fwordpress-and-google-analytics-external-nofollow-problem-in-comment-links.html&#038;title=WordPress%20and%20Google%20Analytics%20external%20nofollow%20problem%20in%20comment%20links" data-a2a-url="https://bogdan.org.ua/2009/02/13/wordpress-and-google-analytics-external-nofollow-problem-in-comment-links.html" data-a2a-title="WordPress and Google Analytics external nofollow problem in comment links"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://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>https://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html</link> <comments>https://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><![CDATA[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&#8217;s my.cnf configuration file is large enough. On Debian: sudo nano /etc/mysql/my.cnf, set wait_timeout = 600 seconds (you [&#8230;]]]></description> <content:encoded><![CDATA[<p>Source: <a
href="http://www.vbulletin.com/forum/member.php?u=245" class="broken_link" rel="nofollow">George</a> from <a
href="http://www.vbulletin.com/forum/showthread.php?t=70410" class="broken_link" rel="nofollow">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&#8217;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&#8217;t check, but the maximal value for <strong>wait_timeout</strong> 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 &#8211; 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><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F12%2F25%2Fhow-to-fix-mysql-server-has-gone-away-error-2006.html&amp;linkname=How%20to%20fix%20%E2%80%9CMySQL%20server%20has%20gone%20away%E2%80%9D%20%28error%202006%29" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F12%2F25%2Fhow-to-fix-mysql-server-has-gone-away-error-2006.html&amp;linkname=How%20to%20fix%20%E2%80%9CMySQL%20server%20has%20gone%20away%E2%80%9D%20%28error%202006%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F12%2F25%2Fhow-to-fix-mysql-server-has-gone-away-error-2006.html&amp;linkname=How%20to%20fix%20%E2%80%9CMySQL%20server%20has%20gone%20away%E2%80%9D%20%28error%202006%29" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F12%2F25%2Fhow-to-fix-mysql-server-has-gone-away-error-2006.html&amp;linkname=How%20to%20fix%20%E2%80%9CMySQL%20server%20has%20gone%20away%E2%80%9D%20%28error%202006%29" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F12%2F25%2Fhow-to-fix-mysql-server-has-gone-away-error-2006.html&amp;linkname=How%20to%20fix%20%E2%80%9CMySQL%20server%20has%20gone%20away%E2%80%9D%20%28error%202006%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2008%2F12%2F25%2Fhow-to-fix-mysql-server-has-gone-away-error-2006.html&#038;title=How%20to%20fix%20%E2%80%9CMySQL%20server%20has%20gone%20away%E2%80%9D%20%28error%202006%29" data-a2a-url="https://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html" data-a2a-title="How to fix “MySQL server has gone away” (error 2006)"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html/feed</wfw:commentRss> <slash:comments>54</slash:comments> </item> <item><title>Iceweasel/Firefox 3: how to work-around random/erratic right-click action</title><link>https://bogdan.org.ua/2008/07/19/iceweasel-firefox-3-how-to-fix-random-erratic-right-click-action-bahaviour.html</link> <comments>https://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><![CDATA[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 [&#8230;]]]></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 &#8211; and only then &#8211; <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> &#8211; 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><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F07%2F19%2Ficeweasel-firefox-3-how-to-fix-random-erratic-right-click-action-bahaviour.html&amp;linkname=Iceweasel%2FFirefox%203%3A%20how%20to%20work-around%20random%2Ferratic%20right-click%20action" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F07%2F19%2Ficeweasel-firefox-3-how-to-fix-random-erratic-right-click-action-bahaviour.html&amp;linkname=Iceweasel%2FFirefox%203%3A%20how%20to%20work-around%20random%2Ferratic%20right-click%20action" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F07%2F19%2Ficeweasel-firefox-3-how-to-fix-random-erratic-right-click-action-bahaviour.html&amp;linkname=Iceweasel%2FFirefox%203%3A%20how%20to%20work-around%20random%2Ferratic%20right-click%20action" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F07%2F19%2Ficeweasel-firefox-3-how-to-fix-random-erratic-right-click-action-bahaviour.html&amp;linkname=Iceweasel%2FFirefox%203%3A%20how%20to%20work-around%20random%2Ferratic%20right-click%20action" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F07%2F19%2Ficeweasel-firefox-3-how-to-fix-random-erratic-right-click-action-bahaviour.html&amp;linkname=Iceweasel%2FFirefox%203%3A%20how%20to%20work-around%20random%2Ferratic%20right-click%20action" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2008%2F07%2F19%2Ficeweasel-firefox-3-how-to-fix-random-erratic-right-click-action-bahaviour.html&#038;title=Iceweasel%2FFirefox%203%3A%20how%20to%20work-around%20random%2Ferratic%20right-click%20action" data-a2a-url="https://bogdan.org.ua/2008/07/19/iceweasel-firefox-3-how-to-fix-random-erratic-right-click-action-bahaviour.html" data-a2a-title="Iceweasel/Firefox 3: how to work-around random/erratic right-click action"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://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>https://bogdan.org.ua/2007/01/22/dotproject-204-on-godaddy-shared-hosting.html</link> <comments>https://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><![CDATA[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 [&#8230;]]]></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&#8217;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 &#8216;tasks_total&#8217; doesn&#8217;t exist</p></blockquote><p>I tried looking for solutions, and here&#8217;s what I found&#8230;<br
/> <span
id="more-106"></span><br
/> First of all, I tried issuing the &#8220;grant&#8221; 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&#8217;t work: &#8220;access denied for user &#8230;.&#8221;.</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 &#8220;the source&#8221;, 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&#8217;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 &#8220;static&#8221; tables.</p><p>Here&#8217;s how we proceed.</p><ol><li>Issue once the following MySQL statements (using, e.g., phpMyAdmin):<div
id="ig-sh-3" class="syntax_hilite"><div
class="code"><ol
class="sql" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><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: #66cc66;">&#40;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`task_project`</span> <span
style="color: #993333; font-weight: bold;">INT</span><span
style="color: #66cc66;">&#40;</span> <span
style="color: #cc66cc;">11</span> <span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">default</span> <span
style="color: #993333; font-weight: bold;">NULL</span> <span
style="color: #66cc66;">,</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`task_log_problem`</span> TINYINT<span
style="color: #66cc66;">&#40;</span><span
style="color: #cc66cc;">1</span><span
style="color: #66cc66;">&#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: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">TYPE</span><span
style="color: #66cc66;">=</span>MyISAM;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><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: #66cc66;">&#40;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`task_project`</span> <span
style="color: #993333; font-weight: bold;">INT</span><span
style="color: #66cc66;">&#40;</span> <span
style="color: #cc66cc;">11</span> <span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">default</span> <span
style="color: #993333; font-weight: bold;">NULL</span> <span
style="color: #66cc66;">,</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`critical_task`</span> <span
style="color: #993333; font-weight: bold;">INT</span><span
style="color: #66cc66;">&#40;</span> <span
style="color: #cc66cc;">11</span> <span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">default</span> <span
style="color: #993333; font-weight: bold;">NULL</span> <span
style="color: #66cc66;">,</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><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: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">TYPE</span><span
style="color: #66cc66;">=</span>MyISAM;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><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: #66cc66;">&#40;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`task_project`</span> <span
style="color: #993333; font-weight: bold;">INT</span><span
style="color: #66cc66;">&#40;</span> <span
style="color: #cc66cc;">11</span> <span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">default</span> <span
style="color: #993333; font-weight: bold;">NULL</span> <span
style="color: #66cc66;">,</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`total_tasks`</span> <span
style="color: #993333; font-weight: bold;">INT</span><span
style="color: #66cc66;">&#40;</span> <span
style="color: #cc66cc;">6</span> <span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">default</span> <span
style="color: #993333; font-weight: bold;">NULL</span> <span
style="color: #66cc66;">,</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`project_percent_complete`</span> <span
style="color: #993333; font-weight: bold;">VARCHAR</span><span
style="color: #66cc66;">&#40;</span> <span
style="color: #cc66cc;">11</span> <span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">default</span> <span
style="color: #993333; font-weight: bold;">NULL</span><span
style="color: #66cc66;">,</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`project_duration`</span> <span
style="color: #993333; font-weight: bold;">VARCHAR</span><span
style="color: #66cc66;">&#40;</span> <span
style="color: #cc66cc;">11</span> <span
style="color: #66cc66;">&#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: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">TYPE</span><span
style="color: #66cc66;">=</span>MyISAM;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><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: #66cc66;">&#40;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`task_project`</span> <span
style="color: #993333; font-weight: bold;">INT</span><span
style="color: #66cc66;">&#40;</span><span
style="color: #cc66cc;">11</span><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">default</span> <span
style="color: #993333; font-weight: bold;">NULL</span><span
style="color: #66cc66;">,</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`my_tasks`</span> <span
style="color: #993333; font-weight: bold;">varchar</span><span
style="color: #66cc66;">&#40;</span><span
style="color: #cc66cc;">10</span><span
style="color: #66cc66;">&#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: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">TYPE</span><span
style="color: #66cc66;">=</span>MyISAM;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><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: #66cc66;">&#40;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`task_project`</span> <span
style="color: #993333; font-weight: bold;">INT</span><span
style="color: #66cc66;">&#40;</span><span
style="color: #cc66cc;">11</span><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">default</span> <span
style="color: #993333; font-weight: bold;">NULL</span><span
style="color: #66cc66;">,</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`user_id`</span> <span
style="color: #993333; font-weight: bold;">INT</span><span
style="color: #66cc66;">&#40;</span><span
style="color: #cc66cc;">11</span><span
style="color: #66cc66;">&#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: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">TYPE</span><span
style="color: #66cc66;">=</span>MyISAM;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><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: #66cc66;">&#40;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`task_project`</span> <span
style="color: #993333; font-weight: bold;">INT</span><span
style="color: #66cc66;">&#40;</span> <span
style="color: #cc66cc;">11</span> <span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">DEFAULT</span> <span
style="color: #993333; font-weight: bold;">NULL</span> <span
style="color: #66cc66;">,</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`total_tasks`</span> <span
style="color: #993333; font-weight: bold;">INT</span><span
style="color: #66cc66;">&#40;</span> <span
style="color: #cc66cc;">6</span> <span
style="color: #66cc66;">&#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: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">TYPE</span><span
style="color: #66cc66;">=</span>MyISAM;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><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: #66cc66;">&#40;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`file_versions`</span> <span
style="color: #993333; font-weight: bold;">INT</span><span
style="color: #66cc66;">&#40;</span><span
style="color: #cc66cc;">11</span><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">default</span> <span
style="color: #cc66cc;">0</span><span
style="color: #66cc66;">,</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`file_lastversion`</span> <span
style="color: #993333; font-weight: bold;">float</span> <span
style="color: #993333; font-weight: bold;">default</span> <span
style="color: #ff0000;">'0'</span><span
style="color: #66cc66;">,</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`file_version_id`</span> <span
style="color: #993333; font-weight: bold;">INT</span><span
style="color: #66cc66;">&#40;</span><span
style="color: #cc66cc;">11</span><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">default</span> <span
style="color: #cc66cc;">0</span><span
style="color: #66cc66;">,</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #ff0000;">`file_project`</span> <span
style="color: #993333; font-weight: bold;">INT</span><span
style="color: #66cc66;">&#40;</span><span
style="color: #cc66cc;">11</span><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">default</span> <span
style="color: #cc66cc;">0</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">TYPE</span><span
style="color: #66cc66;">=</span>MyISAM;</div></li></ol></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
id="ig-sh-4" class="syntax_hilite"><div
class="code"><ol
class="sql" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><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: #66cc66;">&#40;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span
style="color: #ff0000;">`task_project`</span> <span
style="color: #993333; font-weight: bold;">int</span><span
style="color: #66cc66;">&#40;</span><span
style="color: #cc66cc;">11</span><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">default</span> <span
style="color: #993333; font-weight: bold;">NULL</span><span
style="color: #66cc66;">,</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span
style="color: #ff0000;">`project_percent_complete`</span> <span
style="color: #993333; font-weight: bold;">varchar</span><span
style="color: #66cc66;">&#40;</span><span
style="color: #cc66cc;">11</span><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">default</span> <span
style="color: #993333; font-weight: bold;">NULL</span><span
style="color: #66cc66;">,</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span
style="color: #ff0000;">`project_duration`</span> <span
style="color: #993333; font-weight: bold;">varchar</span><span
style="color: #66cc66;">&#40;</span><span
style="color: #cc66cc;">11</span><span
style="color: #66cc66;">&#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: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #66cc66;">&#41;</span> <span
style="color: #993333; font-weight: bold;">TYPE</span><span
style="color: #66cc66;">=</span>MyISAM;</div></li></ol></div></div></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
id="ig-sh-5" class="syntax_hilite"><div
class="code"><ol
class="php" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$q = 'CREATE TEMPORARY TABLE ' . $this-&gt;_table_prefix . $this-&gt;create_table;</div></li></ol></div></div><p>with these:</p><div
id="ig-sh-6" class="syntax_hilite"><div
class="code"><ol
class="php" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">//$q = 'CREATE TEMPORARY TABLE ' . $this-&gt;_table_prefix . $this-&gt;create_table;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$q = 'INSERT INTO ' . $this-&gt;_table_prefix . $this-&gt;create_table;</div></li></ol></div></div><p>Now we won&#8217;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
id="ig-sh-7" class="syntax_hilite"><div
class="code"><ol
class="php" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">// Let's delete temporary tables</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$q &nbsp;= new DBQuery;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$q-&gt;dropTemp('tasks_sum, tasks_summy, tasks_critical, tasks_problems, tasks_users');</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$q-&gt;exec();</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$q-&gt;clear();</div></li></ol></div></div><p>with this code:</p><div
id="ig-sh-8" class="syntax_hilite"><div
class="code"><ol
class="php" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">// Let's delete temporary tables</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$sql = &quot;TRUNCATE TABLE tasks_sum&quot;; db_exec($sql);</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$sql = &quot;TRUNCATE TABLE tasks_summy&quot;; db_exec($sql);</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$sql = &quot;TRUNCATE TABLE tasks_critical&quot;; db_exec($sql);</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$sql = &quot;TRUNCATE TABLE tasks_problems&quot;; db_exec($sql);</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$sql = &quot;TRUNCATE TABLE tasks_users&quot;; db_exec($sql);</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$sql = &quot;TRUNCATE TABLE tasks_total&quot;; db_exec($sql);</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$q &nbsp;= new DBQuery;</div></li></ol></div></div><p>Note: <strong>$sql = &#8220;TRUNCATE TABLE tasks_sum&#8221;; db_exec($sql);</strong> line is 2.1.2-specific.<br
/> At this point, you will no longer receive error messages while on the &#8220;projects&#8221; 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
id="ig-sh-9" class="syntax_hilite"><div
class="code"><ol
class="php" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$r-&gt;dropTemp('files_count_max');</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$r-&gt;exec();</div></li></ol></div></div><p>with:</p><div
id="ig-sh-10" class="syntax_hilite"><div
class="code"><ol
class="php" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">//$r-&gt;dropTemp('files_count_max');</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">//$r-&gt;exec();</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">$sql = &quot;TRUNCATE TABLE files_count_max&quot;; db_exec($sql);</div></li></ol></div></div></li><li><strong>Optionally</strong>, if you want to improve the performance of dotProject specifically for these tables, change the &#8216;engine&#8217; for the above-mentioned tables to &#8216;memory&#8217;. To do that, execute the following SQL statements:<div
id="ig-sh-11" class="syntax_hilite"><div
class="code"><ol
class="sql" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #993333; font-weight: bold;">alter</span> <span
style="color: #993333; font-weight: bold;">table</span> tasks_problems engine<span
style="color: #66cc66;">=</span>memory;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #993333; font-weight: bold;">alter</span> <span
style="color: #993333; font-weight: bold;">table</span> tasks_critical engine<span
style="color: #66cc66;">=</span>memory;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #993333; font-weight: bold;">alter</span> <span
style="color: #993333; font-weight: bold;">table</span> tasks_sum engine<span
style="color: #66cc66;">=</span>memory;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #993333; font-weight: bold;">alter</span> <span
style="color: #993333; font-weight: bold;">table</span> tasks_summy engine<span
style="color: #66cc66;">=</span>memory;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #993333; font-weight: bold;">alter</span> <span
style="color: #993333; font-weight: bold;">table</span> tasks_users engine<span
style="color: #66cc66;">=</span>memory;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #993333; font-weight: bold;">alter</span> <span
style="color: #993333; font-weight: bold;">table</span> tasks_total engine<span
style="color: #66cc66;">=</span>memory;</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #993333; font-weight: bold;">alter</span> <span
style="color: #993333; font-weight: bold;">table</span> files_count_max engine<span
style="color: #66cc66;">=</span>memory;</div></li></ol></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 &#8211; to apply this change or not depends on where is your bottleneck.</li><p>Comments and further improvements are welcome.</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F01%2F22%2Fdotproject-204-on-godaddy-shared-hosting.html&amp;linkname=dotProject%202.0.4%2F2.1.2%2F2.1.3%20on%20shared%20hosting" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F01%2F22%2Fdotproject-204-on-godaddy-shared-hosting.html&amp;linkname=dotProject%202.0.4%2F2.1.2%2F2.1.3%20on%20shared%20hosting" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F01%2F22%2Fdotproject-204-on-godaddy-shared-hosting.html&amp;linkname=dotProject%202.0.4%2F2.1.2%2F2.1.3%20on%20shared%20hosting" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F01%2F22%2Fdotproject-204-on-godaddy-shared-hosting.html&amp;linkname=dotProject%202.0.4%2F2.1.2%2F2.1.3%20on%20shared%20hosting" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F01%2F22%2Fdotproject-204-on-godaddy-shared-hosting.html&amp;linkname=dotProject%202.0.4%2F2.1.2%2F2.1.3%20on%20shared%20hosting" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2007%2F01%2F22%2Fdotproject-204-on-godaddy-shared-hosting.html&#038;title=dotProject%202.0.4%2F2.1.2%2F2.1.3%20on%20shared%20hosting" data-a2a-url="https://bogdan.org.ua/2007/01/22/dotproject-204-on-godaddy-shared-hosting.html" data-a2a-title="dotProject 2.0.4/2.1.2/2.1.3 on shared hosting"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://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>https://bogdan.org.ua/2006/09/27/ie-internet-explorer-margin-doubling-bug-fixes.html</link> <comments>https://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><![CDATA[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: #floatbox &#123; &#160; float: left; &#160; width: 150px; &#160; height: 150px; &#160; margin-left: 100px; &#125; and put your &#8220;floatbox&#8221; inside a container (such as DIV), you will actually see 200px of the left margin instead of the [&#8230;]]]></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
id="ig-sh-12" class="syntax_hilite"><div
class="code"><ol
class="css" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #cc00cc;">#floatbox</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #00AA00;">&#123;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span
style="color: #000000; font-weight: bold;">float</span><span
style="color: #00AA00;">:</span> <span
style="color: #000000; font-weight: bold;">left</span><span
style="color: #00AA00;">;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span
style="color: #000000; font-weight: bold;">width</span><span
style="color: #00AA00;">:</span> <span
style="color: #933;">150px</span><span
style="color: #00AA00;">;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span
style="color: #000000; font-weight: bold;">height</span><span
style="color: #00AA00;">:</span> <span
style="color: #933;">150px</span><span
style="color: #00AA00;">;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span
style="color: #000000; font-weight: bold;">margin-left</span><span
style="color: #00AA00;">:</span> <span
style="color: #933;">100px</span><span
style="color: #00AA00;">;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #00AA00;">&#125;</span></div></li></ol></div></div><p>and put your &#8220;floatbox&#8221; 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 &#8220;IE margin-doubling bug&#8221;.</p><p>In this post I collected solutions you can use to avoid this problem. The solution I&#8217;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
id="ig-sh-13" class="syntax_hilite"><div
class="code"><ol
class="css" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #00AA00;">*</span> html <span
style="color: #6666ff;">.visualIEFloatFix</span> <span
style="color: #00AA00;">&#123;</span> <span
style="color: #000000; font-weight: bold;">height</span><span
style="color: #00AA00;">:</span> <span
style="color: #933;">0.01%</span><span
style="color: #00AA00;">;</span> <span
style="color: #00AA00;">&#125;</span></div></li></ol></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 &#8211; 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
id="ig-sh-14" class="syntax_hilite"><div
class="code"><ol
class="css" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #6666ff;">.floatbox</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #00AA00;">&#123;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span
style="color: #000000; font-weight: bold;">float</span><span
style="color: #00AA00;">:</span> <span
style="color: #000000; font-weight: bold;">left</span><span
style="color: #00AA00;">;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span
style="color: #000000; font-weight: bold;">width</span><span
style="color: #00AA00;">:</span> <span
style="color: #933;">150px</span><span
style="color: #00AA00;">;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span
style="color: #000000; font-weight: bold;">height</span><span
style="color: #00AA00;">:</span> <span
style="color: #933;">150px</span><span
style="color: #00AA00;">;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span
style="color: #000000; font-weight: bold;">margin-left</span><span
style="color: #00AA00;">:</span> <span
style="color: #933;">100px</span><span
style="color: #00AA00;">;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span
style="color: #000000; font-weight: bold;">display</span><span
style="color: #00AA00;">:</span> <span
style="color: #993333;">inline</span><span
style="color: #00AA00;">;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #00AA00;">&#125;</span></div></li></ol></div></div><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2006%2F09%2F27%2Fie-internet-explorer-margin-doubling-bug-fixes.html&amp;linkname=IE%20%28Internet%20Explorer%29%20margin%20doubling%20bug%20fixes" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2006%2F09%2F27%2Fie-internet-explorer-margin-doubling-bug-fixes.html&amp;linkname=IE%20%28Internet%20Explorer%29%20margin%20doubling%20bug%20fixes" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2006%2F09%2F27%2Fie-internet-explorer-margin-doubling-bug-fixes.html&amp;linkname=IE%20%28Internet%20Explorer%29%20margin%20doubling%20bug%20fixes" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2006%2F09%2F27%2Fie-internet-explorer-margin-doubling-bug-fixes.html&amp;linkname=IE%20%28Internet%20Explorer%29%20margin%20doubling%20bug%20fixes" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2006%2F09%2F27%2Fie-internet-explorer-margin-doubling-bug-fixes.html&amp;linkname=IE%20%28Internet%20Explorer%29%20margin%20doubling%20bug%20fixes" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2006%2F09%2F27%2Fie-internet-explorer-margin-doubling-bug-fixes.html&#038;title=IE%20%28Internet%20Explorer%29%20margin%20doubling%20bug%20fixes" data-a2a-url="https://bogdan.org.ua/2006/09/27/ie-internet-explorer-margin-doubling-bug-fixes.html" data-a2a-title="IE (Internet Explorer) margin doubling bug fixes"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://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>