<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Stephen on Software aka SOS</title>
	<atom:link href="http://stephensoftware.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://stephensoftware.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 02 Dec 2009 08:58:23 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='stephensoftware.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/725620a46de11f17bf72b4b07699ea48?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Stephen on Software aka SOS</title>
		<link>http://stephensoftware.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://stephensoftware.wordpress.com/osd.xml" title="Stephen on Software aka SOS" />
		<item>
		<title>Hibernate 3: illegal syntax near collection using ClassicQueryTranslatorFactory</title>
		<link>http://stephensoftware.wordpress.com/2009/12/02/hibernate-3-illegal-syntax-near-collection-using-classicquerytranslatorfactory/</link>
		<comments>http://stephensoftware.wordpress.com/2009/12/02/hibernate-3-illegal-syntax-near-collection-using-classicquerytranslatorfactory/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 08:58:23 +0000</pubDate>
		<dc:creator>sljm</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[weblogic]]></category>

		<guid isPermaLink="false">http://stephensoftware.wordpress.com/?p=288</guid>
		<description><![CDATA[Got this error &#8220;illegal syntax near collection&#8221;, the HQL query was something like this
"select p.alias from Person p inner join p.telephoneNos where p.telephoneNos=?".
Person has a one-to-many with telephoneNos and a one-to-many with alias. With the new ASTQueryTranslatorFactory the query works fine, with the old ClassicQueryTranslatorFactory there is an error.
After some fiddling around with the query, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=288&subd=stephensoftware&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Got this error <strong>&#8220;illegal syntax near collection&#8221;</strong>, the HQL query was something like this</p>
<pre><strong>"select p.alias from Person p inner join p.telephoneNos where p.telephoneNos=?".</strong></pre>
<p><strong>Person</strong> has a one-to-many with <strong>telephoneNos</strong> and a one-to-many with <strong>alias</strong>. With the new ASTQueryTranslatorFactory the query works fine, with the old ClassicQueryTranslatorFactory there is an error.</p>
<p>After some fiddling around with the query, the error seems to from the <strong>&#8220;select p.alias&#8221;</strong> part. It seems like it can&#8217;t parse p.alias. When i change it to just <strong>p</strong>, it works fine.</p>
<p>So for those using the old query translator do take note of this. Caught me by surprise, so it seems that there is a difference in the old and new query translator.</p>
<p>But why am I using the old translator, in Weblogic Server 10 (or 11g as Oracle now calls it), there is a class loading conflict, they loaded some jars (can&#8217;t remember which), so I used the old query translator instead.</p>
<p>You can change the query translator by using the following in your hibernate.properties.</p>
<p><strong>hibernate.query.factory_class=org.hibernate.hql.classic.ClassicQueryTranslatorFactory</strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stephensoftware.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stephensoftware.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stephensoftware.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stephensoftware.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stephensoftware.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stephensoftware.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stephensoftware.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stephensoftware.wordpress.com/288/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stephensoftware.wordpress.com/288/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stephensoftware.wordpress.com/288/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=288&subd=stephensoftware&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stephensoftware.wordpress.com/2009/12/02/hibernate-3-illegal-syntax-near-collection-using-classicquerytranslatorfactory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e96e287a3ae5f1e8ca24b299deb67d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sljm</media:title>
		</media:content>
	</item>
		<item>
		<title>Adobe AIR and Json Parsing</title>
		<link>http://stephensoftware.wordpress.com/2009/11/13/adobe-air-and-json-parsing/</link>
		<comments>http://stephensoftware.wordpress.com/2009/11/13/adobe-air-and-json-parsing/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 06:25:36 +0000</pubDate>
		<dc:creator>sljm</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://stephensoftware.wordpress.com/?p=283</guid>
		<description><![CDATA[In Adobe AIR, they restrict eval function for all application content for security reasons. So you can&#8217;t use eval() to parse a Json string to object, so you will need to go and download the JSON library here.
And just call JSON.parse(string); That should give u back a Javascript object, for you to use.
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=283&subd=stephensoftware&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In Adobe AIR, they <a href="http://labs.adobe.com/wiki/index.php/AIR:HTML_Security_FAQ#Why_restrict_eval.28.29_for_all_Application_content_if_there_are_legitimate_use_cases_for_using_it.3F">restrict eval function for all application content for security reasons</a>. So you can&#8217;t use eval() to parse a Json string to object, so you will need to go and download the JSON library <a href="http://json.org/json2.js" target="_blank">here</a>.</p>
<p>And just call JSON.parse(string); That should give u back a Javascript object, for you to use.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stephensoftware.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stephensoftware.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stephensoftware.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stephensoftware.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stephensoftware.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stephensoftware.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stephensoftware.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stephensoftware.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stephensoftware.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stephensoftware.wordpress.com/283/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=283&subd=stephensoftware&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stephensoftware.wordpress.com/2009/11/13/adobe-air-and-json-parsing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e96e287a3ae5f1e8ca24b299deb67d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sljm</media:title>
		</media:content>
	</item>
		<item>
		<title>Weblogic and Spring Security problems</title>
		<link>http://stephensoftware.wordpress.com/2009/11/10/spring-security-on-weblogic-causes-2-pop-ups/</link>
		<comments>http://stephensoftware.wordpress.com/2009/11/10/spring-security-on-weblogic-causes-2-pop-ups/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 06:58:07 +0000</pubDate>
		<dc:creator>sljm</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[weblogic]]></category>

		<guid isPermaLink="false">http://stephensoftware.wordpress.com/?p=278</guid>
		<description><![CDATA[When depolying Spring Security on Weblogic 10.3. I encountered 2 pop up one for Spring and one for Weblogic.
Spring Security was configured with basic authentication. If your used is not in Weblogic&#8217;s security realm basically you dont get access. Some people also faced the same problem and here are their solutions.
If you use the form [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=278&subd=stephensoftware&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When depolying Spring Security on Weblogic 10.3. I encountered 2 pop up one for Spring and one for Weblogic.</p>
<p>Spring Security was configured with basic authentication. If your used is not in Weblogic&#8217;s security realm basically you dont get access. Some people also faced the same problem and here are their solutions.</p>
<p>If you use the form base authentication, you should be fine. It just happens for those who use the default basic/digest forms that your web browser provides.</p>
<p>1. <a href="http://forum.springsource.org/archive/index.php/t-44535.html">Configure web.xml</a></p>
<pre class="brush: xml;">
&lt;login-config&gt;
&lt;auth-method&gt;CLIENT-CERT&lt;/auth-method&gt;
&lt;/login-config&gt;
</pre>
<p>add the above to your web.xml.</p>
<p>alternatively you can try this.</p>
<p>2. <a href="http://hovenko.no/blog/2008/10/28/howto-bypass-weblogic-security-model/">Edit weblogic config/config.xml</a><br />
Add the following lines to config.xml in your admin server.</p>
<pre class="brush: xml;">
&lt;enforce-valid-basic-auth-credentials&gt;
    false
&lt;/enforce-valid-basic-auth-credentials&gt;
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stephensoftware.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stephensoftware.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stephensoftware.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stephensoftware.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stephensoftware.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stephensoftware.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stephensoftware.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stephensoftware.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stephensoftware.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stephensoftware.wordpress.com/278/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=278&subd=stephensoftware&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stephensoftware.wordpress.com/2009/11/10/spring-security-on-weblogic-causes-2-pop-ups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e96e287a3ae5f1e8ca24b299deb67d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sljm</media:title>
		</media:content>
	</item>
		<item>
		<title>SICP Chapter 1.1 Exercises</title>
		<link>http://stephensoftware.wordpress.com/2009/10/14/sicp-chapter-1-1-exercises/</link>
		<comments>http://stephensoftware.wordpress.com/2009/10/14/sicp-chapter-1-1-exercises/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 03:20:24 +0000</pubDate>
		<dc:creator>sljm</dc:creator>
				<category><![CDATA[SICP]]></category>

		<guid isPermaLink="false">http://stephensoftware.wordpress.com/?p=274</guid>
		<description><![CDATA[Exercise 1.5
When using applicative order (1.1.3), the result is a never ending loop. Because when evaluating (test 0 (p)) the operator and the operands are evaluated that means the sub expression (p) is going to evaluate and since (p) is calling itself again, the result is a never ending loop
When using normal-order, since the operands [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=274&subd=stephensoftware&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Exercise 1.5</p>
<p>When using applicative order (1.1.3), the result is a never ending loop. Because when evaluating (test 0 (p)) the operator and the operands are evaluated that means the sub expression (p) is going to evaluate and since (p) is calling itself again, the result is a never ending loop</p>
<p>When using normal-order, since the operands are evaluate as needed, (p) is not going to be evaluated since the (if) statement will be true and so 0 is returned.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stephensoftware.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stephensoftware.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stephensoftware.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stephensoftware.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stephensoftware.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stephensoftware.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stephensoftware.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stephensoftware.wordpress.com/274/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stephensoftware.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stephensoftware.wordpress.com/274/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=274&subd=stephensoftware&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stephensoftware.wordpress.com/2009/10/14/sicp-chapter-1-1-exercises/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e96e287a3ae5f1e8ca24b299deb67d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sljm</media:title>
		</media:content>
	</item>
		<item>
		<title>Slime and Offline Lisp Hyperspec</title>
		<link>http://stephensoftware.wordpress.com/2009/09/26/slime-and-offline-lisp-hyperspec/</link>
		<comments>http://stephensoftware.wordpress.com/2009/09/26/slime-and-offline-lisp-hyperspec/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 03:16:10 +0000</pubDate>
		<dc:creator>sljm</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Lisp]]></category>
		<category><![CDATA[SLIME]]></category>

		<guid isPermaLink="false">http://stephensoftware.wordpress.com/?p=271</guid>
		<description><![CDATA[Just put the following in your .emacs files

(setq common-lisp-hyperspec-root &#34;file:/usr/local/lisp/CLHS6/HyperSpec/&#34;)

There are lots of useful information in SLIME Features that are useful for those who are just starting out with SLIME.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=271&subd=stephensoftware&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just put the following in your .emacs files</p>
<pre class="brush: bash;">
(setq common-lisp-hyperspec-root &quot;file:/usr/local/lisp/CLHS6/HyperSpec/&quot;)
</pre>
<p>There are lots of useful information in <a href="http://www.cliki.net/SLIME%20Features">SLIME Features</a> that are useful for those who are just starting out with SLIME.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stephensoftware.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stephensoftware.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stephensoftware.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stephensoftware.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stephensoftware.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stephensoftware.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stephensoftware.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stephensoftware.wordpress.com/271/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stephensoftware.wordpress.com/271/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stephensoftware.wordpress.com/271/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=271&subd=stephensoftware&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stephensoftware.wordpress.com/2009/09/26/slime-and-offline-lisp-hyperspec/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e96e287a3ae5f1e8ca24b299deb67d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sljm</media:title>
		</media:content>
	</item>
		<item>
		<title>Clojure and SLIME</title>
		<link>http://stephensoftware.wordpress.com/2009/09/08/clojure-and-slime/</link>
		<comments>http://stephensoftware.wordpress.com/2009/09/08/clojure-and-slime/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 12:45:16 +0000</pubDate>
		<dc:creator>sljm</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[clojure]]></category>
		<category><![CDATA[Lisp]]></category>

		<guid isPermaLink="false">http://stephensoftware.wordpress.com/?p=260</guid>
		<description><![CDATA[This is my setup for Clojure and SLIME on Emacs 23.1 and Windows Vista.
First download SLIME, clojure-mode and swank-clojure.
Locate your .emacs file. Look for ur %APPDATA% directory or create it if it is not there.
Unzip all the files to a directory, I used c:\lisp and rename the directories accordingly.

SLIME in c:\lisp\slime
clojure-mode in c:\lisp\clojure-mode
swank-clojure in c:\lisp\swank-clojure
clojure [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=260&subd=stephensoftware&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is my setup for Clojure and SLIME on Emacs 23.1 and Windows Vista.</p>
<p>First download <a href="http://common-lisp.net/project/slime/#downloading" target="_blank">SLIME</a>, <a href="http://github.com/jochu/clojure-mode/tree/master" target="_blank">clojure-mode</a> and <a href="http://github.com/jochu/swank-clojure/tree/master" target="_blank">swank-clojure</a>.</p>
<p>Locate your .emacs file. Look for ur %APPDATA% directory or create it if it is not there.</p>
<p>Unzip all the files to a directory, I used c:\lisp and rename the directories accordingly.</p>
<ol>
<li>SLIME in c:\lisp\slime</li>
<li>clojure-mode in c:\lisp\clojure-mode</li>
<li>swank-clojure in c:\lisp\swank-clojure</li>
<li>clojure in m:\programming stuff\clojure</li>
</ol>
<p>Just replace the directories with the ones you used.</p>
<p>The following is my .emacs file</p>
<pre class="brush: bash;">
(add-to-list 'load-path &quot;c:/lisp/clojure-mode&quot;)
(add-to-list 'load-path &quot;c:/lisp/swank-clojure&quot;)
(add-to-list 'load-path &quot;C:/lisp/slime&quot;);Your slime directory

(setq swank-clojure-jar-path &quot;m:/programming stuff/clojure/clojure-1.0.0.jar&quot;)

(require 'clojure-mode)
(require 'swank-clojure-autoload)
(require 'slime)
(eval-after-load &quot;slime&quot; (slime-setup '(slime-repl)))
(slime-setup)
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stephensoftware.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stephensoftware.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stephensoftware.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stephensoftware.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stephensoftware.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stephensoftware.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stephensoftware.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stephensoftware.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stephensoftware.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stephensoftware.wordpress.com/260/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=260&subd=stephensoftware&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stephensoftware.wordpress.com/2009/09/08/clojure-and-slime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e96e287a3ae5f1e8ca24b299deb67d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sljm</media:title>
		</media:content>
	</item>
		<item>
		<title>this.wrap is undefined error &#8211; Ext JS Checkbox</title>
		<link>http://stephensoftware.wordpress.com/2009/08/24/this-wrap-is-undefined-error-ext-js-checkbox/</link>
		<comments>http://stephensoftware.wordpress.com/2009/08/24/this-wrap-is-undefined-error-ext-js-checkbox/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 03:11:34 +0000</pubDate>
		<dc:creator>sljm</dc:creator>
				<category><![CDATA[extjs]]></category>

		<guid isPermaLink="false">http://stephensoftware.wordpress.com/?p=256</guid>
		<description><![CDATA[I am using Ext JS 2.2 and when you are setting Ext JS checkbox.setValue(something) before the checkbox is fully rendered you will get an &#8220;this.wrap is undefined&#8221; error.
The problem and fix is documented here. For a workaround with out changing any code, just make sure that you set the value of the checkbox in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=256&subd=stephensoftware&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I am using Ext JS 2.2 and when you are setting Ext JS <strong>checkbox.setValue(something)</strong> before the checkbox is fully rendered you will get an <strong>&#8220;this.wrap is undefined&#8221;</strong> error.</p>
<p>The problem and fix is documented <a href="http://extjs.com/forum/showthread.php?t=43356" target="_blank">here</a>. For a workaround with out changing any code, just make sure that you set the value of the checkbox in the Ext.onReady() portion and you should be ok.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stephensoftware.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stephensoftware.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stephensoftware.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stephensoftware.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stephensoftware.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stephensoftware.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stephensoftware.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stephensoftware.wordpress.com/256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stephensoftware.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stephensoftware.wordpress.com/256/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=256&subd=stephensoftware&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stephensoftware.wordpress.com/2009/08/24/this-wrap-is-undefined-error-ext-js-checkbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e96e287a3ae5f1e8ca24b299deb67d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sljm</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting image name from urls, using the Content-Disposition header</title>
		<link>http://stephensoftware.wordpress.com/2009/08/20/getting-image-name-from-urls-using-the-content-disposition-header/</link>
		<comments>http://stephensoftware.wordpress.com/2009/08/20/getting-image-name-from-urls-using-the-content-disposition-header/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 05:37:03 +0000</pubDate>
		<dc:creator>sljm</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://stephensoftware.wordpress.com/?p=252</guid>
		<description><![CDATA[You know when you visit some forums and when you click on a link like this http://thecelebrityspotlight.com/attachment.php?attachmentid=64134&#38;stc=1&#38;thumb=1, they open up an image file and when you right click and save some how the image name appears ? There are no clues in the url that tells you what the image name is suppose to be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=252&subd=stephensoftware&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>You know when you visit some forums and when you click on a link like this <a href="http://thecelebrityspotlight.com/attachment.php?attachmentid=64134&amp;stc=1&amp;thumb=1">http://thecelebrityspotlight.com/attachment.php?attachmentid=64134&amp;stc=1&amp;thumb=1</a>, they open up an image file and when you right click and save some how the image name appears ? There are no clues in the url that tells you what the image name is suppose to be and somehow magically the browser knows.</p>
<p>Well it appears that the browser is looking for the <a href="http://www.jtricks.com/bits/content_disposition.html" target="_blank">Content-Disposition</a> header in the Http Response. Jim Ley @ jibbering.com has a page <a href="http://www.jibbering.com/2002/4/httprequest.html" target="_blank">Using the XML HTTP Request Object</a>, that describe how to get the headers using the XmlHttpRequest object.</p>
<p>For Firefox this code snippet should work. Read his blog post for more information.</p>
<pre class="brush: jscript;">
 var xmlhttp=new XMLHttpRequest();
 xmlhttp.open(&quot;HEAD&quot;, &quot;/faq/index.html&quot;,true);
 xmlhttp.onreadystatechange=function() {
  if (xmlhttp.readyState==4) {
   alert(&quot;Content Disposition: &quot;+
    xmlhttp.getResponseHeader(&quot;Content-Disposition&quot;));
  }
 }
 xmlhttp.send(null)
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stephensoftware.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stephensoftware.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stephensoftware.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stephensoftware.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stephensoftware.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stephensoftware.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stephensoftware.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stephensoftware.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stephensoftware.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stephensoftware.wordpress.com/252/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=252&subd=stephensoftware&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stephensoftware.wordpress.com/2009/08/20/getting-image-name-from-urls-using-the-content-disposition-header/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e96e287a3ae5f1e8ca24b299deb67d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sljm</media:title>
		</media:content>
	</item>
		<item>
		<title>Implementing File/Folder select for Firefox add-ons</title>
		<link>http://stephensoftware.wordpress.com/2009/08/19/implementing-filefolder-select-for-firefox-add-ons/</link>
		<comments>http://stephensoftware.wordpress.com/2009/08/19/implementing-filefolder-select-for-firefox-add-ons/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 09:39:01 +0000</pubDate>
		<dc:creator>sljm</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://stephensoftware.wordpress.com/?p=248</guid>
		<description><![CDATA[To implement File/Folder select for firefox extensions you can look at the nsIFilePicker component.
To get the object:

var fp = Components.classes[&#34;@mozilla.org/filepicker;1&#34;]
                   .createInstance(Components.interfaces.nsIFilePicker);

The object at this point is not initialized yet, you will need to use the init method [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=248&subd=stephensoftware&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To implement File/Folder select for firefox extensions you can look at the <a href="https://developer.mozilla.org/en/nsIFilePicker" target="_blank">nsIFilePicker</a> component.</p>
<p>To get the object:</p>
<pre class="brush: jscript;">
var fp = Components.classes[&quot;@mozilla.org/filepicker;1&quot;]
                   .createInstance(Components.interfaces.nsIFilePicker);
</pre>
<p>The object at this point is not initialized yet, you will need to use the init method to initialized it.</p>
<p>The method looks like this <code><strong>void <a href="https://developer.mozilla.org/en/nsIFilePicker#init.28.29">init</a>(parent,title,mode)</strong>. </code></p>
<p>For parent you can use the <strong>window</strong> object that should be present. title is just the title of the file dialog, mode consist of any of the following valid values.</p>
<table border="0">
<tbody>
<tr>
<td>Constant</td>
<td>Value</td>
<td>Description</td>
</tr>
<tr>
<td><code>modeOpen</code></td>
<td>0</td>
<td>Load a file or directory.</td>
</tr>
<tr>
<td><code>modeSave</code></td>
<td>1</td>
<td>Save a file or directory.</td>
</tr>
<tr>
<td><code>modeGetFolder</code></td>
<td>2</td>
<td>Select a folder/directory.</td>
</tr>
<tr>
<td><code>modeOpenMultiple</code></td>
<td>3</td>
<td>Load multiple files.</td>
</tr>
</tbody>
</table>
<p>Next you will need to call the show() method and check its return value to see if what the user pressed.</p>
<p>A sample of how to use;</p>
<pre class="brush: jscript;">
const nsiFilePicker=Components.interfaces.nsIFilePicker;
fp.init(window,&quot;My File dialog&quot;,nsIFilePicker.modeGetFolder);
var result=fp.show();
if(result == nsIFilePicker.returnOK || result == nsIFilePicker.returnReplace){
//do something
}
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stephensoftware.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stephensoftware.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stephensoftware.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stephensoftware.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stephensoftware.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stephensoftware.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stephensoftware.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stephensoftware.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stephensoftware.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stephensoftware.wordpress.com/248/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=248&subd=stephensoftware&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stephensoftware.wordpress.com/2009/08/19/implementing-filefolder-select-for-firefox-add-ons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e96e287a3ae5f1e8ca24b299deb67d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sljm</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting the gBrowser object in Firefox</title>
		<link>http://stephensoftware.wordpress.com/2009/08/18/getting-the-gbrowser-object-in-firefox/</link>
		<comments>http://stephensoftware.wordpress.com/2009/08/18/getting-the-gbrowser-object-in-firefox/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 13:33:16 +0000</pubDate>
		<dc:creator>sljm</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://stephensoftware.wordpress.com/?p=246</guid>
		<description><![CDATA[Okies finally I have succumb and decided to do a Firefox add-on or extension to save open tabs that have documents/images inside, cause I am lazy to go one by one and save them.
So first step, try and get the tab browsers elements in the browser. In Firefox, there is a gBrowser object that if [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=246&subd=stephensoftware&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Okies finally I have succumb and decided to do a Firefox add-on or extension to save open tabs that have documents/images inside, cause I am lazy to go one by one and save them.</p>
<p>So first step, try and get the tab browsers elements in the browser. In Firefox, there is a gBrowser object that if you can get it will help you to get all the browser tabs and their uris.</p>
<p>For the documentation, the only way that you can use gBrowser directly is that if you are under the scope of browser.xul when you are doing overlays. So for other windows like dialogs and sidebars, you will need to use <strong>window.opener.getBrowser</strong> method to get to the gBrowser object. If you look at the documentation for the <a href="https://developer.mozilla.org/en/DOM/window" target="_blank">window</a> object, there is no mention of the getBrowser method, seems like the docs need some updating.</p>
<p>Look at the <strong>Getting access to the browser</strong> in the <a href="https://developer.mozilla.org/en/Code_snippets/Tabbed_browser" target="_blank">Tabbed Browser</a> section of the MDC, you will find the various different methods for getting a gBrowser object.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stephensoftware.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stephensoftware.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stephensoftware.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stephensoftware.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stephensoftware.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stephensoftware.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stephensoftware.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stephensoftware.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stephensoftware.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stephensoftware.wordpress.com/246/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=246&subd=stephensoftware&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stephensoftware.wordpress.com/2009/08/18/getting-the-gbrowser-object-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/33e96e287a3ae5f1e8ca24b299deb67d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sljm</media:title>
		</media:content>
	</item>
	</channel>
</rss>