Re: OT: getting page hit-counts for on-rev account

2010-11-18 Thread Alex Tweedly
In cpanel In the Logs panel, click on webalizer for the appropriate domain, click on View then click on the relevant month then click on URLs and then you should see it Hopefully there are other, perhaps better ways. -- Alex. On 18/11/2010 23:55, Nicolas Cueto wrote: Hello List, I

Re: Functions in the on-rev - LC server script

2010-11-16 Thread Alex Tweedly
Yes, but there is no need to transform handlers (commands) into functions. You can have handlers in .irev too, so long as they are defined before they are used. -- Alex. On 16/11/2010 17:17, paolo mazza wrote: Thank you Devin, that's interesting. So, if I move all the functions and all the

Re: LiveCode Personal Banner

2010-11-15 Thread Alex Tweedly
On 15/11/2010 20:37, Andre Garzia wrote: (2) There is no way to distinguish your standalone running on your own machine from your standalone running somewhere else. Any way to detect that it is running on the same machine as the one used to develop the given standalone will not be tamper proof.

Re: Indenting Challenge

2010-11-09 Thread Alex Tweedly
I haven't thought this through, but . there are only 3 (or maybe 4) different indent cases. create a suitable image for each case (i.e. normal, bulletted, 2nd level, continuation, etc.) which is blank space of the appropriate number of pixels wide then insert an extra character at the

Re: delete chunk.

2010-11-03 Thread Alex Tweedly
On 03/11/2010 04:41, J. Landman Gay wrote: Right. You can't have an empty last item, and if you try, the last delimiter is removed. There's a comment about it in the dictionary under item. You can have an empty last item - see the end of the email. But even without that special case, you

Re: delete chunk.

2010-11-03 Thread Alex Tweedly
On 03/11/2010 13:43, dunb...@aol.com wrote: This seems perfectly intuitive to me. When you delete an item, you are doing something entirely different than just manipulating the contents of an item. In one case you reduce the number of items. In the other you merely insert, or remove, data from

Re: delete chunk.

2010-11-03 Thread Alex Tweedly
I agree it would be great to be able to say set the payAttentionToTrailingDelimiters to true But in the meantime you can use the fact that doubling a trailing delimiter will be ignored. repeat for each line L in tData if the last item of (L the itemDel) is empty then -- deal with

delete chunk.

2010-11-02 Thread Alex Tweedly
Hmmm ... what should I get from put a,b,c into temp delete item -1 of temp I think temp should now have a,b, - i.e. the last item has disappeared, but the (now) trailing item delimiter should still be there. However, I actually get that temp has a,b - the last comma has also disappeared.

Re: Auto-updating apps, and splash screens.

2010-10-29 Thread Alex Tweedly
On 29/10/2010 05:40, stephen barncard wrote: Search for Magic Carpet at Chipp's site. I tried Magic Carpet when it was first announced, and it was a good backup/archive/version-control system, but I don't remember anything about auto-update, and there's nothing about auto-update in the web

Re: Rev as Linux Shell Script

2010-10-28 Thread Alex Tweedly
Just a guess . libURL uses private handlers, and RevServer scripts can't have private functions in them. (The Docs say 'private' applies to desktop and server, but my simple test suggests otherwise ?rev private function a p return p+p end a put a(4) ? fails, remove the 'private' and it

Auto-updating apps, and splash screens.

2010-10-28 Thread Alex Tweedly
I have a little app that will be used on a number of computers, so I want it to check for a new version being available, and update itself if needed (and desired). I know the easy way to do this is to have the executable be basically a 'splash screen' that starts the *real* stack, and

Re: liburlftpcommand problem

2010-10-26 Thread Alex Tweedly
No clear idea, but a debugging suggestion. If it were me, I'd change your (failing) script to put the selectedtext of fld fListe into tText put dele /htdocs/visit05/files/ tText into tCmd *put tCmdCR after msg* get liburlftpcommand(tCmd, tFtpServer, tFtpUser, tFtpPass) just to be

Re: [OT] Mac App Store

2010-10-25 Thread Alex Tweedly
Hi Sarah - very interesting perspective on the App Store. I was particularly struck by one point. On 25/10/2010 01:36, Sarah Reichelt wrote: The other iOS phenomenon I would expect to see on the Mac, is greater numbers of small, cheap, single-use apps. LiveCode is ideally suited to this

