Re: An idea on multithreading implementation

2011-01-27 Thread Jeffrey Massung
On Jan 27, 2011, at 10:54 PM, Geoff Canyon Rev wrote: > I'd suggest coroutines: http://en.wikipedia.org/wiki/Coroutine > > They have the advantage of being fairly similar to what some of us have done > already with send.in to get this sort of behavior, and probably wouldn't > break existing synt

Re: An idea on multithreading implementation

2011-01-27 Thread Geoff Canyon Rev
I'd suggest coroutines: http://en.wikipedia.org/wiki/Coroutine They have the advantage of being fairly similar to what some of us have done already with send.in to get this sort of behavior, and probably wouldn't break existing syntax. ___ use-livecode m

Re: usb driver problem

2011-01-27 Thread Thomas McGrath III
Minor correction: put theData & comma & " " after field "Data" -- Output so it is all on one line to see better is now just: put theData & " " after field "Data" -- no comma needed -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On Jan 28, 2011, at 12:46 AM, Thomas McGra

Re: usb driver problem

2011-01-27 Thread Thomas McGrath III
Well, Claudi and I have been very busy sharing code snippets and stories and what not and I have also come to most of the same conclusions as he has. The problem is definitely in the "until EOF" "until empty" etc. and in trying to access the serial buffer. My solution is a little different and i

Re: usb driver problem

2011-01-27 Thread Mark Wieder
Claudi- Congratulations on getting this working. And that's quite a story. I see a bright future ahead for LiveCode-Arduino cyborgs. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Re: On-rev Rename quotes work. Vars don't!

2011-01-27 Thread Rick Harrison
Hi Richard & Klaus, I set the default folder to the correct path before the rename statement. I've checked it, and it is correct. I've also tried to fully qualify the path name for both variables. It still doesn't work. Someone other than myself should try to reproduce the error on On-Rev when

[OT] Re: [ANN] TimeMachine

2011-01-27 Thread Alex Tweedly
Surely a purist would prefer the original, i.e. the radio series. -- Alex. On 27/01/2011 16:45, Richmond wrote: On 01/27/2011 12:22 AM, Bob Sneidar wrote: I liked the movie better than the book. The movie had a nice love story and all ended well. The book dropped you off in a decidedly unfri

Re: On-rev Rename quotes work. Vars don't!

2011-01-27 Thread Klaus on-rev
Hi Rick, > Hi Klaus, > > I started out using the correct syntax with FILE, and it > didn't work on On-Rev. > > I've verified that the pathname is correct. > > rename FILE "xyz" to "zyx" > > works fine on On-Rev > > however: > > put "xyz" into MyOldFileName > put "zyx" into MyNewFileName > >

Re: usb driver problem

2011-01-27 Thread Jerry J
On Jan 27, 2011, at 2:15 PM, Claudi Cornaz wrote: > Hi all yea, > > 17.23 CET. Finaly we have contact Congratulations! Just in time for me. I'm just about to have to hook up to two serial devices in a project to replace a HC stack that has been running for about 12 years on a PowerBook G3

Re: On-rev Rename quotes work. Vars don't!

2011-01-27 Thread Rick Harrison
Hi Klaus, I started out using the correct syntax with FILE, and it didn't work on On-Rev. I've verified that the pathname is correct. rename FILE "xyz" to "zyx" works fine on On-Rev however: put "xyz" into MyOldFileName put "zyx" into MyNewFileName rename FILE MyOldFileName to MyNewFileName

Re: usb driver problem

2011-01-27 Thread Claudi Cornaz
Hi all yea, 17.23 CET. Finaly we have contact 12345678 /1296144957195 12345678 /1296144957802 12345678 /1296144958107 12345678 /1296144958412 12345678 /1296144959018 12345678 /1296144959322 12345678 /1296144959629 data kept on comming. Now I k

RE: Build for Server Basics

2011-01-27 Thread Ray Horsley
Many thanks for this helpful information! Ray -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Björnke von Gierke Sent: Thursday, January 27, 2011 1:29 PM To: How to use LiveCode Subject: Re: Build for Server Basics

Re: On-rev Rename quotes work. Vars don't!

2011-01-27 Thread Klaus on-rev
Hi Rick, > Hi Richard, > > The addition of the "to" keyword surprisingly made even > what was working stop working! The bug needs to be > fixed or the dictionary updated or both. > > Tim's suggestion of building the entire statement, and > then executing it as a "do" command worked great! > Tha

Re: [ANN] TimeMachine

