<?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: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>Tue, 10 Nov 2009 07:00:41 +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>
			<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>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>
		<item>
		<title>Refreshing browser window when there is a resize event</title>
		<link>http://stephensoftware.wordpress.com/2009/08/07/refreshing-browser-window-when-there-is-a-resize-event/</link>
		<comments>http://stephensoftware.wordpress.com/2009/08/07/refreshing-browser-window-when-there-is-a-resize-event/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 09:19:27 +0000</pubDate>
		<dc:creator>sljm</dc:creator>
				<category><![CDATA[extjs]]></category>
		<category><![CDATA[Ext JS]]></category>

		<guid isPermaLink="false">http://stephensoftware.wordpress.com/?p=242</guid>
		<description><![CDATA[When I am using an ExtJS ViewPort, when I resize my window manually by dragging the window handles everything goes out of size so I needed a way to detect the window resize then refreshed the window.
First we need to create a function to refresh the window. That can be done using window.location.reload function. In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=242&subd=stephensoftware&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When I am using an ExtJS ViewPort, when I resize my window manually by dragging the window handles everything goes out of size so I needed a way to detect the window resize then refreshed the window.</p>
<p>First we need to create a function to refresh the window. That can be done using window.location.reload function. In ExtJS you can look at the <a href="http://extjs.com/deploy/ext/docs/output/Ext.EventManager.html#onWindowResize" target="_blank">Ext.EventManager.onWindowResize</a> to add a listener to the onWindowResize event. Code is below.</p>
<pre class="brush: jscript;">

function resize(){
window.location.reload
}

Ext.EventManager.onWindowResize(resize);
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stephensoftware.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stephensoftware.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stephensoftware.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stephensoftware.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stephensoftware.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stephensoftware.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stephensoftware.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stephensoftware.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stephensoftware.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stephensoftware.wordpress.com/242/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=242&subd=stephensoftware&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stephensoftware.wordpress.com/2009/08/07/refreshing-browser-window-when-there-is-a-resize-event/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>WPF Modal Windows</title>
		<link>http://stephensoftware.wordpress.com/2009/08/06/wpf-modal-windows/</link>
		<comments>http://stephensoftware.wordpress.com/2009/08/06/wpf-modal-windows/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 09:40:14 +0000</pubDate>
		<dc:creator>sljm</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://stephensoftware.wordpress.com/?p=237</guid>
		<description><![CDATA[Found this post that does a good job of showing how to do Modal Windows in WPF. Better than what I can explain anyway!
Links
Modal Dialogs in WPF
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=237&subd=stephensoftware&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Found this <a href="http://doteverything.blogspot.com/2008/06/modal-dialogs-in-wpf.html" target="_blank">post</a> that does a good job of showing how to do Modal Windows in WPF. Better than what I can explain anyway!</p>
<p>Links</p>
<p><a href="http://doteverything.blogspot.com/2008/06/modal-dialogs-in-wpf.html" target="_blank">Modal Dialogs in WPF</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stephensoftware.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stephensoftware.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stephensoftware.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stephensoftware.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stephensoftware.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stephensoftware.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stephensoftware.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stephensoftware.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stephensoftware.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stephensoftware.wordpress.com/237/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=stephensoftware.wordpress.com&blog=5387668&post=237&subd=stephensoftware&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://stephensoftware.wordpress.com/2009/08/06/wpf-modal-windows/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>