Re: Getting Email

2010-10-24 Thread Alex Tweedly
Sarah has a library for reading from a POP server, which I've used a few times - see http://www.troz.net/rev/index.irev?category=Library#stacks Shao Sean also has a POP library, which I haven't used but I would expect it to be excellent. AFAIK, neither has decoding capabilities for

Re: Getting Email

2010-10-24 Thread Alex Tweedly
Yes, both Sarah and Shao Sean have SMYP libraries (I haven't used either). It's not hard to pick out the attachments - but it would be nice to do it in a general way for a library, that would return a list of attachments, their types, allow simple filing of them, etc. -- Alex. On

Re: determining if user has shell access

2010-10-14 Thread Alex Tweedly
Write a tiny script that does something trivial in shell (e.g. shell ls), and build that as a tiny executable. Have your real script run that as a separate process and see if it never returns. (Hmmm ... can you always start another executable ?) -- Alex. On 14/10/2010 09:41, Monte Goulding

Re: List Words from Textarea

2010-10-13 Thread Alex Tweedly
Welcome Raz. Pierre's script gives you one good answer. When I read your email, I assumed you wanted to list each word - but avoid duplicates. To do that, you would change the script slightly, to on mouseup set the wholeMatches to true repeat for each word w in fld myfield

Re: [ANN] slotmachine iPhone was scrolling wheel

2010-10-10 Thread Alex Tweedly
On 10/10/2010 19:16, J. Landman Gay wrote: I think the best repository would be the one provided by RunRev -- RevOnline. Everyone has access to that and sharing stacks and code is its main intention. That may be its main intention- but it does a pitifully poor job of it. It currently has

RevOnline (Was: Re: [ANN] slotmachine iPhone was scrolling wheel]

2010-10-10 Thread Alex Tweedly
On 10/10/2010 23:14, J. Landman Gay wrote: On 10/10/10 4:47 PM, Alex Tweedly wrote: On 10/10/2010 19:16, J. Landman Gay wrote: I think the best repository would be the one provided by RunRev -- RevOnline. Everyone has access to that and sharing stacks and code is its main intention

Re: Socket read problems

2010-10-08 Thread Alex Tweedly
No good suggestion - but you might try multiple reads, each of one byte to see how many you get. -- Alex. On 08/10/2010 12:29, Len Morgan wrote: Dar, I wish it was that simple but the length of the message is only in one byte so it's pretty hard to swap. For test purposes, I have

Apache Log File analyzer

2010-10-07 Thread Alex Tweedly
Before I re-invent the wheel . does anyone have a LiveCode script to analyze Apache log files ? Thanks, -- Alex. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: uuencode/uudecode

2010-09-30 Thread Alex Tweedly
Sorry about the delay - I started this interesting exercise, but got distracted . Here's a simple script that handles uuencoding a file. It's been moderately, but not thoroughly, tested. on mouseUp answer file Select a file if it is empty then exit mouseUp put URL (binfile:

Re: What is the name of that function...

2010-09-18 Thread Alex Tweedly
wrap but why do you want to avoid 'mod' ? -- Alex. On 18/09/2010 22:42, Tereza Snyder wrote: …that lets you cycle among a sequence of numbers without using mod? I've read through the functionnames three times but nothing seems to be it. Someone asked on the list not too long ago, and I

Re: OT: Waiting for DNS to update a new site.

2010-09-15 Thread Alex Tweedly
Thanks to everyone who replied - it was very helpful. Stephen, I have had the same experience - propagation is very rapid (I also use both Dreamhost and on-rev :-) But in this case, the one person who actually matters is still not able to see her own website. I'm starting to think it's her

OT: Waiting for DNS to update a new site.

2010-09-14 Thread Alex Tweedly
Off-topic - but I could do with a favour. I'm helping a friend develop a new web site, and although I created it a couple of days ago, it (apparently) isn't yet visible to her. I can't tell whether it's simply a DNS delay - just longer than I'm used to, or some other problem. So could a

Re: [feature] did you guys knew that ? is a valid character for function/command name?

2010-09-07 Thread Alex Tweedly
Not quite. We specify pass-by-ref by using '@' in the handler specification; you can't use it in the calling script as Ben did in his example in the email. Ben wants to be able to use the '@' (presumably as an option, with no actual effect) in the calling script, to help remind him that the

Re: Functions for On-Rev

2010-08-10 Thread Alex Tweedly
I saw your later post, but thought I'd mention it should be function titlecase pString rather than function titlecase, pString (i.e. no comma between name and parameter list) -- Alex. On 10/08/2010 17:33, Gregory Lypny wrote: Hello everyone, Is it possible to call a file of

Re: EXIF parser

2010-07-31 Thread Alex Tweedly
Yes, I did one a few years ago. Wasn't complete but did successfully parse most EXIF tags. It was also relatively slow, and in the end I stopped developing it in favour of using an external exif decoder and parsing its output (I think it might even have been ExifTools, same as Mark S.

Re: Sarah's scheduleMessage script.

2010-07-21 Thread Alex Tweedly
I think the problems is that following put pHours into item 4 of nextTime put pMins into item 5 of nextTime put 0 into item 6 of nextTime convert nextTime to seconds send pMessage to this stack in nextTime seconds you have nextTime as the value the seconds WILL have when

Re: Checking the location of a moving object

2010-07-19 Thread Alex Tweedly
No, it's not completely blocking. The problem is that the very first call to checkit is BEFORE the move starts, so the movingcontrols is empty, so the send doesn't happen. Should work (i.e. it does in my simple stack :-) if you change it to (the equivalent of) on mouseUp move button B to

Re: Scripting what should be a simple loop...

2010-07-09 Thread Alex Tweedly
You do indeed need a 'do' statement - but the first half of the statement (dealing with the field) doesn't need it, only the second half. So I would find it more readable to do put (fld field i) into temp do put temp into quote tVar quote i OK, it's marginally inefficient, but who

Re: Scripting what should be a simple loop...

2010-07-09 Thread Alex Tweedly
On 10/07/2010 00:43, Alex Tweedly wrote: put (fld field i) into temp do put temp into quote tVar quote i Sorry - it doesn't need to be that complicated. you can just do put (fld field i) into temp do put temp into tVar i (And just in case there are more silly typos

Re: Having strange problem with the 'clone' command

2010-07-07 Thread Alex Tweedly
On 07/07/2010 15:49, J. Landman Gay wrote: Björnke von Gierke wrote: You're running into the settings of the Rev IDE, these things will not apply in a standalone. Relevant bug: http://quality.runrev.com/qacenter/show_bug.cgi?id=3290 Interesting, I'm glad you knew about it. If the IDE is

Having strange problem with the 'clone' command

2010-07-06 Thread Alex Tweedly
I'm just trying to create a simple array of rectangles . I've created one (called, with great imagination :), R1) which has all the correct characteristics, including a width and height of 8 But when I clone it to create my other shapes, the widths and heights all come out to 120

Re: Line Numbers in Text Editor

2010-06-25 Thread Alex Tweedly
The straightforward answer is using formattedText . but the deeper question is what line numbering you want for the lines when there is line-wrapping happening. For instance, if it is something like a source code editor, then the line numbers (IMHO) should be independent of the size of

Re: Rev- for renaming files according to folder name

2010-06-24 Thread Alex Tweedly
Sounds a perfect task for Rev. Here is a scrit I had lying around that did something similar - modified to suit, tested VERY minimally and with some debugging left in place :-) Basically - modified by the tips of my fingers, so check it carefully before using and watch for line wrap ..

