Web crawling/spidering with LiveCode?

2011-06-15 Thread Keith Clarke
Hi folks, Having made some progress with screen-scraping specific web page content into LiveCode, I'm now wondering about how I might automate the process of finding the pages of interest on a website. The idea is to work through a documentation site (or wiki), returning structured tabular dat

Re: Has anyone experimented with memo functions in LC?

2011-06-15 Thread Geoff Canyon Rev
This would work for a particular function. I was looking for a general solution that would allow memo-ing any function without further consideration. In J, for example, you just and "M." to the function definition, and you're done. If I were to do something like this in LC I'd want to implement som

Re: horizontal and vertical scrolling

2011-06-15 Thread Keith Clarke
...a kind of quantum scrolling/fixed duality inherent in cards, so we can know it's state by inserting an object - Shrödinger's card? But then 50% of cards would be created with a scrollbar - unless of course, these are all non-local, sitting in the anti-stack that can't be accessed because it'

Re: horizontal and vertical scrolling

2011-06-15 Thread J. Landman Gay
On 6/15/11 11:44 PM, Richard Gaskin wrote: Thomas McGrath III wrote: Although, I suppose if you could group a card then you could scroll a card. Actually, I believe empty cards do scroll. ;) Cute. :P But for Tim: you can in fact scroll a card. Cards have a scroll property. Just make the

Re: horizontal and vertical scrolling

2011-06-15 Thread Richard Gaskin
Thomas McGrath III wrote: > Although, I suppose if you could group a card then you could scroll a card. Actually, I believe empty cards do scroll. ;) -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.

Functions (was: Re: horizontal and vertical scrolling)

2011-06-15 Thread J. Landman Gay
On 6/15/11 6:58 PM, Timothy Miller wrote: Hi Jacque, We may as well let everyone else in on this, someone may have something to add. And I don't think you embarrassed either of us. I mean, we weren't posting our underwear to Facebook or anything. :) For the peanut gallery: we were talking i

Re: horizontal and vertical scrolling

2011-06-15 Thread Thomas McGrath III
Although, I suppose if you could group a card then you could scroll a card. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On Jun 15, 2011, at 11:43 PM, Richard Gaskin wrote: > Timothy Miller wrote: >> Is there any rational reason that native scrollbars can be >> enabled fo

Re: horizontal and vertical scrolling

2011-06-15 Thread Richard Gaskin
Timothy Miller wrote: > Is there any rational reason that native scrollbars can be > enabled for fields and groups but not for cards or stacks? What is there to scroll in an empty window? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine

Re: horizontal and vertical scrolling

2011-06-15 Thread Timothy Miller
Oopsie! I meant this to be a back-channel message to Jacque. Fortunately, I don't think I embarrassed myself or Jacque. Sorry for the inconvenience. Tim On Jun 15, 2011, at 4:58 PM, Timothy Miller wrote: > Hi Jacque, > > Thanks very much. I understand the arithmetic in your function. You jus

Re: horizontal and vertical scrolling

2011-06-15 Thread Timothy Miller
Hi Bob, I think I understand your arguments. I'm not convinced, though. If you had a complicated nest of scrolling fields, scrolling cards, scrolling backgrounds and a scrolling stack, you'd really have a mess. Inexperienced authors (are they still called "authors"?) would have to be warned aga

Re: horizontal and vertical scrolling

2011-06-15 Thread Timothy Miller
Hi Jacque, Thanks very much. I understand the arithmetic in your function. You just made my life a little easier, as you have several times before. If I understand your article on functions correctly, a handler or a script can do anything a function can do. However, scripts containing functions

Re: horizontal and vertical scrolling

2011-06-15 Thread Bob Sneidar
I think there is. You can see how certain kinds of fields would need to scroll, where other fields do not. Fields are more akin to windows than any other LC object. I suppose you could think of a card that way, but the card and stack of cards allegory lends itself to some fixed size. If the whol

horizontal and vertical scrolling

2011-06-15 Thread Timothy Miller
Hi, I never thought about it before, but now I'm wondering. Is there any rational reason that native scrollbars can be enabled for fields and groups but not for cards or stacks? Cheers, Tim ___ use-livecode mailing list use-livecode@lists.runrev.co

Re: Distinguishing CLI from GUI

2011-06-15 Thread Mark Wieder
Richard- Wednesday, June 15, 2011, 9:16:19 AM, you wrote: > @Mark Weider: are you able to get "-ui" in any of the $ vars in your > Fedora setup? I believe the engine eats *all* the commandline arguments it uses itself rather than passing them on. > @All: Anyone know a way to run facelessly fro

