Re: is among the words AND find words

2011-12-21 Thread Pete
Whoops, sorry Phil, replied before I saw your post. On Tue, Dec 20, 2011 at 9:41 PM, Phil Davis rev...@pdslabs.net wrote: Hi Jim, Try token instead of word as the chunk you're looking for. It will work. On 12/20/11 4:42 PM, Jim Hurley wrote: If the sentence: Now is the time, for all

Scripter's Scrapbook (was arrowkey)

2011-12-21 Thread FlexibleLearning
A reminder that the Scripter's Scrapbook is designed to do exactly this... www.ssbk.co.uk or http://www.runrev.com/store/product/scripters-scrapbook-1-0-0/ And if you want a 'Socks' category, you can have that too! Hugh Senior FLCo On Dec 20, 2011, at 7:04 AM, Mike Bonner wrote: I saw

Re: Database syntax

2011-12-21 Thread Bernard Devlin
Actually, this was precisely the situation in which multiple LC arrays, being used as tables, where the array key was the primary key of the table, and joining these tables was far faster to do using LC arrays than any in-memory SQL database. Admittedly these were only 2-way and 3-way joins, so

Re: is among the words AND find words

2011-12-21 Thread Phil Davis
No worries Pete! Phil On 12/21/11 12:09 AM, Pete wrote: Whoops, sorry Phil, replied before I saw your post. On Tue, Dec 20, 2011 at 9:41 PM, Phil Davisrev...@pdslabs.net wrote: Hi Jim, Try token instead of word as the chunk you're looking for. It will work. On 12/20/11 4:42 PM, Jim

Re: is among the words AND find words

2011-12-21 Thread Alex Tweedly
Hmmm ... what will happen to there is time,enough for it - NB no space before or after the comma. I think you *want* to find time in that case - but I'm not sure if you will by stripping out all non-letter characters from the word time,enough. Would it not be simpler (and faster) to find the

Re: Database syntax

2011-12-21 Thread Ruslan Zasukhin
On 12/21/11 1:44 AM, Bernard Devlin bdrun...@gmail.com wrote: Hi Bernard, Hi All, 1) Look guys. DATABASE must be used when A) it is much bigger of RAM ... B) you want persistence of data C) you have complex structures of data (tables, links, ) D) You need kind of client/server E) You want use

DataGrid Problem

2011-12-21 Thread Charles Szasz
Hi Pete! I am using the Form version of DataGrid and not a table. The form is a scrolling field. I have one field strategy that displays statements from an array. This works fine. But as I stated before I have not been able to add an Edit Field (field freq). When I include the following code

iPad screenrecording: how?

2011-12-21 Thread William de Smet
Hi there, I want to make a screen recording of my new iPad app. How do you people do this? There are no iPad screen recording apps yet. Are there? For now I started to use the iPad simulator and use Quicktime to make a screenrecording (OSX Lion). This gives a fairly good .mov file but the sound

Re: is among the words AND find words

2011-12-21 Thread Pete
The token keyword works with time, and time-bomb (assuming you want to find just time). I've found it to be really useful in a number of circumstances in parsing out chunks of text from strings that don't fit the standard word model - like SQL statements which can include commas, parentheses,

Re: iPad screenrecording: how?

2011-12-21 Thread stephen barncard
you might use a tripod and a video camera. Shooting the screen isn't too bad if the camera and subject are steady. The audio could be direct if it's first turned down in level - video cameras are usually mic level in and would probably sound better with a close up mic I've used this technique as

RE: iPad screenrecording: how?

2011-12-21 Thread Mark Powell
Hi William: I have to set up an external video camera to do recordings of iPad. Works decently, but a lot of overhead. Would be very interested if there is an application that can render the gestures (i.e. shows virtual hand and finger gestures). That would be a *great* app to have for

Re: DataGrid Problem

2011-12-21 Thread Pete
Ah yes, sorry I'm not very familiar with using datagrid forms. The lesson after the one I pointed you to is titled How Can The User Edit Field Content In A Datagrid Form so hopefully it will provide some guidance. Maybe zryip or Trevor can help? On Wed, Dec 21, 2011 at 8:12 AM, Charles Szasz

Re: is among the words AND find words