Error in date convert

2010-06-12 Thread Alex Tweedly
The following script fragment works OK on Mac (and I believe on Win, but cannot verify that right now) put 2010,1,0,0,0,0,0 into t convert t to system date put t but if I put this into an On-Rev script (i.e. an .irev scrip) it fails (silently - even the on-rev client debugger doesn't see

Re: WWDC Keynote: HTML5 wide open for On-Rev revServer

2010-06-12 Thread Alex Tweedly
I guess I'm missing something here . It seems that if I write a Rodeo app and it uses HTML5 local storage, then there is a secuity issue because other Rodeo apps on the same server might be able to access the user's data when stored locally on his machine. But today I generally write

Re: How to deal with unplug from the LAN

2010-05-26 Thread Alex Tweedly
Hmmm ... looks like you may have a problem with copy/paste in creating this email. in connectionStatus the first if ...then...else cluae will *always* cause a return, so the check for Airport never gets used. I suspect the original code did the Airport check first, then the Ethernet one - that

Re: Monitor Shell Copy File Progress

2010-05-22 Thread Alex Tweedly
First thought : I thought (according to Dictionary) that shell would wait until the command was complete before returning - dictionary says The current handler pauses until the shell returns its result. If the command was successful but did not return anything, the shell function returns empty.

Re: getting the user's (internet, not local network) IP address

2010-05-17 Thread Alex Tweedly
On 17/05/2010 23:48, Bob Sneidar wrote: That's because you connect to the internet without a gateway/router/firewall, in which case there is no public IP. I would rectify that situation pronto. No one should connect directly to the internet these days. No, it doesn't necessarily imply

Re: getting the user's (internet, not local network) IP address

2010-05-14 Thread Alex Tweedly
On 14/05/2010 20:17, Jeff Massung wrote: This still doesn't [fully] work. While not the local IP address, you'd still have to perform NAT traversal in order to do any actual communication with the client machine (read: anything useful). At best, with this IP address you can find out the

Re: Strange results in deletion of lines

2010-05-11 Thread Alex Tweedly
On 11/05/2010 04:51, David C. wrote: Then I get to build a second version that keeps the deleted F items in place while removing everything else. Oh what a joy. ;-) As Geoff demonstrated, the efficient way to do this is with repeat for each line ... and build up a new output variable. This

