<?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>Two Drifters &#187; fix</title>
	<atom:link href="http://blog.ideaday.de/max/tag/fix/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ideaday.de/max</link>
	<description>Off to see the world.</description>
	<lastBuildDate>Sun, 05 Feb 2012 16:48:05 +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>Concrete 5 SQL errors during installation</title>
		<link>http://blog.ideaday.de/max/2012/02/concrete-5-sql-errors-during-installation/</link>
		<comments>http://blog.ideaday.de/max/2012/02/concrete-5-sql-errors-during-installation/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 19:57:24 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Concrete 5]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[C5]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[explanation]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql error]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/?p=1667</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2012/02/concrete-5-sql-errors-during-installation/' addthis:title='Concrete 5 SQL errors during installation '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>We have seen this error with Concrete 5.5.1 You try to setup Concrete 5, and get strange SQL errors during the installation: If installing with an empty site, like this you get: mysql error: [1048: Column 'uID' cannot be null] in EXECUTE("INSERT INTO Config (cfKey,cfValue,uID) VALUES ('NEWSFLOW_LAST_VIEWED','FIRSTRUN',NULL)") If installing with Sample content with Blog: The [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2012/02/concrete-5-sql-errors-during-installation/' addthis:title='Concrete 5 SQL errors during installation ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2012/02/concrete-5-sql-errors-during-installation/' addthis:title='Concrete 5 SQL errors during installation '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p>We have seen this error with <strong>Concrete 5.5.1</strong></p>
<p>You try to setup Concrete 5, and get <strong>strange SQL errors</strong> during the installation:</p>
<p>If installing with an <strong>empty site</strong>, like this</p>
<p align="center"><a href="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2012/02/c5-nosample-content-chosen.png"><img hspace="10" alt="c5-nosample-content-chosen" vspace="10" src="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2012/02/c5-nosample-content-chosen-small.png" width="450" height="208" /></a></p>
<p>you get:</p>
<p align="center"><a href="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2012/02/c5-mysql-error.png"><img hspace="10" alt="c5-mysql-error" vspace="10" src="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2012/02/c5-mysql-error-small.png" width="450" height="129" /></a></p>
<p><em>mysql error: [1048: Column 'uID' cannot be null] in EXECUTE("INSERT INTO Config (cfKey,cfValue,uID) VALUES ('NEWSFLOW_LAST_VIEWED','FIRSTRUN',NULL)")</em></p>
<p>If installing with <strong>Sample content with Blog</strong>:</p>
<p align="center"><a href="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2012/02/c5_with_sample_content.png"><img hspace="10" alt="c5 with sample content" vspace="10" src="http://ideadayblog.ideaday.netdna-cdn.com/max/wp-content/uploads/2012/02/c5_with_sample_content-small.png" width="450" height="276" /></a></p>
<p>The error you get is:</p>
<p><em>Catchable fatal error: Argument 1 passed to ContentImporter::importPageAreas() must be an instance of Page, boolean given, called in /concrete/libraries/content/importer.php on line 75 and defined in /concrete/libraries/content/importer.php on line 197.</em></p>
<p>&nbsp;</p>
<p><strong>Solution:</strong></p>
<p>You don't run Varnish by any chance, do you? We do, and we had it set up to &#8230; dispose of some cookies. The solution is, in Varnish' case, to enable pass-through for the host you are installing on.</p>
<p>You want to enable cookies.</p>
<p>&nbsp;</p>
<p><strong>Explanation:</strong></p>
<p>The code which breaks is located in <em>concrete5.5.1\concrete\models\package\starting_point.php</em></p>
<blockquote>
<p>  Config::save('SITE', SITE);<br />
  Config::save('SITE_APP_VERSION', APP_VERSION);<br />
  $u = new User();<br />
  $u-&gt;saveConfig('NEWSFLOW_LAST_VIEWED', 'FIRSTRUN');</p>
