Re: Getting Library Stacks into Memory

2016-07-08 Thread J. Landman Gay
I seem to remember inserting the script of a stack into back at some point in the past. I know for sure you can start using the stack which is effectively the same thing. The main thing is that you don't need to "go" there to load the stack into RAM. Just putting it in use does that, as does a

Re: ICO image extraction lib?

2016-07-08 Thread Monte Goulding
I have played with it a couple of times over the years. If you can find a copy of Revolution 2.3.. ish you might find something interesting in the standalone builder script as I had to extract all the bitmaps and rebuild the file in the order the engine needed. Thankfully Mark Waddingham sorted

Re: A bit RTF-ed off.

2016-07-08 Thread Kay C Lan
As I assume you are now using LC8 Indy (to that generous person, God bless you and your family) I'll point out two entries in the LC8 Dictionary which I know you're having trouble accessing: Under 'textDecode': It is highly recommended that any time you interface with things outside LiveCode (fil

Re: Parsing a PDF file

2016-07-08 Thread Mark Rauterkus
Hi, OT Tip: Go to the source of the data, the election board. Tell them you want the raw data made available PLUS the PDF. That is not an unreasonable request. Open Government advocates / folks would support that, IMHO. -- Ta. Mark Rauterkus m...@rauterkus.com _

Re: Get fillGradient props

2016-07-08 Thread Mark Wieder
On 07/08/2016 01:48 PM, Monte Goulding wrote: - being even stricter by also declaring repeat loop iteration variables (I do this) I think that might lead to trouble in giving the sense that loop iterators are of the same class as other variables, whereas writing to a loop iterator can be a

ICO image extraction lib?

2016-07-08 Thread Richard Gaskin
Someone in the forums was asking about retrieving the images from an ICO file. The format seems pretty straightforward, and the internal image sections are either BMP or PNG, so they'd work well in LC once extracted. Has anyone here written a library for extracting image data from ICOs? -- R

Re: Getting Library Stacks into Memory

2016-07-08 Thread Mark Wieder
On 07/08/2016 12:48 AM, J. Landman Gay wrote: insert the script of the stack into front or back Now *that* would be an interesting addition to the language "...surprise me, Trebek..." -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing

Re: Getting Library Stacks into Memory

2016-07-08 Thread Sannyasin Brahmanathaswami
Jacque wrote: "insert the script of the stack into front or back" The dictionary implies that this can only be done with an "object" , hence the assumption (probably wrong) that one needs to have the stack open… I assume you mean that we can do it like this now with script only stacks insert

Re: Get fillGradient props

2016-07-08 Thread Mark Wieder
On 07/08/2016 09:57 AM, J. Landman Gay wrote: We are all odd in our own way, but as long as we're consistently odd it works. I want the t-shirt. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Pleas

Re: Get fillGradient props

2016-07-08 Thread Dar Scott
I think "block" is good in your usage. My sense is just twisted to fit my warped way of looking at things. > On Jul 8, 2016, at 5:08 PM, Monte Goulding wrote: > > >> On 9 Jul 2016, at 8:33 AM, Dar Scott wrote: >> >>> - declaring variables at the top of the handler or in the block they ar

Re: Get fillGradient props

2016-07-08 Thread Monte Goulding
> On 9 Jul 2016, at 8:33 AM, Dar Scott wrote: > >> - declaring variables at the top of the handler or in the block they are >> used. Ali and I do the latter and Peter B thinks it's poor style because we >> don't have block scoped variables. > > I usually write small handlers so it doesn't mat

Re: Get fillGradient props

2016-07-08 Thread Dar Scott
> On Jul 8, 2016, at 2:48 PM, Monte Goulding wrote: > > This is all great fuel for the scripting style panel at the conference. Also > we have: > > - strict compilation On some days I need this a lot. > - being even stricter by also declaring repeat loop iteration variables (I do > this)

Advertising in iOS or android apps

2016-07-08 Thread Dr. Hawkins
Quite some time ago, I filled out the request for the semi-built in advertising program fro mobile. After ignoring it for weeks, I got a simple rejection from them. What are people doing, if anything, to put advertising in their mobile games? Are there other straightforward alternatives? I pret

Re: Get fillGradient props

2016-07-08 Thread Monte Goulding
I think that is much more common than the c thing. Sent from my iPhone > On 9 Jul 2016, at 2:57 AM, J. Landman Gay wrote: > > For now I just name the button with a trailing "behavior" string,, i. e., > "scrollBehavior". ___ use-livecode mailing li

Re: Get fillGradient props

2016-07-08 Thread Monte Goulding
This is all great fuel for the scripting style panel at the conference. Also we have: - strict compilation - being even stricter by also declaring repeat loop iteration variables (I do this) - declaring variables at the top of the handler or in the block they are used. Ali and I do the latter a

Re: A bit RTF-ed off.

2016-07-08 Thread J. Landman Gay
On 7/8/2016 10:31 AM, Richmond wrote: So, I imported an RTF file into a list field and tired to look at char 3, but I have a feeling that the RTF was piling in as double-byte stuff as it didn't work at all. When I copy-pasted the stuff out of the original RTF file intil a text file and imported

Re: Parsing a PDF file

2016-07-08 Thread Richard Gaskin
Dar Scott wrote: >> On Jul 8, 2016, at 9:44 AM, Richard Gaskin wrote: >> It's unfortunate that so many orgs release data useful to analysis >> in complex formats that inhibit such use. ... > To make it worse, documents for human consumption are claimed to be > the same when underneath there are b

Re: Parsing a PDF file

2016-07-08 Thread Dar Scott
> On Jul 8, 2016, at 9:44 AM, Richard Gaskin wrote: > > > My County is now publishing the election results to the web as a PDF > > file: > > > > https://www.mynevadacounty.com/nc/elections/docs/2016%20Elections/June%207%2c%202016%2c%20Presidential%20Primary/Election%20Results/precinctreport.pdf

Re: Get fillGradient props

2016-07-08 Thread Mark Wieder
Richard Gaskin writes: > > J. Landman Gay wrote: > > > Since behavior scripts are only referenced in a "set the behavior" > > statement, I'm not sure where you'd use an initial flag. > > Not in code, just in the object name. I use the word "behavior" in the object name, as in button "btnSt

Re: Get fillGradient props

2016-07-08 Thread Richard Gaskin
J. Landman Gay wrote: > Since behavior scripts are only referenced in a "set the behavior" > statement, I'm not sure where you'd use an initial flag. Not in code, just in the object name. > But if I ever need one, I'd use "b" for "behavior". I could, but I'm still holding out hope that the o

Re: Parsing a PDF file

2016-07-08 Thread [-hh]
[Description for MacOS, works on Win/Linux similar.] The best results for extracting tables from PDF I had with the free "RAW" method: = Open the file with Preview. = Select All (menu Edit). Copy. = Go to a LC stack with a field "INCOMING" = Use by a button or the message box the line put cli

Re: Get fillGradient props

2016-07-08 Thread J. Landman Gay
You old OCDer, you. :-) Since behavior scripts are only referenced in a "set the behavior" statement, I'm not sure where you'd use an initial flag. But if I ever need one, I'd use "b" for "behavior". For now I just name the button with a trailing "behavior" string,, i. e., "scrollBehavior".