OT: MacBookPro advice needed.

2010-04-27 Thread Alex Tweedly
I'd like advice in two areas . 1. Should I buy the 13-inch or the 15-inch ? I can compare the screen sizes, and the resolution and even the relative weights. But I don't have a realistic idea of how much faster the Intel i5 is over the older Dual Core. So any advice about performance, or

Re: Heather Are You All OK with the Ash!

2010-04-19 Thread Alex Tweedly
Sivakatirswami wrote: Just checking... last time the ash was a disaster for Scotland... is our RunRev Team OK? It's not causing any problems here other than the shutting down of air space (and hence just about all air travel). So unless the Rev team are travelling, and can't get home, there

Re: revMail in Windows

2010-04-15 Thread Alex Tweedly
Sarah Reichelt wrote: I can't get all the data I need in my bug report down to 1000 characters, so does anyone know of an alternative way to send emails on Windows? I want it to go through the user's mail client as I ask them to supply additional information and attach screen shots. Otherwise I

Re: Replace command

2010-04-10 Thread Alex Tweedly
David Coker wrote: There seems to be an easy consensus, so that's the direction I'll take my code... Up until now I have never attempted using the wordOffset function for the small things I've been building with Rev, so I guess it's time to work it into my coding routines for the future. Thank

Re: Question about RevMobile

2010-04-10 Thread Alex Tweedly
Richard Gaskin wrote: FWIW, I picked up a netbook a few months ago and have been very happy with it. It weighs only slightly more than an iPad, cost about $200 less, has a physical keyboard, the screen is self-supported so I don't need to hold it with one hand while typing with the other, it

Re: Identifying a certain Windows machine

2010-03-31 Thread Alex Tweedly
J. Landman Gay wrote: Alex Tweedly wrote: Joe F. wrote: Wow- that is some answer. Thank you Monte. I was actually expecting something like getSystemID to be built into Revtalk, but... You inspired me to make myself a script library. Note this approach works 99% of the time, but can go

Re: Identifying a certain Windows machine

2010-03-30 Thread Alex Tweedly
Joe F. wrote: Wow- that is some answer. Thank you Monte. I was actually expecting something like getSystemID to be built into Revtalk, but... You inspired me to make myself a script library. Note this approach works 99% of the time, but can go wrong (or at least be very confusing) if the

Re: ANN: Clipboard Link

2010-03-30 Thread Alex Tweedly
Sounds really interesting Mark. I'll definitely use it. But I won't use it for code testing - it's just too easy (for someone as easily distracted as me) to finish up with slightly different code on each machine :-( I use Dropbox (www.dropbox.com) to automatically sync all my machines -

