<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rare Script &#187; all</title>
	<atom:link href="http://rarescript.com/category/all/feed/" rel="self" type="application/rss+xml" />
	<link>http://rarescript.com</link>
	<description>Solutions to unusual problems in Javascript, PHP and other scripts.</description>
	<lastBuildDate>Mon, 30 Mar 2009 11:59:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configuring ZKStudio in Eclipse with Tomcat6 on Ubuntu</title>
		<link>http://rarescript.com/configuring-zkstudio-in-eclipse-with-tomcat6-on-ubuntu/</link>
		<comments>http://rarescript.com/configuring-zkstudio-in-eclipse-with-tomcat6-on-ubuntu/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 11:43:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[all]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://rarescript.com/?p=53</guid>
		<description><![CDATA[This explains how to get the hello world demo zul file working in ZK Studio in Eclipse with Tomcat6 on a localhost system on Ubuntu Intrepid.

I have just had a nightmare couple of days getting this working so I thought I would document how I solved it in the end incase it helps anybody else. [...]]]></description>
			<content:encoded><![CDATA[<p>This explains how to get the hello world demo zul file working in ZK Studio in Eclipse with Tomcat6 on a localhost system on Ubuntu Intrepid.</p>
<p><span id="more-53"></span></p>
<p>I have just had a nightmare couple of days getting this working so I thought I would document how I solved it in the end incase it helps anybody else. I am sure there is a better way to solve this but at least this works.</p>
<p>First install tomcat6<br />
sudo apt-get install tomcat6</p>
<p>This will install tomcat to /usr/share/tomcat6 (known as CATALINA_HOME)<br />
and also to /var/lib/tomcat6 (known as CATALINA_BASE)</p>
<p>Eclipse doesn&#8217;t like this split location installation. The way to make it happy is to copy the link to &#8220;conf&#8221; from /var/lib/tomcat6 to /usr/share/tomcat6 (e.g. in Nautilus navigate to /var/lib/tomcat6 right click on the conf folder and select &#8220;copy&#8221;. Then go to /usr/share/tomcat6 , right click and select &#8220;paste&#8221;)</p>
<p>It will also later be looking for a file catalina.policy in the conf folder but on my system the file is called 03catalina.policy and is in conf/policy.d So I copied this file to where it is expected and renamed it.</p>
<p>Eclipse workspace can easily get corrupted. If anything stops working, assume it is corrupt. DONT try and fix anything with this suspect workspace. Just quit Eclipse and restart it specifying a new workspace location.</p>
<p>Once you have a clean workspace do the following:</p>
<p>1: Set up tomcat</p>
<p>In the window at the bottom with the tabs (Problems, Tasks, Properties, Servers etc)<br />
Select Servers<br />
Right click on the background and choose New-&gt;Server<br />
Choose tomcat 6 server and click next (if it wont let you do this you have a corrupt workspace. See above for solution)<br />
browse to /usr/share/tomcat6 for tomcat location (if it complains make sure you have copied conf and catalina.policy as explained above)</p>
<p>2: Set up ZK packages<br />
(I&#8217;m assuming you have done the bit that adds ZK)<br />
Go to Window, Preferences, ZK, ZK Packages<br />
Add directory /home/mike/zkbinwhatever<br />
put a check in the box and click a few oks</p>
<p>3:Create a project<br />
File, New dynamic web project<br />
choose any name<br />
under configuration click modify<br />
add check to &#8220;ZK Support&#8221;<br />
click a few oks and finish</p>
<p>4: create a zul<br />
right click the project name and select &#8220;new zul&#8221;<br />
change the container to /whatevername/WebContent<br />
click finish</p>
<p>5: Run it<br />
Choose Run, run<br />
select an existing server (the tomcat 6 one)<br />
your project should be in the right hand column as an existing project<br />
The server should start and status = synchronised<br />
Up should pop the Hello World demo!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://rarescript.com/configuring-zkstudio-in-eclipse-with-tomcat6-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open source question for schools</title>
		<link>http://news.bbc.co.uk/go/rss/news/int/search/news%2Bsport/php/-/2/hi/technology/7847377.stm</link>
		<comments>http://news.bbc.co.uk/go/rss/news/int/search/news%2Bsport/php/-/2/hi/technology/7847377.stm#comments</comments>
		<pubDate>Mon, 26 Jan 2009 10:55:40 +0000</pubDate>
		<dc:creator>BBC News and Sport Search: php</dc:creator>
				<category><![CDATA[all]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://news.bbc.co.uk/2/hi/technology/7847377.stm</guid>
		<description><![CDATA[Andrew Miller asks whether open source software can help schools use their budgets more efficiently]]></description>
			<content:encoded><![CDATA[Andrew Miller asks whether open source software can help schools use their budgets more efficiently]]></content:encoded>
			<wfw:commentRss>http://news.bbc.co.uk/go/rss/news/int/search/news%2Bsport/php/-/2/hi/technology/7847377.stm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make something from nothing</title>
		<link>http://news.bbc.co.uk/go/rss/news/int/search/news%2Bsport/php/-/2/hi/technology/7358792.stm</link>
		<comments>http://news.bbc.co.uk/go/rss/news/int/search/news%2Bsport/php/-/2/hi/technology/7358792.stm#comments</comments>
		<pubDate>Mon, 21 Apr 2008 12:43:27 +0000</pubDate>
		<dc:creator>BBC News and Sport Search: php</dc:creator>
				<category><![CDATA[all]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://news.bbc.co.uk/2/hi/technology/7358792.stm</guid>
		<description><![CDATA[Bill Thompson ponders the implications of a lax bit of programming in Adobe Flash.]]></description>
			<content:encoded><![CDATA[Bill Thompson ponders the implications of a lax bit of programming in Adobe Flash.]]></content:encoded>
			<wfw:commentRss>http://news.bbc.co.uk/go/rss/news/int/search/news%2Bsport/php/-/2/hi/technology/7358792.stm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>javascript command interpreter</title>
		<link>http://rarescript.com/javascript-command-interpreter/</link>
		<comments>http://rarescript.com/javascript-command-interpreter/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 14:04:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[all]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://rarescript.com/javascript-command-interpreter/</guid>
		<description><![CDATA[If you looking for a way of using javascript independent of a browser then this article could be what you are looking for.
If you are looking for a javascript command line interpreter you should really consider using Firebug.

http://www.getfirebug.com/
Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You [...]]]></description>
			<content:encoded><![CDATA[<p>If you looking for a way of using javascript independent of a browser then <a href="http://www.thefrontside.net/blog/learning_javascript_from_the_command_line">this article</a> could be what you are looking for.</p>
<p>If you are looking for a javascript command line interpreter you should really consider using Firebug.</p>
<p><span id="more-9"></span></p>
<p><a href="http://www.getfirebug.com/" title="Firebug">http://www.getfirebug.com/</a></p>
<p>Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.</p>
<p>Firebug includes a powerful JavaScript debugger that lets you pause execution at any time and have look at the state of the world. If your code is a little sluggish, use the JavaScript profiler to measure performance and find bottlenecks fast.</p>
<p>Having a fancy JavaScript debugger is great, but sometimes the fastest way to find bugs is just to dump as much information to the console as you can. Firebug gives you a set of powerful logging functions that help you get answers fast.</p>
]]></content:encoded>
			<wfw:commentRss>http://rarescript.com/javascript-command-interpreter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>javascript change radio button properties</title>
		<link>http://rarescript.com/javascript-change-radio-button-properties/</link>
		<comments>http://rarescript.com/javascript-change-radio-button-properties/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 13:38:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[all]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://rarescript.com/javascript-change-radio-button-properties/</guid>
		<description><![CDATA[How do you change a radio control in a form using javascript?
Read this article to find out

Lets assume we have a simple Form with a 2 state radio button

&#60;form name=&#34;example&#34;&#62;
One:
&#60;input name=&#34;test&#34; type=&#34;radio&#34; /&#62;
Two:
&#60;input name=&#34;test&#34; type=&#34;radio&#34; /&#62;
&#60;/form&#62;

We can set the first to be checked like this&#8230;

&#60;script type=&#34;text/javascript&#34;&#62;
&#60;!--
document.example.test&#91;0&#93;.checked = true;
//--&#62;
&#60;/script&#62;

and the second to be checked like this&#8230;

&#60;script [...]]]></description>
			<content:encoded><![CDATA[<p>How do you change a radio control in a form using javascript?</p>
<p>Read this article to find out</p>
<p><span id="more-8"></span></p>
<p>Lets assume we have a simple Form with a 2 state radio button</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;form name=&quot;example&quot;&gt;
One:
&lt;input name=&quot;test&quot; type=&quot;radio&quot; /&gt;
Two:
&lt;input name=&quot;test&quot; type=&quot;radio&quot; /&gt;
&lt;/form&gt;</pre></div></div>

<p>We can set the first to be checked like this&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;!--</span>
document.<span style="color: #660066;">example</span>.<span style="color: #660066;">test</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">checked</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">//--&gt;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>and the second to be checked like this&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;!--</span>
document.<span style="color: #660066;">example</span>.<span style="color: #660066;">test</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">checked</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">//--&gt;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Some other sites that might help you :</p>
<p><a href="http://www.webmasterworld.com/forum91/889.htm">http://www.webmasterworld.com/forum91/889.htm</a><br />
<a href="http://www.javascriptkit.com/javatutors/radiocheck.shtml">http://www.javascriptkit.com/javatutors/radiocheck.shtml</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rarescript.com/javascript-change-radio-button-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>javascript radio button tree</title>
		<link>http://rarescript.com/javascript-radio-button-tree/</link>
		<comments>http://rarescript.com/javascript-radio-button-tree/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 12:27:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[all]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://rarescript.com/javascript-radio-button-tree/</guid>
		<description><![CDATA[Here is a really good example of a radio button tree
http://www.blueshoes.org/en/javascript/tree/
]]></description>
			<content:encoded><![CDATA[<p>Here is a really good example of a radio button tree</p>
<p><a title="www.blueshoes.org" href="http://www.blueshoes.org/en/javascript/tree/">http://www.blueshoes.org/en/javascript/tree/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rarescript.com/javascript-radio-button-tree/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>passing values in the url in php</title>
		<link>http://rarescript.com/passing-values-in-the-url-in-php/</link>
		<comments>http://rarescript.com/passing-values-in-the-url-in-php/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 22:37:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[all]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://rarescript.com/passing-values-in-the-url-in-php/</guid>
		<description><![CDATA[We will soon have our own solution but for now here is a good site
www.plus2net.com/php_tutorial/variables.2php
It doesn&#8217;t however talk about security problems with this method. You really need to be careful as hackers can easily edit your url and pass their own code into your pages.
]]></description>
			<content:encoded><![CDATA[<p>We will soon have our own solution but for now here is a good site</p>
<p><a href="http://www.plus2net.com/php_tutorial/variables2.php">www.plus2net.com/php_tutorial/variables.2php</a></p>
<p>It doesn&#8217;t however talk about security problems with this method. You really need to be careful as hackers can easily edit your url and pass their own code into your pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://rarescript.com/passing-values-in-the-url-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>b2rdf php</title>
		<link>http://rarescript.com/b2rdf-php/</link>
		<comments>http://rarescript.com/b2rdf-php/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 19:26:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[all]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://rarescript.com/b2rdf-php/</guid>
		<description><![CDATA[What on earth is b2rdf.php?
It&#8217;s a file used in blogging applications to create an RSS feed.
]]></description>
			<content:encoded><![CDATA[<p>What on earth is b2rdf.php?</p>
<p>It&#8217;s a file used in blogging applications to create an RSS feed.</p>
]]></content:encoded>
			<wfw:commentRss>http://rarescript.com/b2rdf-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Call for &#8216;responsible&#8217; coding</title>
		<link>http://news.bbc.co.uk/go/rss/news/int/search/news%2Bsport/php/-/2/hi/technology/2895177.stm</link>
		<comments>http://news.bbc.co.uk/go/rss/news/int/search/news%2Bsport/php/-/2/hi/technology/2895177.stm#comments</comments>
		<pubDate>Sun, 30 Mar 2003 21:40:04 +0000</pubDate>
		<dc:creator>BBC News and Sport Search: php</dc:creator>
				<category><![CDATA[all]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://news.bbc.co.uk/2/hi/technology/2895177.stm</guid>
		<description><![CDATA[Coders need to think more like responsible commercial pilots than fighter pilots, argues technology analyst Bill Thompson.]]></description>
			<content:encoded><![CDATA[Coders need to think more like responsible commercial pilots than fighter pilots, argues technology analyst Bill Thompson.]]></content:encoded>
			<wfw:commentRss>http://news.bbc.co.uk/go/rss/news/int/search/news%2Bsport/php/-/2/hi/technology/2895177.stm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