</blockquote>
<p>As you see, this is the first time a User is created and used.</p>
<p>The User class is defined in <em>concrete5.5.1\concrete\models\user.php</em></p>
<blockquote>
<p> <strong> if (isset($_SESSION['uID'])) {<br /></strong>     $this-&gt;uID = $_SESSION['uID'];<br />
     $this-&gt;uName = $_SESSION['uName'];<br />
     $this-&gt;uTimezone = $_SESSION['uTimezone'];<br />
     if (isset($_SESSION['uDefaultLanguage'])) {<br />
      $this-&gt;uDefaultLanguage = $_SESSION['uDefaultLanguage'];<br />
     }<br />
     $this-&gt;superUser = ($_SESSION['uID'] == USER_SUPER_ID) ? true : false;<br />
    } else {<br />
    <strong> $this-&gt;uID = null;<br /></strong>     $this-&gt;uName = null;<br />
     $this-&gt;superUser = false;<br />
     $this-&gt;uDefaultLanguage = null;<br />
     $this-&gt;uTimezone = null;<br />
    }<br />
    $this-&gt;uGroups = $this-&gt;_getUserGroups();<br />
    if (!isset($args[2])) {<br />
     $_SESSION['uGroups'] = $this-&gt;uGroups;<br />
    }<br />
   }</p>
