This is what I do, and it works perfectly:
set the printPaperOrientation to landscape
print this card from 10,10 to 800,455 into 100,100,800,600
On the other hand, I gave up on revPrintField, and just export the data to a
file, then format the file with awk, and pipe it to kprinter for
Thanks a million everyone! I'd never have found this stuff out without some
pointers, and these are exactly what I needed.
--
View this message in context:
http://www.nabble.com/a-regular-expression-question%2C-or-at-least-a-text-manipulation-question-tp19189206p19214253.html
Sent from the
How do you do the following?
I have a series of lines which go like this
| [record separator, new record starts]
AAA consectetur adipisicing elit, sed
BBB lorem ipsum
CCC consectetur adipisicing elit, sed
CCC laboris nisi ut aliquip ex ea
DDD ut aliquip ex ea commodo
| [record separator]
AAA
Pierre,
Does RevPrintField work properly?
Do virtual desktops work properly?
Peter
--
View this message in context:
http://www.nabble.com/Linux-Version-tp19135238p19151516.html
Sent from the Revolution - User mailing list archive at Nabble.com.
http://arstechnica.com/news.ars/post/20080811-the-sky-isnt-falling-a-look-at-a-new-vista-security-bypass.html
has a more complete account. If its correct, Firefox seems to be vulnerable
also, at least to some variants, but the problem is considerably less severe
than represented in the popular
Richard Gaskin wrote:
Corruption of a stack file per se is very rare with Rev
Yes, and strictly speaking this is not what is happening. What seems to
happen, single number of times a year on a stack in daily use, is that
quitting produces an abortive save. The stack script calls for
Richard Gaskin wrote:
Your handling of that sounds good, but I'm curious: have you pinned
down what's causing these saves to be interrupted?
I think it must be something to do with the on/off switch. Maybe when they
switch off using that, if they hold it down long enough, it just
What do people usually do when launching an app using a splash stack, to check
if the main stack successfully opens?
Do you use try, or do you write a custom error handler?
I am wondering how to take care of the case of main stack corruption. I'd
like to have something that if the stack
Here is a very weird situation. The program consists of a launcher, call it
launcher, and the program proper, call it program.rev, and they are both in
the same folder.
I get a call that launcher is not starting up the program. On inspection of
the folder, one sees the following:
launcher
it is deleted, so
you only see it if something went wrong.
Assuming this is correct, this would suggest that the stack save
operation is failing part way through, for some reason.
Martin Baxter
Peter Alcibiades wrote:
Here is a very weird situation. The program consists of a launcher
Yes, very nice article indeed. The xml to array conversion mentioned at the
end is dynamite. A pity to have to wait for the release of 3.0 to try it
out! But it will have been worth waiting for when it comes.
Peter
Chipp Walters wrote:
Trevor's got a SUPER write-up on the new m-dim
I did offer. But it seems they feel able to manage without me.
--
View this message in context:
http://www.nabble.com/Multi-dimensional-arrays-explained..-tp18536174p18557640.html
Sent from the Revolution - User mailing list archive at Nabble.com.
http://beginlinux.com/index.php/desktop_training/ubuntuhardyheron_cat/112-ubuntu804/1035-ubuntu-804-desktop-options
Basic article, but might be of interest to anyone who has never tried
alternative desktops in Linux - maybe just used the Gnome that comes standard
with Ubuntu. Its written by a
Not that I know anything much about this! But logically, isn't the first
thing to do, eliminate the possibility that it is Parallels and not Windows,
by trying it on a non-virtual Windows machine?
Peter
--
View this message in context:
Malte Brill wrote:
So, how do you like Rev on Linux. I havenĀ“t done any dev work under
Linux yet, only checking if the standalones do work. Does it feel like
other apps you are running under Linux?
Yes, viewed from here it looks pretty similar to other Linux apps. Since
like
Well, there is one advantage of using fields and not variables - your users
can see those fields chuntering through and incrementing before their very
eyes. Never underestimate the value of cognitive dissonance. Its working
hard, so it must be worthwhile. The variable is not nearly so
One big gap in Rev as a general purpose environment seems to be getting data
out in a structured form. Or maybe this is just personal ignorance in how
to do it? If so, corrections would be welcome.
You have lets say a tab separated file with data in it. This seems to be
the approved way of
Two thoughts.
One, a big gap in Rev as a general purpose environment seems to be getting
data out in a structured form. Or maybe this is just personal ignorance in
how to do it? If so, corrections would be welcome.
You have lets say a tab separated file with data in it. This seems to be the
I just filed bug 6478 after verifying today exactly what goes wrong with
revPrintField in Linux. Needed to get to a system where Rev printing works
fine in all other respects. Have not experimented with Mac or Windows, but
its probably specific to Linux from the lack of other reports.
I don't know if anyone knows whether it is possible to print and
entire scrolling field in Revolution 2.9.
Yes, export it to a text file. Then go out to shell and print it. Use awk
and printf if you need to format it. If on Linux, or presumably on OSX too,
you can just pipe the result of
within minutes with Salery Web Store software.
Download at http://www.salery.biz
Op 20-apr-2008, om 22:24 heeft Peter Alcibiades het volgende geschreven:
snip
Quite a bit of very useful stuff. sqlite is great to
have in Linux.
revPrintField howeverthat still doesn't work. And I seem
I am happy too, with one smallish reservation. Participating in the beta was
fine - one ought to do that, its the only way to get it done fast enough and
well enough. If Rev wants to make gestures to active participants, that's
fine, but I certainly didn't expect it, and would participate
Is this just me? Or does anyone else find that revPrintField fails to work as
it should?
The way it works for me both in Debian and Mandriva is that the page prints at
the same scale and truncates the field, regardless of printer settings. In
Debian, because the printer is not seen by Rev, I
We should caution non-native speakers to be a bit careful with this English
technique of forming different parts of speech out of words!
Its a practice frequently poked fun at. Its commonly found in
police-speak. '-ize' is a common culprit, as in 'alphabeticize'. But also
as in 'mirandize'
Richmond, try Slitaz. It is only 25mb, should be even smaller and faster
than DSL. Can't imagine a lower spec distribution than this. Admittedly it
only comes with two fonts, but then there is the font packaging tool with
Rev. Might need it.
--
View this message in context:
I downloaded the file and tried opening it with the firefox plug in.
Which reports it is corrupted. sqlitebrowser reports its not an
sqlite 3 database. Tksqlite, which does both 2 and 3, opens it
however. So its probably v 2 and just needs converting. Tksqlite
might do that?
Peter
Mark
Ken, I think he wants to put brackets AROUND the field, in response to some
conditions. Like if they were labels and the field was between them. Could
you do it with label fields, and make them visible and invisible?
Peter
--
View this message in context:
OK, thanks, its now clear why the send to card doesn't work.
But still, surely in the two object one script example, focus should work?
That is, the only script on the card is from the very first example:
on mouseUp
ask think of a number
if it is not a number then
put empty into field
Richmond, isn't it a simply huge task to write a decent cross compiler? And
there's the problem of picking a language to do the cross compile into?
What do you pick - Python, Ruby, Lua? You notice even PythonCard didn't
ever seriously consider imports from HC. And its not obviously in Rev's
Yes, I made an sqlite database using both sqlitebrowser and also the firefox
plugin sqlite manager. Both were super easy, but the firefox plug in is a
lot faster, it did 15k records in a flash, whereas squlite browser choked. I
imported a tab delimited file to sqlite. Saved it. Then I
Jacque and Mark - thanks, select the text of does indeed work. I'd
previously
tried 'select after' which did not work.
It must definitely be a bug then, and apparently specific to the Linux
build?
Its a very specific problem. Its not that focus on field does not work. On
the
same screen I
OK, this is really simple to do. You make a new mainstack with one card
whose script is:
on mouseUp
focus on field Field
end mouseUp
Now you create a button with traversal off and a field with traversal on.
The button script is:
on mouseUp
ask pick a number
if isNumber(it) is true then
One card, one button, one field (called Field) Traversal is off on the
button, on for the field. There is only one script - for the button - which
goes:
on mouseUp
ask think of a number
if it is not a number then
put empty into field Field
focus on field Field
else
put it into
Richard Gaskin wondered about which distributions Rev apps will run on.
Almost certainly any that any customer would have. I've run them on DSL,
Mandriva One KDE, Debian and the extraordinaily minimalist SliTaz, and one or
two other live distros. No-one is running anything below 2.4 kernel
Look no further!
Distrowatch has a review of Slitaz Linux. Its a 25mb live/installable CD with
a full graphical desktop. 25mb is not a typo! It seemed so unbelievable
that I immediately downloaded and fired it up. Its real, and it works, and
its graphical, and being totally memory
Agreed that an up to date XP, running as limited user, with a decent firewall
and AV is pretty secure. But you could also duplicate the cafe function
with less
trouble by going to Virtual Box or similar and reset after each use.
Nothing is going to get out from VB into the base system if its
Its a classic example of the difference. Someone wants to know how you
order dinner in Spanish. You could hand him a dictionary, and he would
maybe eventually figure it out. Or you could hand him See it and say it
in Spanish.
We have a great dictionary. What we are missing is the book of
The answer is, there is a bug, helpfully tracked down by Rev development: If a
field color and pattern is set to anything, printing will cause an instant
crash.
So the answer is to do CLEAR on all the settings in colors and patterns for
all fields.
Hope this is helpful to someone else.
Can anyone shed any light on a weird crash?
There is a card with around 30 fields on it. You can get to it two ways,
Method A is to update the fields. In this case the script for the button
goes to the card and updates the fields from a text file.
Or, because this updating takes a while,
Its Debian Lenny, 2.9 rc 2.
The script is very long, slow and amateurish, basically a brute force
solution to something I could not get to work any other way. It goes
through and zeroes out the 30+ fields, then it puts the file into a
variable, and uses filter to get the right subset of the
And now it gets even weirder. I tried to set the systemPrintSelector to
false, doesn't seem to help.However now when I go back to the original
script, it now no longer prints properly even from the ide. It now seems to
print the second of what might be two pages, with a few lines from the
Yes, release candidate 2. Printing didn't work at all on 2.6.1, which is why
I moved to 2.9 as soon as it came available.
BILL HUMPHREY wrote:
set the printPaperOrientation to landscape
You must be using the beta release?
___
Yes, this must be what is happening, but its hard to see why. What I
am doing is quitting the ide, then restarting. Then opening the source
for both stacks and setting the main and substacks to empty. I first
have to disable the script in the flash stack that does the startup of main.
Then
Yes, this is what was happening. Must be getting feeble minded. Though I
seem to recall
doing the same thing in 2.6.1 and it working fine. That is, on saving as
standalone,
the splash and the main showed in the stack file, the splash only as the
program file,
and the box for separate files
You make a standalone with a splash stack that just fires up the main one, so
as to be able to save changes to the main one.
There are two stacks in the folder, splash, the executable, and let say
main.rev.
Why is it that when you make and save changes in main.rev from the ide, they
do not
Like the other poster, I would be interested in a packaged version of some
sort. Doesn't have to be a DVD though maybe that would be easiest, with
downloadable files maybe? Or perhaps just the presentation materials?
There are probably quite a few people who are conscious of being able to get
Does anyone know why this would not work?
on mouseUp
set the printPaperOrientation to landscape
set the printerOutput to file:/home/peter/Desktop/printfile.ps
print card reports
--put shell(kprinter /home/peter/Desktop/printfile.ps)
end mouseUp
I commented out the actual printing part,
Mark, it says in my dictionary (2.9 beta 5) that printRotated is now
deprecated and does the same as what I have used, setting to landscape mode
which is preferable.
What is also very odd is that when I check in the message box, the mode does
indeed return landscape.
It is possible, from a
OK, the following seems to more or less work for printing cards.
First you have to set the printerOutput to some file.
Then print the relevant card using print
This results in a postscript file appearing in the default folder.
Then you do
put shell(kprinter the print file)
which brings up
Cross-platform note: On Mac OS and Windows systems, the print command uses
the current printer. On Unix systems, the printcommand creates a PostScript
file and runs the program specified in the printCommandproperty, with the
file as input.
This is from the 2.9 dp-4 dictionary.
Does anyone
What may work is set the systemPrintSelector to false!
Answer printer then brings up a print dialog with the printer in it, which is
dramatic progress.
Peter
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to
Tom Johnson writes: I'm having some major problems with printing. All I want
to do is print a single card. It's not a big, elaborate deal.
Quite so. Very familiar.
To try out the script, I created a new stack, put a button on it, pasted in
the script which was posted, clicked the button.
Still having printing problems. Still 2.6.1 Linux
revPrintField works, but puts large fonts very spread out on too many pages,
and in landscape for some reason.
This at least has a workaround - put it into a text file, reformat it in awk
and pipe it through to kprinter using shell(). Yes I
Viktoras, you are quite right. I have just tried out a few window managers.
On Xfce multiple windows work fine on my installation also. They also work
fine on fluxbox.
However they do exactly what I described earlier on both kde, which I just
tested, and gnome, that is, all the windows
Oh dear guys, I am sure it is wonderful in other ways, BUT BUT BUT!
It still does not do multiple desktops right. Or at all, really. First thing
I tried.
It has the little icon in the top left, that works fine and moves your windows
to another desktop, whichever you want, but then, as soon
Andre, you say well, it works on my EEE PC with multiple workspaces, I can
carry rev to workspace 1 to 4 with no problem...
Yes, of course. So can I.
But that is not what is meant by working with no problem. Can you put the
different windows on different workspaces, in the way Sarah
OK, all good things come to an end.
So where do I get the next one?
Peter
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
How do you do this? Its super easy in awk. You just set the item delimiters
for the input file and the item delimiters for the output file independently.
Then if you write, for instance, items 1 and 2 to the output fie, they may
have been tab separated in the input file but will now be |
Well, having only 2.9 dp-3 available at present, just one question about b4:
Does it do multiple desktops properly on Linux yet?
Or is it time to give up, accept that the HIGs were right all along, all we
ever needed was one, just a bigger one, and buy a 30 inch monitor?
Peter
Sivakatirswami, thanks for a most interesting and thought provoking post and
approach that would never have occurred to me. Perhaps the disadvantage of
it might be that exporting the data in a way that can be used by another
application might require extra work, if you feel the need to provide
Three open source sqlite editors:
sqlite manager (firefox plugin - the best)
tksqlite
sqlitebrowser
Peter
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
Len Morgan wrote
Why are you writing off using a database? I think you would find that
for the amount of data you have and the way it's organized, it's going
to be MUCH faster than anything you can do with arrays and scripts.
For example to select all the Red Sox fans born in 1960 you would
Availability of tidy.
It and its docs are installed on my copy of Debian and I don't recall having
done it. But even if not part of the base distribution, which it might not
be in stuff like PCLinux or Vector or Zenwalk or the one cd distros, its
going to be a simple download from the
It was a (not very good) joke, but it does seriously happen and its not clear
why.
Sometimes, the ide slows down dramatically for no apparent reason. Like, it
takes a half or quarter second to type a character in the script editor. Or
entering data into a field suddenly slows to a crawl.
There's a file which goes roughly:
1 anything
2 anything
3 anything
4 anything
etc
It can always be sorted by the first item. Sometimes a duplicate entry will
creep in, so the file will look
1 anything
2 anything
2 anything
3 anything
4
Thanks everyone, what's amazing is how you can solve the problem by such
completely different approaches.
My own approach was best thought of as an attempt at the new literary genre
of programming jokes and has the same relation to the others as PDQ Bach
has to music. Here is it is:
Trying Sarah's suggestion first, but cannot seem to make it work:
on mouseUp
set the itemDelimiter to tab
repeat for each line L in field tSales
get lineOffset(item 1 to 2 of L, tStock)
if it 0 then subtract 1 from item 5 of line it of field tStock
end repeat
end mouseUp
It does
There is a sales file with a varying number of lines, tab delimited.
Each line records one transaction, the sale of one product. These lines
accumulate throughout the day.
At the end of the day, I want to take (for instance) item 1 tab item 2
tab, and use this to look up the line in the
Ken, I think I know what he means. You are starting out learning Rev, and you
have a problem of some sort that goes beyond the tutorial materials and whose
solution is going to involve using a bunch of different features in the
correct way together.
Lets say its my own case: this large file
I seem to have cracked this one now, by brute force. But the solution really
shows how much this must be the wrong tool for the job - unless there is a
much better way, which there probably is, and I'd love to hear about. And
also would be interested to hear how one was supposed to find it!
Thanks so much guys for this. One sees how easy it can be when you know how.
I will hack away and try these. And actually, they are a lot more terse than
what I'm getting in awk.
Its sort of academic about 2.6.1 and linux printing now, since we are moving
to 2.9, but it is really weird. On
supercard docs leave the user reverse enginering for dollars
Yes. Yes, so true.
The problem is not with the existing docs, which are just fine for what they
do. The problem, for people learning it, is that they are like a cookbook
all about ingredients but with no recipes for dishes. Its
Maybe I don't understand the question (does happen!) but isn't the answer
something like this.
1) Once data storage gets serious, more than a few thousand records, Rev
alone is not what to do it in. If you want to do the rest of the app in Rev,
you have to add a real database. This means
Does rev offer a table object?
Yes, theoretically, you can drag and drop table fields onto a card, but the
general opinion here seems to have been to stay away from them. Even could
you do it, you're still storing 10s of thousands of records in a text file,
its just a rather inaccessible one.
I have to admit to not having been able to make Rev work as a storage and
retrieval language and am getting close to giving up after a couple of weeks
hard trying. Its mostly the documentation probably. It must be possible
since people on the list are doing it, but there seems no way to find
Doesn't it fall between two or three stools? First its operationally
challenged (ie its restricted to Windows and Mac).
Second, its free as in beer, but its not Free as in OSS. Which is fine, if
you know you can count on the developer being around and sticking with it.
But can you count
Rev seems not to find the printer. Using the IDE in 2.6.1 the attempt to
print crashes it. Using the IDE in the latest beta, it brings up a screen
where the printer is not found. Its not a system problem, since everything
else finds the printer. Is there some place where you have to tell
Eric,
If you ever feel like writing more tutorials, one on how and when to use
Custom Properties and one on how and when to use Arrays would probably
lighten the hearts and smooth the furrowed brows of many a newcomer to
Rev
Peter
___
Tried to get Beta3 from within the Beta2 program. It does indeed download, or
says it is, and then a small window appears, and it appears from the progress
bar to complete the download, but everything then freezes. Tried a couple of
times. The small window seems to be showing a snapshot of
OK, tried it on Fluxbox - exact same thing. Second blank window, and the
download never completes, or if it completes, it doesn't move to the next
stage. So this is a completely different window manager, the same display
manager however (wdm). Can't really see how it could be the display
Guys,
Have you experimented with the sqlite manager plug in for Firefox? This is
just totally amazing. It seems to come out with another dot release every
few days with more features. The latest does csv imports. So I fired it up,
did one, and importing a few thousand records is almost
I did it with sqlitebrowser, in Linux. Create table, then do import. There
is it. Simple. Mine was not very big, don't know how it would do with more
than a few thousand records. Worth a try though.
Peter
can anyone give me a hint, how I can import a big tab delimited file
into a
Sorry, sqlite browser will not import a 15k record csv file. Gave it about 10
minutes on a sempron 2G, with 1G memory, and it seemed to be frozen.
However tksqlite did import it, almost instantly.
Peter
___
use-revolution mailing list
, 2007, at 12:24 AM, Peter Alcibiades wrote:
Also, it would be really nice to be able to try Galaxy before getting
committed - as a classic Linux user, support is not real high on my
list of
priorities, if it runs that will be fine, even if there's no official
support. But I'd like to see
Downloaded it a week or so back, and there is the usual Revolution 2.5mb in
the 2.9 dp2 folder, click on it and it runs. So it definitely was there and
working not long ago.
Peter
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please
How do you try Quartam under Linux? Downloaded the exe file, but cannot seem
to unpack it with Ark. It looks like it installs under Wine, but that's
no-one's idea of fun. So if you want to try it under 2.9 beta for Linux,
what do you do?
Also, it would be really nice to be able to try
Its a very attractive proposition...Very attracive indeed. But not quite so
attractive if you're running Linux. Because in that case you don't get
Valentina, and the Galaxy editor doesn't come for Linux, and neither does
Quartam..
S... Maybe the next one. And back to sqlite for my
Very nice to see selection of database via query builder now working. Fonts
still an issue on Debian, probably as noted in the release notes. However,
the big one, which is not a bug really, though it is in the bug database, but
more a way of working, is that it still doesn't seem to support
This happens in my two installations of Debian - both on Etch and on Lenny.
It does not happen on a couple of Mandrivas, where all fonts installed are
accessible. It still happens on the 2.9 beta. Its the only application I'm
aware of that doesn't see all installed fonts on Debian.
Very
This is another classic example of what Ken expressed so clearly.
I read the entry in the dictionary several times, and even knowing the answer,
had to work hard at grasping that this what what to use when you wanted to to
check for if the user wants to save changes before exiting a card.
The
No, but I have run Rev on a 700mhz PIII under Puppy (in case some are not
familiar, its a 100Mb stripped down Linux using JWM as the desktop).
Amazing. It ran perfectly and was very fast. Mean to see how Rev runs under
the even smaller and faster DSL, which is only 50Mb.
I am also running
Ken puts it exactly, and far far better than I managed to. Sorry.
A trivial example from my early days with Rev. I had a scrolling field into
which a user pastes lines of text by hitting enter. At a certain point the
text gets too long for the window, and he/she has to scroll down. I
Its great for what it is.
But it is still a dictionary. For newer users trying to get proficient, its
still going to be like trying to improve your Bulgarian from a
Bulgarian-English dictionary. You can do it to a limited extent, but its
going about it the hard way. And as one poster said
What is missing exactly?
The dictionary is a pretty good version of a man page. Dan's book is ok at the
level of 'how to think like a computer scientist' - simple how to get
started. Very nice as far as it goes. Needs a second
edition. The pdf is ok also as a printable version of the
It is clear to anyone who has read the documentation on other programming
languages that Rev is very different in its approach. There is one printed
book: Dan Shafer's. There's an incomplete pdf which, the last time I
looked, had not been extended for over a year, though the preface promises
[without using an email client..]
I've never done this, but when it looked like I was going to need to, I
planned to use the mail command from the shell in Linux. Presumably OSX has
this also?
http://www.shelldorado.com/articles/mailattachments.html
is a fairly complete account of how to
Trevor, many thanks. I was editing the wrong thing
Classic, problem between chair and keyboard!
Peter
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
Trevor, thanks for the suggestion, but I still can't get this thing to work.
Can't even find the databaseConnect handler to modify it.
If anyone can be bothered to change the stack on rev's site, it would be very
nice.
Peter
___
use-revolution
Must be doing something wrong. But what?
I downloaded and unpacked the database tutorial. On the desktop there is now
a stack labelled databases.rev.
Open it from within the Beta, and an error message appears:
An error occurred. Could not create SQLite database file
at
Viktoras,
Sorry, must have been unclear - its Linux not Windows!
But anyway, on the offchance, I copied the lot into /home. Same thing
however. The stack is now in the top level of the Beta Rev folder, and
that's at the top level of my /home directory. So its not that.
Have you run it
401 - 500 of 610 matches
Mail list logo