Re: Parsing a PDF file

2016-07-08 Thread Richard Gaskin
Paul Dupuis wrote: > In truth a NEW portable document format needs to be invented that > connects and preserves content to its appearance, but I suspect that > people who want to keep both intact and portable are just using HTML5 > and CSS3. CSS is a wonderful solution. Being prone to idealism,

Re: Parsing a PDF file

2016-07-08 Thread Mike Bonner
Its ugly but, could you use pdf.js to extract the text in a browser widget showing the pdf? http://git.macropus.org/2011/11/pdftotext/example/ Not sure what else is in pdf.js but it looks interesting. On Fri, Jul 8, 2016 at 10:30 AM, Paul Dupuis wrote: > On 7/8/2016 11:55 AM, Colin Holgate wr

Re: Parsing a PDF file

2016-07-08 Thread Mike Bonner
Might read this one too: http://stackoverflow.com/questions/1554280/extract-text-from-pdf-in-javascript On Fri, Jul 8, 2016 at 10:48 AM, Mike Bonner wrote: > Its ugly but, could you use pdf.js to extract the text in a browser > widget showing the pdf? > http://git.macropus.org/2011/11/pdftotext

Re: Parsing a PDF file

2016-07-08 Thread Paul Dupuis
On 7/8/2016 11:55 AM, Colin Holgate wrote: > I was trying an export as spreadsheet from Acrobat Pro, but that didn’t work. > Doing a Save as Text from Acrobat Reader was more successful, but the columns > come out in a different order, and some columns get combined into a single > string. Over

Re: Get fillGradient props

