r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[I'm new] Ask any question, and a helpful person will try to answer.

KeithM
28-Jan-2010
[3596]
when trying to use someone else's is another challenge in itself.
Andreas
28-Jan-2010
[3597]
CGI debugging is horrible. typically it's easiest to put a `print 
"Content-type: text/plain^/"` at the top of the script, then you'll 
most likely see the rebol error message
KeithM
28-Jan-2010
[3598]
R3 will make this easier?
Andreas
28-Jan-2010
[3599]
at the top: right below the initial REBOL [...] block
KeithM
28-Jan-2010
[3600x2]
there is a trace I saw in R3
I will try that
jack-ort
15-Feb-2010
[3602]
Hello!  Looking for some general advice.  Just completed my first 
project in REBOL as a learning experience, a simple departmental 
database using View 2.7.6 with HMK's LIST-VIEW and Dobeash's SQLite 
driver.  While I'm sure there is much I could have done better, it 
works well enough that people want to use it!  Now my boss is looking 
for another LAN-based departmental application.  Will use REBOL of 
course; probably can get by w/ SQLite again.  But my questions are 
these: (1) use View 2.7.6, the new 2.7.7, or try 3.0?  (2) stick 
w/ the standard View/VID, and LIST-VIEW, or try Dobeash's RebGUI? 
 
Many thanks in advance for any advice you can share!
Henrik
15-Feb-2010
[3603]
3.0 is not production ready at this point. Still under heavy development, 
so maybe just stick with 2.7.6. LIST-VIEW is untested under 2.7.7. 
I haven't had the time to test it (but please do, and tell me if 
it fails :-)).
Reichart
15-Feb-2010
[3604]
I'm just curious Jack, did you project REALLY need a database at 
all?

I find that "most" places where people use a database, a few pages 
of code that can insert and delete stuff from a simple text list 
would work just fine (AltME does this for example, there is no database 
behind this).
jack-ort
15-Feb-2010
[3605]
Thanks Henrik!  LIST-VIEW was a BIG help in presenting data...I did 
have a few problems w/ displaying large text entries (> 200 characters?), 
which was likely due to me not knowing what I was doing!  Part of 
my concern in what choices to make was trying to prepare for the 
future of REBOL; if LIST-VIEW will not be an option under 3.0, but 
something like tables in RebGUI would be, then I want what I learn 
to carry forward for me.

So maybe I'll stick w/ what I've used, but upgrade to 2.7.7.  This 
will be a back-burner project, but I will certainly provide feedback 
on LIST-VIEW under 2.7.7 as I move forward.
Again, thanks for the great tool and for the ongoing support!
Henrik
15-Feb-2010
[3606x2]
jack-ort, LIST-VIEW will be replaced with something smarter and more 
modular in 3.0. I don't want to lose its functionality when moving 
to 3.0 for production projects.
Main issue with LIST-VIEW is that it's too big and monolithic to 
debug properly for me. And thanks for using it. :-)
jack-ort
15-Feb-2010
[3608]
Hi Reichart - well, I thought I needed a db.  Plan is that once enough 
data is gathered, managers will want to run queries against the data. 
 My thought had been to give them a MS Access link to the SQLite 
db, and they can either use canned Access reports, or if they know 
what they are doing, allow for ad-hoc SQL queries.  Now, if there 
was a good reporting tool for working against the simple data storage, 
I'd consider switching.  I like simple!  :-)
Gregg
15-Feb-2010
[3609]
It sounds like you're on the right track Jack. I still use VID, but 
some people prefer RebGUI. My main reason for not switching is inertia, 
and not having enough need to port things. Ashley's work is always 
great and well supported.


Whether you need a DB depends on your needs. The ability to use existing 
queries or reports is valuable. If you really need ad hoc query capability, 
a DB can make sense, but then you need someone who knows SQL.
amacleod
15-Feb-2010
[3610]
RebGUI makes it easy to have a profesional looking App but I often 
hit a wall with it when it does not offer some needed functionality 
(like list-view). I often end up using VID again because I can "hack" 
it to what i need.
joannak
17-Apr-2010
[3611]
Hello again.. Been away for some months, still noob :-)
Graham
17-Apr-2010
[3612]
You're only as young as you feel!
Gregg
19-Apr-2010
[3613]
Welcome back. :-)
jonty
16-Jun-2010
[3614x3]
test
oh finally my message went through
Hi there anyway
Maxim
16-Jun-2010
[3617]
howdy  :-)
jonty
16-Jun-2010
[3618x2]
Thx!
Glad someone is monitoring this ... how the heck do you know there 
is a new message in this thread, aaah, group as we should call it?
Maxim
16-Jun-2010
[3620]
the group name turns red, and new messages in a group have the username 
highlighted
jonty
16-Jun-2010
[3621x4]
OK, thanks
Asking a very basic rebol q.
working through the manual trying out stuff.
sometimes very simple things stump me ...
Maxim
16-Jun-2010
[3625]
there are also options (in the little wrench icon in the upper left) 
to play a sound when posts occur and the interface isn't on top
jonty
16-Jun-2010
[3626x2]
the foreach example ...
foreach colour colours [ print colour ]


... it only prints the return of the foreach, which is the last element 
in the block.
why don't I see the 'print colour' appearing in the console?
Maxim
16-Jun-2010
[3628]
it should list every color in your colours block...
jonty
16-Jun-2010
[3629x3]
except it doesn't ... like I said, I only get the last colour printed.
Here is the output:
>> colours: [red blue black green violet]
== [red blue black green violet]
>> foreach colour colours [print colour]
== violet
Thx for tip about setting the sound for new posts etc, BTW.
Maxim
16-Jun-2010
[3632x5]
hum strange... what rebol version are you using?
here is my output from above...
>> colours: [red blue black green violet]
== [red blue black green violet]
>> foreach colour colours [print colour]
red
blue
black
green
violet
start a new rebol console... maybe you stomped on a keyword in your 
tests.  your output is not expected.
remember that rebol has little if any statements, so this means you 
can overwrite just about every control structure in the language. 

maybe you inadvertently overwrote the print function.
(or maybe that was part of an earlier exercise  ;-)
jonty
16-Jun-2010
[3637x5]
oh, ok!
Aha!
You were right.
New rebol session and all is good.
So that's a real catch to look out for!
Pity I've lost all my other set-up now. ... suppose I should start 
writing it in an actual script!
Maxim
16-Jun-2010
[3642x3]
one thing about REBOL is that many things look deceptively simple 
on the surface, but there are many little details which make it a 
pretty deep language.
yeah, I rarely test stuff which doesn't fit on a single line directly 
in the console.
one thing you can do is use the clipboard directly. if you type :

do read clipboard://


it will execute whatever REBOL source code you have in your clipboard 
 :-)
jonty
16-Jun-2010
[3645]
OK, now I can start working on my real little problem I was trying 
to do in rebol.

In regards to that, is there a way to format days without resorting 
to 'pick'ing from blocks of day names etc?