how to copy a folder from preferences under lion?
Hello, My software had a folder and files in /library/Preferences/ where now under Lion the user has no permissions any more I want to build a migration tool for my customers to move the folder and files from /library/Preferences/ to the new location at /Applications/myFolder/. I tried: get shell(sudo mv oldPathAndFolder newPathAndFolder) and same with ditto. Executing this command just nothing happens, the result returns 1 I tried it with AppleScript: Tell Finder do shell script mv /oldPath/AndFolder/ /newPath/AndFolder/ end tell it returns an execution error, when trying to copy from preferences. Copying from user folders runs fine. Trying: do shell script mv /oldPath/AndFolder/ /newPath/AndFolder/ with administrator rights returns a compiler error Why can I move my folder from preferences with the terminal using sudo mv, but not from within LC? What am I doing wrong? Or is Jans proposal to build a separate executable and elevate the rights the only way to get permissions? (no idea yet how to do that, therefore not tested it yet) Thanks for any help Tiemo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: regex to locate text and colorize it in a list
On Tue, Aug 9, 2011 at 7:49 PM, John Craig wrote: That should be exactly what the snippet does - maybe I got your test data wrong. An occurrence of the first item in the fourth item is colorised. Sent from my iPhone On 10 Aug 2011, at 00:25, Roger Eller roger.e.el...@sealedair.com wrote: On Tue, Aug 9, 2011 at 6:19 PM, John Craig wrote: Hi, Roger. Here's a quickie - create a stack with two fields ('in' and 'out') put your data into field 'in' and the following into the button script; on mouseUp set itemDel to tab put fld in into tData put the num of lines in tData into tLines repeat with i = 1 to tLines put item 1 of line i of tData into tNumber replace tNumber with font color=red tNumber /font in item 4 of line i of tData put br after line i of tData end repeat set the htmlText of fld out to tData end mouseUp HTH :) John - I sent you a simplified example stack off-list. ˜Roger For those following this thread, John's code works flawlessly (if I use clean data). I had spaces surrounding the text of each column after replacing TAB with TAB. ˜Roger ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: how to copy a folder from preferences under lion?
Tiemo Hollmann wrote: My software had a folder and files in /library/Preferences/ where now under Lion the user has no permissions any more I want to build a migration tool for my customers to move the folder and files from /library/Preferences/ to the new location at /Applications/myFolder/. What's wrong with using the folder Apple recommends?: specialFolderPath(preferences) That will return the user's Prefs folder rather than the system's, so it should always be writable. -- 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-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
AW: how to copy a folder from preferences under lion?
I have some files which must be shared for all users (see my previous threads). Thats why I had those files in the past in /library/preferences/ and now for Lion in /applications/myFolder/ which works for fresh installations. Now I wanted to migrate my files for existing installations, who upgraded to Lion to the new location, but I don't get them off the old location. Tiemo -Ursprüngliche Nachricht- Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] Im Auftrag von Richard Gaskin Gesendet: Mittwoch, 10. August 2011 15:19 An: use-livecode@lists.runrev.com Betreff: Re: how to copy a folder from preferences under lion? Tiemo Hollmann wrote: My software had a folder and files in /library/Preferences/ where now under Lion the user has no permissions any more I want to build a migration tool for my customers to move the folder and files from /library/Preferences/ to the new location at /Applications/myFolder/. What's wrong with using the folder Apple recommends?: specialFolderPath(preferences) That will return the user's Prefs folder rather than the system's, so it should always be writable. -- 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-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: AW: how to copy a folder from preferences under lion?
Tiemo Hollmann wrote: Richard Gaskin wrote: What's wrong with using the folder Apple recommends?: specialFolderPath(preferences) I have some files which must be shared for all users (see my previous threads). That’s why I had those files in the past in /library /preferences/ and now for Lion in /applications/myFolder/ which works for fresh installations. Now I wanted to migrate my files for existing installations, who upgraded to Lion to the new location, but I don't get them off the old location. Page 27 of the Release Notes may be helpful here: Elevated process support (4.5 – experimental) Sometimes it is necessary to perform operations on the local machine as an administrator, and a typical pattern for a GUI application doing this is for it to prompt for authentication at certain points. Modern operating systems do not permit a process to elevate itself, nor grant itself increased privilege. Instead, they only allow a running process to launch another process with increased privilege. Therefore, in order to support this, a new form of the open process command has been introduced that can launch a slave process with elevated permissions: open elevated process process [ for [ text | binary ] ( read | write | update | neither ) ] This form operates identically to the normal version, except that engine will ask the system to launch the given process with admin/root privileges. The standard way for a GUI application that needs to perform privileged operations to be structured is to split the application into two parts: a GUI front-end that interacts with the user, and a command-line back-end that is run with elevated permissions. These two parts can then talk to each other using a standard master-slave approach, or some other form of IPC such as sockets. Important: This feature is currently experimental. This means that it may not be complete, or may fail in some circumstances that you would expect it to work. Please do not be afraid to try it out as we need feedback to develop it further. For myself it seems like a lot of work to provide two standalones for one task; I'd probably opt for using the /Users/Shared folder instead. -- 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-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Exporting vector images
I know this is an old chestnut, but . . . Considering one can make and manipulate vectorised objects insode Livecode I don't quite see why one should not be able to export vector images. I have a lot of people badgering me about exporting vector images of (Sanskrit) text just now. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Money Script
Hey Charles that actually works pretty well. I did notice that a negative number would format something like $-5.21. Is that normal? Looks odd to me. Bob On Aug 9, 2011, at 12:08 PM, Charles Szasz wrote: I found the following to work just as well for fields without using functions: on closeField if me empty then put me into tNum put format($%1.2f, tNum) into me end if end CloseField Charles Szasz csz...@mac.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Money Script
Mark, it must have been you in an alternate timeleine. I have socks I never bought in my drawer. That pretty much settles everything. Bob On Aug 9, 2011, at 10:34 PM, Mark Wieder wrote: Hugh- Monday, August 8, 2011, 11:02:14 PM, you wrote: Mark Wieder's script, adjusted... ...interesting... I have no recollection of having done this... -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Stack Size Changes
So, heerza deal, One stack, several cards, two groups on each card, groups behave as backgrounds. Top of one group is 1, bottom is 199. Top of second group is 200, bottom is 740. This group has a vertical scroll bar. Resizable for the stack is turned off. Lock size and position is on, for both groups. I set the height of the stack to 742. Save. Close the stack. Open it. The height is now less than 742. Sometimes it's 712. Sometimes it's 692, or 696, or possibly other values. There are no scripts that alter card size, group size or stack size. Repeat. Same thing. The change of height is inconsistent, even if I do nothing to the stack except open, change the height, and close. When the stack size gets smaller, I can't scroll to the bottom of the lower group, and the arrows at the bottom of the scroll bar get cut off. I noticed this issue a few weeks ago, on the same stack. Then it stopped happening. Now it's doing it again. I looked at the message watcher when closing the stack. Didn't understand everything I saw, but nothing surprising. Wazzup? I guess I could fix this with a script on openStack or preOpenStack, but I want to understand why it happens. Thanks in advance. Tim ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: AW: how to copy a folder from preferences under lion?
So perhaps having a second stack which opened a shell that moved the files as an elevated process? Interesting. Bob On Aug 10, 2011, at 7:04 AM, Richard Gaskin wrote: open elevated process process [ for [ text | binary ] ( read | write | update | neither ) ] ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Exporting vector images
What would REALLY be nice is to be able to use REAL vector based icons or import eps for our buttons so that scaling an app would not make everything look cheesy. Bob On Aug 10, 2011, at 7:28 AM, Richmond Mathewson wrote: I know this is an old chestnut, but . . . Considering one can make and manipulate vectorised objects insode Livecode I don't quite see why one should not be able to export vector images. I have a lot of people badgering me about exporting vector images of (Sanskrit) text just now. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: FTP To and From My Mac
Hi Dave Cragg and Mark Schonewille, Thank you both for your responses. Problem solved with a unexpected fix! I tried all of your suggestions, learned a lot about the various libURL commands, which will be useful in my project, but unfortunately, none solved the problem not being able to download that particular 183 KB file. The FTP log told me the download was complete, indicated the correct number of bytes, and that the socket had been closed. But the variable into which the file had been loaded had zero lines in it and did not appear in the field into which I put it. I tried many other files, some as big as 2 MB, and they downloaded fine and in a jiffy. It then occurred to me that this was the only file created with LiveCode using RETURN to delimit line endings, and that perhaps something gets messed up when it is transferred to the remote Mac server. I went through my old Revolution tips and found an email from you, Dave, from 2005, explaining how to clean line endings. Worked like a charm!!! on cleanLineEndings @pText replace crlf with return in pText replace numToChar(13) with return in pText end cleanLineEndings Thanks again, Gregory ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
AW: AW: how to copy a folder from preferences under lion?
Thanks Richard, I think for my usage of offering a migration tool it's a bit to much. I think I'll let die my old files where they are and let the user install them fresh in the new location. If somebody complains about my dead files I'll let him call apple. Tiemo -Ursprüngliche Nachricht- Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] Im Auftrag von Richard Gaskin Gesendet: Mittwoch, 10. August 2011 16:04 An: use-livecode@lists.runrev.com Betreff: Re: AW: how to copy a folder from preferences under lion? Tiemo Hollmann wrote: Richard Gaskin wrote: What's wrong with using the folder Apple recommends?: specialFolderPath(preferences) I have some files which must be shared for all users (see my previous threads). Thats why I had those files in the past in /library /preferences/ and now for Lion in /applications/myFolder/ which works for fresh installations. Now I wanted to migrate my files for existing installations, who upgraded to Lion to the new location, but I don't get them off the old location. Page 27 of the Release Notes may be helpful here: Elevated process support (4.5 experimental) Sometimes it is necessary to perform operations on the local machine as an administrator, and a typical pattern for a GUI application doing this is for it to prompt for authentication at certain points. Modern operating systems do not permit a process to elevate itself, nor grant itself increased privilege. Instead, they only allow a running process to launch another process with increased privilege. Therefore, in order to support this, a new form of the open process command has been introduced that can launch a slave process with elevated permissions: open elevated process process [ for [ text | binary ] ( read | write | update | neither ) ] This form operates identically to the normal version, except that engine will ask the system to launch the given process with admin/root privileges. The standard way for a GUI application that needs to perform privileged operations to be structured is to split the application into two parts: a GUI front-end that interacts with the user, and a command-line back-end that is run with elevated permissions. These two parts can then talk to each other using a standard master-slave approach, or some other form of IPC such as sockets. Important: This feature is currently experimental. This means that it may not be complete, or may fail in some circumstances that you would expect it to work. Please do not be afraid to try it out as we need feedback to develop it further. For myself it seems like a lot of work to provide two standalones for one task; I'd probably opt for using the /Users/Shared folder instead. -- 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-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [Server] create stack trouble
On 9 Aug 2011, at 19:20, Pierre Sahores wrote: Hi Björnke, FOR ME The main goal of using the server's stack component is to let us store our code as password protected libraries I fixed your point above. The problem is exactly that mindset. This time your user case was supported. Are your needs covered in all the other partial features cases? For example your socket needs, using unicode easily without worrying all the time or when revServer did not allow any stacks for 3 years? The stack is a complex beast, and for a reason. It allows for dozens of different user cases, and to support all of those possibilities, all the stack features need to be available. There is never one use for any component in LC, instead everything hooks together to allow the dozens approaches we all love for achieving a single goal. Björnke -- Watch live presentations every Saturday: http://livecode.tv Use an alternative Dictionary viewer: http://bjoernke.com/bvgdocu/ Chat with other RunRev developers: http://bjoernke.com/chatrev/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Questions About LiveCode Apps That Connect to the Internet
Hello everyone, I’m building a standalone for my students. It will allow them to upload quizzes and small assignments to my Mac via FTP as well as participate in various experiments and surveys. I have a few Internet-related questions that I hoping someone can answer. Is there a handler I can include in the stack that would allow it to detect whether the user is connected to the Internet? That would allow me to give them the option of working offline. How can I get the current date and time from either a time server or my remote Mac? I need to timestamp student submissions and want the time coming from one source, not their own machines. What is the best way to catch common FTP errors, such as a file not existing, so that I can relay a message back to the users? Much obliged, Gregory ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
AW: how to copy a folder from preferences under lion?
I also tried to just copy the files (cp), which works with standard files, but not with a hidden file (dotFilename). Any ideas? Thanks Tiemo -Ursprüngliche Nachricht- Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] Im Auftrag von Tiemo Hollmann TB Gesendet: Mittwoch, 10. August 2011 13:12 An: 'How to use LiveCode' Betreff: how to copy a folder from preferences under lion? Hello, My software had a folder and files in /library/Preferences/ where now under Lion the user has no permissions any more I want to build a migration tool for my customers to move the folder and files from /library/Preferences/ to the new location at /Applications/myFolder/. I tried: get shell(sudo mv oldPathAndFolder newPathAndFolder) and same with ditto. Executing this command just nothing happens, the result returns 1 I tried it with AppleScript: Tell Finder do shell script mv /oldPath/AndFolder/ /newPath/AndFolder/ end tell it returns an execution error, when trying to copy from preferences. Copying from user folders runs fine. Trying: do shell script mv /oldPath/AndFolder/ /newPath/AndFolder/ with administrator rights returns a compiler error Why can I move my folder from preferences with the terminal using sudo mv, but not from within LC? What am I doing wrong? Or is Jans proposal to build a separate executable and elevate the rights the only way to get permissions? (no idea yet how to do that, therefore not tested it yet) Thanks for any help Tiemo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Questions About LiveCode Apps That Connect to the Internet
On Aug 10, 2011, at 8:33 AM, Gregory Lypny wrote: Hello everyone, I’m building a standalone for my students. It will allow them to upload quizzes and small assignments to my Mac via FTP as well as participate in various experiments and surveys. I have a few Internet-related questions that I hoping someone can answer. Is there a handler I can include in the stack that would allow it to detect whether the user is connected to the Internet? That would allow me to give them the option of working offline. How can I get the current date and time from either a time server or my remote Mac? I need to timestamp student submissions and want the time coming from one source, not their own machines. What is the best way to catch common FTP errors, such as a file not existing, so that I can relay a message back to the users? Much obliged, Gregory ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Hi Gregory, What is the best way to catch common FTP errors, such as a file not existing, so that I can relay a message back to the users? After doing an FTP transaction, put the result into a variable. If the variable is empty then the transaction was successful. If there was an error, the variable will contain the exact error that occurred. You can then return that error to the user. How can I get the current date and time from either a time server or my remote Mac? I need to timestamp student submissions and want the time coming from one source, not their own machines. Timestamping from the perspective the client is very easy. Doing it from a central clock is a bit more complex. Two solutions I can think of would be to pull the time from the internet or running a CGI on the server and pulling it from the server. If the Macs are set to keep their timing in sync with the internet then using the local time on each system should be accurate enough though. Here is how you can check for the internet. The csDebugOutput lines can be removed. They are used to log the function. I have included that handler in the event you want to log it as well. This function scales nicely for users that have higher latency connections. Users that have lower latency connections will not be penalized and will normally return a true or false value within 20 milliseconds. I have seen affordable dsl connections take as much as 1500 milliseconds. Some international users may need as much as 3000 milliseconds on dial up connections. The function allows for up to 6000 milliseconds. This value can be modified as needed. The tSiteToCheck variable can be set to any website. We used to use Google, but found testing against our own sever served us in two ways. We could see if the client would have issues resolving a connection to our server as well as testing for the ability to communicate with the Internet. local lInternetFirstCheck, lInternetFirstCheckTiming function checkInternetStatus --INITIALIZE VARIABLES put 6000 into tFallbackTime put www.canelasoftware.com into tSiteToCheck put false into lInternetFirstCheck csDebugOutput (Starting checkInternetStatus...) put hostNameToAddress(tSiteToCheck,checkInternetStatus_Callback) into tThrowAway --GIVE SYSTEM TIME TO RUN THE hostNameToAddress FUNCTION put the milliseconds into lInternetFirstCheckTiming --GATHER TIMING FOR ACCURATE LOGGING repeat until lInternetFirstCheck is true wait 1 milliseconds with messages if the milliseconds - lInternetFirstCheckTiming tFallbackTime then exit repeat end repeat --lInternetFirstCheck: true = DEFINITELY NOT CONNECTED TO ROUTER WITH NO WAN --lInternetFirstCheck: false = PROBABLY CONNECTED TO ROUTER WITH NO WAN (OR WE HAVE POOR LATENCY) --hostNameToAddress DID NOT RUN AND THUS RETURN NO INTERNET --PROBABLY CONNECTED TO ROUTER WITH NO WAN (OR WE HAVE POOR LATENCY) if lInternetFirstCheck is false then csDebugOutput (First internet check failed after: the milliseconds - lInternetFirstCheckTiming ms) csDebugOutput (Probably connected to a router with no WAN (or we have poor latency).) return false end if --CHECK IF THE ROUTER HAS A VALID INTERNET CONNECTION put hostNameToAddress(tSiteToCheck) into tInternetSecondCheck --WE HAVE A VALID INTERNET CONNECTION set the itemdel to . if item 2 of tInternetSecondCheck is a number then csDebugOutput (Second internet check passed after: the milliseconds - lInternetFirstCheckTiming ms) return true end if --WE ARE NOT CONNECTED TO A VALID INTERNET
Re: AW: AW: how to copy a folder from preferences under lion?
I think if Apple decided to lock people out of their own preference files, they should have provided a migration utility themselves. Bob On Aug 10, 2011, at 8:30 AM, Tiemo Hollmann TB wrote: Thanks Richard, I think for my usage of offering a migration tool it's a bit to much. I think I'll let die my old files where they are and let the user install them fresh in the new location. If somebody complains about my dead files I'll let him call apple. Tiemo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [Server] create stack trouble
Hello Björnke, We probably need to get in mind that desktop apps stacks and server's stacks are not dedicated to do the same jobs ! On the left, desktop apps stacks are handled in RAM as long running processes and this give us lots of possibilities, sockets management included. If you really search a way to handle such stacks in a server-side long running application's server context, feel free to refer and use the method and tools i forwarded to the community years ago about the subject in visiting http://www.sahores-conseil.com/insead/. This is a good way to go as long as we remind that the stack component is not running in multithread mode... On the right, LC-server stacks are only dedicated to work as command-line or CGI driven protected libs components and because this restriction they are able to run in multithread mode and this was wanted/needed to get LC-server able to become a rock-solid server-side alternative to Java or PHP. In a perfect world - and this will perhaps become the case later if RunRev get good incomes from the LC-server product - the next step could be to get a new kind of product as an LC-application's server running in the way JBoss, WebSphere, WebLogic, etc... are able to do. But, at this point, frankly, i'm not sure that this way to go would really helps as long as all good n-tier apps relies mainly on methodology, design and good practices to handle their tasks as stateless jobs. In other words, if an n-tier app can be build on top of JBoss (long running process), it can be build as well as a CGI tasks collection too and the difference will mainly rely on the fact that the second code implementation will need to be more clean and compact than the one we could build for JBoss in using toons of unproductive frameworks (Eclipe, Ant, Hibernate, Struts, etc...). Just a simple tough ;-) Kind Regards, Pierre The stack is a complex beast, and for a reason. It allows for dozens of different user cases, and to support all of those possibilities, all the stack features need to be available. There is never one use for any component in LC, instead everything hooks together to allow the dozens approaches we all love for achieving a single goal. Björnke -- Watch live presentations every Saturday: http://livecode.tv Use an alternative Dictionary viewer: http://bjoernke.com/bvgdocu/ Chat with other RunRev developers: http://bjoernke.com/chatrev/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Money Script
On Aug 10, 2011, at 10:52 AM, Bob Sneidar wrote: Mark, it must have been you in an alternate timeleine. I have socks I never bought in my drawer. That pretty much settles everything. OK, now we've traveled back to a previous discussion. Next someone talks about driers being time machines, then it's paperclips transforming into coat hangers or something. Then we all start complaining about the bugs in version 4.0 ... Somebody wake me up. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Exporting vector images
Hi Richmond, Download this: http://andregarzia.on-rev.com/alejandro/stacks/export_vector_graphics_v04.zip Have a nice Day! :-D Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Exporting-vector-images-tp3733066p3733514.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: AW: AW: how to copy a folder from preferences under lion?
Thanks Apple to invite us to understand that good time is coming for FOSS Posix OS ;-) Le 10 août 2011 à 17:46, Bob Sneidar a écrit : I think if Apple decided to lock people out of their own preference files, they should have provided a migration utility themselves. Bob On Aug 10, 2011, at 8:30 AM, Tiemo Hollmann TB wrote: Thanks Richard, I think for my usage of offering a migration tool it's a bit to much. I think I'll let die my old files where they are and let the user install them fresh in the new location. If somebody complains about my dead files I'll let him call apple. Tiemo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Exporting vector images
On 08/10/2011 07:41 PM, Alejandro Tejada wrote: Hi Richmond, Download this: http://andregarzia.on-rev.com/alejandro/stacks/export_vector_graphics_v04.zip Have a nice Day! :-D Al Wow! And Thank You 50 thousand times! Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Exporting vector images
On 08/10/2011 07:41 PM, Alejandro Tejada wrote: Hi Richmond, Download this: http://andregarzia.on-rev.com/alejandro/stacks/export_vector_graphics_v04.zip Have a nice Day! :-D BUT . . . This super stack exports Vector graphics as vector graphics (wow, that sounds a bit circular), and as such is wonderful. WHAT IT DOESN'T DO is: Export TEXT from a textField as Vectors . . . expecting too much, I am . . . :) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Money Script
cheese ~ Chris Innanen ~ Nonsanity On Wed, Aug 10, 2011 at 12:40 PM, Peter M. Brigham, MD pmb...@gmail.comwrote: On Aug 10, 2011, at 10:52 AM, Bob Sneidar wrote: Mark, it must have been you in an alternate timeleine. I have socks I never bought in my drawer. That pretty much settles everything. OK, now we've traveled back to a previous discussion. Next someone talks about driers being time machines, then it's paperclips transforming into coat hangers or something. Then we all start complaining about the bugs in version 4.0 ... Somebody wake me up. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Money Script
I really love you guys. :-) Bob On Aug 10, 2011, at 10:03 AM, Nonsanity wrote: cheese ~ Chris Innanen ~ Nonsanity On Wed, Aug 10, 2011 at 12:40 PM, Peter M. Brigham, MD pmb...@gmail.comwrote: On Aug 10, 2011, at 10:52 AM, Bob Sneidar wrote: Mark, it must have been you in an alternate timeleine. I have socks I never bought in my drawer. That pretty much settles everything. OK, now we've traveled back to a previous discussion. Next someone talks about driers being time machines, then it's paperclips transforming into coat hangers or something. Then we all start complaining about the bugs in version 4.0 ... Somebody wake me up. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Money Script
Bob, I am using that script along with the following script, which is placed first. The script below prevents a negative number being entered. My app calculates mileage and hence, I will not have a negative number. on keyDown theKey if theKey is in 1234567890 then pass keydown end if if theKey=. and . is not in me then if me is empty or the number of chars of me=1 and char 1 of me=- then put 0. after me else pass keydown end if end if end keyDown I then use the following scripts: on backSpaceKey put empty into me end backSpaceKey on backSpaceKey put empty into me end backSpaceKey on closeField if me empty then put me into tNum if char 1 of tNum = $ then delete char 1 of tNum put format($%1.2f, tNum) into me else put format($%1.2f, tNum) into me end if put field expen1 into t1 put filterThis(t1) into tFiltered1 put field expen2 into t2 put filterThis(t2) into tFiltered2 end closeField I am using Nicolas Cuato's scripts for filtering out the $ sign. If you need those scripts, please let me know. Charles Szasz csz...@mac.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Questions About LiveCode Apps That Connect to the Internet
How can I get the current date and time from either a time server or my remote Mac? I need to timestamp student submissions and want the time coming from one source, not their own machines. You can fetch the time from the U.S. Naval Observatory atomic clock. This assumes an internet connection, though. In my little stack, the time zone is chosen by the user, so I fetch it from a customprop. You'll have calculate the time offset from the last word of the internet date on the user machine -- I'll leave that to you. You need to convert something like -0400 [EDT] to 1, -0500 to 2 etc. but in winter the internet date will return -0500 for eastern *standard* time so you'll have to correct for that. The object is to get the correct line of the HTMLtext of the tycho webpage. Check out the format of the page, it's simple HTMLtext. This will give you a start: function fetchTime put URL http://tycho.usno.navy.mil/cgi-bin/timer.pl; into t -- gives a list of current times for all US time zones put the timeZone of stack TimeHelp into h -- time zone is as follows -- daylight time is given if currently applicable -- 1 = eastern -- 2 = central -- 3 = mountain -- 4 = pacific -- 5 = alaska -- 6 = hawaii put line 6+h of t into tTime delete item 1 of tTime return tTime end fetchTime -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Searching for partial matches in a datagrid
Hi Bob, Maybe time for sharing some hidden scripts. Here is a part of the DGH engine script that could probably do the trick: command dgh_FindLine pWhichDataGrid, pKeyIndexA, pSearchType, pSearchString local tTheIndexList, tIndex, tTheLineList _dgh_FindIndex pWhichDataGrid, pKeyIndexA, pSearchType, pSearchString put the result into tTheIndexList repeat for each item tIndex in tTheIndexList put the dgLineOfIndex[tIndex] of pWhichDataGrid into item (the number of items of tTheLineList + 1) of tTheLineList end repeat if (tTheLineList is empty) then return 0 else return tTheLineList end if end dgh_FindLine private command _dgh_FindIndex pWhichDataGrid,pTpKeyIndexA,pSearchType,pSearchString local foundAMatch, theFoundIndex, i, theIndex, tIndexValue, tSearchType, tNotSearch, tSearchString, tError if (pSearchType is among the items of _zuSearchContentOperatorList()) then try put the dgData of pWhichDataGrid into sDataArray repeat for each key theIndex in sDataArray repeat with i = 2 to the paramCount step 3 put sDataArray[theIndex][param(i)] into tIndexValue put param(i+1) into tSearchType put param(i+2) into tSearchString if (first word of tSearchType is not) then put not into tNotSearch delete first word of tSearchType else put empty into tNotSearch end if put value(tNotSearch ( quote tIndexValue quote tSearchType quote tSearchString quote )) into foundAMatch exit repeat end repeat if foundAMatch then put theIndex into item (number of items of theFoundIndex + 1) of theFoundIndex end if end repeat if (theFoundIndex is empty) then return 0 else return theFoundIndex end if catch tError answer tError end try else answer pSearchType is not in _zuSearchContentOperatorList()) end if end _dgh_FindIndex private function _zuSearchContentOperatorList return is,begins with,ends with,contains,is not,not begins with,not ends with,not contains,=,,=,,=, end _zuSearchContentOperatorList It is an implementation of the FindIndex and FindLine handler of the Datagrid library with additional capabilities. The capacity of searching with multiple queries is removed. I'm using another couple of handlers for doing that. Note that all the existing operators can be use: contains, begins with, ends with, , , =, is, etc Usage examples: put the long id of grp myDataGrid into tDataGridRef dgh_FindLine tDataGridRef, Col1, contains, a put the result into tTheLineFound set the dgHilitedLines of tDataGridRef to tTheLineFound On Wed, Aug 10, 2011 at 12:43 AM, Bob Sneidar b...@twft.com wrote: Hi all. I am hoping there will be a way to search a datagrid for PARTIAL matches. I already can find EXACT matches, and I tried regex on the findIndex command, to no avail. I know that if I cannot I can always get the dgText of the datagrid, but there is a problem with that method. First, the datagrid may contain a huge amount of data, and it seems inefficient to work with strings if I can use arrays instead. Second, if I need to set the dgText of the datagrid to what I find, it will wipe all my hidden data columns, that is array keys which I do not have a column for in the datagrid. I depend on these. So I can kludge a way to do this, but I was hoping I was simply missing something. Best Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Searching for partial matches in a datagrid
Oh hey that's awesome! I ended up crafting a SQL query to do it by querying the database, but of course, that may be a bit slower than filtering the datagrid itself with all the records in an array stored locally. I will have to test both methods and see how it goes. I am really leaning towards finding in the datagrid though. Thanks for this. Bob On Aug 10, 2011, at 12:28 PM, zryip theSlug wrote: Hi Bob, Maybe time for sharing some hidden scripts. Here is a part of the DGH engine script that could probably do the trick: command dgh_FindLine pWhichDataGrid, pKeyIndexA, pSearchType, pSearchString local tTheIndexList, tIndex, tTheLineList _dgh_FindIndex pWhichDataGrid, pKeyIndexA, pSearchType, pSearchString put the result into tTheIndexList repeat for each item tIndex in tTheIndexList put the dgLineOfIndex[tIndex] of pWhichDataGrid into item (the number of items of tTheLineList + 1) of tTheLineList end repeat if (tTheLineList is empty) then return 0 else return tTheLineList end if end dgh_FindLine private command _dgh_FindIndex pWhichDataGrid,pTpKeyIndexA,pSearchType,pSearchString local foundAMatch, theFoundIndex, i, theIndex, tIndexValue, tSearchType, tNotSearch, tSearchString, tError if (pSearchType is among the items of _zuSearchContentOperatorList()) then try put the dgData of pWhichDataGrid into sDataArray repeat for each key theIndex in sDataArray repeat with i = 2 to the paramCount step 3 put sDataArray[theIndex][param(i)] into tIndexValue put param(i+1) into tSearchType put param(i+2) into tSearchString if (first word of tSearchType is not) then put not into tNotSearch delete first word of tSearchType else put empty into tNotSearch end if put value(tNotSearch ( quote tIndexValue quote tSearchType quote tSearchString quote )) into foundAMatch exit repeat end repeat if foundAMatch then put theIndex into item (number of items of theFoundIndex + 1) of theFoundIndex end if end repeat if (theFoundIndex is empty) then return 0 else return theFoundIndex end if catch tError answer tError end try else answer pSearchType is not in _zuSearchContentOperatorList()) end if end _dgh_FindIndex private function _zuSearchContentOperatorList return is,begins with,ends with,contains,is not,not begins with,not ends with,not contains,=,,=,,=, end _zuSearchContentOperatorList It is an implementation of the FindIndex and FindLine handler of the Datagrid library with additional capabilities. The capacity of searching with multiple queries is removed. I'm using another couple of handlers for doing that. Note that all the existing operators can be use: contains, begins with, ends with, , , =, is, etc Usage examples: put the long id of grp myDataGrid into tDataGridRef dgh_FindLine tDataGridRef, Col1, contains, a put the result into tTheLineFound set the dgHilitedLines of tDataGridRef to tTheLineFound On Wed, Aug 10, 2011 at 12:43 AM, Bob Sneidar b...@twft.com wrote: Hi all. I am hoping there will be a way to search a datagrid for PARTIAL matches. I already can find EXACT matches, and I tried regex on the findIndex command, to no avail. I know that if I cannot I can always get the dgText of the datagrid, but there is a problem with that method. First, the datagrid may contain a huge amount of data, and it seems inefficient to work with strings if I can use arrays instead. Second, if I need to set the dgText of the datagrid to what I find, it will wipe all my hidden data columns, that is array keys which I do not have a column for in the datagrid. I depend on these. So I can kludge a way to do this, but I was hoping I was simply missing something. Best Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Stack Size Changes
My query from earlier this morning is generating a non-flurry of replies, likely because no one knows the answer. I have solved the problem with a simple preOpenStack handler, which works fine. However, I feel this issue must represent a gap in my knowledge, which I would like to close. Further investigation: On suspendStack answer the height of this stack pass suspendStack end suspendStack The height is 742 Same for on closeStack -- last instruction before stack closes -- the height is 742 On preOpenStack answer the height of this stack -- first instruction, before doing anything else pass preOpenStack end preOpenStack The height is 712 on some occasions. On other occasions it might be 692 or 696, and so on. The width does not change. Is this a possible bug? Is this a feature I don't know about? It's on a laptop, but the rect of the stack is smaller than the screenRect. Cheers, Tim On Aug 10, 2011, at 7:57 AM, Timothy Miller wrote: So, heerza deal, One stack, several cards, two groups on each card, groups behave as backgrounds. Top of one group is 1, bottom is 199. Top of second group is 200, bottom is 740. This group has a vertical scroll bar. Resizable for the stack is turned off. Lock size and position is on, for both groups. I set the height of the stack to 742. Save. Close the stack. Open it. The height is now less than 742. Sometimes it's 712. Sometimes it's 692, or 696, or possibly other values. There are no scripts that alter card size, group size or stack size. Repeat. Same thing. The change of height is inconsistent, even if I do nothing to the stack except open, change the height, and close. When the stack size gets smaller, I can't scroll to the bottom of the lower group, and the arrows at the bottom of the scroll bar get cut off. I noticed this issue a few weeks ago, on the same stack. Then it stopped happening. Now it's doing it again. I looked at the message watcher when closing the stack. Didn't understand everything I saw, but nothing surprising. Wazzup? I guess I could fix this with a script on openStack or preOpenStack, but I want to understand why it happens. Thanks in advance. Tim ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Stack Size Changes
Hi Tim, If the stack is taller (or wider) than governed by the windowBoundingRect, it will be automatically chopped off. I do not like it... Been that way for ever. :-( Cheers, Malte ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Adding tracks
Now for a hard one. I am writing a program called GrooveBlox. I created a menu and have a Track menu - where the user can add and delete tracks, like a sequencer program. Tracks are like layers and will be able to be moved around, added to, etc. The idea is to have rectangles (colored) that represent grooves. I want the user to be able to drag and drop the groove rectangles onto a track (they will SNAP in place) and build all kinds of grooves. I need to write our the flow diagram still, but I want to get started on it. The audio files are wave files and more than enough are done to create a product. Here is my question list (it will grow): How will I create the tracks - are they groups or are they substacks? How to add tracks to the main stack (track holder)? How to make the tracks SNAP into place, one beneath the other? How to move the various tracks above or below each other and therefore adjust the layers? How to scroll the track holder once there are too many tracks to fit on one screen? How to drag and drop the colored rectangles onto the tracks using SNAP (very important since the grooves are an exact size and loop precisely)? How to add the rectangles to the holding bin? How to assign the wave file to the colored rectangle? How to play all the tracks in sync with one another? How to adjust the panning with the panning slider? How to adjust the volume with the volume slider? How to create a looping function so you can hear the groove play over and over, and add/subtract/edit tracks while it is playing in sync? How to write a final wave file mixing all the tracks together. Is this the kind of program that requires a client-side database to keep things remembered? Anyone's help is appreciated. Mike ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Stack Size Changes
Hi Malte and Bob, The windowBoundingRect is unfamiliar to me. This is probably the gap in my understanding I wanted to fill. I'm reading the dictionary, scratching my head. However, the arithmetic is not quite adding up. Visually, my stack fits on the screen. If I position it carefully by dragging, with the height set to 742, I can see a little bit of the desktop picture on all four sides. In this case, the rect of the stack is 10,51,1270, 793. I assumed that this would prevent resizing of the stack. It doesn't. My windowBounding rect is 0,50,1280,796. Presumably this is the default value. (The top margin seems bigger than it needs to be. The Mac OS menu bar appears to be 40 pixels high, not 50. But that's another matter.) If I'm not mistaken, the stack does lie within the windowBounding rect. FWIW, the screen rect is 0,0,1280,800 Setting the top of the stack to 51 before saving and closing, or in preOpenStack does not prevent the automatic chopping off of the stack when it opens. I tried setting the windowBoundingRect to 0,41,1280,796 to give the stack a little more room, but that didn't seem to make any difference. Am I not getting something? Or is LC misbehaving just a little? This is all academic. I can solve the problem by setting the height or the rect of the stack in preOpenStack. Thanks again. Tim On Aug 10, 2011, at 1:56 PM, Malte Brill wrote: Hi Tim, If the stack is taller (or wider) than governed by the windowBoundingRect, it will be automatically chopped off. I do not like it... Been that way for ever. :-( Cheers, Malte ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mac users, please try this out:
Hi Mike, I downloaded the file candidateswt_mac.sitx and StuffIt Expander shows an error message: An errror occurred... Unspecified internal error #17999. I can't do anything with that file. Mac OS X has a built-in compression tool. Look in the File menu of the Finder. It contains a Compress menu item. There is also Disk Utility, which lets you create very nice disk images. In fact, I wonder if nowadays most Macs don't come without StuffIt. Many people don't even know what a .sitx extension is. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 What does that error mean? Buy LiveCodeErrors for iPhone now http://qery.us/v4 A must-have for LiveCode programmers. On 10 aug 2011, at 23:24, Admin wrote: Dear Mac users: I have deployed my database program to Mac, and at first, when I tested it originally on my Mac, it worked. Now it won't let me click any buttons, so I cannot login. Could you please download the files and see if they (A) run and (B) work properly (I know you do not have a login, you can either start new and fresh or enter anything just to see if it works enough to give you a database login error. www.campstaffusa.com/newdb/ Choose the Mac versions of both camp counselor and summer work travel Thank you very much. Mike ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [OT] Internet Censorship
Alejandro, Part of the problem, at least in the US, is that fair use is not a right; it's a defense, meaning you have to risk being sued to even mention it. A silly little video of mine was just taken down by EMI because I used a recording of O Fortuna. I suppose EMI could claim that, because people could consume the music via my silly video instead of just buying the tune for $0.99 like I did to make the video, despite owning it on vinyl, I really think that anyone who enjoyed the music would just spend the bloody dollar. EMI's issuing the take-down notice is not considered a legal document; however, if I contest it using the fair use doctrine, my defense IS and opens me up to being sued for a truly ridiculous amount of money. Here's a fun bit of reading: The EFF's white paper on the 10 unintended consequences of the DMCA: http://www.eff.org/files/DMCAUnintended10.pdf Judy On Sat, 6 Aug 2011, Alejandro Tejada wrote: Hi warren, Actually, my dissapoint is with Sony Music Entertainment and their insensitive application of copyright law over fair use in this documental series Look, I am not the only one. From the brainpickins page that you linked: Harmony continues here: 2, 4, 5. (Alas, Part 3 has been gobbled up by copyright claims — even though the series is not available on DVD or in any purchasable format. Such is the disposition of copyright Nazis — far from merely ensuring that creators are compensated for their work, they’d rather let a cultural artifact rot in obscurity than reach is wide-eyed audience.) More info: http://fairuse.stanford.edu/Copyright_and_Fair_Use_Overview/chapter9/9-c.html Hopefully, in a future, Mr. Goodall will replace these specific parts of the series and publish the whole documentary in DVD, with subtitles and alternate languages, Al ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: More time travelling
Jacque- Wednesday, August 10, 2011, 9:09:03 AM, you wrote: On 8/10/11 12:39 AM, Mark Wieder wrote: Looks like Jacque's not the only time traveller around... http://www.pcmag.com/article2/0,2817,2390671,00.asp At first I thought this was just an amateur tinkering with a clock. But when I met her 40 years from now, I see she may be on to something. I think she's just the sort of inventive user we need more of - someone who is clever, likes to tinker with things, shares her results with the community, is responsible about reporting flaws, plays well with others... I say we should gift her a personal license and get her off to a good start with LiveCode. She's probably got a thing or three to teach me about better ways of doing things. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Stack Size Changes
Tim, Are you using OS X? Two things on OS X can cause vertical resizing problems: 1. The dock If the dock is on the bottom of the screen (even if it is hidden) stacks can be shortened to accommodate area for the dock. Try it on the side and see if that makes a difference. 2. Menus All usually goes well if menus are created on the first card of a one- card stack. Adding menus after cards have been added to a stack can cause dramatic resizing of the stack as one moves from card to card. Paul Looney On Aug 10, 2011, at 1:29 PM, Timothy Miller wrote: My query from earlier this morning is generating a non-flurry of replies, likely because no one knows the answer. I have solved the problem with a simple preOpenStack handler, which works fine. However, I feel this issue must represent a gap in my knowledge, which I would like to close. Further investigation: On suspendStack answer the height of this stack pass suspendStack end suspendStack The height is 742 Same for on closeStack -- last instruction before stack closes -- the height is 742 On preOpenStack answer the height of this stack -- first instruction, before doing anything else pass preOpenStack end preOpenStack The height is 712 on some occasions. On other occasions it might be 692 or 696, and so on. The width does not change. Is this a possible bug? Is this a feature I don't know about? It's on a laptop, but the rect of the stack is smaller than the screenRect. Cheers, Tim On Aug 10, 2011, at 7:57 AM, Timothy Miller wrote: So, heerza deal, One stack, several cards, two groups on each card, groups behave as backgrounds. Top of one group is 1, bottom is 199. Top of second group is 200, bottom is 740. This group has a vertical scroll bar. Resizable for the stack is turned off. Lock size and position is on, for both groups. I set the height of the stack to 742. Save. Close the stack. Open it. The height is now less than 742. Sometimes it's 712. Sometimes it's 692, or 696, or possibly other values. There are no scripts that alter card size, group size or stack size. Repeat. Same thing. The change of height is inconsistent, even if I do nothing to the stack except open, change the height, and close. When the stack size gets smaller, I can't scroll to the bottom of the lower group, and the arrows at the bottom of the scroll bar get cut off. I noticed this issue a few weeks ago, on the same stack. Then it stopped happening. Now it's doing it again. I looked at the message watcher when closing the stack. Didn't understand everything I saw, but nothing surprising. Wazzup? I guess I could fix this with a script on openStack or preOpenStack, but I want to understand why it happens. Thanks in advance. Tim ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Stack Size Changes
Hi Paul, I'm on OS 10.6.8 I'll bet it's the dock. Wait. I'll try it right now... Oopsie! Same issue with the dock on the left. For now, this behavior is replicable. Trial and error: If I set the height to 717, close and reopen, it stays at 717. Same for 718. If I set it to 719, close and re-open, it re-opens with a new height of 716. Any height greater than 718 resets the stack height to 716, unless I prevent it by script. At other times, it has cropped itself to 692, 693, and 696. This morning it was cropping itself to 712. I tried various values for the top of the stack. For now, the behavior is the same whether the top of the stack is 21, 51 or 71, so the windowBoundingRect may not be a factor. Repeating information posted earlier: The screenrect is 0,0,1280,800, The windowBoundingRect is 4,50,1280,800, presumably the default value The desired rect of the stack is 10,51,1270,793. That's a height of 42. If I set the rect of the stack to that value by script, it seems to work normally. I haven't added or altered any menus. Maybe this is a little bug? Cheers, Tim On Aug 10, 2011, at 8:48 PM, Paul Looney wrote: Tim, Are you using OS X? Two things on OS X can cause vertical resizing problems: 1. The dock If the dock is on the bottom of the screen (even if it is hidden) stacks can be shortened to accommodate area for the dock. Try it on the side and see if that makes a difference. 2. Menus Paul Looney On Aug 10, 2011, at 1:29 PM, Timothy Miller wrote: On suspendStack answer the height of this stack pass suspendStack end suspendStack The height is 742 Same for on closeStack -- last instruction before stack closes -- the height is 742 On preOpenStack answer the height of this stack -- first instruction, before doing anything else pass preOpenStack end preOpenStack The height is 712 on some occasions. On other occasions it might be 692 or 696, and so on. The width does not change. Is this a possible bug? Is this a feature I don't know about? It's on a laptop, but the rect of the stack is smaller than the screenRect. On Aug 10, 2011, at 7:57 AM, Timothy Miller wrote: So, heerza deal, One stack, several cards, two groups on each card, groups behave as backgrounds. Top of one group is 1, bottom is 199. Top of second group is 200, bottom is 740. This group has a vertical scroll bar. Resizable for the stack is turned off. Lock size and position is on, for both groups. I set the height of the stack to 742. Save. Close the stack. Open it. The height is now less than 742. Sometimes it's 712. Sometimes it's 692, or 696, or possibly other values. There are no scripts that alter card size, group size or stack size. Repeat. Same thing. The change of height is inconsistent, even if I do nothing to the stack except open, change the height, and close. When the stack size gets smaller, I can't scroll to the bottom of the lower group, and the arrows at the bottom of the scroll bar get cut off. I noticed this issue a few weeks ago, on the same stack. Then it stopped happening. Now it's doing it again. I looked at the message watcher when closing the stack. Didn't understand everything I saw, but nothing surprising. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Adding tracks
That's a lot of questions you have there. The general opinion I'll toss out is on the issue of managing tracks, since this seems to be the core of your application. IMO, you'll be hard pressed to do what you describe using native capabilities of LiveCode -- it's not really suited to playing tracks back-to-back seamlessly, nor playing loops seamlessly. Synching multiple channels is not easy. One thing you might try is looking at an external called Franklin Audio (http://www.franklin3d.com/products/franklin-audio). It provides a bunch of audio capabilities beyond the stock offerings of LiveCode. It also doesn't rely on QuickTime, which could be helpful. I haven't used it myself to produce the types of things you're after, but you may have a better chance using that package. If you *DO* decide to tackle sequence playback natively in LiveCode, I'd suggest using imported WAV files. In my experience, using a player object (or multiple player objects) simply cannot accomplish the results above. But even then, your playback options are limited, so the external is probably your best bet at this point. Good luck. Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Admin wrote: Now for a hard one. I am writing a program called GrooveBlox. I created a menu and have a Track menu - where the user can add and delete tracks, like a sequencer program. Tracks are like layers and will be able to be moved around, added to, etc. The idea is to have rectangles (colored) that represent grooves. I want the user to be able to drag and drop the groove rectangles onto a track (they will SNAP in place) and build all kinds of grooves. I need to write our the flow diagram still, but I want to get started on it. The audio files are wave files and more than enough are done to create a product. Here is my question list (it will grow): How will I create the tracks - are they groups or are they substacks? How to add tracks to the main stack (track holder)? How to make the tracks SNAP into place, one beneath the other? How to move the various tracks above or below each other and therefore adjust the layers? How to scroll the track holder once there are too many tracks to fit on one screen? How to drag and drop the colored rectangles onto the tracks using SNAP (very important since the grooves are an exact size and loop precisely)? How to add the rectangles to the holding bin? How to assign the wave file to the colored rectangle? How to play all the tracks in sync with one another? How to adjust the panning with the panning slider? How to adjust the volume with the volume slider? How to create a looping function so you can hear the groove play over and over, and add/subtract/edit tracks while it is playing in sync? How to write a final wave file mixing all the tracks together. Is this the kind of program that requires a client-side database to keep things remembered? Anyone's help is appreciated. Mike ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Stack Size Changes
A followup to my message on same thread, posted a few minutes ago, in reply to Paul. Further investigation reveals this anomaly: If I make the stack height a little too big, so the stack crops itself when it opens, and I then click on the little glowing green button at the upper left of the LC window (the one that gets a plus sign on rollover -- I can never remember the correct name for it), the whole LC window goes blank except for the borders and menu bar. Clicking on the same green button again does not restore the window. If I send the window to the dock with the amber button, then bring it back (by clicking it in the dock) the window is restored. I further note that sometimes it takes two or three clicks on the little green plus button to make the LC window go blank. The LC window does not go blank this way if I set the rect of the stack in the preOpenStack handler. Does this behavior have some specific meaning? Sorry to make this so complicated. Tim ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode