From monte at sweattechnologies.com Mon Nov 1 00:01:28 2010 From: monte at sweattechnologies.com (Monte Goulding) Date: Mon, 1 Nov 2010 15:01:28 +1100 Subject: Refreshing a card In-Reply-To: <1288583523153-3021743.post@n4.nabble.com> References: <1288583523153-3021743.post@n4.nabble.com> Message-ID: Hi Mark What do you mean by moving off the card and back on? Go to a different card of that stack or suspend and resume stack / application? Also you may need to provide your setprop handler for this property because there's nothing wrong with your menu code. Cheers Monte On 01/11/2010, at 2:52 PM, Mark Smith wrote: > > Hello all, by now most of you are probably familiar with my silly questions > (born of, I am afraid, too many years engrossed in procedural programming > languages). Here we go. I have a menu option called "Toggle Date Stamp" and > it toggles on/off the display of a date stamp on the card. When you select > it you might expect that the card goes from displaying the date stamp to not > displaying the date stamp ad infinitum. Not so. In fact nothing changes. If > I move off the card and then back on I see the correct behaviour but not > while I am actually on the card (or any card). I am guessing that in the > Toggle Date Stamp menu code (below) I need to send a message to the card to > "refresh" itself. But what message? > > case "Toggle Date Stamp" > set the showDateStamp of this stack to not the showDateStamp of > this stack > -- insert some message to get the current card to "redisplay" > itself > break > end switch > > (Note, yes the showDateStamp property is in the stack because it effects the > behaviour of all of the cards, not particular ones. Hopefully I've got that > bit of logic right :-) > > Thanks for your patience, > > -- Mark > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Refreshing-a-card-tp3021743p3021743.html > Sent from the Revolution - User mailing list archive at Nabble.com. > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From palcibiades-first at yahoo.co.uk Mon Nov 1 02:11:48 2010 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Sun, 31 Oct 2010 23:11:48 -0700 (PDT) Subject: [OT] Browsing the internet... It is safer from Linux? In-Reply-To: References: <4CCD1899.107@gmail.com> Message-ID: <1288591908940-3021793.post@n4.nabble.com> Chipp, not saying you are wrong, but how would you know? That's the thing that got me, and why I think Alejandro's thought of taking Windows offline is quite sensible. The problem with windows getting compromised is I am not sure you necessarily know when its happened. Most studies on anti malware seem to show that you need more than one, and even then, you don't catch everything. That's why I refuse to disinfect now. It takes forever, and you cannot promise a proper job even then. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Browsing-the-internet-It-is-safer-from-Linux-tp3020657p3021793.html Sent from the Revolution - User mailing list archive at Nabble.com. From palcibiades-first at yahoo.co.uk Mon Nov 1 03:35:48 2010 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Mon, 1 Nov 2010 00:35:48 -0700 (PDT) Subject: LiveCode Linux version: graphic effects issue with the name of a push button In-Reply-To: References: Message-ID: <1288596948849-3021834.post@n4.nabble.com> Yes, I get this too. Always assumed it was a feature, just the way it works. How are you modifying the button graphic? What I have done is underlay a graphic with a transparent button not showing its name, but you'll have thought of that. Peter -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/LiveCode-Linux-version-graphic-effects-issue-with-the-name-of-a-push-button-tp3021185p3021834.html Sent from the Revolution - User mailing list archive at Nabble.com. From chipp at chipp.com Mon Nov 1 05:41:20 2010 From: chipp at chipp.com (Chipp Walters) Date: Mon, 1 Nov 2010 04:41:20 -0500 Subject: [OT] Browsing the internet... It is safer from Linux? In-Reply-To: <1288591908940-3021793.post@n4.nabble.com> References: <4CCD1899.107@gmail.com> <1288591908940-3021793.post@n4.nabble.com> Message-ID: Peter, AVG does regular scans of my drives. Furthermore, I every now and then do spyware checks and I do a lot of high end rendering, which needs about 99% of my processor, so I'm fairly familiar with the services and apps I run. I have a network monitor gauge on my desktop which let's me know what's going out and coming in. So, I guess if there is malware on my machine, it's never caused me any problems, as it doesn't seem to consume processor cycles or network bandwidth, and I have never seen any identity theft. And seeing how I make my living on my Windows machine, and have since around 1994 (before that it was a Mac), I would find it very debilitating to have to take it off the network because I was scared of malware. But, if anyone is very concerned of such attacks, than by all means unplug it from the network. And NEVER plug a USB drive into it. And it's always a good idea to unplug it from the wall during a storm-- while you stand under a doorway or curl up fetal-like in the tub-- just to be super safe. On Monday, November 1, 2010, Peter Alcibiades wrote: > > Chipp, not saying you are wrong, but how would you know? ?That's the thing > that got me, and why I think Alejandro's thought of taking Windows offline > is quite sensible. ?The problem with windows getting compromised is I am not > sure you necessarily know when its happened. > From bill at bluewatermaritime.com Mon Nov 1 08:08:16 2010 From: bill at bluewatermaritime.com (william humphrey) Date: Mon, 1 Nov 2010 08:08:16 -0400 Subject: Building array from list Message-ID: I was wondering. If you have a list: apple,1 orange,1 grapefruit,1 tango,2 blue,3 green,3 yellow,3 zebra,9 And you want to convert it into an array: (apple,orange,grapefruit[1]) (tango[2]) (blue,green,yellow[3]) (zebra,[9]) What would be the easiest way. I'm always a little confused by arrays but it seems to me this should be a very simple and fast conversion. The array is intentionally a string "apple,orange,grapefruit" that results from key [1] Bill From psahores at free.fr Mon Nov 1 08:15:31 2010 From: psahores at free.fr (Pierre Sahores) Date: Mon, 1 Nov 2010 13:15:31 +0100 Subject: [OT] Browsing the internet... It is safer from Linux? In-Reply-To: References: <4CCD1899.107@gmail.com> <1288591908940-3021793.post@n4.nabble.com> Message-ID: <8279A107-A4FF-4344-A945-695ECFC4F5B2@free.fr> Hello All, While i develop all my stuff under OSX and deploy mainly on Linux or OSX, i have to deploy some kind of AI 24/7 calculation solutions under Win7 because, as anyone knows, the most usefull feature of win is that it runs twice faster as POSIX systems (no ixinetd,... services management, etc...). At this point, those Win7 calculators are mainly protected by a Linux-based DSL router's firewall, Windows Defender and the GPL ClamWin AntiVirus (both always up to date). Is that a correct way to go or do i need to rely on a more advanced security plan/solution ? TIA, Best, Pierre Le 1 nov. 2010 ? 10:41, Chipp Walters a ?crit : > Peter, > > AVG does regular scans of my drives. Furthermore, I every now and then > do spyware checks and I do a lot of high end rendering, which needs > about 99% of my processor, so I'm fairly familiar with the services > and apps I run. I have a network monitor gauge on my desktop which > let's me know what's going out and coming in. > > So, I guess if there is malware on my machine, it's never caused me > any problems, as it doesn't seem to consume processor cycles or > network bandwidth, and I have never seen any identity theft. And > seeing how I make my living on my Windows machine, and have since > around 1994 (before that it was a Mac), I would find it very > debilitating to have to take it off the network because I was scared > of malware. > > But, if anyone is very concerned of such attacks, than by all means > unplug it from the network. And NEVER plug a USB drive into it. And > it's always a good idea to unplug it from the wall during a storm-- > while you stand under a doorway or curl up fetal-like in the tub-- > just to be super safe. > > On Monday, November 1, 2010, Peter Alcibiades > wrote: >> >> Chipp, not saying you are wrong, but how would you know? That's the thing >> that got me, and why I think Alejandro's thought of taking Windows offline >> is quite sensible. The problem with windows getting compromised is I am not >> sure you necessarily know when its happened. >> > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- Pierre Sahores mobile : (33) 6 03 95 77 70 www.woooooooords.com www.sahores-conseil.com From gregory.lypny at videotron.ca Mon Nov 1 08:48:50 2010 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Mon, 01 Nov 2010 08:48:50 -0400 Subject: Building array from list In-Reply-To: <20101101121515.C9DE2288382@mail.runrev.com> References: <20101101121515.C9DE2288382@mail.runrev.com> Message-ID: Hello William, This will give you an array with four keys corresponding to [1] fruit, [2] dances, [3] colours, and [4] animals. repeat for each line thisLine in theList put the first item of thisLine & comma after myArray[the second item of thisLine] end repeat The contents of each has a trailing comma, which can be removed by following with repeat for each key thisKey in myArray if the last character of myArray[thisKey] is comma \ then delete the last character of myArray[thisKey] end repeat Regards, Gregory On Mon, Nov 1, 2010, at 8:15 AM, use-revolution-request at lists.runrev.com wrote: > I was wondering. If you have a list: > > apple,1 > orange,1 > grapefruit,1 > tango,2 > blue,3 > green,3 > yellow,3 > zebra,9 > > And you want to convert it into an array: > > (apple,orange,grapefruit[1]) > (tango[2]) > (blue,green,yellow[3]) > (zebra,[9]) > > What would be the easiest way. I'm always a little confused by arrays but it > seems to me this should be a very simple and fast conversion. The array is > intentionally a string "apple,orange,grapefruit" that results from key [1] From bonnmike at gmail.com Mon Nov 1 08:55:26 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 1 Nov 2010 06:55:26 -0600 Subject: Building array from list In-Reply-To: References: <20101101121515.C9DE2288382@mail.runrev.com> Message-ID: Can also do it as follows: repeat for each line tLine in field 1 put the number of items in tdataA[(item 2 of tLine)] + 1 into tItemNum put item 1 of tLine into item tItemNum of tDataA[(item 2 of tLine)] end repeat Can most likely combine the 2 lines of the repeat into a 1 liner, but this way works fine. On 11/1/10, Gregory Lypny wrote: > Hello William, > > This will give you an array with four keys corresponding to [1] fruit, [2] > dances, [3] colours, and [4] animals. > > repeat for each line thisLine in theList > put the first item of thisLine & comma after myArray[the second item of > thisLine] > end repeat > > The contents of each has a trailing comma, which can be removed by following > with > > repeat for each key thisKey in myArray > if the last character of myArray[thisKey] is comma \ > then delete the last character of myArray[thisKey] > end repeat > > > Regards, > > Gregory > > > On Mon, Nov 1, 2010, at 8:15 AM, use-revolution-request at lists.runrev.com > wrote: > >> I was wondering. If you have a list: >> >> apple,1 >> orange,1 >> grapefruit,1 >> tango,2 >> blue,3 >> green,3 >> yellow,3 >> zebra,9 >> >> And you want to convert it into an array: >> >> (apple,orange,grapefruit[1]) >> (tango[2]) >> (blue,green,yellow[3]) >> (zebra,[9]) >> >> What would be the easiest way. I'm always a little confused by arrays but >> it >> seems to me this should be a very simple and fast conversion. The array is >> intentionally a string "apple,orange,grapefruit" that results from key [1] > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From bonnmike at gmail.com Mon Nov 1 08:57:29 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 1 Nov 2010 06:57:29 -0600 Subject: Building array from list In-Reply-To: References: <20101101121515.C9DE2288382@mail.runrev.com> Message-ID: Oh, might want to set the array to empty prior to the repeat so you avoid duplicates if you run the conversion more than once. On 11/1/10, Mike Bonner wrote: > Can also do it as follows: > > repeat for each line tLine in field 1 > put the number of items in tdataA[(item 2 of tLine)] + 1 into > tItemNum > put item 1 of tLine into item tItemNum of tDataA[(item 2 of tLine)] > end repeat > > Can most likely combine the 2 lines of the repeat into a 1 liner, but > this way works fine. > > On 11/1/10, Gregory Lypny wrote: >> Hello William, >> >> This will give you an array with four keys corresponding to [1] fruit, >> [2] >> dances, [3] colours, and [4] animals. >> >> repeat for each line thisLine in theList >> put the first item of thisLine & comma after myArray[the second item of >> thisLine] >> end repeat >> >> The contents of each has a trailing comma, which can be removed by >> following >> with >> >> repeat for each key thisKey in myArray >> if the last character of myArray[thisKey] is comma \ >> then delete the last character of myArray[thisKey] >> end repeat >> >> >> Regards, >> >> Gregory >> >> >> On Mon, Nov 1, 2010, at 8:15 AM, use-revolution-request at lists.runrev.com >> wrote: >> >>> I was wondering. If you have a list: >>> >>> apple,1 >>> orange,1 >>> grapefruit,1 >>> tango,2 >>> blue,3 >>> green,3 >>> yellow,3 >>> zebra,9 >>> >>> And you want to convert it into an array: >>> >>> (apple,orange,grapefruit[1]) >>> (tango[2]) >>> (blue,green,yellow[3]) >>> (zebra,[9]) >>> >>> What would be the easiest way. I'm always a little confused by arrays >>> but >>> it >>> seems to me this should be a very simple and fast conversion. The array >>> is >>> intentionally a string "apple,orange,grapefruit" that results from key >>> [1] >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > From bill at bluewatermaritime.com Mon Nov 1 09:05:19 2010 From: bill at bluewatermaritime.com (william humphrey) Date: Mon, 1 Nov 2010 09:05:19 -0400 Subject: Building array from list In-Reply-To: References: <20101101121515.C9DE2288382@mail.runrev.com> Message-ID: Thanks. I will experiment with both. I knew there had to be a simple way. It's funny how so many coding solutions require lots of experience before you can look at the solution without getting a headache. From kray at sonsothunder.com Mon Nov 1 09:06:48 2010 From: kray at sonsothunder.com (Ken Ray) Date: Mon, 01 Nov 2010 08:06:48 -0500 Subject: Building array from list In-Reply-To: Message-ID: If you want to factor the code out so it's more reusable but a bit more code, you could do this: repeat for each line tLine in fld 1 appendArray tDataA,(item 2 of tLine),(item 1 of tLine) end repeat command appendArray @pArray,pKey,pValue if pArray[pKey] is empty then put pValue into pArray[pKey] else put "," & pValue after pArray[pKey] end if end appendArray If you *really* wanted to genericize 'appendArray', you could pass in an optional delimiter: command appendArray @pArray,pKey,pValue,pOpt_Delim if pOpt_Delim is empty then put "," into tDelim else put pOpt_Delim into tDelim if pArray[pKey] is empty then put pValue into pArray[pKey] else put tDelim & pValue after pArray[pKey] end if end appendArray Hope this helps, Ken On 11/1/10 7:55 AM, "Mike Bonner" wrote: > Can also do it as follows: > > repeat for each line tLine in field 1 > put the number of items in tdataA[(item 2 of tLine)] + 1 into tItemNum > put item 1 of tLine into item tItemNum of tDataA[(item 2 of tLine)] > end repeat > > Can most likely combine the 2 lines of the repeat into a 1 liner, but > this way works fine. > > On 11/1/10, Gregory Lypny wrote: >> Hello William, >> >> This will give you an array with four keys corresponding to [1] fruit, [2] >> dances, [3] colours, and [4] animals. >> >> repeat for each line thisLine in theList >> put the first item of thisLine & comma after myArray[the second item of >> thisLine] >> end repeat >> >> The contents of each has a trailing comma, which can be removed by following >> with >> >> repeat for each key thisKey in myArray >> if the last character of myArray[thisKey] is comma \ >> then delete the last character of myArray[thisKey] >> end repeat >> >> >> Regards, >> >> Gregory >> >> >> On Mon, Nov 1, 2010, at 8:15 AM, use-revolution-request at lists.runrev.com >> wrote: >> >>> I was wondering. If you have a list: >>> >>> apple,1 >>> orange,1 >>> grapefruit,1 >>> tango,2 >>> blue,3 >>> green,3 >>> yellow,3 >>> zebra,9 >>> >>> And you want to convert it into an array: >>> >>> (apple,orange,grapefruit[1]) >>> (tango[2]) >>> (blue,green,yellow[3]) >>> (zebra,[9]) >>> >>> What would be the easiest way. I'm always a little confused by arrays but >>> it >>> seems to me this should be a very simple and fast conversion. The array is >>> intentionally a string "apple,orange,grapefruit" that results from key [1] >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From zryip.theslug at gmail.com Mon Nov 1 09:20:26 2010 From: zryip.theslug at gmail.com (zryip theSlug) Date: Mon, 1 Nov 2010 14:20:26 +0100 Subject: LiveCode Linux version: graphic effects issue with the name of a push button In-Reply-To: <1288596948849-3021834.post@n4.nabble.com> References: <1288596948849-3021834.post@n4.nabble.com> Message-ID: On Mon, Nov 1, 2010 at 8:35 AM, Peter Alcibiades wrote: Peter, Thanks for your reply. > Yes, I get this too. ?Always assumed it was a feature, just the way it works. This is working like a charm with windows and OS X, not on linux. > How are you modifying the button graphic? I tried with any graphic effects available in the inspector: dropShadow, innerShadow, etc. If the button has an icon, the icon is correctly displayed but not the name of the button. >?What I have done is underlay a graphic with a transparent button not showing its name, but you'll have > thought of that. Thanks for the suggestion. Another solution could consist to have a field with the name over the opaque button itself. After several tests I obtained the effect I expected for the three platforms. This is something to take in care for cross-platform projects. Thanks. Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From palcibiades-first at yahoo.co.uk Mon Nov 1 10:11:01 2010 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Mon, 1 Nov 2010 07:11:01 -0700 (PDT) Subject: LiveCode Linux version: graphic effects issue with the name of a push button In-Reply-To: References: <1288596948849-3021834.post@n4.nabble.com> Message-ID: <1288620661440-3022209.post@n4.nabble.com> Zryip, another thing which is probably a Linux peculiarity, the DGH is asking should it do an upgrade. So you say yes, but then it can't open the file. Its probably permissions. The LC app is installed into /opt, and of course the user does not have write permissions in /opt, which is what the DGH will require. I'll have to try it as root but that's almost certainly what it is. No longer recall exactly how I got it to install in the first place, it was probably by copying into plug-ins as root. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/LiveCode-Linux-version-graphic-effects-issue-with-the-name-of-a-push-button-tp3021185p3022209.html Sent from the Revolution - User mailing list archive at Nabble.com. From palcibiades-first at yahoo.co.uk Mon Nov 1 10:26:53 2010 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Mon, 1 Nov 2010 14:26:53 +0000 Subject: a weird thing about registration, Linux Message-ID: <201011011426.53892.palcibiades-first@yahoo.co.uk> Has anyone else had this? I installed and registered my 4.5 copy. Works fine. Now, I want to update the Slug's package. It won't let me, most likely because its installed the app in /opt and as user I have no write privileges there. OK, no problem, become root with the root environment, fire up LC. Asks me to register! Think, OK, maybe this is due to having the root environment, so just do su. Same thing. OK, maybe this is something to do with root or root privileges, so log out, log on as another account. Same thing. This is weird. The only point of installing in /opt as opposed to /home/user would be to let all accounts have access to the app in a multi account environment, but it seems in some way to be restricting use of the app to just one account? Cannot be, surely? I can always do it manually, download the package, delete the existing plug in, so that's not a problem. The problem is if registration is restricting to just one account on a machine. To be clear, no-one else uses Rev on my machine, but for various reasons I do use multiple accounts on the same machine myself and can't see why I should have to register not only by machine, but by account. Anyone else getting this? Peter From zryip.theslug at gmail.com Mon Nov 1 11:03:17 2010 From: zryip.theslug at gmail.com (zryip theSlug) Date: Mon, 1 Nov 2010 16:03:17 +0100 Subject: LiveCode Linux version: graphic effects issue with the name of a push button In-Reply-To: <1288620661440-3022209.post@n4.nabble.com> References: <1288596948849-3021834.post@n4.nabble.com> <1288620661440-3022209.post@n4.nabble.com> Message-ID: On Mon, Nov 1, 2010 at 3:11 PM, Peter Alcibiades wrote: > > Zryip, another thing which is probably a Linux peculiarity, the DGH is asking > should it do an upgrade. ?So you say yes, but then it can't open the file. > > Its probably permissions. ?The LC app is installed into /opt, and of course > the user does not have write permissions in /opt, which is what the DGH will > require. ?I'll have to try it as root but that's almost certainly what it > is. ?No longer recall exactly how I got it to install in the first place, it > was probably by copying into plug-ins as root. Peter, You can define your own plugins folder and install DGH (or other plugins) in it with no problem of permissions. Follow these steps: 1) Create a folder in your disk to install additional LC stuff. For example a folder "My_LiveCode" located here: home/theslug/My_LiveCode 2) Check your LC preferences. In the "Files & memory" tab, you have the path for "User extensions". Select the folder you created in step 1). You should obtain something like: home/theslug/My_LiveCode 3) Quit LC 4) In the home/theslug/My_LiveCode folder, create a new folder named: Plugins (this name is case sensitive, so be sure to have P in uppercase) 5) Copy DGH in the Plugins folder located here: home/theslug/My_LiveCode/Plugins 6) Launch LC. DGH should ask for an update 7) Confirm the update. All should be working as expected. Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From lfredricks at proactive-intl.com Mon Nov 1 11:09:00 2010 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Mon, 1 Nov 2010 08:09:00 -0700 Subject: Stress-testing SQLite In-Reply-To: <3AB94D98-2E41-4615-9751-14CDA9EAC35B@free.fr> References: <4CCC8AA7.4030408@fourthworld.com><174697545359.20101030141836@ahsoftware.net><2D82BABD6D5749C38F994724D6CDB49C@GATEWAY> <3AB94D98-2E41-4615-9751-14CDA9EAC35B@free.fr> Message-ID: <605A069111D442F7BF31A903AED7BF87@GATEWAY> > > Check out information from one user from about eight years > ago (!) in > > building a kiosk project, comparing Valentina with MS Access. Of > > course, you probably wouldn't do this with Access today, but worth > > considering is that this is with major hardware constraints, the > > overhead of Director, and that since then most systems of Valentina > > are exponentially faster now and we've added a huge number > of other improvements (64 bit version, etc). > > Seems really interesting. Is Valentina server able to run as > a LiveCode server companion ? Is it way to install it in an > on-rev account ? Right now, no, but its something that will come in time. Its something both we and Runtime need to implement. > Went Access ever some thing else than a poor and unreliable > way to store data ? I never used it in a production-state > project... I liked to have to do with direct-to-disk > flat-file-based MC/Rev db, SQLServer (a Sybase technology, as > anyone should remember), Sybase ASE, PostgreSQL or even > Oracle 8i to 11g. I never got pleasure and confidence to run > MySQL but it seems i will get good time in testing Valentina, > hopefully, in the near. Using Access for anything other than a simple desktop type db never would have occurred to me either, but a lot of folks will build custom front ends with its built in script or VB, or even try to share it on a network or server. In fact, a friend of mine in the federal government (USA) told me about several projects that cost millions of dollars in labor, but in fact were very simple VB + Access projects. I am sometimes shocked by some of the questions we get from developers who want to implement a structure that dramatically increases the chance of data corruption, often to shave a very few bucks off a project in license fees or shave off a few hours of work. Best regards, Lynn Fredricks President Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server From bonnmike at gmail.com Mon Nov 1 11:15:38 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 1 Nov 2010 09:15:38 -0600 Subject: a weird thing about registration, Linux In-Reply-To: <201011011426.53892.palcibiades-first@yahoo.co.uk> References: <201011011426.53892.palcibiades-first@yahoo.co.uk> Message-ID: My guess would be that it puts a dot file in your user account on first run that manages prefs and registration info. Since you don't run it as root, no .file, same for all other users. Still leaves it as being a pain in the tookus to set it up as multiple users, but i'm curious... It's been a while, but isn't there a skeleton directory that holds default files to add when an account is created? Did livecode add one there? If not, and you copy your file there it should solve the problem for new accounts, but unfortunately doesn't keep you from having to beat already created accounts into submission manually for now. On 11/1/10, Peter Alcibiades wrote: > Has anyone else had this? > > I installed and registered my 4.5 copy. Works fine. Now, I want to update > the Slug's package. It won't let me, most likely because its installed the > app in /opt and as user I have no write privileges there. > > OK, no problem, become root with the root environment, fire up LC. Asks me > to register! > > Think, OK, maybe this is due to having the root environment, so just do su. > Same thing. > > OK, maybe this is something to do with root or root privileges, so log out, > log on as another account. Same thing. > > This is weird. The only point of installing in /opt as opposed to > /home/user would be to let all accounts have access to the app in a multi > account environment, but it seems in some way to be restricting use of the > app to just one account? Cannot be, surely? > > I can always do it manually, download the package, delete the existing plug > in, so that's not a problem. The problem is if registration is restricting > to just one account on a machine. To be clear, no-one else uses Rev on my > machine, but for various reasons I do use multiple accounts on the same > machine myself and can't see why I should have to register not only by > machine, but by account. Anyone else getting this? > > Peter > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From bonnmike at gmail.com Mon Nov 1 11:20:40 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 1 Nov 2010 09:20:40 -0600 Subject: a weird thing about registration, Linux In-Reply-To: References: <201011011426.53892.palcibiades-first@yahoo.co.uk> Message-ID: Oh, another thought. If it WILL keep seperate preferences/settings for each user, you can change where it points for your plugins, and move it to a folder you Do have write permissions to, but then that means every plugin change you would hve to update the plugin on all installations. Since it sounds like its only you, could point it to a dir that users have a right to, or setup a specific group for livecode user accounts and set group permissions on that. That way I believe all accounts could update plugins. Hmm. In fact, you could setup 1 account with write privelages to a director, and setup a group or world with read permissions so that you have only 1 account that can trash your plugins folder, but all other accounts can read them. On 11/1/10, Mike Bonner wrote: > My guess would be that it puts a dot file in your user account on > first run that manages prefs and registration info. Since you don't > run it as root, no .file, same for all other users. Still leaves it > as being a pain in the tookus to set it up as multiple users, but i'm > curious... It's been a while, but isn't there a skeleton directory > that holds default files to add when an account is created? Did > livecode add one there? If not, and you copy your file there it should > solve the problem for new accounts, but unfortunately doesn't keep you > from having to beat already created accounts into submission manually > for now. > > On 11/1/10, Peter Alcibiades wrote: >> Has anyone else had this? >> >> I installed and registered my 4.5 copy. Works fine. Now, I want to >> update >> the Slug's package. It won't let me, most likely because its installed >> the >> app in /opt and as user I have no write privileges there. >> >> OK, no problem, become root with the root environment, fire up LC. Asks >> me >> to register! >> >> Think, OK, maybe this is due to having the root environment, so just do >> su. >> Same thing. >> >> OK, maybe this is something to do with root or root privileges, so log >> out, >> log on as another account. Same thing. >> >> This is weird. The only point of installing in /opt as opposed to >> /home/user would be to let all accounts have access to the app in a multi >> account environment, but it seems in some way to be restricting use of >> the >> app to just one account? Cannot be, surely? >> >> I can always do it manually, download the package, delete the existing >> plug >> in, so that's not a problem. The problem is if registration is >> restricting >> to just one account on a machine. To be clear, no-one else uses Rev on >> my >> machine, but for various reasons I do use multiple accounts on the same >> machine myself and can't see why I should have to register not only by >> machine, but by account. Anyone else getting this? >> >> Peter >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > From tkuypers at telenet.be Mon Nov 1 11:40:20 2010 From: tkuypers at telenet.be (tkuypers at telenet.be) Date: Mon, 1 Nov 2010 16:40:20 +0100 Subject: Where's my keyboard shortcut for "import as control"? Message-ID: <0374FAFF-1812-4F13-826A-5C8E92F43E0A@telenet.be> Could be me, but I'm missing the keyboard shortcut for importing an image into a stack... It was still there in LiveCode 4.5.0 build 1080, but it is gone in the versions after that. (at least on my Mac, didn't try Windows...) Can someone confirm this? Ton Kuypers Met vriendelijke groeten, Ton Kuypers From palcibiades-first at yahoo.co.uk Mon Nov 1 11:51:04 2010 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Mon, 1 Nov 2010 08:51:04 -0700 (PDT) Subject: a weird thing about registration, Linux In-Reply-To: References: <201011011426.53892.palcibiades-first@yahoo.co.uk> Message-ID: <1288626664056-3022361.post@n4.nabble.com> Yes, there is a .revolution folder. And it does indeed have a cryptic preferences text file in it. But what I'm having trouble understanding is that if I just acquire root permissions, by doing su rather than doing su - Then I retain the same home directory. So if I then fire up rev, why does it not find the preference files? Is it somehow distinguishing between me logged on with and without root privileges? And why on earth would they want to do that? I can just about understand that if I do su -, which places me in the root home directory, it might have some trouble. But I can't understand why if, as myself, I simply acquire root privileges, it should not find all its files? Peter -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/a-weird-thing-about-registration-Linux-tp3022230p3022361.html Sent from the Revolution - User mailing list archive at Nabble.com. From MikeKerner at roadrunner.com Mon Nov 1 12:05:45 2010 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 1 Nov 2010 12:05:45 -0400 Subject: Keyboards In-Reply-To: References: <1D4BE714-DFC7-4A54-9E42-924500AD23C4@aol.com> <1288055706854-3013008.post@n4.nabble.com> Message-ID: Final note on this thread before I put it down to the archives and posterity for the next person looking for a kb. I got a Das Keyboard Silent Ultimate on Friday. It's mechanical, but it eliminates the "click" portion of the sound that an "M" style mechanical keyboard makes. Instead you hear the riser sliding in and out of the bushing, and the key bottoming out at the end. It's still a lot louder than a membrane keyboard. Most of the mechanicals that I've checked out require 70g of force to activate the key. The Silent requires 50, so it's a lighter feel, if you want that. The Ultimate is so named because it has no labels on any of the keys, again if you want that. I love, love, love the feel. I'm glad that I'm back on a mechanical. I did a lot of keyboarding since I've gotten it, and I'm really happy that I bought it. From zryip.theslug at gmail.com Mon Nov 1 12:53:50 2010 From: zryip.theslug at gmail.com (zryip theSlug) Date: Mon, 1 Nov 2010 17:53:50 +0100 Subject: a weird thing about registration, Linux In-Reply-To: <201011011426.53892.palcibiades-first@yahoo.co.uk> References: <201011011426.53892.palcibiades-first@yahoo.co.uk> Message-ID: On Mon, Nov 1, 2010 at 3:26 PM, Peter Alcibiades wrote: > Has anyone else had this? > > I installed and registered my 4.5 copy. ?Works fine. ?Now, I want to update > the Slug's package. ?It won't let me, most likely because its installed the > app in /opt and as user I have no write privileges there. > > OK, no problem, become root with the root environment, fire up LC. ?Asks me > to register! > > Think, OK, maybe this is due to having the root environment, so just do su. > Same thing. > > OK, maybe this is something to do with root or root privileges, so log out, > log on as another account. ?Same thing. > > This is weird. ?The only point of installing in /opt as opposed to > /home/user would be to let all accounts have access to the app in a multi > account environment, but it seems in some way to be restricting use of the > app to just one account? ?Cannot be, surely? > > I can always do it manually, download the package, delete the existing plug > in, so that's not a problem. ?The problem is if registration is restricting > to just one account on a machine. ?To be clear, no-one else uses Rev on my > machine, but for various reasons I do use multiple accounts on the same > machine myself and can't see why I should have to register not only by > machine, but by account. ?Anyone else getting this? > > Peter Peter, I suppose that the solution I replied in the other thread will not working for multi-accounts. For a single user all seems working as expected. I have no problem with the LC license. I'm assuming the license is probably stored somewhere and linked to the account the application is opened. Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From bobs at twft.com Mon Nov 1 12:54:26 2010 From: bobs at twft.com (Bob Sneidar) Date: Mon, 1 Nov 2010 09:54:26 -0700 Subject: Escape key doesn't work with fullScreen? In-Reply-To: References: <4CCDCB89.8010009@fourthworld.com> <4CCE3061.9040804@hyperactivesw.com> Message-ID: <848050D9-E4F9-49D2-A962-342231A608DA@twft.com> I have never seen that bug. Bob On Oct 31, 2010, at 8:16 PM, Mike Bonner wrote: > I have that problem crop up quite often. My brother tells me its a > problem between the keyboard and chair. I've never been quite sure > what he meant by that.. > > On 10/31/10, J. Landman Gay wrote: >> On 10/31/10 3:03 PM, Richard Gaskin wrote: >> >>> This cognition bug is not fixable by RunRev, and has been marked as a >>> duplicate of several related reports. ;) >> >> LOL! You're talking about some of my reports, right? :) >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From pmbrig at gmail.com Mon Nov 1 13:03:05 2010 From: pmbrig at gmail.com (Peter Brigham MD) Date: Mon, 1 Nov 2010 13:03:05 -0400 Subject: Escape key doesn't work with fullScreen? In-Reply-To: <848050D9-E4F9-49D2-A962-342231A608DA@twft.com> References: <4CCDCB89.8010009@fourthworld.com> <4CCE3061.9040804@hyperactivesw.com> <848050D9-E4F9-49D2-A962-342231A608DA@twft.com> Message-ID: At the risk of repeating something posted to this list last year.... I hate this damn computer I wish that I could sell it. It never does what I want it to, Only what I tell it! -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Nov 1, 2010, at 12:54 PM, Bob Sneidar wrote: > I have never seen that bug. it> > > Bob > > > On Oct 31, 2010, at 8:16 PM, Mike Bonner wrote: > >> I have that problem crop up quite often. My brother tells me its a >> problem between the keyboard and chair. I've never been quite sure >> what he meant by that.. >> >> On 10/31/10, J. Landman Gay wrote: >>> On 10/31/10 3:03 PM, Richard Gaskin wrote: >>> >>>> This cognition bug is not fixable by RunRev, and has been marked >>>> as a >>>> duplicate of several related reports. ;) >>> >>> LOL! You're talking about some of my reports, right? :) >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >>> _______________________________________________ >>> use-revolution mailing list >>> use-revolution at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription >>> preferences: >>> http://lists.runrev.com/mailman/listinfo/use-revolution >>> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From bonnmike at gmail.com Mon Nov 1 13:06:07 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 1 Nov 2010 11:06:07 -0600 Subject: a weird thing about registration, Linux In-Reply-To: References: <201011011426.53892.palcibiades-first@yahoo.co.uk> Message-ID: Well now i'm curious. If you su, then cd ~ then pwd, it doesn't switch you to the root home account? I just setup dsl in a virtual machine and tried it, the home directory changes to match root when su'd. not su -. If nothing else, check your system variables, for me, after su, my HOME variable is changed to /root (thats where it is on DSL) I wonder, if you set things up so you can sudo livecode can you then update? I did a check on osx, if I do this. sudo cd ~;pwd it retains my home folder. I don't have sudo configured on my virtual machine so can't test there, but if it behaves the same then sudo livecode should run it with elevated permissions allowing the update to go forward. I think. On 11/1/10, zryip theSlug wrote: > On Mon, Nov 1, 2010 at 3:26 PM, Peter Alcibiades > wrote: >> Has anyone else had this? >> >> I installed and registered my 4.5 copy. ?Works fine. ?Now, I want to >> update >> the Slug's package. ?It won't let me, most likely because its installed >> the >> app in /opt and as user I have no write privileges there. >> >> OK, no problem, become root with the root environment, fire up LC. ?Asks >> me >> to register! >> >> Think, OK, maybe this is due to having the root environment, so just do >> su. >> Same thing. >> >> OK, maybe this is something to do with root or root privileges, so log >> out, >> log on as another account. ?Same thing. >> >> This is weird. ?The only point of installing in /opt as opposed to >> /home/user would be to let all accounts have access to the app in a multi >> account environment, but it seems in some way to be restricting use of the >> app to just one account? ?Cannot be, surely? >> >> I can always do it manually, download the package, delete the existing >> plug >> in, so that's not a problem. ?The problem is if registration is >> restricting >> to just one account on a machine. ?To be clear, no-one else uses Rev on my >> machine, but for various reasons I do use multiple accounts on the same >> machine myself and can't see why I should have to register not only by >> machine, but by account. ?Anyone else getting this? >> >> Peter > > Peter, > > I suppose that the solution I replied in the other thread will not > working for multi-accounts. > For a single user all seems working as expected. I have no problem > with the LC license. I'm assuming the license is probably stored > somewhere and linked to the account the application is opened. > > > Regards, > -- > -Zryip TheSlug- wish you the best! 8) > http://www.aslugontheroad.co.cc > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From bobs at twft.com Mon Nov 1 13:12:03 2010 From: bobs at twft.com (Bob Sneidar) Date: Mon, 1 Nov 2010 10:12:03 -0700 Subject: [OT] Browsing the internet... It is safer from Linux? In-Reply-To: <1288516922779-3020955.post@n4.nabble.com> References: <4CCD139B.7050208@fourthworld.com> <1288516922779-3020955.post@n4.nabble.com> Message-ID: <993F8333-D2DA-4DE0-BEC1-EA09C267B92E@twft.com> Peter, with all due respect, in every case except the most recent, the "hacks" involved convincing a user to "click here on this button, enter your admin user name and password and click OK. Don't worry we are only trying to help." I don't deny that there have been vulnerabilities related to browsers, java, even PDF's and Flash. But these are (for the most part) doors opened by someone else's software, NOT vulnerabilities in the core OS. The other (and primary) avenue of exploitation involves downloading and installing "cracked" software that a user gets from a warez site or some such place. Those who get hacked by this route are imbeciles and deserve to have their bank accounts razed (showing restraint in the words I choose here.) Let's eliminate these as "hacks" since the users willingly install illegal software, and no one would put up for a moment an OS that refused to do what you told it to do because it thought what you were telling it to do was "dangerous". So look here, can we all just agree that anything requiring a user to enter his admin credentials is NOT A HACK? Can we agree at least that this is NOT A VULNERABILITY? Secondly, can we agree that vulnerabilities in software that is NOT a part of the core OS is not a flaw in the core OS? If you agree to these things, then you cannot possibly characterize Mac OS X as a "dead duck" fairly, without also admitting that every other OS ever written or will be written is by the same token exactly as "dead a duck" as the Mac OS. Let's play fair when talking about such things. In such matters, truth is more important that who's side you take, or whose OS you prefer. Bob On Oct 31, 2010, at 2:22 AM, Peter Alcibiades wrote: > > Yes, the interesting question, don't know the answer, is if you set up > windows in the same way Linux is normally set up, limited user accounts and > so on, how much more vulnerable would it be? Those hack fests they have > every so often suggest that OSX is a dead duck almost right away, Windows > not long after, and Linux holds out longest. But I don't know what the > starting setup is on the windows installation. > > Peter > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Browsing-the-internet-It-is-safer-from-Linux-tp3020657p3020955.html > Sent from the Revolution - User mailing list archive at Nabble.com. > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From bobs at twft.com Mon Nov 1 13:17:22 2010 From: bobs at twft.com (Bob Sneidar) Date: Mon, 1 Nov 2010 10:17:22 -0700 Subject: [OT] Browsing the internet... It is safer from Linux? In-Reply-To: References: Message-ID: <2E9BC474-225E-4080-948C-709B0D0629AC@twft.com> Hah! I made the same mistake, but caught myself mid-reply. :-) Bob On Oct 31, 2010, at 1:07 PM, Roger.E.Eller at sealedair.com wrote: >> Roger.E.Eller wrote: >>> It is in many cases the virus makers themselves who infect Windows, >>> and then use FAKE anti-virus messages that offer to cleanse your >>> machine "for a fee". > > Richard Gaskin replied: >> >> URL? >> >> I'm sometimes prone to notions that seem conspiratorial myself, but >> while this meme has been floating around for a few years I've not yet >> been able to find any actual case where this has been demonstrated to >> have happened. > > No no no no... I said VIRUS MAKERS, not ANTI-virus makers. One of the > most common viruses is called "Anti-Virus 2010", which spoofs a window to > look almost identical to a real antivirus window. No conspriacy, just > tricky devils. Google it, but be careful, some of the rusults can lead you > to an infecting site. > > ~Roger > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From devin_asay at byu.edu Mon Nov 1 13:34:05 2010 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 1 Nov 2010 11:34:05 -0600 Subject: Where's my keyboard shortcut for "import as control"? In-Reply-To: <0374FAFF-1812-4F13-826A-5C8E92F43E0A@telenet.be> References: <0374FAFF-1812-4F13-826A-5C8E92F43E0A@telenet.be> Message-ID: <1C4526B6-8F77-456E-A1DC-43903525FCDF@byu.edu> On Nov 1, 2010, at 9:40 AM, tkuypers at telenet.be wrote: > Could be me, but I'm missing the keyboard shortcut for importing an image into a stack... > It was still there in LiveCode 4.5.0 build 1080, but it is gone in the versions after that. > (at least on my Mac, didn't try Windows...) > > Can someone confirm this? > > Ton Kuypers Ton, I noticed it and reported it: http://quality.runrev.com/qacenter/show_bug.cgi?id=9160 It's now been confirmed, so I hope it reappears in 4.5.1. Groetjes, Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From andre at andregarzia.com Mon Nov 1 13:53:45 2010 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 1 Nov 2010 15:53:45 -0200 Subject: Where's my keyboard shortcut for "import as control"? In-Reply-To: <1C4526B6-8F77-456E-A1DC-43903525FCDF@byu.edu> References: <0374FAFF-1812-4F13-826A-5C8E92F43E0A@telenet.be> <1C4526B6-8F77-456E-A1DC-43903525FCDF@byu.edu> Message-ID: others shortcuts are missing too... I can't seem to find CMD+K for stack inspector On Mon, Nov 1, 2010 at 3:34 PM, Devin Asay wrote: > > On Nov 1, 2010, at 9:40 AM, tkuypers at telenet.be wrote: > > > Could be me, but I'm missing the keyboard shortcut for importing an image > into a stack... > > It was still there in LiveCode 4.5.0 build 1080, but it is gone in the > versions after that. > > (at least on my Mac, didn't try Windows...) > > > > Can someone confirm this? > > > > Ton Kuypers > > Ton, > > I noticed it and reported it: > > http://quality.runrev.com/qacenter/show_bug.cgi?id=9160 > > It's now been confirmed, so I hope it reappears in 4.5.1. > > Groetjes, > > Devin > > > Devin Asay > Humanities Technology and Research Support Center > Brigham Young University > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- http://www.andregarzia.com All We Do Is Code. From jacque at hyperactivesw.com Mon Nov 1 13:57:16 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 01 Nov 2010 12:57:16 -0500 Subject: Where's my keyboard shortcut for "import as control"? In-Reply-To: <0374FAFF-1812-4F13-826A-5C8E92F43E0A@telenet.be> References: <0374FAFF-1812-4F13-826A-5C8E92F43E0A@telenet.be> Message-ID: <4CCEFF7C.3050908@hyperactivesw.com> On 11/1/10 10:40 AM, tkuypers at telenet.be wrote: > Could be me, but I'm missing the keyboard shortcut for importing an image into a stack... > It was still there in LiveCode 4.5.0 build 1080, but it is gone in the versions after that. > (at least on my Mac, didn't try Windows...) > > Can someone confirm this? Yes, I miss it too. I used it all the time, so I'm considering hacking the IDE to add it back. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Mon Nov 1 14:15:15 2010 From: bobs at twft.com (Bob Sneidar) Date: Mon, 1 Nov 2010 11:15:15 -0700 Subject: [OT] Browsing the internet... It is safer from Linux? In-Reply-To: <8279A107-A4FF-4344-A945-695ECFC4F5B2@free.fr> References: <4CCD1899.107@gmail.com> <1288591908940-3021793.post@n4.nabble.com> <8279A107-A4FF-4344-A945-695ECFC4F5B2@free.fr> Message-ID: Let me weigh in one more time, for those who think that setting up a machine with all the security measures you can, but without using some kind of anti-virus/anti-spyware solution is "safe enough". Recently, our radio station web site was hacked via a simple php exploit. The people who we contracted to build the web site for us did absolutely NO hardening of the site, and thus we have been vulnerable all this time. The hackers (somewhere in Europe it turns out) redirected to their site which popped up one of those fake "Your computer has been compromised! Click here to clean your system" drive by exploits. The people running PC's were already infected by going to the site, before even clicking on the "Clean Now" button. No mac users were infected, primarily because the site was not written to compromise Mac's but also because it's really really hard to drive by compromise a Mac if the OS is up to date, along with Java, your browser, flash etc. The window of opportunity is just too small for it to be worthwhile. Windows users with up to date OS and software, along with an installed AV product, were also not infected. Finally, it took less than 24 hours for our domain to get blacklisted, so at that point only people without AV were getting infected. No one else could actually get there. My point is this. Modern AV software uses multiple methods to protect an OS. One is "Suspicious Activity" reporting. Another is signature based. Another is blacklist subscriptions. Another is "Heuristics" (a fancy way of saying, "You look like malware we know about so we are going to block you just to be safe"). An up-to-date OS and 3rd party software strategy, safe browsing habits (no porn, no warez etc) COMBINED with a good AV product, is enough to protect from anything except the most insidious zero day exploit. And the window of opportunity is so small in those cases, that your odds of getting compromised is almost nil. Honestly, if I know that my neighbors are home break in experts, even if I have an electric fence, and the latest in home alarm systems, I am not going to turn down a guard dog or two, just because I feel "safe enough". Bob Sneidar IT Manager Logos Management Calvary Chapel CM From palcibiades-first at yahoo.co.uk Mon Nov 1 14:25:12 2010 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Mon, 1 Nov 2010 11:25:12 -0700 (PDT) Subject: a weird thing about registration, Linux In-Reply-To: References: <201011011426.53892.palcibiades-first@yahoo.co.uk> Message-ID: <1288635912298-3022581.post@n4.nabble.com> peter at xxxx:/opt/runrev/livecode-4.5$ ls Documentation livecode.x86 Resources Runtime Externals Plugins revpdfprinter.so Toolset License Agreement.txt Release Notes.pdf revsecurity.so peter at xxxx:/opt/runrev/livecode-4.5$ ./livecode.x86 peter at xxxx:/opt/runrev/livecode-4.5$ pwd /opt/runrev/livecode-4.5 peter at xxxx:/opt/runrev/livecode-4.5$ su Password: xxxx:/opt/runrev/livecode-4.5# pwd /opt/runrev/livecode-4.5 xxxx:/opt/runrev/livecode-4.5# ./livecode.x86 xxxx:/opt/runrev/livecode-4.5# So, if you do su the working directory remains the same. If you are in the working directory without su, Rev starts. If you are in the same working directory after having done su, it asks you to register. Don't get it. The difference of course is that when it works, its identifying the user: peter at xxxx:/opt/runrev/livecode-4.5$ ./livecode.x86 as opposed to in the other case, where the prompt is just xxxx:/opt/runrev/livecode-4.5# ./livecode.x86 So the difference is, it is looking for the registration in a particular user home folder? But in that case, why install in /opt? And why restrict the use to one account on a multi account system? Makes no sense, no-one else does it, do they? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/a-weird-thing-about-registration-Linux-tp3022230p3022581.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Mon Nov 1 14:25:29 2010 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 1 Nov 2010 11:25:29 -0700 (PDT) Subject: [OT] Browsing the internet... It is safer from Linux? In-Reply-To: References: <4CCD1899.107@gmail.com> <1288591908940-3021793.post@n4.nabble.com> Message-ID: <1288635929888-3022582.post@n4.nabble.com> Hi Chipp, Chipp Walters wrote: > > AVG does regular scans of my drives. > [snip] > And seeing how I make my living on my Windows machine, > and have since around 1994 (before that it was a Mac), > I would find it very debilitating to have to take it off the > network because I was scared of malware. > Completely agree. :-) Chipp Walters wrote: > > [snip] > But, if anyone is very concerned of such attacks, > than by all means unplug it from the network. > And NEVER plug a USB drive into it. And it's always a > good idea to unplug it from the wall during a storm-- > while you stand under a doorway or curl up fetal-like > in the tub-- just to be super safe. > This last part sounds like an idea for a comedy sketch in Satuday Night Live (using dramatic background music) or Mad Magazine (with a suitable drawing style) ROTFL... :-D Anyway, probably my reaction is a direct result of hearing these podcast from "Security Now!" http://www.grc.com/securitynow.htm If... you do not feel deeply concerned about your Windows OS security (after hearing many of their podcast), then... you are definitely more confident than me about the security of your System. end if... What does everybody think about these security topics explained in these podcasts? Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Browsing-the-internet-It-is-safer-from-Linux-tp3020657p3022582.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Mon Nov 1 14:33:20 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 1 Nov 2010 12:33:20 -0600 Subject: a weird thing about registration, Linux In-Reply-To: <1288635912298-3022581.post@n4.nabble.com> References: <201011011426.53892.palcibiades-first@yahoo.co.uk> <1288635912298-3022581.post@n4.nabble.com> Message-ID: Working directory, and home directory are different things. It's looking for the .Revolution file on the home directory, working directory makes no difference, and as soon as you su, the home directory is changed to roots home. And yeah, not really an effective solution. For all user install, the reg info should be kept seperate and used for all users, with only individual user preferences stored in ~/.revolution. To make it seemless rev needs to set up a default prefs file that is automagically placed in the home directory, with registration intact, or as I mentioned, seperate the registration out and have the home dir only store preferences, not reg info. On 11/1/10, Peter Alcibiades wrote: > > peter at xxxx:/opt/runrev/livecode-4.5$ ls > Documentation livecode.x86 Resources Runtime > Externals Plugins revpdfprinter.so Toolset > License Agreement.txt Release Notes.pdf revsecurity.so > peter at xxxx:/opt/runrev/livecode-4.5$ ./livecode.x86 > peter at xxxx:/opt/runrev/livecode-4.5$ pwd > /opt/runrev/livecode-4.5 > peter at xxxx:/opt/runrev/livecode-4.5$ su > Password: > xxxx:/opt/runrev/livecode-4.5# pwd > /opt/runrev/livecode-4.5 > xxxx:/opt/runrev/livecode-4.5# ./livecode.x86 > xxxx:/opt/runrev/livecode-4.5# > > > So, if you do su the working directory remains the same. If you are in the > working directory without su, Rev starts. If you are in the same working > directory after having done su, it asks you to register. > > Don't get it. The difference of course is that when it works, its > identifying the user: > > peter at xxxx:/opt/runrev/livecode-4.5$ ./livecode.x86 > > as opposed to in the other case, where the prompt is just > > xxxx:/opt/runrev/livecode-4.5# ./livecode.x86 > > So the difference is, it is looking for the registration in a particular > user home folder? But in that case, why install in /opt? And why restrict > the use to one account on a multi account system? Makes no sense, no-one > else does it, do they? > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/a-weird-thing-about-registration-Linux-tp3022230p3022581.html > Sent from the Revolution - User mailing list archive at Nabble.com. > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From devin_asay at byu.edu Mon Nov 1 14:37:13 2010 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 1 Nov 2010 12:37:13 -0600 Subject: Where's my keyboard shortcut for "import as control"? In-Reply-To: <4CCEFF7C.3050908@hyperactivesw.com> References: <0374FAFF-1812-4F13-826A-5C8E92F43E0A@telenet.be> <4CCEFF7C.3050908@hyperactivesw.com> Message-ID: <13E1BCA3-4368-4DD2-9623-B6E3B10B7690@byu.edu> On Nov 1, 2010, at 11:57 AM, J. Landman Gay wrote: > On 11/1/10 10:40 AM, tkuypers at telenet.be wrote: >> Could be me, but I'm missing the keyboard shortcut for importing an image into a stack... >> It was still there in LiveCode 4.5.0 build 1080, but it is gone in the versions after that. >> (at least on my Mac, didn't try Windows...) >> >> Can someone confirm this? > > Yes, I miss it too. I used it all the time, so I'm considering hacking > the IDE to add it back. :) Wow, I didn't notice this missing until you guys mentioned it. I've added it to the bug report. Also missing are: Shift+Cmd+S and Shift+Cmd+C for opening the stack and card scripts, although in the latter two cases the shortcut works, but doesn't appear in the menu. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From psahores at free.fr Mon Nov 1 14:52:35 2010 From: psahores at free.fr (Pierre Sahores) Date: Mon, 1 Nov 2010 19:52:35 +0100 Subject: Stress-testing SQLite In-Reply-To: <605A069111D442F7BF31A903AED7BF87@GATEWAY> References: <4CCC8AA7.4030408@fourthworld.com><174697545359.20101030141836@ahsoftware.net><2D82BABD6D5749C38F994724D6CDB49C@GATEWAY> <3AB94D98-2E41-4615-9751-14CDA9EAC35B@free.fr> <605A069111D442F7BF31A903AED7BF87@GATEWAY> Message-ID: <6D5AE766-6497-4FDF-9E62-365E9599AF3F@free.fr> Le 1 nov. 2010 ? 16:09, Lynn Fredricks a ?crit : >>> Check out information from one user from about eight years >> ago (!) in >>> building a kiosk project, comparing Valentina with MS Access. Of >>> course, you probably wouldn't do this with Access today, but worth >>> considering is that this is with major hardware constraints, the >>> overhead of Director, and that since then most systems of Valentina >>> are exponentially faster now and we've added a huge number >> of other improvements (64 bit version, etc). >> >> Seems really interesting. Is Valentina server able to run as >> a LiveCode server companion ? Is it way to install it in an >> on-rev account ? > > Right now, no, but its something that will come in time. Its something both > we and Runtime need to implement. > Good to know. Thanks. I will seriously test it at that time to see if i can improve some method tasks (automation) in using it. >> Went Access ever some thing else than a poor and unreliable >> way to store data ? I never used it in a production-state >> project... I liked to have to do with direct-to-disk >> flat-file-based MC/Rev db, SQLServer (a Sybase technology, as >> anyone should remember), Sybase ASE, PostgreSQL or even >> Oracle 8i to 11g. I never got pleasure and confidence to run >> MySQL but it seems i will get good time in testing Valentina, >> hopefully, in the near. > > Using Access for anything other than a simple desktop type db never would > have occurred to me either, but a lot of folks will build custom front ends > with its built in script or VB, or even try to share it on a network or > server. In fact, a friend of mine in the federal government (USA) told me > about several projects that cost millions of dollars in labor, but in fact > were very simple VB + Access projects. > > I am sometimes shocked by some of the questions we get from developers who > want to implement a structure that dramatically increases the chance of data > corruption, often to shave a very few bucks off a project in license fees or > shave off a few hours of work. ;-) Best Regards, Pierre > > Best regards, > > Lynn Fredricks > President > Paradigma Software > http://www.paradigmasoft.com > > Valentina SQL Server: The Ultra-fast, Royalty Free Database Server > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- Pierre Sahores mobile : (33) 6 03 95 77 70 www.woooooooords.com www.sahores-conseil.com From chipp at chipp.com Mon Nov 1 15:19:54 2010 From: chipp at chipp.com (Chipp Walters) Date: Mon, 1 Nov 2010 14:19:54 -0500 Subject: [OT] Browsing the internet... It is safer from Linux? In-Reply-To: <1288635929888-3022582.post@n4.nabble.com> References: <4CCD1899.107@gmail.com> <1288591908940-3021793.post@n4.nabble.com> <1288635929888-3022582.post@n4.nabble.com> Message-ID: Alejandro, Steve Gibson is a well known security consult who makes his living dealing in cyber security-- and he lives right here in Austin, TX. I've known him for a long time, and he's very respected in the industry, as is Leo Laporte. Steve's extremely detail oriented to the point of compulsion about security, and his software attempts to point out any potential vulnerability, no matter how small. I haven't tested my system with his ShieldsUp! diagnosis software for at least a couple years now-- and when I just did, I received a perfect score. Like Bob has said, any platform with any security configuration, can be exploited using social hacks. So, like the great majority (75+% worldwide?) of users, I continue to use Windows. I am sorry you have found it too insecure and problematic to use. Perhaps you should consider running it inside a virtual instance? Or, download AVG and learn about how to avoid social hacks. On Mon, Nov 1, 2010 at 1:25 PM, Alejandro Tejada wrote: > > Hi Chipp, > > > Chipp Walters wrote: > > Anyway, probably my reaction is a direct result of > hearing these podcast from "Security Now!" > http://www.grc.com/securitynow.htm > > If... > you do not feel deeply concerned about your Windows > OS security (after hearing many of their podcast), > then... > you are definitely more confident than me > about the security of your System. > end if... > > What does everybody think about these security topics > explained in these podcasts? > From bonnmike at gmail.com Mon Nov 1 16:07:12 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 1 Nov 2010 14:07:12 -0600 Subject: a weird thing about registration, Linux In-Reply-To: References: <201011011426.53892.palcibiades-first@yahoo.co.uk> <1288635912298-3022581.post@n4.nabble.com> Message-ID: Try su -m That leaves env vars the same, and should allow you to do your upgrade since home is still home. On 11/1/10, Mike Bonner wrote: > Working directory, and home directory are different things. It's > looking for the .Revolution file on the home directory, working > directory makes no difference, and as soon as you su, the home > directory is changed to roots home. > > And yeah, not really an effective solution. For all user install, the > reg info should be kept seperate and used for all users, with only > individual user preferences stored in ~/.revolution. To make it > seemless rev needs to set up a default prefs file that is > automagically placed in the home directory, with registration intact, > or as I mentioned, seperate the registration out and have the home dir > only store preferences, not reg info. > > On 11/1/10, Peter Alcibiades wrote: >> >> peter at xxxx:/opt/runrev/livecode-4.5$ ls >> Documentation livecode.x86 Resources Runtime >> Externals Plugins revpdfprinter.so Toolset >> License Agreement.txt Release Notes.pdf revsecurity.so >> peter at xxxx:/opt/runrev/livecode-4.5$ ./livecode.x86 >> peter at xxxx:/opt/runrev/livecode-4.5$ pwd >> /opt/runrev/livecode-4.5 >> peter at xxxx:/opt/runrev/livecode-4.5$ su >> Password: >> xxxx:/opt/runrev/livecode-4.5# pwd >> /opt/runrev/livecode-4.5 >> xxxx:/opt/runrev/livecode-4.5# ./livecode.x86 >> xxxx:/opt/runrev/livecode-4.5# >> >> >> So, if you do su the working directory remains the same. If you are in >> the >> working directory without su, Rev starts. If you are in the same working >> directory after having done su, it asks you to register. >> >> Don't get it. The difference of course is that when it works, its >> identifying the user: >> >> peter at xxxx:/opt/runrev/livecode-4.5$ ./livecode.x86 >> >> as opposed to in the other case, where the prompt is just >> >> xxxx:/opt/runrev/livecode-4.5# ./livecode.x86 >> >> So the difference is, it is looking for the registration in a particular >> user home folder? But in that case, why install in /opt? And why >> restrict >> the use to one account on a multi account system? Makes no sense, no-one >> else does it, do they? >> >> -- >> View this message in context: >> http://runtime-revolution.278305.n4.nabble.com/a-weird-thing-about-registration-Linux-tp3022230p3022581.html >> Sent from the Revolution - User mailing list archive at Nabble.com. >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > From kray at sonsothunder.com Mon Nov 1 16:12:38 2010 From: kray at sonsothunder.com (Ken Ray) Date: Mon, 01 Nov 2010 15:12:38 -0500 Subject: Underscore in script for windows? In-Reply-To: <1288283116514-3017600.post@n4.nabble.com> Message-ID: > I am using the following script to open a text file for both windows and > Macintosh. My question is do I need two separate scripts one for the Mac and > one for for Windows (XP, Vista, Windows 7) with a space instead of an > underscore? For example "/S504_Student" for "/S504 Student" for Windows. > > if the_selection is 1 > then > answer file "Open Student file:" with specialFolderPath("documents") & > "/S504 Student" No, that should work on all platforms you mentioned. Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From cszasz at mac.com Mon Nov 1 16:44:23 2010 From: cszasz at mac.com (charles61) Date: Mon, 1 Nov 2010 13:44:23 -0700 (PDT) Subject: Underscore in script for windows? In-Reply-To: References: <1288283116514-3017600.post@n4.nabble.com> Message-ID: <04190974-DA50-41F3-A293-DAD0E258DB58@mac.com> Ken, Thanks very much! Charles Szasz cszasz at mac.com On Nov 1, 2010, at 4:12 PM, Ken Ray [via Runtime Revolution] wrote: > > > I am using the following script to open a text file for both windows and > > Macintosh. My question is do I need two separate scripts one for the Mac and > > one for for Windows (XP, Vista, Windows 7) with a space instead of an > > underscore? For example "/S504_Student" for "/S504 Student" for Windows. > > > > if the_selection is 1 > > then > > answer file "Open Student file:" with specialFolderPath("documents") & > > "/S504 Student" > > No, that should work on all platforms you mentioned. > > Ken Ray > Sons of Thunder Software, Inc. > Email: [hidden email] > Web Site: http://www.sonsothunder.com/ > > > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/Underscore-in-script-for-windows-tp3017600p3022719.html > To unsubscribe from Underscore in script for windows?, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Underscore-in-script-for-windows-tp3017600p3022768.html Sent from the Revolution - User mailing list archive at Nabble.com. From kray at sonsothunder.com Mon Nov 1 17:24:13 2010 From: kray at sonsothunder.com (Ken Ray) Date: Mon, 01 Nov 2010 16:24:13 -0500 Subject: "Best practice" for creating a custom control In-Reply-To: <225F084D-53CD-42E5-A379-0E2DE1D5C86B@mac.com> Message-ID: > I'm looking for a kind of "best practice" for creating custom controls. For > example, how to access the data of the custom control ? Do we have to use > custom properties or a setProp or getProp handlers or both ? Is it preferable > to use a prefix for naming a command ? And for custom properties, do we have > to use a set of properties ? With a "standard name" ? Etc. You might want to take a look at the budding "standards" document that is in development over at the revInterop user group: http://tech.groups.yahoo.com/group/revInterop/ There's a bunch of info there about naming conventions, etc. As far as accessing the data is concerned, there isn't really a "best practice" yet; getprop/setprop works well in *some* instances, but not in others, as does actually using custom properties. For example, I tend to use custom properties to store data relative to custom controls I've created, and only use getProp/setProp when I want to trigger some kind of visual feedback. For example, I have a custom control which is a "prompt field" (it's a field that shows a custom text string in gray; when the field gets the focus, the text goes away so the user can type what they want, and when the field loses the focus if there's no text in the field it shows the prompt again). To specify what text should be shown as the prompt text, I set the uSTSPromptText of the field to a value. If the field is currently showing a text prompt, I'd like to change that to the value I'm setting for uSTSPromptText, so I have a getProp handler that is triggered to make that happen. Hope this helps, Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From palcibiades-first at yahoo.co.uk Mon Nov 1 18:30:40 2010 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Mon, 1 Nov 2010 15:30:40 -0700 (PDT) Subject: a weird thing about registration, Linux In-Reply-To: References: <201011011426.53892.palcibiades-first@yahoo.co.uk> <1288635912298-3022581.post@n4.nabble.com> Message-ID: <1288650640063-3022902.post@n4.nabble.com> Nope, same thing. Also su -m -p, or su -p, also same thing. Weird. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/a-weird-thing-about-registration-Linux-tp3022230p3022902.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Mon Nov 1 18:34:19 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 1 Nov 2010 16:34:19 -0600 Subject: a weird thing about registration, Linux In-Reply-To: <1288650640063-3022902.post@n4.nabble.com> References: <201011011426.53892.palcibiades-first@yahoo.co.uk> <1288635912298-3022581.post@n4.nabble.com> <1288650640063-3022902.post@n4.nabble.com> Message-ID: not sure why then. /shrug If you copy the prefs to root does it still think it needs to be registered when su'd? Either way, think its time for a bigger hammer. On Mon, Nov 1, 2010 at 4:30 PM, Peter Alcibiades < palcibiades-first at yahoo.co.uk> wrote: > > Nope, same thing. Also su -m -p, or su -p, also same thing. Weird. > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/a-weird-thing-about-registration-Linux-tp3022230p3022902.html > Sent from the Revolution - User mailing list archive at Nabble.com. > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From jacque at hyperactivesw.com Mon Nov 1 18:51:21 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 01 Nov 2010 17:51:21 -0500 Subject: a weird thing about registration, Linux In-Reply-To: References: <201011011426.53892.palcibiades-first@yahoo.co.uk> <1288635912298-3022581.post@n4.nabble.com> <1288650640063-3022902.post@n4.nabble.com> Message-ID: <4CCF4469.6040709@hyperactivesw.com> On 11/1/10 5:34 PM, Mike Bonner wrote: > not sure why then. /shrug If you copy the prefs to root does it still think > it needs to be registered when su'd? Either way, think its time for a > bigger hammer. Prefs don't store the licensing info, it's stored separately. I'm not sure where it's stored on Linux systems, but you (or rather Peter) can download the file from your user account and manually point to it during installation. Or easier, just be online during installation and the installer will look up your license. You should only have to do this once per installation. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bonnmike at gmail.com Mon Nov 1 18:54:52 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 1 Nov 2010 16:54:52 -0600 Subject: a weird thing about registration, Linux In-Reply-To: <4CCF4469.6040709@hyperactivesw.com> References: <201011011426.53892.palcibiades-first@yahoo.co.uk> <1288635912298-3022581.post@n4.nabble.com> <1288650640063-3022902.post@n4.nabble.com> <4CCF4469.6040709@hyperactivesw.com> Message-ID: Peter did it once, but.. well easier to read the whole thread. He's coming at things from a different angle than the initial install. On Mon, Nov 1, 2010 at 4:51 PM, J. Landman Gay wrote: > On 11/1/10 5:34 PM, Mike Bonner wrote: > >> not sure why then. /shrug If you copy the prefs to root does it still >> think >> it needs to be registered when su'd? Either way, think its time for a >> bigger hammer. >> > > Prefs don't store the licensing info, it's stored separately. I'm not sure > where it's stored on Linux systems, but you (or rather Peter) can download > the file from your user account and manually point to it during > installation. Or easier, just be online during installation and the > installer will look up your license. You should only have to do this once > per installation. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From harald at etcpp.de Mon Nov 1 19:14:18 2010 From: harald at etcpp.de (=?iso-8859-1?Q?Harald_M=FCller?=) Date: Tue, 2 Nov 2010 00:14:18 +0100 Subject: determining active language (iphone) In-Reply-To: <7F200A8A-760D-4FA7-90D8-EF3B68CDF1E3@mac.com> References: <7F200A8A-760D-4FA7-90D8-EF3B68CDF1E3@mac.com> Message-ID: <9171000E-58D2-4798-8ED0-19656AA585C1@etcpp.de> Hello all. Finishing my first App for iPhone I'm searching for a clean way to check the active language on the users iPhone. The best solution I found is an old one which works fine on Mac and the iPhone Simulator. On a real phone it crashes, perhaps because of this shell-thing? http://www.sonsothunder.com/devres/revolution/tips/lang003.htm Does anyone know a good solution for determining the active language? I heard about this "look at the weekday"-workaround but I would prefer to find a clean solution. Best regards, Harald. From zryip.theslug at gmail.com Mon Nov 1 19:43:02 2010 From: zryip.theslug at gmail.com (zryip theSlug) Date: Tue, 2 Nov 2010 00:43:02 +0100 Subject: [ANN] DGH 1.1.3 is ready for Linux Message-ID: Dear LC users, I would like to announce that we updated the Data Grid Helper plugin to support Linux. So DGH is now usable and tested on all the available platforms: Mac OS X, Windows and Linux. We also fixed a bug in the validation of the preferences window. You can update to this new version by running the DGH's auto-updater. Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From bobs at twft.com Mon Nov 1 19:52:44 2010 From: bobs at twft.com (Bob Sneidar) Date: Mon, 1 Nov 2010 16:52:44 -0700 Subject: [OT] Browsing the internet... It is safer from Linux? In-Reply-To: <1288635929888-3022582.post@n4.nabble.com> References: <4CCD1899.107@gmail.com> <1288591908940-3021793.post@n4.nabble.com> <1288635929888-3022582.post@n4.nabble.com> Message-ID: <807B778D-7C87-4673-8EF9-A9D3C9C094BB@twft.com> I listen to Leo on the radio every Saturday. I really respect his knowledge and expertise, as I am an IT guy, and can verify that what he says is almost always spot on. However, a lot of what is discussed in these podcasts are what COULD be done, not what is ACTUALLY HAPPENING on a regular basis in the wild. The simple way to put all of this is that once information is in a digital format, and you open these regular lines of communication to the internet, the data, as protected as you may think it is, is now "in the open" meaning you no longer have the ability to monitor or control it. What anyone can do with that information, once they have it, depends largely on what you do on the internet. You can make a good argument that shopping or banking online is a risky proposition. Any disgruntled IT kid can steal your information pretty easily if the IT at the site is not up to snuff. And if Google can be hijacked, then I don't think anyone can say that their web site is completely secure, so drive by downloads are going to be around for a while methinks. The thing to consider is that the more malicious people are with the information they collect, the more risky the proposition. But the web is not the only place this information is derived. Send in an application for employment, and someone is going to either type the information in to a computer, or else file it in a cabinet that at least a few people have access to. Same thing with applying for a credit card. So even if you threw away your computer today and never touched a keyboard again, this is not going to protect you from identity theft or a compromised credit card account. The whole point is that information about you is out there "in the open" and if someone tries hard enough they can get it and use it to their advantage and your loss. The internet just makes it a bit easier for them to get at it. Bob On Nov 1, 2010, at 11:25 AM, Alejandro Tejada wrote: > If... > you do not feel deeply concerned about your Windows > OS security (after hearing many of their podcast), > then... > you are definitely more confident than me > about the security of your System. > end if... > > What does everybody think about these security topics > explained in these podcasts? > > Al > -- From selander at tkf.att.ne.jp Mon Nov 1 22:37:44 2010 From: selander at tkf.att.ne.jp (Tim Selander) Date: Tue, 02 Nov 2010 11:37:44 +0900 Subject: OT: linux question Message-ID: <4CCF7978.8010804@tkf.att.ne.jp> A question to the Linux users here.... I'm trying to set up a 16 drive Debian NAS to hold our production company's footage archive. Bought a HighPoint 2680 SATA card because they claimed Debian compatibility. But their stock drivers are so old, I can't even find the distribution they match. They also have the source code so you can compile a new kernel to support the card. I tried, but being a Linux newbie, failed in all attempts. Can't even get the 'tree' downloaded, whatever that is! If, say, I could pay one of you to compile the kernel/driver for me, is there a way you can do that and then send it to me for an easy install here? No idea if kernel files can just be swapped out... I would make space on my ftp server for you to upload the finished file(s) too. Any chance this would work? Thanks, Tim Selander Tokyo, Japan From palcibiades-first at yahoo.co.uk Tue Nov 2 02:44:44 2010 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Mon, 1 Nov 2010 23:44:44 -0700 (PDT) Subject: a weird thing about registration, Linux In-Reply-To: References: <201011011426.53892.palcibiades-first@yahoo.co.uk> <1288635912298-3022581.post@n4.nabble.com> <1288650640063-3022902.post@n4.nabble.com> <4CCF4469.6040709@hyperactivesw.com> Message-ID: <1288680284187-3023235.post@n4.nabble.com> A solution is to change owner. After chown to my user, it runs and updates the DGH fine. Should not have to do this, however, and it does not solve the problem that every account should be able to use it. I will write to support. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/a-weird-thing-about-registration-Linux-tp3022230p3023235.html Sent from the Revolution - User mailing list archive at Nabble.com. From palcibiades-first at yahoo.co.uk Tue Nov 2 02:46:13 2010 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Mon, 1 Nov 2010 23:46:13 -0700 (PDT) Subject: [ANN] DGH 1.1.3 is ready for Linux In-Reply-To: References: Message-ID: <1288680373439-3023237.post@n4.nabble.com> zyrip, it did not work for me, but chown -R of runrev to my account did. I still don't understand the reregistration problem but will raise it with support. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-DGH-1-1-3-is-ready-for-Linux-tp3022985p3023237.html Sent from the Revolution - User mailing list archive at Nabble.com. From mazzapaoloitaly at gmail.com Tue Nov 2 04:26:27 2010 From: mazzapaoloitaly at gmail.com (paolo mazza) Date: Tue, 2 Nov 2010 09:26:27 +0100 Subject: Stack dimension for mobile application In-Reply-To: References: Message-ID: Thank you Terry. You are right, so the stack size for the 3 devices will be: iPhone 4 is 920 x 640 iPhone3 - iPod Touch is 460 x 320 iPad is 1004 x 768 This is if you have a portrait application. What happen if you turn the device to the landscape orientation? I guess you have to resize the stack/application to iPhone 4 is 960 x 600 iPhone3 - iPod Touch is 480 x 300 iPad is 1024 x 748 Am I right? So, if I have to deploy an application for the 3 devices, I need to set 6 different sizes of the stack. Right? I guess we need a "geometry manager" taking care of this automatically would be great! All the best to all the rev developers. Ciao Paolo From zryip.theslug at gmail.com Tue Nov 2 04:55:07 2010 From: zryip.theslug at gmail.com (zryip theSlug) Date: Tue, 2 Nov 2010 09:55:07 +0100 Subject: [ANN] DGH 1.1.3 is ready for Linux In-Reply-To: <1288680373439-3023237.post@n4.nabble.com> References: <1288680373439-3023237.post@n4.nabble.com> Message-ID: On Tue, Nov 2, 2010 at 7:46 AM, Peter Alcibiades wrote: > > zyrip, it did not work for me, but chown -R of runrev to my account did. ?I > still don't understand the reregistration problem but will raise it with > support. > -- Peter, I proposed a possible workaround here: http://www.mail-archive.com/use-revolution at lists.runrev.com/msg143289.html The main problem in your case is your need to have a shared plugin folder for all your accounts. That's why you need to use the plugin folder located in the opt directory. To solve this, I could probably change the owner of the folder by script before to update, and restore the owner after the update. I dislike this kind of brute manipulation, but that is a possible way Best regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From m.schonewille at economy-x-talk.com Tue Nov 2 05:21:24 2010 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 2 Nov 2010 10:21:24 +0100 Subject: OT: linux question In-Reply-To: <4CCF7978.8010804@tkf.att.ne.jp> References: <4CCF7978.8010804@tkf.att.ne.jp> Message-ID: <6531C58A-1AF2-4AEA-945F-75C21B15B449@economy-x-talk.com> Hi Tim, Try to download http://qurl.tk/jv (tab ball) or use our own (whichever is newer) and un-tar the file. Open terminal and use 'cd' to navigate to .../rr268x-linux-src-v1.1/product/rr2680/linux/. Type "make install" and wait what happens. If it does't work, you are probably missing some libraries and don't need to keep trying. Ask the manufacturer for the correct source for your Linux version. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce Create installers for Mac and Windows on *every* Rev-compatible platform. No additional software needed. On 2 nov 2010, at 03:37, Tim Selander wrote: > A question to the Linux users here.... I'm trying to set up a 16 drive Debian NAS to hold our production company's footage archive. Bought a HighPoint 2680 SATA card because they claimed Debian compatibility. But their stock drivers are so old, I can't even find the distribution they match. They also have the source code so you can compile a new kernel to support the card. I tried, but being a Linux newbie, failed in all attempts. Can't even get the 'tree' downloaded, whatever that is! > > If, say, I could pay one of you to compile the kernel/driver for me, is there a way you can do that and then send it to me for an easy install here? No idea if kernel files can just be swapped out... I would make space on my ftp server for you to upload the finished file(s) too. > > Any chance this would work? > > Thanks, > > Tim Selander > Tokyo, Japan > From jean-pierre.soto at wanadoo.fr Tue Nov 2 08:19:03 2010 From: jean-pierre.soto at wanadoo.fr (Jean-Pierre Soto) Date: Tue, 2 Nov 2010 13:19:03 +0100 Subject: Complex menu shortcut Message-ID: <108D7C9D-284E-4878-835B-04146EFF7601@wanadoo.fr> Hi, is there a tips to put complex shortCut at the end of a menu line ? ( Something like : "Create a new image Ctrl-Shift-N") Thanks From DunbarX at aol.com Tue Nov 2 09:09:14 2010 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 2 Nov 2010 09:09:14 EDT Subject: Complex menu shortcut Message-ID: <7b3e3.1f8448ef.3a01677a@aol.com> In the menu builder you can see that all the control keys are available: command, control, shift, alt. These may be added to any key for your shortcut. From jean-pierre.soto at wanadoo.fr Tue Nov 2 13:40:28 2010 From: jean-pierre.soto at wanadoo.fr (Jean-Pierre Soto) Date: Tue, 2 Nov 2010 18:40:28 +0100 Subject: Complex menu shortcut In-Reply-To: <7b3e3.1f8448ef.3a01677a@aol.com> References: <7b3e3.1f8448ef.3a01677a@aol.com> Message-ID: Hello I run Revolution 2.7.2. I just see Command+... in the menu builder. "&New/N" always give "New Cmd+N" I have lostt something ? Thanks Le 2 nov. 10 ? 14:09, DunbarX at aol.com a ?crit : > > In the menu builder you can see that all the control keys are > available: > command, control, shift, alt. These may be added to any key for > your shortcut. > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From kray at sonsothunder.com Tue Nov 2 13:55:08 2010 From: kray at sonsothunder.com (Ken Ray) Date: Tue, 02 Nov 2010 12:55:08 -0500 Subject: Complex menu shortcut In-Reply-To: Message-ID: > I run Revolution 2.7.2. I just see Command+... in the menu builder. > > "&New/N" always give "New Cmd+N" > > I have lostt something ? No, but you're running a really old version of Revolution. The latest is 4.5 (now called "LiveCode"); the additional options to menu shortcuts were added in 3.5 (I believe). So you'd have to upgrade to take advantage of them. Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From jrosat at mac.com Tue Nov 2 13:57:51 2010 From: jrosat at mac.com (=?iso-8859-1?Q?J=E9r=F4me_Rosat?=) Date: Tue, 02 Nov 2010 18:57:51 +0100 Subject: "Best practice" for creating a custom control In-Reply-To: References: Message-ID: Thank you Ken for the link and the example. Yes, it helps me a lot. Jerome Le 1 nov. 2010 ? 22:24, Ken Ray a ?crit : > > >> I'm looking for a kind of "best practice" for creating custom controls. For >> example, how to access the data of the custom control ? Do we have to use >> custom properties or a setProp or getProp handlers or both ? Is it preferable >> to use a prefix for naming a command ? And for custom properties, do we have >> to use a set of properties ? With a "standard name" ? Etc. > > You might want to take a look at the budding "standards" document that is in > development over at the revInterop user group: > > http://tech.groups.yahoo.com/group/revInterop/ > > There's a bunch of info there about naming conventions, etc. > > As far as accessing the data is concerned, there isn't really a "best > practice" yet; getprop/setprop works well in *some* instances, but not in > others, as does actually using custom properties. For example, I tend to use > custom properties to store data relative to custom controls I've created, > and only use getProp/setProp when I want to trigger some kind of visual > feedback. > > For example, I have a custom control which is a "prompt field" (it's a field > that shows a custom text string in gray; when the field gets the focus, the > text goes away so the user can type what they want, and when the field loses > the focus if there's no text in the field it shows the prompt again). To > specify what text should be shown as the prompt text, I set the > uSTSPromptText of the field to a value. If the field is currently showing a > text prompt, I'd like to change that to the value I'm setting for > uSTSPromptText, so I have a getProp handler that is triggered to make that > happen. > > Hope this helps, > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From dam-pro.girard at laposte.net Tue Nov 2 19:14:57 2010 From: dam-pro.girard at laposte.net (Damien Girard) Date: Wed, 3 Nov 2010 00:14:57 +0100 Subject: linux question In-Reply-To: <4CCF7978.8010804@tkf.att.ne.jp> References: <4CCF7978.8010804@tkf.att.ne.jp> Message-ID: <000001cb7ae3$c4236550$4c6a2ff0$@girard@laposte.net> Hi, I have took a look at the highpoint-tech.com website, and the driver that they provide does not seems old, they claim that they support linux kernel up to 2.6.31. But making it working it seems to be an harder things :) By the way, on Debian before everything you will need to install the meta-package "build-essential" and the package "linux-kernel-headers". (apt-get install ...) Then go to the subfolder (of the archive): $ cd rr268x-linux-src-v1.xx/product/rr2680/linux/ $ make And as root # make install And to load the driver (as root): # modprobe rr2680 To launch the driver at boot time, on Debian append the following line to the file "/etc/modules": rr2680 I hope that I gave you some clues about solving the problem ^^ Kind Regards, Damien Girard NativeSoft, France. -----Message d'origine----- De : use-revolution-bounces at lists.runrev.com [mailto:use-revolution-bounces at lists.runrev.com] De la part de Tim Selander Envoy? : mardi 2 novembre 2010 03:38 ? : How to use Revolution Objet : OT: linux question A question to the Linux users here.... I'm trying to set up a 16 drive Debian NAS to hold our production company's footage archive. Bought a HighPoint 2680 SATA card because they claimed Debian compatibility. But their stock drivers are so old, I can't even find the distribution they match. They also have the source code so you can compile a new kernel to support the card. I tried, but being a Linux newbie, failed in all attempts. Can't even get the 'tree' downloaded, whatever that is! If, say, I could pay one of you to compile the kernel/driver for me, is there a way you can do that and then send it to me for an easy install here? No idea if kernel files can just be swapped out... I would make space on my ftp server for you to upload the finished file(s) too. Any chance this would work? Thanks, Tim Selander Tokyo, Japan _______________________________________________ use-revolution mailing list use-revolution at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution From alex at tweedly.net Tue Nov 2 20:23:08 2010 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 03 Nov 2010 00:23:08 +0000 Subject: delete chunk. Message-ID: <4CD0AB6C.10904@tweedly.net> 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. The docs say that "delete chunk of container" is equivalent to "put empty into chunk of container" - but if I replace it so I do put "a,b,c" into temp put empty into item -1 of temp then I do indeed get "a,b,". Feels like a bug, and I should put it into QCC - but it's late at night and I may be just missing something. Am I ? Thanks -- Alex. From jonathandlynch at gmail.com Tue Nov 2 20:35:19 2010 From: jonathandlynch at gmail.com (jonathandlynch at gmail.com) Date: Wed, 3 Nov 2010 00:35:19 +0000 Subject: delete chunk. In-Reply-To: <4CD0AB6C.10904@tweedly.net> References: <4CD0AB6C.10904@tweedly.net> Message-ID: <1071541194-1288744471-cardhu_decombobulator_blackberry.rim.net-1373093290-@bda046.bisx.prod.on.blackberry> These are different - item -1 containing empty is different than item -1 not existing It seems like it is behaving intuitively to me. The docs might be confusing, though. Sent from my Verizon Wireless BlackBerry -----Original Message----- From: Alex Tweedly Sender: use-revolution-bounces at lists.runrev.com Date: Wed, 03 Nov 2010 00:23:08 To: Use Revolution List Reply-To: How to use Revolution Subject: delete chunk. 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. The docs say that "delete chunk of container" is equivalent to "put empty into chunk of container" - but if I replace it so I do put "a,b,c" into temp put empty into item -1 of temp then I do indeed get "a,b,". Feels like a bug, and I should put it into QCC - but it's late at night and I may be just missing something. Am I ? Thanks -- Alex. _______________________________________________ use-revolution mailing list use-revolution at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution From jacque at hyperactivesw.com Tue Nov 2 20:45:51 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 02 Nov 2010 19:45:51 -0500 Subject: delete chunk. In-Reply-To: <4CD0AB6C.10904@tweedly.net> References: <4CD0AB6C.10904@tweedly.net> Message-ID: <4CD0B0BF.10100@hyperactivesw.com> On 11/2/10 7:23 PM, Alex Tweedly wrote: > > 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. That's correct. Removing the last chunk of any string also removes the delimiter. There have been many debates on whether this is correct or not, but it's been that way in every xtalk since the beginning. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jimaultwins at yahoo.com Tue Nov 2 23:40:51 2010 From: jimaultwins at yahoo.com (Jim Ault) Date: Tue, 2 Nov 2010 20:40:51 -0700 Subject: delete chunk. In-Reply-To: <4CD0B0BF.10100@hyperactivesw.com> References: <4CD0AB6C.10904@tweedly.net> <4CD0B0BF.10100@hyperactivesw.com> Message-ID: <89CCA97E-1FDE-4CE6-BF9F-C32E7240C0EB@yahoo.com> Also try put the number of items in "a,b,c" \ && the number of items in "a,b," \ && the number of items in "a,b" On Nov 2, 2010, at 5:45 PM, J. Landman Gay wrote: > On 11/2/10 7:23 PM, Alex Tweedly wrote: >> >> 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. > > That's correct. Removing the last chunk of any string also removes > the delimiter. There have been many debates on whether this is > correct or not, but it's been that way in every xtalk since the > beginning. > > -- > Jacqueline Landman Gay Jim Ault Las Vegas From jacque at hyperactivesw.com Wed Nov 3 00:41:05 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 02 Nov 2010 23:41:05 -0500 Subject: delete chunk. In-Reply-To: <89CCA97E-1FDE-4CE6-BF9F-C32E7240C0EB@yahoo.com> References: <4CD0AB6C.10904@tweedly.net> <4CD0B0BF.10100@hyperactivesw.com> <89CCA97E-1FDE-4CE6-BF9F-C32E7240C0EB@yahoo.com> Message-ID: <4CD0E7E1.4050206@hyperactivesw.com> On 11/2/10 10:40 PM, Jim Ault wrote: > Also try > > put the number of items in "a,b,c" \ > && the number of items in "a,b," \ > && the number of items in "a,b" 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". -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Nov 3 00:44:11 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 02 Nov 2010 23:44:11 -0500 Subject: delete chunk. In-Reply-To: <4CD0E7E1.4050206@hyperactivesw.com> References: <4CD0AB6C.10904@tweedly.net> <4CD0B0BF.10100@hyperactivesw.com> <89CCA97E-1FDE-4CE6-BF9F-C32E7240C0EB@yahoo.com> <4CD0E7E1.4050206@hyperactivesw.com> Message-ID: <4CD0E89B.7070501@hyperactivesw.com> On 11/2/10 11:41 PM, J. Landman Gay wrote: > On 11/2/10 10:40 PM, Jim Ault wrote: >> Also try >> >> put the number of items in "a,b,c" \ >> && the number of items in "a,b," \ >> && the number of items in "a,b" > > 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". > Meant to add: this is also consistent with the number of lines, where a trailing cr doesn't count either. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From massung at gmail.com Wed Nov 3 00:51:11 2010 From: massung at gmail.com (Jeffrey Massung) Date: Tue, 2 Nov 2010 22:51:11 -0600 Subject: delete chunk. In-Reply-To: <4CD0E89B.7070501@hyperactivesw.com> References: <4CD0AB6C.10904@tweedly.net> <4CD0B0BF.10100@hyperactivesw.com> <89CCA97E-1FDE-4CE6-BF9F-C32E7240C0EB@yahoo.com> <4CD0E7E1.4050206@hyperactivesw.com> <4CD0E89B.7070501@hyperactivesw.com> Message-ID: <49F64B38-3F22-4306-A9EF-A6C3A911DD29@gmail.com> On Nov 2, 2010, at 10:44 PM, J. Landman Gay wrote: > On 11/2/10 11:41 PM, J. Landman Gay wrote: >> On 11/2/10 10:40 PM, Jim Ault wrote: >>> Also try >>> >>> put the number of items in "a,b,c" \ >>> && the number of items in "a,b," \ >>> && the number of items in "a,b" >> >> 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". >> > > Meant to add: this is also consistent with the number of lines, where a trailing cr doesn't count either. Just tossing this out there, but I *love* this behavior. I'm sure there are situations where it's undesirable, but are easily compensated for by just adding another delimiter. Begin able to do the following is very handy and makes the code clean: put "foo" & cr after fld "x" put "bar" & cr after fld "x" put the number of lines of fld "x" Having that return 2 is extremely convenient. Jeff M. From david_beck at rotundasoftware.com Wed Nov 3 01:55:40 2010 From: david_beck at rotundasoftware.com (David Beck) Date: Tue, 02 Nov 2010 22:55:40 -0700 Subject: seconds function giving wrong time In-Reply-To: <20101102170004.A4FBE28814E@mail.runrev.com> References: <20101102170004.A4FBE28814E@mail.runrev.com> Message-ID: <4CD0F95C.4010607@rotundasoftware.com> I do not remember this ever happening before. Something very strange seems to be going on here. I'm hoping somebody can shed some light on what it is. After typing in these commands in the message box: put the seconds into test convert test to dateItems put the internet date into test2 convert test2 to dateItems put test & return & test2 I get the following result: 2010,11,2,20,23,46,3 2010,11,2,22,48,44,3 The second result matches the system date correctly (Windows 7 running on Parellels). The first result is 2 hours and 25 minutes behind. Does anybody have any idea what is going on here? Thanks. David Beck Rotunda Software From selander at tkf.att.ne.jp Wed Nov 3 02:13:18 2010 From: selander at tkf.att.ne.jp (Tim Selander) Date: Wed, 03 Nov 2010 15:13:18 +0900 Subject: linux question THANK YOU In-Reply-To: <000001cb7ae3$c4236550$4c6a2ff0$@girard@laposte.net> References: <4CCF7978.8010804@tkf.att.ne.jp> <000001cb7ae3$c4236550$4c6a2ff0$@girard@laposte.net> Message-ID: <4CD0FD7E.5060903@tkf.att.ne.jp> Damien (and Mark), THANK YOU THANK YOU THANK YOU!! This is exactly the kind of clear step by step I needed. The HighPoint card is up and running and the machine is, as I type this, formatting the RAID6. Man, I have wasted untold hours trying to get this to work. HighPoint should hire you as their documentation writer!!! Extremely grateful in Tokyo, Tim Selander On 11/3/10 8:14 AM, Damien Girard wrote: > > Hi, > > I have took a look at the highpoint-tech.com website, and the driver that they provide does not seems old, they claim that they support linux kernel up to 2.6.31. > > But making it working it seems to be an harder things :) > > By the way, on Debian before everything you will need to install the meta-package "build-essential" and the package "linux-kernel-headers". (apt-get install ...) > > Then go to the subfolder (of the archive): > $ cd rr268x-linux-src-v1.xx/product/rr2680/linux/ > $ make > And as root > # make install > > And to load the driver (as root): > # modprobe rr2680 > > To launch the driver at boot time, on Debian append the following line to the file "/etc/modules": > rr2680 > > I hope that I gave you some clues about solving the problem ^^ > > Kind Regards, > > Damien Girard > NativeSoft, France. > > -----Message d'origine----- > De : use-revolution-bounces at lists.runrev.com [mailto:use-revolution-bounces at lists.runrev.com] De la part de Tim Selander > Envoy? : mardi 2 novembre 2010 03:38 > ? : How to use Revolution > Objet : OT: linux question > > > A question to the Linux users here.... I'm trying to set up a 16 > drive Debian NAS to hold our production company's footage > archive. Bought a HighPoint 2680 SATA card because they claimed > Debian compatibility. But their stock drivers are so old, I can't > even find the distribution they match. They also have the source > code so you can compile a new kernel to support the card. I > tried, but being a Linux newbie, failed in all attempts. Can't > even get the 'tree' downloaded, whatever that is! > > If, say, I could pay one of you to compile the kernel/driver for > me, is there a way you can do that and then send it to me for an > easy install here? No idea if kernel files can just be swapped > out... I would make space on my ftp server for you to upload the > finished file(s) too. > > Any chance this would work? > > Thanks, > > Tim Selander > Tokyo, Japan > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From jimaultwins at yahoo.com Wed Nov 3 04:01:14 2010 From: jimaultwins at yahoo.com (Jim Ault) Date: Wed, 3 Nov 2010 01:01:14 -0700 Subject: seconds function giving wrong time In-Reply-To: <4CD0F95C.4010607@rotundasoftware.com> References: <20101102170004.A4FBE28814E@mail.runrev.com> <4CD0F95C.4010607@rotundasoftware.com> Message-ID: <78F3520D-28E2-4F4E-88AB-FC8803004762@yahoo.com> This script works as expected on MacOSX 10.5.8 Rev 4.0.0 Build 950 get the internet date convert it to seconds put the seconds - it into test3 put the seconds into test convert test to dateItems put the internet date into test2 convert test2 to dateItems put test & return & test2 & return & test3 --------------------- 2010,11,3,0,56,12,4 2010,11,3,0,56,12,4 0 ------------------- ... when run 56 minutes after midnight PDT, Nov 3rd Could be parallels + Win 7 + MacOSX and time clock sharing. On Nov 2, 2010, at 10:55 PM, David Beck wrote: > > I do not remember this ever happening before. Something very strange > seems to be going on here. I'm hoping somebody can shed some light > on what it is. After typing in these commands in the message box: > > put the seconds into test > convert test to dateItems > put the internet date into test2 > convert test2 to dateItems > put test & return & test2 > > I get the following result: > > 2010,11,2,20,23,46,3 > 2010,11,2,22,48,44,3 > > The second result matches the system date correctly (Windows 7 > running on Parellels). The first result is 2 hours and 25 minutes > behind. Does anybody have any idea what is going on here? > > Thanks. > > David Beck Jim Ault Las Vegas From andre.bisseret at wanadoo.fr Wed Nov 3 06:28:39 2010 From: andre.bisseret at wanadoo.fr (=?ISO-8859-1?Q?Andr=E9_Bisseret?=) Date: Wed, 3 Nov 2010 11:28:39 +0100 Subject: How to reorder lines in a list field (understood!) In-Reply-To: <18DDD277-44B2-48AD-BC30-1863E3B8456C@unil.ch> References: <18DDD277-44B2-48AD-BC30-1863E3B8456C@unil.ch> Message-ID: <54B39A5C-645B-464C-951B-F4E44C3AD83E@wanadoo.fr> Bonjour, Thanks to this "how to" I have understood why my drag and drop scripts is working on my test stack and not working in my app. It is because, in my app; the field is part of a group (not in my test stack)!! It is a bug (# 6823) exhibited by ?ric Chatonet in 2008/07 with version 2.9.0 RC4: In a grouped field, "dragLeave" is sent even if the mouse is within the field rect. while If the field is not grouped it works as expected. This bug is still there is 4.5.0 In my app.the field where I wanted to be able to reorder lines has to be grouped so that I can't use drag and drop for that -((( Best regards from Grenoble Andr? Le 30 oct. 10 ? 15:39, Jacques Hausser a ?crit : > > Bonjour, > > Eric Chatonet also published a "how to" that does exactly what you > want: > > http://www.sosmartsoftware.com/?r=telecharger&l=en&arch=tutorials//List%20reorganizing.rev.zip > > Good luck > > Jacques > > Le 30 oct. 2010 ? 15:18, Andr? Bisseret a ?crit : > >> Bonjour, >> >> I am trying to get a list field where it would be possible to >> reorder the lines. >> (is there somewhere any tutorial or any solution on this?) >> >> I started from a script from ?ric Chatonet that allow moving lines >> from field1 to field2, modifying it to drag lines in one field only. >> >> I succeeded in a test stack: in a list field, all works as >> expected with a dragImage). >> >> My problem is that when I put exactly the same script in a field of >> an app. I am developing, it does not works any more: >> The dragged line is deleted when releasing the mouse (except if I >> drag outside the field and then back in it: then that works!!!! >> >> I am fighting with that for hours now, and can't find what is wrong. >> >> My last surprise is that if I don't create (set) any dragImage, >> then all works as expected. >> >> I am getting crazy >> The worst thing is that the same script works well in a field on my >> test stack and not on the field on my other stack (the two fields >> have exactly the same properties). >> >> Any idea on what could be wrong? >> >> Thanks a lot in advance >> >> Best regards from Grenoble >> >> Andr? >> >> >> >> >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution > > ****************************************** > Prof. Jacques Hausser > Department of Ecology and Evolution > Biophore / Sorge > University of Lausanne > CH 1015 Lausanne > please use my private address: > 6 route de Burtigny > CH-1269 Bassins > tel/fax: ++ 41 22 366 19 40 > mobile: ++ 41 79 757 05 24 > E-Mail: jacques.hausser at unil.ch > ******************************************* > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > --------------------------------------------------------------------------------------- > Orange vous informe que cet e-mail a ete controle par l'anti-virus > mail. > Aucun virus connu a ce jour par nos services n'a ete detecte. > > From cszasz at mac.com Wed Nov 3 08:46:07 2010 From: cszasz at mac.com (charles61) Date: Wed, 3 Nov 2010 05:46:07 -0700 (PDT) Subject: Skipping a mark card Message-ID: <1288788367834-3025277.post@n4.nabble.com> I have a project that uses marked cards to navigate them. Aside from unmarking a card, is there a way to skip a mark card when you are using a script (go to next marked card) to go to marked cards? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025277.html Sent from the Revolution - User mailing list archive at Nabble.com. From lists at mangomultimedia.com Wed Nov 3 08:51:33 2010 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 3 Nov 2010 08:51:33 -0400 Subject: Which messages are sent to a datagrid on opencard? In-Reply-To: <5BEE85CB-EC04-42A3-A146-D035ACB2AAAD@derbrill.de> References: <20101030170003.AEE492882FB@mail.runrev.com> <5BEE85CB-EC04-42A3-A146-D035ACB2AAAD@derbrill.de> Message-ID: On Sun, Oct 31, 2010 at 6:16 AM, Malte Brill wrote: > I have a rather complex stack that needs quite a few datagrids on a card. > Now when said card is opened it is noticeably laggy. I guess this is due to > the messages that are sent to the datagrids on (pre)opencard. PreopenControl > or something the like? If I remove the dgs, or lock messages before going > to the card, everything is speedy. Now I wonder: Can I lock messages before > going to said card and avoid the lagging and still being able to populate > may data? > Malte, zryip is correct in that the Data Grid will be initialized later on if preopenControl is never received. If you want to see exactly what is going on check out the private command _Initialize in the script of btn "Data Grid" of stack "revdatagridlibrary". Given that persistent data is set to false and you don't have any data in the grids then I think the most time intensive operation would be when the table columns are created in the call to _table.CreateColumns. You could experiment with commenting out some of the code in _Initialize to determine where the bottle neck is. If you can locate it then perhaps we can determine how to address the speed issue. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com From kray at sonsothunder.com Wed Nov 3 08:52:25 2010 From: kray at sonsothunder.com (Ken Ray) Date: Wed, 03 Nov 2010 07:52:25 -0500 Subject: delete chunk. In-Reply-To: <49F64B38-3F22-4306-A9EF-A6C3A911DD29@gmail.com> Message-ID: > Just tossing this out there, but I *love* this behavior. I'm sure there are > situations where it's undesirable, but are easily compensated for by just > adding another delimiter. > > Begin able to do the following is very handy and makes the code clean: > > put "foo" & cr after fld "x" > put "bar" & cr after fld "x" > put the number of lines of fld "x" > > Having that return 2 is extremely convenient. Agreed, but sometimes it's not convenient when you want to get the "last item" of a line; for example, if you have a container that holds columns for First Name (tab) Last Name (tab) Notes, and some lines have a note and some don't, you can't just set the itemDelimiter to tab and run through the container and get the "last item" or "item -1" of the line to check if the person entered a note; if they didn't provide one, then check the "last item" will give you their Last Name instead. It would be great if there was a global setting that you could toggle it on in these circumstances, something like: put item -1 of "Ken,Ray," ==> returns "Ray" set the dontIgnoreTrailingDelimiter to true put item -1 of "Ken,Ray," ==> returns "" :-) Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From williamdesmet at gmail.com Wed Nov 3 08:54:53 2010 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 3 Nov 2010 13:54:53 +0100 Subject: LiveCode external/plugin question Message-ID: Hi there, I wonder if there is a external/plugin for LiveCode that gives Apps on Windows a kiosk style/mode? And I mean true kiosk so , and the Windows Keys are disabled. Any advise is welcome. (maybe an idea for a developer and make is a paid external?) greetings, William From klaus at major.on-rev.com Wed Nov 3 09:03:12 2010 From: klaus at major.on-rev.com (Klaus on-rev) Date: Wed, 3 Nov 2010 14:03:12 +0100 Subject: delete chunk. In-Reply-To: References: Message-ID: <4773052F-BB1C-4C7C-84A4-68F681472F00@major.on-rev.com> Hi Ken, >> Just tossing this out there, but I *love* this behavior. I'm sure there are >> situations where it's undesirable, but are easily compensated for by just >> adding another delimiter. >> >> Begin able to do the following is very handy and makes the code clean: >> >> put "foo" & cr after fld "x" >> put "bar" & cr after fld "x" >> put the number of lines of fld "x" >> >> Having that return 2 is extremely convenient. > > Agreed, but sometimes it's not convenient when you want to get the "last > item" of a line; for example, if you have a container that holds columns for > First Name (tab) Last Name (tab) Notes, and some lines have a note and some > don't, you can't just set the itemDelimiter to tab and run through the > container and get the "last item" or "item -1" of the line to check if the > person entered a note; if they didn't provide one, then check the "last > item" will give you their Last Name instead. > > It would be great if there was a global setting that you could toggle it on > in these circumstances, something like: Yes, good idea! > put item -1 of "Ken,Ray," > ==> returns "Ray" > > set the dontIgnoreTrailingDelimiter to true > put item -1 of "Ken,Ray," > ==> returns "" But please no "dontXYZ" props anymore, they are SO counterintuitive! Don't you think that "set the useqt to false" is mentally a lot less challenging than "set the dontuseqt to true"??? :-D > :-) > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ Best Klaus -- Klaus Major http://www.major-k.de klaus at major.on-rev.com From alex at tweedly.net Wed Nov 3 09:08:31 2010 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 03 Nov 2010 13:08:31 +0000 Subject: delete chunk. In-Reply-To: <4CD0E7E1.4050206@hyperactivesw.com> References: <4CD0AB6C.10904@tweedly.net> <4CD0B0BF.10100@hyperactivesw.com> <89CCA97E-1FDE-4CE6-BF9F-C32E7240C0EB@yahoo.com> <4CD0E7E1.4050206@hyperactivesw.com> Message-ID: <4CD15ECF.2040406@tweedly.net> 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 can have a trailing delimiter - if you do this in the message box of LC 4.5 put "a,b,c" into t ; put empty into item -1 of t; put t then you get a,b, i.e. the trailing comma remains. If instead you say "delete item -1 of temp" then the trailing delimiter disappears. I guess it just *is* that way, and always has been. The problem is that the docs are completely wrong when they say delete /chunk/ of /container / is the same as put empty into /chunk/ of /container/ But it can be tricky to follow the logic. Here's a quiz .... without trying it :-) what do you get from > put "a,b,c" into t > put empty into the last item of t > put empty into the last item of t > put empty into the last item of t > put t answer follows below .... You get "a,," the first "put empty ..." removes "c" The second one removes "b" The third one does nothing - because the last item is empty. -- Alex. From runrev260805 at m-r-d.de Wed Nov 3 09:10:12 2010 From: runrev260805 at m-r-d.de (Matthias Rebbe) Date: Wed, 3 Nov 2010 14:10:12 +0100 Subject: LiveCode external/plugin question In-Reply-To: References: Message-ID: <3EBE5B0E-E36B-4ABD-9929-DED701D3353A@m-r-d.de> William, at http://www.northcode.com/blog.php/2007/07/25/Securing-Windows-For-Use-As-A-Kiosk you find information how to solve this by modifying the registry. I used that for XP some time ago. But i do not know, if this works with Windows Vista/7 also. Maybe this helps. Regards, Matthias Am 03.11.2010 um 13:54 schrieb William de Smet: > Hi there, > > I wonder if there is a external/plugin for LiveCode that gives Apps on > Windows a kiosk style/mode? > And I mean true kiosk so , and the Windows > Keys are disabled. > Any advise is welcome. > > (maybe an idea for a developer and make is a paid external?) > > greetings, > > William > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From m.schonewille at economy-x-talk.com Wed Nov 3 09:34:07 2010 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 3 Nov 2010 14:34:07 +0100 Subject: LiveCode external/plugin question In-Reply-To: <3EBE5B0E-E36B-4ABD-9929-DED701D3353A@m-r-d.de> References: <3EBE5B0E-E36B-4ABD-9929-DED701D3353A@m-r-d.de> Message-ID: <87D14961-D22C-433E-82A3-121507C363D1@economy-x-talk.com> Hi William, As an easy alternative to Matthias' solution, you could run your stack as a revlet in Internet Explorer and start IE in kiosk mode http://support.microsoft.com/kb/154780 -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce Create installers for Mac and Windows on *every* Rev-compatible platform. No additional software needed. On 3 nov 2010, at 14:10, Matthias Rebbe wrote: > William, > > at > > http://www.northcode.com/blog.php/2007/07/25/Securing-Windows-For-Use-As-A-Kiosk > > you find information how to solve this by modifying the registry. > I used that for XP some time ago. But i do not know, if this works with Windows Vista/7 also. > > Maybe this helps. > > Regards, > > Matthias > From DunbarX at aol.com Wed Nov 3 09:43:30 2010 From: DunbarX at aol.com (DunbarX at aol.com) Date: Wed, 3 Nov 2010 09:43:30 EDT Subject: delete chunk. Message-ID: 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 them.For example, "a,b,,," has five items. Putting empty, or anything, into item 4, say, makes sense, and we have not changed the number of itms at all. I think it all may just be a misperception, having to do with the last item being perceived differently from an interior item. I'll bet this thread would not have started if the process had been: delete item 3 of "a,b,,," put empty into item 3 of "a,b,,," Craig Newman From DunbarX at aol.com Wed Nov 3 09:48:38 2010 From: DunbarX at aol.com (DunbarX at aol.com) Date: Wed, 3 Nov 2010 09:48:38 EDT Subject: Skipping a mark card Message-ID: Do you always want to do this, to always go to the following marked card? In other words, to always go to the second marked card during any navigation? If so, why not just lock the screen, go to the next marked card, and then go to the next marked card? It seems like an odd way to get around, though. I am missing something. Craig Newman In a message dated 11/3/10 8:46:17 AM, cszasz at mac.com writes: > I have a project that uses marked cards to navigate them. Aside from > unmarking a card, is there a way to skip a mark card when you are using a > script (go to next marked card) to go to marked cards? > From cszasz at mac.com Wed Nov 3 10:00:19 2010 From: cszasz at mac.com (charles61) Date: Wed, 3 Nov 2010 07:00:19 -0700 (PDT) Subject: Skipping a mark card In-Reply-To: References: <1288788367834-3025277.post@n4.nabble.com> Message-ID: <134CB2D3-37CB-40F2-9D91-CCB2A2609456@mac.com> Hi Craig, I have a special marked card that is always marked. This because I also want it to be included when a text file is saved. I only want the special card to be accessible via a button. In addition, I have other marked cards that the user has access to while using my application. I use the marked cards for the user to go from one marked card to others that are marked. I also use marked cards for printing. So, the special marked card is always saved even if it is empty. This special marked card is reserved for the user when a certain type of meeting is needed. When the user clicks on a button to go to this special card, the user can fill it out and print it. Then save it along with the other marked cards. Charles Szasz cszasz at mac.com On Nov 3, 2010, at 9:48 AM, dunbarx [via Runtime Revolution] wrote: > Do you always want to do this, to always go to the following marked card? > In other words, to always go to the second marked card during any navigation? > > If so, why not just lock the screen, go to the next marked card, and then > go to the next marked card? > > It seems like an odd way to get around, though. I am missing something. > > Craig Newman > > In a message dated 11/3/10 8:46:17 AM, [hidden email] writes: > > > > I have a project that uses marked cards to navigate them. Aside from > > unmarking a card, is there a way to skip a mark card when you are using a > > script (go to next marked card) to go to marked cards? > > > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025390.html > To unsubscribe from Skipping a mark card, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025401.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Wed Nov 3 10:00:52 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 3 Nov 2010 08:00:52 -0600 Subject: delete chunk. In-Reply-To: References: Message-ID: Actually, I think that's exactly the problem. "a,b,,," has 4 items. The trailing , is ignored. "a,b,,,e" has 5 items. putting a space, or some type of invisible char after the trailing , makes it 5 items. It drives me nuts, if the comma is there it should designate a null item whether its in the middle or at the end. On Wed, Nov 3, 2010 at 7:43 AM, 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 them.For > example, "a,b,,," has five items. Putting empty, or anything, into item 4, > say, > makes sense, and we have not changed the number of itms at all. > > I think it all may just be a misperception, having to do with the last item > being perceived differently from an interior item. I'll bet this thread > would not have started if the process had been: > > delete item 3 of "a,b,,," > put empty into item 3 of "a,b,,," > > Craig Newman > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From richmondmathewson at gmail.com Wed Nov 3 10:06:47 2010 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 03 Nov 2010 16:06:47 +0200 Subject: Skipping a mark card In-Reply-To: References: Message-ID: <4CD16C77.8080309@gmail.com> 'Skipping the difficult bits' is a well-documented sport, as well as 'Jumping to conclusions' and 'Running a temperature': http://openlibrary.org/books/OL2875493M/Alice_through_the_needle's_eye So 'Skipping a marked card' is an extremely SHARP thing to do; mind you I don't how much money I would plonk down on the table if I knew my opponent was using marked cards . . . :) On 11/3/10 3:48 PM, DunbarX at aol.com wrote: > Do you always want to do this, to always go to the following marked card? > In other words, to always go to the second marked card during any navigation? > > If so, why not just lock the screen, go to the next marked card, and then > go to the next marked card? > > It seems like an odd way to get around, though. I am missing something. > > Craig Newman > > In a message dated 11/3/10 8:46:17 AM, cszasz at mac.com writes: > > >> I have a project that uses marked cards to navigate them. Aside from >> unmarking a card, is there a way to skip a mark card when you are using a >> script (go to next marked card) to go to marked cards? >> > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From cszasz at mac.com Wed Nov 3 10:09:23 2010 From: cszasz at mac.com (charles61) Date: Wed, 3 Nov 2010 07:09:23 -0700 (PDT) Subject: Skipping a mark card In-Reply-To: <4CD16C77.8080309@gmail.com> References: <1288788367834-3025277.post@n4.nabble.com> <4CD16C77.8080309@gmail.com> Message-ID: Richmond, Thanks for your humor! Charles Szasz cszasz at mac.com On Nov 3, 2010, at 10:07 AM, Richmond Mathewson-2 [via Runtime Revolution] wrote: > 'Skipping the difficult bits' is a well-documented sport, as well as > 'Jumping to conclusions' > and 'Running a temperature': > > http://openlibrary.org/books/OL2875493M/Alice_through_the_needle's_eye > > So 'Skipping a marked card' is an extremely SHARP thing to do; mind you > I don't > how much money I would plonk down on the table if I knew my opponent > was using marked cards . . . :) > > On 11/3/10 3:48 PM, [hidden email] wrote: > > > Do you always want to do this, to always go to the following marked card? > > In other words, to always go to the second marked card during any navigation? > > > > If so, why not just lock the screen, go to the next marked card, and then > > go to the next marked card? > > > > It seems like an odd way to get around, though. I am missing something. > > > > Craig Newman > > > > In a message dated 11/3/10 8:46:17 AM, [hidden email] writes: > > > > > >> I have a project that uses marked cards to navigate them. Aside from > >> unmarking a card, is there a way to skip a mark card when you are using a > >> script (go to next marked card) to go to marked cards? > >> > > _______________________________________________ > > use-revolution mailing list > > [hidden email] > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-revolution > > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025410.html > To unsubscribe from Skipping a mark card, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025412.html Sent from the Revolution - User mailing list archive at Nabble.com. From alex at tweedly.net Wed Nov 3 10:22:49 2010 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 03 Nov 2010 14:22:49 +0000 Subject: delete chunk. In-Reply-To: References: Message-ID: <4CD17039.40305@tweedly.net> On 03/11/2010 13:43, DunbarX at 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 them. But manipulating the contents of an item does (can) change the number of items. put "a,b,c" into temp put temp && the number of items in temp ===> a,b,c 3 put empty into the last item of temp put temp && the number of items in temp ===> a,b, 2 -- Alex. From zryip.theslug at gmail.com Wed Nov 3 10:23:13 2010 From: zryip.theslug at gmail.com (zryip theSlug) Date: Wed, 3 Nov 2010 15:23:13 +0100 Subject: delete chunk. In-Reply-To: <4CD0AB6C.10904@tweedly.net> References: <4CD0AB6C.10904@tweedly.net> Message-ID: On Wed, Nov 3, 2010 at 1:23 AM, Alex Tweedly wrote: > > 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. > > The docs say that "delete chunk of container" is equivalent to "put empty > into chunk of container" - but if I replace it so I do > > put "a,b,c" into temp > put empty into item -1 of temp > > then I do indeed get "a,b,". > Feels like a bug, and I should put it into QCC - but it's late at night and > I may be just missing something. > Am I ? > > Thanks > -- Alex. Alex, I have not followed all the thread but a synonym for: delete item -1 of temp is delete last item of temp See items like kind of containers. With "a,b,c" you have a group three boxes. By using: delete last item of temp you will removing completly the last box from the group And you will have as result 2 boxes: "a,b" However by using: put empty into last item of temp you will empty the last box, but the box will still exist: "a,b," So not a bug but a natural way to use items in LC ;) Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From alex at tweedly.net Wed Nov 3 10:25:22 2010 From: alex at tweedly.net (Alex Tweedly) Date: Wed, 03 Nov 2010 14:25:22 +0000 Subject: delete chunk. In-Reply-To: References: Message-ID: <4CD170D2.40609@tweedly.net> 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 an empty one else -- use "the last item of L" which is not empty end if -- Alex. On 03/11/2010 12:52, Ken Ray wrote: >> Just tossing this out there, but I *love* this behavior. I'm sure there are >> situations where it's undesirable, but are easily compensated for by just >> adding another delimiter. >> >> Begin able to do the following is very handy and makes the code clean: >> >> put "foo"& cr after fld "x" >> put "bar"& cr after fld "x" >> put the number of lines of fld "x" >> >> Having that return 2 is extremely convenient. > Agreed, but sometimes it's not convenient when you want to get the "last > item" of a line; for example, if you have a container that holds columns for > First Name (tab) Last Name (tab) Notes, and some lines have a note and some > don't, you can't just set the itemDelimiter to tab and run through the > container and get the "last item" or "item -1" of the line to check if the > person entered a note; if they didn't provide one, then check the "last > item" will give you their Last Name instead. > > It would be great if there was a global setting that you could toggle it on > in these circumstances, something like: > > put item -1 of "Ken,Ray," > ==> returns "Ray" > > set the dontIgnoreTrailingDelimiter to true > put item -1 of "Ken,Ray," > ==> returns "" > > :-) > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From jonathandlynch at gmail.com Wed Nov 3 10:32:37 2010 From: jonathandlynch at gmail.com (Jonathan Lynch) Date: Wed, 3 Nov 2010 10:32:37 -0400 Subject: delete chunk. In-Reply-To: <4CD170D2.40609@tweedly.net> References: <4CD170D2.40609@tweedly.net> Message-ID: Hi Alex, I am starting to agree with you that some of this becomes counterintuitive. Not hard to work around, but potentially confusing to a newcomer. I am in the habit of fastidiously making sure that my lists do not have a trailing delimiter, so I have not been plagued by this too much. "a,b,,," should say that it contains five items (two characters and three empty items). If it does not, that is confusing. On Wed, Nov 3, 2010 at 10:25 AM, Alex Tweedly wrote: > 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 an empty one > else > -- use "the last item of L" which is not empty > end if > > -- Alex. > > > On 03/11/2010 12:52, Ken Ray wrote: > >> Just tossing this out there, but I *love* this behavior. I'm sure there >>> are >>> situations where it's undesirable, but are easily compensated for by just >>> adding another delimiter. >>> >>> Begin able to do the following is very handy and makes the code clean: >>> >>> put "foo"& cr after fld "x" >>> put "bar"& cr after fld "x" >>> put the number of lines of fld "x" >>> >>> Having that return 2 is extremely convenient. >>> >> Agreed, but sometimes it's not convenient when you want to get the "last >> item" of a line; for example, if you have a container that holds columns >> for >> First Name (tab) Last Name (tab) Notes, and some lines have a note and >> some >> don't, you can't just set the itemDelimiter to tab and run through the >> container and get the "last item" or "item -1" of the line to check if the >> person entered a note; if they didn't provide one, then check the "last >> item" will give you their Last Name instead. >> >> It would be great if there was a global setting that you could toggle it >> on >> in these circumstances, something like: >> >> put item -1 of "Ken,Ray," >> ==> returns "Ray" >> >> set the dontIgnoreTrailingDelimiter to true >> put item -1 of "Ken,Ray," >> ==> returns "" >> >> :-) >> >> Ken Ray >> Sons of Thunder Software, Inc. >> Email: kray at sonsothunder.com >> Web Site: http://www.sonsothunder.com/ >> >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> >> > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- Do all things with love From cszasz at mac.com Wed Nov 3 10:47:01 2010 From: cszasz at mac.com (charles61) Date: Wed, 3 Nov 2010 07:47:01 -0700 (PDT) Subject: Skipping a mark card In-Reply-To: References: <1288788367834-3025277.post@n4.nabble.com> Message-ID: <60A3D375-FADA-4382-ADE4-30D64ECD946D@mac.com> Craig, I found that by checking the Find Command ignores box of the special marked card that I don't want the user to access using the marked command works! But this card has to be the last marked card in the stack to work. When the user is on the next to last marked card and clicks on a navigation button to go to next marked card, the button does nothing. But on other marked cards it works. So this keeps the user from accessing the special marked card using navigation buttons. Charles Szasz cszasz at mac.com On Nov 3, 2010, at 9:48 AM, dunbarx [via Runtime Revolution] wrote: > Do you always want to do this, to always go to the following marked card? > In other words, to always go to the second marked card during any navigation? > > If so, why not just lock the screen, go to the next marked card, and then > go to the next marked card? > > It seems like an odd way to get around, though. I am missing something. > > Craig Newman > > In a message dated 11/3/10 8:46:17 AM, [hidden email] writes: > > > > I have a project that uses marked cards to navigate them. Aside from > > unmarking a card, is there a way to skip a mark card when you are using a > > script (go to next marked card) to go to marked cards? > > > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025390.html > To unsubscribe from Skipping a mark card, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025484.html Sent from the Revolution - User mailing list archive at Nabble.com. From cszasz at mac.com Wed Nov 3 10:50:14 2010 From: cszasz at mac.com (charles61) Date: Wed, 3 Nov 2010 07:50:14 -0700 (PDT) Subject: Skipping a mark card In-Reply-To: References: <1288788367834-3025277.post@n4.nabble.com> Message-ID: <3C515AC3-6394-437B-8A84-5D8A093ECFF6@mac.com> Craig, I forgot to add that I had to use the following script in my navigation button in addition to checking the Find Command ignores box of the special marked card: on mouseUp if dontSearch of next marked card = false then go next marked card end if end mouseUp Charles Szasz cszasz at mac.com On Nov 3, 2010, at 9:48 AM, dunbarx [via Runtime Revolution] wrote: > Do you always want to do this, to always go to the following marked card? > In other words, to always go to the second marked card during any navigation? > > If so, why not just lock the screen, go to the next marked card, and then > go to the next marked card? > > It seems like an odd way to get around, though. I am missing something. > > Craig Newman > > In a message dated 11/3/10 8:46:17 AM, [hidden email] writes: > > > > I have a project that uses marked cards to navigate them. Aside from > > unmarking a card, is there a way to skip a mark card when you are using a > > script (go to next marked card) to go to marked cards? > > > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025390.html > To unsubscribe from Skipping a mark card, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3025488.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Wed Nov 3 11:07:30 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 3 Nov 2010 09:07:30 -0600 Subject: delete chunk. In-Reply-To: References: <4CD170D2.40609@tweedly.net> Message-ID: Yep, a delimiter should be a delimiter even if it delimits null. On Wed, Nov 3, 2010 at 8:32 AM, Jonathan Lynch wrote: > Hi Alex, > > I am starting to agree with you that some of this becomes counterintuitive. > Not hard to work around, but potentially confusing to a newcomer. > > I am in the habit of fastidiously making sure that my lists do not have a > trailing delimiter, so I have not been plagued by this too much. > > "a,b,,," should say that it contains five items (two characters and three > empty items). If it does not, that is confusing. > > On Wed, Nov 3, 2010 at 10:25 AM, Alex Tweedly wrote: > > > 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 an empty one > > else > > -- use "the last item of L" which is not empty > > end if > > > > -- Alex. > > > > > > On 03/11/2010 12:52, Ken Ray wrote: > > > >> Just tossing this out there, but I *love* this behavior. I'm sure there > >>> are > >>> situations where it's undesirable, but are easily compensated for by > just > >>> adding another delimiter. > >>> > >>> Begin able to do the following is very handy and makes the code clean: > >>> > >>> put "foo"& cr after fld "x" > >>> put "bar"& cr after fld "x" > >>> put the number of lines of fld "x" > >>> > >>> Having that return 2 is extremely convenient. > >>> > >> Agreed, but sometimes it's not convenient when you want to get the "last > >> item" of a line; for example, if you have a container that holds columns > >> for > >> First Name (tab) Last Name (tab) Notes, and some lines have a note and > >> some > >> don't, you can't just set the itemDelimiter to tab and run through the > >> container and get the "last item" or "item -1" of the line to check if > the > >> person entered a note; if they didn't provide one, then check the "last > >> item" will give you their Last Name instead. > >> > >> It would be great if there was a global setting that you could toggle it > >> on > >> in these circumstances, something like: > >> > >> put item -1 of "Ken,Ray," > >> ==> returns "Ray" > >> > >> set the dontIgnoreTrailingDelimiter to true > >> put item -1 of "Ken,Ray," > >> ==> returns "" > >> > >> :-) > >> > >> Ken Ray > >> Sons of Thunder Software, Inc. > >> Email: kray at sonsothunder.com > >> Web Site: http://www.sonsothunder.com/ > >> > >> > >> _______________________________________________ > >> use-revolution mailing list > >> use-revolution at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-revolution > >> > >> > > _______________________________________________ > > use-revolution mailing list > > use-revolution at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-revolution > > > > > > -- > Do all things with love > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From jacque at hyperactivesw.com Wed Nov 3 11:20:09 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 03 Nov 2010 10:20:09 -0500 Subject: delete chunk. In-Reply-To: References: Message-ID: <4CD17DA9.2070908@hyperactivesw.com> On 11/3/10 9:00 AM, Mike Bonner wrote: > Actually, I think that's exactly the problem. "a,b,,," has 4 items. The > trailing , is ignored. "a,b,,,e" has 5 items. putting a space, or some > type of invisible char after the trailing , makes it 5 items. It drives me > nuts, if the comma is there it should designate a null item whether its in > the middle or at the end. Okay, then how many lines should be in: a b ? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bonnmike at gmail.com Wed Nov 3 11:41:16 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 3 Nov 2010 09:41:16 -0600 Subject: delete chunk. In-Reply-To: <4CD17DA9.2070908@hyperactivesw.com> References: <4CD17DA9.2070908@hyperactivesw.com> Message-ID: In my opinion? it SHOULD say 3. 2 lines with stuff, and 1 blank. Of course it says 2, but this is the same reason people "delete the last char of.." when doing things. If you fill a field with "this" & cr & "that" & cr, and then click at the bottom of the field, your cursor goes to the blank line underneath the 2 lines with text. The line exists, it should be counted. Looking at it the other way, if you put fred into line 1 of field 1, put mike into line 2 of field 1, the cr is added between the 2 automatically, but there is no extra trailing line. There are 2 lines. Having text for line 1 & cr empty for line 2 & cr text for line 3, at that point, line 2 looks and acts exactly like line 2 would look and behave if there were no line 3. You can click in it, type in it, it acts like a line. And is counted as a line like it should be. If however it is a trailing empty line it is not counted. It's the same exact thing. A cr followed by empty. Simply adding another line after it shouldn't make it magically appear as a line. either it is or it isn't, at least so it seems to me. Having said all this, there is most likely a reason it is the way it is that I don't have enough knowledge to understand. As with removing trailing carriage returns, if it's a null item it isn't difficult to work around and i'm not sure I can come up with a valid reason for actually having an empty item, but that doesn't mean there isn't a use for it. /shrug As a last visual example, I have several spice bottles in my kitchen, some of which are empty. If I re-arrange them so that an empty one is on the end of the row it doesn't cease to exist, and it doesn't pop back in to being because i put it between 2 spice bottles that DO have contents. On Wed, Nov 3, 2010 at 9:20 AM, J. Landman Gay wrote: > On 11/3/10 9:00 AM, Mike Bonner wrote: > >> Actually, I think that's exactly the problem. "a,b,,," has 4 items. The >> trailing , is ignored. "a,b,,,e" has 5 items. putting a space, or some >> type of invisible char after the trailing , makes it 5 items. It drives >> me >> nuts, if the comma is there it should designate a null item whether its in >> the middle or at the end. >> > > Okay, then how many lines should be in: > > a > b > > ? > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From bobs at twft.com Wed Nov 3 12:21:15 2010 From: bobs at twft.com (Bob Sneidar) Date: Wed, 3 Nov 2010 09:21:15 -0700 Subject: seconds function giving wrong time In-Reply-To: <4CD0F95C.4010607@rotundasoftware.com> References: <20101102170004.A4FBE28814E@mail.runrev.com> <4CD0F95C.4010607@rotundasoftware.com> Message-ID: JACQUE????? Put that dang time travel stack away!!! Bob On Nov 2, 2010, at 10:55 PM, David Beck wrote: > > I do not remember this ever happening before. Something very strange seems to be going on here. I'm hoping somebody can shed some light on what it is. After typing in these commands in the message box: > > put the seconds into test > convert test to dateItems > put the internet date into test2 > convert test2 to dateItems > put test & return & test2 > > I get the following result: > > 2010,11,2,20,23,46,3 > 2010,11,2,22,48,44,3 > > The second result matches the system date correctly (Windows 7 running on Parellels). The first result is 2 hours and 25 minutes behind. Does anybody have any idea what is going on here? > > Thanks. > > David Beck > Rotunda Software > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From jimaultwins at yahoo.com Wed Nov 3 12:50:26 2010 From: jimaultwins at yahoo.com (Jim Ault) Date: Wed, 3 Nov 2010 09:50:26 -0700 Subject: delete chunk. In-Reply-To: References: <4CD17DA9.2070908@hyperactivesw.com> Message-ID: <7D523331-1A02-4126-8CA3-B7DC3EACC267@yahoo.com> Tomato On Nov 3, 2010, at 8:41 AM, Mike Bonner wrote: > In my opinion? it SHOULD say 3. 2 lines with stuff, and 1 blank. > Of course > it says 2, but this is the same reason people "delete the last char > of.." > when doing things. If you fill a field with "this" & cr & "that" & > cr, and > then click at the bottom of the field, your cursor goes to the blank > line > underneath the 2 lines with text. The line exists, it should be > counted. > Looking at it the other way, if you put fred into line 1 of field 1, > put > mike into line 2 of field 1, the cr is added between the 2 > automatically, > but there is no extra trailing line. There are 2 lines. > > Having text for line 1 & cr empty for line 2 & cr text for line 3, > at that > point, line 2 looks and acts exactly like line 2 would look and > behave if > there were no line 3. You can click in it, type in it, it acts like > a line. > And is counted as a line like it should be. If however it is a > trailing > empty line it is not counted. It's the same exact thing. A cr > followed by > empty. Simply adding another line after it shouldn't make it > magically > appear as a line. either it is or it isn't, at least so it seems to > me. > > Having said all this, there is most likely a reason it is the way it > is that > I don't have enough knowledge to understand. As with removing > trailing > carriage returns, if it's a null item it isn't difficult to work > around and > i'm not sure I can come up with a valid reason for actually having > an empty > item, but that doesn't mean there isn't a use for it. /shrug > > As a last visual example, I have several spice bottles in my > kitchen, some > of which are empty. If I re-arrange them so that an empty one is on > the end > of the row it doesn't cease to exist, and it doesn't pop back in to > being > because i put it between 2 spice bottles that DO have contents. > > > On Wed, Nov 3, 2010 at 9:20 AM, J. Landman Gay >wrote: > >> On 11/3/10 9:00 AM, Mike Bonner wrote: >> >>> Actually, I think that's exactly the problem. "a,b,,," has 4 >>> items. The >>> trailing , is ignored. "a,b,,,e" has 5 items. putting a space, >>> or some >>> type of invisible char after the trailing , makes it 5 items. It >>> drives >>> me >>> nuts, if the comma is there it should designate a null item >>> whether its in >>> the middle or at the end. >>> >> >> Okay, then how many lines should be in: >> >> a >> b >> >> ? >> >> -- >> Jacqueline Landman Gay Jim Ault Las Vegas From david_beck at rotundasoftware.com Wed Nov 3 13:18:08 2010 From: david_beck at rotundasoftware.com (David Beck) Date: Wed, 03 Nov 2010 10:18:08 -0700 Subject: seconds function giving wrong time In-Reply-To: <20101103140905.29FA0288217@mail.runrev.com> References: <20101103140905.29FA0288217@mail.runrev.com> Message-ID: <4CD19950.8070700@rotundasoftware.com> Thanks Jim. On 11/3/10 7:09 AM, use-revolution-request at lists.runrev.com wrote: > This script works as expected on MacOSX 10.5.8 Rev 4.0.0 Build 950 > > get the internet date > convert it to seconds > put the seconds - it into test3 > > put the seconds into test > convert test to dateItems > put the internet date into test2 > convert test2 to dateItems > put test& return& test2& return& test3 > --------------------- > 2010,11,3,0,56,12,4 > 2010,11,3,0,56,12,4 > 0 > ------------------- > ... when run 56 minutes after midnight PDT, Nov 3rd > > > Could be parallels + Win 7 + MacOSX and time clock sharing. > From jacque at hyperactivesw.com Wed Nov 3 13:29:08 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 03 Nov 2010 12:29:08 -0500 Subject: seconds function giving wrong time In-Reply-To: References: <20101102170004.A4FBE28814E@mail.runrev.com> <4CD0F95C.4010607@rotundasoftware.com> Message-ID: <4CD19BE4.70605@hyperactivesw.com> On 11/3/10 11:21 AM, Bob Sneidar wrote: > JACQUE????? Put that dang time travel stack away!!! It's just a misplaced breakpoint, the script has stopped somewhere next week. I'll get it running again in a few days when I catch up with it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Nov 3 13:33:52 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 03 Nov 2010 12:33:52 -0500 Subject: delete chunk. In-Reply-To: References: <4CD17DA9.2070908@hyperactivesw.com> Message-ID: <4CD19D00.6000600@hyperactivesw.com> On 11/3/10 10:41 AM, Mike Bonner wrote: > Having said all this, there is most likely a reason it is the way it is that > I don't have enough knowledge to understand. As with removing trailing > carriage returns, if it's a null item it isn't difficult to work around and > i'm not sure I can come up with a valid reason for actually having an empty > item, but that doesn't mean there isn't a use for it. /shrug It may be the difference between seeing the delimiter as a terminating character or as a dividing character. If you consider the comma or return as a terminator, then it is "attached" to the preceding string. If that entry is empty, there is nothing to terminate and the engine removes it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From richmondmathewson at gmail.com Wed Nov 3 13:39:15 2010 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 03 Nov 2010 19:39:15 +0200 Subject: Nutty as a fruitcake Message-ID: <4CD19E43.4090501@gmail.com> Release Candidate 2 of Devawriter Pro (Demo) is now available for download: http://andregarzia.on-rev.com/richmond/dwriterpro.html Be there, or be square . . . :) sincerely, Richmond Mathewson. From williamdesmet at gmail.com Wed Nov 3 13:43:18 2010 From: williamdesmet at gmail.com (William de Smet) Date: Wed, 3 Nov 2010 18:43:18 +0100 Subject: LiveCode external/plugin question In-Reply-To: <87D14961-D22C-433E-82A3-121507C363D1@economy-x-talk.com> References: <3EBE5B0E-E36B-4ABD-9929-DED701D3353A@m-r-d.de> <87D14961-D22C-433E-82A3-121507C363D1@economy-x-talk.com> Message-ID: @Matthias and Mark: Thanks for your replies! I was looking for true kiosk mode so Marks advise using IE isn't the right thing for me. I need all keys to be blocked. Editing the registry seems the only way but it needs the computer to reboot. I need my app on startup to block these keys without rebooting the machine. After closing the app the keys need to function again. Is this even possible? Greetings, William 2010/11/3 Mark Schonewille : > Hi William, > > As an easy alternative to Matthias' solution, you could run your stack as a revlet in Internet Explorer and start IE in kiosk mode > http://support.microsoft.com/kb/154780 > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce Create installers for Mac and Windows on *every* Rev-compatible platform. No additional software needed. > > On 3 nov 2010, at 14:10, Matthias Rebbe wrote: > >> William, >> >> at >> >> http://www.northcode.com/blog.php/2007/07/25/Securing-Windows-For-Use-As-A-Kiosk >> >> you find information how to solve this by modifying the registry. >> I used that for XP some time ago. But i do not know, if this works with Windows Vista/7 also. >> >> Maybe this helps. >> >> Regards, >> >> Matthias >> > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From bonnmike at gmail.com Wed Nov 3 13:54:16 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 3 Nov 2010 11:54:16 -0600 Subject: delete chunk. In-Reply-To: <4CD19D00.6000600@hyperactivesw.com> References: <4CD17DA9.2070908@hyperactivesw.com> <4CD19D00.6000600@hyperactivesw.com> Message-ID: It helps if I think of it that way but in the case of empty items in the middle of a line it doesn't behave that way. Still terminates nothing, but is counted as an item. Despite all the conversation, I've never really run into it as a problem except when I was playing with merge one day. Had a string like "[[item1]],[[item2]],[[item3]]" and would merge it, and was lost when some of my items were empty, and "the number of items" would return different values based on which item was empty. Real confusing for a newbie when you can do "if item 2 is empty then.. but not "if the last item is empty" when you expect there to be 3 items. The way it works currently, you can never check to see if the last item is empty because it never can be. If it is, it will check the next one to the left instead. I just changed how I do things so it's not a big deal. I got curious one day and did some tests. Building a long list (multi row/column) by looping and using put "something" into item # line # of tListImMaking was horrendously slow when compared to put whateveritemsyouneedonthisline & return after tListImMaking, and then truncating the last return, so that eliminated a percentage of the things I was attempting and shoved me down different roads. On Wed, Nov 3, 2010 at 11:33 AM, J. Landman Gay wrote: > On 11/3/10 10:41 AM, Mike Bonner wrote: > > Having said all this, there is most likely a reason it is the way it is >> that >> I don't have enough knowledge to understand. As with removing trailing >> carriage returns, if it's a null item it isn't difficult to work around >> and >> i'm not sure I can come up with a valid reason for actually having an >> empty >> item, but that doesn't mean there isn't a use for it. /shrug >> > > It may be the difference between seeing the delimiter as a terminating > character or as a dividing character. If you consider the comma or return as > a terminator, then it is "attached" to the preceding string. If that entry > is empty, there is nothing to terminate and the engine removes it. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From jonathandlynch at gmail.com Wed Nov 3 13:56:02 2010 From: jonathandlynch at gmail.com (Jonathan Lynch) Date: Wed, 3 Nov 2010 13:56:02 -0400 Subject: delete chunk. In-Reply-To: <4CD19D00.6000600@hyperactivesw.com> References: <4CD17DA9.2070908@hyperactivesw.com> <4CD19D00.6000600@hyperactivesw.com> Message-ID: So think about this. If we only regard the delimiter as a delimiter between items (rather than a terminator), then how would we have a container with zero items? I mean, if 1 delimiter indicates the presence of two items, then zero delimiters would indicate one item. would an empty container have zero items, or one item that is empty? On Wed, Nov 3, 2010 at 1:33 PM, J. Landman Gay wrote: > On 11/3/10 10:41 AM, Mike Bonner wrote: > > Having said all this, there is most likely a reason it is the way it is >> that >> I don't have enough knowledge to understand. As with removing trailing >> carriage returns, if it's a null item it isn't difficult to work around >> and >> i'm not sure I can come up with a valid reason for actually having an >> empty >> item, but that doesn't mean there isn't a use for it. /shrug >> > > It may be the difference between seeing the delimiter as a terminating > character or as a dividing character. If you consider the comma or return as > a terminator, then it is "attached" to the preceding string. If that entry > is empty, there is nothing to terminate and the engine removes it. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- Do all things with love From bonnmike at gmail.com Wed Nov 3 14:09:24 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 3 Nov 2010 12:09:24 -0600 Subject: delete chunk. In-Reply-To: References: <4CD17DA9.2070908@hyperactivesw.com> <4CD19D00.6000600@hyperactivesw.com> Message-ID: Hmm. I get your point, and now I think I have a little bit of gray leaking out my left ear. If you look at it as if the delimiter is both an instigator AND a terminator, then if you have a var with "," in it, it seems like it should be 2 empty (and pointless) items. I had been thinking that it could be considered an instigator only with an assumed delimiter before the first item, but then as you say, empty isn't empty, empty would be 1 empty item. This also explains why I will never ever write my own intepreter/compiler. Too many things I will never understand well enough. Love trying to get my head around things, failure to do so can be as educational as success if not more so. On Wed, Nov 3, 2010 at 11:56 AM, Jonathan Lynch wrote: > So think about this. > > If we only regard the delimiter as a delimiter between items (rather than a > terminator), then how would we have a container with zero items? > > I mean, if 1 delimiter indicates the presence of two items, then zero > delimiters would indicate one item. > > would an empty container have zero items, or one item that is empty? > > On Wed, Nov 3, 2010 at 1:33 PM, J. Landman Gay >wrote: > > > On 11/3/10 10:41 AM, Mike Bonner wrote: > > > > Having said all this, there is most likely a reason it is the way it is > >> that > >> I don't have enough knowledge to understand. As with removing trailing > >> carriage returns, if it's a null item it isn't difficult to work around > >> and > >> i'm not sure I can come up with a valid reason for actually having an > >> empty > >> item, but that doesn't mean there isn't a use for it. /shrug > >> > > > > It may be the difference between seeing the delimiter as a terminating > > character or as a dividing character. If you consider the comma or return > as > > a terminator, then it is "attached" to the preceding string. If that > entry > > is empty, there is nothing to terminate and the engine removes it. > > > > -- > > Jacqueline Landman Gay | jacque at hyperactivesw.com > > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > > use-revolution mailing list > > use-revolution at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-revolution > > > > > > -- > Do all things with love > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From kray at sonsothunder.com Wed Nov 3 14:56:43 2010 From: kray at sonsothunder.com (Ken Ray) Date: Wed, 03 Nov 2010 13:56:43 -0500 Subject: delete chunk. In-Reply-To: <4CD170D2.40609@tweedly.net> Message-ID: > 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 an empty one > else > -- use "the last item of L" which is not empty > end if Thanks, Alex... that's something I do when I need to, but it seems like more of a workaround to me, which is why I'd rather have some kind of global setting I could turn on when I needed it. In some ways it's like like "the wholematches"... I don't believe we had that in HyperCard, so if you were trying to see if a "whole" something matched, you had to do slap the delimiters in front of and after everything, like: -- imagine field 1 has a CR-delimited list of different kinds of fruit if offset((cr & pears & cr),(cr & tFruit & cr)) <> 0 then... It's so much easier to say: set the wholeMatches to true if lineOffset("pear",tFruit) <> 0 then... Maybe we should call it the "wholeChunks" ? set the wholeChunks to true put item -1 of "Ken,Ray," ==> returns "" ?? :-) Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From gregory.lypny at videotron.ca Wed Nov 3 14:59:45 2010 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Wed, 03 Nov 2010 14:59:45 -0400 Subject: Path and File Questions for On-Rev Message-ID: Hi everyone, How can I get a simple listing of files in a subfolder named, say, myFolder in my public_html directory at On-rev? If I run put the files I get the list of files in public_html. Does files() accept a path as a parameter? Haven't being able to get it to work. Likewise, how can I delete files in a subfolder using irev scripts? I think my problem is that I'm not specifying paths on the server correctly. Regards, Gregory From runrev260805 at m-r-d.de Wed Nov 3 15:12:13 2010 From: runrev260805 at m-r-d.de (Matthias Rebbe) Date: Wed, 3 Nov 2010 20:12:13 +0100 Subject: Path and File Questions for On-Rev In-Reply-To: References: Message-ID: <232E549C-9F4D-4425-B6F6-20F5F684FD5E@m-r-d.de> Gregory you have just to change the default folder. " in tList put tList ?> Regards, Matthias Am 03.11.2010 um 19:59 schrieb Gregory Lypny: > Hi everyone, > > How can I get a simple listing of files in a subfolder named, say, myFolder in my public_html directory at On-rev? > > If I run > > put the files > > I get the list of files in public_html. Does files() accept a path as a parameter? Haven't being able to get it to work. Likewise, how can I delete files in a subfolder using irev scripts? > > I think my problem is that I'm not specifying paths on the server correctly. > > Regards, > > Gregory > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From bonnmike at gmail.com Wed Nov 3 15:12:59 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 3 Nov 2010 13:12:59 -0600 Subject: Path and File Questions for On-Rev In-Reply-To: References: Message-ID: if you set the defaultfolder to the defaultFolder & "/myFolder" and then put the files you should be good to go. delete file takes a path as argument so if you don't want to set the default folder for that you can specify a relative (based on current default folder) or absolute path delete file "pathtofolder/filetodelete" and the result will contain a fail message if the file was not found. On Wed, Nov 3, 2010 at 12:59 PM, Gregory Lypny wrote: > Hi everyone, > > How can I get a simple listing of files in a subfolder named, say, myFolder > in my public_html directory at On-rev? > > If I run > > put the files > > I get the list of files in public_html. Does files() accept a path as a > parameter? Haven't being able to get it to work. Likewise, how can I > delete files in a subfolder using irev scripts? > > I think my problem is that I'm not specifying paths on the server > correctly. > > Regards, > > Gregory > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From richmondmathewson at gmail.com Wed Nov 3 15:35:45 2010 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 03 Nov 2010 21:35:45 +0200 Subject: plisted off ? Message-ID: <4CD1B991.809@gmail.com> I just released a new version of the Demo of my upcoming Devawriter Pro and got this back from the people at MacUpdate: "You recently submitted an update request in which you referred to the latest version of DevaWriter Pro as simply "RC2", but according to the version strings in the info.plist file, it is 4.0.0.950. Is this a release candidate for Version 4.0? Please let me know so that I can clarify this version number discrepancy." Umm . . . 1. Am I missing something? Having set the version number as 'R2' in the standalone builder; why does the info.plist contain the version number of the development IDE? 2. Is there a simple way to circumvent this? Short of cracking open the Mac .app package and editing the info.plist with a text editor? From psahores at free.fr Wed Nov 3 15:37:09 2010 From: psahores at free.fr (Pierre Sahores) Date: Wed, 3 Nov 2010 20:37:09 +0100 Subject: dns validation of ".fr" domain and on-rev In-Reply-To: References: <4CCD1899.107@gmail.com> <1288591908940-3021793.post@n4.nabble.com> <1288635929888-3022582.post@n4.nabble.com> Message-ID: <1DF892CF-7A15-438F-8DD5-F869D9AE1A8F@free.fr> Hi there, I'm trying to install a new companion domain on my on-rev account without success, at least for yet, because this domain, widestep.fr, needs, because the ".fr", to pass the AFNIC (french NIC office) dns validator tests and it is n't the case at the moment. Did anyone had more success in installing such an ".fr" domain on its own on-rev account ? Any help greatly appreciated, Best regards, -- Pierre Sahores mobile : (33) 6 03 95 77 70 www.woooooooords.com www.sahores-conseil.com From andre at andregarzia.com Wed Nov 3 15:38:05 2010 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 3 Nov 2010 17:38:05 -0200 Subject: Path and File Questions for On-Rev In-Reply-To: References: Message-ID: better than that is to create a listFiles function such as: function listFiles pPath put the defaultfolder into tCurrentDefaultFolder set the defaultfolder to pPath get the files set the defaultfolder to tCurrentDefaultFolder return it end listFiles This way, you don't risk overwriting the default folder. Sometimes you want to list the files somewhere but don't want to change the folder there, this solves your problems andre On Wed, Nov 3, 2010 at 5:12 PM, Mike Bonner wrote: > if you set the defaultfolder to the defaultFolder & "/myFolder" > and then put the files you should be good to go. > > delete file takes a path as argument so if you don't want to set the > default > folder for that you can specify a relative (based on current default > folder) > or absolute path > delete file "pathtofolder/filetodelete" > and the result will contain a fail message if the file was not found. > > On Wed, Nov 3, 2010 at 12:59 PM, Gregory Lypny > wrote: > > > Hi everyone, > > > > How can I get a simple listing of files in a subfolder named, say, > myFolder > > in my public_html directory at On-rev? > > > > If I run > > > > put the files > > > > I get the list of files in public_html. Does files() accept a path as a > > parameter? Haven't being able to get it to work. Likewise, how can I > > delete files in a subfolder using irev scripts? > > > > I think my problem is that I'm not specifying paths on the server > > correctly. > > > > Regards, > > > > Gregory > > > > > > _______________________________________________ > > use-revolution mailing list > > use-revolution at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-revolution > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- http://www.andregarzia.com All We Do Is Code. From martyknapp at comcast.net Wed Nov 3 15:43:50 2010 From: martyknapp at comcast.net (Marty Knapp) Date: Wed, 03 Nov 2010 12:43:50 -0700 Subject: plisted off ? In-Reply-To: <4CD1B991.809@gmail.com> References: <4CD1B991.809@gmail.com> Message-ID: <4CD1BB76.4010105@comcast.net> Sarah has a nice plist editor: http://troz.net/rev/index.irev?category=Utility#stacks toward the bottom. Marty Knapp > I just released a new version of the Demo of my upcoming Devawriter > Pro and got this back > from the people at MacUpdate: > > "You recently submitted an update request in which you referred to the > latest version of DevaWriter Pro as simply "RC2", but according to the > version strings in the info.plist file, it is 4.0.0.950. Is this a > release candidate for Version 4.0? Please let me know so that I can > clarify this version number discrepancy." > > Umm . . . > > 1. Am I missing something? Having set the version number as 'R2' in > the standalone builder; why does > the info.plist contain the version number of the development IDE? > > 2. Is there a simple way to circumvent this? Short of cracking open > the Mac .app package and editing > the info.plist with a text editor? > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From richmondmathewson at gmail.com Wed Nov 3 15:50:03 2010 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 03 Nov 2010 21:50:03 +0200 Subject: plisted off ? In-Reply-To: <4CD1BB76.4010105@comcast.net> References: <4CD1B991.809@gmail.com> <4CD1BB76.4010105@comcast.net> Message-ID: <4CD1BCEB.50307@gmail.com> On 11/03/2010 09:43 PM, Marty Knapp wrote: > Sarah has a nice plist editor: > > http://troz.net/rev/index.irev?category=Utility#stacks > > toward the bottom. > > Marty Knapp Thanks; very helpful indeed . . . :) >> I just released a new version of the Demo of my upcoming Devawriter >> Pro and got this back >> from the people at MacUpdate: >> >> "You recently submitted an update request in which you referred to >> the latest version of DevaWriter Pro as simply "RC2", but according >> to the version strings in the info.plist file, it is 4.0.0.950. Is >> this a release candidate for Version 4.0? Please let me know so that >> I can clarify this version number discrepancy." >> >> Umm . . . >> >> 1. Am I missing something? Having set the version number as 'R2' in >> the standalone builder; why does >> the info.plist contain the version number of the development IDE? >> >> 2. Is there a simple way to circumvent this? Short of cracking open >> the Mac .app package and editing >> the info.plist with a text editor? >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From DunbarX at aol.com Wed Nov 3 16:56:54 2010 From: DunbarX at aol.com (DunbarX at aol.com) Date: Wed, 3 Nov 2010 16:56:54 EDT Subject: Skipping a mark card Message-ID: Charles. I see. So might you simply put an opencard handler into the script of your special card, sending the user to the next marked card unless some property was set? From jimaultwins at yahoo.com Wed Nov 3 17:40:31 2010 From: jimaultwins at yahoo.com (Jim Ault) Date: Wed, 3 Nov 2010 14:40:31 -0700 Subject: Skipping a mark card In-Reply-To: References: Message-ID: You might try preOpenCard which is sent before the user see the card being opened. On Nov 3, 2010, at 1:56 PM, DunbarX at aol.com wrote: > Charles. > > I see. So might you simply put an opencard handler into the script > of your > special card, sending the user to the next marked card unless some > property > was set? > ______ Jim Ault Las Vegas From bvg at mac.com Wed Nov 3 18:39:41 2010 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 03 Nov 2010 23:39:41 +0100 Subject: dns validation of ".fr" domain and on-rev In-Reply-To: <1DF892CF-7A15-438F-8DD5-F869D9AE1A8F@free.fr> References: <4CCD1899.107@gmail.com> <1288591908940-3021793.post@n4.nabble.com> <1288635929888-3022582.post@n4.nabble.com> <1DF892CF-7A15-438F-8DD5-F869D9AE1A8F@free.fr> Message-ID: <30E5B649-4714-46B7-8C5E-59DFB5EA5635@mac.com> there was something similar in the forum about german domains: http://forums.on-rev.com/viewtopic.php?f=4&t=56 i think it's best to mail support, they'll fix it. On 3 Nov 2010, at 20:37, Pierre Sahores wrote: > Hi there, > > I'm trying to install a new companion domain on my on-rev account without success, at least for yet, because this domain, widestep.fr, needs, because the ".fr", to pass the AFNIC (french NIC office) dns validator tests and it is n't the case at the moment. Did anyone had more success in installing such an ".fr" domain on its own on-rev account ? From psahores at free.fr Wed Nov 3 19:19:30 2010 From: psahores at free.fr (Pierre Sahores) Date: Thu, 4 Nov 2010 00:19:30 +0100 Subject: dns validation of ".fr" domain and on-rev In-Reply-To: <30E5B649-4714-46B7-8C5E-59DFB5EA5635@mac.com> References: <4CCD1899.107@gmail.com> <1288591908940-3021793.post@n4.nabble.com> <1288635929888-3022582.post@n4.nabble.com> <1DF892CF-7A15-438F-8DD5-F869D9AE1A8F@free.fr> <30E5B649-4714-46B7-8C5E-59DFB5EA5635@mac.com> Message-ID: <5F289C4A-9217-44D3-9754-3D6453EAE201@free.fr> Hello Bj?rnke, Many thanks. The topic seems to contains a good workaround. Will test it tomorrow. Best Regards, Le 3 nov. 2010 ? 23:39, Bj?rnke von Gierke a ?crit : > there was something similar in the forum about german domains: > > http://forums.on-rev.com/viewtopic.php?f=4&t=56 > > i think it's best to mail support, they'll fix it. > > On 3 Nov 2010, at 20:37, Pierre Sahores wrote: > >> Hi there, >> >> I'm trying to install a new companion domain on my on-rev account without success, at least for yet, because this domain, widestep.fr, needs, because the ".fr", to pass the AFNIC (french NIC office) dns validator tests and it is n't the case at the moment. Did anyone had more success in installing such an ".fr" domain on its own on-rev account ? > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- Pierre Sahores mobile : (33) 6 03 95 77 70 www.woooooooords.com www.sahores-conseil.com From cszasz at mac.com Thu Nov 4 10:09:24 2010 From: cszasz at mac.com (charles61) Date: Thu, 4 Nov 2010 07:09:24 -0700 (PDT) Subject: Skipping a mark card In-Reply-To: References: <1288788367834-3025277.post@n4.nabble.com> Message-ID: <054A2877-9E2A-4E57-9D64-ECDC81922C69@mac.com> Jim, That is interesting! How would I script this using preOpenCard? Charles Szasz cszasz at mac.com On Nov 3, 2010, at 5:40 PM, Jim Ault [via Runtime Revolution] wrote: > You might try preOpenCard > which is sent before the user see the card being opened. > > > On Nov 3, 2010, at 1:56 PM, [hidden email] wrote: > > > Charles. > > > > I see. So might you simply put an opencard handler into the script > > of your > > special card, sending the user to the next marked card unless some > > property > > was set? > > ______ > > Jim Ault > Las Vegas > > > > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3026234.html > To unsubscribe from Skipping a mark card, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3027069.html Sent from the Revolution - User mailing list archive at Nabble.com. From DunbarX at aol.com Thu Nov 4 10:27:01 2010 From: DunbarX at aol.com (DunbarX at aol.com) Date: Thu, 4 Nov 2010 10:27:01 EDT Subject: Skipping a mark card Message-ID: <100e5.1cb656a7.3a041cb5@aol.com> Charles: Just one possible way: on preOpenCard if the yourSpecialProperty of this stack is "skip" then go next marked card end preOpenCard You would create the custom property for the stack, and set it to "skip" or empty depending on what you want to do. Craig In a message dated 11/4/10 10:09:32 AM, cszasz at mac.com writes: > > That is interesting! How would I script this using preOpenCard? > From jimaultwins at yahoo.com Thu Nov 4 10:37:55 2010 From: jimaultwins at yahoo.com (Jim Ault) Date: Thu, 4 Nov 2010 07:37:55 -0700 Subject: Skipping a mark card In-Reply-To: <100e5.1cb656a7.3a041cb5@aol.com> References: <100e5.1cb656a7.3a041cb5@aol.com> Message-ID: (untested, but might work) In the stack script on preopencard if the number of marked cards is the number of cards then answer "All cards are marked" else if the marked of this card is true then go next card end if end preopencard On Nov 4, 2010, at 7:27 AM, DunbarX at aol.com wrote: > Charles: > > Just one possible way: > > on preOpenCard > if the yourSpecialProperty of this stack is "skip" then go next > marked > card > end preOpenCard > > You would create the custom property for the stack, and set it to > "skip" or > empty depending on what you want to do. > > Craig > In a message dated 11/4/10 10:09:32 AM, cszasz at mac.com writes: > > >> >> That is interesting! How would I script this using preOpenCard? >> Jim Ault Las Vegas From cszasz at mac.com Thu Nov 4 11:16:25 2010 From: cszasz at mac.com (charles61) Date: Thu, 4 Nov 2010 08:16:25 -0700 (PDT) Subject: Skipping a mark card In-Reply-To: <100e5.1cb656a7.3a041cb5@aol.com> References: <1288788367834-3025277.post@n4.nabble.com> <100e5.1cb656a7.3a041cb5@aol.com> Message-ID: <3ABB8357-C109-4D80-86D0-724F19FE6546@mac.com> Craig, Thanks! I will try your script little later today. Charles Szasz cszasz at mac.com On Nov 4, 2010, at 10:27 AM, dunbarx [via Runtime Revolution] wrote: > Charles: > > Just one possible way: > > on preOpenCard > if the yourSpecialProperty of this stack is "skip" then go next marked > card > end preOpenCard > > You would create the custom property for the stack, and set it to "skip" or > empty depending on what you want to do. > > Craig > In a message dated 11/4/10 10:09:32 AM, [hidden email] writes: > > > > > > That is interesting! How would I script this using preOpenCard? > > > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3027102.html > To unsubscribe from Skipping a mark card, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3027195.html Sent from the Revolution - User mailing list archive at Nabble.com. From cszasz at mac.com Thu Nov 4 11:16:36 2010 From: cszasz at mac.com (charles61) Date: Thu, 4 Nov 2010 08:16:36 -0700 (PDT) Subject: Skipping a mark card In-Reply-To: References: <1288788367834-3025277.post@n4.nabble.com> <100e5.1cb656a7.3a041cb5@aol.com> Message-ID: Jim, Thanks! I will try your script little later today. Charles Szasz cszasz at mac.com On Nov 4, 2010, at 10:38 AM, Jim Ault [via Runtime Revolution] wrote: > (untested, but might work) > > In the stack script > > on preopencard > if the number of marked cards is the number of cards then > answer "All cards are marked" > else > if the marked of this card is true then go next card > end if > end preopencard > > > On Nov 4, 2010, at 7:27 AM, [hidden email] wrote: > > > Charles: > > > > Just one possible way: > > > > on preOpenCard > > if the yourSpecialProperty of this stack is "skip" then go next > > marked > > card > > end preOpenCard > > > > You would create the custom property for the stack, and set it to > > "skip" or > > empty depending on what you want to do. > > > > Craig > > In a message dated 11/4/10 10:09:32 AM, [hidden email] writes: > > > > > >> > >> That is interesting! How would I script this using preOpenCard? > >> > > Jim Ault > Las Vegas > > > > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3027126.html > To unsubscribe from Skipping a mark card, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Skipping-a-mark-card-tp3025277p3027197.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Thu Nov 4 12:30:13 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 04 Nov 2010 11:30:13 -0500 Subject: LiveCode external/plugin question In-Reply-To: References: <3EBE5B0E-E36B-4ABD-9929-DED701D3353A@m-r-d.de> <87D14961-D22C-433E-82A3-121507C363D1@economy-x-talk.com> Message-ID: <4CD2DF95.8060100@hyperactivesw.com> On 11/3/10 12:43 PM, William de Smet wrote: > @Matthias and Mark: Thanks for your replies! > I was looking for true kiosk mode so Marks advise using IE isn't the > right thing for me. > I need all keys to be blocked. Editing the registry seems the only way > but it needs the computer to reboot. > > I need my app on startup to block these keys without rebooting the machine. > After closing the app the keys need to function again. > Is this even possible? Have you tried putting in a rawKeyDown handler that doesn't pass the message? That should block all keystrokes, and won't affect any other apps. You probably will need to add a way to enable the keyboard again while you are working on the stack, otherwise you won't be able to type anything. Something like this: on rawKeyDown pKey if the environment is "development" then pass rawKeyDown end rawKeyDown -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mikekann at yahoo.com Thu Nov 4 12:36:14 2010 From: mikekann at yahoo.com (Michael Kann) Date: Thu, 4 Nov 2010 09:36:14 -0700 (PDT) Subject: Skyfire for Flash on iPhone, iPad In-Reply-To: <4CD2DF95.8060100@hyperactivesw.com> Message-ID: <378412.51938.qm@web56705.mail.re3.yahoo.com> This might be old news to the Mac Mavens. If not, check out this link: http://www.huffingtonpost.com/2010/11/02/skyfire-app-enables-flash-video_n_777820.html From etcawley at fastmail.fm Thu Nov 4 13:07:35 2010 From: etcawley at fastmail.fm (edward cawley) Date: Thu, 4 Nov 2010 12:07:35 -0500 Subject: image files in standalone Message-ID: <3967090E-4987-43BD-A4DE-35831851BCAA@fastmail.fm> I have an app which has about 100 images and text files which are sent to 16 cards. The text image and audio files are all in a resources folder. Everything works fine on my desktop, but when I try to build a desktop it is made and will run but while the text files are read from the resources folder and buttons work fine the images,audio and one video do not show. the image areas show but the images are not loaded. an example of the image files: < resources/deck_animation.gif> any suggestions? From devin_asay at byu.edu Thu Nov 4 13:36:39 2010 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 4 Nov 2010 11:36:39 -0600 Subject: image files in standalone In-Reply-To: <3967090E-4987-43BD-A4DE-35831851BCAA@fastmail.fm> References: <3967090E-4987-43BD-A4DE-35831851BCAA@fastmail.fm> Message-ID: <3B2C6B00-1E04-4FB2-A629-D9A0F3785234@byu.edu> On Nov 4, 2010, at 11:07 AM, edward cawley wrote: > I have an app which has about 100 images and text files which are sent to 16 cards. The text image and audio files are all in a resources folder. Everything works fine on my desktop, but when I try to build a desktop it is made and will run but while the text files are read from the resources folder and buttons work fine the images,audio and one video do not show. the image areas show but the images are not loaded. an example of the image files: < resources/deck_animation.gif> Hello Edward, What platform are you building for? What does your folder structure look like? Do you set the defaultFolder in order to locate the resource folder? Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From m.schonewille at economy-x-talk.com Thu Nov 4 14:04:48 2010 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 4 Nov 2010 19:04:48 +0100 Subject: image files in standalone In-Reply-To: <3967090E-4987-43BD-A4DE-35831851BCAA@fastmail.fm> References: <3967090E-4987-43BD-A4DE-35831851BCAA@fastmail.fm> Message-ID: <1B27EF6D-7BA8-45D8-8DD5-8CB34682DB6E@economy-x-talk.com> Hi Edward, Have you copied the resources folder? In your specific case, a copy of your resources folder needs to be located next to the standalone (on Windows) or inside the application package next to the executable (on Mac). -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce Create installers for Mac and Windows on *every* Rev-compatible platform. No additional software needed. On 4 nov 2010, at 18:07, edward cawley wrote: > I have an app which has about 100 images and text files which are sent to 16 cards. The text image and audio files are all in a resources folder. Everything works fine on my desktop, but when I try to build a desktop it is made and will run but while the text files are read from the resources folder and buttons work fine the images,audio and one video do not show. the image areas show but the images are not loaded. an example of the image files: < resources/deck_animation.gif> > any suggestions? From jmyepes at mac.com Thu Nov 4 15:38:40 2010 From: jmyepes at mac.com (JosepM) Date: Thu, 4 Nov 2010 12:38:40 -0700 (PDT) Subject: Datagrid error when set to empty Message-ID: <1288899520134-3027651.post@n4.nabble.com> Hi, I have a strange issue with a datagrid that set the dgdata to empty. In IDE mode the app run fine but from the standalone I get this error. Any idea? Type: Object (property is not an integer) Object name: dg_compras Line:(row 0 col 0) Hint: -8 Type: Chunk (can't set property) Object name: dg_compras Line:(row 4128 col 20) Hint: Type: Object (can't set object property) Object name: dg_compras Line:(row 4128 col 5) Hint: -8 Type: set (can't set property) Object name: dg_compras Line:(row 4128 col 1) Hint: -8 Type: Handler (error in statement) Object name: dg_compras Line:(row 4128 col 1) Hint: _table.CreateDefaultHeaderGroup Type: Objec (Name:) Object name: dg_compras Line:(row 0 col 0) Hint: button id 1005 of group id 1004 of card id 1002 of stack "/Users/Joss/Desktop/facturamac_v2010/1.0.5rc16/Development/MacOS/facturamacGLX.app/Contents/MacOS/components/revdatagridlibrary.rev" Type: Handler (can't find handler) Object name: dg_compras Line:(row 4049 col 1) Hint: Type: if-then (error in statement) Object name: dg_compras Line:(row 4048 col 1) Hint: Type: if-then (error in statement) Object name: dg_compras Line:(row 4047 col 1) Hint: Type: repeat (error in statement) Object name: dg_compras Line:(row 4045 col 1) Hint: Type: Handler (error in statement) Object name: dg_compras Line:(row 4045 col 1) Hint: _table.CreateHeaders Type: Objec (Name:) Object name: dg_compras Line:(row 0 col 0) Hint: button id 1005 of group id 1004 of card id 1002 of stack "/Users/Joss/Desktop/facturamac_v2010/1.0.5rc16/Development/MacOS/facturamacGLX.app/Contents/MacOS/components/revdatagridlibrary.rev" Type: Handler (can't find handler) Object name: dg_compras Line:(row 3951 col 1) Hint: Type: Handler (error in statement) Object name: dg_compras Line:(row 3951 col 1) Hint: _table.CreateColumns Type: Objec (Name:) Object name: dg_compras Line:(row 0 col 0) Hint: button id 1005 of group id 1004 of card id 1002 of stack "/Users/Joss/Desktop/facturamac_v2010/1.0.5rc16/Development/MacOS/facturamacGLX.app/Contents/MacOS/components/revdatagridlibrary.rev" Type: Handler (can't find handler) Object name: dg_compras Line:(row 151 col 1) Hint: Type: if-then (error in statement) Object name: dg_compras Line:(row 150 col 1) Hint: Type: if-then (error in statement) Object name: dg_compras Line:(row 113 col 1) Hint: Type: Handler (error in statement) Object name: dg_compras Line:(row 113 col 1) Hint: _Initialize Type: Objec (Name:) Object name: dg_compras Line:(row 0 col 0) Hint: button id 1005 of group id 1004 of card id 1002 of stack "/Users/Joss/Desktop/facturamac_v2010/1.0.5rc16/Development/MacOS/facturamacGLX.app/Contents/MacOS/components/revdatagridlibrary.rev" Type: Handler (can't find handler) Object name: dg_compras Line:(row 4512 col 18) Hint: Type: if-then (error in statement) Object name: dg_compras Line:(row 4512 col 1) Hint: Type: Handler (error in statement) Object name: dg_compras Line:(row 4512 col 1) Hint: dgData Type: Objec (Name:) Object name: dg_compras Line:(row 0 col 0) Hint: button id 1005 of group id 1004 of card id 1002 of stack "/Users/Joss/Desktop/facturamac_v2010/1.0.5rc16/Development/MacOS/facturamacGLX.app/Contents/MacOS/components/revdatagridlibrary.rev" Type: Chunk (can't set property) Object name: dg_compras Line:(row 1362 col 19) Hint: Type: Object (can't set object property) Object name: dg_compras Line:(row 1362 col 4) Hint: Type: set (can't set property) Object name: dg_compras Line:(row 1362 col 1) Hint: Type: Handler (error in statement) Object name: dg_compras Line:(row 1362 col 1) Hint: uiNewProveedor Type: Objec (Name:) Object name: dg_compras Line:(row 0 col 0) Hint: stack "/Users/Joss/Desktop/facturamac_v2010/1.0.5rc16/Development/MacOS/facturamacGLX.app/Contents/MacOS/components/s_main_productos_v1.rev" Type: Handler (can't find handler) Object name: dg_compras Line:(row 2 col 1) Hint: uiNewProveedor -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Datagrid-error-when-set-to-empty-tp3027651p3027651.html Sent from the Revolution - User mailing list archive at Nabble.com. From runrev260805 at m-r-d.de Thu Nov 4 15:48:22 2010 From: runrev260805 at m-r-d.de (Matthias Rebbe) Date: Thu, 4 Nov 2010 20:48:22 +0100 Subject: OT: Some help with Regular Expressions Message-ID: <26711AD5-7848-49FE-8B1D-31B44DE409D9@m-r-d.de> Dear all, i have to check for an value in the format XX.YYYYY.ZZZ (e.g. A1.B35AZ.001 or a1.b35az.001) I have to check if the value is in the right format. I know i can do that with matchtext and a regular expression, but i do not know enough to get the regular expression to work. Is there anyone who might be able to help? Regards, Matthias From henk at ludisstudio.com Thu Nov 4 15:57:49 2010 From: henk at ludisstudio.com (Henk van der Velden) Date: Thu, 4 Nov 2010 20:57:49 +0100 Subject: LiveCode external/plugin question In-Reply-To: <20101104170005.0FB87288965@mail.runrev.com> References: <20101104170005.0FB87288965@mail.runrev.com> Message-ID: <26CB2951-B12B-4F3D-9BA4-B8F2EF202626@ludisstudio.com> Hi William, last year I've done a museum project where I had to put pc's into kiosk mode. Unfortunately the rawKeyDown approach didn't work since you can't capture key combinations like CTRL-ALT-DEL etc. The only way I could find was changing the registry. On the other hand, I seem to remember that Director offers an option to run applications in true kiosk mode. So what you are looking for should be possible in some way or another. Kind regards, Henk On Nov 4, 2010, at 18:00 , use-revolution-request at lists.runrev.com wrote: >> I was looking for true kiosk mode so Marks advise using IE isn't the >> right thing for me. >> I need all keys to be blocked. Editing the registry seems the only way >> but it needs the computer to reboot. >> >> I need my app on startup to block these keys without rebooting the machine. >> After closing the app the keys need to function again. >> Is this even possible? > > Have you tried putting in a rawKeyDown handler that doesn't pass the > message? That should block all keystrokes, and won't affect any other > apps. You probably will need to add a way to enable the keyboard again > while you are working on the stack, otherwise you won't be able to type > anything. Something like this: > > on rawKeyDown pKey > if the environment is "development" then pass rawKeyDown > end rawKeyDown From massung at gmail.com Thu Nov 4 15:57:28 2010 From: massung at gmail.com (Jeff Massung) Date: Thu, 4 Nov 2010 13:57:28 -0600 Subject: OT: Some help with Regular Expressions In-Reply-To: <26711AD5-7848-49FE-8B1D-31B44DE409D9@m-r-d.de> References: <26711AD5-7848-49FE-8B1D-31B44DE409D9@m-r-d.de> Message-ID: It would be good to know where the numbers and letters are if that's possible. But this will get you going: local tXX local tYYYYY local tZZZ ## just a simple unit test get "A1.B35AZ.001" ## do the match if matchText(it, "([a-z0-9]{2})\.([a-z0-9]{5})\.([a-z0-9]{3})", tXX, tYYYYY, tZZZ) is true then put tXX & cr & tYYYYY & tZZZ end if If you need it to be more specialized (eg, the format is really: A#.A##AA.### where A=alpha and #=number) then let me know and I can get a better matching pattern for you. Jeff M. On Thu, Nov 4, 2010 at 1:48 PM, Matthias Rebbe wrote: > Dear all, > > i have to check for an value in the format XX.YYYYY.ZZZ (e.g. > A1.B35AZ.001 or a1.b35az.001) > I have to check if the value is in the right format. I know i can do that > with matchtext and a regular expression, but > i do not know enough to get the regular expression to work. > > Is there anyone who might be able to help? > > Regards, > > Matthias > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From pmbrig at gmail.com Thu Nov 4 16:44:39 2010 From: pmbrig at gmail.com (Peter Brigham MD) Date: Thu, 4 Nov 2010 16:44:39 -0400 Subject: OT: Some help with Regular Expressions In-Reply-To: <26711AD5-7848-49FE-8B1D-31B44DE409D9@m-r-d.de> References: <26711AD5-7848-49FE-8B1D-31B44DE409D9@m-r-d.de> Message-ID: <97741A91-C427-41B0-8204-625702A37371@gmail.com> Why not do it in LiveCode rather than using regex? Assuming that the 3rd and 9th char of a properly formatted string must be a period, and all other chars must be alphanumeric: constant alphNumChars = "abcdefghijklmnopqrstuvwxyz0123456789" constant alphNumPlaces = "1,2,4,5,6,7,8,10,11" function testFormat strg -- format should be: XX.YYYYY.ZZ if length(strg) <> 11 then return false if char 3 of str <> "." then return false if char 9 of strg <> "." then return false repeat for each item i of alphNumPlaces if char i of strg is not in alphNumChars then return false end repeat return true end testFormat call it with: if testFormat(tInput) then -- valid string, do whatever else -- invalid string, do something else end if -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Nov 4, 2010, at 3:48 PM, Matthias Rebbe wrote: > Dear all, > > i have to check for an value in the format XX.YYYYY.ZZZ (e.g. > A1.B35AZ.001 or a1.b35az.001) > I have to check if the value is in the right format. I know i can do > that with matchtext and a regular expression, but > i do not know enough to get the regular expression to work. > > Is there anyone who might be able to help? > > Regards, > > Matthias > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From jacque at hyperactivesw.com Thu Nov 4 16:49:17 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 04 Nov 2010 15:49:17 -0500 Subject: LiveCode external/plugin question In-Reply-To: <26CB2951-B12B-4F3D-9BA4-B8F2EF202626@ludisstudio.com> References: <20101104170005.0FB87288965@mail.runrev.com> <26CB2951-B12B-4F3D-9BA4-B8F2EF202626@ludisstudio.com> Message-ID: <4CD31C4D.9020401@hyperactivesw.com> On 11/4/10 2:57 PM, Henk van der Velden wrote: > Hi William, > > last year I've done a museum project where I had to put pc's into > kiosk mode. Unfortunately the rawKeyDown approach didn't work since > you can't capture key combinations like CTRL-ALT-DEL etc. Yes, you're right, some key combinations fail on Macs too. So rawKeyDown won't work. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From gregory.lypny at videotron.ca Thu Nov 4 17:18:10 2010 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Thu, 04 Nov 2010 17:18:10 -0400 Subject: Path and File Questions for On-Rev In-Reply-To: <20101104170004.D7E9928895F@mail.runrev.com> References: <20101104170004.D7E9928895F@mail.runrev.com> Message-ID: Thanks Andre, Matthias, and Mike, All good tips. I'm using them at this very minute! Gregory From cszasz at mac.com Thu Nov 4 17:28:23 2010 From: cszasz at mac.com (charles61) Date: Thu, 4 Nov 2010 14:28:23 -0700 (PDT) Subject: What is wrong with this script? Message-ID: <1288906103073-3027821.post@n4.nabble.com> I am trying to use the following in another handler to send a mouseUp to hilited checkboxes on marked cards but it does not work. Any suggestions? on doStuff3 put the num of this card into tStartCard lock screen repeat with y = 1 to the number of cards if the mark of card y <> true then next repeat end if lock messages go card y unlock messages repeat with b = 1 to the number of buttons if the style of button b = "checkbox" then if the hilite of button b = true then send "mouseUp" to button b end if end if end repeat end repeat lock messages go card tStartCard unlock messages unlock screen end doStuff3 -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027821.html Sent from the Revolution - User mailing list archive at Nabble.com. From bobs at twft.com Thu Nov 4 17:33:34 2010 From: bobs at twft.com (Bob Sneidar) Date: Thu, 4 Nov 2010 14:33:34 -0700 Subject: What is wrong with this script? In-Reply-To: <1288906103073-3027821.post@n4.nabble.com> References: <1288906103073-3027821.post@n4.nabble.com> Message-ID: <20C56D42-D5AF-416D-8435-7E99E52611EF@twft.com> First, why are you locking messages when you go to a card? Second, sending a mouseUp to a button does not click the button. It only runs the mouseUp handler contained in that button. If you have a mouseUp handler, then you will need to pass mouseUp in order for the engine to properly check the box. But a better way would be to set the hilite of the button to false. I'm still leery about whether the card and it's objects get loaded in memory properly if lock messages is true. I'm a little sketchy here. Bob On Nov 4, 2010, at 2:28 PM, charles61 wrote: > > I am trying to use the following in another handler to send a mouseUp to > hilited checkboxes on marked cards but it does not work. Any suggestions? > > on doStuff3 > put the num of this card into tStartCard > lock screen > repeat with y = 1 to the number of cards > if the mark of card y <> true then > next repeat > end if > lock messages > go card y > unlock messages > repeat with b = 1 to the number of buttons > if the style of button b = "checkbox" then > if the hilite of button b = true then > send "mouseUp" to button b > end if > end if > end repeat > end repeat > lock messages > go card tStartCard > unlock messages > unlock screen > end doStuff3 > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027821.html > Sent from the Revolution - User mailing list archive at Nabble.com. > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From monte at sweattechnologies.com Thu Nov 4 17:40:14 2010 From: monte at sweattechnologies.com (Monte Goulding) Date: Fri, 5 Nov 2010 08:40:14 +1100 Subject: OT: Some help with Regular Expressions In-Reply-To: References: <26711AD5-7848-49FE-8B1D-31B44DE409D9@m-r-d.de> Message-ID: <84CC5E92-F360-4F6E-A5C0-7919FA803397@sweattechnologies.com> Just a small correction to your regular expression Jeff to make it case insensitive as it ignores the caseInsensitive global property and also assuming that Mathias doesn't want to match chunks of longer strings I've added the ^ & $: (?i)^([a-z0-9]{2})\.([a-z0-9]{5})\.([a-z0-9]{3})$ Cheers Monte On 05/11/2010, at 6:57 AM, Jeff Massung wrote: > It would be good to know where the numbers and letters are if that's > possible. But this will get you going: > > local tXX > local tYYYYY > local tZZZ > > ## just a simple unit test > get "A1.B35AZ.001" > > ## do the match > if matchText(it, "([a-z0-9]{2})\.([a-z0-9]{5})\.([a-z0-9]{3})", tXX, tYYYYY, > tZZZ) is true then > put tXX & cr & tYYYYY & tZZZ > end if > > If you need it to be more specialized (eg, the format is really: > A#.A##AA.### where A=alpha and #=number) then let me know and I can get a > better matching pattern for you. > > Jeff M. > > On Thu, Nov 4, 2010 at 1:48 PM, Matthias Rebbe wrote: > >> Dear all, >> >> i have to check for an value in the format XX.YYYYY.ZZZ (e.g. >> A1.B35AZ.001 or a1.b35az.001) >> I have to check if the value is in the right format. I know i can do that >> with matchtext and a regular expression, but >> i do not know enough to get the regular expression to work. >> >> Is there anyone who might be able to help? From bobs at twft.com Thu Nov 4 17:44:30 2010 From: bobs at twft.com (Bob Sneidar) Date: Thu, 4 Nov 2010 14:44:30 -0700 Subject: OT: Some help with Regular Expressions In-Reply-To: <84CC5E92-F360-4F6E-A5C0-7919FA803397@sweattechnologies.com> References: <26711AD5-7848-49FE-8B1D-31B44DE409D9@m-r-d.de> <84CC5E92-F360-4F6E-A5C0-7919FA803397@sweattechnologies.com> Message-ID: Ever since those aliens landed... err... crashed that's right they crashed... life has gotten way too dang complicated! Bob On Nov 4, 2010, at 2:40 PM, Monte Goulding wrote: > Just a small correction to your regular expression Jeff to make it case insensitive as it ignores the caseInsensitive global property and also assuming that Mathias doesn't want to match chunks of longer strings I've added the ^ & $: > > (?i)^([a-z0-9]{2})\.([a-z0-9]{5})\.([a-z0-9]{3})$ > > Cheers > > Monte > > On 05/11/2010, at 6:57 AM, Jeff Massung wrote: > >> It would be good to know where the numbers and letters are if that's >> possible. But this will get you going: >> >> local tXX >> local tYYYYY >> local tZZZ >> >> ## just a simple unit test >> get "A1.B35AZ.001" >> >> ## do the match >> if matchText(it, "([a-z0-9]{2})\.([a-z0-9]{5})\.([a-z0-9]{3})", tXX, tYYYYY, >> tZZZ) is true then >> put tXX & cr & tYYYYY & tZZZ >> end if >> >> If you need it to be more specialized (eg, the format is really: >> A#.A##AA.### where A=alpha and #=number) then let me know and I can get a >> better matching pattern for you. >> >> Jeff M. >> >> On Thu, Nov 4, 2010 at 1:48 PM, Matthias Rebbe wrote: >> >>> Dear all, >>> >>> i have to check for an value in the format XX.YYYYY.ZZZ (e.g. >>> A1.B35AZ.001 or a1.b35az.001) >>> I have to check if the value is in the right format. I know i can do that >>> with matchtext and a regular expression, but >>> i do not know enough to get the regular expression to work. >>> >>> Is there anyone who might be able to help? > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From jimaultwins at yahoo.com Thu Nov 4 17:56:10 2010 From: jimaultwins at yahoo.com (Jim Ault) Date: Thu, 4 Nov 2010 14:56:10 -0700 Subject: OT: Some help with Regular Expressions In-Reply-To: <26711AD5-7848-49FE-8B1D-31B44DE409D9@m-r-d.de> References: <26711AD5-7848-49FE-8B1D-31B44DE409D9@m-r-d.de> Message-ID: <9F67CDD6-EA9A-4232-9E07-A1CF8778E6D1@yahoo.com> Hints to help you (?i) means case insensitive [a-z] means a single lower case alpha char [A-Z] means a single upper case alpha char [0-9] means a single digit (?i)^[a-z][0-9]\.[a-z][0-9][0-9][a-z][a-z]\.[0-9][0-9]$ means upper or lower case for all matches \. means a literal period character ^ means a match must start at the beginning of a line $ means a match must stop at the line ending char thus the matching string must have the same alpha-numeric positions and be the same length, white space not allowed, nor commas, quotes, and other punctuation. RegEx used to be Greek to me, but then I discovered it does not even closely resemble Greek. On Nov 4, 2010, at 12:48 PM, Matthias Rebbe wrote: > Dear all, > > i have to check for an value in the format XX.YYYYY.ZZZ (e.g. > A1.B35AZ.001 or a1.b35az.001) > I have to check if the value is in the right format. I know i can do > that with matchtext and a regular expression, but > i do not know enough to get the regular expression to work. > > Is there anyone who might be able to help? > Jim Ault Las Vegas From bobs at twft.com Thu Nov 4 18:35:23 2010 From: bobs at twft.com (Bob Sneidar) Date: Thu, 4 Nov 2010 15:35:23 -0700 Subject: OT: Some help with Regular Expressions In-Reply-To: <9F67CDD6-EA9A-4232-9E07-A1CF8778E6D1@yahoo.com> References: <26711AD5-7848-49FE-8B1D-31B44DE409D9@m-r-d.de> <9F67CDD6-EA9A-4232-9E07-A1CF8778E6D1@yahoo.com> Message-ID: Okay this is going into my keepers file. Very useful. Wish the regex tuorials out there were explained this simply. Bob On Nov 4, 2010, at 2:56 PM, Jim Ault wrote: > Hints to help you > > (?i) means case insensitive > [a-z] means a single lower case alpha char > [A-Z] means a single upper case alpha char > [0-9] means a single digit > > (?i)^[a-z][0-9]\.[a-z][0-9][0-9][a-z][a-z]\.[0-9][0-9]$ > means > upper or lower case for all matches > \. means a literal period character > ^ means a match must start at the beginning of a line > $ means a match must stop at the line ending char > > thus the matching string must have the same alpha-numeric positions and be the same length, > white space not allowed, nor commas, quotes, and other punctuation. > > RegEx used to be Greek to me, but then I discovered it does not even closely resemble Greek. > > On Nov 4, 2010, at 12:48 PM, Matthias Rebbe wrote: > >> Dear all, >> >> i have to check for an value in the format XX.YYYYY.ZZZ (e.g. A1.B35AZ.001 or a1.b35az.001) >> I have to check if the value is in the right format. I know i can do that with matchtext and a regular expression, but >> i do not know enough to get the regular expression to work. >> >> Is there anyone who might be able to help? >> > > Jim Ault > Las Vegas > > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From DunbarX at aol.com Thu Nov 4 19:01:39 2010 From: DunbarX at aol.com (DunbarX at aol.com) Date: Thu, 4 Nov 2010 19:01:39 EDT Subject: What is wrong with this script? Message-ID: <2bc8e.56c674b6.3a049553@aol.com> It does work. It's a bit wordy, but works fine. If you have these buttons in a background, you do have the sharedHilite set to "false", right? This would matter. So what doesn't work? Craig Newman From cszasz at mac.com Thu Nov 4 19:11:07 2010 From: cszasz at mac.com (charles61) Date: Thu, 4 Nov 2010 16:11:07 -0700 (PDT) Subject: What is wrong with this script? In-Reply-To: <2bc8e.56c674b6.3a049553@aol.com> References: <1288906103073-3027821.post@n4.nabble.com> <2bc8e.56c674b6.3a049553@aol.com> Message-ID: <0CC3F323-437C-4953-8103-46C83A3FFE6D@mac.com> Craig, Yes I got it to work on a test stack that I was working with. A typo was the culprit. Charles Szasz cszasz at mac.com On Nov 4, 2010, at 7:01 PM, dunbarx [via Runtime Revolution] wrote: > It does work. It's a bit wordy, but works fine. > > If you have these buttons in a background, you do have the sharedHilite set > to "false", right? This would matter. > > So what doesn't work? > > Craig Newman > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027935.html > To unsubscribe from What is wrong with this script?, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027942.html Sent from the Revolution - User mailing list archive at Nabble.com. From DunbarX at aol.com Thu Nov 4 19:30:58 2010 From: DunbarX at aol.com (DunbarX at aol.com) Date: Thu, 4 Nov 2010 19:30:58 EDT Subject: What is wrong with this script? Message-ID: <2d585.786cd55a.3a049c32@aol.com> Charles. Good. This never happens to me. Your script can be shortened, and sped up, a bit. Watch line wraps: on doStuff3 repeat with y = 1 to the number of marked cards repeat with b = 1 to the number of buttons of marked cd y if the style of button b of marked cd y = "checkbox" and the hilite of button b of marked cd y = "true" then send "mouseUp" to button b end if end repeat end repeat end doStuff3 The important thing here is to see that the references to remote cards can substitute for actually going there. Sometimes navigating is better; usually not. So you never actually have to go to each card. You don't have to lock anything, or save your location and return. By using the mark property, you don't need to test to see if a card is marked. Craig From cszasz at mac.com Thu Nov 4 19:50:33 2010 From: cszasz at mac.com (charles61) Date: Thu, 4 Nov 2010 16:50:33 -0700 (PDT) Subject: What is wrong with this script? In-Reply-To: <2d585.786cd55a.3a049c32@aol.com> References: <1288906103073-3027821.post@n4.nabble.com> <2d585.786cd55a.3a049c32@aol.com> Message-ID: <4B62DB07-43CE-490B-BCA8-CE890AE56EE6@mac.com> Craig, Thanks for that suggestion! I will indeed try it out. I did find some glitches with my posted script in my actual project. The script did not seem to work as well when I had grouped some checkboxes so that I could show an alert message when none checkboxes had been checked in the group. Charles Szasz cszasz at mac.com On Nov 4, 2010, at 7:31 PM, dunbarx [via Runtime Revolution] wrote: > Charles. > > Good. This never happens to me. > > Your script can be shortened, and sped up, a bit. Watch line wraps: > > on doStuff3 > repeat with y = 1 to the number of marked cards > repeat with b = 1 to the number of buttons of marked cd y > if the style of button b of marked cd y = "checkbox" and the > hilite of button b of marked cd y = "true" then > send "mouseUp" to button b > end if > end repeat > end repeat > end doStuff3 > > The important thing here is to see that the references to remote cards can > substitute for actually going there. Sometimes navigating is better; usually > not. So you never actually have to go to each card. You don't have to > lock anything, or save your location and return. > > By using the mark property, you don't need to test to see if a card is > marked. > > Craig > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027960.html > To unsubscribe from What is wrong with this script?, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027972.html Sent from the Revolution - User mailing list archive at Nabble.com. From cszasz at mac.com Thu Nov 4 19:57:23 2010 From: cszasz at mac.com (charles61) Date: Thu, 4 Nov 2010 16:57:23 -0700 (PDT) Subject: What is wrong with this script? In-Reply-To: <2d585.786cd55a.3a049c32@aol.com> References: <1288906103073-3027821.post@n4.nabble.com> <2d585.786cd55a.3a049c32@aol.com> Message-ID: Craig, Your script not only worked faster but it was also worked better with the grouped checkboxes than my script. Thanks!!! Charles Szasz cszasz at mac.com On Nov 4, 2010, at 7:31 PM, dunbarx [via Runtime Revolution] wrote: > Charles. > > Good. This never happens to me. > > Your script can be shortened, and sped up, a bit. Watch line wraps: > > on doStuff3 > repeat with y = 1 to the number of marked cards > repeat with b = 1 to the number of buttons of marked cd y > if the style of button b of marked cd y = "checkbox" and the > hilite of button b of marked cd y = "true" then > send "mouseUp" to button b > end if > end repeat > end repeat > end doStuff3 > > The important thing here is to see that the references to remote cards can > substitute for actually going there. Sometimes navigating is better; usually > not. So you never actually have to go to each card. You don't have to > lock anything, or save your location and return. > > By using the mark property, you don't need to test to see if a card is > marked. > > Craig > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027960.html > To unsubscribe from What is wrong with this script?, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027977.html Sent from the Revolution - User mailing list archive at Nabble.com. From cszasz at mac.com Thu Nov 4 20:29:30 2010 From: cszasz at mac.com (charles61) Date: Thu, 4 Nov 2010 17:29:30 -0700 (PDT) Subject: What is wrong with this script? In-Reply-To: <2d585.786cd55a.3a049c32@aol.com> References: <1288906103073-3027821.post@n4.nabble.com> <2d585.786cd55a.3a049c32@aol.com> Message-ID: Craig, Your script the first time but I got an error the second time I tried printing saying; flagging the line end "mouseUp" to button b and reporting the error message: button "Print"; execution error at line 287 (Chunk: no such object) near "27", char 31 I went to line 27 which had the code: answer information "Please enter the date." I typed in your suggestion - no copy and paste because of the line breaks: on doStuff3 --->Sends mouseUp to checkboxes that are checked on marked cards repeat with y = 1 to the number of marked cards repeat with b = 1 to the number of buttons of marked card y if the style of button b of marked card y = "checkbox" and the hilite of button b of marked card y = true then send "mouseUp" to button b end if end repeat end repeat end doStuff3 Any idea of what is going on here? Charles Szasz cszasz at mac.com On Nov 4, 2010, at 7:31 PM, dunbarx [via Runtime Revolution] wrote: > Charles. > > Good. This never happens to me. > > Your script can be shortened, and sped up, a bit. Watch line wraps: > > on doStuff3 > repeat with y = 1 to the number of marked cards > repeat with b = 1 to the number of buttons of marked cd y > if the style of button b of marked cd y = "checkbox" and the > hilite of button b of marked cd y = "true" then > send "mouseUp" to button b > end if > end repeat > end repeat > end doStuff3 > > The important thing here is to see that the references to remote cards can > substitute for actually going there. Sometimes navigating is better; usually > not. So you never actually have to go to each card. You don't have to > lock anything, or save your location and return. > > By using the mark property, you don't need to test to see if a card is > marked. > > Craig > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027960.html > To unsubscribe from What is wrong with this script?, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3028013.html Sent from the Revolution - User mailing list archive at Nabble.com. From cszasz at mac.com Thu Nov 4 20:44:11 2010 From: cszasz at mac.com (charles61) Date: Thu, 4 Nov 2010 17:44:11 -0700 (PDT) Subject: What is wrong with this script? In-Reply-To: <2d585.786cd55a.3a049c32@aol.com> References: <1288906103073-3027821.post@n4.nabble.com> <2d585.786cd55a.3a049c32@aol.com> Message-ID: <6B8314ED-21B5-41E0-92A8-601983141CEB@mac.com> Crag, I checked and rechecked the script but there were no typos or spaces. I ran the script several more times and got a dialog message: The handler: mouseUp has reached the recursion limit of: 400000. Execution will be terminated to prevent hang. i have never gotten this message before! Charles Szasz cszasz at mac.com On Nov 4, 2010, at 7:31 PM, dunbarx [via Runtime Revolution] wrote: > Charles. > > Good. This never happens to me. > > Your script can be shortened, and sped up, a bit. Watch line wraps: > > on doStuff3 > repeat with y = 1 to the number of marked cards > repeat with b = 1 to the number of buttons of marked cd y > if the style of button b of marked cd y = "checkbox" and the > hilite of button b of marked cd y = "true" then > send "mouseUp" to button b > end if > end repeat > end repeat > end doStuff3 > > The important thing here is to see that the references to remote cards can > substitute for actually going there. Sometimes navigating is better; usually > not. So you never actually have to go to each card. You don't have to > lock anything, or save your location and return. > > By using the mark property, you don't need to test to see if a card is > marked. > > Craig > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027960.html > To unsubscribe from What is wrong with this script?, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3028016.html Sent from the Revolution - User mailing list archive at Nabble.com. From cszasz at mac.com Thu Nov 4 20:55:14 2010 From: cszasz at mac.com (charles61) Date: Thu, 4 Nov 2010 17:55:14 -0700 (PDT) Subject: What is wrong with this script? In-Reply-To: <2d585.786cd55a.3a049c32@aol.com> References: <1288906103073-3027821.post@n4.nabble.com> <2d585.786cd55a.3a049c32@aol.com> Message-ID: <1B25EFB8-04B2-4875-91A9-B55D57106674@mac.com> Craig, I should mention that the recursive message came after I discovered that I left out the following: of marked card y for the first part of if the style of button b on doStuff3 --->Sends mouseUp to checkboxes that are checked on marked cards repeat with y = 1 to the number of marked cards repeat with b = 1 to the number of buttons of marked card y if the style of button b = "checkbox" and the hilite of button b of marked card y = true then send "mouseUp" to button b end if end repeat end repeat When I of marked card y, the script that looks like the following caused the printing to hang and I had to force quit Rev 4.0 and relaunch Rev. So this script is the one that is causing Rev to hang: on doStuff3 --->Sends mouseUp to checkboxes that are checked on marked cards repeat with y = 1 to the number of marked cards repeat with b = 1 to the number of buttons of marked card y if the style of button b of marked card y = "checkbox" and the hilite of button b of marked card y = true then send "mouseUp" to button b end if end repeat end repeat Charles Szasz cszasz at mac.com On Nov 4, 2010, at 7:31 PM, dunbarx [via Runtime Revolution] wrote: > Charles. > > Good. This never happens to me. > > Your script can be shortened, and sped up, a bit. Watch line wraps: > > on doStuff3 > repeat with y = 1 to the number of marked cards > repeat with b = 1 to the number of buttons of marked cd y > if the style of button b of marked cd y = "checkbox" and the > hilite of button b of marked cd y = "true" then > send "mouseUp" to button b > end if > end repeat > end repeat > end doStuff3 > > The important thing here is to see that the references to remote cards can > substitute for actually going there. Sometimes navigating is better; usually > not. So you never actually have to go to each card. You don't have to > lock anything, or save your location and return. > > By using the mark property, you don't need to test to see if a card is > marked. > > Craig > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3027960.html > To unsubscribe from What is wrong with this script?, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3028030.html Sent from the Revolution - User mailing list archive at Nabble.com. From rjb at robelko.com Thu Nov 4 20:53:03 2010 From: rjb at robelko.com (Robert Brenstein) Date: Fri, 5 Nov 2010 01:53:03 +0100 Subject: What is wrong with this script? In-Reply-To: References: <1288906103073-3027821.post@n4.nabble.com> <2d585.786cd55a.3a049c32@aol.com> Message-ID: On 04.11.10 at 17:29 -0700 charles61 apparently wrote: >Craig, > >Your script the first time but I got an error the second time I >tried printing saying; > >flagging the line end "mouseUp" to button b > >and reporting the error message: > >button "Print"; execution error at line 287 (Chunk: no such object) >near "27", char 31 > >I went to line 27 which had the code: answer information "Please >enter the date." > If any of the mouseUp scripts refers to objects on its card, remember the earlier discussion about references objects -- those scripts need to use full references. Otherwise, you need to change Craig's script to go to each card. Robert From jacque at hyperactivesw.com Thu Nov 4 21:23:30 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 04 Nov 2010 20:23:30 -0500 Subject: What is wrong with this script? In-Reply-To: <1B25EFB8-04B2-4875-91A9-B55D57106674@mac.com> References: <1288906103073-3027821.post@n4.nabble.com> <2d585.786cd55a.3a049c32@aol.com> <1B25EFB8-04B2-4875-91A9-B55D57106674@mac.com> Message-ID: <4CD35C92.7090708@hyperactivesw.com> On 11/4/10 7:55 PM, charles61 wrote: > When I of marked card y, the script that looks like the following > caused the printing to hang and I had to force quit Rev 4.0 and > relaunch Rev. This, plus the recursion error you got, likely indicates that your scripts are going in circles without a way to complete. What does your "mouseUp" handler do exactly? If it calls a different handler, which in turn calls the mouseUp again, then your script will loop between the two handlers until eventually you get the error, or it looks like you hung. (Did you try command-period to stop the scripts?) Usually it's better not to call system messages if possible. Instead of sending a mouseup to a button, send a custom handler name instead. Then have your mouseUp handler call that same custom handler. For example, if you have this: on mouseUp commandOne commandTwo end mouseUp Instead, do this: on mouseUp doStuff end mouseUp on doStuff commandOne commandTwo end doStuff Now your looping reset script can send "doStuff" to each button instead of sending "mouseUp" to it. In fact, all your handlers that need to do the mouseUp button stuff should be sending "doStuff" instead. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From cszasz at mac.com Thu Nov 4 22:42:28 2010 From: cszasz at mac.com (charles61) Date: Thu, 4 Nov 2010 19:42:28 -0700 (PDT) Subject: What is wrong with this script? In-Reply-To: <4CD35C92.7090708@hyperactivesw.com> References: <1288906103073-3027821.post@n4.nabble.com> <2d585.786cd55a.3a049c32@aol.com> <1B25EFB8-04B2-4875-91A9-B55D57106674@mac.com> <4CD35C92.7090708@hyperactivesw.com> Message-ID: <3D39CA58-67BC-4C3A-ACD7-4E5C77E8ACE2@mac.com> Jacqueline, I am using the handler to send mouseUp commands to Print Only cards for printing. I will try your suggestion of combing two commands in a handler. And, yes I did try command period several times without success. Charles Szasz cszasz at mac.com On Nov 4, 2010, at 9:23 PM, J. Landman Gay [via Runtime Revolution] wrote: > On 11/4/10 7:55 PM, charles61 wrote: > > > When I of marked card y, the script that looks like the following > > caused the printing to hang and I had to force quit Rev 4.0 and > > relaunch Rev. > > This, plus the recursion error you got, likely indicates that your > scripts are going in circles without a way to complete. What does your > "mouseUp" handler do exactly? If it calls a different handler, which in > turn calls the mouseUp again, then your script will loop between the two > handlers until eventually you get the error, or it looks like you hung. > (Did you try command-period to stop the scripts?) > > Usually it's better not to call system messages if possible. Instead of > sending a mouseup to a button, send a custom handler name instead. Then > have your mouseUp handler call that same custom handler. For example, if > you have this: > > on mouseUp > commandOne > commandTwo > end mouseUp > > Instead, do this: > > on mouseUp > doStuff > end mouseUp > > on doStuff > commandOne > commandTwo > end doStuff > > Now your looping reset script can send "doStuff" to each button instead > of sending "mouseUp" to it. In fact, all your handlers that need to do > the mouseUp button stuff should be sending "doStuff" instead. > > > -- > Jacqueline Landman Gay | [hidden email] > HyperActive Software | http://www.hyperactivesw.com > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3028051.html > To unsubscribe from What is wrong with this script?, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-is-wrong-with-this-script-tp3027821p3028076.html Sent from the Revolution - User mailing list archive at Nabble.com. From lists at mangomultimedia.com Fri Nov 5 09:51:34 2010 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 5 Nov 2010 09:51:34 -0400 Subject: Datagrid error when set to empty In-Reply-To: <1288899520134-3027651.post@n4.nabble.com> References: <1288899520134-3027651.post@n4.nabble.com> Message-ID: On Thu, Nov 4, 2010 at 3:38 PM, JosepM wrote: > > I have a strange issue with a datagrid that set the dgdata to empty. > In IDE mode the app run fine but from the standalone I get this error. > The first thing to check is whether you have password protected your data grid templates stack. If it is password protected then the row/column templates cannot be copied. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com From jmyepes at mac.com Fri Nov 5 11:03:28 2010 From: jmyepes at mac.com (JosepM) Date: Fri, 5 Nov 2010 08:03:28 -0700 (PDT) Subject: Datagrid error when set to empty In-Reply-To: References: <1288899520134-3027651.post@n4.nabble.com> Message-ID: <1288969408242-3028745.post@n4.nabble.com> Hi, The stack was password protected but it worked properly, then added a new grid and that's when the problems have started. Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Datagrid-error-when-set-to-empty-tp3027651p3028745.html Sent from the Revolution - User mailing list archive at Nabble.com. From lists at mangomultimedia.com Fri Nov 5 12:02:14 2010 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 5 Nov 2010 12:02:14 -0400 Subject: Datagrid error when set to empty In-Reply-To: <1288969408242-3028745.post@n4.nabble.com> References: <1288899520134-3027651.post@n4.nabble.com> <1288969408242-3028745.post@n4.nabble.com> Message-ID: On Fri, Nov 5, 2010 at 11:03 AM, JosepM wrote: > > The stack was password protected but it worked properly, then added a new > grid and that's when the problems have started. > Are you unlocking the stack when running as a standalone by setting the passkey? -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com From zryip.theslug at gmail.com Fri Nov 5 12:02:37 2010 From: zryip.theslug at gmail.com (zryip theSlug) Date: Fri, 5 Nov 2010 17:02:37 +0100 Subject: Datagrid error when set to empty In-Reply-To: <1288969408242-3028745.post@n4.nabble.com> References: <1288899520134-3027651.post@n4.nabble.com> <1288969408242-3028745.post@n4.nabble.com> Message-ID: On Fri, Nov 5, 2010 at 4:03 PM, JosepM wrote: > > Hi, > > The stack was password protected but it worked properly, then added a new > grid and that's when the problems have started. > > > Salut, > Josep > -- Josep, That is something specified in the datagrid documentation: you will get errors if the template stack is protected. And I have experimented this before I read this warning (always read the docs ;)) The datagrid works well, you password protected the stack, restart the stack and then you got these kind of errors. If you want password protecting the code in the template stack, a possible way is to place the script of each column outside the datagrid template and change the parentscript reference for each column you have a behavior. Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From niggemann at uni-wh.de Fri Nov 5 12:54:22 2010 From: niggemann at uni-wh.de (BNig) Date: Fri, 5 Nov 2010 09:54:22 -0700 (PDT) Subject: [ANN] scrolling list field for iPhone Message-ID: <1288976062320-3028978.post@n4.nabble.com> I tried to make a scrolling list field object similar to the address book for the iPhone. for easing I use a modified Scott Rossi /Richard Herz algorithm. Touch interface is tricky so I tought I post it here for others to try/improve. Scrolls quite well on the iPhone 3G system 4.1 (my worst case), probably better on newer iPhones. It scrolls definitely better on the iPad. As a revlet/stack on a desktop computer/ in the simulator it is probably too fast. Click on the field and drag the mouse. This stack results from a project with Rolf Kocherhans. As a revlet http://berndniggemann.on-rev.com/iphonelistfieldrevlet/ as a stack zipped http://berndniggemann.on-rev.com/iphonelistfield/SLF-9.livecode.zip comments/feedback/improvements welcome regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-scrolling-list-field-for-iPhone-tp3028978p3028978.html Sent from the Revolution - User mailing list archive at Nabble.com. From jmyepes at mac.com Fri Nov 5 13:06:57 2010 From: jmyepes at mac.com (JosepM) Date: Fri, 5 Nov 2010 10:06:57 -0700 (PDT) Subject: Datagrid error when set to empty In-Reply-To: References: <1288899520134-3027651.post@n4.nabble.com> <1288969408242-3028745.post@n4.nabble.com> Message-ID: <1288976817192-3029019.post@n4.nabble.com> I'm using GLX framework, don't do it automatically? At least until now has worked fine. Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Datagrid-error-when-set-to-empty-tp3027651p3029019.html Sent from the Revolution - User mailing list archive at Nabble.com. From jmyepes at mac.com Fri Nov 5 13:19:14 2010 From: jmyepes at mac.com (JosepM) Date: Fri, 5 Nov 2010 10:19:14 -0700 (PDT) Subject: [ANN] scrolling list field for iPhone In-Reply-To: <1288976062320-3028978.post@n4.nabble.com> References: <1288976062320-3028978.post@n4.nabble.com> Message-ID: <1288977554973-3029044.post@n4.nabble.com> Hi Bernd, It's perfect! I test with the simulator and it's very impresive. Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-scrolling-list-field-for-iPhone-tp3028978p3029044.html Sent from the Revolution - User mailing list archive at Nabble.com. From martyknapp at comcast.net Fri Nov 5 13:43:03 2010 From: martyknapp at comcast.net (Marty Knapp) Date: Fri, 05 Nov 2010 10:43:03 -0700 Subject: & in a menu? In-Reply-To: <1288977554973-3029044.post@n4.nabble.com> References: <1288976062320-3028978.post@n4.nabble.com> <1288977554973-3029044.post@n4.nabble.com> Message-ID: <4CD44227.2010706@comcast.net> For a Mac only program, is there a way to use ampersand "&" in a popup menu button? I understand its normal use, but I'm needing to emulate a menu in another program. Thanks, Marty Knapp From dixonja at hotmail.co.uk Fri Nov 5 14:13:45 2010 From: dixonja at hotmail.co.uk (John Dixon) Date: Fri, 5 Nov 2010 18:13:45 +0000 Subject: & in a menu? In-Reply-To: <4CD44227.2010706@comcast.net> References: <1288976062320-3028978.post@n4.nabble.com>, <1288977554973-3029044.post@n4.nabble.com>, <4CD44227.2010706@comcast.net> Message-ID: "Apples" && " Oranges"... double up the ampersand Have a look at page 262 of the 'User Guide' be well Dixie > Date: Fri, 5 Nov 2010 10:43:03 -0700 > From: martyknapp at comcast.net > To: use-revolution at lists.runrev.com > Subject: & in a menu? > > For a Mac only program, is there a way to use ampersand "&" in a popup > menu button? I understand its normal use, but I'm needing to emulate a > menu in another program. > > Thanks, > Marty Knapp > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From lists at mangomultimedia.com Fri Nov 5 14:28:46 2010 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 5 Nov 2010 14:28:46 -0400 Subject: Datagrid error when set to empty In-Reply-To: <1288976817192-3029019.post@n4.nabble.com> References: <1288899520134-3027651.post@n4.nabble.com> <1288969408242-3028745.post@n4.nabble.com> <1288976817192-3029019.post@n4.nabble.com> Message-ID: On Fri, Nov 5, 2010 at 1:06 PM, JosepM wrote: > > I'm using GLX framework, don't do it automatically? At least until now has > worked fine. > The framework does not unlock stacks automatically. See this lesson: http://revolution.screenstepslive.com/spaces/revolution/manuals/glxapp/lessons/5554-If-My-Application-Is-Password-Protected-How-Do-I-Unlock-Certain-Stacks-At-Runtime- If you have already added the template stack to the list of stacks that get unlocked then we can look elsewhere. Password protected stacks is the first thing I check if something works in the IDE but not in the IDE though. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com From martyknapp at comcast.net Fri Nov 5 15:29:42 2010 From: martyknapp at comcast.net (Marty Knapp) Date: Fri, 05 Nov 2010 12:29:42 -0700 Subject: & in a menu? In-Reply-To: References: <1288976062320-3028978.post@n4.nabble.com>, <1288977554973-3029044.post@n4.nabble.com>, <4CD44227.2010706@comcast.net> Message-ID: <4CD45B26.4090303@comcast.net> Thank you! Marty > "Apples"&& " Oranges"... double up the ampersand > Have a look at page 262 of the 'User Guide' > > be well > > Dixie > >> Date: Fri, 5 Nov 2010 10:43:03 -0700 >> From: martyknapp at comcast.net >> To: use-revolution at lists.runrev.com >> Subject:& in a menu? >> >> For a Mac only program, is there a way to use ampersand "&" in a popup >> menu button? I understand its normal use, but I'm needing to emulate a >> menu in another program. >> >> Thanks, >> Marty Knapp >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From niggemann at uni-wh.de Fri Nov 5 19:30:45 2010 From: niggemann at uni-wh.de (BNig) Date: Fri, 5 Nov 2010 16:30:45 -0700 (PDT) Subject: [ANN] scrolling list field for iPhone In-Reply-To: <1288977554973-3029044.post@n4.nabble.com> References: <1288976062320-3028978.post@n4.nabble.com> <1288977554973-3029044.post@n4.nabble.com> Message-ID: <1288999845633-3029551.post@n4.nabble.com> Hi Josep, thank you. No bouncing though. best regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-scrolling-list-field-for-iPhone-tp3028978p3029551.html Sent from the Revolution - User mailing list archive at Nabble.com. From cszasz at mac.com Fri Nov 5 21:11:52 2010 From: cszasz at mac.com (charles61) Date: Fri, 5 Nov 2010 18:11:52 -0700 (PDT) Subject: Problematic script on Windows 7! Message-ID: <1289005912380-3029606.post@n4.nabble.com> The following script, which works fine on the Mac, gets flagged by Windows 7 in a windows standalone. The line that is cited: Send 'mouseUp' to button b is displayed in bug report on the standalone that it cannot find a handler with the above line. After the message, printing of a single page starts. on doStuff3 put the num of this card into tStartCard lock screen repeat with y = 1 to the number of cards if the mark of card y <> true then next repeat end if lock messages go card y unlock messages repeat with b = 1 to the number of buttons if the style of button b = "checkbox" then send "mouseUp" to button b end if end repeat end repeat lock messages go card tStartCard unlock messages unlock screen end doStuff3 Any suggestions? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Problematic-script-on-Windows-7-tp3029606p3029606.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Fri Nov 5 21:25:13 2010 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 6 Nov 2010 02:25:13 +0100 Subject: Problematic script on Windows 7! In-Reply-To: <1289005912380-3029606.post@n4.nabble.com> References: <1289005912380-3029606.post@n4.nabble.com> Message-ID: Hi, No idea why you don't get an error on Mac. Do you have a 'pass mouseUp' command in one of the checkboxes? Or does one of the buttons lack a mouseUp handler? Could you copy and paste the exact text of the error message? Can you check that the number of buttons and the number of buttons of this card return the same number? -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com Op 6 nov. 2010 om 02:11 heeft charles61 het volgende geschreven: > > The following script, which works fine on the Mac, gets flagged by Windows 7 > in a windows standalone. > > The line that is cited: Send 'mouseUp' to button b is displayed in bug > report on the standalone that it cannot find a handler with the above line. > After the message, printing of a single page starts. > > on doStuff3 > put the num of this card into tStartCard > lock screen > > repeat with y = 1 to the number of cards > if the mark of card y <> true then > next repeat > end if > lock messages > go card y > unlock messages > repeat with b = 1 to the number of buttons > if the style of button b = "checkbox" then > send "mouseUp" to button b > end if > end repeat > > end repeat > lock messages > go card tStartCard > unlock messages > unlock screen > end doStuff3 > > Any suggestions? > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Problematic-script-on-Windows-7-tp3029606p3029606.html > Sent from the Revolution - User mailing list archive at Nabble.com. > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From cszasz at mac.com Fri Nov 5 21:59:36 2010 From: cszasz at mac.com (charles61) Date: Fri, 5 Nov 2010 18:59:36 -0700 (PDT) Subject: Problematic script on Windows 7! In-Reply-To: References: <1289005912380-3029606.post@n4.nabble.com> Message-ID: <97E01121-C542-49C6-81A3-C21E944862C2@mac.com> Mark, There are no "pass mouseUp' commands in any of the checkboxes. Most of the checkboxes don't have a script. They do have a custom property, uMylabel, which is used in a group script to populate a field with the labels on print only cards. The checkboxes that do have scripts consist of displaying a field when checked and putting empty into the field when it is not checked on both the regular cards and print cards. The exact error message: Type: Handler: can't find handler Object: button 'Print' of card 'comm' of stack 'C/ProgramData/StudentReport.rev Line: send 'mouseUp' to button b Line Num: 2608 Hint: mouseUp When I move the script from the print button to the script of the card, I get the same error message except it references the card and a different line number. How do you check no. of buttons and the no. of buttons of this card? Charles Szasz cszasz at mac.com On Nov 5, 2010, at 9:25 PM, Mark Schonewille-3 [via Runtime Revolution] wrote: > Hi, > > No idea why you don't get an error on Mac. Do you have a 'pass mouseUp' command in one of the checkboxes? Or does one of the buttons lack a mouseUp handler? Could you copy and paste the exact text of the error message? Can you check that the number of buttons and the number of buttons of this card return the same number? > > -- > Kind regards, > > Mark Schonewille > Economy-x-Talk > Http://economy-x-talk.com > > Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com > > > Op 6 nov. 2010 om 02:11 heeft charles61 <[hidden email]> het volgende geschreven: > > > > > The following script, which works fine on the Mac, gets flagged by Windows 7 > > in a windows standalone. > > > > The line that is cited: Send 'mouseUp' to button b is displayed in bug > > report on the standalone that it cannot find a handler with the above line. > > After the message, printing of a single page starts. > > > > on doStuff3 > > put the num of this card into tStartCard > > lock screen > > > > repeat with y = 1 to the number of cards > > if the mark of card y <> true then > > next repeat > > end if > > lock messages > > go card y > > unlock messages > > repeat with b = 1 to the number of buttons > > if the style of button b = "checkbox" then > > send "mouseUp" to button b > > end if > > end repeat > > > > end repeat > > lock messages > > go card tStartCard > > unlock messages > > unlock screen > > end doStuff3 > > > > Any suggestions? > > > > -- > > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Problematic-script-on-Windows-7-tp3029606p3029606.html > > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > > use-revolution mailing list > > [hidden email] > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/Problematic-script-on-Windows-7-tp3029606p3029614.html > To unsubscribe from Problematic script on Windows 7!, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Problematic-script-on-Windows-7-tp3029606p3029626.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Fri Nov 5 22:20:26 2010 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 6 Nov 2010 03:20:26 +0100 Subject: Problematic script on Windows 7! In-Reply-To: <97E01121-C542-49C6-81A3-C21E944862C2@mac.com> References: <1289005912380-3029606.post@n4.nabble.com> <97E01121-C542-49C6-81A3-C21E944862C2@mac.com> Message-ID: Hi Charles, My next guess would be that you have one checkbox on a card that isn't part of the group. Just "put the number of buttons" into the message box and then "put the number of buttons of this card" into the message box. Exactly like that. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Economy-x-Talk on Facebook now and get a free Color Converter license http://qurl.tk/gn (read the conditions) On 6 nov 2010, at 02:59, charles61 wrote: > > Mark, > > There are no "pass mouseUp' commands in any of the checkboxes. Most of the checkboxes don't have a script. They do have a custom property, uMylabel, which is used in a group script to populate a field with the labels on print only cards. The checkboxes that do have scripts consist of displaying a field when checked and putting empty into the field when it is not checked on both the regular cards and print cards. > > The exact error message: > > Type: Handler: can't find handler > Object: button 'Print' of card 'comm' of stack 'C/ProgramData/StudentReport.rev > Line: send 'mouseUp' to button b > Line Num: 2608 > Hint: mouseUp > > When I move the script from the print button to the script of the card, I get the same error message except it references the card and a different line number. > > How do you check no. of buttons and the no. of buttons of this card? > > Charles Szasz > cszasz at mac.com From cszasz at mac.com Fri Nov 5 22:29:19 2010 From: cszasz at mac.com (charles61) Date: Fri, 5 Nov 2010 19:29:19 -0700 (PDT) Subject: Problematic script on Windows 7! In-Reply-To: References: <1289005912380-3029606.post@n4.nabble.com> <97E01121-C542-49C6-81A3-C21E944862C2@mac.com> Message-ID: <1FFEAA72-9ADD-43FA-A83B-C26820480A6F@mac.com> Mark, You are correct. For some card, there are some checkboxes that cannot be include in the grouping of the other checkboxes on that card. Is this what causing the problem? Charles Szasz cszasz at mac.com On Nov 5, 2010, at 10:20 PM, Mark Schonewille-3 [via Runtime Revolution] wrote: > Hi Charles, > > My next guess would be that you have one checkbox on a card that isn't part of the group. > > Just "put the number of buttons" into the message box and then "put the number of buttons of this card" into the message box. Exactly like that. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Economy-x-Talk on Facebook now and get a free Color Converter license http://qurl.tk/gn (read the conditions) > > On 6 nov 2010, at 02:59, charles61 wrote: > > > > > Mark, > > > > There are no "pass mouseUp' commands in any of the checkboxes. Most of the checkboxes don't have a script. They do have a custom property, uMylabel, which is used in a group script to populate a field with the labels on print only cards. The checkboxes that do have scripts consist of displaying a field when checked and putting empty into the field when it is not checked on both the regular cards and print cards. > > > > The exact error message: > > > > Type: Handler: can't find handler > > Object: button 'Print' of card 'comm' of stack 'C/ProgramData/StudentReport.rev > > Line: send 'mouseUp' to button b > > Line Num: 2608 > > Hint: mouseUp > > > > When I move the script from the print button to the script of the card, I get the same error message except it references the card and a different line number. > > > > How do you check no. of buttons and the no. of buttons of this card? > > > > Charles Szasz > > [hidden email] > > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/Problematic-script-on-Windows-7-tp3029606p3029630.html > To unsubscribe from Problematic script on Windows 7!, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Problematic-script-on-Windows-7-tp3029606p3029634.html Sent from the Revolution - User mailing list archive at Nabble.com. From etcawley at fastmail.fm Sat Nov 6 05:21:14 2010 From: etcawley at fastmail.fm (edward cawley) Date: Sat, 6 Nov 2010 04:21:14 -0500 Subject: standalone image problem Message-ID: <2E81E117-5C60-4F27-80C3-57D6686A06D1@fastmail.fm> I'm trying to build for both Mac OS X and windows, but I'm concentrating on Mac until I get it to work. I have Snow Leopard installed.The folder structure is ./Resources/map_animation.gif for a typical file I have included the open stack code and the opencard code for one of the cards. I also will include(attached) screen capture of the folders location . As I said the stack works, ie. clik on the field or button and it will go to the next cd, all the text files are read and shown but the images (gif & jpeg), audio, and one video clip do not show. Since it is showing the files it looks like it is finding the files in the folder but not showing them. on preopenstack --set the topleft of this stack to 30,30 set the defaultfolder to "resources/" set the decorations of this stack to "title,close" set the topleft of this stack to 0,0 set the height of this stack to 750 set the width of this stack to 1280 set the loc of this stack to 640,400 hide menubar end preopenstack on openCard global pname set the filename of image 1 to "resources/BKG.paneling.jpg" set the filename of image 2 to "resources/deck_animation.gif" set the currenttime of player 1 to 0 set the filename of player 1 to "resources/river1" start player 1 end openCard On Nov 5, 2010, at 11:02 AM, use-revolution-request at lists.runrev.com wrote: > > Message: 2 > Date: Thu, 4 Nov 2010 11:36:39 -0600 > From: Devin Asay > Subject: Re: image files in standalone > To: How to use Revolution > Message-ID: <3B2C6B00-1E04-4FB2-A629-D9A0F3785234 at byu.edu> > Content-Type: text/plain; charset="us-ascii" > > > On Nov 4, 2010, at 11:07 AM, edward cawley wrote: > > > Hello Edward, > > What platform are you building for? What does your folder structure look like? Do you set the defaultFolder in order to locate the resource folder? > > Devin > > > > Devin Asay > Humanities Technology and Research Support Center > Brigham Young University > From dixonja at hotmail.co.uk Sat Nov 6 06:05:28 2010 From: dixonja at hotmail.co.uk (John Dixon) Date: Sat, 6 Nov 2010 10:05:28 +0000 Subject: standalone image problem In-Reply-To: <2E81E117-5C60-4F27-80C3-57D6686A06D1@fastmail.fm> References: <2E81E117-5C60-4F27-80C3-57D6686A06D1@fastmail.fm> Message-ID: Hi Edward... Will this work for you ? global gtheFolder on preopenstack set itemDel to "/" put item 1 to -2 of (the effective fileName of this stack) & "/resources" into gtheFolder set the defaultfolder to gtheFolder --set the topleft of this stack to 30,30 --set the defaultfolder to "resources/" set the decorations of this stack to "title,close" set the topleft of this stack to 0,0 set the height of this stack to 750 set the width of this stack to 1280 set the loc of this stack to 640,400 hide menubar end preopenstack on openCard global pname set the filename of image 1 to "./resources/BKG.paneling.jpg" set the filename of image 2 to "./resources/deck_animation.gif" set the currenttime of player 1 to 0 set the filename of player 1 to "./resources/river1" start player 1 end openCard be well Dixie > From: etcawley at fastmail.fm > Date: Sat, 6 Nov 2010 04:21:14 -0500 > To: use-revolution at lists.runrev.com > Subject: standalone image problem > > > I'm trying to build for both Mac OS X and windows, but I'm concentrating on Mac until I get it to work. I have Snow Leopard installed.The folder structure is ./Resources/map_animation.gif for a typical file I have included the open stack code and the opencard code for one of the cards. I also will include(attached) screen capture of the folders location . As I said the stack works, ie. clik on the field or button and it will go to the next cd, all the text files are read and shown but the images (gif & jpeg), audio, and one video clip do not show. Since it is showing the files it looks like it is finding the files in the folder but not showing them. > > on preopenstack > --set the topleft of this stack to 30,30 > set the defaultfolder to "resources/" > set the decorations of this stack to "title,close" > set the topleft of this stack to 0,0 > set the height of this stack to 750 > set the width of this stack to 1280 > set the loc of this stack to 640,400 > hide menubar > end preopenstack > > on openCard > global pname > set the filename of image 1 to "resources/BKG.paneling.jpg" > set the filename of image 2 to "resources/deck_animation.gif" > set the currenttime of player 1 to 0 > set the filename of player 1 to "resources/river1" > start player 1 > end openCard > > > On Nov 5, 2010, at 11:02 AM, use-revolution-request at lists.runrev.com wrote: > > > > > Message: 2 > > Date: Thu, 4 Nov 2010 11:36:39 -0600 > > From: Devin Asay > > Subject: Re: image files in standalone > > To: How to use Revolution > > Message-ID: <3B2C6B00-1E04-4FB2-A629-D9A0F3785234 at byu.edu> > > Content-Type: text/plain; charset="us-ascii" > > > > > > On Nov 4, 2010, at 11:07 AM, edward cawley wrote: > > > > > > Hello Edward, > > > > What platform are you building for? What does your folder structure look like? Do you set the defaultFolder in order to locate the resource folder? > > > > Devin > > > > > > > > Devin Asay > > Humanities Technology and Research Support Center > > Brigham Young University > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From devin_asay at byu.edu Sat Nov 6 10:54:19 2010 From: devin_asay at byu.edu (Devin Asay) Date: Sat, 6 Nov 2010 08:54:19 -0600 Subject: standalone image problem In-Reply-To: References: <2E81E117-5C60-4F27-80C3-57D6686A06D1@fastmail.fm> Message-ID: <2C1ABEB4-B787-41FE-954A-8566DFE632EE@byu.edu> Edward, The tricky thing about standalone apps on OS X is that, if you do not set the defaultFolder in the stack, the defaultFolder will be the folder where the .app bundle resides. If you do set the defaultfolder to be the folder where the stack resides, as John has shown in his example, when you create a standalone out of the stack, the defaultFolder is *inside* the .app bundle. See my note in the dictionary under defaultFolder for more details. Regards, Devin On Nov 6, 2010, at 4:05 AM, John Dixon wrote: > > Hi Edward... > > Will this work for you ? > > global gtheFolder > > on preopenstack > set itemDel to "/" > put item 1 to -2 of (the effective fileName of this stack) & "/resources" into gtheFolder > set the defaultfolder to gtheFolder > > --set the topleft of this stack to 30,30 > --set the defaultfolder to "resources/" > set the decorations of this stack to "title,close" > set the topleft of this stack to 0,0 > set the height of this stack to 750 > set the width of this stack to 1280 > set the loc of this stack to 640,400 > hide menubar > end preopenstack > > on openCard > global pname > set the filename of image 1 to "./resources/BKG.paneling.jpg" > set the filename of image 2 to "./resources/deck_animation.gif" > set the currenttime of player 1 to 0 > set the filename of player 1 to "./resources/river1" > start player 1 > end openCard > > be well > > Dixie > >> From: etcawley at fastmail.fm >> Date: Sat, 6 Nov 2010 04:21:14 -0500 >> To: use-revolution at lists.runrev.com >> Subject: standalone image problem >> >> >> I'm trying to build for both Mac OS X and windows, but I'm concentrating on Mac until I get it to work. I have Snow Leopard installed.The folder structure is ./Resources/map_animation.gif for a typical file I have included the open stack code and the opencard code for one of the cards. I also will include(attached) screen capture of the folders location . As I said the stack works, ie. clik on the field or button and it will go to the next cd, all the text files are read and shown but the images (gif & jpeg), audio, and one video clip do not show. Since it is showing the files it looks like it is finding the files in the folder but not showing them. >> >> on preopenstack >> --set the topleft of this stack to 30,30 >> set the defaultfolder to "resources/" >> set the decorations of this stack to "title,close" >> set the topleft of this stack to 0,0 >> set the height of this stack to 750 >> set the width of this stack to 1280 >> set the loc of this stack to 640,400 >> hide menubar >> end preopenstack >> >> on openCard >> global pname >> set the filename of image 1 to "resources/BKG.paneling.jpg" >> set the filename of image 2 to "resources/deck_animation.gif" >> set the currenttime of player 1 to 0 >> set the filename of player 1 to "resources/river1" >> start player 1 >> end openCard >> >> >> On Nov 5, 2010, at 11:02 AM, use-revolution-request at lists.runrev.com wrote: >> >>> >>> Message: 2 >>> Date: Thu, 4 Nov 2010 11:36:39 -0600 >>> From: Devin Asay >>> Subject: Re: image files in standalone >>> To: How to use Revolution >>> Message-ID: <3B2C6B00-1E04-4FB2-A629-D9A0F3785234 at byu.edu> >>> Content-Type: text/plain; charset="us-ascii" >>> >>> >>> On Nov 4, 2010, at 11:07 AM, edward cawley wrote: >>> >>> >>> Hello Edward, >>> >>> What platform are you building for? What does your folder structure look like? Do you set the defaultFolder in order to locate the resource folder? >>> >>> Devin >>> >>> >>> >>> Devin Asay >>> Humanities Technology and Research Support Center >>> Brigham Young University >>> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution Devin Asay Humanities Technology and Research Support Center Brigham Young University From bill at bluewatermaritime.com Sat Nov 6 13:05:22 2010 From: bill at bluewatermaritime.com (william humphrey) Date: Sat, 6 Nov 2010 13:05:22 -0400 Subject: standalone image problem In-Reply-To: <2C1ABEB4-B787-41FE-954A-8566DFE632EE@byu.edu> References: <2E81E117-5C60-4F27-80C3-57D6686A06D1@fastmail.fm> <2C1ABEB4-B787-41FE-954A-8566DFE632EE@byu.edu> Message-ID: What if you have each image's directory location named in the "image source"? ./myImages/imageThatCanChange.png Does that work? On Sat, Nov 6, 2010 at 10:54 AM, Devin Asay wrote: > Edward, > > The tricky thing about standalone apps on OS X is that, if you do not set > the defaultFolder in the stack, the defaultFolder will be the folder where > the .app bundle resides. If you do set the defaultfolder to be the folder > where the stack resides, as John has shown in his example, when you create a > standalone out of the stack, the defaultFolder is *inside* the .app bundle. > See my note in the dictionary under defaultFolder for more details. > > Regards, > > Devin > > On Nov 6, 2010, at 4:05 AM, John Dixon wrote: > > > > > Hi Edward... > > > > Will this work for you ? > > > > global gtheFolder > > > > on preopenstack > > set itemDel to "/" > > put item 1 to -2 of (the effective fileName of this stack) & > "/resources" into gtheFolder > > set the defaultfolder to gtheFolder > > > > --set the topleft of this stack to 30,30 > > --set the defaultfolder to "resources/" > > set the decorations of this stack to "title,close" > > set the topleft of this stack to 0,0 > > set the height of this stack to 750 > > set the width of this stack to 1280 > > set the loc of this stack to 640,400 > > hide menubar > > end preopenstack > > > > on openCard > > global pname > > set the filename of image 1 to "./resources/BKG.paneling.jpg" > > set the filename of image 2 to "./resources/deck_animation.gif" > > set the currenttime of player 1 to 0 > > set the filename of player 1 to "./resources/river1" > > start player 1 > > end openCard > > > > be well > > > > Dixie > > > >> From: etcawley at fastmail.fm > >> Date: Sat, 6 Nov 2010 04:21:14 -0500 > >> To: use-revolution at lists.runrev.com > >> Subject: standalone image problem > >> > >> > >> I'm trying to build for both Mac OS X and windows, but I'm concentrating > on Mac until I get it to work. I have Snow Leopard installed.The folder > structure is ./Resources/map_animation.gif for a typical file I have > included the open stack code and the opencard code for one of the cards. I > also will include(attached) screen capture of the folders location . As I > said the stack works, ie. clik on the field or button and it will go to the > next cd, all the text files are read and shown but the images (gif & jpeg), > audio, and one video clip do not show. Since it is showing the files it > looks like it is finding the files in the folder but not showing them. > >> > >> on preopenstack > >> --set the topleft of this stack to 30,30 > >> set the defaultfolder to "resources/" > >> set the decorations of this stack to "title,close" > >> set the topleft of this stack to 0,0 > >> set the height of this stack to 750 > >> set the width of this stack to 1280 > >> set the loc of this stack to 640,400 > >> hide menubar > >> end preopenstack > >> > >> on openCard > >> global pname > >> set the filename of image 1 to "resources/BKG.paneling.jpg" > >> set the filename of image 2 to "resources/deck_animation.gif" > >> set the currenttime of player 1 to 0 > >> set the filename of player 1 to "resources/river1" > >> start player 1 > >> end openCard > >> > >> > >> On Nov 5, 2010, at 11:02 AM, use-revolution-request at lists.runrev.comwrote: > >> > >>> > >>> Message: 2 > >>> Date: Thu, 4 Nov 2010 11:36:39 -0600 > >>> From: Devin Asay > >>> Subject: Re: image files in standalone > >>> To: How to use Revolution > >>> Message-ID: <3B2C6B00-1E04-4FB2-A629-D9A0F3785234 at byu.edu> > >>> Content-Type: text/plain; charset="us-ascii" > >>> > >>> > >>> On Nov 4, 2010, at 11:07 AM, edward cawley wrote: > >>> > >>> > >>> Hello Edward, > >>> > >>> What platform are you building for? What does your folder structure > look like? Do you set the defaultFolder in order to locate the resource > folder? > >>> > >>> Devin > >>> > >>> > >>> > >>> Devin Asay > >>> Humanities Technology and Research Support Center > >>> Brigham Young University > >>> > >> _______________________________________________ > >> use-revolution mailing list > >> use-revolution at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-revolution > > > _______________________________________________ > > use-revolution mailing list > > use-revolution at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-revolution > > Devin Asay > Humanities Technology and Research Support Center > Brigham Young University > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- http://www.bluewatermaritime.com From ambassador at fourthworld.com Sat Nov 6 13:29:08 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 06 Nov 2010 10:29:08 -0700 Subject: standalone image problem Message-ID: <4CD59064.5060801@fourthworld.com> Devin Asay wrote: > The tricky thing about standalone apps on OS X is that, if you > do not set the defaultFolder in the stack, the defaultFolder > will be the folder where the .app bundle resides. For many years the engine used the folder where the executable resides as the defaultFolder, which for Mac was inside the bundle - when did this change? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From pete at mollysrevenge.com Sat Nov 6 14:30:54 2010 From: pete at mollysrevenge.com (Peter Haworth) Date: Sat, 6 Nov 2010 11:30:54 -0700 Subject: Painfully slow performance Message-ID: <994F16F4-B135-4BDA-B1F0-3B7DFD2FB76A@mollysrevenge.com> I just built my first standalone with LiveCode 4.5 (on OSX) and I'm seeing painfully slow performance compared to the same application built with 4.0. I'm using an SQLite database to populate all the data on the cards in the app, not sure if there's some problem with the SQLite side of things. Only other thing I can think of is that I am using several front scripts. Opening a card used to be almost instantaneous, now it's taking 30-45 seconds. Bringing up the data for a different SQLite row used to be instantaneous, now takes 10 seconds or so. This is consistant across all the cards that handle data fro any table in my SQLite database. The 4.0 standalone still works just fine using the same database. Any ideas? Pete Haworth From ambassador at fourthworld.com Sat Nov 6 14:39:15 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 06 Nov 2010 11:39:15 -0700 Subject: Painfully slow performance Message-ID: <4CD5A0D3.2040008@fourthworld.com> Peter Haworth wrote: > I just built my first standalone with LiveCode 4.5 (on OSX) and I'm > seeing painfully slow performance compared to the same application > built with 4.0. > > I'm using an SQLite database to populate all the data on the cards in > the app, not sure if there's some problem with the SQLite side of > things. Only other thing I can think of is that I am using several > front scripts. Opening a card used to be almost instantaneous, now > it's taking 30-45 seconds. Bringing up the data for a different > SQLite row used to be instantaneous, now takes 10 seconds or so. This > is consistant across all the cards that handle data fro any table in > my SQLite database. > > The 4.0 standalone still works just fine using the same database. I haven't spent a lot of time with SQLite in Rev so I can't comment and that and look forward to feedback from others on that front. But FWIW in most general areas I find performance in v4.5 to be on par or slightly better than in v4.0. One think I recently discovered is how so many things related to screen updates slow to a crawl the moment you use any controls with graphic effects. I've submitted a proposed solution to the RQCC for regaining the lost performance: But unless you changed any objects between those two versions so that you're now using graphic effects that you hadn't previously used, I'm at a loss to explain the speed difference. I look forward to seeing what this discussion reveals. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From katir at hindu.org Sat Nov 6 17:02:30 2010 From: katir at hindu.org (Web Admin Himalayan Academy) Date: Sat, 06 Nov 2010 11:02:30 -1000 Subject: Painfully slow performance In-Reply-To: <994F16F4-B135-4BDA-B1F0-3B7DFD2FB76A@mollysrevenge.com> References: <994F16F4-B135-4BDA-B1F0-3B7DFD2FB76A@mollysrevenge.com> Message-ID: <4CD5C266.4000607@hindu.org> On 11/6/10 8:30 AM, Peter Haworth wrote: > I just built my first standalone with LiveCode 4.5 (on OSX) and I'm > seeing painfully slow performance compared to the same application > built with 4.0. > > I'm using an SQLite database to populate all the data on the cards in > the app, not sure if there's some problem with the SQLite side of > things. Only other thing I can think of is that I am using several > front scripts. Opening a card used to be almost instantaneous, now > it's taking 30-45 seconds. Bringing up the data for a different > SQLite row used to be instantaneous, now takes 10 seconds or so. This > is consistant across all the cards that handle data fro any table in > my SQLite database. > > The 4.0 standalone still works just fine using the same database. > > Any ideas? > Pete Haworth Disclaimer: this may having nothing to do with your issue and does not explain why it was fast before... but still good to remember: Are you feeding the data to the fields row, by row, or do you get all your data into a variable and then post it to the field after the query is complete? this is construct from a sample stack made available in 2006: if recNum > 0 then repeat recNum times put empty into tRec repeat with c = 1 to colNum -- put revDatabaseColumnNamed(curID, line c of colNames) & tab after tRec put revDatabaseColumnNumbered(curID, c) & tab after tRec end repeat put tRec & cr after fld "Select" -- revMoveToPreviousRecord curID revMoveToNextRecord curID if the result = false then exit repeat end repeat end if this was painfully slow! when I replaced this line: put tRec & cr after fld "select" with put tRec & cr after tResultSet end repeat end if put tResultSet into fld "select" the whole thing went from "painfully slow" to "nearly instantaneous" and I have confirmed this many times: updating a field, line by line is hard, for example if your results comprise 650 found rows... because (I'm guessing) you are forcing the stack to update itself 650 times... whereas, if you poke a variable and *then* push it to the GUI you are asking the stack to only update itself 1 time. HTH From revolution at derbrill.de Sat Nov 6 17:33:33 2010 From: revolution at derbrill.de (Malte Brill) Date: Sat, 6 Nov 2010 22:33:33 +0100 Subject: Painfully slow performance In-Reply-To: <20101106170004.6771E288161@mail.runrev.com> References: <20101106170004.6771E288161@mail.runrev.com> Message-ID: Peter, what happens when you use dbsqlite.bundle from the 4.0 release with the 4.5 engine? Cheers, Malte From lists at mangomultimedia.com Sat Nov 6 17:53:04 2010 From: lists at mangomultimedia.com (Trevor DeVore) Date: Sat, 6 Nov 2010 17:53:04 -0400 Subject: Painfully slow performance In-Reply-To: <994F16F4-B135-4BDA-B1F0-3B7DFD2FB76A@mollysrevenge.com> References: <994F16F4-B135-4BDA-B1F0-3B7DFD2FB76A@mollysrevenge.com> Message-ID: On Sat, Nov 6, 2010 at 2:30 PM, Peter Haworth wrote: > I just built my first standalone with LiveCode 4.5 (on OSX) and I'm seeing > painfully slow performance compared to the same application built with 4.0. > > I'm using an SQLite database to populate all the data on the cards in the > app, not sure if there's some problem with the SQLite side of things. Only > other thing I can think of is that I am using several front scripts. > Opening a card used to be almost instantaneous, now it's taking 30-45 > seconds. Bringing up the data for a different SQLite row used to be > instantaneous, now takes 10 seconds or so. This is consistant across all > the cards that handle data fro any table in my SQLite database. > > The 4.0 standalone still works just fine using the same database. > I recall someone else having an issue with this and reporting it to RQCC but I can't find the report now. I think the problem was that a field being search on in the database was not indexed. For some reason there was a slow down using the newer SQLite driver included with 4.5. Might be worth looking into. Regards, -- Trevor DeVore Blue Mango Learning Systems www.bluemangolearning.com - www.screensteps.com From pete at mollysrevenge.com Sat Nov 6 19:23:01 2010 From: pete at mollysrevenge.com (Peter Haworth) Date: Sat, 6 Nov 2010 16:23:01 -0700 Subject: Slow Performance - Update Message-ID: I guess I was too hasty in accusing LiveCode 4.5 of performance issues! I rebuilt my application using Rev Studio 4.0 using the same code base and the performance issues are still there in the standalone. So the issue now is that the problem doesn't occur in the IDE, only in the standalone and I don't see any code that distinguishes between the two environments. I've isolated the problem down to some code that loads entries into option menus by querying my SQLite database. I've checked the timing of the SQLite query and nothing seems awry there. Does anyone have any tips on how to debug something like this in a standalone without using a large number of "answer information" statements or any tips on things that work fine in the IDE but perform slowly in a standalone? The only major code change I can think of is that I am using the long name of various controls and I used to use the unique ID, but once again why would that cause a problem in a standalone and not in the IDE. Any suggestions most welcome! Pete Haworth From jacque at hyperactivesw.com Sat Nov 6 21:57:56 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 06 Nov 2010 20:57:56 -0500 Subject: Paging Shao Sean Message-ID: <4CD607A4.5060704@hyperactivesw.com> I'm looking for the latest version of your libSMTP library. Could you post it somewhere for us? Uploading to (the new) RevOnline would be a community service and even better if you're willing. BTW, your stuff is so useful, I wish you had links on your web site. Ken Ray has a link to a newish 2.5.something libSMTP on his site but the URL doesn't resolve. :( -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sat Nov 6 22:04:16 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 06 Nov 2010 21:04:16 -0500 Subject: standalone image problem In-Reply-To: <4CD59064.5060801@fourthworld.com> References: <4CD59064.5060801@fourthworld.com> Message-ID: <4CD60920.7010001@hyperactivesw.com> On 11/6/10 12:29 PM, Richard Gaskin wrote: > Devin Asay wrote: > > > The tricky thing about standalone apps on OS X is that, if you > > do not set the defaultFolder in the stack, the defaultFolder > > will be the folder where the .app bundle resides. > > For many years the engine used the folder where the executable resides > as the defaultFolder, which for Mac was inside the bundle - when did > this change? I can't find a reference to the change in any of the change docs I looked at, but sure enough, it's changed somewhere along the way. I'm sort of surprised I hadn't noticed till now, but I usually don't depend on the (default) defaultfolder in my standalones. Generally I set it myself if I need it. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From richmondmathewson at gmail.com Sun Nov 7 03:29:31 2010 From: richmondmathewson at gmail.com (Richmond) Date: Sun, 07 Nov 2010 10:29:31 +0200 Subject: [OT] standalone image problem In-Reply-To: <4CD60920.7010001@hyperactivesw.com> References: <4CD59064.5060801@fourthworld.com> <4CD60920.7010001@hyperactivesw.com> Message-ID: <4CD6636B.1070706@gmail.com> I don't have a standalone image problem; mainly because when I attempt to stand alone I generally fall over. That is what is so wonderful about this Use-List; one always has someone to lean on . . . :) From shaosean at wehostmacs.com Sun Nov 7 06:39:23 2010 From: shaosean at wehostmacs.com (Shao Sean) Date: Sun, 7 Nov 2010 06:39:23 -0500 Subject: [req] old external sdk with the game of life code Message-ID: does anyone have the old external sdk with the game of life code? either post a link here or email me directly.. thanks :-) From ambassador at fourthworld.com Sun Nov 7 09:53:40 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 07 Nov 2010 06:53:40 -0800 Subject: standalone image problem Message-ID: <4CD6BD74.5090606@fourthworld.com> J. Landman Gay wrote: > On 11/6/10 12:29 PM, Richard Gaskin wrote: >> For many years the engine used the folder where the executable >> resides as the defaultFolder, which for Mac was inside the >> bundle - when did this change? > > I can't find a reference to the change in any of the change docs I > looked at, but sure enough, it's changed somewhere along the way. > I'm sort of surprised I hadn't noticed till now, but I usually > don't depend on the (default) defaultfolder in my standalones. > Generally I set it myself if I need it. Me too. I figure any property subject to change at any time by any script needs to be saved, set to what I need explicitly, then restored when I'm done. Thanks for the reality check, since I couldn't find mention of when it changed either but felt (almost) certain I wasn't imagining that it had previously been different. Now that I think about it a bit more I wonder if that change was concurrent with the change to how image paths are found, maybe somewhere in the v3.0 time frame.... -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From larry at walkerenergysystems.com Sun Nov 7 10:18:08 2010 From: larry at walkerenergysystems.com (Larry Walker) Date: Sun, 7 Nov 2010 09:18:08 -0600 Subject: serial port problems Message-ID: <61D97BD2-70B8-4BFB-97FC-924B55EFD638@walkerenergysystems.com> I am trying to read data from a "serial port" (using a USB-serial adaptor). I am on a MacBook Pro running 10.5.8, using LiveCode 4.5, and Prolific model 2303 USB-serial adaptor. The following code does not work: on mouseUp put "modem:" into usbSerial put empty into field "Field" open driver usbSerial for text read read from driver usbSerial for 5 chars put it after field "field" close driver usbSerial end mouseUp Setting a breakpoint on the "read from" shows that the "open" does not appear to fail. Single-stepping through the read does not wait for any input from the connected terminal, it returns immediately. "It" is empty afterward. By reading for N chars I believe I am side-stepping any line - terminator issues. I have confirmed that the USB-serial adaptor and the terminal can talk to each other properly, using the command-line invocation: 'screen / dev/tty.usbserial'. I have confirmed that the serialControlString matches the terminal's settings. This fail whether I use "open file" or "open driver". This fails whether I use "modem" or "printer" as the device. If I use /dev/tty.usbserial", the IDE hangs and I have to Force-Quit it. I have tried using the SerialTest.rev stack (http://www.troz.net/rev/stacks/SerialTest.rev ) as well: identical results. I have read Phil Worthington's paper on serial communication (http://www.pdslabs.net/usb/rev-usb1.pdf ); I believe I'm doing just as he suggests (except for the no-name adaptor I bought), but no luck. I did notice that "the DeviceNames" seems to now return its results in a format different from the one Phil describes, for whatever that might be worth (LC4.5 changes?). Has anything changed in LC4.5 regarding serial communication? Can others run the serialTest.rev script properly under LC4.5? Any suggestions welcome! Larry Walker Walker Energy Systems LLC Madison, WI USA Strategies & Technologies www.walkerenergysystems.com From Mark_Smith at cpe.umanitoba.ca Sun Nov 7 10:50:30 2010 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sun, 7 Nov 2010 09:50:30 -0600 Subject: Refreshing a card In-Reply-To: References: <1288583523153-3021743.post@n4.nabble.com>, Message-ID: <3F95480D5F0DA64EA0785711087864DE8C61A4DFD9@exch01.mchpe.cpe.umanitoba.ca> Thanks Terry, the following worked beautifully.. set the showDateStamp of this stack to not the showDateStamp of this stack if there is a fld "dateStampField" then set the visible of field "datestampfield" to the showdatestamp of this stack end if break (I wasn't able to figure out how to use openCard in this situation but since I have a solution I'l leave that problem for another day). Thanks again. -- mark ________________________________________ From: use-revolution-bounces at lists.runrev.com [use-revolution-bounces at lists.runrev.com] On Behalf Of Terry Judd [tsj at unimelb.edu.au] Sent: Sunday, October 31, 2010 10:57 PM To: How to use Revolution Subject: Re: Refreshing a card Mark - if you want to do a general refresh the card then just call openCard in your handler. If all you want to do is refresh the date stamp object then add something like... Set the visible of grp/fld/whatever "dateStamp" to the showDateStamp of this stack ...to your case statement HTH, Terry... On 1/11/10 2:52 PM, "Mark Smith" wrote: > > Hello all, by now most of you are probably familiar with my silly questions > (born of, I am afraid, too many years engrossed in procedural programming > languages). Here we go. I have a menu option called "Toggle Date Stamp" and > it toggles on/off the display of a date stamp on the card. When you select > it you might expect that the card goes from displaying the date stamp to not > displaying the date stamp ad infinitum. Not so. In fact nothing changes. If > I move off the card and then back on I see the correct behaviour but not > while I am actually on the card (or any card). I am guessing that in the > Toggle Date Stamp menu code (below) I need to send a message to the card to > "refresh" itself. But what message? > > case "Toggle Date Stamp" > set the showDateStamp of this stack to not the showDateStamp of > this stack > -- insert some message to get the current card to "redisplay" > itself > break > end switch > > (Note, yes the showDateStamp property is in the stack because it effects the > behaviour of all of the cards, not particular ones. Hopefully I've got that > bit of logic right :-) > > Thanks for your patience, > > -- Mark -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne _______________________________________________ use-revolution mailing list use-revolution at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution From eriks at sisyph.us Sun Nov 7 11:02:01 2010 From: eriks at sisyph.us (Erik Schwartz) Date: Sun, 7 Nov 2010 11:02:01 -0500 Subject: serial port problems In-Reply-To: <61D97BD2-70B8-4BFB-97FC-924B55EFD638@walkerenergysystems.com> References: <61D97BD2-70B8-4BFB-97FC-924B55EFD638@walkerenergysystems.com> Message-ID: I have had problems with 4.5 and serial comms. I have not had time to diagnose it properly. I just regressed back to use 4.0 until the bugs in 4.5 get dealt with (kind of annoyed that I paid for the upgrade I can't use yet though). I hope you get it figured out. Erik On Sun, Nov 7, 2010 at 10:18 AM, Larry Walker wrote: > I am trying to read data from a "serial port" (using a USB-serial adaptor). > > I am on a MacBook Pro running 10.5.8, using LiveCode 4.5, and Prolific model > 2303 USB-serial adaptor. > > The following code does not work: > > on mouseUp > ? put "modem:" into usbSerial > ? put empty into field "Field" > > ? open driver usbSerial for text read > ? read from driver usbSerial for 5 chars > ? put it after field "field" > > ? close driver usbSerial > end mouseUp > > Setting a breakpoint on the "read from" shows that the "open" does not > appear to fail. Single-stepping through the read does not wait for any input > from the connected terminal, it returns immediately. "It" is empty > afterward. > > By reading for N chars I believe I am side-stepping any line -terminator > issues. > > I have confirmed that the USB-serial adaptor and the terminal can talk to > each other properly, using the command-line invocation: 'screen > /dev/tty.usbserial'. I have confirmed that the serialControlString matches > the terminal's settings. > > This fail whether I use "open file" or "open driver". > This fails whether I use "modem" or "printer" as the device. > > If I use /dev/tty.usbserial", the IDE hangs and I have to Force-Quit it. > > I have tried using the SerialTest.rev stack > (http://www.troz.net/rev/stacks/SerialTest.rev) as well: identical results. > > I have read Phil Worthington's paper on serial communication > (http://www.pdslabs.net/usb/rev-usb1.pdf); I believe I'm doing just as he > suggests (except for the no-name adaptor I bought), but no luck. I did > notice that "the DeviceNames" seems to now return its results in a format > different from the one Phil describes, for whatever that might be worth > (LC4.5 changes?). > > Has anything changed in LC4.5 regarding serial communication? Can others run > the serialTest.rev script properly under LC4.5? -- ========================================== eriks at sisyph.us? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? http://sisyph.us (530) 213-ERIK? ? ? ? ? ? ? ? ? ? ? ? ? http://twitter.com/eriks (530) 213-3745?? http://www.linkedin.com/in/erikschwartz ========================================== From kray at sonsothunder.com Sun Nov 7 10:18:07 2010 From: kray at sonsothunder.com (Ken Ray) Date: Sun, 07 Nov 2010 10:18:07 -0500 Subject: Paging Shao Sean In-Reply-To: <4CD607A4.5060704@hyperactivesw.com> Message-ID: > I'm looking for the latest version of your libSMTP library. Could you > post it somewhere for us? Uploading to (the new) RevOnline would be a > community service and even better if you're willing. > > BTW, your stuff is so useful, I wish you had links on your web site. Ken > Ray has a link to a newish 2.5.something libSMTP on his site but the URL > doesn't resolve. :( I have a copy of 1.20 I can send you if Sean doesn't have a newer one... Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From MikeKerner at roadrunner.com Sun Nov 7 11:20:55 2010 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 7 Nov 2010 11:20:55 -0500 Subject: Hello World iOS Sample App Message-ID: I have finally started to tinker around with the pre-alpha. I built the Hello World app. It runs fine in the simulator, but after transferring it to my Touch I can get it to start, but it immediately quits. Anybody else run into this? -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From bvlahos at mac.com Sun Nov 7 12:18:48 2010 From: bvlahos at mac.com (Bill Vlahos) Date: Sun, 07 Nov 2010 09:18:48 -0800 Subject: Stack scroll bars to fit small screen Message-ID: InfoWallet now requires 1024 x 768 which is fine for all monitors these days except for NetBooks which typically have a resolution of 1024 x 600 and sometimes smaller. It would be difficult to squeeze everything to fit in that size window. How can I make the application window scroll (i.e. add scroll bars) if the window size became smaller than 1024 x 768? Lots of other applications do this. Word processors and web browsers just to name two. Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. From jacque at hyperactivesw.com Sun Nov 7 12:47:56 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 07 Nov 2010 11:47:56 -0600 Subject: Paging Shao Sean In-Reply-To: References: Message-ID: <4CD6E64C.5040700@hyperactivesw.com> On 11/7/10 9:18 AM, Ken Ray wrote: > >> I'm looking for the latest version of your libSMTP library. Could you >> post it somewhere for us? Uploading to (the new) RevOnline would be a >> community service and even better if you're willing. >> >> BTW, your stuff is so useful, I wish you had links on your web site. Ken >> Ray has a link to a newish 2.5.something libSMTP on his site but the URL >> doesn't resolve. :( > > I have a copy of 1.20 I can send you if Sean doesn't have a newer one... Thanks, but I have 1.5. I can send you if you want. :) That may actually be the most recent, but I wanted to check because it was released in 2003. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From chipp at chipp.com Sun Nov 7 12:49:37 2010 From: chipp at chipp.com (Chipp Walters) Date: Sun, 7 Nov 2010 11:49:37 -0600 Subject: Stack scroll bars to fit small screen In-Reply-To: References: Message-ID: You need to put everything in a group, and resize the grp with the window. On Sunday, November 7, 2010, Bill Vlahos wrote: > InfoWallet now requires 1024 x 768 which is fine for all monitors these days except for NetBooks which typically have a resolution of 1024 x 600 and sometimes smaller. It would be difficult to squeeze everything to fit in that size window. > > How can I make the application window scroll (i.e. add scroll bars) if the window size became smaller than 1024 x 768? > > Lots of other applications do this. Word processors and web browsers just to name two. > > Bill Vlahos > _________________ > InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From chipp at chipp.com Sun Nov 7 12:52:40 2010 From: chipp at chipp.com (Chipp Walters) Date: Sun, 7 Nov 2010 11:52:40 -0600 Subject: standalone image problem In-Reply-To: <4CD6BD74.5090606@fourthworld.com> References: <4CD6BD74.5090606@fourthworld.com> Message-ID: Not sure if this helps, but I usually set the filename to empty, THEN set it to the specific file when swapping out files with the sane name. On Sunday, November 7, 2010, Richard Gaskin wrote: > J. Landman Gay wrote: > >> On 11/6/10 12:29 PM, Richard Gaskin wrote: >>> For many years the engine used the folder where the executable >>> resides as the defaultFolder, which for Mac was inside the >>> bundle - when did this change? >> >> I can't find a reference to the change in any of the change docs I >> looked at, but sure enough, it's changed somewhere along the way. >> I'm sort of surprised I hadn't noticed till now, but I usually >> don't depend on the (default) defaultfolder in my standalones. >> Generally I set it myself if I need it. > > Me too. ?I figure any property subject to change at any time by any script needs to be saved, set to what I need explicitly, then restored when I'm done. > > Thanks for the reality check, since I couldn't find mention of when it changed either but felt (almost) certain I wasn't imagining that it had previously been different. > > Now that I think about it a bit more I wonder if that change was concurrent with the change to how image paths are found, maybe somewhere in the v3.0 time frame.... > > -- > ?Richard Gaskin > ?Fourth World > ?LiveCode training and consulting: http://www.fourthworld.com > ?Webzine for LiveCode developers: http://www.LiveCodeJournal.com > ?LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From jacque at hyperactivesw.com Sun Nov 7 13:07:32 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 07 Nov 2010 12:07:32 -0600 Subject: serial port problems In-Reply-To: <61D97BD2-70B8-4BFB-97FC-924B55EFD638@walkerenergysystems.com> References: <61D97BD2-70B8-4BFB-97FC-924B55EFD638@walkerenergysystems.com> Message-ID: <4CD6EAE4.1050008@hyperactivesw.com> On 11/7/10 9:18 AM, Larry Walker wrote: > I am trying to read data from a "serial port" (using a USB-serial adaptor). Glad to see this here Larry. Just to fill everyone in, Larry and I have been going around with this issue for about a week in the tech queue without success (and I really appreciate his patience, he's been incredibly reasonable about it.) I asked Mark Waddingham about the problem and he said that basically the serial commands haven't been changed since their initial implementation back in MetaCard, and that any device that represents itself as a serial device should work with "open file" (but not necessarily with the device name returned by the drivernames. Use "modem:" or "printer:" instead.) He also said that they have never been reworked to support OS X; they were originally written for OS 9 and have always continued to work in OS X, so the code hasn't been examined. Eric's comment that it works in 4.0 and not in 4.5 is something I don't think the team knows about. Since serial access hasn't changed in the engine, there must be some other change that peripherally affects serial port access. If that's so, then a bug report in the QCC would be in order. I hope either Sarah or Phil will see this, since they are the serial/USB experts here. Maybe they have some comments to add or a workaround they've discovered. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Nov 7 13:12:09 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 07 Nov 2010 12:12:09 -0600 Subject: Hello World iOS Sample App In-Reply-To: References: Message-ID: <4CD6EBF9.3080202@hyperactivesw.com> On 11/7/10 10:20 AM, Mike Kerner wrote: > I have finally started to tinker around with the pre-alpha. I built the > Hello World app. It runs fine in the simulator, but after transferring it > to my Touch I can get it to start, but it immediately quits. > > Anybody else run into this? > Did you go through all the provisioning stuff that Apple requires? Do you have your provisioning license, and is it copied it to the device? I don't know if that's the problem exactly but it is something to check. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From niggemann at uni-wh.de Sun Nov 7 13:32:05 2010 From: niggemann at uni-wh.de (BNig) Date: Sun, 7 Nov 2010 10:32:05 -0800 (PST) Subject: Hello World iOS Sample App In-Reply-To: References: Message-ID: <1289154725984-3031047.post@n4.nabble.com> Mike, I dont know what is going on in your special case. But I did have problems with code I pasted into the script editor in 4.5 and above.When you copy formatted text the script editor at times inserts spurious ascii 202 in front of the code. This is with formatted text only. If you first convert the text in a text editor to ascii it works. This is no problem with Rev 4.0, This is new. What you see happened to me also, app runs well in the IDE and Simulator, but the app froze on the device. It was discussed in the forum: http://forums.runrev.com/phpBB2/viewtopic.php?f=5&t=5960 Maybe this has something to do with your problem. regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Hello-World-iOS-Sample-App-tp3030945p3031047.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Sun Nov 7 13:53:46 2010 From: pete at mollysrevenge.com (Peter Haworth) Date: Sun, 7 Nov 2010 10:53:46 -0800 Subject: Painfully slow performance (Trevor DeVore) In-Reply-To: <20101107180005.8338E288185@mail.runrev.com> References: <20101107180005.8338E288185@mail.runrev.com> Message-ID: Thanks for all the input. I've pretty much ruled out SQLite as the cause of the problem because I'm using the same database in the IDE and the standalone so unless the standalone is using a different SQLite library than the IDE, there shouldn't be any difference in performance between the two. Maybe it would help if I give a little more detail as to what is happening on the card. The basic design of most of my cards involves a datagrid which displays summary information about selected table entries. When the user clicks on a row in the datagrid, I get the single entry associated with that row from the SQLite table and load information from it into controls on the form. I use naming conventions for the controls that allow the code to figure out which column in the table entry they are associated with. The slow down in performance is directly related to the number of option buttons on the card - no option buttons, no slowdown. For a card with several option buttons, when I click on a datagrid row in the IDE, the update of the controls on the card is instantaneous. When I do the same thing in the standalone, the update of the controls is painfully slow. This is using exactly the same data from the same database. The code to handle option buttons simply executes a SELECT statement to get data from the database, a simple set statement to set the text of the control to the data from the SELECT statement and another statement to set the menuhistory of the control using the lineoffset function to locate the value of the column in the current table row to the text of the control. Help! Pete Haworth From runrev260805 at m-r-d.de Sun Nov 7 13:57:28 2010 From: runrev260805 at m-r-d.de (Matthias Rebbe) Date: Sun, 7 Nov 2010 19:57:28 +0100 Subject: Paging Shao Sean In-Reply-To: <4CD6E64C.5040700@hyperactivesw.com> References: <4CD6E64C.5040700@hyperactivesw.com> Message-ID: Hi, i have here version 2.5.3. As i think it?s ok for Shao Sean, i?ve uploaded it to my dropbox and publish the link to this list. http://dl.dropbox.com/u/11969084/LiveCode/smtpLibraries/libSmtp253.livecode Btw.: Did you have a look also at Sarah?s library? Her library supports HTML and also attachments. Regards, Matthias Am 07.11.2010 um 18:47 schrieb J. Landman Gay: > On 11/7/10 9:18 AM, Ken Ray wrote: >> >>> I'm looking for the latest version of your libSMTP library. Could you >>> post it somewhere for us? Uploading to (the new) RevOnline would be a >>> community service and even better if you're willing. >>> >>> BTW, your stuff is so useful, I wish you had links on your web site. Ken >>> Ray has a link to a newish 2.5.something libSMTP on his site but the URL >>> doesn't resolve. :( >> >> I have a copy of 1.20 I can send you if Sean doesn't have a newer one... > > Thanks, but I have 1.5. I can send you if you want. :) That may actually be the most recent, but I wanted to check because it was released in 2003. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From stephenREVOLUTION2 at barncard.com Sun Nov 7 14:24:11 2010 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 7 Nov 2010 11:24:11 -0800 Subject: serial port problems In-Reply-To: <61D97BD2-70B8-4BFB-97FC-924B55EFD638@walkerenergysystems.com> References: <61D97BD2-70B8-4BFB-97FC-924B55EFD638@walkerenergysystems.com> Message-ID: I think that the no-name adaptor might be a problem. I've successfully used the KEYSPAN adaptor with Rev recently with version 4. I have not tested the KEYSPAN with 4.5. search google for keyspan On 7 November 2010 07:18, Larry Walker wrote: > I am trying to read data from a "serial port" (using a USB-serial adaptor). > > I am on a MacBook Pro running 10.5.8, using LiveCode 4.5, and Prolific > model 2303 USB-serial adaptor. > > > ; I believe I'm doing just as he suggests (except for the no-name adaptor I > bought), Stephen Barncard San Francisco Ca. USA more about sqb From Mark_Smith at cpe.umanitoba.ca Sun Nov 7 14:53:46 2010 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sun, 7 Nov 2010 11:53:46 -0800 (PST) Subject: alerts Message-ID: <1289159626863-3031113.post@n4.nabble.com> How do you do a dialog like the Save dialog (Command-S) in rev? (ie. it goes away without user interaction when the action is complete) Thanks -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3031113.html Sent from the Revolution - User mailing list archive at Nabble.com. From devin_asay at byu.edu Sun Nov 7 17:15:00 2010 From: devin_asay at byu.edu (Devin Asay) Date: Sun, 7 Nov 2010 15:15:00 -0700 Subject: standalone image problem In-Reply-To: <4CD59064.5060801@fourthworld.com> References: <4CD59064.5060801@fourthworld.com> Message-ID: <2E41477F-433D-4187-94DB-CB4D99B4A692@byu.edu> On Nov 6, 2010, at 11:29 AM, Richard Gaskin wrote: > Devin Asay wrote: > >> The tricky thing about standalone apps on OS X is that, if you >> do not set the defaultFolder in the stack, the defaultFolder >> will be the folder where the .app bundle resides. > > For many years the engine used the folder where the executable resides > as the defaultFolder, which for Mac was inside the bundle - when did > this change? I do remember it changing, but I don't remember exactly when. It's actually really handy, because you can choose to have the .app bundle's parent folder be the defaultFolder, or you can set it explicitly and hide all of your resource files and stacks inside the .app bundle. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From DunbarX at aol.com Sun Nov 7 17:20:43 2010 From: DunbarX at aol.com (DunbarX at aol.com) Date: Sun, 7 Nov 2010 17:20:43 EST Subject: alerts Message-ID: <4b92e.43b4e791.3a08803b@aol.com> Not sure what you mean. The save dialog has its own life: It does its thing, and dismisses itself. If there is no user interaction, you can just hide the dialog after a certain amount of time has passed from when it appeared. Is that what you needed advice about? How to arrange that it dismiss itself after a certain interval? Craig Newman From DunbarX at aol.com Sun Nov 7 17:30:58 2010 From: DunbarX at aol.com (DunbarX at aol.com) Date: Sun, 7 Nov 2010 17:30:58 EST Subject: alerts Message-ID: <4bfba.5f40b152.3a0882a2@aol.com> I reread your post. I might still be confused by "without user interaction when the action is complete". Is "the action" just the showing of the dialog? But if all you want is to show some sort of dialog, and then dismiss it, just: showYourDialog wait 120--or whatever hideYourDialog Is your dialog a substack? A field? That is why I rolled it all into "showYourDialog" instead of, say "show field yourField". Ask again if I am way off base. From cszasz at mac.com Sun Nov 7 17:46:36 2010 From: cszasz at mac.com (charles61) Date: Sun, 7 Nov 2010 14:46:36 -0800 (PST) Subject: How do you program a save dialog when no changes in the file has been made? Message-ID: <1289169996955-3031279.post@n4.nabble.com> I have code in my save menu that brings up a dialog for saving a file with "Don't Save", "Cancel" and "Save". After the user saves the file the first time, the code will automatically insert the name of the file into the dialog above when the user wants to save it again or get ready to open a new file. Any time the user gets ready to close the file or open a new file the dialog above (Don't Save, Cancel and Save) appears. How do I code it so that when the user does NOT make a change to the file (preserving the save file) the dialog of Don't Save, Cancel and Save will not appear and the file will go ahead close or a new file dialog will appear? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-do-you-program-a-save-dialog-when-no-changes-in-the-file-has-been-made-tp3031279p3031279.html Sent from the Revolution - User mailing list archive at Nabble.com. From bvg at mac.com Sun Nov 7 18:10:56 2010 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Mon, 08 Nov 2010 00:10:56 +0100 Subject: How do you program a save dialog when no changes in the file has been made? In-Reply-To: <1289169996955-3031279.post@n4.nabble.com> References: <1289169996955-3031279.post@n4.nabble.com> Message-ID: you need to set a flag, for example, if this would be in a text editor, i'd set a "dirty" flag on rawkeydown of the main text entry field, and then when the stack (window) is closed i'd check for that flag: --in the field on rawkeydown theKey set the dirty of me to true pass rawkeydown end rawkeydown --in the stack on openstack set the dirty of field "text" to false end openstack on closestackrequest if the dirty of field "text" then -- do the save dialog here else pass closestackrequest end if end closestackrequest note: this is a simplified example, and does not cover all real life possibilities On 7 Nov 2010, at 23:46, charles61 wrote: > > I have code in my save menu that brings up a dialog for saving a file with > "Don't Save", "Cancel" and "Save". After the user saves the file the first > time, the code will automatically insert the name of the file into the > dialog above when the user wants to save it again or get ready to open a new > file. Any time the user gets ready to close the file or open a new file the > dialog above (Don't Save, Cancel and Save) appears. How do I code it so that > when the user does NOT make a change to the file (preserving the save file) > the dialog of Don't Save, Cancel and Save will not appear and the file will > go ahead close or a new file dialog will appear? -- official ChatRev page: http://bjoernke.com?target=chatrev Chat with other RunRev developers: go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" From shaosean at wehostmacs.com Sun Nov 7 18:41:49 2010 From: shaosean at wehostmacs.com (Shao Sean) Date: Sun, 7 Nov 2010 18:41:49 -0500 Subject: [req] old external sdk with the game of life code Message-ID: Thanks to Mark W (no, the other Mark W ;-) for sending it to me off- list.. From sarah.reichelt at gmail.com Sun Nov 7 18:47:59 2010 From: sarah.reichelt at gmail.com (Sarah Reichelt) Date: Mon, 8 Nov 2010 09:47:59 +1000 Subject: serial port problems In-Reply-To: <61D97BD2-70B8-4BFB-97FC-924B55EFD638@walkerenergysystems.com> References: <61D97BD2-70B8-4BFB-97FC-924B55EFD638@walkerenergysystems.com> Message-ID: On Mon, Nov 8, 2010 at 1:18 AM, Larry Walker wrote: > I am trying to read data from a "serial port" (using a USB-serial adaptor). > > I am on a MacBook Pro running 10.5.8, using LiveCode 4.5, and Prolific model > 2303 USB-serial adaptor. > > The following code does not work: > > on mouseUp > ? put "modem:" into usbSerial > ? put empty into field "Field" > > ? open driver usbSerial for text read > ? read from driver usbSerial for 5 chars > ? put it after field "field" > > ? close driver usbSerial > end mouseUp > > Setting a breakpoint on the "read from" shows that the "open" does not > appear to fail. Single-stepping through the read does not wait for any input > from the connected terminal, it returns immediately. "It" is empty > afterward. > > By reading for N chars I believe I am side-stepping any line -terminator > issues. > > I have confirmed that the USB-serial adaptor and the terminal can talk to > each other properly, using the command-line invocation: 'screen > /dev/tty.usbserial'. I have confirmed that the serialControlString matches > the terminal's settings. > > This fail whether I use "open file" or "open driver". > This fails whether I use "modem" or "printer" as the device. > > If I use /dev/tty.usbserial", the IDE hangs and I have to Force-Quit it. OK, I haven't tried any of this with LC 4.5, but if Mark says nothing has changed, then this should still be valid. Firstly, "modem:" is unlikely to work. Some Keyspans allow you to configure one of their connections to appear to be a modem, but unless your Mac actually has a modem, then this is not going to connect to anything. You MUST install drivers for your adapter. In your case, Prolific supply all the drivers at . Once you have the drivers installed, check the driverNames again and hopefully something will show up. Here is what I get on a Mac with a Keyspan (two port) and a generic FTDI adapter attached and Rev 4.0: usbserial-FTC8J5X3,/dev/tty.usbserial-FTC8J5X3,/dev/cu.usbserial-FTC8J5X3 KeySerial1,/dev/tty.KeySerial1,/dev/cu.KeySerial1 USA28X1a2P1.1,/dev/tty.USA28X1a2P1.1,/dev/cu.USA28X1a2P1.1 USA28X1a2P2.2,/dev/tty.USA28X1a2P2.2,/dev/cu.USA28X1a2P2.2 Bluetooth-PDA-Sync,/dev/tty.Bluetooth-PDA-Sync,/dev/cu.Bluetooth-PDA-Sync Each line of the driverNames contains 3 items. The one you need to use is the last one, starting with "/dev/cu.". To open the port to the first device on the list, I would use: global gPortName put "/dev/cu.usbserial-FTC8J5X3" into gPortName open driver gPortName for binary update if the result is not empty then answer error "Unable to open port" & cr & the result end if When finished, close the port using: close driver gPortName But you may need to adjust the serial port settings before you can actually send and receive data. This depends on the device you are communicating with, rather than the adapter, but my serial test stack allows easy access to the common settings, so you can test this. When writing, again it depends on the device. Some require a fixed number of bytes, some need a specific end-of-line. Use my test stack to work this out if you don't have the docs. Reading: the problem with reading a fixed number of bytes is that the bytes you don't read are still in the buffer and will mess up your next read. This may not matter if you are closing the port after each read, but I always prefer to use: read from driver gPortName until empty in 90 ticks This grabs everything it can inside the time limit. Then I can work out whether I have received multiple signals, or a partial signal and act accordingly, either processing the segments in a loop, or asking the serial port for more data. I hope this helps you get started, but if not, feel free to get back to me, either on or off list. Cheers, Sarah From jacque at hyperactivesw.com Sun Nov 7 19:52:40 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 07 Nov 2010 18:52:40 -0600 Subject: Paging Shao Sean In-Reply-To: References: <4CD6E64C.5040700@hyperactivesw.com> Message-ID: <4CD749D8.5000703@hyperactivesw.com> On 11/7/10 12:57 PM, Matthias Rebbe wrote: > Hi, > > i have here version 2.5.3. > > As i think it?s ok for Shao Sean, i?ve uploaded it to my dropbox > and publish the link to this list. > > http://dl.dropbox.com/u/11969084/LiveCode/smtpLibraries/libSmtp253.livecode > > Btw.: Did you have a look also at Sarah?s library? Her library > supports HTML and also attachments. Thank you very much, I hope Sean doesn't mind. This version is newer than one that someone just sent me privately. I appreciate it. Sean also wrote, so I'll get back to her and see if this is the latest. I do have Sarah's stack which is also excellent. Right now I'm just reviewing the options. I don't need enclosures or html, so probably either one will work. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From Mark_Smith at cpe.umanitoba.ca Mon Nov 8 01:02:02 2010 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sun, 7 Nov 2010 22:02:02 -0800 (PST) Subject: Refreshing a card In-Reply-To: References: <1288583523153-3021743.post@n4.nabble.com> Message-ID: <1289196122951-3031539.post@n4.nabble.com> Hi Monte, sorry if I missed replying. The problem was that on any specific card when I selected the "toggle date stamp" menu option, visibly nothing happened. In reality the property "showdatestamp" was changing from true to false on each menu selection based on the statement: set the showDateStamp of this stack to not the showDateStamp of this stack but the field itself (I think I've called it the datestampfield) did not appear or disappear as one might expect. Going from the current card (where the toggle was selected) to another card did show the desired result. ie. if you toggled the "showdatestamp" to off (or false in this case) then going to another card suppressed displaying the datestampfield. There is a line of code each time you open a card that stays if there is a fld "dateStampField" then put the dateStamp of this card into field "dateStampField" end if but what I was doing (which did not work) was trying to make it visible or not by doing something like this if there is a fld "dateStampField" then put the dateStamp of this card into field "dateStampField" else put " " into field "dateStampField" end if sort of trying to make it visible or not visible myself. I did not know about the "set the visible of..." command sequence. By adding that into the menu handler (if that is the correct term) so that it says case "Toggle Date Stamp" set the showDateStamp of this stack to not the showDateStamp of this stack -- new stuff added to make it visible/invisible if there is a fld "dateStampField" then set the visible of field "datestampfield" to the showdatestamp of this stack end if works fine. Its still a bit tricky to wrap my head around this. The "mechanics" of doing it have some pieces here, some pieces there, and its not entirely clear to me how they all work together. And I guess the critical portion to understand is that there is a large junk of this visibility thing which I'm NOT doing. Now its something that reunrev handles when you set the visibility property of the field through the menu. Put another way, previously I was trying to make it appear or not by putting the date in the field, or a space. Now, I don't worry about it. I put the date in the field (if there is one) and let the "visibility" property handle whether it gets displayed or not. If that makes any sense. Anyway, I appreciate your feedback. -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Refreshing-a-card-tp3021743p3031539.html Sent from the Revolution - User mailing list archive at Nabble.com. From Mark_Smith at cpe.umanitoba.ca Mon Nov 8 01:07:35 2010 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sun, 7 Nov 2010 22:07:35 -0800 (PST) Subject: alerts In-Reply-To: <4b92e.43b4e791.3a08803b@aol.com> References: <1289159626863-3031113.post@n4.nabble.com> <4b92e.43b4e791.3a08803b@aol.com> Message-ID: <1289196455696-3031542.post@n4.nabble.com> Hi Craig, I looked up dialogs and what not in the dictionary and user guide and all I found where ones driven by ask and answer (nothing like a 1 way conversation like tell....). In this case we don't need the user to dismiss the dialog, or answer anything, we just want to inform them that something is going on (a save is in process) and once it is finished the dialog should just go away. Wondering if runrev has a command for that, or if we are building it from pieces what is/are the critical pieces (ie. how would i know the save is complete for example). Thanks -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3031542.html Sent from the Revolution - User mailing list archive at Nabble.com. From Mark_Smith at cpe.umanitoba.ca Mon Nov 8 01:24:25 2010 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sun, 7 Nov 2010 22:24:25 -0800 (PST) Subject: alerts In-Reply-To: <4bfba.5f40b152.3a0882a2@aol.com> References: <1289159626863-3031113.post@n4.nabble.com> <4bfba.5f40b152.3a0882a2@aol.com> Message-ID: <1289197465253-3031553.post@n4.nabble.com> Hi Craig, Forget the part about not knowing when a save is done... I'm a little tired at the moment but did figure it out. I have code that says: on mouseUp save this stack end mouseUp Pretty simple. But there is no visible indication to the user in my stack that anything happened. So what I want to do is: on mouseUp -- show a dialog saying we're saving now... (sort of like what runrev itself does when you do cmd-S) save this stack -- dismiss the dialog end mouseUp BUT, the only dialogs I have found in runrev are ask or answer, both of which require the user to dismiss them. How do you do an information only dialog (or is it an alert?) that does not require user intervention? PS which reminds me, is there anyway to see how the IDE itself was implemented? (i'd go look at the code for the IDE's save command). I've heard or read that it is possible to do that but haven;t discovered how. Thanks again, -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3031553.html Sent from the Revolution - User mailing list archive at Nabble.com. From pepetoo at cox.net Mon Nov 8 02:06:49 2010 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Sun, 7 Nov 2010 23:06:49 -0800 Subject: alerts In-Reply-To: <1289196455696-3031542.post@n4.nabble.com> References: <1289159626863-3031113.post@n4.nabble.com> <4b92e.43b4e791.3a08803b@aol.com> <1289196455696-3031542.post@n4.nabble.com> Message-ID: <2B31475E-0596-406F-81DC-C1B39F33B77A@cox.net> Hi Mark, Why don't you create an image, paste it wherever you want into your stack; then when you want it to appear, just show it; when you're through with it, then hide it. I've done this a number of times. I usually create such images using MacDraft, but I'm sure you can do the same with various other drawing programs. You have complete control of what the image contains. Joe Wilkins On Nov 7, 2010, at 10:07 PM, Mark Smith wrote: > > Hi Craig, I looked up dialogs and what not in the dictionary and user guide > and all I found where ones driven by ask and answer (nothing like a 1 way > conversation like tell....). In this case we don't need the user to dismiss > the dialog, or answer anything, we just want to inform them that something > is going on (a save is in process) and once it is finished the dialog should > just go away. Wondering if runrev has a command for that, or if we are > building it from pieces what is/are the critical pieces (ie. how would i > know the save is complete for example). > > Thanks > > -- Mark From pmbrig at gmail.com Mon Nov 8 07:47:51 2010 From: pmbrig at gmail.com (Peter Brigham MD) Date: Mon, 8 Nov 2010 07:47:51 -0500 Subject: alerts In-Reply-To: <1289197465253-3031553.post@n4.nabble.com> References: <1289159626863-3031113.post@n4.nabble.com> <4bfba.5f40b152.3a0882a2@aol.com> <1289197465253-3031553.post@n4.nabble.com> Message-ID: Here's the way I do it. I show a small display stack, the idea is just that it's a billboard to tell the user that the saving is occurring. It closes after the save is done. on doSave modeless stack "savingAlert" wait 10 millisecs save stack "pdData" set the lastSaved of stack "pdData" to the seconds close stack "savingAlert" go stack "pdData" end doSave -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Nov 8, 2010, at 1:24 AM, Mark Smith wrote: > > Hi Craig, > > Forget the part about not knowing when a save is done... I'm a > little tired > at the moment but did figure it out. > > I have code that says: > > on mouseUp > save this stack > end mouseUp > > Pretty simple. But there is no visible indication to the user in my > stack > that anything happened. So what I want to do is: > > on mouseUp > -- show a dialog saying we're saving now... (sort of like what > runrev > itself does when you do cmd-S) > save this stack > -- dismiss the dialog > end mouseUp > > BUT, the only dialogs I have found in runrev are ask or answer, both > of > which require the user to dismiss them. How do you do an information > only > dialog (or is it an alert?) that does not require user intervention? > > PS which reminds me, is there anyway to see how the IDE itself was > implemented? (i'd go look at the code for the IDE's save command). > I've > heard or read that it is possible to do that but haven;t discovered > how. > > Thanks again, > > -- Mark > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3031553.html > Sent from the Revolution - User mailing list archive at Nabble.com. > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From gregory.lypny at videotron.ca Mon Nov 8 08:00:58 2010 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Mon, 08 Nov 2010 08:00:58 -0500 Subject: Removing Unwanted Characters From a Web Form Submission Message-ID: Hello everyone, I'm building an On-Rev site, and one of the pages will be a form with a field that is intended for the submission of about a page of comments. I want to gather the submissions and process them as an array in LiveCode with the contents of another form field as the key. It would look something like stringKey1 longStringOfComments1 stringKey2 longStringOfComments2 stringKey3 longStringOfComments3 and so on. I need to convert the comments to a string by removing line feeds and perhaps other characters that might cause problems. Is removing Return and Tab enough? replace return with space in longStringOfCommentsNum replace tab with space in longStringOfCommentsNum Because it is coming down from a server, I'm not sure whether I should refer to other linefeed characters and what those are. Regards, Gregory From bill at bluewatermaritime.com Mon Nov 8 09:51:11 2010 From: bill at bluewatermaritime.com (william humphrey) Date: Mon, 8 Nov 2010 10:51:11 -0400 Subject: alerts In-Reply-To: References: <1289159626863-3031113.post@n4.nabble.com> <4bfba.5f40b152.3a0882a2@aol.com> <1289197465253-3031553.post@n4.nabble.com> Message-ID: Except it should have a progress bar. On Mon, Nov 8, 2010 at 8:47 AM, Peter Brigham MD wrote: > Here's the way I do it. I show a small display stack, the idea is just that > it's a billboard to tell the user that the saving is occurring. It closes > after the save is done. > > on doSave > modeless stack "savingAlert" > wait 10 millisecs > save stack "pdData" > set the lastSaved of stack "pdData" to the seconds > close stack "savingAlert" > go stack "pdData" > end doSave > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > > > On Nov 8, 2010, at 1:24 AM, Mark Smith wrote: > > >> Hi Craig, >> >> Forget the part about not knowing when a save is done... I'm a little >> tired >> at the moment but did figure it out. >> >> I have code that says: >> >> on mouseUp >> save this stack >> end mouseUp >> >> Pretty simple. But there is no visible indication to the user in my stack >> that anything happened. So what I want to do is: >> >> on mouseUp >> -- show a dialog saying we're saving now... (sort of like what runrev >> itself does when you do cmd-S) >> save this stack >> -- dismiss the dialog >> end mouseUp >> >> BUT, the only dialogs I have found in runrev are ask or answer, both of >> which require the user to dismiss them. How do you do an information only >> dialog (or is it an alert?) that does not require user intervention? >> >> PS which reminds me, is there anyway to see how the IDE itself was >> implemented? (i'd go look at the code for the IDE's save command). I've >> heard or read that it is possible to do that but haven;t discovered how. >> >> Thanks again, >> >> -- Mark >> -- >> View this message in context: >> http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3031553.html >> Sent from the Revolution - User mailing list archive at Nabble.com. >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- http://www.bluewatermaritime.com From pmbrig at gmail.com Mon Nov 8 10:07:35 2010 From: pmbrig at gmail.com (Peter Brigham MD) Date: Mon, 8 Nov 2010 10:07:35 -0500 Subject: alerts In-Reply-To: References: <1289159626863-3031113.post@n4.nabble.com> <4bfba.5f40b152.3a0882a2@aol.com> <1289197465253-3031553.post@n4.nabble.com> Message-ID: In my case the save takes at most 2 seconds. Progress bar probably not needed. Also, it's impossible (AFAIK) to tell in advance how long a save will take, to the only progress bar possible for this situation would be a barber-pole type bar. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Nov 8, 2010, at 9:51 AM, william humphrey wrote: > Except it should have a progress bar. > > On Mon, Nov 8, 2010 at 8:47 AM, Peter Brigham MD > wrote: > >> Here's the way I do it. I show a small display stack, the idea is >> just that >> it's a billboard to tell the user that the saving is occurring. It >> closes >> after the save is done. >> >> on doSave >> modeless stack "savingAlert" >> wait 10 millisecs >> save stack "pdData" >> set the lastSaved of stack "pdData" to the seconds >> close stack "savingAlert" >> go stack "pdData" >> end doSave >> >> -- Peter >> >> Peter M. Brigham >> pmbrig at gmail.com >> http://home.comcast.net/~pmbrig >> >> >> >> >> On Nov 8, 2010, at 1:24 AM, Mark Smith wrote: >> >> >>> Hi Craig, >>> >>> Forget the part about not knowing when a save is done... I'm a >>> little >>> tired >>> at the moment but did figure it out. >>> >>> I have code that says: >>> >>> on mouseUp >>> save this stack >>> end mouseUp >>> >>> Pretty simple. But there is no visible indication to the user in >>> my stack >>> that anything happened. So what I want to do is: >>> >>> on mouseUp >>> -- show a dialog saying we're saving now... (sort of like what >>> runrev >>> itself does when you do cmd-S) >>> save this stack >>> -- dismiss the dialog >>> end mouseUp >>> >>> BUT, the only dialogs I have found in runrev are ask or answer, >>> both of >>> which require the user to dismiss them. How do you do an >>> information only >>> dialog (or is it an alert?) that does not require user intervention? >>> >>> PS which reminds me, is there anyway to see how the IDE itself was >>> implemented? (i'd go look at the code for the IDE's save command). >>> I've >>> heard or read that it is possible to do that but haven;t >>> discovered how. >>> >>> Thanks again, >>> >>> -- Mark >>> -- >>> View this message in context: >>> http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3031553.html >>> Sent from the Revolution - User mailing list archive at Nabble.com. >>> _______________________________________________ >>> use-revolution mailing list >>> use-revolution at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-revolution >>> >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > > > > -- > http://www.bluewatermaritime.com > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From cszasz at mac.com Mon Nov 8 10:13:43 2010 From: cszasz at mac.com (charles61) Date: Mon, 8 Nov 2010 07:13:43 -0800 (PST) Subject: How do you program a save dialog when no changes in the file has been made? In-Reply-To: References: <1289169996955-3031279.post@n4.nabble.com> Message-ID: <11233E7C-C5E6-4A78-8639-A1A882B67CC7@mac.com> Bj?rnke, Thanks! This gives me a starting point on how to do this. Charles Szasz cszasz at mac.com On Nov 7, 2010, at 6:11 PM, Bj?rnke von Gierke [via Runtime Revolution] wrote: > you need to set a flag, for example, if this would be in a text editor, i'd set a "dirty" flag on rawkeydown of the main text entry field, and then when the stack (window) is closed i'd check for that flag: > > --in the field > on rawkeydown theKey > set the dirty of me to true > pass rawkeydown > end rawkeydown > > --in the stack > on openstack > set the dirty of field "text" to false > end openstack > > on closestackrequest > if the dirty of field "text" then > -- do the save dialog here > else > pass closestackrequest > end if > end closestackrequest > > note: this is a simplified example, and does not cover all real life possibilities > > On 7 Nov 2010, at 23:46, charles61 wrote: > > > > > I have code in my save menu that brings up a dialog for saving a file with > > "Don't Save", "Cancel" and "Save". After the user saves the file the first > > time, the code will automatically insert the name of the file into the > > dialog above when the user wants to save it again or get ready to open a new > > file. Any time the user gets ready to close the file or open a new file the > > dialog above (Don't Save, Cancel and Save) appears. How do I code it so that > > when the user does NOT make a change to the file (preserving the save file) > > the dialog of Don't Save, Cancel and Save will not appear and the file will > > go ahead close or a new file dialog will appear? > > > > -- > > official ChatRev page: > http://bjoernke.com?target=chatrev > > Chat with other RunRev developers: > go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" > > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ http://runtime-revolution.278305.n4.nabble.com/How-do-you-program-a-save-dialog-when-no-changes-in-the-file-has-been-made-tp3031279p3031306.html > To unsubscribe from How do you program a save dialog when no changes in the file has been made?, click here. > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-do-you-program-a-save-dialog-when-no-changes-in-the-file-has-been-made-tp3031279p3032092.html Sent from the Revolution - User mailing list archive at Nabble.com. From MikeKerner at roadrunner.com Mon Nov 8 10:28:02 2010 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 8 Nov 2010 10:28:02 -0500 Subject: Hello World iOS Sample App In-Reply-To: <4CD6EBF9.3080202@hyperactivesw.com> References: <4CD6EBF9.3080202@hyperactivesw.com> Message-ID: J - Yes, the provisioning is in place. When I had a provisioning issue initially, LC wouldn't even build the app. B - No, I just created a button and typed the code. As you noted, it works fine in the simulator. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From devin_asay at byu.edu Mon Nov 8 10:34:47 2010 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 8 Nov 2010 08:34:47 -0700 Subject: Removing Unwanted Characters From a Web Form Submission In-Reply-To: References: Message-ID: On Nov 8, 2010, at 6:00 AM, Gregory Lypny wrote: > Hello everyone, > > I'm building an On-Rev site, and one of the pages will be a form with a field that is intended for the submission of about a page of comments. I want to gather the submissions and process them as an array in LiveCode with the contents of another form field as the key. It would look something like > > stringKey1 longStringOfComments1 > stringKey2 longStringOfComments2 > stringKey3 longStringOfComments3 > > and so on. I need to convert the comments to a string by removing line feeds and perhaps other characters that might cause problems. Is removing Return and Tab enough? > > replace return with space in longStringOfCommentsNum > replace tab with space in longStringOfCommentsNum > > Because it is coming down from a server, I'm not sure whether I should refer to other linefeed characters and what those are. Gregory, If you want to be sure of catching all line delimiting characters you could do this: replace (numToChar(13) & numToChar(10)) with space in tComments replace numToChar(13) with space in tComments replace numToChar(10) with space in tComments As far as which other characters you should remove, have you considered just using urlEncode/urlDecode? It's not specifically intended for this situation, but I would think urlEncode would safely convert any problematic characters, then you could urlDecode the string before you display it again. Regards, Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From MikeKerner at roadrunner.com Mon Nov 8 10:36:08 2010 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 8 Nov 2010 10:36:08 -0500 Subject: Hello World iOS Sample App In-Reply-To: References: <4CD6EBF9.3080202@hyperactivesw.com> Message-ID: Interesting tidbit - I also just tried this from scratch again. This time, when I copy the app from my desktop to the ipod using xcode, I get a message in xcode under the software version. It says "XCode cannot find the software image to install this version". The app installs, but it still quits immediately after launch. From pepetoo at cox.net Mon Nov 8 10:46:34 2010 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Mon, 8 Nov 2010 07:46:34 -0800 Subject: Beachball cursor Help Message-ID: Hi all, Instead of the b/w cursor "busy", I'd love to use the more colorful beachball. Anyone know how that is accomplished? TIA Joe Wilkins From m.schonewille at economy-x-talk.com Mon Nov 8 10:51:54 2010 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 8 Nov 2010 16:51:54 +0100 Subject: Beachball cursor Help In-Reply-To: References: Message-ID: <7234C3D5-8257-45B1-AA05-7F21D4935FAF@economy-x-talk.com> Joe, No, you don't, because people would start killing your application or pressing the power button on their computer until it restarts. What you really want is a decent interface with a circular progress indicator or a progress bar to indicate progress and the time needed to finish the task. Now, if you still want it, you can use a window shape and pictures of the beachball cursor. You can find those pictures on the internet using your favorite search machine. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Economy-x-Talk on Facebook now and get a free Color Converter license http://qurl.tk/gn (read the conditions) On 8 nov 2010, at 16:46, Joe Lewis Wilkins wrote: > Hi all, > > Instead of the b/w cursor "busy", I'd love to use the more colorful beachball. Anyone know how that is accomplished? > TIA > Joe Wilkins From pepetoo at cox.net Mon Nov 8 11:29:22 2010 From: pepetoo at cox.net (pepetoo at cox.net) Date: Mon, 8 Nov 2010 8:29:22 -0800 Subject: Beachball cursor Help In-Reply-To: <7234C3D5-8257-45B1-AA05-7F21D4935FAF@economy-x-talk.com> Message-ID: <20101108112922.3INUO.549374.imail@fed1rmwml4101> Mark, I understand what you're saying, but when my application starts up it takes maybe 5 to 10 seconds to load data the user has previously saved or default data. I like to have a "simple" indication that something is happening. I suppose I could use the wristwatch, but nothing as complicated as a progress bar. Thanks for the input. Joe Wilkins ---- Mark Schonewille wrote: > Joe, > > No, you don't, because people would start killing your application or pressing the power button on their computer until it restarts. > > What you really want is a decent interface with a circular progress indicator or a progress bar to indicate progress and the time needed to finish the task. > > Now, if you still want it, you can use a window shape and pictures of the beachball cursor. You can find those pictures on the internet using your favorite search machine. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Economy-x-Talk on Facebook now and get a free Color Converter license http://qurl.tk/gn (read the conditions) > > On 8 nov 2010, at 16:46, Joe Lewis Wilkins wrote: > > > Hi all, > > > > Instead of the b/w cursor "busy", I'd love to use the more colorful beachball. Anyone know how that is accomplished? > > TIA > > Joe Wilkins From ambassador at fourthworld.com Mon Nov 8 11:47:55 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 08 Nov 2010 08:47:55 -0800 Subject: Beachball cursor Help Message-ID: <4CD829BB.2010400@fourthworld.com> pepetoo wrote: > Mark, I understand what you're saying, but when my application > starts up it takes maybe 5 to 10 seconds to load data the user > has previously saved or default data. I like to have a "simple" > indication that something is happening. I suppose I could use > the wristwatch, but nothing as complicated as a progress bar. You could replace the images in the cursors stack with more colorful ones, but as Mark pointed out the problem is that the color beachball is used by the OS to indicate an unresponsive app, so using that will prompt some users to force-quit the app thinking it's having a problem. I would go for the progress bar. It takes only a few minutes to set up, and lets users know exactly where they are in that long wait. Here's a rough sketch of how you might use a progress bar from a routine which has to process a lengthy data file line by line - this assumes there's a scrollbar control named "progress" on the current stack: on LoadDocument pFile put url ("file:"& pFile) into tData SetupProgress the number of lines of tData put 0 into i repeat for each line tLine in tData add 1 to i ShowProgress i -- DoMyRecordLoadingStuffHere end repeat EndProgress end LoadDocument on SetupProgress pMax set the startValue of sb "progress" to 0 set the endValue of sb "progress" to pMax set the thumbpos of sb "progress" to 0 show db "progress" end SetupProgress on ShowProgress pVal -- only update every 100th time through loop, -- so that the OS overhead of rendering the -- progress bar doesn't slow things down; -- depending on the size of the data you may -- want to use another number instead of 100: if pVal mod 100 - 0 then set the thumbpos of sb "progress" to pVal wait 0 with messages -- allow redraw end if end ShowProgress on EndProgress set the thumbpos of sb "progress" to the endValue of sb "progress" hide sb "progress" end EndProgress -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From bobs at twft.com Mon Nov 8 11:52:08 2010 From: bobs at twft.com (Bob Sneidar) Date: Mon, 8 Nov 2010 08:52:08 -0800 Subject: Slow Performance - Update In-Reply-To: References: Message-ID: <77E77DA1-2BFF-4D17-AA97-3EE54F6316BD@twft.com> You might try opening a low level file and then updating that file with date time stamps for every major step you do in the code. That would give you some info about where the time is going. Bob On Nov 6, 2010, at 4:23 PM, Peter Haworth wrote: > I guess I was too hasty in accusing LiveCode 4.5 of performance issues! I rebuilt my application using Rev Studio 4.0 using the same code base and the performance issues are still there in the standalone. > > So the issue now is that the problem doesn't occur in the IDE, only in the standalone and I don't see any code that distinguishes between the two environments. I've isolated the problem down to some code that loads entries into option menus by querying my SQLite database. I've checked the timing of the SQLite query and nothing seems awry there. > > Does anyone have any tips on how to debug something like this in a standalone without using a large number of "answer information" statements or any tips on things that work fine in the IDE but perform slowly in a standalone? The only major code change I can think of is that I am using the long name of various controls and I used to use the unique ID, but once again why would that cause a problem in a standalone and not in the IDE. > > Any suggestions most welcome! > > Pete Haworth > > > > > > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From gregory.lypny at videotron.ca Mon Nov 8 11:54:03 2010 From: gregory.lypny at videotron.ca (Gregory Lypny) Date: Mon, 08 Nov 2010 11:54:03 -0500 Subject: Removing Unwanted Characters From a Web Form Submission In-Reply-To: <20101108155135.668412881FA@mail.runrev.com> References: <20101108155135.668412881FA@mail.runrev.com> Message-ID: Thank you Devin, Excellent! And I will mess around with urlDecode and urlEncode as you suggested. Gregory Gregory Lypny Associate Professor of Finance John Molson School of Business Concordia University Montreal, Canada On Mon, Nov 8, 2010, at 10:51 AM, use-revolution-request at lists.runrev.com wrote: > Gregory, > > If you want to be sure of catching all line delimiting characters you could do this: > > replace (numToChar(13) & numToChar(10)) with space in tComments > replace numToChar(13) with space in tComments > replace numToChar(10) with space in tComments > > As far as which other characters you should remove, have you considered just using urlEncode/urlDecode? It's not specifically intended for this situation, but I would think urlEncode would safely convert any problematic characters, then you could urlDecode the string before you display it again. > > Regards, > > Devin > > Devin Asay > Humanities Technology and Research Support Center > Brigham Young University From bobs at twft.com Mon Nov 8 12:03:42 2010 From: bobs at twft.com (Bob Sneidar) Date: Mon, 8 Nov 2010 09:03:42 -0800 Subject: serial port problems In-Reply-To: <4CD6EAE4.1050008@hyperactivesw.com> References: <61D97BD2-70B8-4BFB-97FC-924B55EFD638@walkerenergysystems.com> <4CD6EAE4.1050008@hyperactivesw.com> Message-ID: Okay, this may be unrelated, but I have a setup that was using Parallels 4 under Snow Leopard. The guest OS was Windows Server 2003, and the software in Windows was MusicMaster, which (and here's the important thing) was using a USB key to authenticate a certain number of users accessing Server 2003 in a terminal session. Why is this relevant you ask? Because everything was working like a peach until one day after doing some system updates, the usb key was not connected to the virtual machine. Parallels thought it was, but there was no communication. Unplugging and replugging the USB key re-registered the USB device and it worked for about a day, and then disconnected again. After having them ship me out a new USB key to no avail, I began to think that maybe it was an incompatibility with the current OS and Parallels 4, but then why did it work for months and suddenly start having fits?? Well I upgraded to Parallels 6 and lo and behold, the problem went away and has not returned. I think that Apple recently did some kind of kernel change in the way USB devices are registered and maintained, probably as a security update. I would go back and check it in 4.0 (if you haven't already) to see if it actually DOES still work, and you aren't just "remembering" that it did. Just a shot in the dark. Bob On Nov 7, 2010, at 10:07 AM, J. Landman Gay wrote: > On 11/7/10 9:18 AM, Larry Walker wrote: >> I am trying to read data from a "serial port" (using a USB-serial adaptor). > > Glad to see this here Larry. Just to fill everyone in, Larry and I have been going around with this issue for about a week in the tech queue without success (and I really appreciate his patience, he's been incredibly reasonable about it.) I asked Mark Waddingham about the problem and he said that basically the serial commands haven't been changed since their initial implementation back in MetaCard, and that any device that represents itself as a serial device should work with "open file" (but not necessarily with the device name returned by the drivernames. Use "modem:" or "printer:" instead.) He also said that they have never been reworked to support OS X; they were originally written for OS 9 and have always continued to work in OS X, so the code hasn't been examined. > > Eric's comment that it works in 4.0 and not in 4.5 is something I don't think the team knows about. Since serial access hasn't changed in the engine, there must be some other change that peripherally affects serial port access. If that's so, then a bug report in the QCC would be in order. > > I hope either Sarah or Phil will see this, since they are the serial/USB experts here. Maybe they have some comments to add or a workaround they've discovered. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From devin_asay at byu.edu Mon Nov 8 12:05:23 2010 From: devin_asay at byu.edu (Devin Asay) Date: Mon, 8 Nov 2010 10:05:23 -0700 Subject: Beachball cursor Help In-Reply-To: References: Message-ID: Joe, I'd use a spinning daisy cursor. See http://ajaxload.info/ for a slick utility that will generate a custom animated gif for you. Devin On Nov 8, 2010, at 8:46 AM, Joe Lewis Wilkins wrote: > Hi all, > > Instead of the b/w cursor "busy", I'd love to use the more colorful beachball. Anyone know how that is accomplished? > TIA > Joe Wilkins > > > > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution Devin Asay Humanities Technology and Research Support Center Brigham Young University From dfepstein at comcast.net Mon Nov 8 12:19:50 2010 From: dfepstein at comcast.net (dfepstein at comcast.net) Date: Mon, 8 Nov 2010 17:19:50 +0000 (UTC) Subject: Pasting text to and from other programs In-Reply-To: <20101107180005.6B253288184@mail.runrev.com> Message-ID: <680808141.1019256.1289236790860.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> Does someone understand the various hitches that arise when copying styled text between Rev and other programs? On a Windows XP PC, I copy some text from MS Outlook. When I paste it into a Rev field, the apostrophes are missing. If I copy from MS Outlook, paste into Notepad, then copy from Notepad and paste into a field, the aprostrophes are preserved. >From a Rev field, I copy some text. When I paste it into an MS Word document, the tab characters become underline characters. I should say that my copy and paste routines in Rev are scripted using the "htmlText", setting and getting the clipBoardData["html"]. Many thanks for any diagnoses or remedies. David Epstein From bobs at twft.com Mon Nov 8 12:43:20 2010 From: bobs at twft.com (Bob Sneidar) Date: Mon, 8 Nov 2010 09:43:20 -0800 Subject: Pasting text to and from other programs In-Reply-To: <680808141.1019256.1289236790860.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> References: <680808141.1019256.1289236790860.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> Message-ID: Other threads have addressed this, but Microsoft has it's own clipboard converter built in. I don't think that it has anything to do with LiveCode. I am not sure if there is a way to tell Office to copy and paste text like any other application. There may be a hot key like option you can use when copying that will prevent any conversion from taking place. Just a shot in the dark. Bob On Nov 8, 2010, at 9:19 AM, dfepstein at comcast.net wrote: > > > Does someone understand the various hitches that arise when copying styled text between Rev and other programs? > > > > On a Windows XP PC, I copy some text from MS Outlook. When I paste it into a Rev field, the apostrophes are missing. > > If I copy from MS Outlook, paste into Notepad, then copy from Notepad and paste into a field, the aprostrophes are preserved. > > > >> From a Rev field, I copy some text. When I paste it into an MS Word document, the tab characters become underline characters. > > > > I should say that my copy and paste routines in Rev are scripted using the "htmlText", setting and getting the clipBoardData["html"]. > > > > Many thanks for any diagnoses or remedies. > > > > David Epstein > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From richmondmathewson at gmail.com Mon Nov 8 13:35:54 2010 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 08 Nov 2010 20:35:54 +0200 Subject: [OT] legality of DVD backup Message-ID: <4CD8430A.2060906@gmail.com> My EFL school is slowly migrating from a mixed Mac and Ubuntu school to being a 100% Ubuntu school. However, for some reason which escapes me DVD playback on my Ubuntu boxes is, at best, "lumpy". Therefore I am proposing to make ISO images of all the DVDs that I own and use on a regular basis onto the hard disk of my main content delivery machine; I will always have the physical DVDs present in the classroom. This will allow my Ubuntu box to play my DVDs normally. Can anyone advise me as to the legality of this action? Morally I have no qualms whatever; without this process I would have to, either, purchase a TV and a DVD player, or, a Mac. sincerely, Richmond. From stephenREVOLUTION2 at barncard.com Mon Nov 8 13:40:33 2010 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Mon, 8 Nov 2010 10:40:33 -0800 Subject: [OT] legality of DVD backup In-Reply-To: <4CD8430A.2060906@gmail.com> References: <4CD8430A.2060906@gmail.com> Message-ID: What you described is 'fair use' in the US. It means 'backup copy for personal use'. On 8 November 2010 10:35, Richmond wrote: > My EFL school is slowly migrating from a mixed Mac and Ubuntu school to > being > a 100% Ubuntu school. However, for some reason which escapes me DVD > playback > on my Ubuntu boxes is, at best, "lumpy". > > Therefore I am proposing to make ISO images of all the DVDs that I own and > use on > a regular basis onto the hard disk of my main content delivery machine; I > will always > have the physical DVDs present in the classroom. > > This will allow my Ubuntu box to play my DVDs normally. > > Can anyone advise me as to the legality of this action? > > Morally I have no qualms whatever; without this process I would have to, > either, purchase a TV and a DVD player, or, a Mac. > > sincerely, Richmond. > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- Stephen Barncard San Francisco Ca. USA more about sqb From msiskin at andrew.cmu.edu Mon Nov 8 13:58:23 2010 From: msiskin at andrew.cmu.edu (Marc Siskin) Date: Mon, 8 Nov 2010 13:58:23 -0500 Subject: [OT] legality of DVD backup In-Reply-To: <4CD8430A.2060906@gmail.com> References: <4CD8430A.2060906@gmail.com> Message-ID: <8D0475EA-9D7F-4305-BB91-37CD5262694C@andrew.cmu.edu> Richmond, One "legal" factor you want to keep in mind is the number of concurrent playbacks per dvd. The backup argument is only good as long as you have a DVD for each concurrent viewing of the movie. E.g. 3 concurrent viewings = 3 DVDs. And all of this is in the realm of non-tested law. I would get your school's attorney's approval (they should be willing to defend you if you are asked to cease and desist). Marc Siskin On Nov 8, 2010, at 1:35 PM, Richmond wrote: > My EFL school is slowly migrating from a mixed Mac and Ubuntu school to being > a 100% Ubuntu school. However, for some reason which escapes me DVD playback > on my Ubuntu boxes is, at best, "lumpy". > > Therefore I am proposing to make ISO images of all the DVDs that I own and use on > a regular basis onto the hard disk of my main content delivery machine; I will always > have the physical DVDs present in the classroom. > > This will allow my Ubuntu box to play my DVDs normally. > > Can anyone advise me as to the legality of this action? > > Morally I have no qualms whatever; without this process I would have to, > either, purchase a TV and a DVD player, or, a Mac. > > sincerely, Richmond. > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > --------------- Marc Siskin Manager, Modern Language Resource Center Carnegie Mellon University msiskin at andrew.cmu.edu From david at vaudevillecourt.tv Mon Nov 8 13:58:23 2010 From: david at vaudevillecourt.tv (David Bovill) Date: Mon, 8 Nov 2010 18:58:23 +0000 Subject: [OT] legality of DVD backup In-Reply-To: References: <4CD8430A.2060906@gmail.com> Message-ID: In most countries this is what you would call legally defensible under faire use or the equivalent in your jurisdiction. There is no case I know of where someone has been prosecuted for copyright infringement by making a backup copy for personal use, given that they own a legal copy in another medium. However there is nothing to stop a copyright holder taking you to court, in which case it would be down to you to make a faire use or equivalent defence - and you could then have the privilege of being (as far as I know), the first person to loose such a case :) In the real world, you are extremely unlikely to be taken to court over this issue, as the industry has plenty to do taking clear cut cases of downloading pirated DVD's to court, and the last thing they want is to loose a faire use case and so set a precedent. A related issue is the obtaining and use of the software to actually do the decryption (which is why it can be hard to get a copy from a mainstream site - as Macrovision does its best to take action against distributers). A good account here is taken from the wikipedia article : Under United States' Federal law, making a backup copy of a DVD-Videoor an audio > CD by a > consumer is legal under fair use protection. However, this provision of United States law conflicts with the Digital > Millennium Copyright Actprohibition of so-called "circumvention measures" of copy > protections . > > In the noted "321" case, Federal District Judge Susan Illston of the Northern > District of California > ,[5] ruled that > the backup copies made with software such as DVD Decrypter are in fact legal > but that distribution of the software used to make them is illegal. As of > the date of this revision, neither the US Supreme Courtnor the US > Congress has taken definitive > action on the matter. > As ever - non of the above is legal advice, and I am not a lawyer. On 8 November 2010 18:40, stephen barncard wrote: > What you described is 'fair use' in the US. It means 'backup copy for > personal use'. > From richmondmathewson at gmail.com Mon Nov 8 14:06:52 2010 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 08 Nov 2010 21:06:52 +0200 Subject: [OT] legality of DVD backup In-Reply-To: <8D0475EA-9D7F-4305-BB91-37CD5262694C@andrew.cmu.edu> References: <4CD8430A.2060906@gmail.com> <8D0475EA-9D7F-4305-BB91-37CD5262694C@andrew.cmu.edu> Message-ID: <4CD84A4C.5050003@gmail.com> On 11/08/2010 08:58 PM, Marc Siskin wrote: > Richmond, > > One "legal" factor you want to keep in mind is the number of concurrent playbacks per dvd. The backup argument is only good as long as you have a DVD for each concurrent viewing of the movie. E.g. 3 concurrent viewings = 3 DVDs. > > And all of this is in the realm of non-tested law. I would get your school's attorney's approval (they should be willing to defend you if you are asked to cease and desist). My "school's attorney"; ha, ha, ha; as 95% of lawyers in Bulgaria use pirated copies of Windows and Microsoft Office on their PCs the last thing I am likely to do is consult any of them . . . :) As I, and I alone, will be showing these DVDs, and I and I alone own physical copies of the DVDs I would, in any other, "less bent" country, not pay a lawyer to get his/her sweaty, vampirical paws into my money. As my 'school' is in fact, registered as a "language centre"; i.e. because it does NOT have separate toilets for boys and girls it cannot be regsitered as a school; which, paradoxically, means that I operate under far less restrictions than a language school qua language school, my "showing" DVDs is legally viewed as the same sort of thing as running a DVD for one of my kids and his/her chums in my sitting-room. I am not really worried about large-scale legal ramifications; just about the legality of having a copy on a hard disk (read Ubuntu + k9copy). > Marc Siskin > > On Nov 8, 2010, at 1:35 PM, Richmond wrote: > >> My EFL school is slowly migrating from a mixed Mac and Ubuntu school to being >> a 100% Ubuntu school. However, for some reason which escapes me DVD playback >> on my Ubuntu boxes is, at best, "lumpy". >> >> Therefore I am proposing to make ISO images of all the DVDs that I own and use on >> a regular basis onto the hard disk of my main content delivery machine; I will always >> have the physical DVDs present in the classroom. >> >> This will allow my Ubuntu box to play my DVDs normally. >> >> Can anyone advise me as to the legality of this action? >> >> Morally I have no qualms whatever; without this process I would have to, >> either, purchase a TV and a DVD player, or, a Mac. >> >> sincerely, Richmond. >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > --------------- > Marc Siskin > Manager, Modern Language Resource Center > Carnegie Mellon University > msiskin at andrew.cmu.edu > > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From richmondmathewson at gmail.com Mon Nov 8 14:16:08 2010 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 08 Nov 2010 21:16:08 +0200 Subject: [OT] legality of DVD backup In-Reply-To: References: <4CD8430A.2060906@gmail.com> Message-ID: <4CD84C78.30103@gmail.com> On 11/08/2010 08:58 PM, David Bovill wrote: > In most countries this is what you would call legally defensible under faire > use or the equivalent in your jurisdiction. There is no case I know of where > someone has been prosecuted for copyright infringement by making a backup > copy for personal use, given that they own a legal copy in another medium. > However there is nothing to stop a copyright holder taking you to court, in > which case it would be down to you to make a faire use or equivalent defence > - and you could then have the privilege of being (as far as I know), the > first person to loose such a case :) > > In the real world, you are extremely unlikely to be taken to court over this > issue, as the industry has plenty to do taking clear cut cases of > downloading pirated DVD's to court, and the last thing they want is to loose > a faire use case and so set a precedent. > > A related issue is the obtaining and use of the software to actually do the > decryption (which is why it can be hard to get a copy from a mainstream site > - as Macrovision does its best to take action against distributers). A good > account here is taken from the wikipedia > article > : > > Under United States' Federal law, making a backup copy of a > DVD-Videoor an audio Oddly enough, I JUST opened a Terminal emulator in Ubuntu 10.10 and typed: sudo apt-get install k9copy not all that hidden . . . :) >> CD by a >> consumer is legal under fair useprotection. However, this provision of United States law conflicts with the Digital >> Millennium Copyright Actprohibition of so-called "circumvention measures" of copy >> protections. >> >> In the noted "321" case, Federal District Judge Susan Illston of the Northern >> District of California >> ,[5] ruled that >> the backup copies made with software such as DVD Decrypter are in fact legal >> but that distribution of the software used to make them is illegal. As of >> the date of this revision, neither the US Supreme Courtnor the US >> Congress has taken definitive >> action on the matter. >> > As ever - non of the above is legal advice, and I am not a lawyer. Well; have a book in my shelves called "The MicroBiblion" published in London in 1625 when copyright had not even been heard of; now, from time to time, I have found it apposite to copy fairly large chunks of this book elsewhere (admittedly not for profit); as I own a copy of the MicroBiblion I cannot see any real problems there: the author got his money, as did the printer and the publisher. Why there should be any difference between that and my copying parts of a DVD elsewhere for my convenience (and NOT for profit) I just DO NOT KNOW. > On 8 November 2010 18:40, stephen barncard > wrote: > >> What you described is 'fair use' in the US. It means 'backup copy for >> personal use'. >> > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From david at vaudevillecourt.tv Mon Nov 8 14:31:51 2010 From: david at vaudevillecourt.tv (David Bovill) Date: Mon, 8 Nov 2010 19:31:51 +0000 Subject: [OT] legality of DVD backup In-Reply-To: <8D0475EA-9D7F-4305-BB91-37CD5262694C@andrew.cmu.edu> References: <4CD8430A.2060906@gmail.com> <8D0475EA-9D7F-4305-BB91-37CD5262694C@andrew.cmu.edu> Message-ID: Here is a good link for Faire Use - http://centerforsocialmedia.org/fair-use Oh - and another probably more important point which has nothing to do with the copying - is the issue of "public broadcast", so while you can watch a DVD with friends at home, in a school is another matter - which is why a lot of schools will have licences explicitly taken out for this. For some reason I've never quite understood copyright lawyers seem to have it in for screenings in "prisons" for instance. Again the faire use issue comes in - if it is entertainment then there is no faire use defence, but if it is used for critical comment and analysis in an education setting, then there is more of a case Here is an example of the sort of generally accepted exemption within schools and colleges in the USA: - taken from this site : *Face-to-face Exemption* > Many of you may know that there is an exception to the public performance > fees for college and universities. That exception is only in the case of > face-to-face classroom instruction by a faculty member. The faculty member > may show the film/movie outside the normal class period (at night for > example), however, it is only for those students who are registered for the > class. The movie must also be shown in spaces that are designated for > instruction; therefore library screening rooms, residence hall or student > union lounges, cafeterias do not qualify. A faculty member cannot show it > for his/her class and then open it up to the rest of the campus. In order to > invite others, the public viewing rights must be purchased. Acceptable > attendance for films in which the copyright is not purchased only include > students registered for the class, the instructor and guest lecturer(s). > And for EU - this page is useful. On 8 November 2010 18:58, Marc Siskin wrote: > Richmond, > > One "legal" factor you want to keep in mind is the number of concurrent > playbacks per dvd. The backup argument is only good as long as you have a > DVD for each concurrent viewing of the movie. E.g. 3 concurrent viewings = > 3 DVDs. > > And all of this is in the realm of non-tested law. I would get your > school's attorney's approval (they should be willing to defend you if you > are asked to cease and desist). > On a related note - if you want to really break the law - all you need to do is sing "happy Birthday to you" in school or any public space - http://www.snopes.com/music/songs/birthday.asp From runrev260805 at m-r-d.de Mon Nov 8 14:40:48 2010 From: runrev260805 at m-r-d.de (Matthias Rebbe) Date: Mon, 8 Nov 2010 20:40:48 +0100 Subject: OT: Some help with Regular Expressions In-Reply-To: References: <26711AD5-7848-49FE-8B1D-31B44DE409D9@m-r-d.de> <84CC5E92-F360-4F6E-A5C0-7919FA803397@sweattechnologies.com> Message-ID: Hi, first please excuse me for replying so late. Thanks to all who responded. I am using now (?i)^([a-z0-9]{2})\.([a-z0-9]{5})\.([a-z0-9]{3})$ for checking the format, because each char can be alpha or number. And it shows me again, i should have read "Mastering regular expressions" from J.Friedl. I own this book , but did not have the time yet to read it. (I know i own it, but i do not know where it is at the moment) ;-). Thanks again, Matthias Am 04.11.2010 um 22:44 schrieb Bob Sneidar: > Ever since those aliens landed... err... crashed that's right they crashed... life has gotten way too dang complicated! > > Bob > > > On Nov 4, 2010, at 2:40 PM, Monte Goulding wrote: > >> Just a small correction to your regular expression Jeff to make it case insensitive as it ignores the caseInsensitive global property and also assuming that Mathias doesn't want to match chunks of longer strings I've added the ^ & $: >> >> (?i)^([a-z0-9]{2})\.([a-z0-9]{5})\.([a-z0-9]{3})$ >> >> Cheers >> >> Monte >> >> On 05/11/2010, at 6:57 AM, Jeff Massung wrote: >> >>> It would be good to know where the numbers and letters are if that's >>> possible. But this will get you going: >>> >>> local tXX >>> local tYYYYY >>> local tZZZ >>> >>> ## just a simple unit test >>> get "A1.B35AZ.001" >>> >>> ## do the match >>> if matchText(it, "([a-z0-9]{2})\.([a-z0-9]{5})\.([a-z0-9]{3})", tXX, tYYYYY, >>> tZZZ) is true then >>> put tXX & cr & tYYYYY & tZZZ >>> end if >>> >>> If you need it to be more specialized (eg, the format is really: >>> A#.A##AA.### where A=alpha and #=number) then let me know and I can get a >>> better matching pattern for you. >>> >>> Jeff M. >>> >>> On Thu, Nov 4, 2010 at 1:48 PM, Matthias Rebbe wrote: >>> >>>> Dear all, >>>> >>>> i have to check for an value in the format XX.YYYYY.ZZZ (e.g. >>>> A1.B35AZ.001 or a1.b35az.001) >>>> I have to check if the value is in the right format. I know i can do that >>>> with matchtext and a regular expression, but >>>> i do not know enough to get the regular expression to work. >>>> >>>> Is there anyone who might be able to help? >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From david at vaudevillecourt.tv Mon Nov 8 14:41:09 2010 From: david at vaudevillecourt.tv (David Bovill) Date: Mon, 8 Nov 2010 19:41:09 +0000 Subject: [OT] legality of DVD backup In-Reply-To: <4CD84C78.30103@gmail.com> References: <4CD8430A.2060906@gmail.com> <4CD84C78.30103@gmail.com> Message-ID: Even funnier is that it is not legal to sing "The Internationale" in the streets of France - so to utter the words: Arise, ye workers from your slumber, > Arise, ye prisoners of want. > For reason in revolt now thunders, > and at last ends the age of cant! > Away with all your superstitions, > Servile masses, arise, arise! > We'll change henceforth the old tradition, > And spurn the dust to win the prize! > So comrades, come rally, > And the last fight let us face. > The Internationale, > Unites the human race. > So comrades, come rally, > And the last fight let us face. > The Internationale, > Unites the human race. > in public, without some good critical debate afterwards could land you with a 300,000 euro fine. As far as I know this has nothing to do with the quality of your singing. From dbrooks at unlserve.unl.edu Mon Nov 8 14:54:39 2010 From: dbrooks at unlserve.unl.edu (David Brooks) Date: Mon, 8 Nov 2010 13:54:39 -0600 Subject: Newbie question re fields --> javascript Message-ID: <63F5C90E-C83D-48BB-94C3-15EAAF3D1F7D@unlserve.unl.edu> We are creating standalones and launching them in browsers. We have issues with taking in all of a field. Any help appreciated. Works: on mouseUp put "12131232" into myScore do "alert ('" & myScore & "');" in browser end mouseUp Does NOT work: on mouseUp put fld "ListOfFiles" into myScore do "alert ('" & myScore & "');" in browser end mouseUp Works: on mouseUp put line 1 of fld "ListOfFiles" into myScore do "alert ('" & myScore & "');" in browser end mouseUp WE seem to be able to put in just one line. Thanks in advance for your help. From richmondmathewson at gmail.com Mon Nov 8 15:00:13 2010 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 08 Nov 2010 22:00:13 +0200 Subject: [OT] legality of DVD backup In-Reply-To: References: <4CD8430A.2060906@gmail.com> <4CD84C78.30103@gmail.com> Message-ID: <4CD856CD.1070703@gmail.com> On 11/08/2010 09:41 PM, David Bovill wrote: > Even funnier is that it is not legal to sing "The Internationale" in the > streets of France - so to utter the words: > > Arise, ye workers from your slumber, >> Arise, ye prisoners of want. >> For reason in revolt now thunders, >> and at last ends the age of cant! >> Away with all your superstitions, >> Servile masses, arise, arise! >> We'll change henceforth the old tradition, >> And spurn the dust to win the prize! >> So comrades, come rally, >> And the last fight let us face. >> The Internationale, >> Unites the human race. >> So comrades, come rally, >> And the last fight let us face. >> The Internationale, >> Unites the human race. >> I have been known to break the law in my time; but I draw the line at breaking the law singing a Communist song; or, put it another way; it's an awful pity they didn't shoot Che before the creation of the iconic head. Sorry. List Mum; but I did not start it (this time). > in public, without some good critical debate afterwards could land you with > a 300,000 euro fine. As far as I know this has nothing to do with the > quality of your singing. > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From dbrooks at unlserve.unl.edu Mon Nov 8 15:04:11 2010 From: dbrooks at unlserve.unl.edu (David Brooks) Date: Mon, 8 Nov 2010 14:04:11 -0600 Subject: Too Soon Message-ID: <39337826-77B1-4AE2-9D2F-B8D8F62137E3@unlserve.unl.edu> Asked too soon. replace return with "\r\n" in myscore yields a good result. Best, Dave B. We are creating standalones and launching them in browsers. We have issues with taking in all of a field. Any help appreciated. Works: on mouseUp put "12131232" into myScore do "alert ('" & myScore & "');" in browser end mouseUp Does NOT work: on mouseUp put fld "ListOfFiles" into myScore do "alert ('" & myScore & "');" in browser end mouseUp Works: on mouseUp put line 1 of fld "ListOfFiles" into myScore do "alert ('" & myScore & "');" in browser end mouseUp WE seem to be able to put in just one line. Thanks in advance for your help. From cszasz at mac.com Mon Nov 8 15:57:21 2010 From: cszasz at mac.com (charles61) Date: Mon, 8 Nov 2010 12:57:21 -0800 (PST) Subject: Behavior Problem Message-ID: <1289249841671-3032636.post@n4.nabble.com> I have two sets of checkboxes, which are grouped ("marked" ad "major") I have the following script in a button: on mouseUp switch case (hilitedButton of group "marked" is not 0 and hilitedButton of group "major" is not 0 ) set the hilite of button "RBE" to true set the hilite of button "RBN" to false show field "Elig" hide field "NotElig" break case (hilitedButton of group "marked" is not 0 and hilitedButton of group "major" is 0) hide field "Elig" show field "NotElig" break case (hilitedButton of group "marked" is 0 and the hilitedButton of group "major" is 0) hide field "Elig" show field "NotElig" break end switch In the property inspector for both groups, I referenced the button: button ID number stack "test" The script only works when I click on the button. Why doesn't the Behavior of the button handle this automatically? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Behavior-Problem-tp3032636p3032636.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Mon Nov 8 16:01:36 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 08 Nov 2010 13:01:36 -0800 Subject: Beachball cursor Help Message-ID: <4CD86530.1020903@fourthworld.com> Jim Hurley kindly noted a misspelling in one of my example handlers. This: on SetupProgress pMax set the startValue of sb "progress" to 0 set the endValue of sb "progress" to pMax set the thumbpos of sb "progress" to 0 show db "progress" -- typo: this is a scrollbar, not a database :) end SetupProgress ...should be: on SetupProgress pMax set the startValue of sb "progress" to 0 set the endValue of sb "progress" to pMax set the thumbpos of sb "progress" to 0 show sb "progress" -- fixed end SetupProgress Thanks Jim! -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From bobs at twft.com Mon Nov 8 16:50:59 2010 From: bobs at twft.com (Bob Sneidar) Date: Mon, 8 Nov 2010 13:50:59 -0800 Subject: Too Soon In-Reply-To: <39337826-77B1-4AE2-9D2F-B8D8F62137E3@unlserve.unl.edu> References: <39337826-77B1-4AE2-9D2F-B8D8F62137E3@unlserve.unl.edu> Message-ID: I wonder if Urlencode would have helped here? Bob On Nov 8, 2010, at 12:04 PM, David Brooks wrote: > Asked too soon. replace return with "\r\n" in myscore > > yields a good result. > > Best, > > Dave B. > > > > > We are creating standalones and launching them in browsers. We have issues with taking in all of a field. Any help appreciated. > > Works: > on mouseUp > put "12131232" into myScore > do "alert ('" & myScore & "');" in browser > end mouseUp > > > > Does NOT work: > on mouseUp > put fld "ListOfFiles" into myScore > do "alert ('" & myScore & "');" in browser > end mouseUp > > > Works: > on mouseUp > put line 1 of fld "ListOfFiles" into myScore > do "alert ('" & myScore & "');" in browser > end mouseUp > > WE seem to be able to put in just one line. > > Thanks in advance for your help. > > > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From tsj at unimelb.edu.au Mon Nov 8 15:41:54 2010 From: tsj at unimelb.edu.au (Terry Judd) Date: Tue, 09 Nov 2010 07:41:54 +1100 Subject: Saving/importing custom controls to/from file Message-ID: On a whim I tried copying a group and saving the contents of the clipboard (clipboardData[?objects?]) to file. I then cleared the clipboard and set the clipboardData to the file and was able to paste the ?reconstructed? object back into my stack. I have to admit that I was surprised that this worked as I always just expected that the clipboard data would just contain some pointers to the copied objects rather than a usable copy of the control. The same also method appears to work for entire cards. There may? be some benefits in using this approach compared to saving controls in ?library? stacks. Is anybody already doing this, and if so what are their experiences (pros and cons)? Terry... Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From katir at hindu.org Mon Nov 8 16:57:59 2010 From: katir at hindu.org (Web Admin Himalayan Academy) Date: Mon, 08 Nov 2010 11:57:59 -1000 Subject: Newbie question re fields --> javascript In-Reply-To: <63F5C90E-C83D-48BB-94C3-15EAAF3D1F7D@unlserve.unl.edu> References: <63F5C90E-C83D-48BB-94C3-15EAAF3D1F7D@unlserve.unl.edu> Message-ID: <4CD87267.80609@hindu.org> On 11/8/10 9:54 AM, David Brooks wrote: > do "alert ('"& myScore& "');" in browser Hmm.. I'm falling behind ... where is this documented? From monte at sweattechnologies.com Mon Nov 8 17:08:07 2010 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 9 Nov 2010 09:08:07 +1100 Subject: Refreshing a card In-Reply-To: <1289196122951-3031539.post@n4.nabble.com> References: <1288583523153-3021743.post@n4.nabble.com> <1289196122951-3031539.post@n4.nabble.com> Message-ID: <5ED68E87-86A1-47C7-AAF2-8429D733C23D@sweattechnologies.com> > > > case "Toggle Date Stamp" > set the showDateStamp of this stack to not the showDateStamp of > this stack > -- new stuff added to make it visible/invisible > if there is a fld "dateStampField" then > set the visible of field "datestampfield" to the showdatestamp > of this stack > end if > > works fine. Its still a bit tricky to wrap my head around this. I think this is the simplest solution to your problem. Alternatively you could put the same code in a setprop handler in your stack script. Something like: setprop showdatestamp pBoolean if there is a fld "dateStampField" then set the visible of field "datestampfield" to pBoolean end if pass showdatestamp end showdatestamp or another option would be to put this field into a background that's placed on all the cards and then you probably wouldn't need the custom property at all because showing and hiding the field would happen on all cards at the same time. > Put another way, previously I was trying to make it appear or not by putting > the date in the field, or a space. Now, I don't worry about it. I put the > date in the field (if there is one) and let the "visibility" property handle > whether it gets displayed or not. > > If that makes any sense. Anyway, I appreciate your feedback. Either way will work although using the visible property makes more sense to me. If you want to go back to your old way just change your menu code to what you have in your preopencard handler. If not you will need to change your preopencard handler to show or hide the field otherwise you will end up with a date in the field but it's not visible. Cheers Monte From monte at sweattechnologies.com Mon Nov 8 17:12:39 2010 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 9 Nov 2010 09:12:39 +1100 Subject: Saving/importing custom controls to/from file In-Reply-To: References: Message-ID: <54A1F069-CE38-4B10-81CC-76C80AC200FD@sweattechnologies.com> On 09/11/2010, at 7:41 AM, Terry Judd wrote: > On a whim I tried copying a group and saving the contents of the clipboard > (clipboardData[?objects?]) to file. I then cleared the clipboard and set the > clipboardData to the file and was able to paste the ?reconstructed? object > back into my stack. I have to admit that I was surprised that this worked as > I always just expected that the clipboard data would just contain some > pointers to the copied objects rather than a usable copy of the control. The > same also method appears to work for entire cards. > > There may? be some benefits in using this approach compared to saving > controls in ?library? stacks. Is anybody already doing this, and if so what > are their experiences (pros and cons)? Hi Terry I haven't tried but it doesn't seem right to me. Did you quit and restart livecode to make sure memory was cleared. Cheers Monte From tsj at unimelb.edu.au Mon Nov 8 17:20:03 2010 From: tsj at unimelb.edu.au (Terry Judd) Date: Tue, 09 Nov 2010 09:20:03 +1100 Subject: Saving/importing custom controls to/from file In-Reply-To: <54A1F069-CE38-4B10-81CC-76C80AC200FD@sweattechnologies.com> Message-ID: Yep - several times to make sure - and I checked the clipboard in between. Terry... On 9/11/10 9:12 AM, "Monte Goulding" wrote: > > On 09/11/2010, at 7:41 AM, Terry Judd wrote: > >> On a whim I tried copying a group and saving the contents of the clipboard >> (clipboardData[?objects?]) to file. I then cleared the clipboard and set the >> clipboardData to the file and was able to paste the ?reconstructed? object >> back into my stack. I have to admit that I was surprised that this worked as >> I always just expected that the clipboard data would just contain some >> pointers to the copied objects rather than a usable copy of the control. The >> same also method appears to work for entire cards. >> >> There may? be some benefits in using this approach compared to saving >> controls in ?library? stacks. Is anybody already doing this, and if so what >> are their experiences (pros and cons)? > > Hi Terry > > I haven't tried but it doesn't seem right to me. Did you quit and restart > livecode to make sure memory was cleared. > > Cheers > > Monte_______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From jimaultwins at yahoo.com Mon Nov 8 17:21:54 2010 From: jimaultwins at yahoo.com (Jim Ault) Date: Mon, 8 Nov 2010 14:21:54 -0800 Subject: Too Soon In-Reply-To: References: <39337826-77B1-4AE2-9D2F-B8D8F62137E3@unlserve.unl.edu> Message-ID: <5329BE9E-76B9-4C90-85C4-4A768395ACF9@yahoo.com> My experience is that line endings are automatically handled by some programs, and differently even on the same platform. Further, the encoding for the characters varies ( eg. \r cr char(13) Chr(13)
) One example is opening some text files in Notepad and Wordpad and seeing line wrapping variations. Most system clipboards try to arbitrate the formatting differences between programs, but each program also does clipboard auto- conversions. Perhaps the most elegant application clipboard is Microsoft Excel, which has to handle text, numbers, cells, formatting, images, charts, drawing objects, collections of objects, and much more. From my experience, the line ending tasks are the responsibility of the programmer. Detection logic should be used to make sure that the user experience and the data handling are done correctly. On Nov 8, 2010, at 1:50 PM, Bob Sneidar wrote: > I wonder if Urlencode would have helped here? > > Bob > > > On Nov 8, 2010, at 12:04 PM, David Brooks wrote: > >> Asked too soon. replace return with "\r\n" in myscore >> >> yields a good result. >> >> Best, >> >> Dave B. >> >> >> >> >> We are creating standalones and launching them in browsers. We have >> issues with taking in all of a field. Any help appreciated. >> >> Works: >> on mouseUp >> put "12131232" into myScore >> do "alert ('" & myScore & "');" in browser >> end mouseUp >> >> >> >> Does NOT work: >> on mouseUp >> put fld "ListOfFiles" into myScore >> do "alert ('" & myScore & "');" in browser >> end mouseUp >> >> >> Works: >> on mouseUp >> put line 1 of fld "ListOfFiles" into myScore >> do "alert ('" & myScore & "');" in browser >> end mouseUp >> >> WE seem to be able to put in just one line. >> >> Thanks in advance for your help. >> >> >> >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution Jim Ault Las Vegas From monte at sweattechnologies.com Mon Nov 8 17:31:14 2010 From: monte at sweattechnologies.com (Monte Goulding) Date: Tue, 9 Nov 2010 09:31:14 +1100 Subject: Saving/importing custom controls to/from file In-Reply-To: References: Message-ID: <60AF5C37-806C-4D21-AEDE-27BB2FDD5CE0@sweattechnologies.com> > Yep - several times to make sure - and I checked the clipboard in between. Great, I wonder how it might best be used. I'm not sure there's a massive advantage to this over saving a custom control on a stack and just copying the control from the stack. Cheers Monte From jmyepes at mac.com Mon Nov 8 18:30:25 2010 From: jmyepes at mac.com (JosepM) Date: Mon, 8 Nov 2010 15:30:25 -0800 (PST) Subject: Need help with windows chars and mac chars Message-ID: <1289259025639-3032843.post@n4.nabble.com> Hi everyone, I made a mess with the coding of characters between windows - mac and mac - windows. I have a function that encrypts a word and then validates the encrypted word with the value of the database. In Mac is working properly, but Windows doesn't. The value produced in Windows encryption has nothing to do with the Mac. I know the characters differences... but I'm lost. :( The word is "demo", without accents or unusual characters. What am I missing? Should I convert from Windows with ISOtoMac function? Also doesn't work. Any ideas? Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Need-help-with-windows-chars-and-mac-chars-tp3032843p3032843.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Mon Nov 8 18:59:01 2010 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 9 Nov 2010 00:59:01 +0100 Subject: Need help with windows chars and mac chars In-Reply-To: <1289259025639-3032843.post@n4.nabble.com> References: <1289259025639-3032843.post@n4.nabble.com> Message-ID: Hi Josep, You might convert from Windows to Mac using the IsoToMac function, but a few characters will be converted incorrectly. Normally, my advice would be to set up the entire database with UTF8 encoding and convert all strings to UTF8 before writing them to the database. Search strings would need to be converted to UTF8 too. I am surprised that even the word "demo" doesn't work for you, but I guess the reason is that the encryption doesn't return the same value on both platforms. You need to encode to UTF8 first and then encrypt. How do you do the encryption exactly? When you are sure that the encoding and encryption are correct, then the ASCII values of all bytes of the encrypted string should be the same on both platforms, even though the characters displayed in a field may be different. As a last step, use the binaryEncode function to convert the string from binary to hexadecimal. The hex string should be exactly the same on both platforms. Hexadecimal strings don't need to be encoded as UTF8 again. You can simply write to the Mac encoded database, since all characters 0-9 and A-F are the same regardless the encoding. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Economy-x-Talk on Facebook now and get a free Color Converter license http://qurl.tk/gn (read the conditions) On 9 nov 2010, at 00:30, JosepM wrote: > > Hi everyone, > > I made a mess with the coding of characters between windows - mac and mac - > windows. > > I have a function that encrypts a word and then validates the encrypted word > with the value of the database. In Mac is working properly, but Windows > doesn't. The value produced in Windows encryption has nothing to do with the > Mac. I know the characters differences... but I'm lost. :( > > The word is "demo", without accents or unusual characters. > > What am I missing? Should I convert from Windows with ISOtoMac function? > Also doesn't work. > > Any ideas? > > > Salut, > Josep From jacque at hyperactivesw.com Mon Nov 8 21:29:16 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 08 Nov 2010 20:29:16 -0600 Subject: Saving/importing custom controls to/from file In-Reply-To: <60AF5C37-806C-4D21-AEDE-27BB2FDD5CE0@sweattechnologies.com> References: <60AF5C37-806C-4D21-AEDE-27BB2FDD5CE0@sweattechnologies.com> Message-ID: <4CD8B1FC.1040609@hyperactivesw.com> On 11/8/10 4:31 PM, Monte Goulding wrote: >> Yep - several times to make sure - and I checked the clipboard in >> between. > > Great, I wonder how it might best be used. I'm not sure there's a > massive advantage to this over saving a custom control on a stack and > just copying the control from the stack. I bet it started when RR added the ability to copy/paste objects between different instances of Rev. I make use of that a lot. It does seem like there should be a use for storing a single control all by itself. I just can't think what. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From Mark_Smith at cpe.umanitoba.ca Mon Nov 8 23:54:46 2010 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Mon, 8 Nov 2010 20:54:46 -0800 (PST) Subject: Refreshing a card In-Reply-To: <5ED68E87-86A1-47C7-AAF2-8429D733C23D@sweattechnologies.com> References: <1288583523153-3021743.post@n4.nabble.com> <1289196122951-3031539.post@n4.nabble.com> <5ED68E87-86A1-47C7-AAF2-8429D733C23D@sweattechnologies.com> Message-ID: <1289278486192-3033072.post@n4.nabble.com> Monte Goulding wrote: > >> > I think this is the simplest solution to your problem. Alternatively you > could put the same code in a setprop handler in your stack script. > Something like: > > setprop showdatestamp pBoolean > if there is a fld "dateStampField" then > set the visible of field "datestampfield" to pBoolean > end if > pass showdatestamp > end showdatestamp > > or another option would be to put this field into a background that's > placed on all the cards and then you probably wouldn't need the custom > property at all because showing and hiding the field would happen on all > cards at the same time. > > Hi Monte, You've definitely provided some homework there as I have not looked at setprop yet. Interesting you should mention the background issue because basically everything on my card is in the background (its a simple notepad app, gee... I wonder how many of those have been created!). So every element of the UI shows up on every new card. I thought some people might like to see the date the note/notes were made although personally it drives me batty seeing the date so I decided to create the menu Option called "Toggle Date Stamp" (actually originally I wanted to make the menu item dynamic so that if it was in the "show" state it would say "Hide Date Stamp" and if it was in the "hidden" state it would say "Show Date Stamp" but my transcript/livecode (I'm still using 4.5.0 dp 3) skills are not yet there so the simplest solution was to have a static menu item that conveyed the same sense of choice so "Toggle Date Stamp" it is. The datestampfield is in the background. The datestamp (value) is a custom property. Datestamp gets stored in the datestampfield (now automatically) each time a card or note is created/accessed. The question becomes, if I am going to toggle it on/off I need to know what state of visibility it is in now. That state of visibility (called showdatestamp) is stored as another custom property with values of true/false. When I first implemented the menu code that does the toggling: set the showDateStamp of this stack to not the showDateStamp of this stack that would change the value of showdatestamp (the flag) reliably, but had no effect on the actual field called datestamp. Connecting those two pieces up was the challenge which "set the visible of fld "datestamp" to the showdatestamp of this stack" accomplished. It is still not reliably 100% clear in my mind but I guess the more you work with it the more ingrained it becomes. I appreciate all of the feedback I have been getting here so thanks for the reply.... and the homework :-) -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Refreshing-a-card-tp3021743p3033072.html Sent from the Revolution - User mailing list archive at Nabble.com. From tsj at unimelb.edu.au Tue Nov 9 00:05:20 2010 From: tsj at unimelb.edu.au (Terry Judd) Date: Tue, 09 Nov 2010 16:05:20 +1100 Subject: Saving/importing custom controls to/from file In-Reply-To: <4CD8B1FC.1040609@hyperactivesw.com> Message-ID: On 9/11/10 1:29 PM, "J. Landman Gay" wrote: > On 11/8/10 4:31 PM, Monte Goulding wrote: >>> Yep - several times to make sure - and I checked the clipboard in >>> between. >> >> Great, I wonder how it might best be used. I'm not sure there's a >> massive advantage to this over saving a custom control on a stack and >> just copying the control from the stack. > > I bet it started when RR added the ability to copy/paste objects between > different instances of Rev. I make use of that a lot. > > It does seem like there should be a use for storing a single control all > by itself. I just can't think what. I've got a 'system' that displays a series of context-specific add-on modules (support tools, prefabricated forms and the like). At the moment these (custom objects) are stored on separate cards in a series of external stacks and I load the stacks and copy and paste the objects into the main stack window as required. Seems like it might be a bit simpler if I can suck an object straight out of a networked database onto the clipboard and paste it when and where I want it. Easier to update/maintain and less hassle than loading stacks, making sure the right stack has focus and fiddling with object names and ids and the like. There are undoubtedly some interesting implications for RevMobile! Terry... -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From tsj at unimelb.edu.au Tue Nov 9 00:15:36 2010 From: tsj at unimelb.edu.au (Terry Judd) Date: Tue, 09 Nov 2010 16:15:36 +1100 Subject: Saving/importing custom controls to/from file In-Reply-To: <4CD8B1FC.1040609@hyperactivesw.com> Message-ID: On 9/11/10 1:29 PM, "J. Landman Gay" wrote: > On 11/8/10 4:31 PM, Monte Goulding wrote: >>> Yep - several times to make sure - and I checked the clipboard in >>> between. >> >> Great, I wonder how it might best be used. I'm not sure there's a >> massive advantage to this over saving a custom control on a stack and >> just copying the control from the stack. > > I bet it started when RR added the ability to copy/paste objects between > different instances of Rev. I make use of that a lot. > > It does seem like there should be a use for storing a single control all > by itself. I just can't think what. You've gotta like the simplicity of... set the clipboardData["objects"] to url ("binfile:"&myFilePath) Terry... -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From david at vaudevillecourt.tv Tue Nov 9 03:18:52 2010 From: david at vaudevillecourt.tv (David Bovill) Date: Tue, 9 Nov 2010 08:18:52 +0000 Subject: Newbie question re fields --> javascript In-Reply-To: <63F5C90E-C83D-48BB-94C3-15EAAF3D1F7D@unlserve.unl.edu> References: <63F5C90E-C83D-48BB-94C3-15EAAF3D1F7D@unlserve.unl.edu> Message-ID: Dave - as with "shell", "do" does a line - that is if you were to look at the string you create with: put "alert ('" & myScore & "');" it would span several lines. Imagine typing that into the script editor - it would make no sense right? So you need to have the LiveCode as a single line and not split over multiple lines like this. That is not to say the Javascript / AppleScript etc has to be one line - so simply construct multiline JavaScript that would work in an HTML file, get LiveCode to produce this JavaScript and put it into a variable, then "do" the contents of the variable in the browser. On 8 November 2010 19:54, David Brooks wrote: > We are creating standalones and launching them in browsers. We have issues > with taking in all of a field. Any help appreciated. > > Works: > on mouseUp > put "12131232" into myScore > do "alert ('" & myScore & "');" in browser > end mouseUp > > > > Does NOT work: > on mouseUp > put fld "ListOfFiles" into myScore > do "alert ('" & myScore & "');" in browser > end mouseUp > > > Works: > on mouseUp > put line 1 of fld "ListOfFiles" into myScore > do "alert ('" & myScore & "');" in browser > end mouseUp > > WE seem to be able to put in just one line. > > Thanks in advance for your help. > > > > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From david at vaudevillecourt.tv Tue Nov 9 03:21:39 2010 From: david at vaudevillecourt.tv (David Bovill) Date: Tue, 9 Nov 2010 08:21:39 +0000 Subject: [OT] legality of DVD backup In-Reply-To: <4CD856CD.1070703@gmail.com> References: <4CD8430A.2060906@gmail.com> <4CD84C78.30103@gmail.com> <4CD856CD.1070703@gmail.com> Message-ID: On 8 November 2010 20:00, Richmond wrote: > > I have been known to break the law in my time; but I draw the line at > breaking the law singing > a Communist song; or, put it another way; it's an awful pity they didn't > shoot Che before the > creation of the iconic head. > Yes, I think this was one of the reasons for the LiveCode rebranding. > Sorry. List Mum; but I did not start it (this time). > Oh yes you did :) From jmyepes at mac.com Tue Nov 9 04:23:10 2010 From: jmyepes at mac.com (JosepM) Date: Tue, 9 Nov 2010 01:23:10 -0800 (PST) Subject: Need help with windows chars and mac chars In-Reply-To: References: <1289259025639-3032843.post@n4.nabble.com> Message-ID: <1289294590721-3033358.post@n4.nabble.com> Hi Mark, The database is already in UTF8, so the problem is in how characters are converted. Surely the problem is this. Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Need-help-with-windows-chars-and-mac-chars-tp3032843p3033358.html Sent from the Revolution - User mailing list archive at Nabble.com. From jmyepes at mac.com Tue Nov 9 04:25:32 2010 From: jmyepes at mac.com (JosepM) Date: Tue, 9 Nov 2010 01:25:32 -0800 (PST) Subject: PDF with digital certificates Message-ID: <1289294732128-3033365.post@n4.nabble.com> Hi, Any experience creating PDF with a digital certification? better insert the certification into a PDF. Salut, Josep -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/PDF-with-digital-certificates-tp3033365p3033365.html Sent from the Revolution - User mailing list archive at Nabble.com. From dave.cragg at lacscentre.co.uk Tue Nov 9 06:35:11 2010 From: dave.cragg at lacscentre.co.uk (Dave Cragg) Date: Tue, 9 Nov 2010 11:35:11 +0000 Subject: [OT] legality of DVD backup In-Reply-To: References: <4CD8430A.2060906@gmail.com> <4CD84C78.30103@gmail.com> <4CD856CD.1070703@gmail.com> Message-ID: <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> On 9 Nov 2010, at 08:21, David Bovill wrote: > > Yes, I think this was one of the reasons for the LiveCode rebranding. They may have dropped the name, but this Revolutionary tune was heard blasting out of one office window in Edinburgh recently: The compiler flag is deepest red To those that say Hypercard is dead But your static class can kiss my *ss We're in the iTunes store at last Cheers Dave From richmondmathewson at gmail.com Tue Nov 9 06:42:44 2010 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 09 Nov 2010 13:42:44 +0200 Subject: [OT] legality of DVD backup In-Reply-To: <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> References: <4CD8430A.2060906@gmail.com> <4CD84C78.30103@gmail.com> <4CD856CD.1070703@gmail.com> <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> Message-ID: <4CD933B4.5080000@gmail.com> On 11/09/2010 01:35 PM, Dave Cragg wrote: > On 9 Nov 2010, at 08:21, David Bovill wrote: >> Yes, I think this was one of the reasons for the LiveCode rebranding. > > They may have dropped the name, but this Revolutionary tune was heard blasting out of one office window in Edinburgh recently: > > The compiler flag is deepest red > To those that say Hypercard is dead > But your static class can kiss my *ss > We're in the iTunes store at last Oh, very well done indeed . . . :) > Cheers > Dave_______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From dixonja at hotmail.co.uk Tue Nov 9 06:50:23 2010 From: dixonja at hotmail.co.uk (John Dixon) Date: Tue, 9 Nov 2010 11:50:23 +0000 Subject: [OT] legality of DVD backup In-Reply-To: <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> References: <4CD8430A.2060906@gmail.com>, , , <4CD84C78.30103@gmail.com>, , <4CD856CD.1070703@gmail.com>, , <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> Message-ID: Nice one... > From: dave.cragg at lacscentre.co.uk > Date: Tue, 9 Nov 2010 11:35:11 +0000 > To: use-revolution at lists.runrev.com > Subject: Re: [OT] legality of DVD backup > They may have dropped the name, but this Revolutionary tune was heard blasting out of one office window in Edinburgh recently: > > The compiler flag is deepest red > To those that say Hypercard is dead > But your static class can kiss my *ss > We're in the iTunes store at last From smudge.andy at googlemail.com Tue Nov 9 07:06:14 2010 From: smudge.andy at googlemail.com (AndyP) Date: Tue, 9 Nov 2010 04:06:14 -0800 (PST) Subject: Beachball cursor Help In-Reply-To: References: Message-ID: <1289304374046-3033586.post@n4.nabble.com> Hi Joe, Instead of playing with cursors just show an animated gif during your loading loop. on mouseUp set the visible of image id 1019 to true // set to your image id (initially hidden) // demo loading start repeat with tVarNum = 0 to 50000 put tVarNum into fld "FldCount" wait 0 seconds with messages // important as gif will stall without this: put this in your loading loop end repeat // demo loading end put "" into fld "FldCount" set the visible of image id 1019 to false end mouseUp Sample with jazzy spinning gif attached. http://runtime-revolution.278305.n4.nabble.com/file/n3033586/beachball.gif http://runtime-revolution.278305.n4.nabble.com/file/n3033586/Custom_Cursor.rev Custom_Cursor.rev ----- Andy Piddock My software never has bugs. It just develops random features. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Beachball-cursor-Help-tp3032150p3033586.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Tue Nov 9 07:51:47 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 09 Nov 2010 04:51:47 -0800 Subject: Saving/importing custom controls to/from file Message-ID: <4CD943E3.2090602@fourthworld.com> Terry Judd wrote: > Seems like it might be a bit simpler if I can suck an object > straight out of a networked database onto the clipboard and paste > it when and where I want it. Easier to update/maintain and less > hassle than loading stacks, making sure the right stack has focus > and fiddling with object names and ids and the like. copy to Takes any object from any stack and puts it where you want it, leaving the user's Clipboard intact. > There are undoubtedly some interesting implications for RevMobile! Many uses - you can copy between standalones, for instance. I copy between Rev and MC regularly since native object persistence in the public Clipboard was implemented. But why especially useful for RevMobile? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From pmbrig at gmail.com Tue Nov 9 08:38:02 2010 From: pmbrig at gmail.com (Peter Brigham MD) Date: Tue, 9 Nov 2010 08:38:02 -0500 Subject: Beachball cursor Help In-Reply-To: References: Message-ID: <5E073C46-DFC9-42D3-BEFC-9F25C1A228D6@gmail.com> I'm just fooling around with trying out an animated cursor, and I can't get it to work. I tried importing an animated GIF then setting the cursor to it, but I only get what looks like an opaque white mask of the first frame of the GIF and no animation. Do I conclude that I have to cycle through the frames of the GIF explicitly via script? I would have thought that just setting the cursor to the image id number would take care of that. I can do this with a button icon -- just setting the icon of the button to the image ID of the GIF results in a nice animated button image. Why doesn't his work with a cursor? -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig On Nov 8, 2010, at 12:05 PM, Devin Asay wrote: > Joe, > > I'd use a spinning daisy cursor. See http://ajaxload.info/ for a > slick utility that will generate a custom animated gif for you. > > Devin > > > On Nov 8, 2010, at 8:46 AM, Joe Lewis Wilkins wrote: > >> Hi all, >> >> Instead of the b/w cursor "busy", I'd love to use the more colorful >> beachball. Anyone know how that is accomplished? >> TIA >> Joe Wilkins From devin_asay at byu.edu Tue Nov 9 10:47:57 2010 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 9 Nov 2010 08:47:57 -0700 Subject: Beachball cursor Help In-Reply-To: <5E073C46-DFC9-42D3-BEFC-9F25C1A228D6@gmail.com> References: <5E073C46-DFC9-42D3-BEFC-9F25C1A228D6@gmail.com> Message-ID: <31C4F8C5-618B-455C-A252-EFAC84A32386@byu.edu> On Nov 9, 2010, at 6:38 AM, Peter Brigham MD wrote: > I'm just fooling around with trying out an animated cursor, and I > can't get it to work. I tried importing an animated GIF then setting > the cursor to it, but I only get what looks like an opaque white mask > of the first frame of the GIF and no animation. Do I conclude that I > have to cycle through the frames of the GIF explicitly via script? I > would have thought that just setting the cursor to the image id number > would take care of that. I can do this with a button icon -- just > setting the icon of the button to the image ID of the GIF results in a > nice animated button image. Why doesn't his work with a cursor? Peter, When I have used animated gifs, I've just shown then hidden an image object. Of course, that's not really the same because they don't follow your mouse movement like a mouse cursor. I'm not sure exactly what's going on behind the scenes with the 'busy' cursor. I got curious and looked into it. The cursor icons are in a stack called "revCursors" for Windows and *nix, and a stack called "revMacCursors" for Mac OS. They're just image objects. I would think you could just replace the existing images with your own colorized ones, making sure the image ids match, and it should "just work". That said, LiveCard 4.5 is supposed to have enhanced cursor support, including cursors with alpha blending. So it seems like you could just set the cursor to the image id of your choosing, and increment it in a repeat loop, just like 'set cursor to busy'. Not tested: put 67890,67891,67892,67893,67894,67895,67896,67897 into tAnimCursor repeat with i = 1 to 100 put item i wrap (the number of items in tAnimCursor) of tAnimCursor into tCurrentCursor set the cursor to tCurrentCursor wait 10 end repeat Seems like this ought to work. Regards, Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From ambassador at fourthworld.com Tue Nov 9 11:12:13 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 09 Nov 2010 08:12:13 -0800 Subject: Beachball cursor Help Message-ID: <4CD972DD.7060206@fourthworld.com> Devin Asay wrote: > I'm not sure exactly what's going on behind the scenes with the > 'busy' cursor. I got curious and looked into it. The cursor icons > are in a stack called "revCursors" for Windows and *nix, and a > stack called "revMacCursors" for Mac OS. They're just image objects. > I would think you could just replace the existing images with your > own colorized ones, making sure the image ids match, and it should > "just work". Yep - they're image IDs 16 through 23. > That said, LiveCard 4.5 is supposed to have enhanced cursor > support, including cursors with alpha blending. So it seems like > you could just set the cursor to the image id of your choosing, > and increment it in a repeat loop, just like 'set cursor to busy'. > Not tested: > > put 67890,67891,67892,67893,67894,67895,67896,67897 into tAnimCursor > repeat with i = 1 to 100 > put item i wrap (the number of items in tAnimCursor) of tAnimCursor > into tCurrentCursor > set the cursor to tCurrentCursor > wait 10 > end repeat > > Seems like this ought to work. Or for reuse you could put that into a custom command that emulates the way the "busy" token works, internally incrementing it like this (note that this is off the cuff and as untested as yesterday's progress bar stuff, so it may need similar fixes : -- Main app code: on DoSomething repeat with i = 1 to 1000 SetCustomBusyCursor -- DoMainStuffHere end repeat end DoSomething -- Somewhere in your libraries: local sCustomBusyCursors, sCurBusyCursor on SetCustomBusyCursor -- Initialize if needed: if sCustomBusyCursors is empty then put "67890,67891,67892,67893,67894,67895,67896,67897" \ into sCustomBusyCursors end if -- Increment the cursor ID: add 1 to sCurBusyCursor if sCurBusyCursor > the number of items of sCustomBusyCursors then put 1 into sCurBusyCursor end if -- Do the deed: set the cursor to (item sCurBusyCursor of sCustomBusyCursors) end SetCustomBusyCursor -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From palcibiades-first at yahoo.co.uk Tue Nov 9 11:31:59 2010 From: palcibiades-first at yahoo.co.uk (Peter Alcibiades) Date: Tue, 9 Nov 2010 16:31:59 +0000 Subject: OT: Hardware recommendation for graphics card? Message-ID: <201011091632.00122.palcibiades-first@yahoo.co.uk> Friend of mine asked for advice on what sort of graphics card to put in a machine he is putting together for his kid. It will be i5 probably, and he wants to get something that will be respectable with photoshop processing. An i3 of mine with onboard graphics was definitely not fast enough for him. Is i5 even enough, should he go for i7? Its not my area of expertise. I am not even sure about the relative contributions of the graphics card and the processor in this. Any suggestions gratefully received. Money is an issue, but he wants something that will do a decent job first and foremost. Peter From pepetoo at cox.net Tue Nov 9 11:40:30 2010 From: pepetoo at cox.net (Joe Lewis Wilkins) Date: Tue, 9 Nov 2010 08:40:30 -0800 Subject: Beachball cursor Message-ID: <39705509-F421-448A-99D0-EEF9F8B02F36@cox.net> Thanks for the thoughts and suggestions, fellas. Guess I'll "someday" get around to implementing a "busy" cursor to my liking. Joe Wilkins From jacque at hyperactivesw.com Tue Nov 9 12:07:47 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 09 Nov 2010 11:07:47 -0600 Subject: [OT] legality of DVD backup In-Reply-To: <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> References: <4CD8430A.2060906@gmail.com> <4CD84C78.30103@gmail.com> <4CD856CD.1070703@gmail.com> <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> Message-ID: <4CD97FE3.6040603@hyperactivesw.com> On 11/9/10 5:35 AM, Dave Cragg wrote: > They may have dropped the name, but this Revolutionary tune was heard blasting out of one office window in Edinburgh recently: > > The compiler flag is deepest red > To those that say Hypercard is dead > But your static class can kiss my *ss > We're in the iTunes store at last And they were dancing a jig to it, which was quite a feat given that the metre doesn't match. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobs at twft.com Tue Nov 9 12:24:00 2010 From: bobs at twft.com (Bob Sneidar) Date: Tue, 9 Nov 2010 09:24:00 -0800 Subject: [OT] legality of DVD backup In-Reply-To: <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> References: <4CD8430A.2060906@gmail.com> <4CD84C78.30103@gmail.com> <4CD856CD.1070703@gmail.com> <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> Message-ID: <683A2E33-1679-4831-957D-261B5DF654AD@twft.com> Sounds like one of those songs the Orcs sang in the halls of Moria. Bob On Nov 9, 2010, at 3:35 AM, Dave Cragg wrote: > > On 9 Nov 2010, at 08:21, David Bovill wrote: >> >> Yes, I think this was one of the reasons for the LiveCode rebranding. > > > They may have dropped the name, but this Revolutionary tune was heard blasting out of one office window in Edinburgh recently: > > The compiler flag is deepest red > To those that say Hypercard is dead > But your static class can kiss my *ss > We're in the iTunes store at last > > Cheers > Dave_______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From pmbrig at gmail.com Tue Nov 9 12:33:07 2010 From: pmbrig at gmail.com (Peter Brigham MD) Date: Tue, 9 Nov 2010 12:33:07 -0500 Subject: Beachball cursor Help In-Reply-To: <31C4F8C5-618B-455C-A252-EFAC84A32386@byu.edu> References: <5E073C46-DFC9-42D3-BEFC-9F25C1A228D6@gmail.com> <31C4F8C5-618B-455C-A252-EFAC84A32386@byu.edu> Message-ID: On Nov 9, 2010, at 10:47 AM, Devin Asay wrote: > > On Nov 9, 2010, at 6:38 AM, Peter Brigham MD wrote: > >> I'm just fooling around with trying out an animated cursor, and I >> can't get it to work. I tried importing an animated GIF then setting >> the cursor to it, but I only get what looks like an opaque white mask >> of the first frame of the GIF and no animation. Do I conclude that I >> have to cycle through the frames of the GIF explicitly via script? I >> would have thought that just setting the cursor to the image id >> number >> would take care of that. I can do this with a button icon -- just >> setting the icon of the button to the image ID of the GIF results >> in a >> nice animated button image. Why doesn't his work with a cursor? > > Peter, > > When I have used animated gifs, I've just shown then hidden an image > object. Of course, that's not really the same because they don't > follow your mouse movement like a mouse cursor. > > I'm not sure exactly what's going on behind the scenes with the > 'busy' cursor. I got curious and looked into it. The cursor icons > are in a stack called "revCursors" for Windows and *nix, and a stack > called "revMacCursors" for Mac OS. They're just image objects. I > would think you could just replace the existing images with your own > colorized ones, making sure the image ids match, and it should "just > work". > > That said, LiveCard 4.5 is supposed to have enhanced cursor support, > including cursors with alpha blending. I'm still using 4.0, since 4.5 crashes my most-often-used stack (reported to the support team, no word yet on resolution). I just tried out my little "test animated cursor" stack in 4.5 and what I get is a fixed cursor image (I assume the first image of the set). The one improvement over 4.0 is that the exact same handler in 4.0 changes the cursor to the mask (white) of the first image. At least 4.5 fills in the color. But no animation in either. > So it seems like you could just set the cursor to the image id of > your choosing, and increment it in a repeat loop, just like 'set > cursor to busy'. Not tested: > > put 67890,67891,67892,67893,67894,67895,67896,67897 into tAnimCursor > repeat with i = 1 to 100 > put item i wrap (the number of items in tAnimCursor) of tAnimCursor > into tCurrentCursor > set the cursor to tCurrentCursor > wait 10 > end repeat > > Seems like this ought to work. Well, OK, but I went ahead and used the http://ajaxload.info/ site to download a great animated GIF cursor. So what do I do with that to extract the individual images and list them separately in a loop? It does seem that setting a cursor to an animated GIF ought to work out of the box the way setting a button icon to an animated GIF does.... But if there's a workaround for cursors I'd settle for that for now. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From richmondmathewson at gmail.com Tue Nov 9 12:44:20 2010 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 09 Nov 2010 19:44:20 +0200 Subject: [OT] legality of DVD backup In-Reply-To: <4CD97FE3.6040603@hyperactivesw.com> References: <4CD8430A.2060906@gmail.com> <4CD84C78.30103@gmail.com> <4CD856CD.1070703@gmail.com> <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> <4CD97FE3.6040603@hyperactivesw.com> Message-ID: <4CD98874.4070308@gmail.com> On 11/09/2010 07:07 PM, J. Landman Gay wrote: > On 11/9/10 5:35 AM, Dave Cragg wrote: > >> They may have dropped the name, but this Revolutionary tune was heard >> blasting out of one office window in Edinburgh recently: >> >> The compiler flag is deepest red >> To those that say Hypercard is dead >> But your static class can kiss my *ss >> We're in the iTunes store at last > > And they were dancing a jig to it, which was quite a feat given that > the metre doesn't match. :) > That is because, although the Europeans imposed metres on us, we prefer yards . . . :) From devin_asay at byu.edu Tue Nov 9 12:47:52 2010 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 9 Nov 2010 10:47:52 -0700 Subject: Beachball cursor Help In-Reply-To: References: <5E073C46-DFC9-42D3-BEFC-9F25C1A228D6@gmail.com> <31C4F8C5-618B-455C-A252-EFAC84A32386@byu.edu> Message-ID: <43F2C46F-CCF0-4519-85FE-EBFD7CBB6966@byu.edu> On Nov 9, 2010, at 10:33 AM, Peter Brigham MD wrote: > On Nov 9, 2010, at 10:47 AM, Devin Asay wrote: > >> So it seems like you could just set the cursor to the image id of >> your choosing, and increment it in a repeat loop, just like 'set >> cursor to busy'. Not tested: >> >> put 67890,67891,67892,67893,67894,67895,67896,67897 into tAnimCursor >> repeat with i = 1 to 100 >> put item i wrap (the number of items in tAnimCursor) of tAnimCursor >> into tCurrentCursor >> set the cursor to tCurrentCursor >> wait 10 >> end repeat >> >> Seems like this ought to work. > > Well, OK, but I went ahead and used the http://ajaxload.info/ site to > download a great animated GIF cursor. So what do I do with that to > extract the individual images and list them separately in a loop? It > does seem that setting a cursor to an animated GIF ought to work out > of the box the way setting a button icon to an animated GIF does.... > But if there's a workaround for cursors I'd settle for that for now. If you open an animated GIF in Preview on OS X it should show each frame separately. You could save each frame separately, then import them all into rev, give them consecutive IDs and use a routine similar to the one above (or the one Richard G. posted) and it ought to work. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From pete at mollysrevenge.com Tue Nov 9 13:13:55 2010 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 9 Nov 2010 10:13:55 -0800 Subject: More on IDE vs Standalone Performance issues Message-ID: Spent the last day or so trying to get some data to track this problem down by inserting code to write details of the time taken for various chunks of code to execute into a text file so I could see what was going on. I narrowed it down to a command that loads the text property of an option button by executing an SQLite SELECT statement that is defined in a custom property for the button, then setting the text property of the button to the resulting data. I executed the code using exactly the same data in the same database both in the IDE and the standalone. Here's a snippet from the debug file relating to the loading of one option button in the IDE: Starting loadOneList button "DB_RcvblsAc" 0 Start processing SELECT... 1 End processing SELECT ... 1 Start setting menu text 1 End setting menu text The number at the start of each line is the number of milliseconds since the start of the loadOneList command. Now here is a same snippet taken from the debug file created by the standalone for the same button: Starting loadOneList button "DB_RcvblsAc" 731 Start processing SELECT... 976 End processing SELECT... 976 Start setting menu text 2196 End setting menu text As you can see, the time taken between each display is hundreds of times more than in the IDE in every case. It's not limited to just one snippet of code, it's universal. Getting through loadOneList takes roughly 1 millisecond in the IDE and more than 2 seconds in the standalone. Here's the code that is executed between the "Starting loadOneList" message and the "Start processing SELECT" message: if pselection is empty then if "listValues" is among the lines of the customKeys of myControl then put the listValues of myControl into tlistspec else put the text of myControl into tdata end if else put pselection into tlistspec end if if tlistspec is not empty then repeat for each line myLine in tlistspec I stepped through the code in debug to make sure it didn't head off in unexpected directions (eg setProp/getProp handlers) and there was nothing of that nature. The writing of the debug information takes some time but that should be the same overhead in the IDE and the standalone. Help! Pete Haworth From bobs at twft.com Tue Nov 9 13:23:16 2010 From: bobs at twft.com (Bob Sneidar) Date: Tue, 9 Nov 2010 10:23:16 -0800 Subject: [OT] legality of DVD backup In-Reply-To: <4CD98874.4070308@gmail.com> References: <4CD8430A.2060906@gmail.com> <4CD84C78.30103@gmail.com> <4CD856CD.1070703@gmail.com> <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> <4CD97FE3.6040603@hyperactivesw.com> <4CD98874.4070308@gmail.com> Message-ID: Now I remember why I like the Scottish! Because they still flatly refuse to accept Metrics! Bob On Nov 9, 2010, at 9:44 AM, Richmond wrote: > On 11/09/2010 07:07 PM, J. Landman Gay wrote: >> On 11/9/10 5:35 AM, Dave Cragg wrote: >> >>> They may have dropped the name, but this Revolutionary tune was heard blasting out of one office window in Edinburgh recently: >>> >>> The compiler flag is deepest red >>> To those that say Hypercard is dead >>> But your static class can kiss my *ss >>> We're in the iTunes store at last >> >> And they were dancing a jig to it, which was quite a feat given that the metre doesn't match. :) >> > > That is because, although the Europeans imposed metres on us, we prefer yards . . . :) > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From bobs at twft.com Tue Nov 9 13:26:39 2010 From: bobs at twft.com (Bob Sneidar) Date: Tue, 9 Nov 2010 10:26:39 -0800 Subject: More on IDE vs Standalone Performance issues In-Reply-To: References: Message-ID: <6F5B0F5E-E1A5-4C49-93AF-BCA8C73FC54A@twft.com> I think you are on to something there Peter. This may be something for the bug reports. Is there a test stack with the debug written into it that you could post so we can try it on our end? Bob On Nov 9, 2010, at 10:13 AM, Peter Haworth wrote: > Spent the last day or so trying to get some data to track this problem down by inserting code to write details of the time taken for various chunks of code to execute into a text file so I could see what was going on. I narrowed it down to a command that loads the text property of an option button by executing an SQLite SELECT statement that is defined in a custom property for the button, then setting the text property of the button to the resulting data. > > I executed the code using exactly the same data in the same database both in the IDE and the standalone. > > Here's a snippet from the debug file relating to the loading of one option button in the IDE: > > Starting loadOneList button "DB_RcvblsAc" > 0 Start processing SELECT... > 1 End processing SELECT ... > 1 Start setting menu text > 1 End setting menu text > > The number at the start of each line is the number of milliseconds since the start of the loadOneList command. > > Now here is a same snippet taken from the debug file created by the standalone for the same button: > > Starting loadOneList button "DB_RcvblsAc" > 731 Start processing SELECT... > 976 End processing SELECT... > 976 Start setting menu text > 2196 End setting menu text > > As you can see, the time taken between each display is hundreds of times more than in the IDE in every case. It's not limited to just one snippet of code, it's universal. Getting through loadOneList takes roughly 1 millisecond in the IDE and more than 2 seconds in the standalone. > > Here's the code that is executed between the "Starting loadOneList" message and the "Start processing SELECT" message: > > if pselection is empty then > if "listValues" is among the lines of the customKeys of myControl then > put the listValues of myControl into tlistspec > else > put the text of myControl into tdata > end if > else > put pselection into tlistspec > end if > if tlistspec is not empty then > repeat for each line myLine in tlistspec > > I stepped through the code in debug to make sure it didn't head off in unexpected directions (eg setProp/getProp handlers) and there was nothing of that nature. The writing of the debug information takes some time but that should be the same overhead in the IDE and the standalone. > > Help! > > Pete Haworth > > > > > > > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From jacque at hyperactivesw.com Tue Nov 9 13:36:30 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 09 Nov 2010 12:36:30 -0600 Subject: Beachball cursor Help In-Reply-To: References: <5E073C46-DFC9-42D3-BEFC-9F25C1A228D6@gmail.com> <31C4F8C5-618B-455C-A252-EFAC84A32386@byu.edu> Message-ID: <4CD994AE.2040705@hyperactivesw.com> On 11/9/10 11:33 AM, Peter Brigham MD wrote: > It > does seem that setting a cursor to an animated GIF ought to work out of > the box the way setting a button icon to an animated GIF does.... But if > there's a workaround for cursors I'd settle for that for now. I don't think animated cursors are supported. I believe the new color cursor feature just translates standard image formats to the very specific requirements that cursors have in LiveCode. We used to have to do some of that ourselves, only with more limitations on color depth. Gifs for sure won't work, because they will get translated to the engine's internal format, so they are no longer gifs any more. Or, that's my take on it anyway. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at tactilemedia.com Tue Nov 9 13:39:45 2010 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 09 Nov 2010 10:39:45 -0800 Subject: Indenting Challenge Message-ID: Hi List: Was hoping someone here might have some uncanny insight into how to solve a text formatting dilemma... Basic problem: I need to create two levels on indenting in a block of text, but the text needs to always be directly editable and may span multiple lines. About a month or so back I mentioned an app I was working on that was sort of a poor man's PowerPoint, and was trying to mimic the bullet formatting one can apply to text. I've been asked to implement two levels bulleting/indenting, something like the following (hope it comes across): ? Main Bullet Item 1 that spans multiple lines ? Main Bullet Item 2 - Secondary Bullet 1 - Secondary Bullet 2 which spans multiple lines - Secondary Bullet 3 ? Main Bullet Item 3 I can accomplish the first level bullet/indenting using a combination of margins and firstIndent, but I can't figure out a way to handle second level. To date I've been using HTMLtext and non-breaking spaces to pad the secondary level lines, but arbitrarily adding spaces to live editable text is messy, and I can't find a way to align a padded+wrapped line with the line above it. It occurred to me maybe there's some non-typeable, non-selectable character I could use for padding, but I only know of formFeed/lineFeed characters which wouldn't help here. And the thing that really makes this difficult is the fact that the text needs to be directly editable by users (cannot be in a locked field). Any suggestions on how I might tackle this? Thanks & Regards, Scott Rossi Creative Director Tactile Media, UX Design From gbojsza at gmail.com Tue Nov 9 13:48:20 2010 From: gbojsza at gmail.com (Glen Bojsza) Date: Tue, 9 Nov 2010 11:48:20 -0700 Subject: Method question Message-ID: I have a problem which I am not certain which method is valid or should be used (with Rev / Livecode there are sometimes too many ways of achieving a goal). I have a graphic on a card left 62 right 462. My objective is to allow a user to left click and drag across the graphic as if selecting a section of it. I need start left,top,right,bottom and end left,top,right,bottom. The only interest is knowing the start of the drag when inside the graphic and the end of the drag inside the graphic... with the following caveats. - The user may start the drag either outside the graphic and then continue the drag into the graphic (which is the start point) or start the drag inside the graphic which would be the start point. - The user may release the mouse button inside the graphic which indicates the stop point or release the mouse button outside the graphic where the stop point is at the point of the mouse leaving the graphic. This seems like it should be simple but I am getting tied down but trying to over complicate it? This is for Windows and Linux . Any elegant or simple solutions out there? From richmondmathewson at gmail.com Tue Nov 9 13:58:34 2010 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 09 Nov 2010 20:58:34 +0200 Subject: [OT] legality of DVD backup In-Reply-To: References: <4CD8430A.2060906@gmail.com> <4CD84C78.30103@gmail.com> <4CD856CD.1070703@gmail.com> <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> <4CD97FE3.6040603@hyperactivesw.com> <4CD98874.4070308@gmail.com> Message-ID: <4CD999DA.5070506@gmail.com> On 11/09/2010 08:23 PM, Bob Sneidar wrote: > Now I remember why I like the Scottish! Because they still flatly refuse to accept Metrics! > > Bob > Well, really we are not totally keen on English stuff such as Yards, preferring Ells. The rot set in when the Scot parliament, packed with bribed folk voted to support William of Orange, deposed our rightful monarch (James VII), and supported Anschluss with England; something that is illegal under Scots law. We lost our: money: merks and pounds Scots; for the mathematically minded 3 Merks = 2 pounds Scots. fluid measurement: Scots pint ( = 4 English pints) lengths: Scots mile, ells and so forth monarch: currently King Francis II ( http://www.facebook.com/posted.php?id=16233840101#!/photo.php?fbid=383891736095&set=o.16233840101 ------------------------------------------------------------------------------------- So, far from being a Runtime 'Revolutionary', I am best described as a Runtime 'Counter Revolutionary' as I want ALL these things back; especially the King! I, ALSO, want "LiveCode" to resume being called "Runtime Revolution"; dead South American Commies or not. > On Nov 9, 2010, at 9:44 AM, Richmond wrote: > >> On 11/09/2010 07:07 PM, J. Landman Gay wrote: >>> On 11/9/10 5:35 AM, Dave Cragg wrote: >>> >>>> They may have dropped the name, but this Revolutionary tune was heard blasting out of one office window in Edinburgh recently: >>>> >>>> The compiler flag is deepest red >>>> To those that say Hypercard is dead >>>> But your static class can kiss my *ss >>>> We're in the iTunes store at last >>> And they were dancing a jig to it, which was quite a feat given that the metre doesn't match. :) >>> >> That is because, although the Europeans imposed metres on us, we prefer yards . . . :) >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From bobs at twft.com Tue Nov 9 14:05:47 2010 From: bobs at twft.com (Bob Sneidar) Date: Tue, 9 Nov 2010 11:05:47 -0800 Subject: [OT] legality of DVD backup In-Reply-To: <4CD999DA.5070506@gmail.com> References: <4CD8430A.2060906@gmail.com> <4CD84C78.30103@gmail.com> <4CD856CD.1070703@gmail.com> <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> <4CD97FE3.6040603@hyperactivesw.com> <4CD98874.4070308@gmail.com> <4CD999DA.5070506@gmail.com> Message-ID: <8466CE59-A73F-4C39-A146-B41ED3EE47DB@twft.com> Frankly, I think any revolution whose founding principle and main goal is to "run time" is both absurd and egomaniacal. So you conquer the whole world! So what?? You are no closer to "running time" than you were before you started! The cheek! And another thing, if someone is going to start a revolution, for heaven's sake get your grammar correct. It should be "control time" or "alter time". "Run time" makes them sound like a bunch of 6th grade ninnyhammers. I mean really... wha.. what's that? OH! Runtime! NEVER MIND! Bob On Nov 9, 2010, at 10:58 AM, Richmond wrote: > So, far from being a Runtime 'Revolutionary', I am best described as a Runtime 'Counter Revolutionary' > as I want ALL these things back; especially the King! > > I, ALSO, want "LiveCode" to resume being called "Runtime Revolution"; dead South American Commies > or not. From stephenREVOLUTION2 at barncard.com Tue Nov 9 14:09:14 2010 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Tue, 9 Nov 2010 11:09:14 -0800 Subject: Beachball cursor In-Reply-To: <39705509-F421-448A-99D0-EEF9F8B02F36@cox.net> References: <39705509-F421-448A-99D0-EEF9F8B02F36@cox.net> Message-ID: gee - I thought those ones created by the online generator were pretty good! you'll have to roll your own - hey that's fun... On 9 November 2010 08:40, Joe Lewis Wilkins wrote: > Thanks for the thoughts and suggestions, fellas. > > Guess I'll "someday" get around to implementing a "busy" cursor to my > liking. > > Joe Wilkins > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- Stephen Barncard San Francisco Ca. USA more about sqb From alex at tweedly.net Tue Nov 9 14:11:57 2010 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 09 Nov 2010 19:11:57 +0000 Subject: Indenting Challenge In-Reply-To: References: Message-ID: <4CD99CFD.7090900@tweedly.net> 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 start of each line, and set the imagesource of that first character according according to what kind of line it is -- Alex. On 09/11/2010 18:39, Scott Rossi wrote: > Hi List: > > Was hoping someone here might have some uncanny insight into how to solve a > text formatting dilemma... > > Basic problem: I need to create two levels on indenting in a block of text, > but the text needs to always be directly editable and may span multiple > lines. > > About a month or so back I mentioned an app I was working on that was sort > of a poor man's PowerPoint, and was trying to mimic the bullet formatting > one can apply to text. I've been asked to implement two levels > bulleting/indenting, something like the following (hope it comes across): > > ? Main Bullet Item 1 that spans > multiple lines > ? Main Bullet Item 2 > - Secondary Bullet 1 > - Secondary Bullet 2 which > spans multiple lines > - Secondary Bullet 3 > ? Main Bullet Item 3 > > I can accomplish the first level bullet/indenting using a combination of > margins and firstIndent, but I can't figure out a way to handle second > level. To date I've been using HTMLtext and non-breaking spaces to pad the > secondary level lines, but arbitrarily adding spaces to live editable text > is messy, and I can't find a way to align a padded+wrapped line with the > line above it. It occurred to me maybe there's some non-typeable, > non-selectable character I could use for padding, but I only know of > formFeed/lineFeed characters which wouldn't help here. > > And the thing that really makes this difficult is the fact that the text > needs to be directly editable by users (cannot be in a locked field). > > Any suggestions on how I might tackle this? > > Thanks& Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From bobs at twft.com Tue Nov 9 14:14:06 2010 From: bobs at twft.com (Bob Sneidar) Date: Tue, 9 Nov 2010 11:14:06 -0800 Subject: Indenting Challenge In-Reply-To: References: Message-ID: <8DED6F44-B50B-4E16-BC00-5ABD03A52F16@twft.com> Hi Scott. Unless you can find a way to embed a Microsoft object into a Revolution stack (never mind a standalone) I don't think there is a way to do this. Unless CSS is supported in HTMLText, I don't see how you can get any kind of special formatting to work in a native LiveCode field. Now if CSS WAS supported, that would be a different matter. Does the Revbrowser support CSS? If so, then if you only needed one field on a form that might work for you. Bob On Nov 9, 2010, at 10:39 AM, Scott Rossi wrote: > Hi List: > > Was hoping someone here might have some uncanny insight into how to solve a > text formatting dilemma... > > Basic problem: I need to create two levels on indenting in a block of text, > but the text needs to always be directly editable and may span multiple > lines. > > About a month or so back I mentioned an app I was working on that was sort > of a poor man's PowerPoint, and was trying to mimic the bullet formatting > one can apply to text. I've been asked to implement two levels > bulleting/indenting, something like the following (hope it comes across): > > ? Main Bullet Item 1 that spans > multiple lines > ? Main Bullet Item 2 > - Secondary Bullet 1 > - Secondary Bullet 2 which > spans multiple lines > - Secondary Bullet 3 > ? Main Bullet Item 3 > > I can accomplish the first level bullet/indenting using a combination of > margins and firstIndent, but I can't figure out a way to handle second > level. To date I've been using HTMLtext and non-breaking spaces to pad the > secondary level lines, but arbitrarily adding spaces to live editable text > is messy, and I can't find a way to align a padded+wrapped line with the > line above it. It occurred to me maybe there's some non-typeable, > non-selectable character I could use for padding, but I only know of > formFeed/lineFeed characters which wouldn't help here. > > And the thing that really makes this difficult is the fact that the text > needs to be directly editable by users (cannot be in a locked field). > > Any suggestions on how I might tackle this? > > Thanks & Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From kray at sonsothunder.com Tue Nov 9 13:14:32 2010 From: kray at sonsothunder.com (Ken Ray) Date: Tue, 09 Nov 2010 13:14:32 -0500 Subject: Indenting Challenge In-Reply-To: Message-ID: > And the thing that really makes this difficult is the fact that the text > needs to be directly editable by users (cannot be in a locked field). > > Any suggestions on how I might tackle this? Can it be restricted to only editing one bullet at a time, or does the user need the ability to click in one bullet's text and drag up or down and select the text from other bullets as well? The reason I ask is that you might be able to get away with a highly customized datagrid - since each "row" is its own field, you could apply the margins/indents you want - plus you could have the expand/collapse toggle available as well. I haven't done this myself, but maybe it's a possible direction to try. Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From ambassador at fourthworld.com Tue Nov 9 14:16:08 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 09 Nov 2010 11:16:08 -0800 Subject: Indenting Challenge Message-ID: <4CD99DF8.1070200@fourthworld.com> The firstIndent property of the field can be set to a negative number, but that would only take care of one level of indenting. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From bonnmike at gmail.com Tue Nov 9 14:18:29 2010 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 9 Nov 2010 12:18:29 -0700 Subject: [OT] legality of DVD backup In-Reply-To: <8466CE59-A73F-4C39-A146-B41ED3EE47DB@twft.com> References: <4CD8430A.2060906@gmail.com> <4CD84C78.30103@gmail.com> <4CD856CD.1070703@gmail.com> <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> <4CD97FE3.6040603@hyperactivesw.com> <4CD98874.4070308@gmail.com> <4CD999DA.5070506@gmail.com> <8466CE59-A73F-4C39-A146-B41ED3EE47DB@twft.com> Message-ID: Runtime is what happens when the Revolution is going badly. As in "Uh oh, its runtime!" Define: runtime; To advance to the rear. On Tue, Nov 9, 2010 at 12:05 PM, Bob Sneidar wrote: > Frankly, I think any revolution whose founding principle and main goal is > to "run time" is both absurd and egomaniacal. So you conquer the whole > world! So what?? You are no closer to "running time" than you were before > you started! The cheek! And another thing, if someone is going to start a > revolution, for heaven's sake get your grammar correct. It should be > "control time" or "alter time". "Run time" makes them sound like a bunch of > 6th grade ninnyhammers. I mean really... wha.. what's that? OH! Runtime! > > NEVER MIND! > > Bob > > > On Nov 9, 2010, at 10:58 AM, Richmond wrote: > > > So, far from being a Runtime 'Revolutionary', I am best described as a > Runtime 'Counter Revolutionary' > > as I want ALL these things back; especially the King! > > > > I, ALSO, want "LiveCode" to resume being called "Runtime Revolution"; > dead South American Commies > > or not. > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From bobs at twft.com Tue Nov 9 14:19:39 2010 From: bobs at twft.com (Bob Sneidar) Date: Tue, 9 Nov 2010 11:19:39 -0800 Subject: Indenting Challenge In-Reply-To: References: Message-ID: Sorry missed this part. Not sure if CSS supports hanging indents, which is I think what you are shooting for. Bob On Nov 9, 2010, at 10:39 AM, Scott Rossi wrote: > I can accomplish the first level bullet/indenting using a combination of > margins and firstIndent, but I can't figure out a way to handle second > level. To date I've been using HTMLtext and non-breaking spaces to pad the > secondary level lines, but arbitrarily adding spaces to live editable text > is messy, and I can't find a way to align a padded+wrapped line with the > line above it. From dave.cragg at lacscentre.co.uk Tue Nov 9 14:21:48 2010 From: dave.cragg at lacscentre.co.uk (Dave Cragg) Date: Tue, 9 Nov 2010 19:21:48 +0000 Subject: Indenting Challenge In-Reply-To: References: Message-ID: <4E4419B9-D891-4769-9CA0-C8DABB81CE41@lacscentre.co.uk> On 9 Nov 2010, at 18:39, Scott Rossi wrote: > > I've been asked to implement two levels > bulleting/indenting, something like the following (hope it comes across): > > ? Main Bullet Item 1 that spans > multiple lines > ? Main Bullet Item 2 > - Secondary Bullet 1 > - Secondary Bullet 2 which > spans multiple lines > - Secondary Bullet 3 > ? Main Bullet Item 3 > > I can accomplish the first level bullet/indenting using a combination of > margins and firstIndent, but I can't figure out a way to handle second > level. To date I've been using HTMLtext and non-breaking spaces to pad the > secondary level lines, but arbitrarily adding spaces to live editable text > is messy, and I can't find a way to align a padded+wrapped line with the > line above it. It occurred to me maybe there's some non-typeable, > non-selectable character I could use for padding, but I only know of > formFeed/lineFeed characters which wouldn't help here. > > And the thing that really makes this difficult is the fact that the text > needs to be directly editable by users (cannot be in a locked field). > > Any suggestions on how I might tackle this? Is it feasible to dynamically create separate text fields for the different levels? I've done it before for display purposes, but I'm sure managing live editing adds a lot of problems. But if you could define a routine that dynamically lays out the text fields vertically as you type (so that if one field grows/shrinks by a line, the fields below dynamically adjust their positions), and clearly define which actions require creating a new text field or deleting an existing one, it might be feasible. Or you could wait for improved field formatting. :-) Cheers Dave From pmbrig at gmail.com Tue Nov 9 14:27:38 2010 From: pmbrig at gmail.com (Peter Brigham MD) Date: Tue, 9 Nov 2010 14:27:38 -0500 Subject: Beachball cursor Help In-Reply-To: <43F2C46F-CCF0-4519-85FE-EBFD7CBB6966@byu.edu> References: <5E073C46-DFC9-42D3-BEFC-9F25C1A228D6@gmail.com> <31C4F8C5-618B-455C-A252-EFAC84A32386@byu.edu> <43F2C46F-CCF0-4519-85FE-EBFD7CBB6966@byu.edu> Message-ID: On Nov 9, 2010, at 12:47 PM, Devin Asay wrote: > > On Nov 9, 2010, at 10:33 AM, Peter Brigham MD wrote: > >> On Nov 9, 2010, at 10:47 AM, Devin Asay wrote: >> >>> So it seems like you could just set the cursor to the image id of >>> your choosing, and increment it in a repeat loop, just like 'set >>> cursor to busy'. Not tested: >>> >>> put 67890,67891,67892,67893,67894,67895,67896,67897 into tAnimCursor >>> repeat with i = 1 to 100 >>> put item i wrap (the number of items in tAnimCursor) of tAnimCursor >>> into tCurrentCursor >>> set the cursor to tCurrentCursor >>> wait 10 >>> end repeat >>> >>> Seems like this ought to work. >> >> Well, OK, but I went ahead and used the http://ajaxload.info/ site to >> download a great animated GIF cursor. So what do I do with that to >> extract the individual images and list them separately in a loop? It >> does seem that setting a cursor to an animated GIF ought to work out >> of the box the way setting a button icon to an animated GIF does.... >> But if there's a workaround for cursors I'd settle for that for now. > > If you open an animated GIF in Preview on OS X it should show each > frame separately. You could save each frame separately, then import > them all into rev, give them consecutive IDs and use a routine > similar to the one above (or the one Richard G. posted) and it ought > to work. Thanks, Devin. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From revdev at pdslabs.net Tue Nov 9 14:27:50 2010 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 09 Nov 2010 11:27:50 -0800 Subject: Method question In-Reply-To: References: Message-ID: <4CD9A0B6.3000807@pdslabs.net> Hi Glen, See if this works: -- card script -- local h1, h2, v1, v2 on mouseDown put the clickH into h1 put the clickV into v1 end mouseDown on mouseUp put the mouseH into h2 put the mouseV into v2 put grcDragRegion() end mouseUp function grcDragRegion -- define mouse drag rect put min(h1,h2) into tMouseLeft put max(h1,h2) into tMouseRight put min(v1,v2) into tMouseTop put max(v1,v2) into tMouseBottom -- define overlap of mouse drag rect & grc rect put max(tMouseLeft, the left of grc 1) into item 1 of tOverlapRect put max(tMouseTop, the top of grc 1) into item 2 of tOverlapRect put min(tMouseRight, the right of grc 1) into item 3 of tOverlapRect put min(tMouseBottom, the bottom of grc 1) into item 4 of tOverlapRect -- return it return tOverlapRect end grcDragRegion Phil Davis On 11/9/10 10:48 AM, Glen Bojsza wrote: > I have a problem which I am not certain which method is valid or should be > used (with Rev / Livecode there are sometimes too many ways of achieving a > goal). > > I have a graphic on a card left 62 right 462. > > My objective is to allow a user to left click and drag across the graphic as > if selecting a section of it. > > I need start left,top,right,bottom and end left,top,right,bottom. > > The only interest is knowing the start of the drag when inside the graphic > and the end of the drag inside the graphic... with the following caveats. > > > - The user may start the drag either outside the graphic and then > continue the drag into the graphic (which is the start point) or start the > drag inside the graphic which would be the start point. > - The user may release the mouse button inside the graphic which > indicates the stop point or release the mouse button outside the graphic > where the stop point is at the point of the mouse leaving the graphic. > > > This seems like it should be simple but I am getting tied down but trying to > over complicate it? > > This is for Windows and Linux . > > Any elegant or simple solutions out there? > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From pmbrig at gmail.com Tue Nov 9 14:29:52 2010 From: pmbrig at gmail.com (Peter Brigham MD) Date: Tue, 9 Nov 2010 14:29:52 -0500 Subject: Beachball cursor Help In-Reply-To: <4CD994AE.2040705@hyperactivesw.com> References: <5E073C46-DFC9-42D3-BEFC-9F25C1A228D6@gmail.com> <31C4F8C5-618B-455C-A252-EFAC84A32386@byu.edu> <4CD994AE.2040705@hyperactivesw.com> Message-ID: <196F37CA-7DA4-45A8-A912-AF329A45AA58@gmail.com> On Nov 9, 2010, at 1:36 PM, J. Landman Gay wrote: > On 11/9/10 11:33 AM, Peter Brigham MD wrote: >> It >> does seem that setting a cursor to an animated GIF ought to work >> out of >> the box the way setting a button icon to an animated GIF does.... >> But if >> there's a workaround for cursors I'd settle for that for now. > > I don't think animated cursors are supported. I believe the new > color cursor feature just translates standard image formats to the > very specific requirements that cursors have in LiveCode. We used to > have to do some of that ourselves, only with more limitations on > color depth. Gifs for sure won't work, because they will get > translated to the engine's internal format, so they are no longer > gifs any more. Or, that's my take on it anyway. Sounds as if cursors are intrinsically more difficult than button images. But it would be a great enhancement if LiveCode could fully implement animated cursors sometime. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From pmbrig at gmail.com Tue Nov 9 14:38:45 2010 From: pmbrig at gmail.com (Peter Brigham MD) Date: Tue, 9 Nov 2010 14:38:45 -0500 Subject: Method question In-Reply-To: References: Message-ID: On Nov 9, 2010, at 1:48 PM, Glen Bojsza wrote: > I have a problem which I am not certain which method is valid or > should be > used (with Rev / Livecode there are sometimes too many ways of > achieving a > goal). > > I have a graphic on a card left 62 right 462. > > My objective is to allow a user to left click and drag across the > graphic as > if selecting a section of it. > > I need start left,top,right,bottom and end left,top,right,bottom. > > The only interest is knowing the start of the drag when inside the > graphic > and the end of the drag inside the graphic... with the following > caveats. > > > - The user may start the drag either outside the graphic and then > continue the drag into the graphic (which is the start point) or > start the > drag inside the graphic which would be the start point. > - The user may release the mouse button inside the graphic which > indicates the stop point or release the mouse button outside the > graphic > where the stop point is at the point of the mouse leaving the > graphic. > > > This seems like it should be simple but I am getting tied down but > trying to > over complicate it? > > This is for Windows and Linux . > > Any elegant or simple solutions out there? Would this do it? local uStartPoint, uEndPoint on mouseenter if the mouse is down then put the mouseloc into uStartPoint end if end mouseenter on mouseleave if the mouse is down then put the mouseloc into uEndPoint end if end mouseleave on mousedown put the mouseloc into uStartPoint end mousedown on mouseup put the mouseloc into uEndPoint end mouseup Then use the script local variables in whatever handlers for your own purposes. -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From pmbrig at gmail.com Tue Nov 9 14:40:18 2010 From: pmbrig at gmail.com (Peter Brigham MD) Date: Tue, 9 Nov 2010 14:40:18 -0500 Subject: [OT] legality of DVD backup In-Reply-To: <4CD999DA.5070506@gmail.com> References: <4CD8430A.2060906@gmail.com> <4CD84C78.30103@gmail.com> <4CD856CD.1070703@gmail.com> <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> <4CD97FE3.6040603@hyperactivesw.com> <4CD98874.4070308@gmail.com> <4CD999DA.5070506@gmail.com> Message-ID: On Nov 9, 2010, at 1:58 PM, Richmond wrote: > fluid measurement: Scots pint ( = 4 English pints) No wonder the Scots have a high tolerance for alcohol. "I'll have another pint, please." -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From bobs at twft.com Tue Nov 9 14:55:19 2010 From: bobs at twft.com (Bob Sneidar) Date: Tue, 9 Nov 2010 11:55:19 -0800 Subject: Indenting Challenge In-Reply-To: References: Message-ID: <6E9015BB-48E0-466F-B6E3-4082D25FA1C8@twft.com> Knowing nothing about CSS or HTML, I was able to get a text field to respond to a basic CSS definition. However, it doesn't seem to pay any attention to the margins and indents. Feature request anyone? Bob On Nov 9, 2010, at 10:39 AM, Scott Rossi wrote: > Hi List: > > Was hoping someone here might have some uncanny insight into how to solve a > text formatting dilemma... > > Basic problem: I need to create two levels on indenting in a block of text, > but the text needs to always be directly editable and may span multiple > lines. > > About a month or so back I mentioned an app I was working on that was sort > of a poor man's PowerPoint, and was trying to mimic the bullet formatting > one can apply to text. I've been asked to implement two levels > bulleting/indenting, something like the following (hope it comes across): > > ? Main Bullet Item 1 that spans > multiple lines > ? Main Bullet Item 2 > - Secondary Bullet 1 > - Secondary Bullet 2 which > spans multiple lines > - Secondary Bullet 3 > ? Main Bullet Item 3 > > I can accomplish the first level bullet/indenting using a combination of > margins and firstIndent, but I can't figure out a way to handle second > level. To date I've been using HTMLtext and non-breaking spaces to pad the > secondary level lines, but arbitrarily adding spaces to live editable text > is messy, and I can't find a way to align a padded+wrapped line with the > line above it. It occurred to me maybe there's some non-typeable, > non-selectable character I could use for padding, but I only know of > formFeed/lineFeed characters which wouldn't help here. > > And the thing that really makes this difficult is the fact that the text > needs to be directly editable by users (cannot be in a locked field). > > Any suggestions on how I might tackle this? > > Thanks & Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From gbojsza at gmail.com Tue Nov 9 14:57:37 2010 From: gbojsza at gmail.com (Glen Bojsza) Date: Tue, 9 Nov 2010 12:57:37 -0700 Subject: Method question In-Reply-To: <4CD9A0B6.3000807@pdslabs.net> References: <4CD9A0B6.3000807@pdslabs.net> Message-ID: Hi Phil, Yes it works BUT it doesn't constrain itself to the graphic. I want it to only to report the points if the user includes the graphic when they d their drag... as it currently stands it reports coordinates even if the user does not drag across the graphic. But other that that it is total a different perspective on how I was looking at the problem... I was too focused on the graphic. thanks, Glen On Tue, Nov 9, 2010 at 12:27 PM, Phil Davis wrote: > Hi Glen, > > See if this works: > > > -- card script -- > > local h1, h2, v1, v2 > > > on mouseDown > put the clickH into h1 > put the clickV into v1 > end mouseDown > > > on mouseUp > put the mouseH into h2 > put the mouseV into v2 > put grcDragRegion() > end mouseUp > > > function grcDragRegion > -- define mouse drag rect > put min(h1,h2) into tMouseLeft > put max(h1,h2) into tMouseRight > put min(v1,v2) into tMouseTop > put max(v1,v2) into tMouseBottom > > -- define overlap of mouse drag rect & grc rect > put max(tMouseLeft, the left of grc 1) into item 1 of tOverlapRect > put max(tMouseTop, the top of grc 1) into item 2 of tOverlapRect > put min(tMouseRight, the right of grc 1) into item 3 of tOverlapRect > put min(tMouseBottom, the bottom of grc 1) into item 4 of tOverlapRect > > -- return it > return tOverlapRect > end grcDragRegion > > Phil Davis > > > > On 11/9/10 10:48 AM, Glen Bojsza wrote: > >> I have a problem which I am not certain which method is valid or should be >> used (with Rev / Livecode there are sometimes too many ways of achieving a >> goal). >> >> I have a graphic on a card left 62 right 462. >> >> My objective is to allow a user to left click and drag across the graphic >> as >> if selecting a section of it. >> >> I need start left,top,right,bottom and end left,top,right,bottom. >> >> The only interest is knowing the start of the drag when inside the graphic >> and the end of the drag inside the graphic... with the following caveats. >> >> >> - The user may start the drag either outside the graphic and then >> continue the drag into the graphic (which is the start point) or start >> the >> drag inside the graphic which would be the start point. >> - The user may release the mouse button inside the graphic which >> indicates the stop point or release the mouse button outside the >> graphic >> where the stop point is at the point of the mouse leaving the graphic. >> >> >> This seems like it should be simple but I am getting tied down but trying >> to >> over complicate it? >> >> This is for Windows and Linux . >> >> Any elegant or simple solutions out there? >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> >> > -- > Phil Davis > > PDS Labs > Professional Software Development > http://pdslabs.net > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From bobs at twft.com Tue Nov 9 14:57:36 2010 From: bobs at twft.com (Bob Sneidar) Date: Tue, 9 Nov 2010 11:57:36 -0800 Subject: [OT] legality of DVD backup In-Reply-To: References: <4CD8430A.2060906@gmail.com> <4CD84C78.30103@gmail.com> <4CD856CD.1070703@gmail.com> <75BB7B47-380E-40D7-92FF-DABA7945B23C@lacscentre.co.uk> <4CD97FE3.6040603@hyperactivesw.com> <4CD98874.4070308@gmail.com> <4CD999DA.5070506@gmail.com> Message-ID: And their cows shudder when someone goes to get a pint of milk. Bob On Nov 9, 2010, at 11:40 AM, Peter Brigham MD wrote: > On Nov 9, 2010, at 1:58 PM, Richmond wrote: > >> fluid measurement: Scots pint ( = 4 English pints) > > No wonder the Scots have a high tolerance for alcohol. "I'll have another pint, please." > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From gbojsza at gmail.com Tue Nov 9 15:10:42 2010 From: gbojsza at gmail.com (Glen Bojsza) Date: Tue, 9 Nov 2010 13:10:42 -0700 Subject: Method question In-Reply-To: References: Message-ID: Hi Peter, This was my original approach but the problem is similar to what I find here. I only get partial information when I start the combination of clicking and dragging the mouse from outside of the graphic --> across the graphic --> outside of the graphic again. Maybe the messages being triggered aren't being received. I will try other combinations to see what happens. thanks, Glen On Tue, Nov 9, 2010 at 12:38 PM, Peter Brigham MD wrote: > On Nov 9, 2010, at 1:48 PM, Glen Bojsza wrote: > > I have a problem which I am not certain which method is valid or should be >> used (with Rev / Livecode there are sometimes too many ways of achieving a >> goal). >> >> I have a graphic on a card left 62 right 462. >> >> My objective is to allow a user to left click and drag across the graphic >> as >> if selecting a section of it. >> >> I need start left,top,right,bottom and end left,top,right,bottom. >> >> The only interest is knowing the start of the drag when inside the graphic >> and the end of the drag inside the graphic... with the following caveats. >> >> >> - The user may start the drag either outside the graphic and then >> continue the drag into the graphic (which is the start point) or start >> the >> drag inside the graphic which would be the start point. >> - The user may release the mouse button inside the graphic which >> indicates the stop point or release the mouse button outside the graphic >> where the stop point is at the point of the mouse leaving the graphic. >> >> >> This seems like it should be simple but I am getting tied down but trying >> to >> over complicate it? >> >> This is for Windows and Linux . >> >> Any elegant or simple solutions out there? >> > > Would this do it? > > local uStartPoint, uEndPoint > > on mouseenter > if the mouse is down then > put the mouseloc into uStartPoint > end if > end mouseenter > > on mouseleave > if the mouse is down then > put the mouseloc into uEndPoint > end if > end mouseleave > > on mousedown > put the mouseloc into uStartPoint > end mousedown > > on mouseup > put the mouseloc into uEndPoint > end mouseup > > Then use the script local variables in whatever handlers for your own > purposes. > > -- Peter > > Peter M. Brigham > pmbrig at gmail.com > http://home.comcast.net/~pmbrig > > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From DunbarX at aol.com Tue Nov 9 15:19:07 2010 From: DunbarX at aol.com (DunbarX at aol.com) Date: Tue, 9 Nov 2010 15:19:07 EST Subject: Method question Message-ID: Hi. Check out the "mouseMove" message, the "mouseDown" message, "the clickLoc" function, and especially all their related links. You'll get it done quickly. Craig Newman From revdev at pdslabs.net Tue Nov 9 15:20:22 2010 From: revdev at pdslabs.net (Phil Davis) Date: Tue, 09 Nov 2010 12:20:22 -0800 Subject: Method question In-Reply-To: References: <4CD9A0B6.3000807@pdslabs.net> Message-ID: <4CD9AD06.3000006@pdslabs.net> Ah! I overlooked that. Here's a fix: -- card script -- local h1, h2, v1, v2, wasWithinGrc on mouseDown put false into wasWithinGrc put the clickH into h1 put the clickV into v1 end mouseDown on mouseMove h,v if h,v is within the rect of grc 1 then put true into wasWithinGrc end mouseMove on mouseUp -- exit if mouse never entered the grc if wasWithinGrc = true then put the mouseH into h2 put the mouseV into v2 put grcDragRegion() else put empty end if end mouseUp function grcDragRegion -- define mouse drag rect put min(h1,h2) into tMouseLeft put max(h1,h2) into tMouseRight put min(v1,v2) into tMouseTop put max(v1,v2) into tMouseBottom -- define overlap of mouse drag rect & grc rect put max(tMouseLeft, the left of grc 1) into item 1 of tOverlapRect put max(tMouseTop, the top of grc 1) into item 2 of tOverlapRect put min(tMouseRight, the right of grc 1) into item 3 of tOverlapRect put min(tMouseBottom, the bottom of grc 1) into item 4 of tOverlapRect -- return it return tOverlapRect end grcDragRegion On 11/9/10 11:57 AM, Glen Bojsza wrote: > Hi Phil, > > Yes it works BUT it doesn't constrain itself to the graphic. > > I want it to only to report the points if the user includes the graphic when > they d their drag... as it currently stands it reports coordinates even if > the user does not drag across the graphic. > > But other that that it is total a different perspective on how I was looking > at the problem... I was too focused on the graphic. > > thanks, > > Glen > > On Tue, Nov 9, 2010 at 12:27 PM, Phil Davis wrote: > >> Hi Glen, >> >> See if this works: >> >> >> -- card script -- >> >> local h1, h2, v1, v2 >> >> >> on mouseDown >> put the clickH into h1 >> put the clickV into v1 >> end mouseDown >> >> >> on mouseUp >> put the mouseH into h2 >> put the mouseV into v2 >> put grcDragRegion() >> end mouseUp >> >> >> function grcDragRegion >> -- define mouse drag rect >> put min(h1,h2) into tMouseLeft >> put max(h1,h2) into tMouseRight >> put min(v1,v2) into tMouseTop >> put max(v1,v2) into tMouseBottom >> >> -- define overlap of mouse drag rect& grc rect >> put max(tMouseLeft, the left of grc 1) into item 1 of tOverlapRect >> put max(tMouseTop, the top of grc 1) into item 2 of tOverlapRect >> put min(tMouseRight, the right of grc 1) into item 3 of tOverlapRect >> put min(tMouseBottom, the bottom of grc 1) into item 4 of tOverlapRect >> >> -- return it >> return tOverlapRect >> end grcDragRegion >> >> Phil Davis >> >> >> >> On 11/9/10 10:48 AM, Glen Bojsza wrote: >> >>> I have a problem which I am not certain which method is valid or should be >>> used (with Rev / Livecode there are sometimes too many ways of achieving a >>> goal). >>> >>> I have a graphic on a card left 62 right 462. >>> >>> My objective is to allow a user to left click and drag across the graphic >>> as >>> if selecting a section of it. >>> >>> I need start left,top,right,bottom and end left,top,right,bottom. >>> >>> The only interest is knowing the start of the drag when inside the graphic >>> and the end of the drag inside the graphic... with the following caveats. >>> >>> >>> - The user may start the drag either outside the graphic and then >>> continue the drag into the graphic (which is the start point) or start >>> the >>> drag inside the graphic which would be the start point. >>> - The user may release the mouse button inside the graphic which >>> indicates the stop point or release the mouse button outside the >>> graphic >>> where the stop point is at the point of the mouse leaving the graphic. >>> >>> >>> This seems like it should be simple but I am getting tied down but trying >>> to >>> over complicate it? >>> >>> This is for Windows and Linux . >>> >>> Any elegant or simple solutions out there? >>> _______________________________________________ >>> use-revolution mailing list >>> use-revolution at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-revolution >>> >>> >> -- >> Phil Davis >> >> PDS Labs >> Professional Software Development >> http://pdslabs.net >> >> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net From gbojsza at gmail.com Tue Nov 9 15:33:31 2010 From: gbojsza at gmail.com (Glen Bojsza) Date: Tue, 9 Nov 2010 13:33:31 -0700 Subject: Method question In-Reply-To: <4CD9AD06.3000006@pdslabs.net> References: <4CD9A0B6.3000807@pdslabs.net> <4CD9AD06.3000006@pdslabs.net> Message-ID: Yes this works correctly. Also, I took Peter's solution and found that starting a mouseUp outside the graphic does not report anything because the graphic has it's own mouseUp (and viceversa with mouseDown). The fix for this is to do a mouseUp and mouseDown for the card and determine if the mouseloc is within the graphic. So both solutions are applicable and different in their approach. I will expand on this to make a "zoom" feature for the graphing packages allowing my end user to easily "zoom" into data graphs they have interest in. All the best! Glen On Tue, Nov 9, 2010 at 1:20 PM, Phil Davis wrote: > Ah! I overlooked that. Here's a fix: > > > -- card script -- > > local h1, h2, v1, v2, wasWithinGrc > > > on mouseDown > put false into wasWithinGrc > > put the clickH into h1 > put the clickV into v1 > end mouseDown > > > on mouseMove h,v > if h,v is within the rect of grc 1 > then put true into wasWithinGrc > end mouseMove > > > on mouseUp > -- exit if mouse never entered the grc > if wasWithinGrc = true then > > put the mouseH into h2 > put the mouseV into v2 > put grcDragRegion() > else > put empty > end if > > end mouseUp > > > function grcDragRegion > -- define mouse drag rect > put min(h1,h2) into tMouseLeft > put max(h1,h2) into tMouseRight > put min(v1,v2) into tMouseTop > put max(v1,v2) into tMouseBottom > > -- define overlap of mouse drag rect & grc rect > put max(tMouseLeft, the left of grc 1) into item 1 of tOverlapRect > put max(tMouseTop, the top of grc 1) into item 2 of tOverlapRect > put min(tMouseRight, the right of grc 1) into item 3 of tOverlapRect > put min(tMouseBottom, the bottom of grc 1) into item 4 of tOverlapRect > > -- return it > return tOverlapRect > end grcDragRegion > > > > On 11/9/10 11:57 AM, Glen Bojsza wrote: > >> Hi Phil, >> >> Yes it works BUT it doesn't constrain itself to the graphic. >> >> I want it to only to report the points if the user includes the graphic >> when >> they d their drag... as it currently stands it reports coordinates even if >> the user does not drag across the graphic. >> >> But other that that it is total a different perspective on how I was >> looking >> at the problem... I was too focused on the graphic. >> >> thanks, >> >> Glen >> >> On Tue, Nov 9, 2010 at 12:27 PM, Phil Davis wrote: >> >> Hi Glen, >>> >>> See if this works: >>> >>> >>> -- card script -- >>> >>> local h1, h2, v1, v2 >>> >>> >>> on mouseDown >>> put the clickH into h1 >>> put the clickV into v1 >>> end mouseDown >>> >>> >>> on mouseUp >>> put the mouseH into h2 >>> put the mouseV into v2 >>> put grcDragRegion() >>> end mouseUp >>> >>> >>> function grcDragRegion >>> -- define mouse drag rect >>> put min(h1,h2) into tMouseLeft >>> put max(h1,h2) into tMouseRight >>> put min(v1,v2) into tMouseTop >>> put max(v1,v2) into tMouseBottom >>> >>> -- define overlap of mouse drag rect& grc rect >>> put max(tMouseLeft, the left of grc 1) into item 1 of tOverlapRect >>> put max(tMouseTop, the top of grc 1) into item 2 of tOverlapRect >>> put min(tMouseRight, the right of grc 1) into item 3 of tOverlapRect >>> put min(tMouseBottom, the bottom of grc 1) into item 4 of tOverlapRect >>> >>> -- return it >>> return tOverlapRect >>> end grcDragRegion >>> >>> Phil Davis >>> >>> >>> >>> On 11/9/10 10:48 AM, Glen Bojsza wrote: >>> >>> I have a problem which I am not certain which method is valid or should >>>> be >>>> used (with Rev / Livecode there are sometimes too many ways of achieving >>>> a >>>> goal). >>>> >>>> I have a graphic on a card left 62 right 462. >>>> >>>> My objective is to allow a user to left click and drag across the >>>> graphic >>>> as >>>> if selecting a section of it. >>>> >>>> I need start left,top,right,bottom and end left,top,right,bottom. >>>> >>>> The only interest is knowing the start of the drag when inside the >>>> graphic >>>> and the end of the drag inside the graphic... with the following >>>> caveats. >>>> >>>> >>>> - The user may start the drag either outside the graphic and then >>>> continue the drag into the graphic (which is the start point) or >>>> start >>>> the >>>> drag inside the graphic which would be the start point. >>>> - The user may release the mouse button inside the graphic which >>>> indicates the stop point or release the mouse button outside the >>>> graphic >>>> where the stop point is at the point of the mouse leaving the >>>> graphic. >>>> >>>> >>>> This seems like it should be simple but I am getting tied down but >>>> trying >>>> to >>>> over complicate it? >>>> >>>> This is for Windows and Linux . >>>> >>>> Any elegant or simple solutions out there? >>>> _______________________________________________ >>>> use-revolution mailing list >>>> use-revolution at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-revolution >>>> >>>> >>>> -- >>> Phil Davis >>> >>> PDS Labs >>> Professional Software Development >>> http://pdslabs.net >>> >>> _______________________________________________ >>> use-revolution mailing list >>> use-revolution at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-revolution >>> >>> _______________________________________________ >> use-revolution mailing list >> use-revolution at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> >> > -- > Phil Davis > > PDS Labs > Professional Software Development > http://pdslabs.net > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From admin at FlexibleLearning.com Tue Nov 9 15:37:38 2010 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Tue, 9 Nov 2010 20:37:38 -0000 Subject: Beachball cursor Help In-Reply-To: <20101109201027.E736B288384@mail.runrev.com> Message-ID: Not sure who began this thread, but I have a 'running cheetah' using sequential frames if anyone wants to play with it. Not rocket science and not a cursor, but does show how smooth the engine is! pls apply off list. Hugh Senior FLCo From gbojsza at gmail.com Tue Nov 9 15:38:17 2010 From: gbojsza at gmail.com (Glen Bojsza) Date: Tue, 9 Nov 2010 13:38:17 -0700 Subject: Method question In-Reply-To: References: Message-ID: Yes this is true and there are several others that could apply as well. As I mentioned in my initial email there are many solutions and I wanted to get other people's perspective on their approach... this gives me freshness and a more rounded base. I could spend days in the dictionary and days coming up with good or bad methods so it is always nice that people on this list are willing to help (hopefully it helps more than just myself). Glen On Tue, Nov 9, 2010 at 1:19 PM, wrote: > Hi. > > Check out the "mouseMove" message, the "mouseDown" message, "the clickLoc" > function, and especially all their related links. You'll get it done > quickly. > > Craig Newman > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From tsj at unimelb.edu.au Tue Nov 9 15:52:41 2010 From: tsj at unimelb.edu.au (Terry Judd) Date: Wed, 10 Nov 2010 07:52:41 +1100 Subject: Saving/importing custom controls to/from file In-Reply-To: <4CD943E3.2090602@fourthworld.com> Message-ID: On 9/11/10 11:51 PM, "Richard Gaskin" wrote: > Terry Judd wrote: > >> Seems like it might be a bit simpler if I can suck an object >> straight out of a networked database onto the clipboard and paste >> it when and where I want it. Easier to update/maintain and less >> hassle than loading stacks, making sure the right stack has focus >> and fiddling with object names and ids and the like. > > copy to > > Takes any object from any stack and puts it where you want it, leaving > the user's Clipboard intact. > >> There are undoubtedly some interesting implications for RevMobile! > > Many uses - you can copy between standalones, for instance. I copy > between Rev and MC regularly since native object persistence in the > public Clipboard was implemented. > > But why especially useful for RevMobile? It seems like a simple and fairly robust method for customising/modifying an existing application. Terry... > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne From monte at sweattechnologies.com Tue Nov 9 16:16:05 2010 From: monte at sweattechnologies.com (Monte Goulding) Date: Wed, 10 Nov 2010 08:16:05 +1100 Subject: Indenting Challenge In-Reply-To: References: Message-ID: >> And the thing that really makes this difficult is the fact that the text >> needs to be directly editable by users (cannot be in a locked field). >> >> Any suggestions on how I might tackle this? > > Can it be restricted to only editing one bullet at a time, or does the user > need the ability to click in one bullet's text and drag up or down and > select the text from other bullets as well? > > The reason I ask is that you might be able to get away with a highly > customized datagrid - since each "row" is its own field, you could apply the > margins/indents you want - plus you could have the expand/collapse toggle > available as well. I haven't done this myself, but maybe it's a possible > direction to try. I vote for this one. Each row of the datagrid would become a paragraph and you could apply styles, indents, whatever you want. You would just need to implement row creation on returnInField with indent inherited from the current row, resizing on keyup and support arrowkeying between the end of the text in one row and the start of the text in the next. Cheers Monte From ambassador at fourthworld.com Tue Nov 9 16:30:26 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 09 Nov 2010 13:30:26 -0800 Subject: Saving/importing custom controls to/from file Message-ID: <4CD9BD72.8070709@fourthworld.com> Terry Judd wrote: > On 9/11/10 11:51 PM, "Richard Gaskin" wrote: > >> Terry Judd wrote: >> >>> Seems like it might be a bit simpler if I can suck an object >>> straight out of a networked database onto the clipboard and paste >>> it when and where I want it. Easier to update/maintain and less >>> hassle than loading stacks, making sure the right stack has focus >>> and fiddling with object names and ids and the like. >> >> copy to >> >> Takes any object from any stack and puts it where you want it, leaving >> the user's Clipboard intact. >> >>> There are undoubtedly some interesting implications for RevMobile! >> >> Many uses - you can copy between standalones, for instance. I copy >> between Rev and MC regularly since native object persistence in the >> public Clipboard was implemented. >> >> But why especially useful for RevMobile? > > It seems like a simple and fairly robust method for customising/modifying an > existing application. Maybe. While LiveCode makes a lot of things like that easy, it remains to be seen exactly what Apple means by forbidding apps that modify themselves. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From pete at mollysrevenge.com Tue Nov 9 16:37:08 2010 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 9 Nov 2010 13:37:08 -0800 Subject: More on IDE vs Standalone Performance issues In-Reply-To: <20101109201027.E736B288384@mail.runrev.com> References: <20101109201027.E736B288384@mail.runrev.com> Message-ID: <543849F2-C65E-4C21-B170-B8C397E86CC0@mollysrevenge.com> Right now, it's all part of a pretty large application but I think I can create a simple test stack with one card in it, although you'll still need the SQLite database. I haven't posted stack files before - how do I do that? Pete Haworth On Nov 9, 2010, at 12:10 PM, use-revolution-request at lists.runrev.com wrote: > Date: Tue, 9 Nov 2010 10:26:39 -0800 > From: Bob Sneidar > Subject: Re: More on IDE vs Standalone Performance issues > To: How to use Revolution > Message-ID: <6F5B0F5E-E1A5-4C49-93AF-BCA8C73FC54A at twft.com> > Content-Type: text/plain; charset=us-ascii > > I think you are on to something there Peter. This may be something > for the bug reports. Is there a test stack with the debug written > into it that you could post so we can try it on our end? > > Bob From wildelec at bossig.com Tue Nov 9 22:32:58 2010 From: wildelec at bossig.com (Wilde Electric) Date: Tue, 9 Nov 2010 19:32:58 -0800 Subject: Code for Database Transaction Processing Message-ID: Hello, I have been unable to find any reference to code examples for doing Transaction Processing with SQLite DB I have only found a note from Trevor revExecuteSQL to BEGIN TRANSACTION etc without an example. Could someone provide a code example that starts with the BEGIN TRANSACTION and finishing with COMMIT TRANSACTION? Thank You for your help, David J. Lamp From scott at elementarysoftware.com Wed Nov 10 00:23:22 2010 From: scott at elementarysoftware.com (Scott Morrow) Date: Tue, 9 Nov 2010 21:23:22 -0800 Subject: Beachball cursor Help In-Reply-To: References: Message-ID: <6E8CB7B0-BBCD-4C80-809A-B8248BB34A05@elementarysoftware.com> Hello Joe, This isn't "more colorful" but Shao Sean's great ssMacExternal gives you access to built-in OSX cursors including the animated "counting hand" cursor. Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email scott at elementarysoftware.com office 1-800-360-734-4701 mobile 360-920-0715 ------------------------------------------------------ On Nov 8, 2010, at 7:46 AM, Joe Lewis Wilkins wrote: > Hi all, > > Instead of the b/w cursor "busy", I'd love to use the more colorful beachball. Anyone know how that is accomplished? > TIA > Joe Wilkins > > > > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From pete at mollysrevenge.com Wed Nov 10 02:02:24 2010 From: pete at mollysrevenge.com (Peter Haworth) Date: Tue, 9 Nov 2010 23:02:24 -0800 Subject: Code for Database Transaction Processing In-Reply-To: References: Message-ID: This isn't specific example including complete code but the general flow is: revExecuteSQL gDBID,"BEGIN TRANSACTION" . revdbExecute if error revRollBackDatabase gDBID exit end if . revdbExecute if error revRollBackDatabase gDBID exit end if . repeat the above for whatever SQL commands you need. . revdb_Commit(gDBID) Note that if you don't issue the BEGIN and COMMIT commands, SQLite automatically treats each individual db update command you give it as a separate transaction. There's a good write up of the SQLite transaction details at http://www.sqlite.org/lang_transaction.html . Pete Haworth On Nov 9, 2010, at 7:32 PM, Wilde Electric wrote: > Hello, > > I have been unable to find any reference to code examples for doing > Transaction Processing with SQLite DB > > I have only found a note from Trevor revExecuteSQL to BEGIN > TRANSACTION etc > without an example. > > Could someone provide a code example that starts with the BEGIN > TRANSACTION > and finishing with COMMIT TRANSACTION? > > Thank You for your help, > > David J. Lamp From pepetoo at cox.net Wed Nov 10 02:42:16 2010 From: pepetoo at cox.net (pepetoo at cox.net) Date: Tue, 9 Nov 2010 23:42:16 -0800 Subject: Beachball cursor Help In-Reply-To: <6E8CB7B0-BBCD-4C80-809A-B8248BB34A05@elementarysoftware.com> Message-ID: <20101110024216.P0E4X.18599.imail@fed1rmwml30> Thanks Scott. Joe Wilkins ---- Scott Morrow wrote: > Hello Joe, > > This isn't "more colorful" but Shao Sean's great ssMacExternal gives you access to built-in OSX cursors including the animated "counting hand" cursor. > > Scott Morrow > > Elementary Software > (Now with 20% less chalk dust!) > web http://elementarysoftware.com/ > email scott at elementarysoftware.com > office 1-800-360-734-4701 > mobile 360-920-0715 > ------------------------------------------------------ > > > > > > On Nov 8, 2010, at 7:46 AM, Joe Lewis Wilkins wrote: > > > Hi all, > > > > Instead of the b/w cursor "busy", I'd love to use the more colorful beachball. Anyone know how that is accomplished? > > TIA > > Joe Wilkins > > > > > > > > > > > > _______________________________________________ > > use-revolution mailing list > > use-revolution at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-revolution From scott at tactilemedia.com Wed Nov 10 02:58:22 2010 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 09 Nov 2010 23:58:22 -0800 Subject: More on Beachballs (was Beachball cursor Help) In-Reply-To: <6E8CB7B0-BBCD-4C80-809A-B8248BB34A05@elementarysoftware.com> Message-ID: Recently, Joe Lewis Wilkins wrote: > Instead of the b/w cursor "busy", I'd love to use the more colorful beachball. > Anyone know how that is accomplished? I thought this would be a fun graphics challenge and created a demo stack that shows two methods of creating an OS X wait cursor (otherwise known as "spinning beachball", "pizza of death", "pinwheel of death", etc). The first option is a windowShape hack which is quite smooth looking (here) and could work in any recent version of LiveCode. The second option uses the enhanced cursor property only found in LiveCode 4.5 and later. As explained in the demo stack, it appears that repeatedly setting a cursor to the ID of an image results in a cursor that flashes -- seems like something that needs to be fixed/cached at the engine level. Option 1 has its drawbacks as well (see the stack info). Anyway, the stack might be useful in other areas, and you can get it by executing the following in your Rev message box (note the following is not a Web link, watch line wrap): go url "http://www.tactilemedia.com/site_files/downloads/custom_busy_cursor.rev" (Not tested in Windows because Windows has its own objects-of-death.) Regards, Scott Rossi Creative Director Tactile Media, UX Design From rene.micout at numericable.com Wed Nov 10 03:22:25 2010 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Wed, 10 Nov 2010 09:22:25 +0100 Subject: More on Beachballs (was Beachball cursor Help) In-Reply-To: References: Message-ID: <03FD44F4-5631-4C50-B925-7CA4660C5F06@numericable.com> Good ! Le 10 nov. 2010 ? 08:58, Scott Rossi a ?crit : > Recently, Joe Lewis Wilkins wrote: > >> Instead of the b/w cursor "busy", I'd love to use the more colorful beachball. >> Anyone know how that is accomplished? > > I thought this would be a fun graphics challenge and created a demo stack > that shows two methods of creating an OS X wait cursor (otherwise known as > "spinning beachball", "pizza of death", "pinwheel of death", etc). The > first option is a windowShape hack which is quite smooth looking (here) and > could work in any recent version of LiveCode. The second option uses the > enhanced cursor property only found in LiveCode 4.5 and later. As explained > in the demo stack, it appears that repeatedly setting a cursor to the ID of > an image results in a cursor that flashes -- seems like something that needs > to be fixed/cached at the engine level. Option 1 has its drawbacks as well > (see the stack info). > > Anyway, the stack might be useful in other areas, and you can get it by > executing the following in your Rev message box (note the following is not a > Web link, watch line wrap): > > go url > "http://www.tactilemedia.com/site_files/downloads/custom_busy_cursor.rev" > > (Not tested in Windows because Windows has its own objects-of-death.) > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From revolution at derbrill.de Wed Nov 10 05:49:31 2010 From: revolution at derbrill.de (Malte Brill) Date: Wed, 10 Nov 2010 11:49:31 +0100 Subject: iRev and theFacebook API. Anyone? In-Reply-To: <20101109180007.D65722882DD@mail.runrev.com> References: <20101109180007.D65722882DD@mail.runrev.com> Message-ID: <37E7BFB7-B236-4827-8ED6-1FA027B89AA9@derbrill.de> Hi all, has anyone happened to have started on working on communicating with the Facebook API from iRev? I?d appreciate any info I can get. All the best, Malte From toolbook at kestner.de Wed Nov 10 06:04:24 2010 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 10 Nov 2010 12:04:24 +0100 Subject: slash and backslash in effective filename - why? Message-ID: <000301cb80c7$0e3877a0$2aa966e0$@de> Hi all, LiveCode 4.5.1, Win 7 I have two stacks, a main stack and a second stack as a separate stack file where I switch to by go to stack. In both preopenstack handlers I create some working pathes by extracting items out of my effective filename. To handle the items I have to set the itemdel to slash. >From now to then while testing some other features suddenly I didn't got any pathes returned anymore, because of the itemdel slash. When asking for the effective filename of this stack, I get in the first stack a path with slashes and in the second stack with backslashes and therefore the items of my effective filename where empty. I tested with Rev 3.5, because I thought it has something to do with LiveCode but the path in my second stack contains also backslashes - BUT nevertheless the delimeter slash works and it returns chunks of my path. Then I created two new empty stacks, jumped with go from one to another, but got slash pathes on both stacks. My workaround now is to set the itemdel to backslash on windows, but this can't be the straight way, because the last years it worked with slash as itemdel on both systems. Has anybody encountered this behavior or has an idea what may cause this behavior? Thanks Tiemo From m.schonewille at economy-x-talk.com Wed Nov 10 06:12:35 2010 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 10 Nov 2010 12:12:35 +0100 Subject: iRev and theFacebook API. Anyone? In-Reply-To: <37E7BFB7-B236-4827-8ED6-1FA027B89AA9@derbrill.de> References: <20101109180007.D65722882DD@mail.runrev.com> <37E7BFB7-B236-4827-8ED6-1FA027B89AA9@derbrill.de> Message-ID: <31CEA581-0ADA-45D3-A535-2811DD797C93@economy-x-talk.com> Hi Malte, I did this using PHP. In order to talk to the Facebook APIs from iRev, you'd have to port the Facebook libraries to iRev. Anyone with good knowledge of PHP and Revolution could do this, but it is a lot of work. Personally, I'd stay with PHP. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Economy-x-Talk on Facebook now and get a free Color Converter license http://qurl.tk/gn (read the conditions) On 10 nov 2010, at 11:49, Malte Brill wrote: > Hi all, > > has anyone happened to have started on working on communicating with the Facebook API from iRev? > I?d appreciate any info I can get. > > All the best, > > Malte From monte at sweattechnologies.com Wed Nov 10 06:27:51 2010 From: monte at sweattechnologies.com (Monte Goulding) Date: Wed, 10 Nov 2010 22:27:51 +1100 Subject: iRev and theFacebook API. Anyone? In-Reply-To: <37E7BFB7-B236-4827-8ED6-1FA027B89AA9@derbrill.de> References: <20101109180007.D65722882DD@mail.runrev.com> <37E7BFB7-B236-4827-8ED6-1FA027B89AA9@derbrill.de> Message-ID: Hi Malte I've done an open graph protocol library for revIgniter: http://goulding.ws/2010/09/27/revigniter-open-graph-protocol-library/ With that you can use the standard like buttons etc. When I get a chance which won't be for a while I will start in on the facebook api. In the meantime if you want authentication or stream publishing then probably look at the JavaScript SDK or the PHP one. The docs are terrible though. Cheers Monte On 10/11/2010, at 9:49 PM, Malte Brill wrote: > Hi all, > > has anyone happened to have started on working on communicating with the Facebook API from iRev? > I?d appreciate any info I can get. > > All the best, > > Malte_______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From sarah.reichelt at gmail.com Wed Nov 10 07:44:56 2010 From: sarah.reichelt at gmail.com (Sarah Reichelt) Date: Wed, 10 Nov 2010 22:44:56 +1000 Subject: OT: Hardware recommendation for graphics card? In-Reply-To: <201011091632.00122.palcibiades-first@yahoo.co.uk> References: <201011091632.00122.palcibiades-first@yahoo.co.uk> Message-ID: Peter, I am a Mac person but my sons use Windows PCs for gaming, so since nobody else had chimed in, I'll have a go. From what they tell me, integrated graphics are not good enough for any high-end graphics processing, which I would assume includes Photoshop. With the newly released MacBook Air, apparently Apple went for a lower end processor so they could include a separate graphics card as they reckoned this gave better performance than a faster chip with integrated graphics. But I don't know how much of this performance is due to Grand Central distributing the processing between the GPU & the CPU. Anyway, I recommend you research graphics cards - Nvidia or ATI seem to be the favourites at the moment - and spend the money there rather than on a faster CPU with integrated graphics. Cheers, Sarah On Wed, Nov 10, 2010 at 2:31 AM, Peter Alcibiades wrote: > Friend of mine asked for advice on what sort of graphics card to put in a > machine he is putting together for his kid. ?It will be i5 probably, and he > wants to get something that will be respectable with photoshop processing. > An i3 of mine with onboard graphics was definitely not fast enough for him. > > Is i5 even enough, should he go for i7? ?Its not my area of expertise. ?I > am not even sure about the relative contributions of the graphics card and > the processor in this. > > Any suggestions gratefully received. ?Money is an issue, but he wants > something that will do a decent job first and foremost. > > Peter From claudi.c at fiberworld.nl Wed Nov 10 08:15:03 2010 From: claudi.c at fiberworld.nl (Claudi Cornaz) Date: Wed, 10 Nov 2010 14:15:03 +0100 Subject: Help: Id's can be completly unreliable In-Reply-To: <03FD44F4-5631-4C50-B925-7CA4660C5F06@numericable.com> References: <03FD44F4-5631-4C50-B925-7CA4660C5F06@numericable.com> Message-ID: <43365C42-383A-47CE-A817-4792F6454C1B@fiberworld.nl> Hallo all, I have a big, and as yet, unsolvable problem. I use quite some tmplt's (groups) I keep in a seperate stack and when I need one I copy this tmplt to the card or group where I need it. So far all works as expected. Now comes the problem: Very often one or more controls of this copyed tmplt or the copyed tmplt itself will get an ID of 0. This is more than a nuisance as I keep discovering more and more problems with controls with an ID of 0. The first problem is the long id the IDE/engine places in the it variable. If there is a ID of 0 in it, it will be invalid. Which means if you do the following it will throw a error saying the control doesn't exist. on mouseUp copy grp "myTmplt" of cd 1 of this stack to grp "myGrp" of cd 2 of this stack set the name of it to "test" -- it: group id 0 of group id 1012 of cd id 1002 of stack "myStack" end mouseUp I had to change a lot of code because of this. I couldn't be sure the long id in the it var was reliable, because it might contain a ID of 0. This problem can be solved as follows: on MouseUp put the number of controls of grp "myGrp" of cd 2 of this stack + 1 into tCount copy grp "myTmplt" of cd 1 of this stack to grp "myGrp" of cd 2 of this stack set the name of control tCount of grp "myGrp" of cd 2 of this stack to "test" end mouseUp Now it doesn't matter if I copy a image/field or a group consisting of many controls, since tCount will point to the next layer within the destination, which will be the group in case a group get's copyed. (you can't use the last control of grp "myGrp" it will throw a error on compiling and anyway if you copy a grp the last control will point to the control with the highest layer within the copyed grp) Further if you use tmplt's which you copy, always and I mean always, use long names to point to a specific control, as you just can't trust the ID or the long ID. (a major rewrite of my code) Ok this is a nuisance, but there is at least a solution/workaround to it. Now I discovered a new problem with a control which has gotten the ill fated ID of 0. If it happens to be a field you can't get it's formattedWith/Height etc. I simply can't find a way to get at this, it always returns 0 put the width of fld myLongNameFieldReference gives: 220 put the value of yLongNameFieldReference gives: This is some text put the formattedWidth of fld myLongNameFieldReference gives: 0 So the field exists (with a ID of 0) and it has text in it. But I just can't get the formattedWidth of it . I found in a rev lib stack a comment that the engine sometimes returns 0 as ID for controls and that they leave it at the moment. The problem is I now have a card with sometimes 10 or more controls with a ID of 0 which gives all kinds of problems. Does anyone know a trick or workaround to get the formattedWidth of my field? Please. This is a complete stopper for me at the moment since I can't format my field and I use dozens of them which need to be formatted depending on there content. Hoping someone of you bright minds knows/finds something clever to solve my problem. Best wishes, Claudi From richmondmathewson at gmail.com Wed Nov 10 09:20:17 2010 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 10 Nov 2010 16:20:17 +0200 Subject: [OT] Microsoft Creature House Expression 3 Message-ID: <4CDAAA21.7050505@gmail.com> This is a vector graphics program that is offered FREE by Microsoft for both Macintosh and Windows. I have just installed it on Linux and can cheerfully say that it runs perfectly under WINE 1.3.6. Well worth a "spin". From claudi.c at fiberworld.nl Wed Nov 10 09:42:31 2010 From: claudi.c at fiberworld.nl (Claudi Cornaz) Date: Wed, 10 Nov 2010 15:42:31 +0100 Subject: Help: Id's can be completly unreliable In-Reply-To: <43365C42-383A-47CE-A817-4792F6454C1B@fiberworld.nl> References: <03FD44F4-5631-4C50-B925-7CA4660C5F06@numericable.com> <43365C42-383A-47CE-A817-4792F6454C1B@fiberworld.nl> Message-ID: Hi, After some more tinkering I fortunatly solved the formattedWidth problem. Apparently you have to be on the card containing the field to get the formattedWidth/Height etc, otherwise it will return 0. This is mentioned in the docs, so I could have 'known' this. I am glad I got this working so I can continue. But still be warned and prepared to deal with the ID 0 problems you may encounter. Best wishes, Claudi From ambassador at fourthworld.com Wed Nov 10 09:45:37 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 10 Nov 2010 06:45:37 -0800 Subject: Help: Id's can be completly unreliable Message-ID: <4CDAB011.8040102@fourthworld.com> Claudi Cornaz wrote: > After some more tinkering I fortunatly solved the formattedWidth > problem. > Apparently you have to be on the card containing the field to get > the formattedWidth/Height etc, otherwise it will return 0. > > This is mentioned in the docs, so I could have 'known' this. > > I am glad I got this working so I can continue. > > But still be warned and prepared to deal with the ID 0 problems you > may encounter. What are the "ID 0" problems? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From bobs at twft.com Wed Nov 10 11:47:55 2010 From: bobs at twft.com (Bob Sneidar) Date: Wed, 10 Nov 2010 08:47:55 -0800 Subject: slash and backslash in effective filename - why? In-Reply-To: <000301cb80c7$0e3877a0$2aa966e0$@de> References: <000301cb80c7$0e3877a0$2aa966e0$@de> Message-ID: <65DD5D70-74A8-4EF6-9F4B-88DB480BA759@twft.com> Back slashes are used in netbios network share names. \\my-server\data is how you would refer to a share on a PC using the netbios convention. Apple uses a different method, with fully qualified domain names ex. sbm://my-server.lan/data. Once you have the volume mounted though, you would use the mount point /volumes/data. Might a file you are refrencing be a netbios volume? Bob On Nov 10, 2010, at 3:04 AM, Tiemo Hollmann TB wrote: > Hi all, > > LiveCode 4.5.1, Win 7 > > I have two stacks, a main stack and a second stack as a separate stack file > where I switch to by go to stack. > > In both preopenstack handlers I create some working pathes by extracting > items out of my effective filename. To handle the items I have to set the > itemdel to slash. > > > >> From now to then while testing some other features suddenly I didn't got any > pathes returned anymore, because of the itemdel slash. > > When asking for the effective filename of this stack, I get in the first > stack a path with slashes and in the second stack with backslashes and > therefore the items of my effective filename where empty. > > > > I tested with Rev 3.5, because I thought it has something to do with > LiveCode but the path in my second stack contains also backslashes - BUT > nevertheless the delimeter slash works and it returns chunks of my path. > Then I created two new empty stacks, jumped with go from one to another, but > got slash pathes on both stacks. > > > > My workaround now is to set the itemdel to backslash on windows, but this > can't be the straight way, because the last years it worked with slash as > itemdel on both systems. > > > > Has anybody encountered this behavior or has an idea what may cause this > behavior? > > Thanks > > Tiemo > > > > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From bobs at twft.com Wed Nov 10 11:59:16 2010 From: bobs at twft.com (Bob Sneidar) Date: Wed, 10 Nov 2010 08:59:16 -0800 Subject: slash and backslash in effective filename - why? In-Reply-To: <000301cb80c7$0e3877a0$2aa966e0$@de> References: <000301cb80c7$0e3877a0$2aa966e0$@de> Message-ID: Hmmm... are you trying to use the effective filename to locate a stack inside of a bundle? Bob On Nov 10, 2010, at 3:04 AM, Tiemo Hollmann TB wrote: > Hi all, > > LiveCode 4.5.1, Win 7 > > I have two stacks, a main stack and a second stack as a separate stack file > where I switch to by go to stack. > > In both preopenstack handlers I create some working pathes by extracting > items out of my effective filename. To handle the items I have to set the > itemdel to slash. > > > >> From now to then while testing some other features suddenly I didn't got any > pathes returned anymore, because of the itemdel slash. > > When asking for the effective filename of this stack, I get in the first > stack a path with slashes and in the second stack with backslashes and > therefore the items of my effective filename where empty. > > > > I tested with Rev 3.5, because I thought it has something to do with > LiveCode but the path in my second stack contains also backslashes - BUT > nevertheless the delimeter slash works and it returns chunks of my path. > Then I created two new empty stacks, jumped with go from one to another, but > got slash pathes on both stacks. > > > > My workaround now is to set the itemdel to backslash on windows, but this > can't be the straight way, because the last years it worked with slash as > itemdel on both systems. > > > > Has anybody encountered this behavior or has an idea what may cause this > behavior? > > Thanks > > Tiemo > > > > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From jacque at hyperactivesw.com Wed Nov 10 13:28:24 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 10 Nov 2010 12:28:24 -0600 Subject: Help: Id's can be completly unreliable In-Reply-To: References: <03FD44F4-5631-4C50-B925-7CA4660C5F06@numericable.com> <43365C42-383A-47CE-A817-4792F6454C1B@fiberworld.nl> Message-ID: <4CDAE448.4040002@hyperactivesw.com> On 11/10/10 8:42 AM, Claudi Cornaz wrote: > Hi, > > After some more tinkering I fortunatly solved the formattedWidth problem. > Apparently you have to be on the card containing the field to get > the formattedWidth/Height etc, otherwise it will return 0. > > This is mentioned in the docs, so I could have 'known' this. > > I am glad I got this working so I can continue. > > But still be warned and prepared to deal with the ID 0 problems you may > encounter. ID 0 is the id for all template objects (the templateButton, the templateField, etc.) You shouldn't ever see that ID in controls you create yourself. Did you name your custom templates "templateButton" or "templateField"? If so, then the engine is returning the built-in template ID and not the one you created. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From etcawley at fastmail.fm Wed Nov 10 16:07:18 2010 From: etcawley at fastmail.fm (edward cawley) Date: Wed, 10 Nov 2010 15:07:18 -0600 Subject: standalone image problem In-Reply-To: <20101106170004.6771E288161@mail.runrev.com> References: <20101106170004.6771E288161@mail.runrev.com> Message-ID: <02A86C58-80FF-493F-BAD8-592B9D39D050@fastmail.fm> After thirty odd years of programing in HyperCard/MetaCard/Revolution/LiveCode it's nice to feel like a newbe again, it means I'm still learning. Thanks for all the suggestions, I finally realized that I had forgotten to check the "copy referenced files" box so the media files , the were not placed in the app bundle. The media-images, audio files and a video are all shown. But I still have a problem. I have a number of text files which are loaded successively in a field on a card. None of them load in the standalone. They do not get loaded into the bundle since they are not filenames. This script work fine on the desktop: on putinfo global tt,pname,iiname,az,ttt,z,cdname1,zz put param (1) into az put param (2) into tt put tt&az into ttt put iiname &ttt into z put "file:"& z into zz put URL zz into field "info" on cd tt end putinfo on putHinfo global iiname,az,tt,aaz,ttt,zz put param(1) into az put param(2) into tt put az into ttt put iiname & ttt into aaz put "file:"&aaz into zz put URL zz into field "habinfo" on cd tt end putHinfo az & tt are passed from opencard or button code. Every thing else load so it seems to be finding all the files. That doesn't seem to be the problem. Any other ideas? How do I get the text files in the bundle? > > ------------------------------ > > Message: 13 > Date: Sat, 6 Nov 2010 04:21:14 -0500 > From: edward cawley > Subject: standalone image problem > To: use-revolution at lists.runrev.com > Message-ID: <2E81E117-5C60-4F27-80C3-57D6686A06D1 at fastmail.fm> > Content-Type: text/plain; charset=us-ascii > > > I'm trying to build for both Mac OS X and windows, but I'm concentrating on Mac until I get it to work. I have Snow Leopard installed.The folder structure is ./Resources/map_animation.gif for a typical file I have included the open stack code and the opencard code for one of the cards. I also will include(attached) screen capture of the folders location . As I said the stack works, ie. clik on the field or button and it will go to the next cd, all the text files are read and shown but the images (gif & jpeg), audio, and one video clip do not show. Since it is showing the files it looks like it is finding the files in the folder but not showing them. > > on preopenstack > --set the topleft of this stack to 30,30 > set the defaultfolder to "resources/" > set the decorations of this stack to "title,close" > set the topleft of this stack to 0,0 > set the height of this stack to 750 > set the width of this stack to 1280 > set the loc of this stack to 640,400 > hide menubar > end preopenstack > > on openCard > global pname > set the filename of image 1 to "resources/BKG.paneling.jpg" > set the filename of image 2 to "resources/deck_animation.gif" > set the currenttime of player 1 to 0 > set the filename of player 1 to "resources/river1" > start player 1 > end openCard > > > On Nov 5, 2010, at 11:02 AM, use-revolution-request at lists.runrev.com wrote: > > > Message: 14 > Date: Sat, 6 Nov 2010 10:05:28 +0000 > From: John Dixon > Subject: RE: standalone image problem > To: > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > > Hi Edward... > > Will this work for you ? > > global gtheFolder > > on preopenstack > set itemDel to "/" > put item 1 to -2 of (the effective fileName of this stack) & "/resources" into gtheFolder > set the defaultfolder to gtheFolder > > --set the topleft of this stack to 30,30 > --set the defaultfolder to "resources/" > set the decorations of this stack to "title,close" > set the topleft of this stack to 0,0 > set the height of this stack to 750 > set the width of this stack to 1280 > set the loc of this stack to 640,400 > hide menubar > end preopenstack > > on openCard > global pname > set the filename of image 1 to "./resources/BKG.paneling.jpg" > set the filename of image 2 to "./resources/deck_animation.gif" > set the currenttime of player 1 to 0 > set the filename of player 1 to "./resources/river1" > start player 1 > end openCard > > be well > > Dixie >> From katir at hindu.org Wed Nov 10 16:40:50 2010 From: katir at hindu.org (Sivakatirswami) Date: Wed, 10 Nov 2010 11:40:50 -1000 Subject: Creative Common Copyright Notice in Standalones Message-ID: <4CDB1162.5000105@hindu.org> I'm planning to release a [possibly significant] set of stacks (splash-engine + Mainstack + ePub tools stack) into the "wild" for anyone who has a Rev License to use It is called "Grapple - Simple RCS of InDesign" and partially addresses the huge gap that Adobe left for many publishers when they discontinued Version Cue, leaving many, many shops with no version control. Well, I built one for our own team and everyone loves it. It has it's pros and cons, but if your managing editor and page editors-designers are all really happy with it -- these are men who have been creating books and magazines for 30 years -- it means I must have got something right. We have been using it for 4 issues of Hinduism Today and it is pretty solid now. I wont' be issuing it as a stand alone because there are some localizations required to make it work. Any savvy LiveCoder can handle it... I just created a GUI for a Version Control folder on the LAN server, a mirror in the users local /Documents/Local Version Control. Folder. The rest is simple checks on file status based on file name (no dbase ma!) and use of shell cp and mv to copy, make archives, rename files and launch inDesign. It's lean, no dbase, very little admin overhead and it works. If you were ever an admin for Version Cue (used MySQL on the server) all your headaches disappear with Grapple. I also don't want to get involved in support. It may turn out to be "nothing" or it may be an entry for both RunRev-LiveCode and some developers to break into the in-house publisher's desktop tools market, which is fairly big. Adobe promised to publish an API that big time DAM developers could use. But I don't think it is happening. Once publishers get a taste of what LiveCode can do for their shop (widgets for all kinds of tasks) they will want more. But I also want to make sure that no one else makes it their "proprietary" app. Any Rev developer can take it, use it modify it and even sell it, or bill him-herself as a "Grapple Developer"... and charge for the stacks or the support thereof... but he (or any company that may hire shim) should not be able to "sue" or prevent anyone else from doing the same. Exactly where and how do I put a creative commons license into a stack (normally you enter such in the standalone builder) and which creative commons license do I use and how do you implement it. Do you copy the whole license to an "About" substack" or just have a link to the online Creative Commons License. This Publishing Open Source code is all new to me. Thanks! Sivakatirswami P.S. Any one who has experience with print shops and publications teams who use Adobe products, who also has at least 8 years experience with LiveCode on the Mac, please contact me off list if you are interested in being put a referrals list. If you are also a cross platform developer let me know as the demand for a Windows version will be there coming our of the gate. From claudi.c at fiberworld.nl Wed Nov 10 18:05:33 2010 From: claudi.c at fiberworld.nl (Claudi Cornaz) Date: Thu, 11 Nov 2010 00:05:33 +0100 Subject: Help: Id's can be completly unreliable In-Reply-To: References: <03FD44F4-5631-4C50-B925-7CA4660C5F06@numericable.com> <43365C42-383A-47CE-A817-4792F6454C1B@fiberworld.nl> Message-ID: <59550134-5416-4E0D-B8E2-F87AF1ABAA25@fiberworld.nl> Richard, Referencing a control with a ID 0 and using ID's to reference this control might result in a error (control doesn't exist) but not always. It depends on what you do. Programaticly putting some text in a field with ID 0 (referencing the control with the long id) didn't generate a error but it also didn't put the text in the field, for instance. Same with properties, no error, but also the propertie didn't get set. This makes using ID's not reliable. So to be save, I don't use ID's anymore. It might go well a hundred times but suddenly you might get an error. Sometimes I get 8 out of 10 times a ID of 0 when copying a grp. This also means the it variable might hold a invalid reference to the newly created grp after copying, so you can't use it reliably and you have to use the work around to reference the newly created grp. This problem with the ID of 0 has happened in different stacks and with different kinds of grp's. It drove me quite nuts for a while, as the IDE/engine gave sometimes a error, but not always. This made it difficult to find what's was going on. Jacqueline, The names of the grp's I copy have names like "textPiece" for instance (this is the one I have trouble's with right now) I have to say, this grp belongs to a grp called "textPieceTmplts". I will change this name to see if that will make a difference. Also like I wrote in my first mail, I found in a rev lib stack a comment that the engine sometimes returns 0 as ID for controls so apparently the 'wizards' in Edinburgh know about this. Best wishes, Claudi From jacque at hyperactivesw.com Wed Nov 10 18:20:36 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 10 Nov 2010 17:20:36 -0600 Subject: Help: Id's can be completly unreliable In-Reply-To: <59550134-5416-4E0D-B8E2-F87AF1ABAA25@fiberworld.nl> References: <03FD44F4-5631-4C50-B925-7CA4660C5F06@numericable.com> <43365C42-383A-47CE-A817-4792F6454C1B@fiberworld.nl> <59550134-5416-4E0D-B8E2-F87AF1ABAA25@fiberworld.nl> Message-ID: <4CDB28C4.3010301@hyperactivesw.com> On 11/10/10 5:05 PM, Claudi Cornaz wrote: > The names of the grp's I copy have names like "textPiece" for instance > (this is the one I have trouble's with right now) > I have to say, this grp belongs to a grp called "textPieceTmplts". I > will change this name to see if that will make a difference. > Also like I wrote in my first mail, I found in a rev lib stack a comment > that the engine sometimes returns 0 as ID for controls > so apparently the 'wizards' in Edinburgh know about this. I think you should submit a bug report, and a sample stack if you can make a reliable one. I've never seen a copied object with an ID 0, and I don't think it should happen. Do you remember which rev library had the comment in it? I'd like to see it. You shouldn't have to rename your group, the name you are using is fine. Something else is causing the problem. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Nov 10 18:27:19 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 10 Nov 2010 17:27:19 -0600 Subject: standalone image problem In-Reply-To: <02A86C58-80FF-493F-BAD8-592B9D39D050@fastmail.fm> References: <20101106170004.6771E288161@mail.runrev.com> <02A86C58-80FF-493F-BAD8-592B9D39D050@fastmail.fm> Message-ID: <4CDB2A57.4090706@hyperactivesw.com> On 11/10/10 3:07 PM, edward cawley wrote: > Every thing else load so it seems to be finding all the files. That > doesn't seem to be the problem. Any other ideas? How do I get the > text files in the bundle? You should be able to add any kind of file in the "Copy Files" section of the standalone builder. Alternately you can right-click your standalone app and open the bundle package. Click your way through the folder structure until you find where you want your files to go, and just copy them there. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Wed Nov 10 18:30:37 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 10 Nov 2010 15:30:37 -0800 Subject: Help: Id's can be completly unreliable Message-ID: <4CDB2B1D.8040609@fourthworld.com> Claudi Cornaz wrote: > Referencing a control with a ID 0 and using ID's to reference this > control might result in a error (control doesn't exist) > but not always. It depends on what you do. > Programaticly putting some text in a field with ID 0 (referencing the > control with the long id) didn't generate > a error but it also didn't put the text in the field, for instance. > Same with properties, no error, but also the propertie didn't get set. > This makes using ID's not reliable. > > So to be save, I don't use ID's anymore. It might go well a hundred > times but suddenly you might get an error. > Sometimes I get 8 out of 10 times a ID of 0 when copying a grp. > This also means the it variable might hold a invalid reference to the > newly created grp after copying, so you can't use it reliably > and you have to use the work around to reference the newly created grp. > > This problem with the ID of 0 has happened in different stacks and > with different kinds of grp's. > It drove me quite nuts for a while, as the IDE/engine gave sometimes a > error, but not always. This made it difficult to > find what's was going on. Thanks for the background on that. If you have a recipe for that please submit a bug report, but to be honest I've never seen anything like that in 12 years of working with this engine. IDs normally begin at 1001 and increment from there for every object added to the stack. Given how many people use the DataGrid, which copies groups many times during its operation, I suspect this bug is not easy to reproduce or we'd be seeing reports of DG failures. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From bobs at twft.com Wed Nov 10 18:42:59 2010 From: bobs at twft.com (Bob Sneidar) Date: Wed, 10 Nov 2010 15:42:59 -0800 Subject: Help: Id's can be completly unreliable In-Reply-To: <4CDB2B1D.8040609@fourthworld.com> References: <4CDB2B1D.8040609@fourthworld.com> Message-ID: Also I'd like to chip in here with another of my famous shots in the dark. If you have any handlers that intercept things like newCard or newButton and you don't pass the event in your handler, that could cause some problems as well, don't you think? Since no one else seems to be seeing this, I'd create a simple stack from scratch, and then try to reproduce the problem reliably. Bob On Nov 10, 2010, at 3:30 PM, Richard Gaskin wrote: > Claudi Cornaz wrote: > >> Referencing a control with a ID 0 and using ID's to reference this >> control might result in a error (control doesn't exist) >> but not always. It depends on what you do. >> Programaticly putting some text in a field with ID 0 (referencing the >> control with the long id) didn't generate >> a error but it also didn't put the text in the field, for instance. >> Same with properties, no error, but also the propertie didn't get set. >> This makes using ID's not reliable. >> >> So to be save, I don't use ID's anymore. It might go well a hundred >> times but suddenly you might get an error. >> Sometimes I get 8 out of 10 times a ID of 0 when copying a grp. >> This also means the it variable might hold a invalid reference to the >> newly created grp after copying, so you can't use it reliably >> and you have to use the work around to reference the newly created grp. >> >> This problem with the ID of 0 has happened in different stacks and >> with different kinds of grp's. >> It drove me quite nuts for a while, as the IDE/engine gave sometimes a >> error, but not always. This made it difficult to >> find what's was going on. > > Thanks for the background on that. > > If you have a recipe for that please submit a bug report, but to be honest I've never seen anything like that in 12 years of working with this engine. > > IDs normally begin at 1001 and increment from there for every object added to the stack. > > Given how many people use the DataGrid, which copies groups many times during its operation, I suspect this bug is not easy to reproduce or we'd be seeing reports of DG failures. > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From monte at sweattechnologies.com Wed Nov 10 18:54:16 2010 From: monte at sweattechnologies.com (Monte Goulding) Date: Thu, 11 Nov 2010 10:54:16 +1100 Subject: Help: Id's can be completly unreliable In-Reply-To: <4CDB2B1D.8040609@fourthworld.com> References: <4CDB2B1D.8040609@fourthworld.com> Message-ID: <0F6958F0-CDBA-42D1-848F-864067102B4B@sweattechnologies.com> > > Thanks for the background on that. > > If you have a recipe for that please submit a bug report, but to be honest I've never seen anything like that in 12 years of working with this engine. > > IDs normally begin at 1001 and increment from there for every object added to the stack. I tried setting the stack id to 0 which should mean the id of the next control to be added to the stack would be 0 and it causes an execution error. Interestingly though it is possible to set the id to a negative number although ids of new objects will always be greater than 0. I ended up with two buttons with the same id which means you can't inspect the second one. Cheers Monte From bobs at twft.com Wed Nov 10 19:00:45 2010 From: bobs at twft.com (Bob Sneidar) Date: Wed, 10 Nov 2010 16:00:45 -0800 Subject: Help: Id's can be completly unreliable In-Reply-To: <0F6958F0-CDBA-42D1-848F-864067102B4B@sweattechnologies.com> References: <4CDB2B1D.8040609@fourthworld.com> <0F6958F0-CDBA-42D1-848F-864067102B4B@sweattechnologies.com> Message-ID: <7D28364E-921B-4F82-A8C5-78812900BBD9@twft.com> It's my understanding that object ID's inside a stack are maintained by the engine to ensure uniqueness. I would not mess with the ID's at all. I remember back in Hypercard that was a big no-no as well. About the only use of ID's that I can see would be if you were programmatically renaming objects, and you wanted to reference the same object after the rename with something that didn't change. I know that Trevor uses the long id of a button to define the storage object for sqlYoga, because someone might rename the button and break their own code. But changing ID's is IMHO a bad practice. Bob On Nov 10, 2010, at 3:54 PM, Monte Goulding wrote: >> >> Thanks for the background on that. >> >> If you have a recipe for that please submit a bug report, but to be honest I've never seen anything like that in 12 years of working with this engine. >> >> IDs normally begin at 1001 and increment from there for every object added to the stack. > > I tried setting the stack id to 0 which should mean the id of the next control to be added to the stack would be 0 and it causes an execution error. Interestingly though it is possible to set the id to a negative number although ids of new objects will always be greater than 0. I ended up with two buttons with the same id which means you can't inspect the second one. > > Cheers > > Monte > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From monte at sweattechnologies.com Wed Nov 10 19:15:24 2010 From: monte at sweattechnologies.com (Monte Goulding) Date: Thu, 11 Nov 2010 11:15:24 +1100 Subject: Help: Id's can be completly unreliable In-Reply-To: <7D28364E-921B-4F82-A8C5-78812900BBD9@twft.com> References: <4CDB2B1D.8040609@fourthworld.com> <0F6958F0-CDBA-42D1-848F-864067102B4B@sweattechnologies.com> <7D28364E-921B-4F82-A8C5-78812900BBD9@twft.com> Message-ID: <91128188-58F1-4AB2-8C9B-C70B273C0053@sweattechnologies.com> > It's my understanding that object ID's inside a stack are maintained by the engine to ensure uniqueness. I would not mess with the ID's at all. I remember back in Hypercard that was a big no-no as well. Well, true up to a point. The stack id is equal to the id of the next created control. It doesn't quite work that way in the IDE because the drag and drop from the tools palette creates and deletes a graphic. > > About the only use of ID's that I can see would be if you were programmatically renaming objects, and you wanted to reference the same object after the rename with something that didn't change. I know that Trevor uses the long id of a button to define the storage object for sqlYoga, because someone might rename the button and break their own code. But changing ID's is IMHO a bad practice. Setting the stack ID to a number below it's current ID is a risk and you are right it's bad practice (I was just trying to work out how you end up with an id of 0 and I still couldn't replicate it) but going the other way is the only way we have to manage icon libraries. For example, the IDE image library sets the templateStack's id to the highest id of all the other image libraries+1. This means that there won't be any image id duplicates (as long as nobody adds an image to an older library *bug*). Cheers Monte From jacque at hyperactivesw.com Wed Nov 10 20:25:39 2010 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 10 Nov 2010 19:25:39 -0600 Subject: Help: Id's can be completly unreliable In-Reply-To: <91128188-58F1-4AB2-8C9B-C70B273C0053@sweattechnologies.com> References: <4CDB2B1D.8040609@fourthworld.com> <0F6958F0-CDBA-42D1-848F-864067102B4B@sweattechnologies.com> <7D28364E-921B-4F82-A8C5-78812900BBD9@twft.com> <91128188-58F1-4AB2-8C9B-C70B273C0053@sweattechnologies.com> Message-ID: <4CDB4613.70904@hyperactivesw.com> On 11/10/10 6:15 PM, Monte Goulding wrote: > > Setting the stack ID to a number below it's current ID is a risk and > you are right it's bad practice (I was just trying to work out how > you end up with an id of 0 and I still couldn't replicate it) but > going the other way is the only way we have to manage icon libraries. The docs say you aren't supposed to be able to set a stack ID to anything lower than its current one. I'm surprised you could set it to a negative number, you aren't supposed to be able to do that either. "A stack's ID is equal to the ID that will be assigned to the next object created within that stack, so the stack ID is subject to change." Maybe when you set it to zero, the engine pushed it back up again? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From monte at sweattechnologies.com Wed Nov 10 20:50:40 2010 From: monte at sweattechnologies.com (Monte Goulding) Date: Thu, 11 Nov 2010 12:50:40 +1100 Subject: Help: Id's can be completly unreliable In-Reply-To: <4CDB4613.70904@hyperactivesw.com> References: <4CDB2B1D.8040609@fourthworld.com> <0F6958F0-CDBA-42D1-848F-864067102B4B@sweattechnologies.com> <7D28364E-921B-4F82-A8C5-78812900BBD9@twft.com> <91128188-58F1-4AB2-8C9B-C70B273C0053@sweattechnologies.com> <4CDB4613.70904@hyperactivesw.com> Message-ID: <6FE65D60-67CA-476A-A6B5-05C997F19A07@sweattechnologies.com> >> Setting the stack ID to a number below it's current ID is a risk and >> you are right it's bad practice (I was just trying to work out how >> you end up with an id of 0 and I still couldn't replicate it) but >> going the other way is the only way we have to manage icon libraries. > > The docs say you aren't supposed to be able to set a stack ID to anything lower than its current one. I'm surprised you could set it to a negative number, you aren't supposed to be able to do that either. Ok, that's probably why I got the execution error with all but the negative numbers. > > "A stack's ID is equal to the ID that will be assigned to the next object created within that stack, so the stack ID is subject to change." > > Maybe when you set it to zero, the engine pushed it back up again? I never said I set it to 0. I was trying to because the original poster said they were getting 0 ids. Any number between 0 and the current stack id will cause an execution error. I was trying to replicate it but I couldn't. But I did find the negative number thing which is weird although probably not worth fixing considering you would have to be an idiot to set the stack id to a negative number and expect everything to work right. Cheers Monte From mwieder at ahsoftware.net Wed Nov 10 21:18:49 2010 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 10 Nov 2010 18:18:49 -0800 Subject: Creative Common Copyright Notice in Standalones In-Reply-To: <4CDB1162.5000105@hindu.org> References: <4CDB1162.5000105@hindu.org> Message-ID: <1591665962812.20101110181849@ahsoftware.net> Sivakatirswami- Wednesday, November 10, 2010, 1:40:50 PM, you wrote: > Exactly where and how do I put a creative commons license into a stack > (normally you enter such in the standalone builder) and which creative > commons license do I use and how do you implement it. Do you copy the > whole license to an "About" substack" or just have a link to the online > Creative Commons License. (disclaimer: the Creative Commons License rather explicitly states that it shouldn't be used for software, but that's what I use anyway because it comes the closest to exactly what I want my licensing to say for an open source project) What I do is create a custom property and file the license away in it: put "This work is licensed under the Creative Commons Attribution 2.5 License. To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA." into tCCLicense set the uRIP["EULA"] of this stack to tCCLicense then you can grab it from the custom property and display it however you want: put the uRIP["EULA"] of this stack into field "License" -- -Mark Wieder mwieder at ahsoftware.net From zryip.theslug at gmail.com Wed Nov 10 21:26:36 2010 From: zryip.theslug at gmail.com (zryip theSlug) Date: Thu, 11 Nov 2010 03:26:36 +0100 Subject: Help: Id's can be completly unreliable In-Reply-To: <43365C42-383A-47CE-A817-4792F6454C1B@fiberworld.nl> References: <03FD44F4-5631-4C50-B925-7CA4660C5F06@numericable.com> <43365C42-383A-47CE-A817-4792F6454C1B@fiberworld.nl> Message-ID: On Wed, Nov 10, 2010 at 2:15 PM, Claudi Cornaz wrote: > Hallo all, > > I have a big, and as yet, unsolvable ?problem. > I use quite some tmplt's (groups) I keep in a seperate stack and when I need > one > I copy this tmplt to the card or group where I need it. So far all works as > expected. > > Now comes the problem: Very often one or more controls of this copyed tmplt > or the copyed tmplt itself will get an ID of 0. > This is more than a nuisance as I keep discovering more and more problems > with controls with an ID of 0. > The first problem is the long id the IDE/engine places ?in the it variable. > If there is a ID of 0 in it, it will be invalid. > Which means if you do the following it will throw a error saying the control > doesn't exist. > > on mouseUp > ? copy grp "myTmplt" of cd 1 of this stack to grp "myGrp" of cd 2 of this > stack > ? set the name of it to "test" ? ? -- it: group id 0 of group id 1012 of cd > id 1002 of stack "myStack" > end mouseUp > > I had to change a lot of code because of this. I couldn't be sure the long > id in the it var was reliable, > because it might contain a ID of 0. > This problem can be solved as follows: > > on MouseUp > ? put the number of controls of grp "myGrp" of cd 2 of this stack + 1 into > tCount > ? copy grp "myTmplt" of cd 1 of this stack to grp "myGrp" of cd 2 of this > stack > ? set the name of control tCount of grp "myGrp" of cd 2 of this stack to > "test" > end mouseUp > > Now it doesn't matter if I copy a image/field or a group consisting of many > controls, > since tCount will point to the next layer within the destination, which will > be the group in case a group get's copyed. > (you can't use the last control of grp "myGrp" it will throw a error on > compiling and anyway if you copy a grp > the last control will point to the control with the highest layer within the > copyed grp) > > Further if you use tmplt's which you copy, always and I mean always, use > long names > to point to a specific control, as you just can't trust the ID or the long > ID. (a major rewrite of my code) > > Ok this is a nuisance, but there is at least a solution/workaround to it. > > Now I discovered a new problem with a control which has gotten the ill fated > ID of 0. > If it happens to be a field you can't get it's formattedWith/Height etc. > I simply can't find a way to get at this, it always returns 0 > > put the width of fld myLongNameFieldReference gives: 220 > put the value of yLongNameFieldReference gives: This is some text > put the formattedWidth of fld myLongNameFieldReference gives: 0 > > So the field exists (with a ID of 0) and it has text in it. But I just can't > get the formattedWidth of it . > > I found in a rev lib stack a comment that the engine sometimes returns 0 as > ID for controls and that they leave it at the moment. > The problem is I now have a card with sometimes 10 or more controls with a > ID of 0 which gives all kinds of problems. > > Does anyone know a trick or workaround to get the formattedWidth of my > field? ?Please. > This is a complete stopper for me at the moment since I can't format my > field and I use dozens of them which need to be > formatted depending on there content. > > > Hoping someone of you bright minds knows/finds something clever to solve my > problem. > > Best wishes, > ? Claudi Claudi, Really odd. The last ID is store in the stack and is incremented for each control you add. For unicity you should not have two controls with the same ID. That's why you can't set the ID of a stack to a lower number than the actual ID. And the ID should be started at least to 1, probably more for reserved usages, not 0 Could you precise: - your system version - your version of Livecode - have you experienced this on several computers, always with the same stack or with several stacks? Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc From runrevron at gmail.com Wed Nov 10 22:55:31 2010 From: runrevron at gmail.com (ron barber) Date: Thu, 11 Nov 2010 12:55:31 +0900 Subject: LiveCode Apps and Mac App Store Message-ID: Greetings, I'm aware of the change in Apple policy that allows creation and submission of LiveCode apps to the iPhone/Pad store and that Rev has taken steps in that direction. I was under the impression that the AppStore was the same - viz. apps built with LiveCode could be submitted and accepted. However, when I read the agreement it states that "Your Application must... use Xcode for bundling and submission." Perhaps I don't understand the context or meaning of bundling and submission so my question is, can LiveCode apps be submitted "as is" to the Mac App store? Thanks Ron From Mark_Smith at cpe.umanitoba.ca Wed Nov 10 23:46:32 2010 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Wed, 10 Nov 2010 20:46:32 -0800 (PST) Subject: alerts In-Reply-To: References: <1289159626863-3031113.post@n4.nabble.com> <4bfba.5f40b152.3a0882a2@aol.com> <1289197465253-3031553.post@n4.nabble.com> Message-ID: <1289450792303-3037240.post@n4.nabble.com> Peter Brigham MD wrote: > > Here's the way I do it. I show a small display stack, the idea is just > that it's a billboard to tell the user that the saving is occurring. > It closes after the save is done. > > on doSave > modeless stack "savingAlert" > wait 10 millisecs > save stack "pdData" > set the lastSaved of stack "pdData" to the seconds > close stack "savingAlert" > go stack "pdData" > end doSave > > -- Peter > Peter, thanks that looks very close to what I had in mind. And there is lots in there for me to go explore too (as I've not played with modeless stack). Sounds like "stack" might be another way of describing a window? Why do you put the current seconds into the (I'm guessing) custom property of pdData? Thanks a bunch -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3037240.html Sent from the Revolution - User mailing list archive at Nabble.com. From Mark_Smith at cpe.umanitoba.ca Wed Nov 10 23:49:17 2010 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Wed, 10 Nov 2010 20:49:17 -0800 (PST) Subject: alerts In-Reply-To: References: <1289159626863-3031113.post@n4.nabble.com> <4bfba.5f40b152.3a0882a2@aol.com> <1289197465253-3031553.post@n4.nabble.com> Message-ID: <1289450957139-3037243.post@n4.nabble.com> william humphrey-2 wrote: > > Except it should have a progress bar. > One step at a time. But thanks for suggesting a future question :-) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3037243.html Sent from the Revolution - User mailing list archive at Nabble.com. From toolbook at kestner.de Thu Nov 11 03:53:38 2010 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 11 Nov 2010 09:53:38 +0100 Subject: AW: slash and backslash in effective filename - why? In-Reply-To: <65DD5D70-74A8-4EF6-9F4B-88DB480BA759@twft.com> References: <000301cb80c7$0e3877a0$2aa966e0$@de> <65DD5D70-74A8-4EF6-9F4B-88DB480BA759@twft.com> Message-ID: <003101cb817d$f3abd190$db0374b0$@de> Hi Bob, hmm, that is an interesting hint. My development folders are indeed on a windows server with a mapped share. But creating a new test stack, once saved on my local windows drive and a second time saved on the mapped server drive, both times the effective filename returns a path with slashes. In my real life application same call returns a path with backslashes. So there must be some more dependencies what changes the behavior of the effective filename. So I will always have to check first if there are slashes or backslashes in my effective filename and depending on that result I will set the itemdel appropriate, because I never can be sure anymore, what is returned. Pretty weired. Thanks Tiemo > -----Urspr?ngliche Nachricht----- > Von: use-revolution-bounces at lists.runrev.com [mailto:use-revolution- > bounces at lists.runrev.com] Im Auftrag von Bob Sneidar > Gesendet: Mittwoch, 10. November 2010 17:48 > An: How to use Revolution > Betreff: Re: slash and backslash in effective filename - why? > > Back slashes are used in netbios network share names. \\my-server\data > is how you would refer to a share on a PC using the netbios convention. > Apple uses a different method, with fully qualified domain names ex. > sbm://my-server.lan/data. Once you have the volume mounted though, you > would use the mount point /volumes/data. > > Might a file you are refrencing be a netbios volume? > > Bob > > > On Nov 10, 2010, at 3:04 AM, Tiemo Hollmann TB wrote: > > > Hi all, > > > > LiveCode 4.5.1, Win 7 > > > > I have two stacks, a main stack and a second stack as a separate > stack file > > where I switch to by go to stack. > > > > In both preopenstack handlers I create some working pathes by > extracting > > items out of my effective filename. To handle the items I have to set > the > > itemdel to slash. > > > > > > > >> From now to then while testing some other features suddenly I didn't > got any > > pathes returned anymore, because of the itemdel slash. > > > > When asking for the effective filename of this stack, I get in the > first > > stack a path with slashes and in the second stack with backslashes > and > > therefore the items of my effective filename where empty. > > > > > > > > I tested with Rev 3.5, because I thought it has something to do with > > LiveCode but the path in my second stack contains also backslashes - > BUT > > nevertheless the delimeter slash works and it returns chunks of my > path. > > Then I created two new empty stacks, jumped with go from one to > another, but > > got slash pathes on both stacks. > > > > > > > > My workaround now is to set the itemdel to backslash on windows, but > this > > can't be the straight way, because the last years it worked with > slash as > > itemdel on both systems. > > > > > > > > Has anybody encountered this behavior or has an idea what may cause > this > > behavior? > > > > Thanks > > > > Tiemo > > > > > > > > > > > > _______________________________________________ > > use-revolution mailing list > > use-revolution at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-revolution > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From toolbook at kestner.de Thu Nov 11 03:55:03 2010 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 11 Nov 2010 09:55:03 +0100 Subject: AW: slash and backslash in effective filename - why? In-Reply-To: References: <000301cb80c7$0e3877a0$2aa966e0$@de> Message-ID: <003201cb817e$261342d0$7239c870$@de> Not a stack, but other files in subdirectories related to my standalone. > -----Urspr?ngliche Nachricht----- > Von: use-revolution-bounces at lists.runrev.com [mailto:use-revolution- > bounces at lists.runrev.com] Im Auftrag von Bob Sneidar > Gesendet: Mittwoch, 10. November 2010 17:59 > An: How to use Revolution > Betreff: Re: slash and backslash in effective filename - why? > > Hmmm... are you trying to use the effective filename to locate a stack > inside of a bundle? > > Bob > > > On Nov 10, 2010, at 3:04 AM, Tiemo Hollmann TB wrote: > > > Hi all, > > > > LiveCode 4.5.1, Win 7 > > > > I have two stacks, a main stack and a second stack as a separate > stack file > > where I switch to by go to stack. > > > > In both preopenstack handlers I create some working pathes by > extracting > > items out of my effective filename. To handle the items I have to set > the > > itemdel to slash. > > > > > > > >> From now to then while testing some other features suddenly I didn't > got any > > pathes returned anymore, because of the itemdel slash. > > > > When asking for the effective filename of this stack, I get in the > first > > stack a path with slashes and in the second stack with backslashes > and > > therefore the items of my effective filename where empty. > > > > > > > > I tested with Rev 3.5, because I thought it has something to do with > > LiveCode but the path in my second stack contains also backslashes - > BUT > > nevertheless the delimeter slash works and it returns chunks of my > path. > > Then I created two new empty stacks, jumped with go from one to > another, but > > got slash pathes on both stacks. > > > > > > > > My workaround now is to set the itemdel to backslash on windows, but > this > > can't be the straight way, because the last years it worked with > slash as > > itemdel on both systems. > > > > > > > > Has anybody encountered this behavior or has an idea what may cause > this > > behavior? > > > > Thanks > > > > Tiemo > > > > > > > > > > > > _______________________________________________ > > use-revolution mailing list > > use-revolution at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-revolution > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From pmbrig at gmail.com Thu Nov 11 07:28:36 2010 From: pmbrig at gmail.com (Peter Brigham MD) Date: Thu, 11 Nov 2010 07:28:36 -0500 Subject: alerts In-Reply-To: <1289450792303-3037240.post@n4.nabble.com> References: <1289159626863-3031113.post@n4.nabble.com> <4bfba.5f40b152.3a0882a2@aol.com> <1289197465253-3031553.post@n4.nabble.com> <1289450792303-3037240.post@n4.nabble.com> Message-ID: On Nov 10, 2010, at 11:46 PM, Mark Smith wrote: > Peter Brigham MD wrote: >> >> Here's the way I do it. I show a small display stack, the idea is >> just >> that it's a billboard to tell the user that the saving is occurring. >> It closes after the save is done. >> >> on doSave >> modeless stack "savingAlert" >> wait 10 millisecs >> save stack "pdData" >> set the lastSaved of stack "pdData" to the seconds >> close stack "savingAlert" >> go stack "pdData" >> end doSave >> >> -- Peter >> > > Peter, thanks that looks very close to what I had in mind. And there > is lots > in there for me to go explore too (as I've not played with modeless > stack). > Sounds like "stack" might be another way of describing a window? Why > do you > put the current seconds into the (I'm guessing) custom property of > pdData? Yes, pretty much stack = window, though stacks can be invisible, or have an offscreen location, or be "in use" as libraries and have no screen presence at all. Stacks as windows have different modes, which determine how or if the user can interact with them. Check out the "mode" entry in the LiveCode dictionary. The saving of the time in a customProp is because I have scripted things so the stack is automatically saved every 20 minutes, or at whatever interval the user chooses in the preferences. That feature was irrelevant to your question and I could have taken it out, probably should have to avoid confusing you.... -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From runrevron at gmail.com Thu Nov 11 07:28:46 2010 From: runrevron at gmail.com (ron barber) Date: Thu, 11 Nov 2010 21:28:46 +0900 Subject: LiveCode and the Mac App Store Message-ID: Greetings, I know about Apple's reversal of policy on the iPhone/pad and Rev's progress on providing a solution via LiveCode iOS to us to submit apps to that store. With the announcement of the upcoming App Store I was under the impression that applications made with LiveCode were also able to be submitted. However, in reading Apple's agreement it says "Your Application must ... use Xcode for bundling and submission." Perhaps I don't understand the meaning of this or I misunderstood that LiveCode apps could be submitted as is to the AppStore. Can someone clarify this for me please? Can we submit our LiveCode apps to Apple or not? Thanks Ron From ambassador at fourthworld.com Thu Nov 11 08:21:29 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 11 Nov 2010 05:21:29 -0800 Subject: LiveCode and the Mac App Store Message-ID: <4CDBEDD9.2000400@fourthworld.com> ron barber wrote: > I know about Apple's reversal of policy on the iPhone/pad and Rev's > progress on providing a solution via LiveCode iOS to us to submit apps > to that store. With the announcement of the upcoming App Store I was > under the impression that applications made with LiveCode were also > able to be submitted. However, in reading Apple's agreement it says > "Your Application must ... use Xcode for bundling and submission." > Perhaps I don't understand the meaning of this or I misunderstood that > LiveCode apps could be submitted as is to the AppStore. Can someone > clarify this for me please? Can we submit our LiveCode apps to Apple > or not? SDK 1.0, 2.0, 3.0, and 4.0 allowed LiveCode Mobile, 4.1 prohibited it, then 4.2 allowed it again. Given that the bizarreness of the provenance clause in SDK license 4.1 was outdone only by removing it in 4.2 with no explanation as to why they came to feel it wasn't a smart thing to do, one can appreciate the confusion caused by such fickleness. But fortunately Kevin reported here last month that the first LiveCode-based app has been accepted into the App Store: So apparently this week's license terms do indeed allow LiveCode to be used for development, but I'll have to rely on others here to explain the mechanics of the "bundling and submission" process since I haven't yet deployed anything to iOS (though I have a project starting next week which will have me making an iPad app -- I hope for my client's sake that the SDK terms remain stable enough to allow a positive ROI on that investment). -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From coiin at verizon.net Thu Nov 11 08:40:34 2010 From: coiin at verizon.net (Colin Holgate) Date: Thu, 11 Nov 2010 08:40:34 -0500 Subject: LiveCode and the Mac App Store In-Reply-To: <4CDBEDD9.2000400@fourthworld.com> References: <4CDBEDD9.2000400@fourthworld.com> Message-ID: I think Richard's answer just covered the topic about whether LiveCode apps are permitted now, but part of the question was about whether Xcode has to be used as the way to submit the app? Is there a walkthrough somewhere of the submission process for LiveCode apps? From runrevron at gmail.com Thu Nov 11 08:41:21 2010 From: runrevron at gmail.com (ron barber) Date: Thu, 11 Nov 2010 22:41:21 +0900 Subject: LiveCode and the Mac App Store In-Reply-To: <4CDBEDD9.2000400@fourthworld.com> References: <4CDBEDD9.2000400@fourthworld.com> Message-ID: Thanks RIchard I understand about LiveCode Mobile and Apple's policy reversals. But what about the upcoming non-iOS App store, the one for non-mobile applications. We don't use LiveCode mobile for these apps as well, right? Can we use desktop LiveCode to make desktop app for the upcoming desktop app store? Thanks Ron On Thu, Nov 11, 2010 at 10:21 PM, Richard Gaskin wrote: > ron barber wrote: > SDK 1.0, 2.0, 3.0, and 4.0 allowed LiveCode Mobile, 4.1 prohibited it, then > 4.2 allowed it again. ?Given that the bizarreness of the provenance clause > in SDK license 4.1 was outdone only by removing it in 4.2 with no > explanation as to why they came to feel it wasn't a smart thing to do, one > can appreciate the confusion caused by such fickleness. > > But fortunately Kevin reported here last month that the first LiveCode-based > app has been accepted into the App Store: > > > > So apparently this week's license terms do indeed allow LiveCode to be used > for development, but I'll have to rely on others here to explain the > mechanics of the "bundling and submission" process since I haven't yet > deployed anything to iOS (though I have a project starting next week which > will have me making an iPad app -- I hope for my client's sake that the SDK > terms remain stable enough to allow a positive ROI on that investment). > > -- > ?Richard Gaskin > ?Fourth World > ?LiveCode training and consulting: http://www.fourthworld.com > ?Webzine for LiveCode developers: http://www.LiveCodeJournal.com > ?LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From psahores at free.fr Thu Nov 11 09:16:28 2010 From: psahores at free.fr (Pierre Sahores) Date: Thu, 11 Nov 2010 15:16:28 +0100 Subject: LiveCode and the Mac App Store In-Reply-To: <4CDBEDD9.2000400@fourthworld.com> References: <4CDBEDD9.2000400@fourthworld.com> Message-ID: <03B83AA7-FB19-43DD-8621-669E2D587611@free.fr> > Though I have a project starting next week which will have me making an iPad app -- I hope for my client's sake that the SDK terms remain stable enough to allow a positive ROI on that investment). Sure you will be successful ! Seems that SJ is really able to do, analyze and remove its own mistakes. I like this ;-) Kind Regards, -- Pierre Sahores mobile : (33) 6 03 95 77 70 www.woooooooords.com www.sahores-conseil.com From jean-pierre.soto at wanadoo.fr Thu Nov 11 09:21:12 2010 From: jean-pierre.soto at wanadoo.fr (Jean-Pierre Soto) Date: Thu, 11 Nov 2010 15:21:12 +0100 Subject: Stripe in new window aera Message-ID: <7387E54D-FF87-4BC5-AC17-EA7DCB90B212@wanadoo.fr> Hello, I have some problem with a resizeStack handler. No problem on my Mac, but on window platform I get stripe in the new window aera and the script don't place object on the right place. Can anybody help me ? Revoulution 2.7.1 Jean-Pierre From kevin at runrev.com Thu Nov 11 10:05:10 2010 From: kevin at runrev.com (Kevin Miller) Date: Thu, 11 Nov 2010 15:05:10 +0000 Subject: LiveCode and the Mac App Store In-Reply-To: Message-ID: On 11/11/2010 13:41, "ron barber" wrote: > Thanks RIchard > > I understand about LiveCode Mobile and Apple's policy reversals. But > what about the upcoming non-iOS App store, the one for non-mobile > applications. We don't use LiveCode mobile for these apps as well, > right? Can we use desktop LiveCode to make desktop app for the > upcoming desktop app store? Yes. We have some customers in process of submitting right now, I'll let you know how they get on. If we need to make any modifications to the LiveCode platform we will do so but hopefully apps will be accepted as they stand. Kind regards, Kevin Kevin Miller ~ kevin at runrev.com ~ http://www.runrev.com/ LiveCode - Realize fast, compile-free coding From runrevron at gmail.com Thu Nov 11 10:15:32 2010 From: runrevron at gmail.com (ron barber) Date: Fri, 12 Nov 2010 00:15:32 +0900 Subject: LiveCode and the Mac App Store In-Reply-To: References: Message-ID: Thank you Kevin for this affirmation. I appreciate all the efforts made to enable us to take advantage of these opportunities, both mobile and desktop. Please keep us updated on the progress of those submitting their apps. I hope to do so soon as well. Thanks Ron On Fri, Nov 12, 2010 at 12:05 AM, Kevin Miller wrote: > On 11/11/2010 13:41, "ron barber" wrote: > >> Thanks RIchard >> >> I understand about LiveCode Mobile and Apple's policy reversals. But >> what about the upcoming non-iOS App store, the one for non-mobile >> applications. We don't use LiveCode mobile for these apps as well, >> right? Can we use desktop LiveCode to make desktop app for the >> upcoming desktop app store? > > Yes. We have some customers in process of submitting right now, I'll let you > know how they get on. If we need to make any modifications to the LiveCode > platform we will do so but hopefully apps will be accepted as they stand. > > Kind regards, > > Kevin > > Kevin Miller ~ kevin at runrev.com ~ http://www.runrev.com/ > LiveCode - Realize fast, compile-free coding > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From ambassador at fourthworld.com Thu Nov 11 11:00:16 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 11 Nov 2010 08:00:16 -0800 Subject: Creative Common Copyright Notice in Standalones Message-ID: <4CDC1310.508@fourthworld.com> Mark Wieder wrote: > (disclaimer: the Creative Commons License rather explicitly states > that it shouldn't be used for software, but that's what I use anyway > because it comes the closest to exactly what I want my licensing to > say for an open source project) Why does CCL have that limitation? It's so useful, and I haven't found another license that fits some of the scenarios I'd like to deploy in as well as that one. > What I do is create a custom property and file the license away in it: > > put "This work is licensed under the Creative Commons Attribution 2.5 > License. To view a copy of this license, visit > http://creativecommons.org/licenses/by/2.5/ or send a letter to > Creative Commons, 543 Howard Street, 5th Floor, San Francisco, > California, 94105, USA." into tCCLicense > > set the uRIP["EULA"] of this stack to tCCLicense > > then you can grab it from the custom property and display it however > you want: > > put the uRIP["EULA"] of this stack into field "License" Nice to see the RIP spec getting even more use. For those who aren't familiar with RIP properties, check out Ken Ray's Edinbugh Core Metadata Initiative (ECMI) spec at the Rev Interoperability Project, in the Files section: ECMI is a collaborative community effort to suggest a common set of properties for common things like licensing, update info, versioning, etc. There's also another initiative started there that could use some help for those so inclined: a proposal to create a public domain behavior script for field objects to provide data validation and masking. Feel free to jump in. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From pete at mollysrevenge.com Thu Nov 11 13:03:22 2010 From: pete at mollysrevenge.com (Peter Haworth) Date: Thu, 11 Nov 2010 10:03:22 -0800 Subject: IDE/Standalone Performance Issues - A Light At The End of the Tunnel! Message-ID: I think I have found the cause of the performance problems I have been experiencing. I had been referring to objects by their long name in various places in the offending code. I started changing the code to refer to the same objects by their short ID and each line of code I changed resulted in quicker performance. I haven't been able to change all the code yet but the evidence is that the performance issues will go away when I start using the object IDs everywhere. Finding the problem is good of course but does anyone know why there are no performance issues referring to an object by it's long name in the IDE but it causes such a performance hit in a standalone? Maybe I'm misunderstanding the process of building a standalone but I would have thought a standalone would function more efficiently than the same code executed in the IDE not less, kinda like in the old days of interpretive vs compiled BASIC? Pete Haworth From bobs at twft.com Thu Nov 11 13:58:45 2010 From: bobs at twft.com (Bob Sneidar) Date: Thu, 11 Nov 2010 10:58:45 -0800 Subject: IDE/Standalone Performance Issues - A Light At The End of the Tunnel! In-Reply-To: References: Message-ID: Again, Peter, I think you have hit on something here. Good detective work. So it was not the SQL queries that were causing the delay? Good to know. I think it is a bug of some kind, but then I am the Bugmeister, so that is expected. I would submit a bug and see where it goes. Bob On Nov 11, 2010, at 10:03 AM, Peter Haworth wrote: > I think I have found the cause of the performance problems I have been experiencing. I had been referring to objects by their long name in various places in the offending code. I started changing the code to refer to the same objects by their short ID and each line of code I changed resulted in quicker performance. I haven't been able to change all the code yet but the evidence is that the performance issues will go away when I start using the object IDs everywhere. > > Finding the problem is good of course but does anyone know why there are no performance issues referring to an object by it's long name in the IDE but it causes such a performance hit in a standalone? Maybe I'm misunderstanding the process of building a standalone but I would have thought a standalone would function more efficiently than the same code executed in the IDE not less, kinda like in the old days of interpretive vs compiled BASIC? > > Pete Haworth > > > > > > > > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From ambassador at fourthworld.com Thu Nov 11 14:04:48 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 11 Nov 2010 11:04:48 -0800 Subject: IDE/Standalone Performance Issues - A Light At The End of the Tunnel! Message-ID: <4CDC3E50.1040100@fourthworld.com> Peter Haworth wrote: > I think I have found the cause of the performance problems I have > been experiencing. I had been referring to objects by their long name > in various places in the offending code. I started changing the code > to refer to the same objects by their short ID and each line of code I > changed resulted in quicker performance. I haven't been able to > change all the code yet but the evidence is that the performance > issues will go away when I start using the object IDs everywhere. Interesting. I just ran this test: on mouseUp put 100000 into n -- put the millisecs into t repeat n put the short id of this cd into tID put the name of cd id tID into r1 end repeat put the millisecs - t into t1 -- put the millisecs into t repeat n put the long name of this cd into tName put the name of tName into r2 end repeat put the millisecs - t into t2 -- put the millisecs into t repeat n put the number of this cd into tNum put the name of cd tNum into r3 end repeat put the millisecs - t into t3 -- put t1 && t2 && t3 && (r1=r3) end mouseUp The results were roughly the same in both the MC and Rev IDEs: 221 954 209 true So addressing by ordinal number is slightly faster than by ID, which has been the case since the HC days. But I'm surprised by how much faster both are compared to addressing by name. This got me curious as to whether long ID would be faster than long name, so I ran this: on mouseUp put 100000 into n -- put the millisecs into t repeat n put the long id of this cd into tID put the name of tID into r1 end repeat put the millisecs - t into t1 -- put the millisecs into t repeat n put the long name of this cd into tName put the name of tName into r2 end repeat put the millisecs - t into t2 -- put t1 && t2 && (r1=r2) end mouseUp ...and got this: 955 957 true So it seems that the overhead of resolving absolute object references (long form) is much higher than what the engine can do when you're able to hard-wire part of the reference (e.g., "...of card id tID..."). Historically I've often used long IDs for the convenience of having an absolute object reference without regard to the type, but after seeing these results I can see that there's a benefit to hard-wire the type in script where practical. Thanks for bringing this up. Learn sumpin' new every day. :) > Finding the problem is good of course but does anyone know why there > are no performance issues referring to an object by it's long name in > the IDE but it causes such a performance hit in a standalone? Interesting as it was to test the different ways to reference objects, in practical terms I think the performance issue you encountered is due to something else. The tests shown above were run in 100,000 iterations. So while it seems impressive that one took only 25% as much time as another, in a given iteration the longest one took only 0.00954 ms. Unless you're addressing several hundred thousand objects at a time, it's hard to imagine how the difference could product a noticeable effect. I even built a standalone of the test stack, and while it was somewhat slower (why would that be?) the difference between the IDE and the standalone was less than 8% total, or about 0.0008 ms per call. This is disappointing because it leaves the mystery unresolved, unless I misunderstand something here. Can you post the section of code in question so we can see what else might be at play? Also, have you compared timing tests of an isolated portion of the code to hone in on where the performance is lost? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From andrew at rjdfarm.com Thu Nov 11 14:11:25 2010 From: andrew at rjdfarm.com (Andrew Kluthe) Date: Thu, 11 Nov 2010 11:11:25 -0800 (PST) Subject: revServer Documentation Message-ID: <1289502685604-3038378.post@n4.nabble.com> Hey all, I am getting my hands wet for the first time playing with revServer through my on-rev account. I couldn't find much information on its features and what is and isn't available to revServer on the samples site. This seems to be the only documentation I could find. Is there a dictionary or a user guide or a different mailing list for revServer that I can refer to? Also, are there any good third party hubs for revServer articles or samples? Thanks, Andrew -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/revServer-Documentation-tp3038378p3038378.html Sent from the Revolution - User mailing list archive at Nabble.com. From devin_asay at byu.edu Thu Nov 11 14:35:00 2010 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 11 Nov 2010 12:35:00 -0700 Subject: revServer Documentation In-Reply-To: <1289502685604-3038378.post@n4.nabble.com> References: <1289502685604-3038378.post@n4.nabble.com> Message-ID: <5801FEFE-F65A-45F1-81A7-65E648EF9399@byu.edu> On Nov 11, 2010, at 12:11 PM, Andrew Kluthe wrote: > > Hey all, > > I am getting my hands wet for the first time playing with revServer through > my on-rev account. I couldn't find much information on its features and what > is and isn't available to revServer on the samples site. This seems to be > the only documentation I could find. > > Is there a dictionary or a user guide or a different mailing list for > revServer that I can refer to? Also, are there any good third party hubs for > revServer articles or samples? Hi Andrew, I think you'll enjoy learning irev scripting. It opens up a new world of possibilities. You should have gotten a link to a document from runrev when you signed up for your on-rev account, which lists the salient differences between LiveCode development and irev scripting. That's a good reference but doesn't give many concrete examples. Here are a couple of places to start: Sarah Reichelt's on-rev links at http://www.troz.net/. She has lots of really good, well-documented examples, along with links to other sites. In my class last winter I taught a module on server-side scripting with Rev. You're welcome to peruse the notes and see if they are helpful. Just go to http://revolution.byu.edu and click on Introduction to Programming Revolution. Then scroll down to the section called Server-side Scripting with revTalk. Regards, Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University From bobs at twft.com Thu Nov 11 14:36:36 2010 From: bobs at twft.com (Bob Sneidar) Date: Thu, 11 Nov 2010 11:36:36 -0800 Subject: IDE/Standalone Performance Issues - A Light At The End of the Tunnel! In-Reply-To: <4CDC3E50.1040100@fourthworld.com> References: <4CDC3E50.1040100@fourthworld.com> Message-ID: <74AEA73F-E988-4803-8392-1DAF2F337AC1@twft.com> Yeah, and Peter's issue was that with standalones, the problem is many orders of magnitude worse. Bob On Nov 11, 2010, at 11:04 AM, Richard Gaskin wrote: > So it seems that the overhead of resolving absolute object references (long form) is much higher than what the engine can do when you're able to hard-wire part of the reference (e.g., "...of card id tID..."). > > Historically I've often used long IDs for the convenience of having an absolute object reference without regard to the type, but after seeing these results I can see that there's a benefit to hard-wire the type in script where practical. > > Thanks for bringing this up. Learn sumpin' new every day. :) From andrew at rjdfarm.com Thu Nov 11 14:45:29 2010 From: andrew at rjdfarm.com (Andrew Kluthe) Date: Thu, 11 Nov 2010 11:45:29 -0800 (PST) Subject: revServer Documentation In-Reply-To: <5801FEFE-F65A-45F1-81A7-65E648EF9399@byu.edu> References: <1289502685604-3038378.post@n4.nabble.com> <5801FEFE-F65A-45F1-81A7-65E648EF9399@byu.edu> Message-ID: <1289504729590-3038424.post@n4.nabble.com> Great! Thanks for the insight! :) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/revServer-Documentation-tp3038378p3038424.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Thu Nov 11 14:59:29 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 11 Nov 2010 11:59:29 -0800 Subject: IDE/Standalone Performance Issues - A Light At The End of the Tunnel! Message-ID: <4CDC4B21.3020202@fourthworld.com> Bob Sneidar wrote: > On Nov 11, 2010, at 11:04 AM, Richard Gaskin wrote: > >> So it seems that the overhead of resolving absolute object >> references (long form) is much higher than what the engine >> can do when you're able to hard-wire part of the reference >> (e.g., "...of card id tID..."). >> >> Historically I've often used long IDs for the convenience >> of having an absolute object reference without regard to >> the type, but after seeing these results I can see that >> there's a benefit to hard-wire the type in script where practical. >> >> Thanks for bringing this up. Learn sumpin' new every day. :) > > Yeah, and Peter's issue was that with standalones, the problem is > many orders of magnitude worse. Understood, but as I noted I was unable to measure any difference between standalone and IDE performance greater than about 0.0008 ms per call. At that rate it would take many hundreds of thousands of object references to see a difference. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From claudi.c at fiberworld.nl Thu Nov 11 15:15:41 2010 From: claudi.c at fiberworld.nl (Claudi Cornaz) Date: Thu, 11 Nov 2010 21:15:41 +0100 Subject: Help: Id's can be completly unreliable In-Reply-To: References: <03FD44F4-5631-4C50-B925-7CA4660C5F06@numericable.com> <43365C42-383A-47CE-A817-4792F6454C1B@fiberworld.nl> Message-ID: <6F965895-A4E6-483F-9B01-89C21184595C@fiberworld.nl> Hallo, Sorry for the delay but I have been quite busy. Jacqueline, I found the script it in the button "revIDE" of the revLibrary stack and it's called "addObject" private command addObject pObject, pObeyDontSearch, @rList, pScriptsOnly if word 1 of the name of pObject is among the words of "card group field" and pObeyDontSearch and the dontSearch of pObject then return "dontSearch set on object" end if local tId put the long id of pObject into tId if word 3 of tId is 0 then # Due to an engine bug, some objects can have IDs of zero. For now, we ignore this... --breakpoint end if ... ... Bob, there are no intercepting handlers. This happend with at least 2 totaly different stacks. mac 10.5.8 livicode 4.5 build 1080 but it happened with a earlyer version aswell. I will try to get a simplifyed stack which more or less 'reliably' exibits this fenomena, but I can't promise anything. I will see if I got some time coming weekend to do this. All the best, Claudi From bobs at twft.com Thu Nov 11 16:27:08 2010 From: bobs at twft.com (Bob Sneidar) Date: Thu, 11 Nov 2010 13:27:08 -0800 Subject: Help: Id's can be completly unreliable In-Reply-To: <6F965895-A4E6-483F-9B01-89C21184595C@fiberworld.nl> References: <03FD44F4-5631-4C50-B925-7CA4660C5F06@numericable.com> <43365C42-383A-47CE-A817-4792F6454C1B@fiberworld.nl> <6F965895-A4E6-483F-9B01-89C21184595C@fiberworld.nl> Message-ID: <19E108AB-F263-41DA-B822-3B305EC1E991@twft.com> HELLO!! Bob On Nov 11, 2010, at 12:15 PM, Claudi Cornaz wrote: > local tId > put the long id of pObject into tId > if word 3 of tId is 0 then > # Due to an engine bug, some objects can have IDs of zero. For now, we ignore this... > --breakpoint > end if From andrew at rjdfarm.com Thu Nov 11 16:27:39 2010 From: andrew at rjdfarm.com (Andrew Kluthe) Date: Thu, 11 Nov 2010 13:27:39 -0800 (PST) Subject: Gif issues Message-ID: <1289510859993-3038619.post@n4.nabble.com> Hey there, I was following the beachball cursor post and decided to add a spinning daisy gif to my splash screen to compliment the status log that lets the user know what stage of initialization the program is in. My splash screen presents a login and upon authenticating the actual splash comes up, checks for updates, then connects to a database using SQLYoga. I had made 2 handlers, one for starting and showing the gif, and one for stopping, hiding and resetting the gif's state. Everything works as it should until SQLYoga actual goes to connect to the database. At this point the gif animation freezes until the connection is successfully made. The rest of the processes for initialization are lightning fast so primarily the gif is for the wait on the connection to the db. Does anyone have any recommendations on how I could get the gif to play or emulate the gif frame by frame (familiar with the process the frame by frame loop entails, but wouldn't this also be blocked by the SQLYoga db_connect call? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Gif-issues-tp3038619p3038619.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Thu Nov 11 16:38:35 2010 From: pete at mollysrevenge.com (Peter Haworth) Date: Thu, 11 Nov 2010 13:38:35 -0800 Subject: IDE/Standalone Performance Issues - A Light At The End of the Tunnel! In-Reply-To: <4CDC3E50.1040100@fourthworld.com> References: <4CDC3E50.1040100@fourthworld.com> Message-ID: <80B1307A-AAB2-4F5F-B755-0AFF183AE542@mollysrevenge.com> Thanks for delving into this Richard. Here's a small example section of code which I've changed to use the ID where it used to use the long name. The variables are: myID holds the short ID of the control pselection a parameter passed into the command put the milliseconds into mymilliseconds writeDebug "Starting loadOneList" && the abbrev name of control ID myID if pselection is empty then if "listValues" is among the lines of the customKeys of control ID myID then put the listValues of control ID myID into tlistspec else put the text of control ID myID into tdata end if else put pselection into tlistspec end if if tlistspec is not empty then repeat for each line myLine in tlistspec writeDebug tab & (the milliseconds - mymilliseconds) & tab & "Start processing SELECT" && myline In the IDE, the 2nd writeDebug shows a value of 1 whether I use the long name or the ID of the control. In the standalone, using the long name it shows a value of 731 and using the ID it shows 1 again. It is puzzling why your tests don't reflect what Im experiencing. Maybe it's something to do with the operation that is carried out on the control. In my case, most of the addressing of the controls consists of getting/setting their properties, both standard and custom. Could it have anything to do with the fact that my code is executed in a script that is held in a separate code library stack and inserted as a front script? The only other variable I can think of is the location of the debug log I'm writing to. In the IDE, the debug log is in the same folder as the stack file but in the standalone it's in the users Library/Preferences/ folder. This is running on a Mac of course. All I have to do now is find all the places in my code where controls are referenced by their long name - oh joy! Bob - I want to hold off just a little longer before submitting a bug. The fact that Richard's tests don;t reflect what I'm seeing make me nervous that it's something I'm doing wrong! Pete On Nov 11, 2010, at 11:04 AM, Richard Gaskin wrote: > > Interesting. I just ran this test: > > on mouseUp > put 100000 into n > -- > put the millisecs into t > repeat n > put the short id of this cd into tID > put the name of cd id tID into r1 > end repeat > put the millisecs - t into t1 > -- > put the millisecs into t > repeat n > put the long name of this cd into tName > put the name of tName into r2 > end repeat > put the millisecs - t into t2 > -- > put the millisecs into t > repeat n > put the number of this cd into tNum > put the name of cd tNum into r3 > end repeat > put the millisecs - t into t3 > -- > put t1 && t2 && t3 && (r1=r3) > end mouseUp > > > The results were roughly the same in both the MC and Rev IDEs: > > 221 954 209 true > > So addressing by ordinal number is slightly faster than by ID, which > has been the case since the HC days. But I'm surprised by how much > faster both are compared to addressing by name. > > This got me curious as to whether long ID would be faster than long > name, so I ran this: > > on mouseUp > put 100000 into n > -- > put the millisecs into t > repeat n > put the long id of this cd into tID > put the name of tID into r1 > end repeat > put the millisecs - t into t1 > -- > put the millisecs into t > repeat n > put the long name of this cd into tName > put the name of tName into r2 > end repeat > put the millisecs - t into t2 > -- > put t1 && t2 && (r1=r2) > end mouseUp > > > ...and got this: > > 955 957 true > > So it seems that the overhead of resolving absolute object > references (long form) is much higher than what the engine can do > when you're able to hard-wire part of the reference (e.g., "...of > card id tID..."). > > Historically I've often used long IDs for the convenience of having > an absolute object reference without regard to the type, but after > seeing these results I can see that there's a benefit to hard-wire > the type in script where practical. > > Thanks for bringing this up. Learn sumpin' new every day. :) > > >> Finding the problem is good of course but does anyone know why there >> are no performance issues referring to an object by it's long name in >> the IDE but it causes such a performance hit in a standalone? > > Interesting as it was to test the different ways to reference > objects, in practical terms I think the performance issue you > encountered is due to something else. > > The tests shown above were run in 100,000 iterations. So while it > seems impressive that one took only 25% as much time as another, in > a given iteration the longest one took only 0.00954 ms. > > Unless you're addressing several hundred thousand objects at a time, > it's hard to imagine how the difference could product a noticeable > effect. > > I even built a standalone of the test stack, and while it was > somewhat slower (why would that be?) the difference between the IDE > and the standalone was less than 8% total, or about 0.0008 ms per > call. > > This is disappointing because it leaves the mystery unresolved, > unless I misunderstand something here. > > Can you post the section of code in question so we can see what else > might be at play? > > Also, have you compared timing tests of an isolated portion of the > code to hone in on where the performance is lost? > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From bobs at twft.com Thu Nov 11 16:39:16 2010 From: bobs at twft.com (Bob Sneidar) Date: Thu, 11 Nov 2010 13:39:16 -0800 Subject: Gif issues In-Reply-To: <1289510859993-3038619.post@n4.nabble.com> References: <1289510859993-3038619.post@n4.nabble.com> Message-ID: <7BFE1D1F-6D24-43C8-80FB-C5221E73DB91@twft.com> Try putting the call to sqlYoga into a command or function and then calling it in time eg: send connectNow to this stack in 10 milliseconds Not sure if that will work but give it a try. Bob On Nov 11, 2010, at 1:27 PM, Andrew Kluthe wrote: > > Hey there, > > I was following the beachball cursor post and decided to add a spinning > daisy gif to my splash screen to compliment the status log that lets the > user know what stage of initialization the program is in. > > My splash screen presents a login and upon authenticating the actual splash > comes up, checks for updates, then connects to a database using SQLYoga. I > had made 2 handlers, one for starting and showing the gif, and one for > stopping, hiding and resetting the gif's state. > > Everything works as it should until SQLYoga actual goes to connect to the > database. At this point the gif animation freezes until the connection is > successfully made. The rest of the processes for initialization are > lightning fast so primarily the gif is for the wait on the connection to the > db. > > Does anyone have any recommendations on how I could get the gif to play or > emulate the gif frame by frame (familiar with the process the frame by frame > loop entails, but wouldn't this also be blocked by the SQLYoga db_connect > call? > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Gif-issues-tp3038619p3038619.html > Sent from the Revolution - User mailing list archive at Nabble.com. > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution From ambassador at fourthworld.com Thu Nov 11 17:03:07 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 11 Nov 2010 14:03:07 -0800 Subject: IDE/Standalone Performance Issues - A Light At The End of the Tunnel! Message-ID: <4CDC681B.9090602@fourthworld.com> Peter Haworth wrote: > Here's a small example section of code which I've changed to use the > ID where it used to use the long name. The variables are: > > myID holds the short ID of the control > pselection a parameter passed into the command > > put the milliseconds into mymilliseconds > writeDebug "Starting loadOneList" && the abbrev name of control ID myID > if pselection is empty then > if "listValues" is among the lines of the customKeys of control > ID myID then > put the listValues of control ID myID into tlistspec > else > put the text of control ID myID into tdata > end if > else > put pselection into tlistspec > end if > if tlistspec is not empty then > repeat for each line myLine in tlistspec > writeDebug tab & (the milliseconds - mymilliseconds) & tab & > "Start processing SELECT" && myline What's interesting there is that the control is only being referenced three times: once to write the debug string, a second time to check the customKeys, and a third time to obtain the prop values. Given that it's just three object references and most of the work is done in the repeat look that works on the list, it's hard to believe those three object references could account for the speed difference by themselves. What does writeDebug look like, and what does the other half of the repeat look like (there's no closing "end repeat")? And what exactly is in myID? Have you verified that it's an integer, and that the name was as you expected it in the earlier version? Also, do you have any getProp handlers in your stack? Perhaps most importantly: are there any other stacks or libraries used by the standalone that aren't present in the IDE? > It is puzzling why your tests don't reflect what Im experiencing. Yeah, me too. :) > Maybe it's something to do with the operation that is carried out on > the control. In my case, most of the addressing of the controls > consists of getting/setting their properties, both standard and > custom. Could it have anything to do with the fact that my code is > executed in a script that is held in a separate code library stack and > inserted as a front script? Possibly. It may be helpful to log the frontScripts, the backScripts, and the stacksInUse in both the IDE and the standalone to see what differences there may be. Of course you'll see a lot more of those in the IDE, which should theoretically either have no effect or make it slower, but perhaps a script is both in a library and a frontScript in the standalone, causing it to execute more than once. getProp and setProp handlers can be mystifyingly problematic because I find that the more of those there are the more all custom property accesses slow down (though the effect is very minor, a fraction of a microsecond). > The only other variable I can think of is > the location of the debug log I'm writing to. In the IDE, the debug > log is in the same folder as the stack file but in the standalone it's > in the users Library/Preferences/ folder. This is running on > a Mac of course. That's a noteworthy point. When diagnosing issues like this it's very useful to eliminate differences between the working and non-working implementations until you hone in on the root cause. To verify that this isn't an issue with writing to a different location, you might consider altering the standalone (at least temporarily, for this test) so that it writes to the same location as when it's run in the IDE. > All I have to do now is find all the places in my code where controls > are referenced by their long name - oh joy! Hopefully we'll be able to find a different root cause than the current apparent one, maybe one that requires less work to remedy. :) -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From pete at mollysrevenge.com Thu Nov 11 17:46:56 2010 From: pete at mollysrevenge.com (Peter Haworth) Date: Thu, 11 Nov 2010 14:46:56 -0800 Subject: IDE/Standalone Performance Issues - A Light At The End of the Tunnel! In-Reply-To: <4CDC681B.9090602@fourthworld.com> References: <4CDC681B.9090602@fourthworld.com> Message-ID: <57DA17B8-B413-402D-98BF-8C4543B97826@mollysrevenge.com> See answers below. Pete Haworth > > > What's interesting there is that the control is only being > referenced three times: once to write the debug string, a second > time to check the customKeys, and a third time to obtain the prop > values. > > Given that it's just three object references and most of the work is > done in the repeat look that works on the list, it's hard to believe > those three object references could account for the speed difference > by themselves. > > What does writeDebug look like, and what does the other half of the > repeat look like (there's no closing "end repeat")? Here's writeDebug and another function it calls getprefsFolderPath. command writeDebug pText put getprefsFolderPath("BandTrak") & "debuglog.txt" into myPrefsFilePath write pText & return to file myPrefsFilePath end writeDebug function getPrefsFolderPath pSubFolder if the environment is "development" then put the effective filename of this stack into prefsFolder set the itemdelimiter to slash put item 1 to -2 of prefsFolder into prefsFolder else if the platform = "MacOS" then put specialFolderPath("Preferences") into prefsFolder else if the platform = "Win32" then put specialFolderPath(26) into prefsFolder end if end if if last char of prefsFolder is not "/" then put slash after prefsFolder end if if the environment is not "development" then put pSubFolder & slash after prefsFolder end if return prefsFolder end getPrefsFolderPath I didn't put the rest of the repeat lop in the example because the timing ends at the top of the repeat loop. I can give you the code but it's basically executing an SQLite SELECT statement. There's another time measurement at the completion of the SELECT and it indicates there's no significant difference between the IDE and the standalone for the SELECT execution. > > And what exactly is in myID? Have you verified that it's an > integer, and that the name was as you expected it in the earlier > version? A little background for you. This code is part of a library routine I have to load values from an SQLite SELECT statement into controls on the form. All the controls on the form that relate to columns in the selected row start with DB_ followed by the name of the column. In the IDE, whenever a card is opened, I create a list of the DB_ controls and store them in a custom property named fieldList, one per line. I'm currently storing the long name of each control in fieldList and I can see that they are in the correct format in the custom property. There's an outer loop that processes every line in fieldList to load the data into the controls and to help track this down, I put the following statement in that loop: put the ID of myControl into myID myControl is the variable that holds one line from the fieldList custom property. I guess that's a long winded way of saying yes, the long name formats look correct. I haven't checked myID to see if it holds an integer but unless the put statement is doing something weird, I'm pretty sure it does. > > Also, do you have any getProp handlers in your stack? I do have some getProp and setProp handlers but not for the properties used in this section of code. I had wondered if there was something of that nature happening, so I stepped through every line of code in debug to make sure it wasn't dashing off into some hidden direction like that and I didn;t see anything of that nature. > > Perhaps most importantly: are there any other stacks or libraries > used by the standalone that aren't present in the IDE? I don;t think so, certainly not intentionally,but I'm not sure how to tell. I used the Stacks tab of the Standalone Application Settings to set the stacks other than the main application stack that were to be included in the standalone. > > >> It is puzzling why your tests don't reflect what Im experiencing. > > Yeah, me too. :) > >> Maybe it's something to do with the operation that is carried out on >> the control. In my case, most of the addressing of the controls >> consists of getting/setting their properties, both standard and >> custom. Could it have anything to do with the fact that my code is >> executed in a script that is held in a separate code library stack >> and >> inserted as a front script? > > Possibly. It may be helpful to log the frontScripts, the > backScripts, and the stacksInUse in both the IDE and the standalone > to see what differences there may be. Of course you'll see a lot > more of those in the IDE, which should theoretically either have no > effect or make it slower, but perhaps a script is both in a library > and a frontScript in the standalone, causing it to execute more than > once. OK I did that. Here's the output from the IDE" FrontScripts card id 1004 of stack "/Users/Dad/RevDev/Code Library.rev" card id 1003 of stack "/Users/Dad/RevDev/Code Library.rev" card id 1002 of stack "/Users/Dad/RevDev/Code Library.rev" button id 1117 of group id 1016 of card id 1002 of stack "/ Applications/LiveCode 4.5.app/Contents/Tools/Toolset/revlibrary.rev" button id 1116 of group id 1016 of card id 1002 of stack "/ Applications/LiveCode 4.5.app/Contents/Tools/Toolset/revlibrary.rev" button id 1109 of card id 1002 of stack "/Applications/LiveCode 4.5.app/Contents/Tools/Toolset/revlibrary.rev" button id 1042 of card id 1002 of stack "/Applications/LiveCode 4.5.app/Contents/Tools/Toolset/revlibrary.rev" stack "/Applications/LiveCode 4.5.app/Contents/Tools/Toolset/ revdebugger.rev" BackScripts button id 1118 of group id 1016 of card id 1002 of stack "/ Applications/LiveCode 4.5.app/Contents/Tools/Toolset/revlibrary.rev" button id 1037 of group id 1016 of card id 1002 of stack "/ Applications/LiveCode 4.5.app/Contents/Tools/Toolset/revlibrary.rev" button id 1018 of group id 1016 of card id 1002 of stack "/ Applications/LiveCode 4.5.app/Contents/Tools/Toolset/revlibrary.rev" button id 1017 of group id 1016 of card id 1002 of stack "/ Applications/LiveCode 4.5.app/Contents/Tools/Toolset/revlibrary.rev" button id 1015 of group id 1016 of card id 1002 of stack "/ Applications/LiveCode 4.5.app/Contents/Tools/Toolset/revlibrary.rev" button id 1014 of group id 1016 of card id 1002 of stack "/ Applications/LiveCode 4.5.app/Contents/Tools/Toolset/revlibrary.rev" button id 1013 of group id 1016 of card id 1002 of stack "/ Applications/LiveCode 4.5.app/Contents/Tools/Toolset/revlibrary.rev" stack "/Applications/LiveCode 4.5.app/Contents/Tools/Toolset/ revonlinelibrary.rev" stack "/Applications/LiveCode 4.5.app/Contents/Tools/Toolset/ revdocumentationlibrary.rev" stack "/Applications/LiveCode 4.5.app/Contents/Tools/Toolset/ revmetadata.rev" button id 1041 of card id 1002 of stack "/Applications/LiveCode 4.5.app/Contents/Tools/Toolset/revlibrary.rev" button id 1120 of card id 1002 of stack "/Applications/LiveCode 4.5.app/Contents/Tools/Toolset/revlibrary.rev" In Use (Notice nothing listed under in USe - I think this may be because the logging was doen in the preOpenCard of the card in the main stack?) Here's the output from the standalone: FrontScripts card id 1004 of stack "/Applications/BandTrak1/BandTrak.app/Contents/ MacOS/Code Library.rev" card id 1003 of stack "/Applications/BandTrak1/BandTrak.app/Contents/ MacOS/Code Library.rev" card id 1002 of stack "/Applications/BandTrak1/BandTrak.app/Contents/ MacOS/Code Library.rev" button id 90449 of group id 90444 of card id 90399 of stack "/ Applications/BandTrak1/BandTrak.app/Contents/MacOS/BandTrak" button id 90448 of group id 90444 of card id 90399 of stack "/ Applications/BandTrak1/BandTrak.app/Contents/MacOS/BandTrak" BackScripts button id 90447 of group id 90444 of card id 90399 of stack "/ Applications/BandTrak1/BandTrak.app/Contents/MacOS/BandTrak" button id 90446 of group id 90444 of card id 90399 of stack "/ Applications/BandTrak1/BandTrak.app/Contents/MacOS/BandTrak" button id 90445 of group id 90444 of card id 90399 of stack "/ Applications/BandTrak1/BandTrak.app/Contents/MacOS/BandTrak" In Use Copy of revErrorReport revExternalLibrary > > getProp and setProp handlers can be mystifyingly problematic because > I find that the more of those there are the more all custom property > accesses slow down (though the effect is very minor, a fraction of a > microsecond). Interesting. As mentioned above, I do have perhaps a dozen getProp/ setProp handlers but none for the custom properties used in this section of the code. Once again though, if there is a slowdown because of that, you'd expect it to be the same in the IDE and standalone. > >> The only other variable I can think of is >> the location of the debug log I'm writing to. In the IDE, the debug >> log is in the same folder as the stack file but in the standalone >> it's >> in the users Library/Preferences/ folder. This is running >> on >> a Mac of course. > > That's a noteworthy point. When diagnosing issues like this it's > very useful to eliminate differences between the working and non- > working implementations until you hone in on the root cause. > > To verify that this isn't an issue with writing to a different > location, you might consider altering the standalone (at least > temporarily, for this test) so that it writes to the same location > as when it's run in the IDE. OK, I'll gve that a whirl, but it will mean changing my code to go back to using the long names again so will need a little time to take care of that. > > >> All I have to do now is find all the places in my code where controls >> are referenced by their long name - oh joy! > > Hopefully we'll be able to find a different root cause than the > current apparent one, maybe one that requires less work to remedy. :) Hopefully indeed! > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From Mark_Smith at cpe.umanitoba.ca Thu Nov 11 18:15:25 2010 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Thu, 11 Nov 2010 15:15:25 -0800 (PST) Subject: alerts In-Reply-To: References: <1289159626863-3031113.post@n4.nabble.com> <4bfba.5f40b152.3a0882a2@aol.com> <1289197465253-3031553.post@n4.nabble.com> <1289450792303-3037240.post@n4.nabble.com> Message-ID: <1289517325675-3038809.post@n4.nabble.com> Peter Brigham MD wrote: > > The saving of the time in a customProp is because I have scripted > things so the stack is automatically saved every 20 minutes, or at > whatever interval the user chooses in the preferences. That feature > was irrelevant to your question and I could have taken it out, > probably should have to avoid confusing you.... > > HI Peter, I'm glad you didn't. While I won't need it in the current project I'll archive it as i'm sure it will come in handy eventually. However, rev does not seem to be an environment that supports something like a "main event loop" so either you are checking the time from lots of different places or using some other technique? (can you set an "On every 10 mins do... handler?") -- M -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3038809.html Sent from the Revolution - User mailing list archive at Nabble.com. From jhurley0305 at sbcglobal.net Thu Nov 11 18:14:25 2010 From: jhurley0305 at sbcglobal.net (James Hurley) Date: Thu, 11 Nov 2010 15:14:25 -0800 Subject: Environment variable displayed in the debugger In-Reply-To: <20101111180006.1BAF448A660@mail.runrev.com> References: <20101111180006.1BAF448A660@mail.runrev.com> Message-ID: <6DD3FDB0-AAA1-4299-998E-F1725702CCAC@sbcglobal.net> I just upgraded to 4.5.1 and was surprised to find that the environment variables ($LOGNAME, $SHELL, $PATH etc.) still show up in the debugger ahead of the script variables. I had assumed that that was something that going to be changed back to the practice employed in 4.0 where they were not shown. Am I missing something? Is there a setting that will make these go away? For me it decrees the valuable real estate for the display of the script variables in the debugger. Or this this a FEATURE which I just don't recognize as such? Jim Hurley From Mark_Smith at cpe.umanitoba.ca Thu Nov 11 19:32:55 2010 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Thu, 11 Nov 2010 16:32:55 -0800 (PST) Subject: alerts In-Reply-To: <2B31475E-0596-406F-81DC-C1B39F33B77A@cox.net> References: <1289159626863-3031113.post@n4.nabble.com> <4b92e.43b4e791.3a08803b@aol.com> <1289196455696-3031542.post@n4.nabble.com> <2B31475E-0596-406F-81DC-C1B39F33B77A@cox.net> Message-ID: <1289521975869-3038898.post@n4.nabble.com> Joe Lewis Wilkins wrote: > > Hi Mark, > > Why don't you create an image, paste it wherever you want into your stack; > then when you want it to appear, just show it; when you're through with > it, then hide it. I've done this a number of times. I usually create such > images using MacDraft, but I'm sure you can do the same with various other > drawing programs. You have complete control of what the image contains. > > Joe Wilkins > > Interesting suggestion Joe. I'm not sure where I would hide it though. Each card is the same as the next, all cards are just notes in a notepad (think of the Mac Stickies with buttons and you have the basic idea). Where could I hide the image where the user would not trip over it? Its just my 101 learning project, but since its not too intimidating I'm having fun with it. Thanks for the suggestion. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3038898.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at mollysrevenge.com Thu Nov 11 19:43:21 2010 From: pete at mollysrevenge.com (Peter Haworth) Date: Thu, 11 Nov 2010 16:43:21 -0800 Subject: Performance Mystery Solved - IT'S THE DATA STUPID!! Message-ID: <33109559-95E3-4F9B-AAFB-35EAE4372CEB@mollysrevenge.com> Figured out the IDE/Standalone performance issue, it's nothing to do with the code. I my last email I mentioned how I have a custom property holding the long names of all the controls on a card that need to have data loaded into them from my database. On closer inspection, the long name includes the name of the stack file which - duh - is my .rev file!!! So when the standalone gets the long name of a control from the custom property, it is referencing the control in my.rev file, not the control in the standalone, and presumably has to go open the .rev file every time my code refers to a control. No wonder everything took longer. Using the ID removes that problem of course. I still have to figure out what to about this. I can either change my code to use the ID everywhere instead of the long name, or I can somehow parse out the the part of the long name that is the path to my .rev file. Or I could build the list of controls in the standalone (currently it specifically doesn't do that on the grounds that it didn't need to). Sorry for the false alarms! Pete Haworth From ambassador at fourthworld.com Thu Nov 11 19:54:53 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 11 Nov 2010 16:54:53 -0800 Subject: Performance Mystery Solved - IT'S THE DATA STUPID!! Message-ID: <4CDC905D.7020907@fourthworld.com> Peter Haworth wrote: > Figured out the IDE/Standalone performance issue, it's nothing to do > with the code. > > I my last email I mentioned how I have a custom property holding the > long names of all the controls on a card that need to have data loaded > into them from my database. On closer inspection, the long name > includes the name of the stack file which - duh - is my .rev file!!! > So when the standalone gets the long name of a control from the custom > property, it is referencing the control in my.rev file, not the > control in the standalone, and presumably has to go open the .rev file > every time my code refers to a control. No wonder everything took > longer. Using the ID removes that problem of course. Bad news: I don't think that's the problem. Unless you're explicitly purging the stacks, any access to a property of a stack file will load it into memory. The first access will take a hit only if the stack isn't already in memory, but subsequent accesses should be about as fast whether referring to just the stack name or the stack file path, since they're interchangeable for mainstacks. Moreover, if the data stored in the standalone is subject to change, you'll want to migrate that to a separate stack file anyway since the OS doesn't allow executables to modify themselves. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From Mark_Smith at cpe.umanitoba.ca Thu Nov 11 20:02:34 2010 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Thu, 11 Nov 2010 19:02:34 -0600 Subject: alerts In-Reply-To: <4bfba.5f40b152.3a0882a2@aol.com> References: <4bfba.5f40b152.3a0882a2@aol.com> Message-ID: <3F95480D5F0DA64EA0785711087864DE8C61A4E011@exch01.mchpe.cpe.umanitoba.ca> Hi Thanks, more like: show something save this stack hide something I'm on the verge of testing "something" to be some sort of modeless stack/window. We shall see how it goes. Thanks for the suggestion - M ________________________________________ From: use-revolution-bounces at lists.runrev.com [use-revolution-bounces at lists.runrev.com] On Behalf Of DunbarX at aol.com [DunbarX at aol.com] Sent: Sunday, November 07, 2010 4:30 PM To: use-revolution at lists.runrev.com Subject: Re: alerts I reread your post. I might still be confused by "without user interaction when the action is complete". Is "the action" just the showing of the dialog? But if all you want is to show some sort of dialog, and then dismiss it, just: showYourDialog wait 120--or whatever hideYourDialog Is your dialog a substack? A field? That is why I rolled it all into "showYourDialog" instead of, say "show field yourField". Ask again if I am way off base. _______________________________________________ use-revolution mailing list use-revolution at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution From monte at sweattechnologies.com Thu Nov 11 20:12:32 2010 From: monte at sweattechnologies.com (Monte Goulding) Date: Fri, 12 Nov 2010 12:12:32 +1100 Subject: Performance Mystery Solved - IT'S THE DATA STUPID!! In-Reply-To: <4CDC905D.7020907@fourthworld.com> References: <4CDC905D.7020907@fourthworld.com> Message-ID: <4B58BD2E-D135-4150-9CDD-BD9485AC4903@sweattechnologies.com> > Unless you're explicitly purging the stacks, any access to a property of a stack file will load it into memory. The first access will take a hit only if the stack isn't already in memory, but subsequent accesses should be about as fast whether referring to just the stack name or the stack file path, since they're interchangeable for mainstacks. Hi Richard I don't think this is entirely true. At least it wasn't when I was working on the standalone builder all those years ago. There was a massive difference in speed between looping over the controls of a stack if that stack was invisible toplevel compared to just referencing it as a filename. There was a user that was having extremely slow builds because they had so many controls. Cheers Monte From pete at mollysrevenge.com Thu Nov 11 20:28:48 2010 From: pete at mollysrevenge.com (Peter Haworth) Date: Thu, 11 Nov 2010 17:28:48 -0800 Subject: Performance Mystery Solved - IT'S THE DATA STUPID!! In-Reply-To: <4B58BD2E-D135-4150-9CDD-BD9485AC4903@sweattechnologies.com> References: <4CDC905D.7020907@fourthworld.com> <4B58BD2E-D135-4150-9CDD-BD9485AC4903@sweattechnologies.com> Message-ID: Yes, that's what I'm seeing. With the references to my .rev filepath in the control names, the card I'm using to test was taking around 35 seconds to open. I went through and manually removed the references to the filepath (that's the only thing I changed I swear!) and built the standalone again and now the card opens just about instantaneously. So maybe there's a bug after all in that the .rev stack should only be loaded into memory at the first access to it but it's happening every time? Whatever the issue, I have to change something because my standalone wouldn't run unless the .rev file was on the same computer and that doesn't make any sense. I think I'm going to bite the bullet and change everything over to use control IDs instead of long names. Pete Haworth On Nov 11, 2010, at 5:12 PM, Monte Goulding wrote: >> Unless you're explicitly purging the stacks, any access to a >> property of a stack file will load it into memory. The first >> access will take a hit only if the stack isn't already in memory, >> but subsequent accesses should be about as fast whether referring >> to just the stack name or the stack file path, since they're >> interchangeable for mainstacks. > > Hi Richard > > I don't think this is entirely true. At least it wasn't when I was > working on the standalone builder all those years ago. There was a > massive difference in speed between looping over the controls of a > stack if that stack was invisible toplevel compared to just > referencing it as a filename. There was a user that was having > extremely slow builds because they had so many controls. > > Cheers > > Monte_______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > From ambassador at fourthworld.com Thu Nov 11 20:31:50 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 11 Nov 2010 17:31:50 -0800 Subject: Performance Mystery Solved - IT'S THE DATA STUPID!! Message-ID: <4CDC9906.2080401@fourthworld.com> Monte Goulding wrote: >> Unless you're explicitly purging the stacks, any access to >> a property of a stack file will load it into memory. The >> first access will take a hit only if the stack isn't already >> in memory, but subsequent accesses should be about as fast >> whether referring to just the stack name or the stack file >> path, since they're interchangeable for mainstacks. > > I don't think this is entirely true. At least it wasn't when > I was working on the standalone builder all those years ago. > There was a massive difference in speed between looping over > the controls of a stack if that stack was invisible toplevel > compared to just referencing it as a filename. There was a > user that was having extremely slow builds because they had > so many controls. It would make me very happy if that were the case. A couple years ago there was a long thread here in which I complained that if I access a property in a stack but don't explicitly open the stack, IMO the behavior should be as it was in SuperCard: the stack file is read into memory to obtain the property value, and then the copy in memory is disposed of. What was happening instead is that the stack file was hanging out in memory just the same as if I had opened it, and many here argued that that was a good thing. I haven't tested this myself in a long time - got any current benchmarks? If the behavior has changed then Trevor, Chipp, Jacque, and a good many others who voiced an opinion that leaving it in memory was valuable may not like it, but I'll be quite happy indeed. :) -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From rjb at robelko.com Thu Nov 11 20:36:29 2010 From: rjb at robelko.com (Robert Brenstein) Date: Fri, 12 Nov 2010 02:36:29 +0100 Subject: alerts In-Reply-To: <3F95480D5F0DA64EA0785711087864DE8C61A4E011@exch01.mchpe.cpe.umanitoba.ca> References: <4bfba.5f40b152.3a0882a2@aol.com> <3F95480D5F0DA64EA0785711087864DE8C61A4E011@exch01.mchpe.cpe.umanitoba.ca> Message-ID: On 11.11.10 at 19:02 -0600 Mark Smith apparently wrote: >Hi Thanks, more like: > > show something > save this stack > hide something > >I'm on the verge of testing "something" to be some sort of modeless >stack/window. We shall see how it goes. > >Thanks for the suggestion - M If your saving is always done on the same card, one option is to disable all controls saving their enabled state show and enable a text field with "saving..." or sth like it save this stack hide the text field enable controls that were enabled before If saving is too fast, you may add a delay to ensure that text is shown for some minimum time (I use 30 ticks). I can send you a working example script. If your saving is done on different cards in a multi-card stack or in multiple stacks, then you can do the above but show a substack instead of a field to ensure it is always above the card controls. disable all controls saving their enabled state show a substack with "saving..." or sth like it as modal save this stack hide the substack enable controls that were enabled before You can have the substack window without decorations so user has no temptation to click anywhere. Robert From monte at sweattechnologies.com Thu Nov 11 20:44:28 2010 From: monte at sweattechnologies.com (Monte Goulding) Date: Fri, 12 Nov 2010 12:44:28 +1100 Subject: Performance Mystery Solved - IT'S THE DATA STUPID!! In-Reply-To: <4CDC9906.2080401@fourthworld.com> References: <4CDC9906.2080401@fourthworld.com> Message-ID: <2342BD46-3F73-4975-8FB8-0F1A8CE916C9@sweattechnologies.com> > >> Unless you're explicitly purging the stacks, any access to > >> a property of a stack file will load it into memory. The > >> first access will take a hit only if the stack isn't already > >> in memory, but subsequent accesses should be about as fast > >> whether referring to just the stack name or the stack file > >> path, since they're interchangeable for mainstacks. > > > > I don't think this is entirely true. At least it wasn't when > > I was working on the standalone builder all those years ago. > > There was a massive difference in speed between looping over > > the controls of a stack if that stack was invisible toplevel > > compared to just referencing it as a filename. There was a > > user that was having extremely slow builds because they had > > so many controls. > > It would make me very happy if that were the case. > > A couple years ago there was a long thread here in which I complained that if I access a property in a stack but don't explicitly open the stack, IMO the behavior should be as it was in SuperCard: the stack file is read into memory to obtain the property value, and then the copy in memory is disposed of. Well even better would be an index at the start of the stack file so the whole file wasn't read into memory, just the prop value. I'd like this to be an option though rather than normal behavior. > > What was happening instead is that the stack file was hanging out in memory just the same as if I had opened it, and many here argued that that was a good thing. > > I haven't tested this myself in a long time - got any current benchmarks? No, like I said this is just what I remember from when we were in beta with the standalone builder and it was a fair while ago now. It shouldn't be that hard to put together a benchmark test stack though. > > If the behavior has changed then Trevor, Chipp, Jacque, and a good many others who voiced an opinion that leaving it in memory was valuable may not like it, but I'll be quite happy indeed. :) I never said it wasn't loaded into memory. I know it is and it didn't make sense to me at the time that there would be such a performance difference. Maybe it was something to do with resolving the filename? I'm not sure, I just know it was slower. Cheers Monte From pete at mollysrevenge.com Thu Nov 11 20:46:19 2010 From: pete at mollysrevenge.com (Pete Haworth) Date: Thu, 11 Nov 2010 17:46:19 -0800 Subject: Performance Mystery Solved - IT'S THE DATA STUPID!! In-Reply-To: <4CDC9906.2080401@fourthworld.com> References: <4CDC9906.2080401@fourthworld.com> Message-ID: <41b882b3-03d5-4b6e-8163-f75512abb4b4@email.android.com> I guess my experience suggests strongly that the stack doesn't stay in memory but I can't prove it. Is there something I can write to my debug log that would help prove this one way or the other? "Richard Gaskin" wrote: >Monte Goulding wrote: > > >> Unless you're explicitly purging the stacks, any access to > >> a property of a stack file will load it into memory. The > >> first access will take a hit only if the stack isn't already > >> in memory, but subsequent accesses should be about as fast > >> whether referring to just the stack name or the stack file > >> path, since they're interchangeable for mainstacks. > > > > I don't think this is entirely true. At least it wasn't when > > I was working on the standalone builder all those years ago. > > There was a massive difference in speed between looping over > > the controls of a stack if that stack was invisible toplevel > > compared to just referencing it as a filename. There was a > > user that was having extremely slow builds because they had > > so many controls. > >It would make me very happy if that were the case. > >A couple years ago there was a long thread here in which I complained >that if I access a property in a stack but don't explicitly open the >stack, IMO the behavior should be as it was in SuperCard: the stack >file is read into memory to obtain the property value, and then the >copy >in memory is disposed of. > >What was happening instead is that the stack file was hanging out in >memory just the same as if I had opened it, and many here argued that >that was a good thing. > >I haven't tested this myself in a long time - got any current >benchmarks? > >If the behavior has changed then Trevor, Chipp, Jacque, and a good many > >others who voiced an opinion that leaving it in memory was valuable may > >not like it, but I'll be quite happy indeed. :) > >-- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > LiveCode Journal blog: http://LiveCodejournal.com/blog.irv >_______________________________________________ >use-revolution mailing list >use-revolution at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-revolution Pete Haworth Molly's Revenge www.mollysrevenge.com From MikeKerner at roadrunner.com Thu Nov 11 20:51:46 2010 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 11 Nov 2010 20:51:46 -0500 Subject: Preference Storage on iOS Message-ID: How is anybody else storing preferences with their stacks for their iOS projects? For example, I want to store usernames and passwords for websites that my project is going to access, but those will vary from user to user. From mwieder at ahsoftware.net Thu Nov 11 20:56:47 2010 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 11 Nov 2010 17:56:47 -0800 Subject: Creative Common Copyright Notice in Standalones In-Reply-To: <4CDC1310.508@fourthworld.com> References: <4CDC1310.508@fourthworld.com> Message-ID: <1351751042984.20101111175647@ahsoftware.net> Richard- Thursday, November 11, 2010, 8:00:16 AM, you wrote: >> (disclaimer: the Creative Commons License rather explicitly states >> that it shouldn't be used for software, but that's what I use anyway >> because it comes the closest to exactly what I want my licensing to >> say for an open source project) > Why does CCL have that limitation? Well, IANAL but here goes anyway. My take on it from the CC web site is that it doesn't have specific clauses to cover source and object code. http://wiki.creativecommons.org/Frequently_Asked_Questions#Can_I_use_a_Creative_Commons_license_for_software.3F For an example of how ridiculous open-source license has gotten: http://en.wikipedia.org/wiki/Comparison_of_free_software_licenses Here are a few options: The Eiffel Forum License, version 2 http://www.opensource.org/licenses/ver2_eiffel.php The MIT license: http://www.opensource.org/licenses/mit-license.php The BSD license: http://opensource.org/licenses/bsd-license.php and my favorite: WTFPL http://tinyurl.com/3w6cks -- -Mark Wieder mwieder at ahsoftware.net From ambassador at fourthworld.com Thu Nov 11 21:00:48 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 11 Nov 2010 18:00:48 -0800 Subject: Performance Mystery Solved - IT'S THE DATA STUPID!! Message-ID: <4CDC9FD0.2080106@fourthworld.com> Monte Goulding wrote: > I never said it wasn't loaded into memory. I know it is and it > didn't make sense to me at the time that there would be such a > performance difference. Maybe it was something to do with > resolving the filename? I'm not sure, I just know it was slower. There's probably some nuance I'm missing - here's a quick test which first uses the fileName of a stack to access a property, then the next run it opens the stack and gets the property by referring to the stack's short name (FWIW, I had saved the stack previously with its destroyStack set to true to try to maximize any load difference): on mouseUp put 10000 into n put fld "file" into tStackFile -- put the millisecs into t repeat n put the uTest of stack tStackFile into r1 end repeat put the millisecs - t into t1 -- put the millisecs into t toplevel tStackFile put the short name of stack tStackFile into tStack repeat n put the uTest of stack tStack into r2 end repeat close stack tStackFile put the millisecs - t into t2 -- put t1 && t2 &&(r1=r2) into fld "r" end mouseUp Result: 151 140 true The difference is small even across 10,000 iterations, and can be explained by the need to resolve the path to a stack reference. How can this test be modified to show a greater difference? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From monte at sweattechnologies.com Thu Nov 11 21:49:52 2010 From: monte at sweattechnologies.com (Monte Goulding) Date: Fri, 12 Nov 2010 13:49:52 +1100 Subject: Performance Mystery Solved - IT'S THE DATA STUPID!! In-Reply-To: <4CDC9FD0.2080106@fourthworld.com> References: <4CDC9FD0.2080106@fourthworld.com> Message-ID: > There's probably some nuance I'm missing - here's a quick test which first uses the fileName of a stack to access a property, then the next run it opens the stack and gets the property by referring to the stack's short name (FWIW, I had saved the stack previously with its destroyStack set to true to try to maximize any load difference): > > > on mouseUp > put 10000 into n > put fld "file" into tStackFile > -- > put the millisecs into t > repeat n > put the uTest of stack tStackFile into r1 > end repeat > put the millisecs - t into t1 > -- > put the millisecs into t > toplevel tStackFile > put the short name of stack tStackFile into tStack > repeat n > put the uTest of stack tStack into r2 > end repeat > close stack tStackFile > put the millisecs - t into t2 > -- > put t1 && t2 &&(r1=r2) into fld "r" > end mouseUp > > Result: 151 140 true > > The difference is small even across 10,000 iterations, and can be explained by the need to resolve the path to a stack reference. > > How can this test be modified to show a greater difference? Good question. It was iterating over the controls in a stack so I'm not sure if that would make any difference. I believe the user had something like 20000 graphics on a card. I can't remember if the destroyStack was true or not. I ran a quick test with a stack with 500 graphics and a slightly different script: on mouseUp put fld "file" into tStackFile -- delete stack tStackFile put the millisecs into t repeat with X=1 to the number of grcs of stack tStackFile put the uTest of grc X of stack tStackFile into r1 end repeat put the millisecs - t into t1 -- delete stack tStackFile put the millisecs into t toplevel tStackFile put the short name of stack tStackFile into tStack repeat with X=1 to the number of grcs of stack tStack put the uTest of grc X of stack tStack into r2 end repeat close stack tStackFile put the millisecs - t into t2 -- put t1 && t2 &&(r1=r2) into fld "r" end mouseUp Result: 1034 212 true There was no significant difference with destroyStack property true or false. Adding another 500 graphics to the card resulted in this: 8863 399 true Changing toplevel to go invisible stack resulted in this: 8596 72 true Cheers Monte From ambassador at fourthworld.com Thu Nov 11 22:04:43 2010 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 11 Nov 2010 19:04:43 -0800 Subject: Performance Mystery Solved - IT'S THE DATA STUPID!! Message-ID: <4CDCAECB.4040508@fourthworld.com> Monte Goulding wrote: > I ran a quick test with a stack with 500 graphics and a slightly > different script: > > on mouseUp > put fld "file" into tStackFile > -- > delete stack tStackFile > put the millisecs into t > repeat with X=1 to the number of grcs of stack tStackFile > put the uTest of grc X of stack tStackFile into r1 > end repeat > put the millisecs - t into t1 > -- > delete stack tStackFile > put the millisecs into t > toplevel tStackFile > put the short name of stack tStackFile into tStack > repeat with X=1 to the number of grcs of stack tStack > put the uTest of grc X of stack tStack into r2 > end repeat > close stack tStackFile > put the millisecs - t into t2 > -- > put t1 && t2 &&(r1=r2) into fld "r" > end mouseUp > > Result: 1034 212 true > > There was no significant difference with destroyStack property true > or false. Adding another 500 graphics to the card resulted in this: > 8863 399 true > > Changing toplevel to go invisible stack resulted in this: > 8596 72 true Great work, Monte! Thanks for running that test. So the difference is in addressing controls *within* a stack, but not with the stack itself. Hard to anticipate, but very good to know. So Peter has a solution, and I learned two new things today about performance. A good day... -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From andrew at rjdfarm.com Thu Nov 11 22:08:05 2010 From: andrew at rjdfarm.com (Andrew Kluthe) Date: Thu, 11 Nov 2010 19:08:05 -0800 (PST) Subject: Gif issues In-Reply-To: <7BFE1D1F-6D24-43C8-80FB-C5221E73DB91@twft.com> References: <1289510859993-3038619.post@n4.nabble.com> <7BFE1D1F-6D24-43C8-80FB-C5221E73DB91@twft.com> Message-ID: <1289531285385-3038999.post@n4.nabble.com> same thing happens. except now SQLYoga won't connect to my db at all. lol -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Gif-issues-tp3038619p3038999.html Sent from the Revolution - User mailing list archive at Nabble.com. From andrew at rjdfarm.com Thu Nov 11 22:14:22 2010 From: andrew at rjdfarm.com (Andrew Kluthe) Date: Thu, 11 Nov 2010 19:14:22 -0800 (PST) Subject: Gif issues In-Reply-To: <1289531285385-3038999.post@n4.nabble.com> References: <1289510859993-3038619.post@n4.nabble.com> <7BFE1D1F-6D24-43C8-80FB-C5221E73DB91@twft.com> <1289531285385-3038999.post@n4.nabble.com> Message-ID: <1289531662814-3039002.post@n4.nabble.com> I fixed the issue with it not connecting at all, it was an issue of not putting the result i was error checking for. Gif issue persists identically. Perhaps this is just not doable with SQLYoga's call. Would a blocking command stop gifs from animating? If yes, would it also keep a manual gif loop over the frames from working? I am inclined to think so. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Gif-issues-tp3038619p3039002.html Sent from the Revolution - User mailing list archive at Nabble.com. From stephenREVOLUTION2 at barncard.com Thu Nov 11 22:14:58 2010 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Thu, 11 Nov 2010 19:14:58 -0800 Subject: revServer Documentation In-Reply-To: <1289502685604-3038378.post@n4.nabble.com> References: <1289502685604-3038378.post@n4.nabble.com> Message-ID: You will need this obscure but incredibly important little document. http://samples.on-rev.com/irev-engine-notes.txt It's the only technical manual for the server product. On 11 November 2010 11:11, Andrew Kluthe wrote: > > Hey all, > > I am getting my hands wet for the first time playing with revServer through > my on-rev account. I couldn't find much information on its features and > what > is and isn't available to revServer on the samples site. This seems to be > the only documentation I could find. > > Is there a dictionary or a user guide or a different mailing list for > revServer that I can refer to? Also, are there any good third party hubs > for > revServer articles or samples? > > Thanks, > > Andrew > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/revServer-Documentation-tp3038378p3038378.html > Sent from the Revolution - User mailing list archive at Nabble.com. > _______________________________________________ > use-revolution mailing list > use-revolution at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- Stephen Barncard San Francisco Ca. USA more about sqb From katir at hindu.org Thu Nov 11 22:28:04 2010 From: katir at hindu.org (Web Admin Himalayan Academy) Date: Thu, 11 Nov 2010 17:28:04 -1000 Subject: Creative Common Copyright Notice in Standalones In-Reply-To: <1351751042984.20101111175647@ahsoftware.net> References: <4CDC1310.508@fourthworld.com> <1351751042984.20101111175647@ahsoftware.net> Message-ID: <4CDCB444.9040807@hindu.org> On 11/11/10 3:56 PM, Mark Wieder wrote: > My take on it from the CC web site > is that it doesn't have specific clauses to cover source and object > code. > > http://wiki.creativecommons.org/Frequently_Asked_Questions#Can_I_use_a_Creative_Commons_license_for_software.3F > > For an example of how ridiculous open-source license has gotten: > http://en.wikipedia.org/wiki/Comparison_of_free_software_licenses > > Here are a few options: > > The Eiffel Forum License, version 2 > http://www.opensource.org/licenses/ver2_eiffel.php > > The MIT license: > http://www.opensource.org/licenses/mit-license.php > > The BSD license: > http://opensource.org/licenses/bsd-license.php > > and my favorite: > WTFPL > http://tinyurl.com/3w6cks Hmm Mark, thanks, very interesting links, quite an education. I'm interested in also letting anyone sell any remix of my code/stacks. Although we are non-profit I don't see it as useful for our runrev community to block developers who have families to feed from charging for a product based on some library I did. (in that vein GPL looks like a nightmare for small companies needing to earn a living....) i.e. if one company takes Grapple and (after getting a LiveCode License) builds standalones and deploys to a publisher, they can charge if they want to. OR: if a computer infrastructure support firm ( a real example about to transpire) is handling all of a publishers' computer needs (network installation etc.) and tells them about Grapple and they reach out to a LiveCode developer (because they make a decision that this is over their heads and if you are going to drop tools in the middle of such a sensitive environment as an editor-designer work group, they better work!) and so they reach out to LiveCode developer, then I want to allow that LiveCode developer to also to be able create any product he or she wants to from my stacks and charge for it if they want to... the only thing being that they cannot tell another LiveCode developer it belongs to them an them alone. Or put another way I think software patents are ridiculous and I don't want anyone to wrap their greedy hands around anything I write. If I want to protect something I will encrypt it. I don't see that CC prevents sale of anything under that license, but wouldn't the MIT license be more in line with this intent? And it *is* designed for software. Any insights on "problems" with MIT? it *is* a copyleft license too, like the CC license. Or to ask the question another way... why would you chose CC over MIT? Sivakatirswami From pete at mollysrevenge.com Thu Nov 11 23:08:15 2010 From: pete at mollysrevenge.com (Peter Haworth) Date: Thu, 11 Nov 2010 20:08:15 -0800 Subject: Performance Mystery Solved - IT'S THE DATA STUPID!! In-Reply-To: <4CDCAECB.4040508@fourthworld.com> References: <4CDCAECB.4040508@fourthworld.com> Message-ID: I have to admit you guys left me behind a while ago. But I'm glad I may have created a platform for some knowledge that wasn't there before, plus I've got a fix for my problem so yes, definitely a good day! Pete Haworth On Nov 11, 2010, at 7:04 PM, Richard Gaskin wrote: > Great work, Monte! Thanks for running that test. > > So the difference is in addressing controls *within* a stack, but > not with the stack itself. Hard to anticipate, but very good to know. > > So Peter has a solution, and I learned two new things today about > performance. > > A good day... From anthonyhowe at mac.com Thu Nov 11 23:11:18 2010 From: anthonyhowe at mac.com (Anthony Howe) Date: Fri, 12 Nov 2010 15:11:18 +1100 Subject: Audio Triggering + Mouse Event latency Message-ID: <8F9B1C04-4A15-4CB5-9F4D-1D75CE418BB6@mac.com> Hiya Folks, LiveCode firsttimer here, but have been following this great tool for a year or so - just got started a month or so ago. I'm hoping that there's some experience that can help me on this critical feature that I need to sort to move ahead a bit faster than what the last couple of weeks has allowed. As a 'get-started' / performance testing project I've been attempting to create a simple implementation of the following two features on a simple user interface: 1. 6 x buttons with down states (PNG icons) 2. MouseDown event handler which triggers a SHORT .WAV file with little or no latency, and allowing for rapid 'tapping' - so that the button may be used as a virtual percussion instrument, to be played along with a looping .MOV file, triggered independently. LiveCode IDE: 4.5.1, MacOSX 10.6.4 Total audio footprint: 445kb of WAV files, average file size 70KB Sound simple? Well in theory it is. The challenge is the 'little or no latency' bit. Here's the different configurations I've implemented so far: 1. Buffered, offscreen/invisible 'player' object to house each audio file as a .mov, send 'start' command directly to object from MouseDown event on same card. Result = slow, not snappy. 2. AudioClips (imported to stack, not referenced) triggered directly from mouseDown events. Result = less slow, but, not snappy. 3. Purchased and Implemented FranklinAudio external (recently released, based on OpenAL) with buffers for each sound mapped to single source for playback, with "alSourcePlay" function triggered from MouseDown handler. Result = per (2) above - for 50 times the amount of code. 4. FranklinAudio external with buffers for each sound mapped to multiple (spawning) sources for playback, with "alSourcePlay" function triggered from MouseDown handler (delivers cascading, layered playback of audio - which is cool side effect) Result = per (2) above - for 100 times the amount of code. (Franklin Audio actually looks really great in terms of extended audio capability, outside of this scenario, and I may not have fully optimised the best implementation in this tool). Key problem? All of these implementations deliver repeatable, less than desirable responsiveness from the button that is being clicked by the user to trigger the audio. It's just initiating playback too slowly to cut it as a playable 'instrument'. I would also be interested in how to improve this latency challenge from a general UI perspective anyway (using audio click sounds on buttons etc...) In contrast, i've been able to achieve much better (acceptable) performance of exactly the same basic functionality in: 1. Flash - (but this is not desirable for distribution requirements and other features of project - so no can do... except MAYBE in revBrowser) :( 2. HTML5 + JS with new