2011-12-21 Thread Bob Sneidar
Feature request! Sign me up! Bob On Dec 21, 2011, at 10:12 AM, Pete wrote: The token keyword works with time, and time-bomb (assuming you want to find just time). I've found it to be really useful in a number of circumstances in parsing out chunks of text from strings that don't fit the

Re: Database syntax

2011-12-21 Thread Bernard Devlin
I think I've hijacked this thread beyond providing the OP with the links to the Runrev documentation. I'm emailing Ruslan privately about this discussion so that others don't have to bother with it. I'm not slighting Ruslan in the least, nor saying that people should avoid databases. Bernard

Re: Database syntax

2011-12-21 Thread Pete
I think the guy who asked the original question must be tearing his hair out by now! One thing I mentioned earlier that might be relevant to him is that there's no need to use blobs when storing LC arrays. Just use base64 encoding and store it in a text field, works fine. Some folks on this list

Re: is among the words AND find words

2011-12-21 Thread Bernard Devlin
Before rushing for a tokenOffset feature request, perhaps it might be worth considering some other options. Perhaps there could be a way of signalling a string of items which would mark either what should be considered a non-word, or a non-token. That way such a search feature could be used with

Re: is among the words AND find words

2011-12-21 Thread Jim Hurley
Bob et. al. Message: 14 Date: Wed, 21 Dec 2011 08:24:59 -0800 From: Bob Sneidar b...@twft.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: is among the words AND find words Message-ID: ba41a52b-8b6e-4dc0-9996-1253098ea...@twft.com Content-Type: text/plain;

Re: Database syntax

2011-12-21 Thread Ruslan Zasukhin
On 12/21/11 8:27 PM, Bernard Devlin bdrun...@gmail.com wrote: I think I've hijacked this thread beyond providing the OP with the links to the Runrev documentation. I'm emailing Ruslan privately about this discussion so that others don't have to bother with it. I'm not slighting Ruslan in the

Re: DataGrid Problem

2011-12-21 Thread zryip theSlug
On Wed, Dec 21, 2011 at 5:12 PM, Charles Szasz csz...@mac.com wrote: I am using the Form version of DataGrid and not a table. The form is a scrolling field. I have one field strategy that displays statements from an array. This works fine. But as I stated before I have not been able to add

Re: is among the words AND find words

2011-12-21 Thread FlexibleLearning
An alternative approach: Assuming that the phrase now is the time, for all good men is in fld 1, then this button script on mouseUp put findWord(fld 1,time) end mouseUp function findWord pContent,pStr if pStr is among the tokens of pContent then return num of words of char 1 to

Re: is among the words AND find words

2011-12-21 Thread Mark Wieder
FlexibleLearning- Wednesday, December 21, 2011, 12:00:29 PM, you wrote: An alternative approach: Assuming that the phrase now is the time, for all good men is in fld 1, then this button script on mouseUp put findWord(fld 1,time) end mouseUp function findWord pContent,pStr if

Re: is among the words AND find words

2011-12-21 Thread Jim Hurley
Thanks, Hugh. Unfortunately there are a couple of problems. It won't work for this line: Now is the time. because of the period. Nor for the line Now is the time for all because of the quotes. Stripping the lead and trailing characters is cumbersome, but fairly reliable--except for

Function to Upper and Lower Case sentences

2011-12-21 Thread Sivakatirswami
I have a need to take all caps input and 1) Lower case all but first letter of sentences 2) Upper case words in a small dictionary I will provide to the function. As anyone cooked up something like this already... if I just had 1) can manage 2) Happy Holidays! Om Shanti Sivakatirswami

Re: is among the words AND find words

2011-12-21 Thread Pete
Plus it doesn't work for the case where the sentence ends with a period and you search for men - that returns zero. On Wed, Dec 21, 2011 at 12:09 PM, Mark Wieder mwie...@ahsoftware.netwrote: FlexibleLearning- Wednesday, December 21, 2011, 12:00:29 PM, you wrote: An alternative approach:

Re: Database syntax

2011-12-21 Thread Bob Sneidar
How can you tell how big the encoded array will be? I would use blobs whenever the size might increase in the future beyond what I expected. But if the array is a fixed size, and you know for certain it will never grow beyond x, then a text column would do fine. Bob On Dec 21, 2011, at