2016-07-08 Thread Richard Gaskin
J. Landman Gay wrote: I think we're pretty evenly split between "c" and "u". I prefer "c" because it is, after all, a custom property. Those who migrated from SuperCard often prefer "u" because over there, I believe, they are called user properties. Richard's guide is pretty good and I follow t

Re: Parsing a PDF file

2016-07-08 Thread Colin Holgate
I was trying an export as spreadsheet from Acrobat Pro, but that didn’t work. Doing a Save as Text from Acrobat Reader was more successful, but the columns come out in a different order, and some columns get combined into a single string. > On Jul 8, 2016, at 11:44 AM, Richard Gaskin > wrote

Re: Parsing a PDF file

2016-07-08 Thread Richard Gaskin
Jim Hurley wrote: > My County is now publishing the election results to the web as a PDF > file: > > https://www.mynevadacounty.com/nc/elections/docs/2016%20Elections/June%207%2c%202016%2c%20Presidential%20Primary/Election%20Results/precinctreport.pdf > > Is there a way to parse these PDF file

Re: Parsing a PDF file

2016-07-08 Thread Dan Brown
> Doesn’t that just let you show PDFs? Would it help to parse the contents? Using the "pdftotext" component of Xpdf you can use a shell command to extract the text from a pdf and place it into for example a text file which you can then parse something like.. ___ put "C:\pdftotext" & " -layou

A bit RTF-ed off.

2016-07-08 Thread Richmond
So, I imported an RTF file into a list field and tired to look at char 3, but I have a feeling that the RTF was piling in as double-byte stuff as it didn't work at all. When I copy-pasted the stuff out of the original RTF file intil a text file and imported that (as Text rather than RTFtext) ever

Re: Getting Library Stacks into Memory

2016-07-08 Thread Sannyasin Brahmanathaswami
We found a repeat loop deep inside an external behavior that was firing the answer disalog from the front script The IDE 's find feature did not find it since it was a behavior (i searched ) the the future i guess we need to run grep on the whole sourve tree from trrminal I fixed that but all

Re: Parsing a PDF file

2016-07-08 Thread Colin Holgate
Doesn’t that just let you show PDFs? Would it help to parse the contents? I’m trying another approach, will report back soon. > On Jul 8, 2016, at 10:58 AM, Peter TB Brett wrote: > > On 08/07/2016 15:11, Jim Hurley wrote: >> My County is now publishing the election results to the web as a PDF

Re: Parsing a PDF file

2016-07-08 Thread Paul Dupuis
On 7/8/2016 10:11 AM, Jim Hurley wrote: > My County is now publishing the election results to the web as a PDF file: > > > https://www.mynevadacounty.com/nc/elections/docs/2016%20Elections/June%207%2c%202016%2c%20Presidential%20Primary/Election%20Results/precinctreport.pdf > > Is there a wa

Re: Parsing a PDF file

2016-07-08 Thread Peter TB Brett
On 08/07/2016 15:11, Jim Hurley wrote: My County is now publishing the election results to the web as a PDF file: https://www.mynevadacounty.com/nc/elections/docs/2016%20Elections/June%207%2c%202016%2c%20Presidential%20Primary/Election%20Results/precinctreport.pdf Is there a way to par

Parsing a PDF file

2016-07-08 Thread Jim Hurley
My County is now publishing the election results to the web as a PDF file: https://www.mynevadacounty.com/nc/elections/docs/2016%20Elections/June%207%2c%202016%2c%20Presidential%20Primary/Election%20Results/precinctreport.pdf Is there a way to parse these PDF files? Thanks, Jim _

Re: [HC] USB Devices

2016-07-08 Thread pink
With the n52 if you don't have the software installed, it defaults to the "half keyboard" setup that you see. That's a feature of the device. My guess would be, that the older Nostromo doesn't, and requires the software to program. Once the software is installed and configured, that is what transla

Re: Getting Library Stacks into Memory

2016-07-08 Thread J. Landman Gay
These almost sound like undefined errors with the group name as the object hint. Mobile apps can only have one window at a time, and each "go" replaces the previous window. If you go to an invisible stack you'll see black. In general don't use "go" for that kind of thing, just using the stack

Re: Get fillGradient props

2016-07-08 Thread J. Landman Gay
I think we're pretty evenly split between "c" and "u". I prefer "c" because it is, after all, a custom property. Those who migrated from SuperCard often prefer "u" because over there, I believe, they are called user properties. Richard's guide is pretty good and I follow the other conventions