2011-01-27 Thread form
On Thu, Jan 27, 2011 at 11:45 AM, Richmond wrote: > >> We "purists" preferred the TV series; especially the bit with Hot Black > De Satio. *Makes a all-black interface to his next LiveCode app in honor of Adams* ~ Chris Innanen ~ Nonsanity ___ use-

Re: On-rev Rename quotes work. Vars don't!

2011-01-27 Thread Rick Harrison
Hi Richard, The addition of the "to" keyword surprisingly made even what was working stop working! The bug needs to be fixed or the dictionary updated or both. Tim's suggestion of building the entire statement, and then executing it as a "do" command worked great! Thanks Tim for the great work a

Re: File naming convention

2011-01-27 Thread form
I think the #2 option should be fine. Apple uses the .app extension for folders, after all. (Not that humans ever see them...) But how about this: docs/ help.txt.dir/ index.html image1.png teapot.png.dir/ index.html to go with this: apps/ help.txt teapot.

Re: An idea on multithreading implementation

2011-01-27 Thread form
Just mulling the thought over... If a substack was tagged as being Threaded, then it couldn't "see" objects or events outside of itself. It would have its own event list that runs separately. So if the main stack is in the middle of a long process, the substack would still be interactive. The thre

Re: On-rev Rename quotes work. Vars don't!

2011-01-27 Thread Björnke von Gierke
On 27 Jan 2011, at 19:56, Rick Harrison wrote: > rename "imac27.jpg" "imac2012.jpg" > > what's below doesn't work: > > put "imac27.jpg" into NameOfOldFile > put "imac2012.jpg" into NameOfNewFile > rename NameOfOldFile NameOfNewFile Uhm that's wrong syntax, it should be: rename NameOfOldFile t

Re: On-rev Rename quotes work. Vars don't!

2011-01-27 Thread Rick Harrison
Hi again, The following works: rename "imac27.jpg" "imac2012.jpg" what's below doesn't work: put "imac27.jpg" into NameOfOldFile put "imac2012.jpg" into NameOfNewFile rename NameOfOldFile NameOfNewFile also this doesn't work: put "imac27.jpg" into NameOfOldFile put "imac2012.jpg" into NameOfN

Re: irev scripting and libURL

2011-01-27 Thread Devin Asay
On Jan 27, 2011, at 11:05 AM, Björnke von Gierke wrote: > i remember mark wadd. saying that it uses curl calls on the server, because > liburl would need stack loading, which it doesn't have. because of that, it > only has a few capabilities compared to liburl. > > on the other hand, that was

Re: Build for Server Basics

2011-01-27 Thread Björnke von Gierke
oh in that case, you can alternatively also use rev 3.5 as cgi. there have been only some minor changes to the faceless-relevant stuff since then. as a bonus, you'll be able to open stacks and use externals, all in iis. if you do not have 3.5 you can ask support to send it to you (and ask them t

RE: Build for Server Basics

2011-01-27 Thread Ray Horsley
Actually, yes. It is IIS, however, I understand there's no server package for Windows at this time. No problem, though, since Fire Daemon is working well for us. Thanks, Ray Horsley LinkIt! Software -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-bou

Re: irev scripting and libURL

2011-01-27 Thread Björnke von Gierke
i remember mark wadd. saying that it uses curl calls on the server, because liburl would need stack loading, which it doesn't have. because of that, it only has a few capabilities compared to liburl. on the other hand, that was more then a year ago, so they might have changed that by now? Ther

Re: Answer file with type BMPf?

2011-01-27 Thread William de Smet
Thanks everyone for taking the time to look into my problem. @Jan: Thanks! Bedankt! Your suggestion did it. @ Bernd: I will use your latest suggestion as well. Till next time :-) greetings, William 2011/1/27 BNig > > Hi William, > > Jan's solution works for me with bmp to set the filename o

irev scripting and libURL

2011-01-27 Thread Devin Asay
Have searched but can't find the answer to this: Are libURL calls available in the revServer environment? How is libURL implemented? Is it an external or integrated into the engine? Thanks, Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University _

Re: Build for Server Basics

2011-01-27 Thread Björnke von Gierke
Uhm... i'm not sure.. do you mean IIS? because rev server is _only_ for web servers. for a normal file server, you do not need a server edition, because there you'd need normal standalones. Rev server currently only works for hosting websites on an apache server. you can install apache on wind

Re: Build for Server Basics

2011-01-27 Thread Matthias Rebbe
Hi Ray, unfortunately a windows version is not released yet. I am waiting for that, too. Regards, Matthias Am 27.01.2011 um 18:12 schrieb Ray Horsley: > Thanks for this explanation. Our server is Windows 2008. Do you know where > I'd get a similar package for Windows servers? > > -Origi

RE: Build for Server Basics