Re: Deleting Data Woefully Slow

2010-03-26 Thread Alex Tweedly
Mark Wieder wrote: Alex- Thursday, March 25, 2010, 5:57:48 PM, you wrote: delete line -1 requires search for every CR (i.e. scan every char in the whole large piece of data) adjust some pointer to truncate Not necessarily. See my response to Richard. I'd find the

Re: Deleting Data Woefully Slow

2010-03-25 Thread Alex Tweedly
Kay C Lan wrote: On Thu, Mar 25, 2010 at 8:08 PM, Richard Gaskin ambassa...@fourthworld.comwrote: Moreover, Raney once noted that he took the time to optimize put...after... specifically for cases like yours, so it could be used in conjunction with repeat for each to build a subset of data.

Re: socket write/read conflict?

2010-03-23 Thread Alex Tweedly
Nicolas Cueto wrote: Hello List, I've made a quiz-type game where 2-6 students on client stacks buzz in their answers to a server stack, all on a local network. The server stack, as well as sending out the questions, informs live to all the students/client-stacks about who buzzed in what. I

Re: socket error 54?

2010-02-17 Thread Alex Tweedly
Richard Gaskin wrote: Bernard Devlin wrote: It may be easier to just use my Dreamhost account for this, where it works great all the time with files of any size and type. Or create a CGI on Dreamhost that will relay a file on to another site such as BH. -- Alex.

Re: survey

2010-02-17 Thread Alex Tweedly
Mikey wrote: Oh, here we go! Nice catch Klaus. I did also say don't though in my original post, if we're gonna start tweaking each other over my original tweak. Have a great day, guys. It was (IMHO) a fair tweak - I *should* have said Sure you did, fairly recently. rather than Sure you

Re: socket error 54?

2010-02-17 Thread Alex Tweedly
Jim Bufalini wrote: Alex Tweedly wrote: What is error 54? Error 54, sometimes known as 10054 or sometimes as 20054 is a hard one to deal with. It means: Connection reset. (i.e. by the other guy) - When I first saw the post by Richard, I wondered, because I have seen and trap

Re: socket error 54?

2010-02-16 Thread Alex Tweedly
Richard Gaskin wrote: I have a weird connection which drops my socket about 25MBs into a 34MB upload using libURL. The session transcript ends with: socket error ip|6927 Error 54 reading socket What is error 54? Error 54, sometimes known as 10054 or sometimes as 20054 is a hard one to deal

Re: survey

2010-02-16 Thread Alex Tweedly
Mike Kerner wrote: Just a note - because I can google it if i really care, but what the hell - oh sorry - what the bloody hell is a fortnight? As other have said, two weeks. Sorry, over here in the colonies we don't use such hooey. Sure you do. VMS (i.e. DEC systems, based in Mass)

Re: socket error 54?

