<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for wide thoughts</title>
	<atom:link href="http://kozak.si/widethoughts/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://kozak.si/widethoughts</link>
	<description>a blog of one of those ... software developer creatures</description>
	<lastBuildDate>Tue, 08 Jun 2010 19:02:36 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on wideimage problems? by Gašper</title>
		<link>http://kozak.si/widethoughts/2009/09/19/wideimage-problems/comment-page-1/#comment-1101</link>
		<dc:creator>Gašper</dc:creator>
		<pubDate>Tue, 08 Jun 2010 19:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=526#comment-1101</guid>
		<description>Thanks for reporting this, I will fix it in the next release. Although, please use the &lt;a href=&quot;http://wideimage.sourceforge.net/support/&quot; rel=&quot;nofollow&quot;&gt;official support channels&lt;/a&gt; next time.</description>
		<content:encoded><![CDATA[<p>Thanks for reporting this, I will fix it in the next release. Although, please use the <a href="http://wideimage.sourceforge.net/support/" rel="nofollow">official support channels</a> next time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on wideimage problems? by Alvin</title>
		<link>http://kozak.si/widethoughts/2009/09/19/wideimage-problems/comment-page-1/#comment-1100</link>
		<dc:creator>Alvin</dc:creator>
		<pubDate>Tue, 08 Jun 2010 18:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=526#comment-1100</guid>
		<description>for some reason, running wideimage php 5.3.2 using MAMP keeps giving me WideImage_Exception error, complaining the class not found in Image.php(30).

Moving the following lines to above the: require_once WideImage::path() . &#039;Image.php&#039;;
seems to fixed it. It&#039;s probably best to put the wideimage exceptions to a sepearte class file?

thanks for the great work. :)

/**
	 * Base Exception class
	 * 
	 * @package Exceptions
	 **/
	class WideImage_Exception extends RuntimeException {}
	
	/**
	 * @package Exceptions
	 */
	class WideImage_InvalidImageHandleException extends WideImage_Exception {}
	
	/**
	 * @package Exceptions
	 */
	class WideImage_InvalidImageSourceException extends WideImage_Exception {}</description>
		<content:encoded><![CDATA[<p>for some reason, running wideimage php 5.3.2 using MAMP keeps giving me WideImage_Exception error, complaining the class not found in Image.php(30).</p>
<p>Moving the following lines to above the: require_once WideImage::path() . &#8216;Image.php&#8217;;<br />
seems to fixed it. It&#8217;s probably best to put the wideimage exceptions to a sepearte class file?</p>
<p>thanks for the great work. <img src='http://kozak.si/widethoughts/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>/**<br />
	 * Base Exception class<br />
	 *<br />
	 * @package Exceptions<br />
	 **/<br />
	class WideImage_Exception extends RuntimeException {}</p>
<p>	/**<br />
	 * @package Exceptions<br />
	 */<br />
	class WideImage_InvalidImageHandleException extends WideImage_Exception {}</p>
<p>	/**<br />
	 * @package Exceptions<br />
	 */<br />
	class WideImage_InvalidImageSourceException extends WideImage_Exception {}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on deleting window properties by Gašper</title>
		<link>http://kozak.si/widethoughts/2009/11/08/deleting-window-and-document-properties/comment-page-1/#comment-1099</link>
		<dc:creator>Gašper</dc:creator>
		<pubDate>Sun, 08 Nov 2009 22:41:57 +0000</pubDate>
		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=533#comment-1099</guid>
		<description>Yes, that&#039;s a good example of how it could be done, but alas, the code we&#039;re using is out in the wild, we&#039;d have to support the current model for backwards compatibility, and it would take a lot of time before everybody would change to the new model (we may be talking years here; we already changed a little thing 2 years ago, and some users still haven&#039;t switched). This is one of those things where quick decisions, based on what&#039;s used elsewhere, come back to haunt you years later. :)

As for setting default values instead of unsetting variables, it&#039;s a good idea, and will think about it. It should work in theory, but depends on how everything else in our JS works. Also, unsetting variables makes sure our ad blocks don&#039;t leave any traces behind, so other javascripts are unable to read these values, so it acts as a security measure as well. But as I said, I&#039;ll think this through the next time I touch this. Thanks for the idea. :)</description>
		<content:encoded><![CDATA[<p>Yes, that&#8217;s a good example of how it could be done, but alas, the code we&#8217;re using is out in the wild, we&#8217;d have to support the current model for backwards compatibility, and it would take a lot of time before everybody would change to the new model (we may be talking years here; we already changed a little thing 2 years ago, and some users still haven&#8217;t switched). This is one of those things where quick decisions, based on what&#8217;s used elsewhere, come back to haunt you years later. <img src='http://kozak.si/widethoughts/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As for setting default values instead of unsetting variables, it&#8217;s a good idea, and will think about it. It should work in theory, but depends on how everything else in our JS works. Also, unsetting variables makes sure our ad blocks don&#8217;t leave any traces behind, so other javascripts are unable to read these values, so it acts as a security measure as well. But as I said, I&#8217;ll think this through the next time I touch this. Thanks for the idea. <img src='http://kozak.si/widethoughts/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on deleting window properties by Matjaž Lipuš</title>
		<link>http://kozak.si/widethoughts/2009/11/08/deleting-window-and-document-properties/comment-page-1/#comment-1098</link>
		<dc:creator>Matjaž Lipuš</dc:creator>
		<pubDate>Sun, 08 Nov 2009 22:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=533#comment-1098</guid>
		<description>Well, I sort off agree with you, it&#039;s industry standard, because it&#039;s simple, but it is also simple solvable with objects:

httpool = {size:1};
ad(httpool);
httpool = {size:2, border: &quot;red&quot;};
ad(httpool);

These are two different object so you don&#039;t need to unset values when checking for property existence.
If I borrow jQuery&#039;s extend function your ad function would look like:
defaults = {
	size: 1,
	border: &quot;blue&quot;
};
function ad(options)
{
	options = jQuery.extend({}, defaults, options);
	options.size...
	options.border...
}


P.S.
Just crossed my mind, instead of unsetting values just set default ones :)</description>
		<content:encoded><![CDATA[<p>Well, I sort off agree with you, it&#8217;s industry standard, because it&#8217;s simple, but it is also simple solvable with objects:</p>
<p>httpool = {size:1};<br />
ad(httpool);<br />
httpool = {size:2, border: &#8220;red&#8221;};<br />
ad(httpool);</p>
<p>These are two different object so you don&#8217;t need to unset values when checking for property existence.<br />
If I borrow jQuery&#8217;s extend function your ad function would look like:<br />
defaults = {<br />
	size: 1,<br />
	border: &#8220;blue&#8221;<br />
};<br />
function ad(options)<br />
{<br />
	options = jQuery.extend({}, defaults, options);<br />
	options.size&#8230;<br />
	options.border&#8230;<br />
}</p>
<p>P.S.<br />
Just crossed my mind, instead of unsetting values just set default ones <img src='http://kozak.si/widethoughts/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on deleting window properties by Gašper</title>
		<link>http://kozak.si/widethoughts/2009/11/08/deleting-window-and-document-properties/comment-page-1/#comment-1097</link>
		<dc:creator>Gašper</dc:creator>
		<pubDate>Sun, 08 Nov 2009 21:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=533#comment-1097</guid>
		<description>window.p isn&#039;t the horrible kind of a global variable. Yes, it&#039;s available globally, but it&#039;s set directly onto an object (window) and therefore has its place (namespace if you will). This differs significantly from setting just p = 34; anywhere, because in that case the visibility is determined by the scope.

I found this out when I was developing our advertising javascript code (the so-called invocation code). There, the user sets some variables, such as:
httpool_publisher_id = &#039;1234567890&#039;;
httpool_color_border = &#039;#f0f0f0&#039;;
etc.
And then includes our ad-serving javascript, which serves a single ad block with the predefined configuration.

But not all of these variables are required. When a variable isn&#039;t set, the default value should be used. But in order to detect which isn&#039;t set, I have to unset all of them after initializing the ad block, otherwise the values might leak into the next block -- by not being set in the invocation code of the next block.

It&#039;s a very specific case and I can&#039;t really resort to namespaces, because it&#039;s user-land code and an industry standard. :)</description>
		<content:encoded><![CDATA[<p>window.p isn&#8217;t the horrible kind of a global variable. Yes, it&#8217;s available globally, but it&#8217;s set directly onto an object (window) and therefore has its place (namespace if you will). This differs significantly from setting just p = 34; anywhere, because in that case the visibility is determined by the scope.</p>
<p>I found this out when I was developing our advertising javascript code (the so-called invocation code). There, the user sets some variables, such as:<br />
httpool_publisher_id = &#8216;1234567890&#8242;;<br />
httpool_color_border = &#8216;#f0f0f0&#8242;;<br />
etc.<br />
And then includes our ad-serving javascript, which serves a single ad block with the predefined configuration.</p>
<p>But not all of these variables are required. When a variable isn&#8217;t set, the default value should be used. But in order to detect which isn&#8217;t set, I have to unset all of them after initializing the ad block, otherwise the values might leak into the next block &#8212; by not being set in the invocation code of the next block.</p>
<p>It&#8217;s a very specific case and I can&#8217;t really resort to namespaces, because it&#8217;s user-land code and an industry standard. <img src='http://kozak.si/widethoughts/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on deleting window properties by Matjaž Lipuš</title>
		<link>http://kozak.si/widethoughts/2009/11/08/deleting-window-and-document-properties/comment-page-1/#comment-1096</link>
		<dc:creator>Matjaž Lipuš</dc:creator>
		<pubDate>Sun, 08 Nov 2009 21:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=533#comment-1096</guid>
		<description>Although IE JS engine is buggy setting global variables is evil and moreover deleting them is even worse.
Try to use namespace (object).
What&#039;s your use case for this? How did you discover this? :D</description>
		<content:encoded><![CDATA[<p>Although IE JS engine is buggy setting global variables is evil and moreover deleting them is even worse.<br />
Try to use namespace (object).<br />
What&#8217;s your use case for this? How did you discover this? <img src='http://kozak.si/widethoughts/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Iterating over properties in window object by wide thoughts &#187; deleting window properties</title>
		<link>http://kozak.si/widethoughts/2009/09/06/iterating-over-properties-in-window-object/comment-page-1/#comment-1095</link>
		<dc:creator>wide thoughts &#187; deleting window properties</dc:creator>
		<pubDate>Sun, 08 Nov 2009 14:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=436#comment-1095</guid>
		<description>[...] like there&#8217;s really something special about window and document objects in IE. Just as with iterating over window properties, there seems to be some weirdness about deleting the properties in window and document DOM [...]</description>
		<content:encoded><![CDATA[<p>[...] like there&#8217;s really something special about window and document objects in IE. Just as with iterating over window properties, there seems to be some weirdness about deleting the properties in window and document DOM [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WideImage: new release by Gašper</title>
		<link>http://kozak.si/widethoughts/2009/09/04/wideimage-new-release/comment-page-1/#comment-1069</link>
		<dc:creator>Gašper</dc:creator>
		<pubDate>Sun, 06 Sep 2009 00:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=478#comment-1069</guid>
		<description>:D</description>
		<content:encoded><![CDATA[<p> <img src='http://kozak.si/widethoughts/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WideImage: new release by Roky</title>
		<link>http://kozak.si/widethoughts/2009/09/04/wideimage-new-release/comment-page-1/#comment-1068</link>
		<dc:creator>Roky</dc:creator>
		<pubDate>Sat, 05 Sep 2009 09:59:40 +0000</pubDate>
		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=478#comment-1068</guid>
		<description>Nice to see new features and you really made me laugh. I&#039;m such a geek, hahaha:) good one.</description>
		<content:encoded><![CDATA[<p>Nice to see new features and you really made me laugh. I&#8217;m such a geek, hahaha:) good one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on the steep learning curve misunderstanding by Gašper</title>
		<link>http://kozak.si/widethoughts/2009/06/15/the-steep-learning-curve-misunderstanding/comment-page-1/#comment-1037</link>
		<dc:creator>Gašper</dc:creator>
		<pubDate>Wed, 17 Jun 2009 18:25:15 +0000</pubDate>
		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=360#comment-1037</guid>
		<description>Sure, if you turn the axes around, that&#039;s what you get. But, it&#039;s far more common to put the variable (effort) on the x-axis, and the function of the variable (knowledge) on the y-axis: y = f(x). It&#039;s a sort of standard.
</description>
		<content:encoded><![CDATA[<p>Sure, if you turn the axes around, that&#8217;s what you get. But, it&#8217;s far more common to put the variable (effort) on the x-axis, and the function of the variable (knowledge) on the y-axis: y = f(x). It&#8217;s a sort of standard.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
