Re: [ANN] MobGUI plugin : mobile development aid + movie player question
Thanks to everyone for the feedback - it's still early days for the plugin! I added the iOS movie player object yesterday and it's working ok, but I notice that if I switch it to full screen then press fforward that the result is a black screen and it doesn't return to the card or show the normal blue 'done' button. Has anyone else seen this? Should I be picking up a message and doing something to return? Thanks again and I'll post an update today. JC ___ 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
Problem with umlautes (non ASCII chars) in Windows
I need to get the Computername from a Windows PC, but if the computername contains non ASCII chars I get odd characters. Also, the global variable (%Computername%) from inside LiveCode does not display non ASCII chars correctly. I also tried to use the CMD with the command hostname, which displays the name correctly in the commandline window but not inside LiveCode. Can someone with more experiance on a PC help ? ___ 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
line colour in a dataGrid table...
How do I set the lines of a dataGrid table to different colours ?... I can seem to find it in the datagrid manual. be well ___ 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: Live LiveCode code event #26 Wrapup
so you volunteer for saturday in a week? On 10 Jun 2011, at 02:55, Roger Eller wrote: 2011/6/9 Björnke von Gierke b...@mac.com Hi Here is the wrap up from the last event. I'm sorry it's a bit late, but having no presenters stresses me out disproportionally. I am pretty sure I saw at least two volunteers on the list earlier today. Did you not see them? ~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 ___ 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: find by content with Mac OS
--- Message: 2 Date: Thu, 09 Jun 2011 14:11:19 -0700 From: Richard Gaskin ambassa...@fourthworld.com To: use-livecode@lists.runrev.com Subject: Re: find by content with Mac OS Message-ID: 4df136f7.3050...@fourthworld.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Timothy Miller wrote: My feeble brain seems to suggest that Mac OS find-by-content will not find text in an ordinary field in a LiveCode stack (not to mention a button or script). I just tried it. OTOH, I don't have much confidence in my feeble brain. Am I right? If so, is there any way to enable such a feature? IIRC (I turned off Spotlight years ago; got tired of the constant disk thrashing), LiveCode scripts are automatically indexed by Spotlight, but not field content. Is there something I am missing? Spotlight doesn't appear to index my scripts and I have everything checked in the Mac OS Spotlight Preferences. Jim Hurley I have no idea why that's how it is; seems a bit backwards to me, but maybe there's a reason for it. Anyone know offhand if there's an RQCC request for indexing fields w/Spotlight? -- 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
Re: Live LiveCode code event #26 Wrapup
so you'd like to help with organising? On 10 Jun 2011, at 02:45, stephen barncard wrote: Such is the downside of being solely responsible for an international weekly independent television show! 2011/6/9 Björnke von Gierke b...@mac.com Hi Here is the wrap up from the last event. I'm sorry it's a bit late, but having no presenters stresses me out disproportionally. Stephen Barncard San Francisco Ca. USA more about sqb http://www.google.com/profiles/sbarncar ___ 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: find by content with Mac OS
On Jun 10, 2011, at 3:43 AM, James Hurley wrote Is there something I am missing? Spotlight doesn't appear to index my scripts and I have everything checked in the Mac OS Spotlight Preferences. All versions of Rev and LC do not make the scripts or field data available for spotlight indexing. You need to code something that writes your scripts to one or more '.txt' files that would include the stack name, etc Of course, since you are writing you own info export, you could add some good meta data, such as field names or project title, custom property contents, image names, etc. You could even export a jpg screen shot, then... a short Applescript could write to the Finder comments of the stack file and jpg file, and comments get spotlight indexed for all apps. This means you could use Spotlight, QuickView, Coverflow to scan your projects in the Finder. I don't know the limits for Finder comment lines or chars. Hope this helps Jim Ault Las Vegas ___ 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: Using Datagrids with 'stackrunner' like launcher.
On Tue, Jun 7, 2011 at 6:07 PM, stephen barncard stephenrevoluti...@barncard.com wrote: I can then use any of these stacks anywhere with no IDE. Very nice except I can't seem to make datagrids work on stacks that are used this way. I was able to ascertain that indeed the substack with the datagrid template was there. But the datagrid just won't respond. I've tried start-using but it seems to have no effect. I've read the piece on how to add the datagrid to stacks assembled in the standalone creator, however this is different. I don't change the splash stack - everything other than the engine and libraries live in the current stack. How do I connect the datagrid to the substack in this situation? It's a drag to have two pieces , but since this is on the same stack file, shouldn't this just work? You just need to make sure that the revDataGridLibrary stack file is loaded into memory BEFORE any of the stacks that use data grids are loaded. This is required so that the behaviors attached to the data grid resolve properly when the engine opens the stacks. After getting the path to the revDataGridLibrary stack file just issue this command before loading any other stacks: put there is a stack thePathToDataGridStackFile into theStackIsLoadedInMemory -- Trevor DeVore Blue Mango Learning Systems LiveCode Resources for Developers: http://livecode.bluemangolearning.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: line colour in a dataGrid table...
Is this the one you're looking for? http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7332-How-Can-I-Colorize-Individual-Lines-in-a-Table- On Fri, Jun 10, 2011 at 4:17 AM, John Dixon dixo...@hotmail.co.uk wrote: How do I set the lines of a dataGrid table to different colours ?... I can seem to find it in the datagrid manual. be well ___ 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
[ANN] Live LiveCode code event #27
Here we go. Event 27 crawls into existence on its last tooth, and features these presenters: Andreas Rozek will showcase his recently released iPhone Control Kit, a native iOS widgets creation tool. In addition to a small introduction, he'll also give us a tutorial on how to use it. http://livecode.tv/Andreas/ Colin Holgate will reproduce a demo he gave recently, where he use LiveCode to scrape a web page for information on the video clips on that page, and used the information to make a set of cards, one for each video clip. In addition, he will show how he used LiveCode to take rows and columns from a spreadsheet, and convert the data into xml. http://livecode.tv/colin/ In addition, eHUG ( http://www.ehug.info ) will be raffling off the e-book Take Control of iWeb '09, courtesy of TidBITS, http://ww.tidbits.com. (These e-books normally cost 10 to 15 dollar). As usual, join us next Saturday on ChatRev ( http://bjoernke.com/chatrev ): Western Europe: 20:00 Eastern America: 14:00 Western America: 11:00 New Caledonia: Sun 05:00 Back issues can be found on www.livecode.tv -- official ChatRev page: http://bjoernke.com/chatrev Chat with other RunRev developers: go stack URL http://bjoernke.com/chatrev/chatrev1.3b3.rev; ___ 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: New Row into datagrid and edit field
On Thu, Jun 9, 2011 at 5:57 AM, Alessandro Pisoni alessan...@system-ini.itwrote: I have a button that creates a row in my datagrid but I would be automatically moves to the specific field in that row. how can I do? on mouseup put the dgNumberOfLines of group ElencoTelefoni + 1 into theLineNo dispatch addLine to group ElencoTelefoni with theRowData, theDataColumns, theLineNo ?? end mouseup Use EditKey or EditKeyOfIndex. dispatch EditKey to group ElencoTelefoni with FieldName, theLineNo Doing so will trigger the EditValue message in your row behavior and you can then open the field for editing. Take a look at this lesson for more info. http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7336-How-Can-The-User-Edit-Field-Content-in-a-Data-Grid-Form- -- Trevor DeVore Blue Mango Learning Systems LiveCode Resources for Developers: http://livecode.bluemangolearning.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: Reconnecting a stack's datagrid with its template in a stackrunner situation
On Thu, Jun 9, 2011 at 8:40 PM, stephen barncard stephenrevoluti...@barncard.com wrote: With no error, but the grid is lifeless. Can't scroll, can't put data in etc. See my response to your original email (just posted). It sounds like revdataGridLibrary stack isn't available when your stack with the data grid on it is loaded. If revDataGridLibrary isn't not in memory then the data grid behavior property will fail to resolve and nothing will work. -- Trevor DeVore Blue Mango Learning Systems LiveCode Resources for Developers: http://livecode.bluemangolearning.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
R: using animated gif for a cursor on Windows
Messaggio originale Da: mstu...@adaptcrm.com Data: 9-giu-2011 18.05 A: use-livecode@lists.runrev.com Ogg: using animated gif for a cursor on Windows Hi All, I'm using an animated gif (rotating dot in a circle) with the cursor on Windows XP, but the gif doesn't animate in LC v4.6.1. the script: on openStack lock cursor set the cursor to 1019 -- do stuff unlock cursor reset cursors end openStack I guess the question here is: does LC support animated gif's on Windows OS in a cursor? Or am I missing something in the script or the gif itself? Regards, Mark Stuart ___ 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 Mark perhapse may help you.. putting it on a .gif script on mouseUp set the repeatcount of img ID its_ID to -1 set cursor to 0 repeat until the mouseclick set the loc of img ID its_ID to the mouseloc end repeat set the repeatcount of img ID its_ID to 0 set the currentframe of img ID its_ID to 1 set cursor to arrow end mouseUp mario ___ 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: Reconnecting a stack's datagrid with its template in a stackrunner situation
Thanks , Trevor for responding to this. It's working now with the dummy substack method, but I will employ the stack sequence thing in the future. sqb On 10 June 2011 05:42, Trevor DeVore li...@mangomultimedia.com wrote: On Thu, Jun 9, 2011 at 8:40 PM, stephen barncard stephenrevoluti...@barncard.com wrote: With no error, but the grid is lifeless. Can't scroll, can't put data in etc. See my response to your original email (just posted). It sounds like revdataGridLibrary stack isn't available when your stack with the data grid on it is loaded. If revDataGridLibrary isn't not in memory then the data grid behavior property will fail to resolve and nothing will work. -- Trevor DeVore -- Stephen Barncard San Francisco Ca. USA more about sqb http://www.google.com/profiles/sbarncar ___ 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
Why No Built in GetMyIP call in LiveCode?
Hi All... I've been looking at all the solutions in the archive for getting the IP address of the machine running a stack. Some shell scripts, some php calls, etc. etc. I have a situation where we are behind a firewall using NAT. So all our computers are running a 10.x.x.x.x address. I'm trying to implement some socket communication between stacks and IP address information is essential for this to work. I would like the communication process set up to be as transparent as possible, allowing users to connect by name and maybe holding IP address is a custom property for example. The Dictionary provides some examples for hostAdress function and I tried (wishful thinking, script trickery) something like this: on mouseUp open socket to 127.0.0.1:5005 with message socketOpen put the result end mouseUp on socketOpen theSock put the hostAddress of 127.0.0.1:5005 end socketOpen ...but it just gave me 127.0.0.1 and not the 10.x.x.x. address... Shell script works nice, but it gives quite a few IP in its result. Plus the actual machine IP is located on different lines in the result, such as in a desktop machine, as opposed to a laptop on wireless. It just seems like it would be nice to have a built in function for reporting local machine's IP... Such as, put localIP of current stack into tIP or get LocalIP of current stack. Is this available in the dictionary and I'm just missing it? Thank you! John Patten SUSD ___ 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: [ANN] MobGUI plugin : mobile development aid
I'm sorry I keep getting advertisements interrupting the presentation. I can't watch this. It sounds promising though. Bob On Jun 9, 2011, at 3:47 PM, Andre Garzia wrote: JC, You made my day!!! I tried creating a similar tool to myself but I couldn't. Your tool is greater than anything I could throw together, I just loved it Thank you very much for your dedication! Cheers andre PS: Now we just need browsers in Android On Wed, Jun 8, 2011 at 8:51 PM, John Craig j...@splash21.com wrote: Following a good response after the live demo on livecode.tv, I've posted the latest version of the MobGUI plugin. It's still in it's infancy, so feedback is much appreciated! http://www.splash21.com/MobGUI/ JC ___ 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 -- http://www.andregarzia.com All We Do Is Code. ___ 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: find by content with Mac OS
You must have Spotlight indexing turned off. It works for me in ALL of the apps you suggested that it does not. Alternately, you may have a corrupted Spotlight index. You can google how to remedy that. Bob On Jun 9, 2011, at 6:04 PM, Timothy Miller wrote: Thanks Jim and others. I have worked out ways to search my LC stacks quickly and conveniently (more or less) for the things I need. I can always use the find function in Stickies. I can search my email messages in Mail. This is the usual procedure. I always had the vague idea that find-by-content in Mac OS, was available as a last resort if I couldn't find something important. Today I was searching for some notes I made several months ago. I couldn't remember whether I had saved the notes in a LC stack, in stickies, in an email I sent to myself, or whatever. I thought find-by-content would help me find the notes. I knew they contained some rare or unique words. It didn't help. I can't fault other developers if Apple itself doesn't enable find-by-content in its own applications. Come to think of it, find by content probably doesn't work for bookmarks in Safari. Nor does it work for events in iCal. Nor any content in Address Book, nor email messages in Mail -- not sender nor recipient nor address nor content. Funny, I always assumed it did all of these things, but never thought much about it. snip ___ 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: find by content with Mac OS
It does not. What you want to use is that little magnifying glass in the upper right of your screen in the menu bar. Command-F in the Finder only searches for the contents of files, but not I think Address Book files and such. Still using this method, I am not seeing any of my stacks after searching for openStack. Apparently scripts are NOT indexed. Bob On Jun 9, 2011, at 7:15 PM, Timothy Miller wrote: Hi Stephen, As far as I know, Command-F and Spotlight invokes the same functionality. ___ 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: Why No Built in GetMyIP call in LiveCode?
John, Look at the hostName and hostNameToAddress functions put the hostNameToAddress of the hostName into fld info HTH Devin On Jun 10, 2011, at 11:05 AM, John Patten wrote: Hi All... I've been looking at all the solutions in the archive for getting the IP address of the machine running a stack. Some shell scripts, some php calls, etc. etc. I have a situation where we are behind a firewall using NAT. So all our computers are running a 10.x.x.x.x address. I'm trying to implement some socket communication between stacks and IP address information is essential for this to work. I would like the communication process set up to be as transparent as possible, allowing users to connect by name and maybe holding IP address is a custom property for example. The Dictionary provides some examples for hostAdress function and I tried (wishful thinking, script trickery) something like this: on mouseUp open socket to 127.0.0.1:5005 with message socketOpen put the result end mouseUp on socketOpen theSock put the hostAddress of 127.0.0.1:5005 end socketOpen ...but it just gave me 127.0.0.1 and not the 10.x.x.x. address... Shell script works nice, but it gives quite a few IP in its result. Plus the actual machine IP is located on different lines in the result, such as in a desktop machine, as opposed to a laptop on wireless. It just seems like it would be nice to have a built in function for reporting local machine's IP... Such as, put localIP of current stack into tIP or get LocalIP of current stack. Is this available in the dictionary and I'm just missing it? Thank you! John Patten SUSD ___ 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 Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ 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: Why No Built in GetMyIP call in LiveCode?
Hi John, Hope this helps. function getMyIp switch (the platform) case MacOS put shell(/sbin/ifconfig en0) into tEthernetConfig put shell(/sbin/ifconfig en1) into tWirelessConfig if char 1 to 4 of tIpConfig = zsh: then return 0.0.0.0 else set the itemdel to . --CHECK FOR ETHERNET CONNECTION get matchText(tEthernetConfig,(?s)inet (.*?) ,retVal) -- These are spaces on either side of (.*?) if it is false then --CHECK FOR WIRELESS CONNECTION get matchText(tWirelessConfig,(?s)inet (.*?) ,retVal) -- These are spaces on either side of (.*?) if it is false then return 0.0.0.0 end if end if end if return retVal break case Win32 put (there is not a file (specialFolderPath(system) /IPCONFIG.EXE)) into tWindowsError put (there is not a file (specialFolderPath(system) /SYSTEM32/IPCONFIG.EXE)) into tSys32Error if tWindowsError and tSys32Error then return 0.0.0.0 else set the hideConsoleWindows to true put shell(ipconfig/all) into tIpConfigAll put tIpConfigAll into temp --ETHERNET XP VISTA put offset(Ethernet adapter Local Area Connection:,temp) into tOffsetResult delete char 1 to (tOffsetResult-1) in temp get matchText(temp,IP Address[\. ]*: ([A-Z0-9\.]*),retVal) --WIRELESS XP VISTA if retVal is empty then put tIpConfigAll into temp put offset(Ethernet adapter Wireless Network Connection:,temp) into tOffsetResult delete char 1 to (tOffsetResult-1) in temp get matchText(temp,IP Address[\. ]*: ([A-Z0-9\.]*),retVal) end if if retVal is empty then --ETHERNET WIN 7 put tIpConfigAll into temp get matchText(temp,IPv4 Address[\. ]*: ([A-Z0-9\.]*),retVal) end if if it is false then --NO NETWORK CONNECTION FOUND return 0.0.0.0 else return retVal end if end if break end switch return 0.0.0.0 end getMyIp Best regards, Mark Talluto http://www.canelasoftware.com On Jun 10, 2011, at 10:05 AM, John Patten wrote: Hi All... I've been looking at all the solutions in the archive for getting the IP address of the machine running a stack. Some shell scripts, some php calls, etc. etc. I have a situation where we are behind a firewall using NAT. So all our computers are running a 10.x.x.x.x address. I'm trying to implement some socket communication between stacks and IP address information is essential for this to work. I would like the communication process set up to be as transparent as possible, allowing users to connect by name and maybe holding IP address is a custom property for example. The Dictionary provides some examples for hostAdress function and I tried (wishful thinking, script trickery) something like this: on mouseUp open socket to 127.0.0.1:5005 with message socketOpen put the result end mouseUp on socketOpen theSock put the hostAddress of 127.0.0.1:5005 end socketOpen ...but it just gave me 127.0.0.1 and not the 10.x.x.x. address... Shell script works nice, but it gives quite a few IP in its result. Plus the actual machine IP is located on different lines in the result, such as in a desktop machine, as opposed to a laptop on wireless. It just seems like it would be nice to have a built in function for reporting local machine's IP... Such as, put localIP of current stack into tIP or get LocalIP of current stack. Is this available in the dictionary and I'm just missing it? Thank you! John Patten SUSD ___ 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
Re: find by content with Mac OS
I may have found a solution for this but to test it I need to know what the file type is (not the filename extension) of a LiveCode stack. Anyone? Bob On Jun 9, 2011, at 6:04 PM, Timothy Miller wrote: Thanks Jim and others. I have worked out ways to search my LC stacks quickly and conveniently (more or less) for the things I need. I can always use the find function in Stickies. I can search my email messages in Mail. This is the usual procedure. ___ 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: find by content with Mac OS
one way to see filetypes is the detailed files. another way is to go into the ressource fork yourself with the resfile: specifier for URL: put url (resfile: the effective filename of this stack) On 10 Jun 2011, at 19:48, Bob Sneidar wrote: I may have found a solution for this but to test it I need to know what the file type is (not the filename extension) of a LiveCode stack. Anyone? Bob On Jun 9, 2011, at 6:04 PM, Timothy Miller wrote: Thanks Jim and others. I have worked out ways to search my LC stacks quickly and conveniently (more or less) for the things I need. I can always use the find function in Stickies. I can search my email messages in Mail. This is the usual procedure. ___ 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: find by content with Mac OS
Bob, On Jun 10, 2011, at 11:48 AM, Bob Sneidar wrote: I may have found a solution for this but to test it I need to know what the file type is (not the filename extension) of a LiveCode stack. Anyone? Are you referring to the Mac file type code? It's RSTK. The creator signature for LiveCode/Rev is Revo. Don't know if these are even available in Mac OS 10.5. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ 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: Why No Built in GetMyIP call in LiveCode?
Thanks for the quick replies! I thought I had it figured out with Devin's suggestion. Everything seemed to work with this script: on mouseUp put the hostname into tHostName --wait 1 sec put the hostnametoaddress of tHostName end mouseUp The address returned 10.58.0.109. However, when I went in and looked at my machines IP it was 10.58.0.42. I wonder where it got the 10.x.x.109 from? Mark, I'm assuming there is a shell script for Ubuntu too that will do the same parse action as your script example? Your example should help me to understand how to parse the shell script. Thank you! John Patten SUSD On Jun 10, 2011, at 10:41 AM, Devin Asay wrote: John, Look at the hostName and hostNameToAddress functions put the hostNameToAddress of the hostName into fld info HTH Devin On Jun 10, 2011, at 11:05 AM, John Patten wrote: Hi All... I've been looking at all the solutions in the archive for getting the IP address of the machine running a stack. Some shell scripts, some php calls, etc. etc. I have a situation where we are behind a firewall using NAT. So all our computers are running a 10.x.x.x.x address. I'm trying to implement some socket communication between stacks and IP address information is essential for this to work. I would like the communication process set up to be as transparent as possible, allowing users to connect by name and maybe holding IP address is a custom property for example. The Dictionary provides some examples for hostAdress function and I tried (wishful thinking, script trickery) something like this: on mouseUp open socket to 127.0.0.1:5005 with message socketOpen put the result end mouseUp on socketOpen theSock put the hostAddress of 127.0.0.1:5005 end socketOpen ...but it just gave me 127.0.0.1 and not the 10.x.x.x. address... Shell script works nice, but it gives quite a few IP in its result. Plus the actual machine IP is located on different lines in the result, such as in a desktop machine, as opposed to a laptop on wireless. It just seems like it would be nice to have a built in function for reporting local machine's IP... Such as, put localIP of current stack into tIP or get LocalIP of current stack. Is this available in the dictionary and I'm just missing it? Thank you! John Patten SUSD ___ 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 Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ 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: Why No Built in GetMyIP call in LiveCode?
Neither of the solutions given so far in this thread have worked for my on my office PC. I just get my LAN 192.168.x.x number. Here's what I use. They do rely on outside entities, but they are both pretty stable sites that have lasted a good long time... [whatismyip.org] put url http://www.whatismyip.org; into myExIP [dyndns.org] put url http://checkip.dyndns.org; into resp set itemdel to : put word 1 to -1 of item 2 of resp into resp set itemdel to put item 1 of resp into myExIP ~ Chris Innanen ~ Nonsanity On Fri, Jun 10, 2011 at 1:05 PM, John Patten johnpat...@mac.com wrote: Hi All... I've been looking at all the solutions in the archive for getting the IP address of the machine running a stack. Some shell scripts, some php calls, etc. etc. I have a situation where we are behind a firewall using NAT. So all our computers are running a 10.x.x.x.x address. I'm trying to implement some socket communication between stacks and IP address information is essential for this to work. I would like the communication process set up to be as transparent as possible, allowing users to connect by name and maybe holding IP address is a custom property for example. The Dictionary provides some examples for hostAdress function and I tried (wishful thinking, script trickery) something like this: on mouseUp open socket to 127.0.0.1:5005 with message socketOpen put the result end mouseUp on socketOpen theSock put the hostAddress of 127.0.0.1:5005 end socketOpen ...but it just gave me 127.0.0.1 and not the 10.x.x.x. address... Shell script works nice, but it gives quite a few IP in its result. Plus the actual machine IP is located on different lines in the result, such as in a desktop machine, as opposed to a laptop on wireless. It just seems like it would be nice to have a built in function for reporting local machine's IP... Such as, put localIP of current stack into tIP or get LocalIP of current stack. Is this available in the dictionary and I'm just missing it? Thank you! John Patten SUSD ___ 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: Why No Built in GetMyIP call in LiveCode?
Actually Chris I wanted the local network, behind the firewall IP address. The project I have in mind is just using sockets in a single classroom. All computers have 10.x.x.x. addresses. Thanks! John Patten SUSD On Jun 10, 2011, at 11:15 AM, Nonsanity wrote: Neither of the solutions given so far in this thread have worked for my on my office PC. I just get my LAN 192.168.x.x number. Here's what I use. They do rely on outside entities, but they are both pretty stable sites that have lasted a good long time... [whatismyip.org] put url http://www.whatismyip.org; into myExIP [dyndns.org] put url http://checkip.dyndns.org; into resp set itemdel to : put word 1 to -1 of item 2 of resp into resp set itemdel to put item 1 of resp into myExIP ~ Chris Innanen ~ Nonsanity On Fri, Jun 10, 2011 at 1:05 PM, John Patten johnpat...@mac.com wrote: Hi All... I've been looking at all the solutions in the archive for getting the IP address of the machine running a stack. Some shell scripts, some php calls, etc. etc. I have a situation where we are behind a firewall using NAT. So all our computers are running a 10.x.x.x.x address. I'm trying to implement some socket communication between stacks and IP address information is essential for this to work. I would like the communication process set up to be as transparent as possible, allowing users to connect by name and maybe holding IP address is a custom property for example. The Dictionary provides some examples for hostAdress function and I tried (wishful thinking, script trickery) something like this: on mouseUp open socket to 127.0.0.1:5005 with message socketOpen put the result end mouseUp on socketOpen theSock put the hostAddress of 127.0.0.1:5005 end socketOpen ...but it just gave me 127.0.0.1 and not the 10.x.x.x. address... Shell script works nice, but it gives quite a few IP in its result. Plus the actual machine IP is located on different lines in the result, such as in a desktop machine, as opposed to a laptop on wireless. It just seems like it would be nice to have a built in function for reporting local machine's IP... Such as, put localIP of current stack into tIP or get LocalIP of current stack. Is this available in the dictionary and I'm just missing it? Thank you! John Patten SUSD ___ 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
Re: find by content with Mac OS
Well the solutions presented in blogs i have seen are not panning out. Oddly, zip files containing Livecode stacks ARE being found by Spotlight, but not the stacks themselves. I think this will require the Livecode people to create a valid mdimporter file for livecode stacks. Bob On Jun 10, 2011, at 11:10 AM, Devin Asay wrote: Bob, On Jun 10, 2011, at 11:48 AM, Bob Sneidar wrote: I may have found a solution for this but to test it I need to know what the file type is (not the filename extension) of a LiveCode stack. Anyone? Are you referring to the Mac file type code? It's RSTK. The creator signature for LiveCode/Rev is Revo. Don't know if these are even available in Mac OS 10.5. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ 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: line colour in a dataGrid table...
I believe Datagrid Helper can do this as well. Bob On Jun 10, 2011, at 3:17 AM, John Dixon wrote: How do I set the lines of a dataGrid table to different colours ?... I can seem to find it in the datagrid manual. be well ___ 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: Why No Built in GetMyIP call in LiveCode?
This works for me. Methinks it is going to give you the address of the primary adapter. Do you have multiple adapters? Any bridging going on, like with Parallels networking? Also, if the hostname function is using DNS, then it may be that your DNS records are stale. This is just a guess though. Bob On Jun 10, 2011, at 11:12 AM, John Patten wrote: Thanks for the quick replies! I thought I had it figured out with Devin's suggestion. Everything seemed to work with this script: on mouseUp put the hostname into tHostName --wait 1 sec put the hostnametoaddress of tHostName end mouseUp The address returned 10.58.0.109. However, when I went in and looked at my machines IP it was 10.58.0.42. I wonder where it got the 10.x.x.109 from? Mark, I'm assuming there is a shell script for Ubuntu too that will do the same parse action as your script example? Your example should help me to understand how to parse the shell script. Thank you! John Patten SUSD ___ 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: Why No Built in GetMyIP call in LiveCode?
He wants the local are network IP, not the public NAT address. Bob On Jun 10, 2011, at 11:15 AM, Nonsanity wrote: Neither of the solutions given so far in this thread have worked for my on my office PC. I just get my LAN 192.168.x.x number. Here's what I use. They do rely on outside entities, but they are both pretty stable sites that have lasted a good long time... [whatismyip.org] put url http://www.whatismyip.org; into myExIP [dyndns.org] put url http://checkip.dyndns.org; into resp set itemdel to : put word 1 to -1 of item 2 of resp into resp set itemdel to put item 1 of resp into myExIP ~ Chris Innanen ~ Nonsanity ___ 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: Why No Built in GetMyIP call in LiveCode?
On Jun 10, 2011, at 11:20 AM, John Patten wrote: Actually Chris I wanted the local network, behind the firewall IP address. The project I have in mind is just using sockets in a single classroom. All computers have 10.x.x.x. addresses. Thanks! You could try this. When you send a packet to another machine in the LAN, the 10.x address is one of the params, so you could do a 'who am I' to any of the other computers. Just give every computer on the network the ability to respond with that info. One machine could be set with a manual IP and the others dynamic. Jim Ault Las Vegas ___ 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: Why No Built in GetMyIP call in LiveCode?
On 6/10/11 11:12 AM, John Patten wrote: Thanks for the quick replies! I thought I had it figured out with Devin's suggestion. Everything seemed to work with this script: on mouseUp put the hostname into tHostName --wait 1 sec put the hostnametoaddress of tHostName end mouseUp The address returned 10.58.0.109. However, when I went in and looked at my machines IP it was 10.58.0.42. I wonder where it got the 10.x.x.109 from? Hi John, Does your machine have wireless AND wired network capabilities? If so, x.x.x.109 may be the other IP address you weren't looking at. Phil Davis Mark, I'm assuming there is a shell script for Ubuntu too that will do the same parse action as your script example? Your example should help me to understand how to parse the shell script. Thank you! John Patten SUSD On Jun 10, 2011, at 10:41 AM, Devin Asay wrote: John, Look at the hostName and hostNameToAddress functions put the hostNameToAddress of the hostName into fld info HTH Devin On Jun 10, 2011, at 11:05 AM, John Patten wrote: Hi All... I've been looking at all the solutions in the archive for getting the IP address of the machine running a stack. Some shell scripts, some php calls, etc. etc. I have a situation where we are behind a firewall using NAT. So all our computers are running a 10.x.x.x.x address. I'm trying to implement some socket communication between stacks and IP address information is essential for this to work. I would like the communication process set up to be as transparent as possible, allowing users to connect by name and maybe holding IP address is a custom property for example. The Dictionary provides some examples for hostAdress function and I tried (wishful thinking, script trickery) something like this: on mouseUp open socket to 127.0.0.1:5005 with message socketOpen put the result end mouseUp on socketOpen theSock put the hostAddress of 127.0.0.1:5005 end socketOpen ...but it just gave me 127.0.0.1 and not the 10.x.x.x. address... Shell script works nice, but it gives quite a few IP in its result. Plus the actual machine IP is located on different lines in the result, such as in a desktop machine, as opposed to a laptop on wireless. It just seems like it would be nice to have a built in function for reporting local machine's IP... Such as, put localIP of current stack into tIP or get LocalIP of current stack. Is this available in the dictionary and I'm just missing it? Thank you! John Patten SUSD ___ 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 Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ 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 -- Phil Davis PDS Labs Professional Software Development http://pdslabs.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: Why No Built in GetMyIP call in LiveCode?
haha I completely failed to grasp that. :) How about: put char 2 to -2 of word 3 of shell( ping -n 1 word 2 of shell(ping -n 1 localhost) ) into msg ~ Chris Innanen ~ Nonsanity On Fri, Jun 10, 2011 at 2:20 PM, John Patten johnpat...@mac.com wrote: Actually Chris I wanted the local network, behind the firewall IP address. The project I have in mind is just using sockets in a single classroom. All computers have 10.x.x.x. addresses. Thanks! John Patten SUSD On Jun 10, 2011, at 11:15 AM, Nonsanity wrote: Neither of the solutions given so far in this thread have worked for my on my office PC. I just get my LAN 192.168.x.x number. Here's what I use. They do rely on outside entities, but they are both pretty stable sites that have lasted a good long time... [whatismyip.org] put url http://www.whatismyip.org; into myExIP [dyndns.org] put url http://checkip.dyndns.org; into resp set itemdel to : put word 1 to -1 of item 2 of resp into resp set itemdel to put item 1 of resp into myExIP ~ Chris Innanen ~ Nonsanity On Fri, Jun 10, 2011 at 1:05 PM, John Patten johnpat...@mac.com wrote: Hi All... I've been looking at all the solutions in the archive for getting the IP address of the machine running a stack. Some shell scripts, some php calls, etc. etc. I have a situation where we are behind a firewall using NAT. So all our computers are running a 10.x.x.x.x address. I'm trying to implement some socket communication between stacks and IP address information is essential for this to work. I would like the communication process set up to be as transparent as possible, allowing users to connect by name and maybe holding IP address is a custom property for example. The Dictionary provides some examples for hostAdress function and I tried (wishful thinking, script trickery) something like this: on mouseUp open socket to 127.0.0.1:5005 with message socketOpen put the result end mouseUp on socketOpen theSock put the hostAddress of 127.0.0.1:5005 end socketOpen ...but it just gave me 127.0.0.1 and not the 10.x.x.x. address... Shell script works nice, but it gives quite a few IP in its result. Plus the actual machine IP is located on different lines in the result, such as in a desktop machine, as opposed to a laptop on wireless. It just seems like it would be nice to have a built in function for reporting local machine's IP... Such as, put localIP of current stack into tIP or get LocalIP of current stack. Is this available in the dictionary and I'm just missing it? Thank you! John Patten SUSD ___ 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 ___ 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: Why No Built in GetMyIP call in LiveCode?
So if you are using Apples, I wonder if there is a way to access the bonjour address? When I ping the name of my computer in terminal, with .local appended to the end I get the actual IP of the primary adapter. Now if I issue the Livecode command put the hostname in the message box it returns the fully qualified domain name of my laptop lgos-mp-bobsneidar.cccm.lan, which confirms my suspicions that the hostname command is querying DNS. (My Mac laptop is joined to my active directory domain.) The only way for Livecode to discern THAT name is to query DNS. I do not like depending on DNS for hostnames and IP's. Firstly, if you have multiple disassociated domains, some devices will not be known by the particular DNS you are querying. Secondly, not everyone has an active directory domain, and so they use public DNS which will not register your local IP address. Thirdly, as I mentioned before, in a DHCP environment, your DNS records can become stale, especially if you have not done any internet access or contacted the AD DC since you got a new lease. Finally, if someone manually entered a DNS a record (like you have to do for Macs because unless joined to the domain they will not register themselves) and then later decide to change the computer name, and you forget to change the DNS A record, your query will return the wrong name. Ugh! I think however, you could fudge it. setting the lineDelimiter to period and then getting the first line of the FQDN returned by hostname will return the machine name without any domain info. For Macs append .local to that and ping it in a shell. For Windows, take the first 15 characters of the name and ping that. It will be the NETBIOS name of the machine. That is the best I can do for the moment without putting more thought into it. Bob On Jun 10, 2011, at 11:20 AM, John Patten wrote: Actually Chris I wanted the local network, behind the firewall IP address. The project I have in mind is just using sockets in a single classroom. All computers have 10.x.x.x. addresses. Thanks! John Patten SUSD ___ 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: Why No Built in GetMyIP call in LiveCode?
Or don't use localhost at all! It will always return 127.0.0.1. That is the loopback address of every adapter under the sun. Bob On Jun 10, 2011, at 11:49 AM, Nonsanity wrote: haha I completely failed to grasp that. :) How about: put char 2 to -2 of word 3 of shell( ping -n 1 word 2 of shell(ping -n 1 localhost) ) into msg ~ Chris Innanen ~ Nonsanity On Fri, Jun 10, 2011 at 2:20 PM, John Patten johnpat...@mac.com wrote: Actually Chris I wanted the local network, behind the firewall IP address. The project I have in mind is just using sockets in a single classroom. All computers have 10.x.x.x. addresses. Thanks! John Patten SUSD On Jun 10, 2011, at 11:15 AM, Nonsanity wrote: Neither of the solutions given so far in this thread have worked for my on my office PC. I just get my LAN 192.168.x.x number. Here's what I use. They do rely on outside entities, but they are both pretty stable sites that have lasted a good long time... [whatismyip.org] put url http://www.whatismyip.org; into myExIP [dyndns.org] put url http://checkip.dyndns.org; into resp set itemdel to : put word 1 to -1 of item 2 of resp into resp set itemdel to put item 1 of resp into myExIP ~ Chris Innanen ~ Nonsanity On Fri, Jun 10, 2011 at 1:05 PM, John Patten johnpat...@mac.com wrote: Hi All... I've been looking at all the solutions in the archive for getting the IP address of the machine running a stack. Some shell scripts, some php calls, etc. etc. I have a situation where we are behind a firewall using NAT. So all our computers are running a 10.x.x.x.x address. I'm trying to implement some socket communication between stacks and IP address information is essential for this to work. I would like the communication process set up to be as transparent as possible, allowing users to connect by name and maybe holding IP address is a custom property for example. The Dictionary provides some examples for hostAdress function and I tried (wishful thinking, script trickery) something like this: on mouseUp open socket to 127.0.0.1:5005 with message socketOpen put the result end mouseUp on socketOpen theSock put the hostAddress of 127.0.0.1:5005 end socketOpen ...but it just gave me 127.0.0.1 and not the 10.x.x.x. address... Shell script works nice, but it gives quite a few IP in its result. Plus the actual machine IP is located on different lines in the result, such as in a desktop machine, as opposed to a laptop on wireless. It just seems like it would be nice to have a built in function for reporting local machine's IP... Such as, put localIP of current stack into tIP or get LocalIP of current stack. Is this available in the dictionary and I'm just missing it? Thank you! John Patten SUSD ___ 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 ___ 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
[Slightly OT] CSS or Javascript for a web page div that ignores vertical scrolling?
Hi folks, I'm having a little trouble with search terms for sorting the web page that will contain my project revlet... I want to place a little floating widget part-way down the right margin of the web page that stays put vertically wrt the browser window as the lengthy, underlying page contents is scrolled vertically. I'm not sure if this means the div is following the scroll or ignoring it but the desired behaviour wrt scrolling is like the 'Free Trial' and 'What's New' images on www.runrev.com Is this ignore/follow vertical scroll behaviour settable via CSS (if so, can someone please name the guilty tag so I can Google it) or do I need to look at Javascript jQuery? Oh, if it's matters, the div won't be just an image container, it is destined to contain dynamic content managed via Javascript and use a couple of jQuery functions - but I'll learn about them once I have a box to house the content! Best, Keith.. ___ 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: Why No Built in GetMyIP call in LiveCode?
On my machine (with virtualbox) using the example from above works, but returns both addresses, for the machine as well as the virtualbox network interface. *on mouseUp put the hostname into tHostName --wait 1 sec put the hostnametoaddress of tHostName **end mouseUp* * * Seems like if its only returning one, and its wrong you have some funkiness going on. However, if it does indeed return all active addresses, it should be easy enough to filter out what you want since most likely each one will be a different subnet (or different network entirely) On Fri, Jun 10, 2011 at 12:53 PM, Bob Sneidar b...@twft.com wrote: Or don't use localhost at all! It will always return 127.0.0.1. That is the loopback address of every adapter under the sun. Bob On Jun 10, 2011, at 11:49 AM, Nonsanity wrote: haha I completely failed to grasp that. :) How about: put char 2 to -2 of word 3 of shell( ping -n 1 word 2 of shell(ping -n 1 localhost) ) into msg ~ Chris Innanen ~ Nonsanity On Fri, Jun 10, 2011 at 2:20 PM, John Patten johnpat...@mac.com wrote: Actually Chris I wanted the local network, behind the firewall IP address. The project I have in mind is just using sockets in a single classroom. All computers have 10.x.x.x. addresses. Thanks! John Patten SUSD On Jun 10, 2011, at 11:15 AM, Nonsanity wrote: Neither of the solutions given so far in this thread have worked for my on my office PC. I just get my LAN 192.168.x.x number. Here's what I use. They do rely on outside entities, but they are both pretty stable sites that have lasted a good long time... [whatismyip.org] put url http://www.whatismyip.org; into myExIP [dyndns.org] put url http://checkip.dyndns.org; into resp set itemdel to : put word 1 to -1 of item 2 of resp into resp set itemdel to put item 1 of resp into myExIP ~ Chris Innanen ~ Nonsanity On Fri, Jun 10, 2011 at 1:05 PM, John Patten johnpat...@mac.com wrote: Hi All... I've been looking at all the solutions in the archive for getting the IP address of the machine running a stack. Some shell scripts, some php calls, etc. etc. I have a situation where we are behind a firewall using NAT. So all our computers are running a 10.x.x.x.x address. I'm trying to implement some socket communication between stacks and IP address information is essential for this to work. I would like the communication process set up to be as transparent as possible, allowing users to connect by name and maybe holding IP address is a custom property for example. The Dictionary provides some examples for hostAdress function and I tried (wishful thinking, script trickery) something like this: on mouseUp open socket to 127.0.0.1:5005 with message socketOpen put the result end mouseUp on socketOpen theSock put the hostAddress of 127.0.0.1:5005 end socketOpen ...but it just gave me 127.0.0.1 and not the 10.x.x.x. address... Shell script works nice, but it gives quite a few IP in its result. Plus the actual machine IP is located on different lines in the result, such as in a desktop machine, as opposed to a laptop on wireless. It just seems like it would be nice to have a built in function for reporting local machine's IP... Such as, put localIP of current stack into tIP or get LocalIP of current stack. Is this available in the dictionary and I'm just missing it? Thank you! John Patten SUSD ___ 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 ___ 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
Re: find by content with Mac OS
I forced Spotlight to re-index. Now it finds-by-content all of the stuff in Apple applications it couldn't previously find. Sorry about the confusion. For most purposes, exporting LC data to a text file so Spotlight could find it by content would be far more trouble than it was worth. Certainly so in my case. How hard is it, really, to write some kind of extension or plug-in so that find by content works for LC -- fields, scripts, or whatever? Cheers, Tim On Jun 10, 2011, at 4:48 AM, Jim Ault wrote: On Jun 10, 2011, at 3:43 AM, James Hurley wrote Is there something I am missing? Spotlight doesn't appear to index my scripts and I have everything checked in the Mac OS Spotlight Preferences. All versions of Rev and LC do not make the scripts or field data available for spotlight indexing. You need to code something that writes your scripts to one or more '.txt' files that would include the stack name, etc Of course, since you are writing you own info export, you could add some good meta data, such as field names or project title, custom property contents, image names, etc. You could even export a jpg screen shot, then... a short Applescript could write to the Finder comments of the stack file and jpg file, and comments get spotlight indexed for all apps. This means you could use Spotlight, QuickView, Coverflow to scan your projects in the Finder. I don't know the limits for Finder comment lines or chars. Hope this helps Jim Ault Las Vegas ___ 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: Why No Built in GetMyIP call in LiveCode?
In my last code, the localhost was just to get the hostName, something that can also be done with LC's built in hostName function/prop like so: put char 2 to -2 of word 3 of shell( ping -n 1 the hostName ) into msg It's just an optional way to get the hostName if LC was failing to do that properly for some reason. But pinging your hostName will be sure to return the IP address other computers on the LAN will see you as. One-twenty-seven Zero dot zero dot one There's no place like home ~ Chris Innanen ~ Nonsanity On Fri, Jun 10, 2011 at 2:53 PM, Bob Sneidar b...@twft.com wrote: Or don't use localhost at all! It will always return 127.0.0.1. That is the loopback address of every adapter under the sun. Bob On Jun 10, 2011, at 11:49 AM, Nonsanity wrote: haha I completely failed to grasp that. :) How about: put char 2 to -2 of word 3 of shell( ping -n 1 word 2 of shell(ping -n 1 localhost) ) into msg ~ Chris Innanen ~ Nonsanity On Fri, Jun 10, 2011 at 2:20 PM, John Patten johnpat...@mac.com wrote: Actually Chris I wanted the local network, behind the firewall IP address. The project I have in mind is just using sockets in a single classroom. All computers have 10.x.x.x. addresses. Thanks! John Patten SUSD On Jun 10, 2011, at 11:15 AM, Nonsanity wrote: Neither of the solutions given so far in this thread have worked for my on my office PC. I just get my LAN 192.168.x.x number. Here's what I use. They do rely on outside entities, but they are both pretty stable sites that have lasted a good long time... [whatismyip.org] put url http://www.whatismyip.org; into myExIP [dyndns.org] put url http://checkip.dyndns.org; into resp set itemdel to : put word 1 to -1 of item 2 of resp into resp set itemdel to put item 1 of resp into myExIP ~ Chris Innanen ~ Nonsanity On Fri, Jun 10, 2011 at 1:05 PM, John Patten johnpat...@mac.com wrote: Hi All... I've been looking at all the solutions in the archive for getting the IP address of the machine running a stack. Some shell scripts, some php calls, etc. etc. I have a situation where we are behind a firewall using NAT. So all our computers are running a 10.x.x.x.x address. I'm trying to implement some socket communication between stacks and IP address information is essential for this to work. I would like the communication process set up to be as transparent as possible, allowing users to connect by name and maybe holding IP address is a custom property for example. The Dictionary provides some examples for hostAdress function and I tried (wishful thinking, script trickery) something like this: on mouseUp open socket to 127.0.0.1:5005 with message socketOpen put the result end mouseUp on socketOpen theSock put the hostAddress of 127.0.0.1:5005 end socketOpen ...but it just gave me 127.0.0.1 and not the 10.x.x.x. address... Shell script works nice, but it gives quite a few IP in its result. Plus the actual machine IP is located on different lines in the result, such as in a desktop machine, as opposed to a laptop on wireless. It just seems like it would be nice to have a built in function for reporting local machine's IP... Such as, put localIP of current stack into tIP or get LocalIP of current stack. Is this available in the dictionary and I'm just missing it? Thank you! John Patten SUSD ___ 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 ___ 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
Re: [Slightly OT] CSS or Javascript for a web page div that ignores vertical scrolling?
Hi Keith, Set the position style property to fixed. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 10 jun 2011, at 20:53, Keith Clarke wrote: Hi folks, I'm having a little trouble with search terms for sorting the web page that will contain my project revlet... I want to place a little floating widget part-way down the right margin of the web page that stays put vertically wrt the browser window as the lengthy, underlying page contents is scrolled vertically. I'm not sure if this means the div is following the scroll or ignoring it but the desired behaviour wrt scrolling is like the 'Free Trial' and 'What's New' images on www.runrev.com Is this ignore/follow vertical scroll behaviour settable via CSS (if so, can someone please name the guilty tag so I can Google it) or do I need to look at Javascript jQuery? Oh, if it's matters, the div won't be just an image container, it is destined to contain dynamic content managed via Javascript and use a couple of jQuery functions - but I'll learn about them once I have a box to house the content! Best, Keith.. ___ 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: [Slightly OT] CSS or Javascript for a web page div that ignores vertical scrolling?
Ah great - thanks Mark! I ignored the obvious as I thought position was just about relative positioning within nested containers, but you seeded my Google search perfectly http://www.w3.org/Style/Examples/007/menus Best, Keith.. On 10 Jun 2011, at 20:12, Mark Schonewille wrote: Hi Keith, Set the position style property to fixed. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 10 jun 2011, at 20:53, Keith Clarke wrote: Hi folks, I'm having a little trouble with search terms for sorting the web page that will contain my project revlet... I want to place a little floating widget part-way down the right margin of the web page that stays put vertically wrt the browser window as the lengthy, underlying page contents is scrolled vertically. I'm not sure if this means the div is following the scroll or ignoring it but the desired behaviour wrt scrolling is like the 'Free Trial' and 'What's New' images on www.runrev.com Is this ignore/follow vertical scroll behaviour settable via CSS (if so, can someone please name the guilty tag so I can Google it) or do I need to look at Javascript jQuery? Oh, if it's matters, the div won't be just an image container, it is destined to contain dynamic content managed via Javascript and use a couple of jQuery functions - but I'll learn about them once I have a box to house the content! Best, Keith.. ___ 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
R: using animated gif for a cursor on Windows
on Fri Jun 10 08:24:20 CDT 2011, baccheschi at tin.it wrote: perhapse may help you.. putting it on a .gif script on mouseUp set the repeatcount of img ID its_ID to -1 set cursor to 0 repeat until the mouseclick set the loc of img ID its_ID to the mouseloc end repeat set the repeatcount of img ID its_ID to 0 set the currentframe of img ID its_ID to 1 set cursor to arrow end mouseUp Hi Mario, Thanx for your reply. I used your script and it didn't quite do what I was looking for, but I will try and make it work. Running your script, I notice my animated gif still does not animate. I did submit a Tech Support request to RunRev, and Heather replied with ...I guess we don't support it. Unless someone knows how to make animated gifs animate on Windows OS as a cursor, I guess I'm out of luck for now. Regards, Mark Stuart ___ 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: R: using animated gif for a cursor on Windows
well, you can set the cursor to different images repeatedly, therefore creating a fake animation, kind of? On 10 Jun 2011, at 21:29, Mark Stuart wrote: on Fri Jun 10 08:24:20 CDT 2011, baccheschi at tin.it wrote: perhapse may help you.. putting it on a .gif script on mouseUp set the repeatcount of img ID its_ID to -1 set cursor to 0 repeat until the mouseclick set the loc of img ID its_ID to the mouseloc end repeat set the repeatcount of img ID its_ID to 0 set the currentframe of img ID its_ID to 1 set cursor to arrow end mouseUp Hi Mario, Thanx for your reply. I used your script and it didn't quite do what I was looking for, but I will try and make it work. Running your script, I notice my animated gif still does not animate. I did submit a Tech Support request to RunRev, and Heather replied with ...I guess we don't support it. Unless someone knows how to make animated gifs animate on Windows OS as a cursor, I guess I'm out of luck for now. Regards, Mark Stuart ___ 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: find by content with Mac OS
- Message: 4 Date: Fri, 10 Jun 2011 10:32:45 -0700 From: Bob Sneidar b...@twft.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: find by content with Mac OS Message-ID: d5d8a1a4-b064-42ef-ad61-dcd6d5cec...@twft.com Content-Type: text/plain; charset=us-ascii It does not. What you want to use is that little magnifying glass in the upper right of your screen in the menu bar. Command-F in the Finder only searches for the contents of files, but not I think Address Book files and such. Still using this method, I am not seeing any of my stacks after searching for openStack. Apparently scripts are NOT indexed. Bob On Jun 9, 2011, at 7:15 PM, Timothy Miller wrote: Hi Stephen, As far as I know, Command-F and Spotlight invokes the same functionality. Bob, I think that Command F displays the same window that Show all reveals in Spotlight. It allows you to show either Contents or File names. Jim ___ 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: Why No Built in GetMyIP call in LiveCode?
Unless, as was the case with me, it returns the FQDN from the AD DNS, and that happens to be wrong. I get lgos-mp-bobsneidar.cccm.lan. THAT is from our AD DNS, NOT the actual hostname of the computer as all computers will see it. What if there are computers that are not a part of that domain, and are not using that domain's address? If they try to ping me at that hostname they will get nothing. Therein lies the problem. Bob On Jun 10, 2011, at 12:06 PM, Nonsanity wrote: In my last code, the localhost was just to get the hostName, something that can also be done with LC's built in hostName function/prop like so: put char 2 to -2 of word 3 of shell( ping -n 1 the hostName ) into msg It's just an optional way to get the hostName if LC was failing to do that properly for some reason. But pinging your hostName will be sure to return the IP address other computers on the LAN will see you as. One-twenty-seven Zero dot zero dot one There's no place like home ~ Chris Innanen ~ Nonsanity ___ 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: find by content with Mac OS
The two methods produce 2 different results for me. Bob On Jun 10, 2011, at 12:55 PM, James Hurley wrote: - Message: 4 Date: Fri, 10 Jun 2011 10:32:45 -0700 From: Bob Sneidar b...@twft.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: find by content with Mac OS Message-ID: d5d8a1a4-b064-42ef-ad61-dcd6d5cec...@twft.com Content-Type: text/plain; charset=us-ascii It does not. What you want to use is that little magnifying glass in the upper right of your screen in the menu bar. Command-F in the Finder only searches for the contents of files, but not I think Address Book files and such. Still using this method, I am not seeing any of my stacks after searching for openStack. Apparently scripts are NOT indexed. Bob On Jun 9, 2011, at 7:15 PM, Timothy Miller wrote: Hi Stephen, As far as I know, Command-F and Spotlight invokes the same functionality. Bob, I think that Command F displays the same window that Show all reveals in Spotlight. It allows you to show either Contents or File names. Jim ___ 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: Why No Built in GetMyIP call in LiveCode?
On Jun 10, 2011, at 11:12 AM, John Patten wrote: Mark, I'm assuming there is a shell script for Ubuntu too that will do the same parse action as your script example? Your example should help me to understand how to parse the shell script. Hi John, Not sure what it is. But it will be easy to implement once you find the correct shell to execute. Best regards, Mark Talluto http://www.canelasoftware.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: Why No Built in GetMyIP call in LiveCode?
On Jun 10, 2011, at 11:15 AM, Nonsanity wrote: Neither of the solutions given so far in this thread have worked for my on my office PC. I just get my LAN 192.168.x.x number. Here's what I use. They do rely on outside entities, but they are both pretty stable sites that have lasted a good long time... [whatismyip.org] put url http://www.whatismyip.org; into myExIP [dyndns.org] put url http://checkip.dyndns.org; into resp set itemdel to : put word 1 to -1 of item 2 of resp into resp set itemdel to put item 1 of resp into myExIP ~ Chris Innanen ~ Nonsanity My solution was designed to give you your internal ip number. Getting your WAN ip number is a different story. Getting it from whatismyip.com will work. Best regards, Mark Talluto http://www.canelasoftware.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: line colour in a dataGrid table...
It sure can! On 11/06/2011, at 4:27 AM, Bob Sneidar b...@twft.com wrote: I believe Datagrid Helper can do this as well. Bob On Jun 10, 2011, at 3:17 AM, John Dixon wrote: How do I set the lines of a dataGrid table to different colours ?... I can seem to find it in the datagrid manual. be well ___ 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
Re: [Slightly OT] CSS or Javascript for a web page div that ignores vertical scrolling?
It looks like for older browsers you might have to add a !DOCTYPE to make it work. --- http://www.w3schools.com/css/css_positioning.asp -- Note: IE7 and IE8 support the fixed value only if a !DOCTYPE is specified. Fixed positioned elements are removed from the normal flow. The document and other elements behave like the fixed positioned element does not exist. Fixed positioned elements can overlap other elements. - Example: - !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html head style type=text/css p.pos_fixed { position:fixed; top:30px; right:5px; } /style /head body p class=pos_fixedSome more text/p pbNote:/b IE7 and IE8 supports the fixed value only if a !DOCTYPE is specified./p pSome text/ppSome text/ppSome text/ppSome text/ppSome text/ppSome text/ppSome text/ppSome text/ppSome text/ppSome text/ppSome text/ppSome text/ppSome text/ppSome text/ppSome text/ppSome text/p /body /html --- --- On Fri, 6/10/11, Keith Clarke keith.cla...@clarkeandclarke.co.uk wrote: From: Keith Clarke keith.cla...@clarkeandclarke.co.uk Subject: Re: [Slightly OT] CSS or Javascript for a web page div that ignores vertical scrolling? To: How to use LiveCode use-livecode@lists.runrev.com Date: Friday, June 10, 2011, 2:28 PM Ah great - thanks Mark! I ignored the obvious as I thought position was just about relative positioning within nested containers, but you seeded my Google search perfectly http://www.w3.org/Style/Examples/007/menus Best, Keith.. On 10 Jun 2011, at 20:12, Mark Schonewille wrote: Hi Keith, Set the position style property to fixed. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 10 jun 2011, at 20:53, Keith Clarke wrote: Hi folks, I'm having a little trouble with search terms for sorting the web page that will contain my project revlet... I want to place a little floating widget part-way down the right margin of the web page that stays put vertically wrt the browser window as the lengthy, underlying page contents is scrolled vertically. I'm not sure if this means the div is following the scroll or ignoring it but the desired behaviour wrt scrolling is like the 'Free Trial' and 'What's New' images on www.runrev.com Is this ignore/follow vertical scroll behaviour settable via CSS (if so, can someone please name the guilty tag so I can Google it) or do I need to look at Javascript jQuery? Oh, if it's matters, the div won't be just an image container, it is destined to contain dynamic content managed via Javascript and use a couple of jQuery functions - but I'll learn about them once I have a box to house the content! Best, Keith.. ___ 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
Re: [ANN] MobGUI plugin : mobile development aid
I posted a new version earlier today. The iOS movie player, and some experimental retina control resizing is included. Thanks for all the feedback so far. http://www.splash21.com/MobGUI/ On 09/06/2011 00:51, John Craig wrote: Following a good response after the live demo on livecode.tv, I've posted the latest version of the MobGUI plugin. It's still in it's infancy, so feedback is much appreciated! http://www.splash21.com/MobGUI/ JC ___ 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: Why No Built in GetMyIP call in LiveCode?
I settled on Mark's shell script process to get IP address. I managed to kludge together a case for Linux (Ubuntu Netbook) too. I did not quite understand the matchtext line with its (?s) and (.*?)'s but the Mac OSX case and Linux case almost worked without any changes. The Linux shell is same as Mac's: ifconfig with either eth5 or wlan3 for interfaces. The shell command results are: wlan3 Link encap:Ethernet HWaddr 00:25:d3:7c:f2:49 inet addr:10.58.0.91 Bcast:10.58.0.255 Mask:255.255.255.0 The only difference between the two is there are the characters addr: in front of the IP with no space too. The OSX shell has spaces surrounding the IP. Mark had mentioned that the (?s) represent spaces. How does the matchText call know just to capture the IP address in the variable retVal? It appears to look for spaceinetspace and when it finds it magically captures just the IP address that follows it How's it do that? Does matchText automatically get the first item/ word following the matched text??? Not quite sure how that works, but it does :-) snip break case Linux put shell(/sbin/ifconfig eth5) into tEthernetConfig put shell(/sbin/ifconfig wlan3) into tWirelessConfig set the itemdel to . --CHECK FOR ETHERNET CONNECTION get matchText(tEthernetConfig,(?s)inet (.*?) ,retVal) if it is false then -- CHECK FOR WIRELESS CONNECTION get matchText(tWirelessConfig,(?s)inet (.*?) ,retVal) if it is false then return 0.0.0.0 end if end if -- i have no clue how the matchtext works above but the retVal is returns addr:10.X.X.X. Sooo... set the itemDel to : put item 2 of retVal into cd fld ipaddress end switch return 0.0.0.0 ___ 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: Why No Built in GetMyIP call in LiveCode?
How does the matchText call know just to capture the IP address in the variable retVal? Okay, you said you wanted to know what is going on, so here it is. Modifier at the beginning of a statement (?s) says that the '.' char CAN match a return char, thus the match can span 2 or more lines The 's' in this case does not mean 'space char' or the literal 's' char. When the scanning begins and the 'inet ' portion is found to match, then the next condition is tried The () parens are telling the engine to capture any chars that meet the conditions inside and assign them to the first variable specified. In this case, it is 'retVal' If there were a second set of (), then those chars would be assigned to the second variable specified. So the first ? has nothing to do with space chars. it is an operator that affects the logic of the scan depending on the chars inside the parens (?s) And the second ? has nothing to do with space chars. It is a different operator that says to the (.*) scan to be UN-greedy. This means, return the shortest version of a match, rather than the longest possible one. The longest match would be addr:10.58.0.91 Bcast:10.58.0.255 - because the logic is 'find the longest match that allows a string that ends in a space'. Note carefully that the regex ends with(.*?) a trailing space. If the ? was omitted, then the longest match that can end in a space char would be the string that includes Bcast. We don't want the longest string, so we need to tell regex either (?s)(.*?) -- or -- (?Us) (.*) -- both say 'ungreedy' or 'shortest match' Both return a string that only includes the chars between the (), so both return addr:10.58.0.91 without a trailing space. --- Final spec is to find a string that begins with inet and ends with a single space, then return the chars after the first space and before the last space, and make it the shortest string you can find, not the longest. Oh, and the (?s) says that the shortest string can include return chars. In this case, we are working with a two-line value where every char is on the second line, so the (?s) is not essential, but does no harm. --**-- variation you might want to use This ungreedy regex would return retVal = only the ip address put (?U)inet (.*):(.*) space into regEx put \ matchText(tEthernetConfig, regEx, ipLabel, retVal) \ into wasSuccessfulTrueOrFalse Note the ':' separator the extra variable we don't use 'ipLabel' ipLabel = addr retVal = '10.58.0.91' Hope this is crystal clear on a Friday night. Regex is an xtalk language where the x stands for extraterrestrial. Jim Ault Las Vegas On Jun 10, 2011, at 4:12 PM, John Patten wrote: I settled on Mark's shell script process to get IP address. I managed to kludge together a case for Linux (Ubuntu Netbook) too. I did not quite understand the matchtext line with its (?s) and (.*?)'s but the Mac OSX case and Linux case almost worked without any changes. The Linux shell is same as Mac's: ifconfig with either eth5 or wlan3 for interfaces. The shell command results are: wlan3 Link encap:Ethernet HWaddr 00:25:d3:7c:f2:49 inet addr:10.58.0.91 Bcast:10.58.0.255 Mask:255.255.255.0 The only difference between the two is there are the characters addr: in front of the IP with no space too. The OSX shell has spaces surrounding the IP. Mark had mentioned that the (?s) represent spaces. How does the matchText call know just to capture the IP address in the variable retVal? It appears to look for spaceinetspace and when it finds it magically captures just the IP address that follows it How's it do that? Does matchText automatically get the first item/word following the matched text??? Not quite sure how that works, but it does :-) snip break case Linux put shell(/sbin/ifconfig eth5) into tEthernetConfig put shell(/sbin/ifconfig wlan3) into tWirelessConfig set the itemdel to . --CHECK FOR ETHERNET CONNECTION get matchText(tEthernetConfig,(?s)inet (.*?) ,retVal) if it is false then -- CHECK FOR WIRELESS CONNECTION get matchText(tWirelessConfig,(?s)inet (.*?) ,retVal) if it is false then return 0.0.0.0 end if end if -- i have no clue how the matchtext works above but the retVal is returns addr:10.X.X.X. Sooo... set the itemDel to : put item 2 of retVal into cd fld ipaddress end switch return 0.0.0.0 ___ use-livecode mailing list
Re: Why No Built in GetMyIP call in LiveCode?
On 6/10/11 8:21 PM, Jim Ault wrote: The () parens are telling the engine to capture any chars that meet the conditions inside and assign them to the first variable specified. In this case, it is 'retVal' If there were a second set of (), then those chars would be assigned to the second variable specified. Good explantion, I like when regex gets explained. But what I don't get is how come the first set of parentheses aren't put into the variable: get matchText(tEthernetConfig,(?s)inet (.*?) ,retVal) The LC engine ignores the (?s). That's good and as it should be, but I'm not sure why. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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: Why No Built in GetMyIP call in LiveCode?
On Jun 10, 2011, at 7:39 PM, J. Landman Gay wrote: On 6/10/11 8:21 PM, Jim Ault wrote: The () parens are telling the engine to capture any chars that meet the conditions inside and assign them to the first variable specified. In this case, it is 'retVal' If there were a second set of (), then those chars would be assigned to the second variable specified. Good explantion, I like when regex gets explained. But what I don't get is how come the first set of parentheses aren't put into the variable: get matchText(tEthernetConfig,(?s)inet (.*?) ,retVal) The LC engine ignores the (?s). That's good and as it should be, but I'm not sure why. LC honors the (?s), but as a directive, not a caputure. When a paren is read and is followed by a ? this signals an 'operation' rather than a 'capture' -- Additional regex conditions or qualifiers are. Lookahead and Lookbehind ... scanning operations designated by (?= (?! lookbehind positive and negative logic positive and negative logic lookahead (?= (?! -- (?Usi) means shortest match, allow multiple lines, disregard case (?U) means shortest match, single line, case sensitive (?s) means longest match, allow multiple lines, case sensitive if it is missing then default = means longest match, single line, case sensitive What is meant by 'single line' is that a return char restarts the scanning on another line. Multi line means the return is seen as just another char in the text block so the repeat loops can keep going to find the longest match. --- Think of the regex engine as a complex series of nested repeat loops that are a combination of repeat while repeat until making many, many char by char scans, in both directions, from both ends of a block, to find the longest positive result, unless told to be ungreedy (shortest result) The repeat loops are designed to accept strings and operators in series such that a given block of text is scanned in both directions in order to implement logic patterns. This multiple scanning can occur from the first char forward and the last char backward to find the best solution. Simple rules don't show you all the multiple scans (repeat loops) that are used to arrive at the parsed result. Large blocks of text can take several minutes to scan depending on conditions and conditionals. The paren as a directive works for [a-zA-Z] means a to z lower and upper for a single char or (?i)[a-z] means a to z lower and upper for a single char --since the 'i' means case insensitive (?i)([a-z]) -- will capture a single char if it is a-z either case. If the test fails there is no value assigned. LC will allow a test for empty, but Perl and others will report an error like 'undefined' since there was no match, no capture, and no assignment. Also, in Perl, etc, you must define variables ahead of the regex if you want to avoid 'undefined'. Hope this makes a little light reading for the weekend. Jim Ault Las Vegas ___ 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