2011-01-27 Thread Ray Horsley
Thanks for this explanation. Our server is Windows 2008. Do you know where I'd get a similar package for Windows servers? -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Björnke von Gierke Sent: Thursday, January

Re: [ANN] TimeMachine

2011-01-27 Thread Richmond
On 01/27/2011 12:22 AM, Bob Sneidar wrote: I liked the movie better than the book. The movie had a nice love story and all ended well. The book dropped you off in a decidedly unfriendly section of the slums of Norganza on planet FriedZig without any explanation. Or did I dream that? Bob We "

Re: On-rev Rename problem

2011-01-27 Thread Björnke von Gierke
Should work, i think. Most likely you don't have write permission, or the paths are somehow mixed up? Did you try to create a file at the same place? Or delete a file? because if I'm wrong with the permissions, you could read the file in, delete the file, then make a new file with the new name.

Re: On-rev Rename problem

2011-01-27 Thread Alex Tweedly
works OK for me " & CR in t put "" & t rename "a.txt" "b.txt" put the detailed files into t replace CR with "" & CR in t put "" & t ?> -- Alex. On 27/01/2011 16:17, Rick Harrison wrote: Hi there, I've been trying to use rename file in an irev script on On-Rev without success. Is t

Re: Build for Server Basics

2011-01-27 Thread Björnke von Gierke
you do not need to build a standalone for server. instead, the server is a package that you can install on an apache web server, and then use rev code in an php-like fashion, using rev code in text files that the server interprets. On 27 Jan 2011, at 14:44, Ray Horsley wrote: > Greetings, > >

On-rev Rename problem

2011-01-27 Thread Rick Harrison
Hi there, I've been trying to use rename file in an irev script on On-Rev without success. Is this a known bug? If so, what is the work around? Rename works fine on my local Macintosh. I have the pathname correct on On-Rev as I'm able to list the files programmatically. Can anyone else verify t

Re: usb driver problem

2011-01-27 Thread Mark Wieder
Tom- Thursday, January 27, 2011, 6:55:59 AM, you wrote: > The question remains that this piece of code works in previous OS > versions so what has changed in 10.6.6 and what needs changed in LC > to read until EOF with out crashing. Or is that what you meant by > That is Not a Good Thing? ;-) Ye

Re: OAuth

2011-01-27 Thread David Bovill
On 27 January 2011 14:37, Andre Garzia wrote: > On Thu, Jan 27, 2011 at 11:42 AM, David Bovill >wrote: > > > I'll work on it with you Harald, we could take some steps looking at this > > next weekend at a LiveCode TV event? I think Andre has some code knocking > > about? > > > > > I am trying to

Re: Htmltext: storing data in markup

2011-01-27 Thread David Bovill
Sounds good Ben On 27 January 2011 14:20, Ben Rubinstein wrote: > > A technique I used a few years ago, which worked out well, was to use the > low-order bits of the colour to code an ID that my code could associate with > whatever it liked. By reserving two bits each from R/G/B one immediately

Re: OAuth

2011-01-27 Thread Harald Müller
Cool! Am 27.01.2011 um 15:37 schrieb Andre Garzia: > On Thu, Jan 27, 2011 at 11:42 AM, David Bovill > wrote: > >> I'll work on it with you Harald, we could take some steps looking at this >> next weekend at a LiveCode TV event? I think Andre has some code knocking >> about? >> >> > I am tryi

Re: OAuth

2011-01-27 Thread Harald Müller
Sounds good! (I haven't seen anything on LiveCode TV until now , but I'll try ...) Am 27.01.2011 um 14:42 schrieb David Bovill: > I'll work on it with you Harald, we could take some steps looking at this > next weekend at a LiveCode TV event? I think Andre has some code knocking > about? > >

Re: Answer file with type BMPf?

2011-01-27 Thread BNig
Hi William, Jan's solution works for me with bmp to set the filename of the image If you want to detach the image from the filename and to turn it from a referenced image to an local/stack resident image you could issue the following command set the imagedata of image "foto1" to the imagedata

Re: OAuth

2011-01-27 Thread Harald Müller
Hi Mark, I managed posting to Facebook also, but not via clean OAuth. Anyway: Good luck with your commercial attempt! You are right, the open-source attempt with the Wiki didn't work well and I don't know how this can be done as "group work". But I think it's not clever when each of us goes the s

Re: usb driver problem

2011-01-27 Thread Thomas McGrath III
Good catch Mark, I notice the getbuffer line and then the read to eof -- Claudi can answer if that was a loop but from looking at his code, in the stack he shared with me, the read from driver until eof is where this crashed: > if the hilitedButtonName of grp "driverFile radioGrp" = "driver"