Re: Relational Layouts (was: Re: nuther new newbie nuisance)

2011-06-15 Thread Bob Sneidar
I think someone did this already. They built a geometry manager (which is what Livecode calls what you want to do). Bob On Jun 15, 2011, at 10:02 AM, Nonsanity wrote: > As a side note, I designed the UI XML system used for Oblivion and Fallout 3 > (I don't know if Bethesda is still using it f

RE: nuther new newbie nuisance

2011-06-15 Thread FlexibleLearning
Importing images and/or using imageSource will make a very big stack! It is often better to set the fileName of an image to an externally stored jpg, gif or png... eg: set the filename of image 1 to "bird1.jpg" If you have a lot of images, you could keep them in a folder then use a relative pat

Re: BackgroundBehavior Question OR a bug

2011-06-15 Thread Devin Asay
On Jun 15, 2011, at 10:59 AM, Timothy Bleiler wrote: > Thanks Devin, > > You are correct. I messed up and was running 4.5.2 on the Mac. So, > what this means is that from 4.6 on backgroundBehavior = true for > groups on >1 card is the expected behavior? Anyone know why this > change was ma

Fields in datagrid columns

2011-06-15 Thread Pete
I have a need to define custom properties for fields in a datagrid column. Defining custom properties for columns that have been customised with buttons, menus, checkboxes, etc is easy since they are actual LC controls within the datagrid, but unless I'm misunderstanding something, it seems like f

Re: BackgroundBehavior Question OR a bug

2011-06-15 Thread Timothy Bleiler
Thanks Devin, You are correct. I messed up and was running 4.5.2 on the Mac. So, what this means is that from 4.6 on backgroundBehavior = true for groups on >1 card is the expected behavior? Anyone know why this change was made? It seems like a pain in terms of message passing for groups

Re: nuther new newbie nuisance

2011-06-15 Thread Nonsanity
Well, it takes code to flip images with buttons, and the scrolling field needs none. But if you want to write some code anyway, you can also script the field to randomize the order of the images. As for cutting them off, that is true... You will get partial images at the top and bottom while scrol

Re: odd stack corruption

2011-06-15 Thread J. Landman Gay
On 6/14/11 3:43 PM, Jeff Reynolds wrote: in the end i rebuilt the whole group and the behavior went away, so it was something odd in that group that popped in in the last 5 years or so w/o any edits being done to that card. the odd show the other group behavior only showed up when the stack went

Re: nuther new newbie nuisance

2011-06-15 Thread J. Landman Gay
On 6/15/11 11:09 AM, Timothy Miller wrote: I think maybe the way to do it is to make a scrolling group of several empty picture placeholders -- "image areas" is the correct terminology, I guess. For each card, I'll store a list of locations of desired images in a field. (The locations will be on

Relational Layouts (was: Re: nuther new newbie nuisance)

2011-06-15 Thread Nonsanity
As a side note, I designed the UI XML system used for Oblivion and Fallout 3 (I don't know if Bethesda is still using it for Skyrim), and it used an active version of this sort of relational layout. You could set the left of an image, for example, to always be the right of another image plus 10. Th

RE: nuther new newbie nuisance

2011-06-15 Thread Slava Paperno
This is a brilliant idea (using a character as a placeholder for an image), but what's the advantage of having a bunch of images in a scrollable field vs. a series of images with the Next and Previous (and maybe Any) buttons? And maybe an option for placing up to four reduced images on the card at

Re: nuther new newbie nuisance

2011-06-15 Thread Klaus on-rev
Hi Roger, Am 15.06.2011 um 18:47 schrieb Roger Eller: > On Wed, Jun 15, 2011 at 12:43 PM, Klaus on-rev wrote: > >> Hi Richmond, >> >> Am 15.06.2011 um 18:34 schrieb Richmond Mathewson: >> >>> So; I wrote this to Timothy Miller:- ... end mouseUp >>> >>> "find out the language equival

Re: nuther new newbie nuisance

2011-06-15 Thread Roger Eller
On Wed, Jun 15, 2011 at 12:47 PM, Roger Eller wrote: > > In addition to left/top/right/bottom, there is also loc. > > ~Roger > > and width and height (probably others too). ~Roger ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit

Re: nuther new newbie nuisance

2011-06-15 Thread Nonsanity
If you want to stick with what you are familiar with, just to get the project done, try looking up "imageSource" in the dictionary. With that, you can change a character in a text field to be an image. So make a background field with fixedLineheight turned off, centered text, and a single characte

Re: nuther new newbie nuisance

2011-06-15 Thread Roger Eller
On Wed, Jun 15, 2011 at 12:43 PM, Klaus on-rev wrote: > Hi Richmond, > > Am 15.06.2011 um 18:34 schrieb Richmond Mathewson: > > > So; I wrote this to Timothy Miller:- > >> ... > >> end mouseUp > > > > "find out the language equivalents of > > the alignment commands in the Obj. Inspector" > > set t

Re: nuther new newbie nuisance

2011-06-15 Thread Devin Asay
On Jun 15, 2011, at 10:34 AM, Richmond Mathewson wrote: > So; I wrote this to Timothy Miller:- >> >> on mouseUp >> clone card "TWEETY" >> set the name of card "TWEETY" to "TWEETY2" >> --obviously this is a bit daft, you could have a field that counts the >> cards and assigns them numbers as the

Re: nuther new newbie nuisance

2011-06-15 Thread Klaus on-rev
Hi Richmond, Am 15.06.2011 um 18:34 schrieb Richmond Mathewson: > So; I wrote this to Timothy Miller:- >> ... >> end mouseUp > > "find out the language equivalents of > the alignment commands in the Obj. Inspector" set the left/top/right/bottom of YYY to the left/top/right/bottom of XXX Where

Re: nuther new newbie nuisance

2011-06-15 Thread Richmond Mathewson
So; I wrote this to Timothy Miller:- on mouseUp clone card "TWEETY" set the name of card "TWEETY" to "TWEETY2" --obviously this is a bit daft, you could have a field that counts the cards and assigns them numbers as they are cloned--- {this is where you can have your import routine} select

Re: Distinguishing CLI from GUI

2011-06-15 Thread Warren Samples
On Wednesday, June 15, 2011 11:16:19 AM Richard Gaskin wrote: > > seems to work as expected with and without -ui. Using this command: > > ''launchTest -ui -Q some-param -h" launches Opera and creates the file > > with this line: "launchTest -Q some-param -h". > > Thanks for that info. I've had no

Re: Distinguishing CLI from GUI

2011-06-15 Thread Trevor DeVore
On Wed, Jun 15, 2011 at 12:16 PM, Richard Gaskin wrote: > @All: Anyone know a way to run facelessly from the command line in Windows > and quit after executing without having Windows think it's an error? > Shot in the dark. What if you explicitly an exit code of zero to quit? quit 0 Does that

Re: BackgroundBehavior Question OR a bug

2011-06-15 Thread Devin Asay
On Jun 15, 2011, at 9:33 AM, Timothy Bleiler wrote: > Hi, > > The backgroundBehavior property of groups appears to work differently > on Mac vs Windows, Livecode version 4.6.1. On Mac, backgroundBehavior > can be toggled between true and false at any time. On Windows > BackgroundBahavior m

Re: Distinguishing CLI from GUI

2011-06-15 Thread Richard Gaskin
Warren Samples wrote: This simple script: on openStack put $0 && $1 && $2 && $3 into url "file:/home/warren/Documents/launchtestLOG.txt" if $3 is "-h" then get shell("opera") end openStack seems to work as expected with and without -ui. Using this command: ''launchTest -ui -Q some-para

Re: nuther new newbie nuisance

2011-06-15 Thread Timothy Miller
Thanks, Keith, Slava and Richmond, Hmm... Tricky... The database suggestion is reasonable, but I never learned how to use a database with LC. As a pathetic hyperCard retread, I tend to think of LC as a database! I want to be able to see multiple photos of the same bird at the same time, to ge

BackgroundBehavior Question OR a bug

2011-06-15 Thread Timothy Bleiler
Hi, The backgroundBehavior property of groups appears to work differently on Mac vs Windows, Livecode version 4.6.1. On Mac, backgroundBehavior can be toggled between true and false at any time. On Windows BackgroundBahavior must always be true IF the group is on more than one card. If yo

Re: UDP, multicast

2011-06-15 Thread Pierre Sahores
Jan, Interesting ! Thanks for the tip. Pierre Le 15 juin 2011 à 06:59, Jan Schenkel a écrit : > --- On Mon, 6/13/11, Maarten Koopmans wrote: >> Hi, >> >> Is there a way to send or receive multicast in livecode? I >> want to use that >> with a TTL=2 so devices on the same network can discove

Re: nuther new newbie nuisance

2011-06-15 Thread Richmond Mathewson
On 06/15/2011 09:13 AM, Timothy Miller wrote: Greetings, I thought I knew how to do this, but it isn't working out. I'm making a stack that will help me practice identifying birds. One card per species. Images and songs, mostly, plus a few fields for habitat, seasonality and so on. Some field