Re: is among the words AND find words

2011-12-21 Thread Bob Sneidar
On Dec 21, 2011, at 12:28 PM, Jim Hurley wrote: where I just replace the quote with a carrot or whatever You must mean caret? ;-) Otherwise I think you just found an algorithm that could solve the problem of world hunger! Bob ___ use-livecode

Re: is among the words AND find words

2011-12-21 Thread Bob Sneidar
I suppose it could be argued that everything would break down if the text were now,is,the,time,for,all,goo,men... but at some point we have to presume the absence of the absurd? to have 2 words split by a comma is a problem with the data, not with the software. Bob On Dec 21, 2011, at 12:09

Re: Function to Upper and Lower Case sentences

2011-12-21 Thread Bob Sneidar
On Dec 21, 2011, at 12:43 PM, Sivakatirswami wrote: I have a need to take all caps input and 1) Lower case all but first letter of sentences 2) Upper case words in a small dictionary I will provide to the function. As anyone cooked up something like this already... if I just had 1)

Re: Function to Upper and Lower Case sentences

2011-12-21 Thread dunbarx
Try something like this: on mouseUp get fld yourField put toLower(it) into it repeat for each word tWord in it put toUpper(char 1 of tWord) into char 1 of tWord end repeat put it into fld yourField end mouseUp -Original Message- From: Sivakatirswami

Re: Function to Upper and Lower Case sentences

2011-12-21 Thread Sivakatirswami
OK yes, Title case is easy... It's sentence case I was looking for because a period/dot is not part of a word. I guess one could use a dot as a line delimiter and then step thru the lines. On 12/21/11 10:57 AM, Bob Sneidar wrote: On Dec 21, 2011, at 12:43 PM, Sivakatirswami wrote: I have

Re: Function to Upper and Lower Case sentences

2011-12-21 Thread Pete
I think he's looking for something to capitalize the first char of each sentence, not of each word. On Wed, Dec 21, 2011 at 12:57 PM, Bob Sneidar b...@twft.com wrote: end repeat -- Pete Molly's Revenge http://www.mollysrevenge.com ___

Re: is among the words AND find words

2011-12-21 Thread Pete
Not really - try parsing out an SQL SELECT statement. Granted that's not really English text but if you want to make this a general purpose function, you have to deal with that circumstance. I needed to do that and ended up going through the text and inserting a space after each comma if there

Re: Database syntax

2011-12-21 Thread Pete
The problem I had was that it just didn't work using a blob. The encoded array got stored OK but LC didn't recognise what came back as an array, don't remember all the details. The default max size of a text field in SQLite is 1 million characters so I think he'd be pretty safe. On Wed, Dec 21,

Re: Function to Upper and Lower Case sentences

2011-12-21 Thread J. Landman Gay
On 12/21/11 3:02 PM, Sivakatirswami wrote: OK yes, Title case is easy... It's sentence case I was looking for because a period/dot is not part of a word. I guess one could use a dot as a line delimiter and then step thru the lines. Seems like there should be some kind of fancy regex to do

Re: Database syntax

2011-12-21 Thread mike
Not any hair left to pull out. I am enjoying the banter and learning at the same time. Keep it coming! -= Mike Sent from my BlackBerry device on the Rogers Wireless Network -Original Message- From: Pete p...@mollysrevenge.com Sender: use-livecode-boun...@lists.runrev.com Date:

Re: Function to Upper and Lower Case sentences

2011-12-21 Thread Bob Sneidar
I did something similar recently, where not only was the delimiter important, but preserving the exact delimiter was also important. In my case it was breaking out the parts of a query that might contain AND or OR. What I did was: replace AND with cr AND cr in theList replace OR with

Re: is among the words AND find words

2011-12-21 Thread Bob Sneidar
OIC good point. But wouldn't it be better simply isolate the comma delimited arguments (usually in parens) in an SQL statement and then deal with them as items? But I suppose there are all kinds of special circumstances that would make a general purpose word function very unwieldy. Bob On

Re: Database syntax

2011-12-21 Thread Bob Sneidar
Probably something similar to what I encountered when passing an AES encrypted string that *might* contain commas or characters that would jack a query. Using sqlYoga solved that for me as the insert and update queries are escaped by default (correct me if I am wrong). Bob On Dec 21, 2011,

