<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Synapse EHR forums - Rebol</title>
		<link>http://synapse-ehr.com/forums/</link>
		<description>Forum for discussing REBOL 2, 3 from REBOL Technologies - the language used to write Synapse</description>
		<language>en</language>
		<lastBuildDate>Wed, 08 Sep 2010 10:05:02 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://synapse-ehr.com/forums/images/misc/rss.png</url>
			<title>Synapse EHR forums - Rebol</title>
			<link>http://synapse-ehr.com/forums/</link>
		</image>
		<item>
			<title>Recurring function</title>
			<link>http://synapse-ehr.com/forums/showthread.php?131-Recurring-function&amp;goto=newpost</link>
			<pubDate>Wed, 01 Sep 2010 16:35:03 GMT</pubDate>
			<description><![CDATA[:confused: I worte the following script to list all the directories. It doesn't work, why? 
 
Code: 
--------- 
elenco: copy [ ] 
funz_cerca: func [...]]></description>
			<content:encoded><![CDATA[<div>:confused: I worte the following script to list all the directories. It doesn't work, why?<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">elenco: copy [ ]<br />
funz_cerca: func [ /local a ] [<br />
&nbsp; &nbsp; &nbsp; &nbsp; a: read %.<br />
&nbsp; &nbsp; &nbsp; &nbsp; foreach file a [<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if dir? file [<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; append elenco (to-string file)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; change-dir file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; funz_cerca<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]<br />
&nbsp; &nbsp; &nbsp; &nbsp; ]<br />
funz_cerca<br />
write %listadir.txt elenco</code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://synapse-ehr.com/forums/forumdisplay.php?3-Rebol">Rebol</category>
			<dc:creator>MaxV</dc:creator>
			<guid isPermaLink="true">http://synapse-ehr.com/forums/showthread.php?131-Recurring-function</guid>
		</item>
		<item>
			<title>Ubuntu/Debian package</title>
			<link>http://synapse-ehr.com/forums/showthread.php?130-Ubuntu-Debian-package&amp;goto=newpost</link>
			<pubDate>Tue, 31 Aug 2010 11:53:47 GMT</pubDate>
			<description>Hello world, 
I made a package for Ubuntu or Debian, you can download here: 
 
http://www.maxvessi.net/pmwiki/uploads/Main/rebol.deb 
 
Let me know...</description>
			<content:encoded><![CDATA[<div>Hello world,<br />
I made a package for Ubuntu or Debian, you can download here:<br />
<br />
<a href="http://www.maxvessi.net/pmwiki/uploads/Main/rebol.deb" target="_blank">http://www.maxvessi.net/pmwiki/uploads/Main/rebol.deb</a><br />
<br />
Let me know if you have some problem using it.</div>

 ]]></content:encoded>
			<category domain="http://synapse-ehr.com/forums/forumdisplay.php?3-Rebol">Rebol</category>
			<dc:creator>MaxV</dc:creator>
			<guid isPermaLink="true">http://synapse-ehr.com/forums/showthread.php?130-Ubuntu-Debian-package</guid>
		</item>
		<item>
			<title>Linux, rebgui and draw...</title>
			<link>http://synapse-ehr.com/forums/showthread.php?129-Linux-rebgui-and-draw&amp;goto=newpost</link>
			<pubDate>Tue, 24 Aug 2010 09:18:02 GMT</pubDate>
			<description><![CDATA[Hi, 
I have a problem with draw and Linux. Usually the font used in Linux for DRAW are wrong, so text doesn't appear: 
 
Code: 
--------- 
example:...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
I have a problem with draw and Linux. Usually the font used in Linux for DRAW are wrong, so text doesn't appear:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">example: ['text &quot;Hello word!&quot;]<br />
view layout [ box 100x100 effect [draw example ]]</code><hr />
</div> It gives a blank window.<br />
I added:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">example: ['text &quot;Hello word!&quot;]<br />
if (pick system/version 4) = 4 [<br />
&nbsp; &nbsp; &nbsp; &nbsp; fnt1: make face/font [ <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name: &quot;/usr/share/fonts/truetype/freefont/FreeSans.ttf&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; size: 12<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]<br />
&nbsp; &nbsp; &nbsp; &nbsp; os: &quot;linux&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ]<br />
if os = &quot;linux&quot; [ insert example reduce ['font fnt1]&nbsp; &nbsp; &nbsp; &nbsp; ]<br />
view layout [ box 100x100 effect [draw example ]]</code><hr />
</div> This solution is good, but using rebgui it doesn't work anymore.<br />
What can I do?</div>

 ]]></content:encoded>
			<category domain="http://synapse-ehr.com/forums/forumdisplay.php?3-Rebol">Rebol</category>
			<dc:creator>MaxV</dc:creator>
			<guid isPermaLink="true">http://synapse-ehr.com/forums/showthread.php?129-Linux-rebgui-and-draw</guid>
		</item>
		<item>
			<title>Random number generation</title>
			<link>http://synapse-ehr.com/forums/showthread.php?126-Random-number-generation&amp;goto=newpost</link>
			<pubDate>Mon, 09 Aug 2010 15:42:04 GMT</pubDate>
			<description><![CDATA[Hello, 
I have a problem, I need to extract 10 different random numbers from 1 to 20. 
Ok, it seems simple, but I can't get 10 different numbers; I...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
I have a problem, I need to extract 10 different random numbers from 1 to 20.<br />
Ok, it seems simple, but I can't get 10 different numbers; I need an extraction like:<br />
1 - 3 - 4 - 7 - 8 -12 -15 - 16 - 17 - 18 <br />
<br />
but my script goes in forever loop:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">random/seed now<br />
extrac: copy [] ;extraction<br />
counter: 0<br />
until [<br />
&nbsp;  counter: counter + 1<br />
&nbsp;  verify: true<br />
&nbsp;  clear extrac<br />
&nbsp;  extrac: head extrac<br />
&nbsp;  loop 10 [ insert extrac random 20 ]<br />
&nbsp;  sort extrac<br />
&nbsp;  forall&nbsp; extrac [<br />
&nbsp; &nbsp; &nbsp; if&nbsp; (index? extrac) = 10 [break]<br />
&nbsp; &nbsp; &nbsp; if (( first extrac ) = ( second extrac))&nbsp; [ verify: false ]<br />
&nbsp; &nbsp; &nbsp; ]<br />
&nbsp; print remold [&quot;Tentative number:&quot; counter]<br />
&nbsp;  verify<br />
&nbsp;  ]<br />
print extrac</code><hr />
</div> 1-20 it's a very close range and PC has troubles to get 10 different numbers...</div>

 ]]></content:encoded>
			<category domain="http://synapse-ehr.com/forums/forumdisplay.php?3-Rebol">Rebol</category>
			<dc:creator>MaxV</dc:creator>
			<guid isPermaLink="true">http://synapse-ehr.com/forums/showthread.php?126-Random-number-generation</guid>
		</item>
	</channel>
</rss>