2010-02-16 Thread Alex Tweedly
Richard Gaskin wrote: What is error 54? Connection reset by peer. But does peer mean the server or your app? Is it a timeout thing? It is the server. Can be a timeout, can be policy, can be timeout induced by rate-limiting, can be ... darn hard to figure out :-( Thanks, Sarah. FWIW,

Re: Reading/Deleting Last Line Of File

2010-02-12 Thread Alex Tweedly
Jeff Massung wrote: I'm still new to Rev, but in other languages this is dead simple: ... // nuke everything else at the end of the file trunctate(fp, new_len); ... Done. Now, maybe this isn't as easy in Rev as it is in C and *many* other languages. But it should be [if it

Re: Reading/Deleting Last Line Of File

2010-02-12 Thread Alex Tweedly
Richard Gaskin wrote: That looks similar to what I posted here on the 9th: open file tFile for update seek relative -1000 in file tFile repeat read from file tFile until cr if it is not empty then put it after tBuffer else delete last line of tBuffer

Re: Reading/Deleting Last Line Of File

2010-02-12 Thread Alex Tweedly
Jim Bufalini wrote: Just one thing Alex, you need to: put URLDecode(the detailed files) into t in case the file name has, for example, a space in it. Thanks Jum, I didn't spot that. But then, if the file name had a comma in it, I'd be caught out. I think what I needed was to

Re: Reading/Deleting Last Line Of File

2010-02-12 Thread Alex Tweedly
Jim Bufalini wrote: Richard Gaskin wrote: But FWIW, I tried your version and it seemed to leave the file unchanged If your original file ends in a cr then Alex's code would end in absolutely no change. ;-) That's not what my testing showed (or appeared to show). Here's the short

Re: Reading/Deleting Last Line Of File

2010-02-12 Thread Alex Tweedly
Richard Gaskin wrote: Jim Bufalini wrote: Richard Gaskin wrote: But FWIW, I tried your version and it seemed to leave the file unchanged If your original file ends in a cr then Alex's code would end in absolutely no change. ;-) Thanks, Jim. I tried it both ways; no change to the

Re: Reading/Deleting Last Line Of File

2010-02-11 Thread Alex Tweedly
Jeff Massung wrote: Warren, I've read through most of these suggestions, but I'm surprised that the obvious hasn't been suggested yet (that I've seen): skip everything... Hasn't been suggested because it won't work. put the length of url file:myfile.txt into tEnd open file myfile.txt for

Re: Properly formatted large numbers

2010-02-10 Thread Alex Tweedly
Michael Lew wrote: Dear Listers I'm working on some statistical simulations and regularly get output numbers with anything from 1 to 7 digits. They are hard to read when they don't have the conventional commas separating the thousands and millions. I've written a simple function that does the

Re: Reading/Deleting Last Line Of File

2010-02-09 Thread Alex Tweedly
I don't think this will work, Jim. If you open a file for write, then it erases the entire content of the file first as the docs say (emphasis added)... The file to write to must be opened first with the open file command, and the mode the file was opened in must be write, append, or update.

Re: Polygonflow: clockwise or counter-clockwise?

2010-02-03 Thread Alex Tweedly
Jeff Massung wrote: Michael, I assume you are talking about 2D polygons... Just take a 3D cross product of the first two vector (P3 - P2) x (P2 - P1). If the resultant vector is coming out of the screen (Z 0) then the polygon is counter-clockwise. If it is going into the screen (Z 0) then

Re: Polygonflow: clockwise or counter-clockwise?

2010-02-03 Thread Alex Tweedly
Jeff Massung wrote: Michael, Sorry, but the problem you are running into is that (in your second example) The examples were from me (Alex) not Michael :-) you are working with a concave polygon instead of convex. Yes. Exactly. There *are* polygons which are concave. We could all look at

Re: Polygonflow: clockwise or counter-clockwise?

2010-02-03 Thread Alex Tweedly
Alex Tweedly wrote: I'll post a couple of suggested solutions shortly (once I've got the stack running properly) There are two approaches (at least) that consistently get the same answers as we all intuitively know are correct. By AREA. Calculate the (signed) area between each edge

Re: The seconds and time zones

2010-01-26 Thread Alex Tweedly
stephen barncard wrote: Lots of great example stories in the issues of revUp. Unfortunately, they are not indexed or searchable, and it's a bear trying to find an old article. I only found this as it was deep within my own bookmarks. You can get some hints at

Re: shell