Re: is among the words AND find words

2011-12-21 Thread Mark Wieder
Bob- Wednesday, December 21, 2011, 12:54:46 PM, you wrote: I suppose it could be argued that everything would break down if the text were now,is,the,time,for,all,goo,men... but at some point we have to presume the absence of the absurd? to have 2 words split by a comma is a problem with the

Re: Function to Upper and Lower Case sentences

2011-12-21 Thread Pete
Or a close paren? Seems like modern English usage is to put the period before the close paren at the end of a sentence (although I personally hate that). On Wed, Dec 21, 2011 at 1:30 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 12/21/11 3:02 PM, Sivakatirswami wrote: OK yes, Title

Re: Database syntax -- array to BLOB

2011-12-21 Thread Ruslan Zasukhin
On 12/21/11 11:22 PM, Pete p...@mollysrevenge.com wrote: The problem I had was that it just didn't work using a blob. The encoded array got stored OK but LC didn't recognise what came back as an array, don't remember all the details. This can be interested feature actually. A) I not

Re: is among the words AND find words

2011-12-21 Thread Pete
I think I tried that but the arguments aren't always comma delimited unfortunately. Somewhat related,I wish SQLite provided more formatted access to the table structures. Some stuff is available via the PRAGMA statements but for other information, there's no alternative but to parse the CREATE

Re: is among the words AND find words

2011-12-21 Thread Bob Sneidar
True enough, except that a comma *might* be there under normal circumstances, whereas I cannot think of an example where two words can be joined by a comma in normal English grammar. But again, it might not be english grammar we are trying to work with, so any function devised could not be so

Re: Function to Upper and Lower Case sentences

2011-12-21 Thread Mark Wieder
Pete- Wednesday, December 21, 2011, 2:00:57 PM, you wrote: Or a close paren? Seems like modern English usage is to put the period before the close paren at the end of a sentence (although I personally hate that). I believe that's the traditional approach and it's been changing over time to

Re: Function to Upper and Lower Case sentences

2011-12-21 Thread Bob Sneidar
(Me too!) On Dec 21, 2011, at 2:00 PM, Pete wrote: Or a close paren? Seems like modern English usage is to put the period before the close paren at the end of a sentence (although I personally hate that). On Wed, Dec 21, 2011 at 1:30 PM, J. Landman Gay jac...@hyperactivesw.comwrote:

Re: Database syntax -- array to BLOB

2011-12-21 Thread Pete
I think the problem I had with blobs is that a base64 encoded string is text, not binary so trying to put into a column that thinks it's getting binary data seems to mess things up. But I don't remember for sure. All I know is that using base64 encoding and a text column works just fine for me.

Re: Function to Upper and Lower Case sentences

2011-12-21 Thread Pete
Came across another corner case - a quotation at the end of a sentence, eg: Mark said, You don't know what you're talking about! This could be a real nightmare! On Wed, Dec 21, 2011 at 2:09 PM, Mark Wieder mwie...@ahsoftware.net wrote: Pete- Wednesday, December 21, 2011, 2:00:57 PM, you

could not find a valid Identity to use for the selected profile

2011-12-21 Thread Ray Horsley
Anybody know how to jump through this hoop when saving an iOS app? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: could not find a valid Identity to use for the selected profile

2011-12-21 Thread Mark Schonewille
Hi, That's very, very little information. For example, are you sure you did everything correctly? Do you even have an Apple developer account for iOS? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter:

iOS: text styles

2011-12-21 Thread Chris Sheffield
I've about driven myself crazy over this one today, but it turns out I think I may have found a bug. Either that or very strange expected behavior. So I'm wondering if someone wouldn't mind checking this for me to see if the results are the same. Should only take a couple minutes. Create a new

Re: iPad screenrecording: how?

2011-12-21 Thread Todd Geist
Hello, I spent a tremendous amount of time researching this. It turns out there is NOT an app for that :-) I did finally come up with a setup that works but it is not cheap, not is it perfect. I can capture the iPad screen but it doesn't show finger touches like you see with the simulator.

Re: could not find a valid Identity to use for the selected profile