Re: OAuth

2011-01-27 Thread Andre Garzia
On Thu, Jan 27, 2011 at 11:42 AM, David Bovill wrote: > I'll work on it with you Harald, we could take some steps looking at this > next weekend at a LiveCode TV event? I think Andre has some code knocking > about? > > I am trying to finish it. The main issue right now is time to finish it. :D

Re: Htmltext: storing data in markup

2011-01-27 Thread Ben Rubinstein
On 27/01/2011 13:38, David Bovill wrote: Anyone got any suggestions / experience in using htmltext to store data / metadata. Most of the time is strips out any additional tags you might add (which is a great pity) - but I've found it useful to use markup like: For this text Are there any other

Re: Answer file with type BMPf?

2011-01-27 Thread Jan Schenkel
--- On Thu, 1/27/11, William de Smet wrote: > Hi Bernd, > > I use this script in an image area: > on mouseup >     answer file "Kies een foto:" with type "All > Images|jpg,gif,png,bmp|JPEG,GIFf,PNGf,BMPf" >             >    if it = empty >             >    then >                 >   put empty int

Re: Htmltext: storing data in markup

2011-01-27 Thread Richard Gaskin
David Bovill wrote: Anyone got any suggestions / experience in using htmltext to store data / metadata. Most of the time is strips out any additional tags you might add (which is a great pity) - but I've found it useful to use markup like: For this text Are there any other tags that can be use

Build for Server Basics

2011-01-27 Thread Ray Horsley
Greetings, Could anybody point me to some documentation on building standalones for servers. I recently purchased the license for it but I don't see it in the Standalone Application Settings. I'm wondering what the benefits are to this approach as compared to, for example, running a normal stand

Re: OAuth

2011-01-27 Thread David Bovill
I'll work on it with you Harald, we could take some steps looking at this next weekend at a LiveCode TV event? I think Andre has some code knocking about? On 27 jan 2011, at 14:18, Harald Müller wrote: > > > Hi all, > > > > has anybody made it thru OAuth already? There will be no way around OAuth

Htmltext: storing data in markup

2011-01-27 Thread David Bovill
Anyone got any suggestions / experience in using htmltext to store data / metadata. Most of the time is strips out any additional tags you might add (which is a great pity) - but I've found it useful to use markup like: For this text Are there any other tags that can be used to markup text with m

Re: OAuth

2011-01-27 Thread Mark Schonewille
Hi Harald, I made a system that successfully logs in on Facebook and posts messages. It isn't a general solution and it is still work in progress, but I think I am now able to do it for other systems as well, such as Twitter. Unfortunately, the open-source attempt failed completely and what I h

OAuth

2011-01-27 Thread Harald Müller
Hi all, has anybody made it thru OAuth already? There will be no way around OAuth for me and after looking at all those infos I found a very interesting playground: http://googlecodesamples.com/oauth_playground/index.php? Once again I would like to work with others on this. Step by step, someth

Re: Answer file with type BMPf?

2011-01-27 Thread William de Smet
Hi Bernd, I use this script in an image area: on mouseup answer file "Kies een foto:" with type "All Images|jpg,gif,png,bmp|JPEG,GIFf,PNGf,BMPf" if it = empty then put empty into img "foto1" exit mouseUp end

Re: Answer file with type BMPf?

2011-01-27 Thread BNig
Hi William this works for me on MacOS 10.6.6 for all three file suffixes: answer files "Kies een foto:" with type "All Images|png,jpg,bmp" could you post the code that does not work for you? Any typos? Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.

Re: revision control software

2011-01-27 Thread planix
Hi, Here is the direct link for Magic Carpet. http://www.altuit.com/webs/altuit2/MagicCarpetCover/default.htm Altuit Website cheers -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/revision-control-software-tp3236793p3242038.html Sent from the Revolution - User

Re: Answer file with type BMPf?

2011-01-27 Thread William de Smet
Thanks Ken, I tried your suggestion but no luck. I tested it on Windows 7 en OSX 10.6 with LC 4.5.3. New stack, image area and code. All files OK but BMP is still a no go! Anyone? Greetings, William - Verstuurd vanaf mijn iPhone! Op 26 jan. 2011 om 21:45 heeft Ken Ray het volgende ge

Re: $PATH

2011-01-27 Thread David Bovill
Ah yes - that's how I remember it. So setting the $PATH from within LiveCode works on a temporary basis, but $PATH is not in sync with your personal users terminal (bash) settings. It would be good to know where exactly LiveCode gets it's $PATH settings from? 2011/1/26 François Chaplais > from