2010-01-20 Thread Alex Tweedly
Hershel Fisch wrote: Thanks, but the link is dead. Hershel Most likely it is (as Stephen warned) a problem due to my poor choice of file name - the spaces confuse automatic link-clicking. Copy/paste the whole URL (from http: ... all the way to ... .rev) and see if that fixes it (it does

Re: standalones interacting over the web

2010-01-19 Thread Alex Tweedly
Hi Nick. I've gone back to your original question. The right way to do this undoubtedly involves sockets, which in turn requires a private web server (or very permissive web hosting company), so isn't readily available to most of us. But there is a way to do it using only simple ordinary Web

Re: standalones interacting over the web

2010-01-18 Thread Alex Tweedly
Nicolas Cueto wrote: but Chatrev also runs from my LAN. Doesn't this require purchasing a permanent IP address from your ISP? No. Your IP address will not change during a single connected session, only when your DSL (or equivalent) line drops and restarts. So you can use dyndns (

Re: shell

2010-01-18 Thread Alex Tweedly
stephen barncard wrote: My info was taken from an old Nabble forum were Alex offered his stack. It doesn't seem to be on his site or Rev Online anymore - perhaps you could write him. They were on the old RevOnline (pre Rev 3.0). I had some problems getting stacks on the new RevOnline, but

Re: Easier syntax for quoting text and html?

2010-01-01 Thread Alex Tweedly
David Bovill wrote: 2009/12/31 Jim Ault jimaultw...@yahoo.com --// html honors both quote types, ignores extra spaces Thanks Jim !! How did I get to this age in my life without realizing that !? NB - I do think that RunRev should add syntax to the language to make html quoting very easy

Re: interrupting a repeat loop

2009-12-15 Thread Alex Tweedly
Andre Garzia wrote: Hi Folks, this been answered in many ways already but I thought I'd chime in and try to answer it in a different way. The key is to think of reusable code, every now and them we keep rewritting the same pieces over and over again. How do we create a generic thing that will:

Re: bitXor 8 bytes of data

2009-12-09 Thread Alex Tweedly
Neil Allan wrote: After some deep thought today, I achieved my desired goal by xoring each individual byte. I could swear I tried this before, but anyhoo it's working now! Sometimes it's not enough to try something . you need to tell someone else that it still fails, and only then will it

Re: bitXor 8 bytes of data

2009-12-08 Thread Alex Tweedly
Neil Allan wrote: Does anyone have a way of doing a simple bitwise xor with two 8 byte signed floating point numbers? I believe the revTalk bitXor command can only accept non signed numbers. I have tried performing the bitXor byte by byte on the two strings using the byteToNum() function on

Re: [ANN] Free tText plugins: Do Shell Speak2Me

2009-12-08 Thread Alex Tweedly
Sarah Reichelt wrote: What about making a plugin that opens as palette stack? Perhaps it could have a front script that intercepts the commandKeyDown message and implements your own commands there. I haven't tried this, so I don't know if setting a frontScript will be possible, but I guess it

Re: [ANN] Free tText plugins: Do Shell Speak2Me

2009-12-07 Thread Alex Tweedly
Jerry Daniels wrote: Fellow developers, We have just posted two more new free plugins for tText: Speck2Me, which speaks any text in the editor, and Do Shell which executes any text in one tab and puts the results into another. These plugins are fully editable in Revolution. Jerry - I have

Re: sending hexadecimal control characters, how to?

2009-12-03 Thread Alex Tweedly
Peter Alcibiades wrote: Sarah, brilliant! It is indeed a receipt printer. So do you maybe know how to do the next part? In order to activate the paper cutter on it, one is supposed to do this to trigger the auto cutter drive: ESC “d” “0” or ESC “d” 0 (1B)H (64)H (30)H or (1B)H (64)H (00)H

Re: [ANN] tRev Feature Friday: drag-n-drop layering; inline editing!

2009-11-22 Thread Alex Tweedly
Jerry Daniels wrote: I should also say that you are right in your comment—about the price going up. Now is a good time to buy in. We now have 223 users of tRev. We're a mere two users away from reaching the 25% mark on our goal of 1,000 happy users. Jerry - that must be an example of

Re: Online status board

2009-11-18 Thread Alex Tweedly
Jan Schenkel wrote: Well, in the AJAX world, you would write a JavaScript that sends an XmlHttpRequest every couple of seconds, and modifies the existing web page. But we're in a revCentered world here, so let's take the other route :-) Along the same lines, you could make a revlet that

Re: how can I stop a mouseenter-command

2009-11-13 Thread Alex Tweedly
As well as what Jan said about making tMouseout a global (or, better, a script local) variable, you probably also need to change wait 1 second to wait 1 second with messages otherwise the mouseleave message won't be processed while you wait, and therefore the variable won't be changed. --

Re: csv parser

2009-11-13 Thread Alex Tweedly
Chris Sheffield wrote: Wow, it's been a while since I've posted to the list. I first have to say congratulations to the Rev team on the release of Rev 4.0. I've been using it for a couple days now, and it's looking great. I was wondering if anyone out there has written a csv parsing library

Re: how can I stop a mouseenter-command

2009-11-13 Thread Alex Tweedly
dunb...@aol.com wrote: The variable issue suggested by Jan is likely your problem. But do you think this is nicer? on mouseEnter wait 1 second if the mouseLoc is within the rect of me then doYourStuff end mouseEnter But beware that this will wrongly fire if you pass the mouse through