2011-12-21 Thread Ray Horsley
Sorry. I guess my question did provide pretty scant specs. Anyway, yes, I enrolled in the Apple Developer program last year after purchasing an iPad. I've since given the iPad to somebody else in our company and I just bought a new iPad 2. After I renewed the developer membership I setup

Re: could not find a valid Identity to use for the selected profile

2011-12-21 Thread Mark Schonewille
Hi, Yes, indeed, you have to renew the profiles every now and then. They expire. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales

Re: File time off by an hour...

2011-12-21 Thread Keith (Gulf Breeze Ortho Lab)
H. No responses to this. I did experiment a bit and noticed that when I set my PC's time zone to Eastern time in lieu of Central time, the file times show correctly. Also, without switching time zones, the file dates show an hour behind for files saved during months falling in daylight

revAndroidPlugin and the Android SDK

2011-12-21 Thread Ralph DiMola
The revAndroidPlugin is not recognizing the Android SDK anymore. I still use to view messages and the output of a LC put for debugging. Any Ideas? Thanks Ralph DiMola IT Director Evergreen Information Services ___ use-livecode mailing list

Re: Function to Upper and Lower Case sentences

2011-12-21 Thread Sivakatirswami
well I got this far.. in my hokey-baby xTalk way of coding...but it works well enough to keep one or two donors from screaming with all caps in their comments... but someone was entering dates like this: 12.21.2012 in his comments my script munges these to 12212012.. and it doesn't deal

Re: iOS: text styles

2011-12-21 Thread Randy Hengst
Hi Chris, I'll confirm LC 5.0.2 OSX 6.8 -- are does not appear in italics. I've noticed this in the past. Setting Arial to bold, etc in the inspector doesn't have any effect either. I have no idea why. be well, randy - On Dec 21, 2011, at 4:42 PM, Chris Sheffield wrote: I've about

Re: iOS: text styles

2011-12-21 Thread J. Landman Gay
On 12/21/11 4:42 PM, Chris Sheffield wrote: Set the standalone settings for iPad, etc. Launch it in the simulator. Does the word are appear in italics? It doesn't for me. Should it? The same thing works fine in the IDE. But when run in the simulator or on a device the text is not styled. I did

Is Control a DataGrid

2011-12-21 Thread Todd Geist
Hello, When Looping through controls on a card, how does one determine if the current control is a DataGrid? Actually I want to know that it is NOT a DataGrid. Thanks Todd -- Todd Geist ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: Is Control a DataGrid

2011-12-21 Thread dunbarx
Perhaps the focusedObject? -Original Message- From: Todd Geist t...@geistinteractive.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Wed, Dec 21, 2011 7:24 pm Subject: Is Control a DataGrid Hello, When Looping through controls on a card, how does one determine if the

Re: Is Control a DataGrid

2011-12-21 Thread Phil Davis
Hi Todd, This should work unless you use 'dgControl' as your own custom prop name anywhere: if the dgControl of control x = empty then -- this is NOT a DG -- do stuff here end if Phil Davis On 12/21/11 10:31 PM, dunb...@aol.com wrote: Perhaps the focusedObject? -Original

Re: Is Control a DataGrid

2011-12-21 Thread Phil Davis
I should have said a little more. From the DG API docs http://lessons.runrev.com/s/lessons/m/datagrid/l/7344-Data-Grid-API: /dgControl/ - get the dgControl of the target - Returns the long id of the data grid. Useful in row/column template behaviors when you need to get properties of the data

Re: is among the words AND find words

2011-12-21 Thread Jim Hurley
Thanks to all for their help with this. I learned a new key word in token. So far the function below handles everything reasonable I have thrown at it, including finding time in the less than reasonable text in field 1: Now is timely the timeless time.-for, all good. on mouseUp put

Re: iPad screenrecording: how?

2011-12-21 Thread Chipp Walters
You could try this http://www.ponoko.com/design-your-own/products/scandock-2703 -- Chipp Walters CEO, Altuit, Inc. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: is among the words AND find words

2011-12-21 Thread Jim Hurley
Strike most of my last message. It appears that most of the function can be replaced with an examination of the entire text (dah) as in: put tWord is among the tokens of tList into tTest return tTest This tests the whole text; it is not necessary to test each string containing the