</blockquote>
<p>The constructor checks in the Session for a valid user ID. If no user ID is found, it is set to zero. This happens <strong>if you throw away the cookies</strong>! Because the session is stored in them.</p>
<p>HTH. Feel free to comment on similar errors and solutions.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2012/02/concrete-5-sql-errors-during-installation/' addthis:title='Concrete 5 SQL errors during installation ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2012/02/concrete-5-sql-errors-during-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Sprache mit der Konsole wechseln</title>
		<link>http://blog.ideaday.de/max/2012/01/ubuntu-sprache-mit-der-konsole-wechseln/</link>
		<comments>http://blog.ideaday.de/max/2012/01/ubuntu-sprache-mit-der-konsole-wechseln/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 11:23:49 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[German]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[Chinesisch]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[Hilfestellung]]></category>
		<category><![CDATA[Konsole]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[Neustart]]></category>
		<category><![CDATA[Sprache ändern]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/?p=1622</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2012/01/ubuntu-sprache-mit-der-konsole-wechseln/' addthis:title='Ubuntu Sprache mit der Konsole wechseln '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>Mein Bruder hat auf seinem Ubuntu Notebook chinesisch als Hauptsprache installiert. Klar, wir sprechen alle Chinesisch &#8230; nicht! Jetzt hatte er mich gebeten etwas für ihn daran zu machen. Also musste erst Chinesisch durch z.b. Englisch ersetzt werden. Leider müsste man in der GUI auch erkennen, welche chinesichen Zeichen denn jetzt dafür stehen, dass man [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2012/01/ubuntu-sprache-mit-der-konsole-wechseln/' addthis:title='Ubuntu Sprache mit der Konsole wechseln ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2012/01/ubuntu-sprache-mit-der-konsole-wechseln/' addthis:title='Ubuntu Sprache mit der Konsole wechseln '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p>Mein Bruder hat auf seinem Ubuntu Notebook chinesisch als Hauptsprache installiert. Klar, wir sprechen alle Chinesisch &#8230; nicht!</p>
<p>Jetzt hatte er mich gebeten etwas für ihn daran zu machen. Also musste erst Chinesisch durch z.b. Englisch ersetzt werden.</p>
<p>Leider müsste man in der GUI auch erkennen, welche chinesichen Zeichen denn jetzt dafür stehen, dass man die Sprache konfigurieren kann. Ich habe probeweise ein paar angeklickt, es kamen jedoch immer irgendwelche Dialoge mit noch mehr Chinesisch (im wahrsten Sinne des Wortes!).</p>
<p>Nach einer Internetrecherche, dank <a href="http://blog.andrewbeacock.com/2007/01/how-to-change-your-default-locale-on.html" target="_blank">dieser Seite </a> die Lösung:</p>
<ul>
<li>
<div>eine Konsole aufrufen (die erkennt man an dem Konsolen-Icon)</div>
</li>
<li>
<div>sudo nano /etc/default/locale</div>
</li>
<li>
<div>ggf. User-passwort eingeben</div>
</li>
<li>
<div>eintragen:</div>
</li>
</ul>
<blockquote>
<p>LANG="en_GB"<br />
LANGUAGE="en_GB:en"</p>
</blockquote>
<ul>
<li>
<div>speichern (Ctrl + O)</div>
</li>
<li>
<div>schließen (Ctrl + X)</div>
</li>
<li>
<div>System neustarten ( sudo reboot )</div>
</li>
</ul>
<p>Nach dem Neustart sind wichtige Teile des Systems &#8211; bspw. die Menüleiste ganz oben &#8211; in Englisch. Das sollte es einem ermöglichen auch den Rest umzustellen &#8230; falls notwendig.</p>
<p>Andere Teile, bspw. FireFox bleiben allerdings in Chinesisch, und sind daher verteufelt schwer zu bedienen &#8230; so muss sich ein Analphabet vorkommen!</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2012/01/ubuntu-sprache-mit-der-konsole-wechseln/' addthis:title='Ubuntu Sprache mit der Konsole wechseln ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2012/01/ubuntu-sprache-mit-der-konsole-wechseln/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finestra</title>
		<link>http://blog.ideaday.de/max/2012/01/finestra/</link>
		<comments>http://blog.ideaday.de/max/2012/01/finestra/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 23:20:33 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[Finestra]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[repair]]></category>
		<category><![CDATA[Window Manager]]></category>
		<category><![CDATA[working Finestra]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/?p=1620</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2012/01/finestra/' addthis:title='Finestra '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>Running Windows 7? For a working Finestra (with correct Z-Order) use Version 1.1. Version 1.2 messes up the Z-Order, and Version 2.0 and Version 2.1 both crash when hitting Win + Z to display the window overview (known bug). Sometimes the newest version is not the best one :-) About Finestra Finestra is a Virtual [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2012/01/finestra/' addthis:title='Finestra ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2012/01/finestra/' addthis:title='Finestra '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p>Running Windows 7? For a working Finestra (with correct Z-Order) use <strong><a title="Working Finestra" href="http://vdm.codeplex.com/releases/view/60501" target="_blank">Version 1.1</a></strong>.</p>
<p>Version 1.2 messes up the Z-Order, and Version 2.0 and Version 2.1 both crash when hitting Win + Z to display the window overview (known bug). Sometimes the newest version is not the best one :-)</p>
<p><strong>About Finestra</strong></p>
<p>Finestra is a Virtual Desktop Manager for Windows. Freeware, fast switching, graphical indication to which desktop it switches.</p>
<p>Ability to drag windows to other desktops (using Win + Z to show the preview). Also useful for recovering windows which have been moved to outside your monitor by accident (believe me, it happens. Especially when using different monitor setups on notebooks)</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2012/01/finestra/' addthis:title='Finestra ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2012/01/finestra/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling with ruby and closure</title>
		<link>http://blog.ideaday.de/max/2011/11/compiling-with-ruby-and-closure/</link>
		<comments>http://blog.ideaday.de/max/2011/11/compiling-with-ruby-and-closure/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 12:54:45 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[amazing monkey]]></category>
		<category><![CDATA[charset]]></category>
		<category><![CDATA[closure]]></category>
		<category><![CDATA[even more speed]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[more speed]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[option]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[speed]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2011/11/compiling-with-ruby-and-closure/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/11/compiling-with-ruby-and-closure/' addthis:title='Compiling with ruby and closure '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>Here's some code to call closure (which is renamed closure.jar) from a ruby script: def optimize_js(target) #get all files in this folder, recurse over them filecounter = 0 modifiedcounter = 0 Dir.glob(target + '*.js').each do&#124;f&#124; puts "Processing #{f}" filecounter += 1 my_js = `java -jar closure.jar &#8211;charset iso-8859-1 &#8211;js #{f}` File.open(f, "w"){&#124;con_file&#124; con_file.write(my_js) } end [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/11/compiling-with-ruby-and-closure/' addthis:title='Compiling with ruby and closure ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/11/compiling-with-ruby-and-closure/' addthis:title='Compiling with ruby and closure '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p>Here's some code to call closure (which is renamed closure.jar) from a ruby script:</p>
<blockquote>
<p>def optimize_js(target)<br />
 #get all files in this folder, recurse over them<br />
 filecounter = 0<br />
 modifiedcounter = 0<br />
 Dir.glob(target + '*.js').each do|f|<br />
  puts "Processing #{f}"<br />
  filecounter += 1<br />
  my_js = `java -jar closure.jar &#8211;charset iso-8859-1 &#8211;js #{f}`<br />
  File.open(f, "w"){|con_file|<br />
   con_file.write(my_js)<br />
  }<br />
 end</p>
<p> puts "\n\t # JS Optimization: Done. Modified #{filecounter} files." <br />
end</p>
</blockquote>
<p>This code will <strong>overwrite the js files</strong>, so please be sure to operate on a copy of your files!</p>
<p>It is a function which takes a directory (target) and processes all files with the ending .js, replacing them in place with the optimized JS output. You need to put closure.jar in the same directory as the ruby script.</p>
<p>Note, that I also use the <strong>&#8211;charset iso-8859-1</strong> option. This option ensures that closure reads the file in that iso charset, instead of assuming UTF-8. UTF-8 as default will work ok, until you have special characters from foreign languages, i.e. <strong>ä ö ü ß or á</strong> or whatever. Think Spanisch, French, German.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/11/compiling-with-ruby-and-closure/' addthis:title='Compiling with ruby and closure ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2011/11/compiling-with-ruby-and-closure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer, position fixed and strict mode</title>
		<link>http://blog.ideaday.de/max/2011/09/internet-explorer-position-fixed-and-strict-mode/</link>
		<comments>http://blog.ideaday.de/max/2011/09/internet-explorer-position-fixed-and-strict-mode/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 19:39:54 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[fixed positioning]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[quirky mode]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[XAMPP]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2011/09/internet-explorer-position-fixed-and-strict-mode/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/09/internet-explorer-position-fixed-and-strict-mode/' addthis:title='Internet Explorer, position fixed and strict mode '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>You want to use fixed positioning with CSS If you want to make use of the simple CSS position:fixed; to display an element static to the viewport, you will run into problems with the Internet Explorer. position:fixed is only supported since Internet Explorer 7 I tested this solution with IE 7.0.5730.13 on Windows XP. IE [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/09/internet-explorer-position-fixed-and-strict-mode/' addthis:title='Internet Explorer, position fixed and strict mode ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/09/internet-explorer-position-fixed-and-strict-mode/' addthis:title='Internet Explorer, position fixed and strict mode '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p><strong>You want to use fixed positioning with CSS</strong></p>
<p>If you want to make use of the simple CSS position:fixed; to display an element static to the viewport, you will run into problems with the Internet Explorer.</p>
<p><strong>position:fixed is only supported since Internet Explorer 7</strong></p>
<p>I tested this solution with IE 7.0.5730.13 on Windows XP. IE 6 does not support fixed positioning.</p>
<p><strong>You need to enforce strict mode</strong></p>
<p>Internet Explorer will default to "quirky rendering mode", if you don't add special tags to your HTML document:</p>
<blockquote>
<p><strong>&lt;!DOCTYPE html&gt;</strong><br />
&lt;HTML&gt;<br />
&lt;HEAD&gt;<br />
&lt;meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /&gt;<br />
&lt;title&gt;Progress Test&lt;/title&gt;<br />
<strong>&lt;meta http-equiv= "X-UA-Compatible"content="IE=Edge"&gt;</strong><br />
&lt;script language = "JavaScript" src="../head.min.js"&gt;&lt;/script&gt;<br />
[...]</p>
</blockquote>
<p>Both are essential! If you try IE 9 on the page without having added the meta tag X-UA-Compatible, it will render the page in quirky mode. And in quirky mode, <strong>it will ignore your position:fixed</strong>, and render your element where you have put it in the flow of the document.</p>
<p>Please note: I have read that this meta tag actually is not valid for this DOCTYPE.</p>
<p><strong>It still does not work? I am testing with local documents!</strong></p>
<p>Internet Explorer also takes into account where the element is being served from. This solution will work, if you upload your test documents to a server and access them over the Internet. <strong>It will <del><strong>not</strong> work</del> (see note below) <strong>for local files, even if you use a local webserver to serve up the files (i.e. XAMPP)</strong>. Internet Explorer will render your document in quirky mode, in this case.</strong></p>
<p>Note: actually <strong>it does work offline</strong> (opening a document from the harddrive) in Internet Explorer 9 after fiddling somewhat with the document. I <strong>removed a IE compatibility script</strong> (not shown above), which I had included from Google previously. Check if you have one of those, and remove it!</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/09/internet-explorer-position-fixed-and-strict-mode/' addthis:title='Internet Explorer, position fixed and strict mode ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2011/09/internet-explorer-position-fixed-and-strict-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.pages and Free Opener</title>
		<link>http://blog.ideaday.de/max/2011/09/pages-and-free-opener/</link>
		<comments>http://blog.ideaday.de/max/2011/09/pages-and-free-opener/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 20:03:10 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[.pages]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[FreeOpener]]></category>
		<category><![CDATA[Google Docs]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[JPEG]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[preview]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2011/09/pages-and-free-opener/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/09/pages-and-free-opener/' addthis:title='.pages and Free Opener '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>What are .pages files? They are files created with Pages, a part of the iWork productivity suite for Mac OS X. How can I open them? There is no known software which can open .pages natively on Windows or Linux. But, there's a kind of a workaround which lets you access the content of the [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/09/pages-and-free-opener/' addthis:title='.pages and Free Opener ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/09/pages-and-free-opener/' addthis:title='.pages and Free Opener '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p><strong>What are .pages files?</strong></p>
<p>They are files created with <a href="http://en.wikipedia.org/wiki/Pages">Pages</a>, a part of the iWork productivity suite for Mac OS X.</p>
<p><strong>How can I open them?</strong></p>
<p>There is <strong>no</strong> known software which can open .pages <em>natively</em> on Windows or Linux.</p>
<p>But, there's a kind of a workaround which lets you access the content of the .pages files.</p>
<p><strong>The workaround</strong></p>
<p>The file is actually a .zip archive! If you have <a href="http://www.7-zip.org">7-zip</a> right-click the file to extract it. If not, you may rename the file to <em>filename</em>.zip and extract it with your favorite ZIP application. (Windows can do it from Windows XP upwards).</p>
<p>The folder / files which you obtain from the .pages file contains different files and folders.</p>
<ul>
<li><strong>index.xml</strong> &#8211; if you are truly desperate, the text is in here and can be extracted with a lot of patience, I guess. Also theoretically someone could write a parser for this file sometime.</li>
<li><strong>QuickLook</strong> &#8211; this folder contains preview versions of your .pages file. If it is present &#8211; sometimes it is not (if the creator of the file did not include a preview!)</li>
</ul>
<p><strong>What about QuickLook &amp; the preview files?</strong></p>
<p>There's two types (I know of):</p>
<ul>
<li><strong>PDF files</strong> &#8211; you're lucky, it contains your .pages in a format suitable for reading and further processing</li>
<li><strong>JPG images</strong> &#8211; this is a low-resolution screenshot of the .pages file, you can still read it, but &#8230; well no copy'n'paste here.</li>
</ul>
<p><strong>What about Free Opener from <a href="http://www.freeopener.com">freeopener.com</a>?</strong></p>
<p>The guys over at <a href="http://www.fileinfo.com/extension/pages">fileinfo.com</a> claim that Free Opener can open .pages. Well, <strong>it's just doing the preview files thing from above</strong>. Meaning &#8211; if you only have a low-res JPEG preview image, that's all you get from Free Opener. No text, I'm sorry to say.</p>
<p>I like the installer &#8211; I think more installers should be built like theirs, <strong>BUT</strong> &#8211; it seems to install along with it many programs which you actually did not want in the first place, if you are not careful. Also there are rumours about <strong>it installing Adware</strong> (see <a href="http://www.mywot.com/en/scorecard/freeopener.com">WOT</a>).</p>
<p><strong>I would at this point advise against installing Free Opener to open .pages files.</strong> Use the manual method.</p>
<p><strong>Are there other solutions to open .pages files?</strong></p>
<ul>
<li>Google Docs is supposed to be able to open them</li>
<li>Ask your friend / colleague / &#8230; to send you a <strong>PDF</strong> file, or to export to Word-readable formats (formatting may be lost with the latter option)</li>
<li>Buy a Mac.</li>
</ul>
<p><strong>Can InDesign access .pages files?</strong></p>
<p><strong>Not on Windows</strong> to my knowledge. Tested with InDesign CS5 + Windows 7 64bit without any extensions, by trying to place a .pages file. "No filter could be found".</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/09/pages-and-free-opener/' addthis:title='.pages and Free Opener ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2011/09/pages-and-free-opener/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Head.js working unreliably</title>
		<link>http://blog.ideaday.de/max/2011/08/head-js-working-unreliably/</link>
		<comments>http://blog.ideaday.de/max/2011/08/head-js-working-unreliably/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 18:02:54 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[head.js]]></category>
		<category><![CDATA[includes]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[race condition]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2011/08/head-js-working-unreliably/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/08/head-js-working-unreliably/' addthis:title='Head.js working unreliably '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>What is head.js From the same author as the fabulous JQuery Tools library &#8211; head.js is "the only script in your head". You include it in your HTML output, and write code for it to include and run other JS files. It also offers some extensions for CSS, for instance you can optimize for different [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/08/head-js-working-unreliably/' addthis:title='Head.js working unreliably ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/08/head-js-working-unreliably/' addthis:title='Head.js working unreliably '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p><strong>What is head.js</strong></p>
<p>From the same author as the fabulous <a href="http://flowplayer.org/tools/">JQuery Tools library</a> &#8211; <a href="http://headjs.com/">head.js</a> is "the only script in your head". You include it in your HTML output, and write code for it to include and run other JS files. It also offers some extensions for CSS, for instance you can optimize for different screen resolutions or fix glitches in different browsers.</p>
<p>Why should you include your files via head.js?</p>
<p>Well, the browser will load in a blocking manner &#8211; that is, it will load the resources it encounters first, and then continue loading the other resources. If you have a bunch of JS files, they might take a while to load (think of the HTTP request overhead, and of network latency!), thus blocking images, CSS files and other content on your site.</p>
<p>Head.js is only one (small) JS file to include, which will take care of loading your JS files <strong>asynchronously and simultaneously</strong> in the background. Once they are ready, you can execute code using the head.ready() method.</p>
<p><strong>The result is &#8211; your webpage display significantly faster!</strong></p>
<p><strong>Problem</strong></p>
<p>Sometimes, the scripts you load via head.js will work, sometimes they won't &#8211; i.e. features of the site additionally coded by you will not show up constantly and predictably.</p>
<p><strong>Solution</strong></p>
<p>The problem may be a <strong>race condition</strong>. Head.js loads the scripts asynchronously, so sometimes the other code on your site gets executed before the JS files included via head.js are executed, and sometimes afterwards.</p>
<p>Example: you are passing some information to your script via a variable which differs from page to page.</p>
<p>Your code is something like this (<em>actually I moved the call to head.js() to the head.min.js file itself, which may contribute to the problem!</em>):</p>
<blockquote>
<p>&lt;script language = "JavaScript" src="includes/head.min.js"&gt;&lt;/script&gt;<br />
&lt;script type="text/javascript"&gt;<br />
head.js('includes/jquery.tools.min.js','includes/custom-script.js');</p>
<p>&#8230; lots of code inbetween &#8230;</p>
<p>var variable_to_pass = 'some value';<br />
&lt;/script&gt;</p>
</blockquote>
<p>and in your custom-script.js you rely on variable_to_pass like this:</p>
<blockquote>
<p>var i_rely = variable_to_pass;</p>
</blockquote>
<p>Sometimes your variable_to_pass will get set up before head.js has loaded your custom-script, and sometimes not. In the first case, all will go well, in the latter case, your code will fail. In Google Chrome, for instance, silently, unless you activate the JavaScript console to see the error stated.</p>
<p>This is called a <strong>race condition</strong>. The solution to this condition is to rely on external variables only once the whole page has loaded and is scriptable, which you have to test for, extra.</p>
<p>For instance you could use JQuery's <strong>$(function() {]);</strong> method for this, setting up the dependent variable or using the passed variable inside the function.</p>
<p>Another possibility is to check if the variable is as of yet undefined, and to give it a default value.</p>
<blockquote>
<p> if (typeof(variable_to_pass) === 'undefined') {<br />
variable_to_pass = 'some default value'; </p>
<p>}</p>
</blockquote>
<p>(not writing var before the variable will make it global).</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/08/head-js-working-unreliably/' addthis:title='Head.js working unreliably ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2011/08/head-js-working-unreliably/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable and fix Lectora titles for the Opera browser</title>
		<link>http://blog.ideaday.de/max/2011/06/enable-and-fix-lectora-titles-for-the-opera-browser/</link>
		<comments>http://blog.ideaday.de/max/2011/06/enable-and-fix-lectora-titles-for-the-opera-browser/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 18:34:37 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Lectora]]></category>
		<category><![CDATA[Netscape Navigator]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2011/06/enable-and-fix-lectora-titles-for-the-opera-browser/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/06/enable-and-fix-lectora-titles-for-the-opera-browser/' addthis:title='Enable and fix Lectora titles for the Opera browser '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>Problem: If you publish a title with Lectora, and try to view it from Opera, instead of the title you see an error message Your browser does not support dynamic html. Please download a current version of either Microsoft'" DESIGNTIMESP=18189&#62;Microsoft Internet Explorer or Mozilla'" DESIGNTIMESP=18192&#62;Mozilla Firefox and try visiting our site again. Thank You. Solution: [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/06/enable-and-fix-lectora-titles-for-the-opera-browser/' addthis:title='Enable and fix Lectora titles for the Opera browser ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/06/enable-and-fix-lectora-titles-for-the-opera-browser/' addthis:title='Enable and fix Lectora titles for the Opera browser '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p><strong>Problem: If you publish a title with Lectora, and try to view it from Opera, instead of the title you see an error message</strong></p>
<blockquote><p><em>Your browser does not support dynamic html. Please download a current version of either</em> <a href="http://www.microsoft.com/ie/&quot;>Microsoft">Microsoft'" DESIGNTIMESP=18189&gt;<em>Microsoft</em></a> <em>Internet Explorer or</em> <a href="http://www.mozilla.com/en-US/firefox/&quot;>Mozilla">Mozilla'" DESIGNTIMESP=18192&gt;<em>Mozilla</em></a> <em>Firefox and try visiting our site again. Thank You.</em></p></blockquote>
<p><strong>Solution: You have to modify</strong> trivantis.js <strong>in line 353 and line 355. The modifications are displayed in bold</strong></p>
<blockquote><p><em>this.ns = (name=="ns" &amp;&amp; this.v&gt;=4)<strong>||(navigator.userAgent.indexOf("Opera")!=-1)</strong><br />
this.ns4 = (this.ns &amp;&amp; this.v==4)<br />
this.ns5 = (this.ns &amp;&amp; this.v==5)<strong>||(navigator.userAgent.indexOf("Opera")!=-1)</strong></em></p></blockquote>
<h3>IMPORTANT: WordPress fucks up the quotation marks above, fix them by hand!!!</h3>
<p>This tells Lectora's code to treat Opera like Netscape Navigator and its derivates. For the title we are developing for the WHO (ICF eLearning tool) it works flawlessly.</p>
<p>This fix is taken from <a href="http://forum.trivantis.com/f5/allow-selecting-compatible-browsers-versions-when-publishing-10015/">this</a> Lectora forum message, posted by <strong><a href="http://www.intea.lv/">ssneg</a></strong>.</p>
<p>(ssneg also explains why it is not possible to override <em>this.min</em> and set it to true &#8211; because Lectora only includes code for IE or NS to display the title contents, like buttons, later on. Thus we need for Opera to "pretend" that it is Navigator. The code works.)</p>
<p><strong>Do you know any other browsers incompatible with Lectora? Please post a comment, and we might find a solution :-)!</strong></p>
<p>&nbsp;</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/06/enable-and-fix-lectora-titles-for-the-opera-browser/' addthis:title='Enable and fix Lectora titles for the Opera browser ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2011/06/enable-and-fix-lectora-titles-for-the-opera-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Privoxy rules to unblock Concrete 5 editing</title>
		<link>http://blog.ideaday.de/max/2011/05/privoxy-rules-to-unblock-concrete-5-editing/</link>
		<comments>http://blog.ideaday.de/max/2011/05/privoxy-rules-to-unblock-concrete-5-editing/#comments</comments>
		<pubDate>Fri, 20 May 2011 15:55:07 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[Concrete 5]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[content block]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[Privoxy]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2011/05/privoxy-rules-to-unblock-concrete-5-editing/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/05/privoxy-rules-to-unblock-concrete-5-editing/' addthis:title='Privoxy rules to unblock Concrete 5 editing '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>In Concrete 5, TinyMCE is used as an editor for Content blocks. If you have Privoxy installed with the default settings, crucial parts of this editor will be blocked, and you would be unable to edit the Content block properly. (no editor appears, you see a small box with the HTML instead). You can verify [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/05/privoxy-rules-to-unblock-concrete-5-editing/' addthis:title='Privoxy rules to unblock Concrete 5 editing ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/05/privoxy-rules-to-unblock-concrete-5-editing/' addthis:title='Privoxy rules to unblock Concrete 5 editing '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p>In Concrete 5, TinyMCE is used as an editor for Content blocks. If you have Privoxy installed with the default settings, crucial parts of this editor will be blocked, and you would be unable to edit the Content block properly. (no editor appears, you see a small box with the HTML instead).</p>
<p>You can verify that it's indeed Privoxy which is doing it, by checking the Network tab of Dragonfly or Firebug in Opera or FireFox, Privoxy will add a status message to files which have been blocked.</p>
<p>To fix this problem, edit your <strong>user.action</strong> file (located in the application's toplevel directory), and add a new line under the { fragile } section:</p>
<blockquote>
<p>{ fragile }<br />
#.forbes.com<br />
<strong>/concrete/js/tiny_mce/plugins/.*<br />
/updates/concrete.*</strong>
</p>
</blockquote>
<p>This should unblock all Concrete 5 &#8211; based sites.</p>
<p><b>Update (23.10.2011): The fix now works with updated Concrete 5 sites.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/05/privoxy-rules-to-unblock-concrete-5-editing/' addthis:title='Privoxy rules to unblock Concrete 5 editing ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2011/05/privoxy-rules-to-unblock-concrete-5-editing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix for weird bug</title>
		<link>http://blog.ideaday.de/max/2011/04/fix-for-weird-bug/</link>
		<comments>http://blog.ideaday.de/max/2011/04/fix-for-weird-bug/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 20:39:01 +0000</pubDate>
		<dc:creator>Max</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[anchor]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JQuery Tools]]></category>
		<category><![CDATA[Lectora]]></category>
		<category><![CDATA[Scrollable]]></category>

		<guid isPermaLink="false">http://blog.ideaday.de/max/2011/04/fix-for-weird-bug/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/04/fix-for-weird-bug/' addthis:title='Fix for weird bug '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>Lectora inserts anchors (&#60;A name=""&#62; elements) which sometimes can break things! I have programmed exercises with a sliding animation from "page" to "page" of exercises using the Scrollable from JQuery Tools. It would work fine in an older FireFox, but broke apparently in the newest version, it newer worked in Chrome, but it works in [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/04/fix-for-weird-bug/' addthis:title='Fix for weird bug ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://blog.ideaday.de/max/2011/04/fix-for-weird-bug/' addthis:title='Fix for weird bug '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p>Lectora inserts anchors (&lt;A name=""&gt; elements) which sometimes can break things!</p>
<p>I have programmed exercises with a sliding animation from "page" to "page" of exercises using the Scrollable from <a href="http://flowplayer.org/tools/index.html">JQuery Tools</a>. It would work fine in an older FireFox, but broke apparently in the newest version, it newer worked in Chrome, but it works in IE. The exercises would jump to the last page, skipping over everything in between.</p>
<p>After one hour of debugging I found out <strong>that an additional &lt;A&gt;&lt;/A&gt; element had to be inserted in each "page" of the exercises</strong>. (I do it programmaticaly using PHP.) Now all items show up &#8230; with an additional item (depending on the browser).</p>
<p>This additional item is an anchor inserted by Lectora. There's no use putting code to take it out again to run on page load, as Lectora's code seems to run later. You have to run your code as soon, as the user triggers an action, just at the beginning of it to clean up.</p>
<blockquote>
<p> //fixing Lectora interfering with our code &#8230;<br />
 $("#exercise &gt; .items &gt; a").remove();</p>
</blockquote>
<p>A simple fix for a complex problem &#8230; Lectora does require a lot of workarounds.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://blog.ideaday.de/max/2011/04/fix-for-weird-bug/' addthis:title='Fix for weird bug ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.ideaday.de/max/2011/04/fix-for-weird-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/45 queries in 0.016 seconds using disk: basic
Object Caching 1235/1373 objects using disk: basic
Content Delivery Network via ideadayblog.ideaday.netdna-cdn.com

Served from: blog.ideaday.de @ 2012-02-06 18:19:37 -->