reStructuredText in RevTalk ?

2009-11-10 Thread Alex Tweedly
I'm using a simple file-based CMS in on-rev (along the lines of Andre's CMS/blog system). I'm looking for a simple way to allow users to include simple html within the files which will be included as part of the web pages. I need to protect from any accidental damage to the rest of the page

Re: including a file on on-rev

2009-11-07 Thread Alex Tweedly
Claudi Cornaz wrote: Well anyway here are some pieces of what I tried and failed. include ../lib/ccStats.irev -- failed with FTP error file /testing/..//lib/cc_PageStats.irev not present. the include call was made from a page in the testing folder. Why that folders name is added I

Re: Progress Bar Updates

2009-11-05 Thread Alex Tweedly
Bill Vlahos wrote: I've successfully used libURLSetStatusCallback for getting the status when downloading from a web server and updating a progress bar. However, when I try it for opening a file from a file server it doesn't work. Below is the code for the file server open in a button.

Re: revTalk - iRev - revWeb - PHP - iPhone and back again

2009-11-04 Thread Alex Tweedly
Thomas McGrath III wrote: Overview: I have been plugging away at writing an iPhone application that manipulates photos and uploads them online (why I have been so silent on the list for awhile). And except for a major confusion working with the internal database (still unresolved) I have been

Re: including a file on on-rev

2009-11-03 Thread Alex Tweedly
J. Landman Gay wrote: Yeah, this has been harrassing me. I'm pretty sure a path like this would work but I haven't tried it yet: ~/path/to/includeFile. I'm going to test it, that would be way easier. No - already guesses that one and tried it. File not found (b) isn't it a (minor) security

Re: including a file on on-rev

2009-11-03 Thread Alex Tweedly
J. Landman Gay wrote: Claudi Cornaz wrote: I need to change the include statement to: include ../lib/cc_PageStats.irev but this doesn't work. I have many pages at my on-rev site like that and it works fine. The ../ does mean up one folder and I often use it. This works for me too. But

Re: on-rev.com Perl recipe

2009-11-01 Thread Alex Tweedly
Yes, after a few tries The script was simple : #!/usr/bin/perl print Content-type: text/html\n\n; print HTML; html head titleA Simple Perl CGI/title /head body h1A Simple Perl CGI/h1 pHello World/p /body HTML exit; It's in http://www.alextweedly.on-rev.com/cgi-bin/hw.pl It's actually

Re: urlstatus question

2009-10-28 Thread Alex Tweedly
I haven't noticed a reply to this if there was one and I just missed it, then I offer my apologies (especially if i contradict that answer ;-) I haven't look at the user guide - this is info from the documentation (dictionary). The last parameter to libURLDownloadToFile is a status

Re: Container for Multiple Choice Quizes

2009-10-27 Thread Alex Tweedly
Well, I don't much like dBases, or XML, so here's what I'd probably do Answer (a) 1. Have a folder for each category. 2. in the folder, have a file (category.tx, maybe?) with the first line containing the category name, and subsequent lines containing the verbiage for it. 3. have a

Re: How to filter a big list

2009-10-22 Thread Alex Tweedly
Richard Gaskin wrote: Jérôme Rosat wrote: I explained in my message that I wish to filter a list of names and addresses dynamically when I type a name in a field. This list contains 400'000 lines like this: Mme [TAB] DOS SANTOS albertina [TAB] rue GOURGAS 23BIS [TAB] 1205 Genève I made

Re: How to filter a big list

2009-10-22 Thread Alex Tweedly
Alex Tweedly wrote: Note the use of .. to give an indication that work is still in progress and there may be more matches to come. Hmmm that's a bit of a cheap way to do it. Much better to put the number of lines in sData into tDataSize, and then do put 20 - (20 * tCount

Re: Newbie question - Using multi-line message box

2009-10-14 Thread Alex Tweedly
Richard Gaskin wrote: Between that and the full-glare reflective screen it's enough to keep me from upgrading my MBP for a while. The matte screen is available (as a $50 option !!) for both 15- and 17- inch MBPs -- Alex (who is trying hard to convince himself to buy one NOW)

  1   2   3   4   5   6   7   8   9   10   >