Re: Need help with a project

2018-06-18 Thread Peter Bogdanoff via use-livecode
Thanks, Lagi, for your suggestions.

In my case the program will be used in higher ed classrooms by students sitting 
side by side, often sharing the software keys. Also we are breaking into the 
Chinese education market with potentially tens of thousands, or more customers, 
where we have little control over who they are (we are working with a local 
distributor), and zero direct contact with them. An easy-going protection 
system is not appropriate, nor is something that I have the option of choosing. 

The SoftwareShield system is quite robust with serial key management and 
fingerprinting, and it seems to meet our needs. I just have to find someone on 
the LC list or elsewhere who can help me implement it. LC, the company, asks 
for $1000/day, which we might pay if they could do the job in a timely manner, 
but they are too busy now.

I believe the job is not very difficult, just JavaScript, and possibly some LC 
Builder, both of which are beyond me right now.

Peter Bogdanoff
ArtsInteractive


> On Jun 18, 2018, at 3:31 AM, Lagi Pittas via use-livecode 
>  wrote:
> 
> HI Peter,
> 
> The fact that it is a subscription system is the best protection you have.
> Use the simplest protection that will tell you if the system has been
> "pirated" - simple encryption of the company/institution address/details
> for instance. Don't allow them to change the address/telephone number etc
> in the program - so they have to "patch" the exe. When you notice this has
> happened (5 lines of code) set a timer.
> In 8 Months time you have a screen that comes up at boot time that says
> "Problem with your program please call  before any lasting damage is done"
> at -xxx-". If they don't call in say a month the program stops
> working with your number on the front screen and How they can get a legal
> copy".
> 
> Sage Payroll used to not protect their payroll, so come April when rates
> changed, Sage always Got (gets?) a spike in sales - No questions asked as
> long as the user can transfer his data from the "pirated" version.   The
> people who will buy your program will buy it - the people who will copy
> your program will copy it anyway - you didn't lose a sale you got free
> advertising. How do you think microsoft replaced Lotus 123 - they removed
> protection from Office then gave a £90 upgrade from any version (even non
> legal version) after a couple of years.
> 
> Making your program indispensable (without too many barriers) to your
> paying customers is the best way of building a loyal customer base.
> 
> Save yourself a lot of time hassle and money and make the subscription/name
> the protection
> 
> My 2 pence worth
> 
> Lagi
> 
> p.s. If it can be read it can be broken
> 
> A 5 minute google search and a bit of memory 
> You'll be glad to hear no decompilers for Livecode - we are not on the
> radar.
> 
> // If you lose your sourcecode in the future .
> http://www.javadecompilers.com/
> https://forum.xda-developers.com/android/software-hacking/tool-apk-easy-tool-v1-02-windows-gui-t960
> https://www.yeahhub.com/best-19-tools-used-reverse-engineering-2018-update/
> http://www.refox.net/
> http://www.iphonehacks.com/2018/05/ios-11-3-1-jailbreak-updates.html
> http://www.decompiler.net/
> https://www.vb-decompiler.org/
> https://www.thoughtco.com/decompiling-delphi-1-3-1057974
> http://www.dvdsmith.com/remove-sony-arccos-protection.html
> https://www.roojs.com/blog.php/View/117/Recovering_encoded_php_files.html
> 
> //Even hardware dongles are not immune
> https://www.brstudio.com/dongles/deskey-dk2-dk3-dongle-emulator/
> http://www.dongleservice.com/dongle-bypass.phtml
> 
> 
> 
> 
> On Fri, 15 Jun 2018 at 02:08, Peter Bogdanoff via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>>> you want to include some of the advanced capabilities like restricted
>> trial,
>> Yes, I do want to use advanced capabilities.
>> 
>>> Does it just wrap the executable or does it encapsulate the entire
>> directory?
>> It can do either.
>> 
>> I am using pw protection on all stacks, which is is working well. More
>> important is the license activation and management because it is a
>> subscription product—there is a single version which has a free, limited
>> status or a full, paid status—the program needs the capability to shift to
>> either. Also I need to control the installations of the program. It will be
>> used in educational institutions, by individuals, sometimes in iffy
>> locations (China) where I need to minimize piracy.
>> 
>> Peter
>> 
>> 
>>> On Jun 14, 2018, at 4:23 PM, Brian Milby via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Are you saying that you have the standard mode working but you want to
>> include some of the advanced capabilities like restricted trial, etc?
>>> 
>>> Does it just wrap the executable or does it encapsulate the entire
>> directory? I’m assuming you have decided that the password protection of
>> the stack isn’t sufficient.
>>> 
>>> Brian
>>> 

Re: Need help with a project

2018-06-18 Thread Lagi Pittas via use-livecode
Hi

Just to be clear - Time trials and demos are a good use of this program -
It was the "copy protection" I was referring to

Lagi

On Fri, 15 Jun 2018 at 02:24, Peter Bogdanoff via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Also, I want to add this: Yummy Interactive who is behind SoftwareShield
> has responded to my tech support questions about what to do, but I’m
> somewhat flummoxed with their responses. They assume I have more technical
> chops. This is the kind of thing:
>
> > 1. Is it possible to create a project that allows a user to have
> “unlimited” use for two weeks, then reverts to a “limited” version? Does
> this require use of a generated serial number, and an entity on your server?
> >
> >
> > The requirement can be implemented as following:
> >
> > (1) create a project, the default/first entity's license model is
> "Expire By Period" (
> http://doc.softwareshield.com/UG/license_action.html#expire-by-period <
> http://doc.softwareshield.com/UG/license_action.html#expire-by-period>)
> license model, set the periodInSeconds to 1209600 (two weeks).
> >
> > (2) in your app code, checks if the entity status is expired, run app in
> "unlimited" mode if not, switch to "limited" mode if expired.
> >
> >
> >
> > if (entity->isLocked()){
> >   //this entity is locked or trial already expired.
> >   //we may pop up info to prompt for purchase.
> >   run_in_limited_mode();
> > } else {
> >   //this entity still in two-weeks trial period
> >   run_in_unlimited_mode();
> > }
> >
> >   please refer to (http://doc.softwareshield.com/PG/index.html#pg_index
> ) for SDK
> programming.
> >
> > (3) use the license model's action ACT_SET_EXPIRE_PERIOD /
> ACT_ADD_EXPIRE_PERIOD (
> http://doc.softwareshield.com/UG/license_action.html#act_set_expire_period
> <
> http://doc.softwareshield.com/UG/license_action.html#act_set_expire_period>)
> to manipulate the customer's trial period. Basically it means you create
> serial numbers (with ACT_XXX_EXPIRE_PERIOD) on our web portal, send a
> serial number to the customer after payment, the user input the serial
> number on the license UI page so the app can run in "unlimited" mode again.
> >
>
>
>
>
>
> ___
> 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: Need help with a project

2018-06-18 Thread Lagi Pittas via use-livecode
HI Peter,

The fact that it is a subscription system is the best protection you have.
Use the simplest protection that will tell you if the system has been
"pirated" - simple encryption of the company/institution address/details
for instance. Don't allow them to change the address/telephone number etc
in the program - so they have to "patch" the exe. When you notice this has
happened (5 lines of code) set a timer.
In 8 Months time you have a screen that comes up at boot time that says
"Problem with your program please call  before any lasting damage is done"
at -xxx-". If they don't call in say a month the program stops
working with your number on the front screen and How they can get a legal
copy".

Sage Payroll used to not protect their payroll, so come April when rates
changed, Sage always Got (gets?) a spike in sales - No questions asked as
long as the user can transfer his data from the "pirated" version.   The
people who will buy your program will buy it - the people who will copy
your program will copy it anyway - you didn't lose a sale you got free
advertising. How do you think microsoft replaced Lotus 123 - they removed
protection from Office then gave a £90 upgrade from any version (even non
legal version) after a couple of years.

Making your program indispensable (without too many barriers) to your
paying customers is the best way of building a loyal customer base.

Save yourself a lot of time hassle and money and make the subscription/name
the protection

My 2 pence worth

Lagi

p.s. If it can be read it can be broken

A 5 minute google search and a bit of memory 
You'll be glad to hear no decompilers for Livecode - we are not on the
radar.

// If you lose your sourcecode in the future .
http://www.javadecompilers.com/
https://forum.xda-developers.com/android/software-hacking/tool-apk-easy-tool-v1-02-windows-gui-t960
https://www.yeahhub.com/best-19-tools-used-reverse-engineering-2018-update/
http://www.refox.net/
http://www.iphonehacks.com/2018/05/ios-11-3-1-jailbreak-updates.html
http://www.decompiler.net/
https://www.vb-decompiler.org/
https://www.thoughtco.com/decompiling-delphi-1-3-1057974
http://www.dvdsmith.com/remove-sony-arccos-protection.html
https://www.roojs.com/blog.php/View/117/Recovering_encoded_php_files.html

//Even hardware dongles are not immune
https://www.brstudio.com/dongles/deskey-dk2-dk3-dongle-emulator/
http://www.dongleservice.com/dongle-bypass.phtml




On Fri, 15 Jun 2018 at 02:08, Peter Bogdanoff via use-livecode <
use-livecode@lists.runrev.com> wrote:

> > you want to include some of the advanced capabilities like restricted
> trial,
> Yes, I do want to use advanced capabilities.
>
> > Does it just wrap the executable or does it encapsulate the entire
> directory?
> It can do either.
>
> I am using pw protection on all stacks, which is is working well. More
> important is the license activation and management because it is a
> subscription product—there is a single version which has a free, limited
> status or a full, paid status—the program needs the capability to shift to
> either. Also I need to control the installations of the program. It will be
> used in educational institutions, by individuals, sometimes in iffy
> locations (China) where I need to minimize piracy.
>
> Peter
>
>
> > On Jun 14, 2018, at 4:23 PM, Brian Milby via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Are you saying that you have the standard mode working but you want to
> include some of the advanced capabilities like restricted trial, etc?
> >
> > Does it just wrap the executable or does it encapsulate the entire
> directory? I’m assuming you have decided that the password protection of
> the stack isn’t sufficient.
> >
> > Brian
> > On Jun 14, 2018, 4:28 PM -0500, Peter Bogdanoff via use-livecode <
> use-livecode@lists.runrev.com>, wrote:
> >> Hi,
> >>
> >> I’m working on a project that we are getting ready to publish as a
> desktop application for Mac and Windows.
> >>
> >> It is content heavy and I'm wanting to protect it, and am using a
> product called SoftwareShield/GameShield:
> >>
> >> http://softwareshield.com 
> >> http://gameshield.com 
> >>
> >> It puts a wrapping around the executable and offers license management
> that works well in its basic form. There are more advanced features that I
> want to take advantage of that seem to go beyond the capabilities of
> LiveCode script and my own personal abilities. It seems that LiveCode can
> work with SoftwareShield, but I don’t know where to begin, nor can I
> program anything besides LiveCode script.
> >>
> >> This is an example of where I get lost about figuring out how to
> progress:
> >>
> >> "Because the kernel of SoftwareShield is developed in C++ and the
> gsCore exposes flat API in standard way, any language (such as Object-C,
> Java, NodeJS, Perl, Python, etc.) that can make api call to Windows DLL or
> MacOS dylib can integrated 

Re: Need help with a project

2018-06-15 Thread Bob Sneidar via use-livecode


> On Jun 14, 2018, at 18:23 , Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Also, I want to add this: Yummy Interactive who is behind SoftwareShield has 
> responded to my tech support questions about what to do, but I’m somewhat 
> flummoxed with their responses. They assume I have more technical chops. 

That happens a lot when technical people respond to questions. They presume a 
level of proficiency similar to their own. Many times people thing I am 
blathering on when explaining how something works and why it's not presently, 
but in actually I am making no assumptions. :-)

Bob S

___
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: Need help with a project

2018-06-14 Thread Peter Bogdanoff via use-livecode
Also, I want to add this: Yummy Interactive who is behind SoftwareShield has 
responded to my tech support questions about what to do, but I’m somewhat 
flummoxed with their responses. They assume I have more technical chops. This 
is the kind of thing:

> 1. Is it possible to create a project that allows a user to have “unlimited” 
> use for two weeks, then reverts to a “limited” version? Does this require use 
> of a generated serial number, and an entity on your server?
> 
> 
> The requirement can be implemented as following:
> 
> (1) create a project, the default/first entity's license model is "Expire By 
> Period" 
> (http://doc.softwareshield.com/UG/license_action.html#expire-by-period 
> ) 
> license model, set the periodInSeconds to 1209600 (two weeks).
> 
> (2) in your app code, checks if the entity status is expired, run app in 
> "unlimited" mode if not, switch to "limited" mode if expired. 
> 
> 
> 
> if (entity->isLocked()){
>   //this entity is locked or trial already expired.
>   //we may pop up info to prompt for purchase.
>   run_in_limited_mode();
> } else {
>   //this entity still in two-weeks trial period
>   run_in_unlimited_mode();
> }
> 
>   please refer to (http://doc.softwareshield.com/PG/index.html#pg_index 
> ) for SDK programming.
> 
> (3) use the license model's action ACT_SET_EXPIRE_PERIOD / 
> ACT_ADD_EXPIRE_PERIOD 
> (http://doc.softwareshield.com/UG/license_action.html#act_set_expire_period 
> ) 
> to manipulate the customer's trial period. Basically it means you create 
> serial numbers (with ACT_XXX_EXPIRE_PERIOD) on our web portal, send a serial 
> number to the customer after payment, the user input the serial number on the 
> license UI page so the app can run in "unlimited" mode again. 
> 





___
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: Need help with a project

2018-06-14 Thread Peter Bogdanoff via use-livecode
> you want to include some of the advanced capabilities like restricted trial, 
Yes, I do want to use advanced capabilities.

> Does it just wrap the executable or does it encapsulate the entire directory? 
It can do either.

I am using pw protection on all stacks, which is is working well. More 
important is the license activation and management because it is a subscription 
product—there is a single version which has a free, limited status or a full, 
paid status—the program needs the capability to shift to either. Also I need to 
control the installations of the program. It will be used in educational 
institutions, by individuals, sometimes in iffy locations (China) where I need 
to minimize piracy. 

Peter


> On Jun 14, 2018, at 4:23 PM, Brian Milby via use-livecode 
>  wrote:
> 
> Are you saying that you have the standard mode working but you want to 
> include some of the advanced capabilities like restricted trial, etc?
> 
> Does it just wrap the executable or does it encapsulate the entire directory? 
> I’m assuming you have decided that the password protection of the stack isn’t 
> sufficient.
> 
> Brian
> On Jun 14, 2018, 4:28 PM -0500, Peter Bogdanoff via use-livecode 
> , wrote:
>> Hi,
>> 
>> I’m working on a project that we are getting ready to publish as a desktop 
>> application for Mac and Windows.
>> 
>> It is content heavy and I'm wanting to protect it, and am using a product 
>> called SoftwareShield/GameShield:
>> 
>> http://softwareshield.com 
>> http://gameshield.com 
>> 
>> It puts a wrapping around the executable and offers license management that 
>> works well in its basic form. There are more advanced features that I want 
>> to take advantage of that seem to go beyond the capabilities of LiveCode 
>> script and my own personal abilities. It seems that LiveCode can work with 
>> SoftwareShield, but I don’t know where to begin, nor can I program anything 
>> besides LiveCode script.
>> 
>> This is an example of where I get lost about figuring out how to progress:
>> 
>> "Because the kernel of SoftwareShield is developed in C++ and the gsCore 
>> exposes flat API in standard way, any language (such as Object-C, Java, 
>> NodeJS, Perl, Python, etc.) that can make api call to Windows DLL or MacOS 
>> dylib can integrated with SoftwareShield SDK.”
>> 
>> http://doc.softwareshield.com/PG/index.html#pg_index
>> 
>> 
>> Here’s docs they provide:
>> 
>> http://doc.softwareshield.com/index.html
>> http://doc.softwareshield.com/PG/ui_gs5.html#sdk_js
>> 
>> 
>> So, I’m looking for someone who can:
>> 
>> 1. Guide me through the process
>> 2. Do Javascript or advanced LC programming as needed
>> 
>> This is help I need immediately.
>> 
>> Thanks!
>> 
>> Peter Bogdanoff
>> ArtsInteractive
>> ___
>> 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: Need help with a project

2018-06-14 Thread Brian Milby via use-livecode
Are you saying that you have the standard mode working but you want to include 
some of the advanced capabilities like restricted trial, etc?

Does it just wrap the executable or does it encapsulate the entire directory? 
I’m assuming you have decided that the password protection of the stack isn’t 
sufficient.

Brian
On Jun 14, 2018, 4:28 PM -0500, Peter Bogdanoff via use-livecode 
, wrote:
> Hi,
>
> I’m working on a project that we are getting ready to publish as a desktop 
> application for Mac and Windows.
>
> It is content heavy and I'm wanting to protect it, and am using a product 
> called SoftwareShield/GameShield:
>
> http://softwareshield.com 
> http://gameshield.com 
>
> It puts a wrapping around the executable and offers license management that 
> works well in its basic form. There are more advanced features that I want to 
> take advantage of that seem to go beyond the capabilities of LiveCode script 
> and my own personal abilities. It seems that LiveCode can work with 
> SoftwareShield, but I don’t know where to begin, nor can I program anything 
> besides LiveCode script.
>
> This is an example of where I get lost about figuring out how to progress:
>
> "Because the kernel of SoftwareShield is developed in C++ and the gsCore 
> exposes flat API in standard way, any language (such as Object-C, Java, 
> NodeJS, Perl, Python, etc.) that can make api call to Windows DLL or MacOS 
> dylib can integrated with SoftwareShield SDK.”
>
> http://doc.softwareshield.com/PG/index.html#pg_index
>
>
> Here’s docs they provide:
>
> http://doc.softwareshield.com/index.html
> http://doc.softwareshield.com/PG/ui_gs5.html#sdk_js
>
>
> So, I’m looking for someone who can:
>
> 1. Guide me through the process
> 2. Do Javascript or advanced LC programming as needed
>
> This is help I need immediately.
>
> Thanks!
>
> Peter Bogdanoff
> ArtsInteractive
> ___
> 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

Need help with a project

2018-06-14 Thread Peter Bogdanoff via use-livecode
Hi,

I’m working on a project that we are getting ready to publish as a desktop 
application for Mac and Windows.

It is content heavy and I'm wanting to protect it, and am using a product 
called SoftwareShield/GameShield:

http://softwareshield.com 
http://gameshield.com 

It puts a wrapping around the executable and offers license management that 
works well in its basic form. There are more advanced features that I want to 
take advantage of that seem to go beyond the capabilities of LiveCode script 
and my own personal abilities. It seems that LiveCode can work with 
SoftwareShield, but I don’t know where to begin, nor can I program anything 
besides LiveCode script.

This is an example of where I get lost about figuring out how to progress:

"Because the kernel of SoftwareShield is developed in C++ and the gsCore 
exposes flat API in standard way, any language (such as Object-C, Java, NodeJS, 
Perl, Python, etc.) that can make api call to Windows DLL or MacOS dylib can 
integrated with SoftwareShield SDK.”

http://doc.softwareshield.com/PG/index.html#pg_index


Here’s docs they provide:

http://doc.softwareshield.com/index.html
http://doc.softwareshield.com/PG/ui_gs5.html#sdk_js


So, I’m looking for someone who can:

1. Guide me through the process
2. Do Javascript or advanced LC programming as needed

This is help I need immediately.

Thanks!

Peter Bogdanoff
ArtsInteractive
___
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: Need help with a Datagrid error...

2018-06-12 Thread Paul Dupuis via use-livecode
I should have noted the LC version. This is a standalone built under
LiveCode 6.7.11

If I could get one of the customers to respond with their document(s)
and settings that caused the error, it would probably be simple to track
down.

My current theory is that rows can display either htmlText or an image
in a particular column depending upon the users data. I am speculating
that an image may not be being resolved correctly. This may just have to
wait until a customer cares enough to help us troubleshoot it by letting
us look at their data.

It was a wild shot that someone else may have recognized this. Thanks
for replying.


On 6/12/2018 12:11 PM, Tom Glod via use-livecode wrote:
> so i work alot with datagrids and i've never seen such an array of errors.
> Can you tell us what version of LC the standalone was built with?
>
> one thing that comes to mind is something i vaguely remember happening a
> few years ago.  I was updating the datagrid while one of the handlers in
> the library was still running (FullInData). an error was causing the
> handler to not complete and when an update was triggered it went haywire.
>
> these are hard to diagnose in standalones especially when its something
> that depends on the error being specific to the content of the column.
>
> this is real ugly i hope you get to the bottom of it.
>
>
>
> On Tue, Jun 12, 2018 at 7:36 AM, Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> I have a rarely occurring Datagrid error that a couple customers have
>> reported. Unfortunately, none of the customers have been able to tell us
>> what they were doing when the error occured or be able to reproduce it.
>> I hope someone on this list may have seen this before and know what is
>> causing it.
>>
>> The error occurs when a window/stack with a datagrid is opened . The
>> datagrid on the window may have already had data from previous openings
>> and closings. An execution error occurs in the standalone before the new
>> data is populated to the datagrid.
>>
>> Anyone seen anything like this?
>>
>> Chunk: error in object expression:  (Line 3919, column 33)
>> Chunk: can't find object:  (Line 3919, column 33)
>> Object: does not have this property:  (Line 3919, column 21)
>> put: error in expression:  (Line 3919, column 1)
>> repeat: error in statement:  (Line 3909, column 1)
>> repeat: error in statement:  (Line 3899, column 1)
>> if-then: error in statement:  (Line 3874, column 1)
>> Handler: error in statement: _table.DrawColumns (Line 3874, column 1)
>> Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of
>> stack "revDataGridLibrary" of stack "HyperRESEARCH.exe"
>> Object ID: button id 1005 of group id 1004 of card id 1002 of stack
>> "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH
>> 4.0.1/HyperRESEARCH.exe"
>> -
>>
>> if-then: error in statement:  (Line 3821, column 1)
>> if-then: error in statement:  (Line 3820, column 1)
>> Handler: error in statement: _table.DrawControlsInRealTime (Line 3820,
>> column 1)
>> Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of
>> stack "revDataGridLibrary" of stack "HyperRESEARCH.exe"
>> Object ID: button id 1005 of group id 1004 of card id 1002 of stack
>> "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH
>> 4.0.1/HyperRESEARCH.exe"
>> -
>>
>> Handler: error in statement: _table.DrawWithProperties (Line 3500, column
>> 1)
>> Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of
>> stack "revDataGridLibrary" of stack "HyperRESEARCH.exe"
>> Object ID: button id 1005 of group id 1004 of card id 1002 of stack
>> "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH
>> 4.0.1/HyperRESEARCH.exe"
>> -
>>
>> switch: error in statement:  (Line 2319, column 1)
>> Handler: error in statement: _DrawListWithProperties (Line 2319, column 1)
>> Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of
>> stack "revDataGridLibrary" of stack "HyperRESEARCH.exe"
>> Object ID: button id 1005 of group id 1004 of card id 1002 of stack
>> "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH
>> 4.0.1/HyperRESEARCH.exe"
>> -
>>
>> if-then: error in statement:  (Line 7540, column 1)
>>
>>
>> ___
>> 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:

Re: Need help with a Datagrid error...

2018-06-12 Thread Tom Glod via use-livecode
so i work alot with datagrids and i've never seen such an array of errors.
Can you tell us what version of LC the standalone was built with?

one thing that comes to mind is something i vaguely remember happening a
few years ago.  I was updating the datagrid while one of the handlers in
the library was still running (FullInData). an error was causing the
handler to not complete and when an update was triggered it went haywire.

these are hard to diagnose in standalones especially when its something
that depends on the error being specific to the content of the column.

this is real ugly i hope you get to the bottom of it.



On Tue, Jun 12, 2018 at 7:36 AM, Paul Dupuis via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I have a rarely occurring Datagrid error that a couple customers have
> reported. Unfortunately, none of the customers have been able to tell us
> what they were doing when the error occured or be able to reproduce it.
> I hope someone on this list may have seen this before and know what is
> causing it.
>
> The error occurs when a window/stack with a datagrid is opened . The
> datagrid on the window may have already had data from previous openings
> and closings. An execution error occurs in the standalone before the new
> data is populated to the datagrid.
>
> Anyone seen anything like this?
>
> Chunk: error in object expression:  (Line 3919, column 33)
> Chunk: can't find object:  (Line 3919, column 33)
> Object: does not have this property:  (Line 3919, column 21)
> put: error in expression:  (Line 3919, column 1)
> repeat: error in statement:  (Line 3909, column 1)
> repeat: error in statement:  (Line 3899, column 1)
> if-then: error in statement:  (Line 3874, column 1)
> Handler: error in statement: _table.DrawColumns (Line 3874, column 1)
> Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of
> stack "revDataGridLibrary" of stack "HyperRESEARCH.exe"
> Object ID: button id 1005 of group id 1004 of card id 1002 of stack
> "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH
> 4.0.1/HyperRESEARCH.exe"
> -
>
> if-then: error in statement:  (Line 3821, column 1)
> if-then: error in statement:  (Line 3820, column 1)
> Handler: error in statement: _table.DrawControlsInRealTime (Line 3820,
> column 1)
> Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of
> stack "revDataGridLibrary" of stack "HyperRESEARCH.exe"
> Object ID: button id 1005 of group id 1004 of card id 1002 of stack
> "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH
> 4.0.1/HyperRESEARCH.exe"
> -
>
> Handler: error in statement: _table.DrawWithProperties (Line 3500, column
> 1)
> Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of
> stack "revDataGridLibrary" of stack "HyperRESEARCH.exe"
> Object ID: button id 1005 of group id 1004 of card id 1002 of stack
> "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH
> 4.0.1/HyperRESEARCH.exe"
> -
>
> switch: error in statement:  (Line 2319, column 1)
> Handler: error in statement: _DrawListWithProperties (Line 2319, column 1)
> Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of
> stack "revDataGridLibrary" of stack "HyperRESEARCH.exe"
> Object ID: button id 1005 of group id 1004 of card id 1002 of stack
> "revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH
> 4.0.1/HyperRESEARCH.exe"
> -
>
> if-then: error in statement:  (Line 7540, column 1)
>
>
> ___
> 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


Need help with a Datagrid error...

2018-06-12 Thread Paul Dupuis via use-livecode
I have a rarely occurring Datagrid error that a couple customers have
reported. Unfortunately, none of the customers have been able to tell us
what they were doing when the error occured or be able to reproduce it.
I hope someone on this list may have seen this before and know what is
causing it.

The error occurs when a window/stack with a datagrid is opened . The
datagrid on the window may have already had data from previous openings
and closings. An execution error occurs in the standalone before the new
data is populated to the datagrid.

Anyone seen anything like this?

Chunk: error in object expression:  (Line 3919, column 33)
Chunk: can't find object:  (Line 3919, column 33)
Object: does not have this property:  (Line 3919, column 21)
put: error in expression:  (Line 3919, column 1)
repeat: error in statement:  (Line 3909, column 1)
repeat: error in statement:  (Line 3899, column 1)
if-then: error in statement:  (Line 3874, column 1)
Handler: error in statement: _table.DrawColumns (Line 3874, column 1)
Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack 
"revDataGridLibrary" of stack "HyperRESEARCH.exe"
Object ID: button id 1005 of group id 1004 of card id 1002 of stack 
"revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 
4.0.1/HyperRESEARCH.exe"
-

if-then: error in statement:  (Line 3821, column 1)
if-then: error in statement:  (Line 3820, column 1)
Handler: error in statement: _table.DrawControlsInRealTime (Line 3820, column 1)
Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack 
"revDataGridLibrary" of stack "HyperRESEARCH.exe"
Object ID: button id 1005 of group id 1004 of card id 1002 of stack 
"revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 
4.0.1/HyperRESEARCH.exe"
-

Handler: error in statement: _table.DrawWithProperties (Line 3500, column 1)
Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack 
"revDataGridLibrary" of stack "HyperRESEARCH.exe"
Object ID: button id 1005 of group id 1004 of card id 1002 of stack 
"revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 
4.0.1/HyperRESEARCH.exe"
-

switch: error in statement:  (Line 2319, column 1)
Handler: error in statement: _DrawListWithProperties (Line 2319, column 1)
Object: button "Data Grid" of group "Behaviors" of card "card id 1002" of stack 
"revDataGridLibrary" of stack "HyperRESEARCH.exe"
Object ID: button id 1005 of group id 1004 of card id 1002 of stack 
"revDataGridLibrary" of stack "C:/Program Files (x86)/HyperRESEARCH 
4.0.1/HyperRESEARCH.exe"
-

if-then: error in statement:  (Line 7540, column 1)


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: OT : need help understanding why my web page isn't behaving right :-)

2017-11-07 Thread Phil Davis via use-livecode

Flush your browser cache and try again?

Phil Davis



On 11/7/17 3:27 PM, Alex Tweedly via use-livecode wrote:


I just discovered a problem with one of my web pages - but can't 
figure out just where it's coming from. Anyone know their way around 
chrome tools and able to help ?


If you load the page

   https://www.kilmelford.com/igniter.lc/basic/Services

the links in the body of the page (to "Netherlorn Churches") don't act 
as links, they aren't clickable.


Same page on Safari works fine.

I think the reason they don't work in Chrome is that it won't load the 
font file because it is loaded as an "http" rather than "https", and 
chrome won't downgrade the security level.


Turning on "Developer tools" in Chrome, I see an error, that it is 
failing to load


css?family=Source+Sans+Pro:300,300italic,600,600italic

I don't (afaict) have any unchanged reference to

http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,600,600italic 



the only reference I have is in the main.css, and has been changed to 
https.


Is there any way to find out exactly where this is being (indirectly) 
loaded from ?


Many thanks,

Alex.

___
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


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: OT : need help understanding why my web page isn't behaving right :-)

2017-11-07 Thread Mark Wieder via use-livecode

On 11/07/2017 03:37 PM, Terry Judd via use-livecode wrote:

Hi Alex – those links work fine for me on Chrome on a Mac.


...although I should also say that the SourceCode Pro fonts are already 
installed on my computers.


If I look in Chrome developer tools under Sources, I see that css?family 
tag under fonts.googleapis.com, and the primary source is listed as 
local. It's also specified as a fallback to load from an https url at 
fonts.gstatic.com.


src:local('Source Sans Pro Light Italic'), etc.

--
 Mark Wieder
 ahsoftw...@gmail.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: OT : need help understanding why my web page isn't behaving right :-)

2017-11-07 Thread Mark Wieder via use-livecode

On 11/07/2017 03:37 PM, Terry Judd via use-livecode wrote:

Hi Alex – those links work fine for me on Chrome on a Mac.


Ditto here Chrome on linux mint. No worries.

--
 Mark Wieder
 ahsoftw...@gmail.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: OT : need help understanding why my web page isn't behaving right :-)

2017-11-07 Thread Terry Judd via use-livecode
Hi Alex – those links work fine for me on Chrome on a Mac.

Terry...

On 8/11/2017 10:27 am, "use-livecode on behalf of Alex Tweedly via 
use-livecode"  wrote:


I just discovered a problem with one of my web pages - but can't figure 
out just where it's coming from. Anyone know their way around chrome 
tools and able to help ?

If you load the page

https://www.kilmelford.com/igniter.lc/basic/Services

the links in the body of the page (to "Netherlorn Churches") don't act 
as links, they aren't clickable.

Same page on Safari works fine.

I think the reason they don't work in Chrome is that it won't load the 
font file because it is loaded as an "http" rather than "https", and 
chrome won't downgrade the security level.

Turning on "Developer tools" in Chrome, I see an error, that it is 
failing to load

css?family=Source+Sans+Pro:300,300italic,600,600italic

I don't (afaict) have any unchanged reference to


http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,600,600italic

the only reference I have is in the main.css, and has been changed to https.

Is there any way to find out exactly where this is being (indirectly) 
loaded from ?

Many thanks,

Alex.

___
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

OT : need help understanding why my web page isn't behaving right :-)

2017-11-07 Thread Alex Tweedly via use-livecode


I just discovered a problem with one of my web pages - but can't figure 
out just where it's coming from. Anyone know their way around chrome 
tools and able to help ?


If you load the page

   https://www.kilmelford.com/igniter.lc/basic/Services

the links in the body of the page (to "Netherlorn Churches") don't act 
as links, they aren't clickable.


Same page on Safari works fine.

I think the reason they don't work in Chrome is that it won't load the 
font file because it is loaded as an "http" rather than "https", and 
chrome won't downgrade the security level.


Turning on "Developer tools" in Chrome, I see an error, that it is 
failing to load


css?family=Source+Sans+Pro:300,300italic,600,600italic

I don't (afaict) have any unchanged reference to

http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,600,600italic

the only reference I have is in the main.css, and has been changed to https.

Is there any way to find out exactly where this is being (indirectly) 
loaded from ?


Many thanks,

Alex.

___
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: Need help with version number definitions with appStores

2017-10-27 Thread J. Landman Gay via use-livecode

On 10/27/17 11:00 AM, Pyyhtiä Christer via use-livecode wrote:

Just about to re-release my app getDealDone, first with GooglePlay;

-  there are two version definitions in the Standalone Application Settings / 
Android;

-   -   which one is the one Android / Google Play requires to be bump 
ed up with every upload, including the direct development system to device 
installations?

-   -   iOS setup only shows one version number

How should one interprete these?


The version number is what the user sees in the Play Store description. 
The build number is what the Play Store and the device use to determine 
whether the app has been updated, and if so, notifies the user's device 
that an update is available. Build numbers must be whole integers.


The build number generally increases by one on each new build. The 
device doesn't track whether the build number has actually increased, 
only that it is different. During installation, Android will always 
appear to install but if the build number is the same as the previously 
installed app it won't really replace the existing app. To ensure that a 
update/replacement is done, always change the build number.


The Android installer ignores the version number, it is for user 
reference only.


--
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

Need help with version number definitions with appStores

2017-10-27 Thread Pyyhtiä Christer via use-livecode
Just about to re-release my app getDealDone, first with GooglePlay;

-  there are two version definitions in the Standalone Application Settings / 
Android;

-   -   which one is the one Android / Google Play requires to be bump 
ed up with every upload, including the direct development system to device 
installations?

-   -   iOS setup only shows one version number

How should one interprete these?

What would be a common acceptable way of doing the version numbering (in both 
cases)? The bloody fact is, with On-rev server and devices, LiveCode may be the 
only available solution I can kick off apps for all these with a single package 
of source code.

Can I find somewhere a good document helping in these best practices, for all 
mobiles, Windows, Mac OS/X and Linux?

Look forward to good advices

Christer Pyyhtiä
chris...@mindcrea.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: I need help with building standalones ! :-)

2017-06-14 Thread Alex Tweedly via use-livecode

Thanks Panos.

(Now I need to review how I do my search for pre-existing bugs  - 
clearly not well enough :-)


-- Alex.


On 14/06/2017 14:06, panagiotis merakos via use-livecode wrote:

Hi Alex, this is bug in LiveCode 9.0 DP-6, and it will be fixed in LiveCode
9.0 DP-7:

http://quality.livecode.com/show_bug.cgi?id=19429

Best,
Panos
--

On Wed, Jun 14, 2017 at 1:59 PM, Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:


I went back to an earlier version (8.1.2 community) and everything works
as expected.

Bug 19865 submitted.

-- Alex.



On 13/06/2017 23:57, Alex Tweedly via use-livecode wrote:


Normally I don't build standalones - I simply either run the stack in the
IDE, or via stackrunner, so I'm in 'unknown territory' here :-)

The app works fine in the IDE, but when I build a standalone, when I do
(full code below)

put revOpenDatabase(:sqlite",tFileName) into temp

I get the errorrevdberr,invalid database type

I did manual inclusions, and have selected Database and the SQLite driver.

Is there something else non-obvious I need to include ?

Or any other suggestion ?

Many thanks

Alex.


Actual code is  (a modified version of Andre's DB Lib), and yes, you
can see I've been flailing around trying to find out what's going on :-)


   switch gConfig["DB"]["Driver"]

 case "SQLite"

localtFileName

setthedefaultfoldertogDefaultFolder

   Log "defaultfolder is"&& thedefaultfolder

   Log "local files are"&& thedetailedfiles

putgConfig["DB"]["Filename"] intotFileName

   Log "start to open SQLite"&& tFileName

putrevOpenDatabase("sqlite", tFileName) intott

   Log "SQLite open gets "&& tt

   if tt isanumberthen

getdbSetDefaultConnectionID(tt)

   Log "database started using"&& gConfig["DB"]["Driver"] && tt

   else

Log "can't start DB"&& gConfig["DB"]["FileName"], 1

   end if

break



___
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: I need help with building standalones ! :-)

2017-06-14 Thread panagiotis merakos via use-livecode
Hi Alex, this is bug in LiveCode 9.0 DP-6, and it will be fixed in LiveCode
9.0 DP-7:

http://quality.livecode.com/show_bug.cgi?id=19429

Best,
Panos
--

On Wed, Jun 14, 2017 at 1:59 PM, Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I went back to an earlier version (8.1.2 community) and everything works
> as expected.
>
> Bug 19865 submitted.
>
> -- Alex.
>
>
>
> On 13/06/2017 23:57, Alex Tweedly via use-livecode wrote:
>
>>
>> Normally I don't build standalones - I simply either run the stack in the
>> IDE, or via stackrunner, so I'm in 'unknown territory' here :-)
>>
>> The app works fine in the IDE, but when I build a standalone, when I do
>> (full code below)
>>
>>put revOpenDatabase(:sqlite",tFileName) into temp
>>
>> I get the errorrevdberr,invalid database type
>>
>> I did manual inclusions, and have selected Database and the SQLite driver.
>>
>> Is there something else non-obvious I need to include ?
>>
>> Or any other suggestion ?
>>
>> Many thanks
>>
>> Alex.
>>
>>
>> Actual code is  (a modified version of Andre's DB Lib), and yes, you
>> can see I've been flailing around trying to find out what's going on :-)
>>
>>
>>   switch gConfig["DB"]["Driver"]
>>
>> case "SQLite"
>>
>> localtFileName
>>
>> setthedefaultfoldertogDefaultFolder
>>
>>   Log "defaultfolder is"&& thedefaultfolder
>>
>>   Log "local files are"&& thedetailedfiles
>>
>> putgConfig["DB"]["Filename"] intotFileName
>>
>>   Log "start to open SQLite"&& tFileName
>>
>> putrevOpenDatabase("sqlite", tFileName) intott
>>
>>   Log "SQLite open gets "&& tt
>>
>>   if tt isanumberthen
>>
>> getdbSetDefaultConnectionID(tt)
>>
>>   Log "database started using"&& gConfig["DB"]["Driver"] && tt
>>
>>   else
>>
>> Log "can't start DB"&& gConfig["DB"]["FileName"], 1
>>
>>   end if
>>
>> break
>>
>>
>>
>> ___
>> 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: I need help with building standalones ! :-)

2017-06-14 Thread Alex Tweedly via use-livecode
I went back to an earlier version (8.1.2 community) and everything works 
as expected.


Bug 19865 submitted.

-- Alex.


On 13/06/2017 23:57, Alex Tweedly via use-livecode wrote:


Normally I don't build standalones - I simply either run the stack in 
the IDE, or via stackrunner, so I'm in 'unknown territory' here :-)


The app works fine in the IDE, but when I build a standalone, when I 
do  (full code below)


   put revOpenDatabase(:sqlite",tFileName) into temp

I get the errorrevdberr,invalid database type

I did manual inclusions, and have selected Database and the SQLite 
driver.


Is there something else non-obvious I need to include ?

Or any other suggestion ?

Many thanks

Alex.


Actual code is  (a modified version of Andre's DB Lib), and yes, 
you can see I've been flailing around trying to find out what's going 
on :-)



  switch gConfig["DB"]["Driver"]

case "SQLite"

localtFileName

setthedefaultfoldertogDefaultFolder

  Log "defaultfolder is"&& thedefaultfolder

  Log "local files are"&& thedetailedfiles

putgConfig["DB"]["Filename"] intotFileName

  Log "start to open SQLite"&& tFileName

putrevOpenDatabase("sqlite", tFileName) intott

  Log "SQLite open gets "&& tt

  if tt isanumberthen

getdbSetDefaultConnectionID(tt)

  Log "database started using"&& gConfig["DB"]["Driver"] && tt

  else

Log "can't start DB"&& gConfig["DB"]["FileName"], 1

  end if

break



___
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


I need help with building standalones ! :-)

2017-06-13 Thread Alex Tweedly via use-livecode


Normally I don't build standalones - I simply either run the stack in 
the IDE, or via stackrunner, so I'm in 'unknown territory' here :-)


The app works fine in the IDE, but when I build a standalone, when I do  
(full code below)


   put revOpenDatabase(:sqlite",tFileName) into temp

I get the errorrevdberr,invalid database type

I did manual inclusions, and have selected Database and the SQLite driver.

Is there something else non-obvious I need to include ?

Or any other suggestion ?

Many thanks

Alex.


Actual code is  (a modified version of Andre's DB Lib), and yes, you 
can see I've been flailing around trying to find out what's going on :-)



  switch gConfig["DB"]["Driver"]

case "SQLite"

localtFileName

setthedefaultfoldertogDefaultFolder

  Log "defaultfolder is"&& thedefaultfolder

  Log "local files are"&& thedetailedfiles

putgConfig["DB"]["Filename"] intotFileName

  Log "start to open SQLite"&& tFileName

putrevOpenDatabase("sqlite", tFileName) intott

  Log "SQLite open gets "&& tt

  if tt isanumberthen

getdbSetDefaultConnectionID(tt)

  Log "database started using"&& gConfig["DB"]["Driver"] && tt

  else

Log "can't start DB"&& gConfig["DB"]["FileName"], 1

  end if

break



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


AW: I need help with UTF-8

2017-01-13 Thread Tiemo Hollmann TB via use-livecode
I think I found the solution by adding a macToISO() conversion to the string
passing to the PHP.
I have no idea, why this wasn't necessary in LC 6, probably I will never
fully understand the LC UTF mechanism
Thanks for caring
Tiemo


-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Tiemo Hollmann TB via use-livecode
Gesendet: Freitag, 13. Januar 2017 09:58
An: 'How to use LiveCode' <use-livecode@lists.runrev.com>
Cc: Tiemo Hollmann TB <toolb...@kestner.de>
Betreff: AW: I need help with UTF-8

Hi Kay C,

I have checked the db data directly with phpMyAdmin and additionally with a
LC Client connected to my db.
Both show, that the Umlaute are correct, when having written it directly to
the db from a LC field input, but are corrupted, when having written it
first to a local file and then read it from the file and written it to the
MySQL.

The PHP and MySQL part was made by a third party and my knowledge is very
limited to this part. I can see that the db field is coded in
"utf8_general_ci" but in the PHP I don't find any differentiation between
Windows and Mac.

The db Client is my LC program. I am not aware of having set the LC program
to any charset (though it is pretty old and complex). How could I set the
client to a special charset? What syntax could I search for?

Thank you

Tiemo


-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Kay C Lan via use-livecode
Gesendet: Freitag, 13. Januar 2017 04:56
An: How to use LiveCode <use-livecode@lists.runrev.com>
Cc: Kay C Lan <lan.kc.macm...@gmail.com>
Betreff: Re: I need help with UTF-8

We may need to see your actual scripts to determine where the problem may
be. Also, how do you know that your MySQL db data is corrupt?
What program are you using to look at it? How was the db set up in the first
place; what character set and collation? Is it possible that your Windows db
Client is set to UTF8 whilst your Mac db Client is set to MacRoman?

___
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


AW: I need help with UTF-8

2017-01-13 Thread Tiemo Hollmann TB via use-livecode
Hi Kay C,

I have checked the db data directly with phpMyAdmin and additionally with a
LC Client connected to my db.
Both show, that the Umlaute are correct, when having written it directly to
the db from a LC field input, but are corrupted, when having written it
first to a local file and then read it from the file and written it to the
MySQL.

The PHP and MySQL part was made by a third party and my knowledge is very
limited to this part. I can see that the db field is coded in
"utf8_general_ci" but in the PHP I don't find any differentiation between
Windows and Mac.

The db Client is my LC program. I am not aware of having set the LC program
to any charset (though it is pretty old and complex). How could I set the
client to a special charset? What syntax could I search for?

Thank you

Tiemo


-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Kay C Lan via use-livecode
Gesendet: Freitag, 13. Januar 2017 04:56
An: How to use LiveCode <use-livecode@lists.runrev.com>
Cc: Kay C Lan <lan.kc.macm...@gmail.com>
Betreff: Re: I need help with UTF-8

We may need to see your actual scripts to determine where the problem may
be. Also, how do you know that your MySQL db data is corrupt?
What program are you using to look at it? How was the db set up in the first
place; what character set and collation? Is it possible that your Windows db
Client is set to UTF8 whilst your Mac db Client is set to MacRoman?

___
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: I need help with UTF-8

2017-01-12 Thread Kay C Lan via use-livecode
We may need to see your actual scripts to determine where the problem
may  be. Also, how do you know that your MySQL db data is corrupt?
What program are you using to look at it? How was the db set up in the
first place; what character set and collation? Is it possible that
your Windows db Client is set to UTF8 whilst your Mac db Client is set
to MacRoman?

___
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


I need help with UTF-8

2017-01-12 Thread Tiemo Hollmann TB via use-livecode
Hello,

 

I am migrating a LC 6 program to LC 8 and shortly before release, after I
thought I have made all hurdles I am again lost with Mac - LC 8 - PHP -
MySQL -UTF-8 and German Umlaute (the MySQL name field is "utf8_general_ci"
coded):

Scenario 1 (without local file):

-  Entering a name with Umlaute in LC: ok

-  Checking the name in LC: ok

-  Passing the name to PHP and writing it to a MySQL db: ok

This works fine, without any changes in LC 6 and LC 8

 

Scenario 2 (with local file, without textencode):

-  Entering a name with Umlaute in LC: ok

-  Writing it to a local file

-  Reading it from a local file

-  Checking the name in LC: ok

-  Passing the name to PHP and writing it to a MySQL db: corrupted

This works fine in LC 6 on Win and Mac. In LC 8 on Windows it is also ok,
but running the program on MacOS 10.12, the Umlaute enter the MySQL database
corrupted.

 

Scenario 3 (textEncode before passing to PHP):

-  Entering a name with Umlaute in LC

-  Writing it to a local file

-  Reading it from a local file

-  textEncode() the content for the file: coruppted

-  Passing the name to PHP and writing it to a MySQL db: coruppted

 

Scenario 4 (textEncode/Decode for local file and PHP):

-  Entering a name with Umlaute in LC

-  textEncode() the content for the file: coruppted

-  Writing it to a local file

-  Reading it from a local file

-  textDecode() the content from the file: corrupted

-  Alternativily additional: textEncode() the content from the file:
corrupted

-  Passing the name to PHP and writing it to a MySQL db: coruppted

 

It seems that I still havn't understood UTF-8 handling in LC

Where is my fault? And why is it working on Windows and not on Mac?

Thanks for any help!

Tiemo

 

 

 

 

 

 

 

 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Need Help With String Pattern Matching

2016-06-14 Thread Mike Bonner
If you don't want to write a regex loop, you can also use regex with filter.
I haven't done speed comparisons though.

On Tue, Jun 14, 2016 at 3:54 PM, Quentin Long  wrote:

> sez Gregory Lypny:
> > Thank you for the tips on string pattern matching. I?m
> > used to Mathematica?s string pattern syntax, which is
> > probably built on regex, but I can see the similarities in
> > your nice examples, particularly the using of
> > alternatives [Joe|Anges]. While Mathematica?s string
> > functions are insanely extensive and their implementation
> > far more powerful that those in LiveCode, they can
> > become arbitrarily slow if used repeatedly in loops, and
> > unfortunately, my procedure requires repeating the
> > functions over tens of thousands of files. That is why I
> > want to build an alternative procedure in LiveCode.
> Hold it. You're saying you don't want to use regex in *LiveCode* because a
> more-complex feature is too slow in *Mathematica*? I'm not sure how to
> connect those dots, myself. Why not give regex in LiveCode a shot anyway?
>
> "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length"
>
> Read the webcomic at [ http://www.atarmslength.net ]!
>
> If you like "At Arm's Length", support it at [
> http://www.patreon.com/DarkwingDude ].
>
> ___
> 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: Need Help With String Pattern Matching

2016-06-14 Thread Quentin Long
sez Gregory Lypny:
> Thank you for the tips on string pattern matching. I?m
> used to Mathematica?s string pattern syntax, which is
> probably built on regex, but I can see the similarities in
> your nice examples, particularly the using of
> alternatives [Joe|Anges]. While Mathematica?s string
> functions are insanely extensive and their implementation
> far more powerful that those in LiveCode, they can
> become arbitrarily slow if used repeatedly in loops, and
> unfortunately, my procedure requires repeating the
> functions over tens of thousands of files. That is why I
> want to build an alternative procedure in LiveCode.
Hold it. You're saying you don't want to use regex in *LiveCode* because a 
more-complex feature is too slow in *Mathematica*? I'm not sure how to connect 
those dots, myself. Why not give regex in LiveCode a shot anyway?
   
"Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length"

Read the webcomic at [ http://www.atarmslength.net ]!

If you like "At Arm's Length", support it at [ 
http://www.patreon.com/DarkwingDude ].

___
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: Need Help With String Pattern Matching

2016-06-13 Thread Gregory Lypny
Hello Quentin,

Thank you for the tips on string pattern matching. I’m used to Mathematica’s 
string pattern syntax, which is probably built on regex, but I can see the 
similarities in your nice examples, particularly the using of alternatives 
[Joe|Anges]. While Mathematica’s string functions are insanely extensive and 
their implementation far more powerful that those in LiveCode, they can become 
arbitrarily slow if used repeatedly in loops, and unfortunately, my procedure 
requires repeating the functions over tens of thousands of files. That is why I 
want to build an alternative procedure in LiveCode.

Thanks again,

Gregory
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Need Help With String Pattern Matching

2016-06-12 Thread Quentin Long
Message: 14
Date: Sat, 11 Jun 2016 15:48:00 -0400
From: Gregory Lypny <gregory.ly...@videotron.ca>
To: LiveCode Discussion List <use-livecode@lists.runrev.com>
Subject: Need Help With String Pattern Matching
Message-ID: <19a0e5fc-e4ce-42e8-9dd1-1b4d9040b...@videotron.ca>
Content-Type: text/plain; charset=utf-8

Hello everyone,

> I used to do some basic text analysis of files where the lines containing 
> strings of interest were consistent and therefore easy to spot. I am now 
> working on files where the chunk of text that contains the data I want is 
> more ambiguous.…

>The chunk starts with the word *owner* or the phrase *beneficial owner*.
>
>The chunk ends with *all directors* or *less than one percent*.
>
>The chunk contains all of the following:
>- At least four or five big numbers, e.g., 234,879
>- At least two percentages, e.g., 3.4%, or percentage signs
MatchChunk uses regular expressions ("regex" for short). I don't claim to be a 
master of regex, but hopefully the following will be of some help to you.

First off, "owner" or "beneficial owner". That would be like so:

[owner|beneficial owner]

Since that's the start of the chunks you're interested in, you'll put that at 
the beginning of your regex filter. Next is "all directors" or "less than one 
percent". That's going to be similar:

[all directors|less than one percent]

And *that* bit goes at the *end* of your regex filter. In between the start-bit 
and the end-bit, you have "four or five big numbers", and "percentages" or 
"percentage signs". "Big number" isn't really a well-defined concept, but 
here's one way to go for "big numbers": 

[0-9][0-9],[0-9][0-9][0-9]

In regex, that bit will match any string that consists of *at least* two 
digits, a comma, and three more digits. It'll match XX,XXX (where "X" is any 
digit at all); it'll match XXX,XXX (because if you can match *two* digits in a 
row, you can certainly match *three* digits in a row); it'll match XX, (if 
you can match 3 in a row, you can match 4 in a row); and so on. Note that this 
bit *will not* match X—that's a string of five digits in a row *without* 
any commas. As for percentages, this will work for matching a percent sign:

&

And this will work for matching a single digit followed by a percent sign:

[0-9]%

I'm going to assume that you don't know exactly where the "big number"s or 
"percentage"s will be within the chunks you're interested in, or how many 
characters will occur in between the bits of interest. If you want your regex 
filter to ignore what occurs between the bits of interest, this will do the 
trick:

.*

The period will match any character (except a newline character), and the 
asterisk is regex for "at least 0 of that thing just previous". So if you want 
to match Big Number followed by Percentage, this should do the trick:

[0-9][0-9],[0-9][0-9][0-9].*[0-9]%

If you at least know what order your Big Numbers and Percentages going to be 
found in, you can build a regex filter for that sequence by fitting the bits 
together like Lego bricks, with the period-asterisk "spacer" in between the 
important bits.
   
"Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length"

Read the webcomic at [ http://www.atarmslength.net ]!

If you like "At Arm's Length", support it at [ 
http://www.patreon.com/DarkwingDude ].

___
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

Need Help With String Pattern Matching

2016-06-11 Thread Gregory Lypny
Hello everyone,

I’ve just come back to LiveCode and I'm pretty little rusty. I used to do some 
basic text analysis of files where the lines containing strings of interest 
were consistent and therefore easy to spot. I am now working on files where the 
chunk of text that contains the data I want is more ambiguous. I figure I 
should be using MatchChunk and was wondering if anyone might give me some tips 
on how to do the following. The chunk that I want to extract will have a 
certain word or phrase near its start and a certain word or phrase near its 
end. There may be many such chunks like it in the document, but the best 
candidate contains certain other strings. Here’s an example:

The chunk starts with the word *owner* or the phrase *beneficial owner*.

The chunk ends with *all directors* or *less than one percent*.

The chunk contains all of the following:
- At least four or five big numbers, e.g., 234,879
- At least two percentages, e.g., 3.4%, or percentage signs

If you are curious, this would more or less identify an ownership table in a 
proxy statement filed at the Securities and Exchange Commission. These are 
archived at the SEC in text and html (in vintages going back to about 1994).

Any tips or examples would be much appreciated.

Regards,

Gregory




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Need help with my C to LiveCode skill

2015-12-18 Thread Todd Fabacher
Thanks Everyone for the help. My problem I have is that there is an online
Database that the mobile needs to search 20,000 users in the DB. Plus it is
shared with a Legacy system, so no other option as I can't choose
the algorithm.  bitXor did the trick.

Seasons Greetings to All and 2016 is going to be a GREAT LiveCode tear!!!

--Todd


Date: Thu, 17 Dec 2015 08:46:35 -0500
From: Mike Kerner <mikeker...@roadrunner.com>
To: How to use LiveCode <use-livecode@lists.runrev.com>
Subject: Re: Need help with my C to LiveCode skills
Message-ID:

Re: Need help with my C to LiveCode skills

2015-12-17 Thread Richard Gaskin

Mark Wieder wrote:

> On 12/16/2015 12:56 PM, Todd Fabacher wrote:
>> Sorry to bother the list, but I don't know how to do Xor in
>> LiveCode.
>
> As mentioned, the bitXor operator is what you want.
> But I can't say much for that as an encryption algorithm unless
> you're looking for simple symmetric encryption/decryption.

Agreed.  I included this quote in my reply to the forum thread at 
:


"XOR is trivial to break, requiring seconds at most, whereas DES takes 
hours to crack, and Blowfish would take us past the expected lifetime of 
the sun."


...from this article, which also includes tips on cracking XOR'd ciphertext:


If at all possible it would be both simpler to code and far more secure 
to just rely on LC's built-in encrypt and decrypt functions, which 
provide access to 100 industrial-strength algos like Blowfish, AES-256, 
and more.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Need help with my C to LiveCode skills

2015-12-17 Thread Mike Kerner
also, have you looked up the "encrypt" command?


On Wed, Dec 16, 2015 at 8:13 PM, Mark Wieder  wrote:

> On 12/16/2015 12:56 PM, Todd Fabacher wrote:
>
>> Sorry to bother the list, but I don't know how to do Xor in LiveCode. I
>>
>
> As mentioned, the bitXor operator is what you want.
> But I can't say much for that as an encryption algorithm unless you're
> looking for simple symmetric encryption/decryption.
>
> --
>  Mark Wieder
>  ahsoftw...@gmail.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
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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


Need help with my C to LiveCode skills

2015-12-16 Thread Todd Fabacher
Sorry to bother the list, but I don't know how to do Xor in LiveCode. I
have an app deadline of this week and I can't figure now to do a byte Xor
conversion. We converted an Objective C app to LiveCode, I have done ALL of
the code except a small encryption function. I can't figure how to convert
using LiveCode. Any help would be appreciated. Here is the code:

http://forums.livecode.com/viewtopic.php?f=32=26115


Best,

Todd
___
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: Need help with my C to LiveCode skills

2015-12-16 Thread dunbarx
Hi.


Does the native "bitXOR" do the trick? See the dictionary.


Craig Newman



-Original Message-
From: Todd Fabacher <tfabac...@gmail.com>
To: Use-livecode Use-livecode <use-livecode@lists.runrev.com>
Sent: Wed, Dec 16, 2015 3:57 pm
Subject: Need help with my C to LiveCode skills

Sorry to bother the list, but I don't know how to do Xor in LiveCode. I
have an app deadline of this week and I can't figure now to do a byte Xor
conversion. We converted an Objective C app to LiveCode, I have done ALL of
the code except a small encryption function. I can't figure how to convert
using LiveCode. Any help would be appreciated. Here is the code:

http://forums.livecode.com/viewtopic.php?f=32=26115


Best,

Todd
___
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: Need help with my C to LiveCode skills

2015-12-16 Thread Colin Holgate
According to the dictionary, it’s number bitXor number.
___
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: Need help with my C to LiveCode skills

2015-12-16 Thread Mark Wieder

On 12/16/2015 12:56 PM, Todd Fabacher wrote:

Sorry to bother the list, but I don't know how to do Xor in LiveCode. I


As mentioned, the bitXor operator is what you want.
But I can't say much for that as an encryption algorithm unless you're 
looking for simple symmetric encryption/decryption.


--
 Mark Wieder
 ahsoftw...@gmail.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: Need Help Throttling Downloads From an FTP Site

2015-09-23 Thread Gregory Lypny
Hi Bob Sneidar, Scott Rossi, Mike Bonner, and Jim Lambert,

Thanks for your suggestions. I going to experiment with all of them and share 
my results with the list.

Regards,

Gregory

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Need Help Throttling Downloads From an FTP Site

2015-09-21 Thread Jim Lambert
Whoops!

That should be:

on getNextFile
if lListOfFilePaths = empty then exit getNextFile   
put line 1 of lListOfFilePaths into remoteFilePath

delete line 1 of lListOfFilePaths


—SET THE LOCAL FILE’S NAME HOWEVER YOU NORMALLY WOULD
put whatever into localFileName
libURLDownloadToFile ("
ftp://anonymous:myemailaddr...@ftp.sec.gov/
" & remoteFilePath),(exportFolderPath & "/" & localFileName ),"downloadComplete"
end getNextFile

Jim Lambert
___
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: Need Help Throttling Downloads From an FTP Site

2015-09-21 Thread Jim Lambert
Gregory,

Try this (untested):

local lListOfFilePaths

on downloadAll
put theListofFiles into lListOfFilePaths
getnextFile
end repeat

on getNextFile
if lListOfFilePaths = empty then exit getNextFile   
put line 1 of lListOfFilePaths into remoteFilePath
—SET THE LOCAL FILE’S NAME HOWEVER YOU NORMALLY WOULD
put whatever into localFileName
libURLDownloadToFile ("ftp://anonymous:myemailaddr...@ftp.sec.gov/; & 
remoteFilePath),(exportFolderPath & "/" & localFileName ),"downloadComplete"
end getNextFile


command downloadComplete pURL, pStatus
if pStatus = "error" or pStatus = "timeout" then
answer error "The file” && pURL && "could not be downloaded."
else
getNextFile
end if
end downloadComplete


Basically it fetches the files one at a time.
No need for adding guessed-at delays.

Jim Lambert
___
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: Need Help Throttling Downloads From an FTP Site

2015-09-21 Thread Scott Rossi
How large are the files you're retrieving?  If the script below is your
actual script, you might try allowing some execution time in the loop:

repeat with each line remoteFilePath in listOfFilePaths
-- set new localFileName is set before the download request is made
put url ("ftp://anonymous:myemailaddr...@ftp.sec.gov/; & remoteFilePath)
into url ("file:/" & exportFolderPath & "/" & localFileName )
wait 2 seconds with messages --  <-- ADD THIS
end repeat

It would probably be most helpful to you to check the status of each
request, so you can keep track of which events succeeded and which failed. I
imagine there are folks on the list who have something like this more
readily available than me.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design



On 9/21/15, 2:33 PM, "use-livecode on behalf of Gregory Lypny"
 wrote:

> Hello everyone,
> 
> I posted about this a while back but am still having trouble.
> 
> I need to download thousands of files from the Security and Exchange
> Commission's website. Access is through anonymous FTP with "anonymous" as the
> username and my email address as the password. I've been using Put in a Repeat
> With loop as
> 
> repeat with each line remoteFilePath in listOfFilePaths
> ‹ set new localFileName is set before the download request is made
> put url ("ftp://anonymous:myemailaddr...@ftp.sec.gov/; & remoteFilePath)
> into url ("file:/" & exportFolderPath & "/" & localFileName )
> end repeat
> 
> but my script dies (the stack is lifeless and unresponsive) after a few dozen,
> and sometimes a few hundred downloads. I used similar scripts in Mathematica
> and confirmed that the problem is session-timed-out and
> cannot-connect-to-server types of errors. The SEC's webmaster tells me, "There
> is no load/rate limiting on FTP, but if you are running a fast process, it is
> possible you are temporarily overwhelming the server." So, I'm thinking that I
> need to throttle my requests, and maybe should be using libURLDownloadToFile
> to check the status of the current file being downloaded and not request
> another file until the current download is complete. I also wonder whether I
> should be connecting to the FTP site only once with the username and password,
> loop my requests, and then close the connection. Not sure how to do either of
> these and would greatly appreciate any suggestions or tips.
> 
> Gregory
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
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: Need Help Throttling Downloads From an FTP Site

2015-09-21 Thread Bob Sneidar
FTP has been called the misbehaving child of networking, and I'm being kind. 
While other protocols play nicely on a network, not grabbing all the bandwidth 
they can and refusing to throttle down when needed, FTP generally does the 
opposite. FTP will try to commandeer all the bandwidth your infrastructure 
allows, and won't let go once it has it.

I'm sure modern FTP servers are better behaved than their cave-man-days 
predecessors, but the protocol itself is still what it is.

If you have a router or switch with built in QOS, you may be able to do it 
there. Barring that you may want to use HTTP file transfers instead.

Bob S


On Sep 21, 2015, at 14:33 , Gregory Lypny 
> wrote:

Hello everyone,

I posted about this a while back but am still having trouble.

I need to download thousands of files from the Security and Exchange 
Commission's website. Access is through anonymous FTP with "anonymous" as the 
username and my email address as the password. I've been using Put in a Repeat 
With loop as

repeat with each line remoteFilePath in listOfFilePaths
— set new localFileName is set before the download request is made
   put url ("ftp://anonymous:myemailaddr...@ftp.sec.gov/; & remoteFilePath) 
into url ("file:/" & exportFolderPath & "/" & localFileName )
end repeat

but my script dies (the stack is lifeless and unresponsive) after a few dozen, 
and sometimes a few hundred downloads. I used similar scripts in Mathematica 
and confirmed that the problem is session-timed-out and 
cannot-connect-to-server types of errors. The SEC's webmaster tells me, "There 
is no load/rate limiting on FTP, but if you are running a fast process, it is 
possible you are temporarily overwhelming the server." So, I'm thinking that I 
need to throttle my requests, and maybe should be using libURLDownloadToFile to 
check the status of the current file being downloaded and not request another 
file until the current download is complete. I also wonder whether I should be 
connecting to the FTP site only once with the username and password, loop my 
requests, and then close the connection. Not sure how to do either of these and 
would greatly appreciate any suggestions or tips.

Gregory

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Need Help Throttling Downloads From an FTP Site

2015-09-21 Thread Gregory Lypny
Hello everyone,

I posted about this a while back but am still having trouble.

I need to download thousands of files from the Security and Exchange 
Commission's website. Access is through anonymous FTP with "anonymous" as the 
username and my email address as the password. I've been using Put in a Repeat 
With loop as

repeat with each line remoteFilePath in listOfFilePaths
— set new localFileName is set before the download request is made
put url ("ftp://anonymous:myemailaddr...@ftp.sec.gov/; & remoteFilePath) 
into url ("file:/" & exportFolderPath & "/" & localFileName )
end repeat

but my script dies (the stack is lifeless and unresponsive) after a few dozen, 
and sometimes a few hundred downloads. I used similar scripts in Mathematica 
and confirmed that the problem is session-timed-out and 
cannot-connect-to-server types of errors. The SEC's webmaster tells me, "There 
is no load/rate limiting on FTP, but if you are running a fast process, it is 
possible you are temporarily overwhelming the server." So, I'm thinking that I 
need to throttle my requests, and maybe should be using libURLDownloadToFile to 
check the status of the current file being downloaded and not request another 
file until the current download is complete. I also wonder whether I should be 
connecting to the FTP site only once with the username and password, loop my 
requests, and then close the connection. Not sure how to do either of these and 
would greatly appreciate any suggestions or tips.

Gregory
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

AW: need help with filter and regex

2015-06-03 Thread Tiemo Hollmann TB
Hi Mike,
thanks for this solution, i didn't thought it would be that easy.
You are right, that it would be a typical db task and actually I was using
valentina for this (could also be done with sqlite).

I was just looking to reduce components of my program installation and with
it potential issues at customer installations, so I tested keeping all data
in properties/arrays and making the selection with a plain repeat loop and
that worked fine and almost with the same performance as a db sql.
Additionally I had to sort the selection coming out of the array selection,
which also worked fine up to LC 6. The issue came with testing LC7, where
sort international has such a massive performance problem, that I now was
looking for alternatives, which was preparing different sorted lists only
once at preopenstack and just filtering these lists. But meanwhile I am
coming to multiple issues, where I am creating lists randomly of unsorted
lines, which have to be sorted international afterwords. And here LC 7
stops working and is unusable for a German customer.

Thanks
Tiemo


-Ursprüngliche Nachricht-
Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag
von Mike Bonner
Gesendet: Dienstag, 2. Juni 2015 17:56
An: How to use LiveCode
Betreff: Re: need help with filter and regex

You can do interesting things with just filter..

For example, to end up with items that contain a string in string one, and
number 2 IS a specific number you could do something like this

filter tMyVar with *;*stringtofind*;*;*;345;*
This will match any value of key and any value for string 1 that has the
string to find in it, any value for string 2, any value for number 1, and
345 for number 2, then match the remainder of the string.
For begins with, it would be ;stringtofind*;  for an exact match it would be
;stringtofind;

Having said all that, it seems that a repeat for each loop would work very
well, and should be pretty fast even with 7.

set the itemdelimiter to ;
repeat for each line tLine in tMyVar
 if item 2 of tLine contains stringtofind and item item 5 of tLine is 345
then put tLine  cr after tNewData end repeat delete the last char of
tNewData -- tNewdata now contains what you're looking for.

In fact, it shouldn't be too awful difficult to build a generic function
that you could pass arguments to detailing what items to check for what
values in what way.

I love the way Andres dblib builds its queries up, if you get a chance I'd
call it recommended reading.

Finally, while I love arrays, i'm wondering if there is a reason you aren't
using sqlite for this?  It seems like it would be so much easier to have
sqlite hand you what you're looking for.

On Tue, Jun 2, 2015 at 9:19 AM, Tiemo Hollmann TB toolb...@kestner.de
wrote:

 Hello,



 in the course of the massiv LC 7 problem with sort international 
 (which is approved by Runrev) I am looking for a workaround for my 
 repeat selection and sorting with filter, as Richard H. advised.



 I don't have much experience with filter, beside of some easy filters 
 nor regex. Today I am selecting records from an array with multiple 
 selections in a repeat loop. If a combine this array to do a filter on 
 it, it looks like this:

 Key;string1;string2;number1;number2;string3; etc.

 Today I am selecting like: if string1 contains/begins with searchitem 
 and
 number2 is/is not x then

 1.   I don't understand whats the difference between filter with /
 filter matching

 2.   As far as I see, I don't get here far with a standard filter and
 probably would need a regex to specify in which item of my line I want 
 to do the selection. Perhaps with the number of semicolons?

 Any initial help with a regex filter on this issue is appreciated.

 Tiemo











 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
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: need help with filter and regex

2015-06-03 Thread Dr. Hawkins
On Tue, Jun 2, 2015 at 11:22 PM, Tiemo Hollmann TB toolb...@kestner.de
wrote:

 You are right, that it would be a typical db task and actually I was using
 valentina for this (could also be done with sqlite).


in-memory sqlite is blindingly fast; typically sub-millisecond response for
me.  I replaced my internal data array with it--the alternative was looping
through array sections for searches, or copying large chunks to filter!


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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


need help with filter and regex

2015-06-02 Thread Tiemo Hollmann TB
Hello,

 

in the course of the massiv LC 7 problem with sort international (which is
approved by Runrev) I am looking for a workaround for my repeat selection
and sorting with filter, as Richard H. advised.

 

I don't have much experience with filter, beside of some easy filters nor
regex. Today I am selecting records from an array with multiple selections
in a repeat loop. If a combine this array to do a filter on it, it looks
like this:

Key;string1;string2;number1;number2;string3; etc.

Today I am selecting like: if string1 contains/begins with searchitem and
number2 is/is not x then

1.   I don't understand whats the difference between filter with /
filter matching

2.   As far as I see, I don't get here far with a standard filter and
probably would need a regex to specify in which item of my line I want to do
the selection. Perhaps with the number of semicolons?

Any initial help with a regex filter on this issue is appreciated.

Tiemo

 

 

 

 

 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: need help with filter and regex

2015-06-02 Thread Mike Bonner
You can do interesting things with just filter..

For example, to end up with items that contain a string in string one, and
number 2 IS a specific number you could do something like this

filter tMyVar with *;*stringtofind*;*;*;345;*
This will match any value of key and any value for string 1 that has the
string to find in it, any value for string 2, any value for number 1, and
345 for number 2, then match the remainder of the string.
For begins with, it would be ;stringtofind*;  for an exact match it would
be ;stringtofind;

Having said all that, it seems that a repeat for each loop would work very
well, and should be pretty fast even with 7.

set the itemdelimiter to ;
repeat for each line tLine in tMyVar
 if item 2 of tLine contains stringtofind and item item 5 of tLine is 345
then put tLine  cr after tNewData
end repeat
delete the last char of tNewData -- tNewdata now contains what you're
looking for.

In fact, it shouldn't be too awful difficult to build a generic function
that you could pass arguments to detailing what items to check for what
values in what way.

I love the way Andres dblib builds its queries up, if you get a chance I'd
call it recommended reading.

Finally, while I love arrays, i'm wondering if there is a reason you aren't
using sqlite for this?  It seems like it would be so much easier to have
sqlite hand you what you're looking for.

On Tue, Jun 2, 2015 at 9:19 AM, Tiemo Hollmann TB toolb...@kestner.de
wrote:

 Hello,



 in the course of the massiv LC 7 problem with sort international (which is
 approved by Runrev) I am looking for a workaround for my repeat selection
 and sorting with filter, as Richard H. advised.



 I don't have much experience with filter, beside of some easy filters nor
 regex. Today I am selecting records from an array with multiple selections
 in a repeat loop. If a combine this array to do a filter on it, it looks
 like this:

 Key;string1;string2;number1;number2;string3; etc.

 Today I am selecting like: if string1 contains/begins with searchitem and
 number2 is/is not x then

 1.   I don't understand whats the difference between filter with /
 filter matching

 2.   As far as I see, I don't get here far with a standard filter and
 probably would need a regex to specify in which item of my line I want to
 do
 the selection. Perhaps with the number of semicolons?

 Any initial help with a regex filter on this issue is appreciated.

 Tiemo











 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Need Help With FTP

2015-04-29 Thread Gregory Lypny
Hi Mark, Richard and Dr. Hawkins,

Much obliged for all the tips.

Gregory

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Need Help With FTP

2015-04-28 Thread Gregory Lypny
Hi Richard,

 On Tue, Apr 28, 2015, at 6:00 AM, Richard Gaskin:
 
 Seems I missed that.  I thought he was posting to his own server.  It 
 wouldn't have occurred to me that a government site still uses FTP.

Yes, Doc Hawkins was right: I’m downloading from the Securities and Exchange 
Commission’s anonymous FTP site. There was nothing on their help pages about 
another protocol, although I may have missed it.

But your tips about shared SSH keys will be helpful to me anyway because I do 
run my own server on a Mac for my students at the university.

Regards,

Gregory
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Need Help With FTP

2015-04-27 Thread Richard Gaskin

Dr. Hawkins wrote:

 On Mon, Apr 27, 2015 at 11:38 AM, Richard Gaskin wrote:

 I most commonly use the -avz options when transferring outside my
 local network (just -av for local, since the compression isn't as
 useful over Gb ethernet):

 I use -auvz by finger memory.  The u skips files that are newer on the
 receiver, so if you run it both directions, both get the most recent
 versions.  I use this to keep laptop and desktop in sync.

That's one of the great things about rsync - very flexible.


 But does it support ftp protocol?  I though it needed ssh access.

It does require SSH, and moreover if used within LiveCode requires 
shared SSH keys to avoid the password prompt, which is why I'd provided 
the link to the tutorial on setting up shared keys.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Need Help With FTP

2015-04-27 Thread Dr. Hawkins
On Mon, Apr 27, 2015 at 11:38 AM, Richard Gaskin ambassa...@fourthworld.com
 wrote:

 I most commonly use the -avz options when transferring outside my local
 network (just -av for local, since the compression isn't as useful over
 Gb ethernet):


I use -auvz by finger memory.  The u skips files that are newer on the
receiver, so if you run it both directions, both get the most recent
versions.  I use this to keep laptop and desktop in sync.

But does it support ftp protocol?  I though it needed ssh access.

-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: Need Help With FTP

2015-04-27 Thread Richard Gaskin

Dr. Hawkins wrote:

 On Mon, Apr 27, 2015 at 1:28 PM, Richard Gaskin wrote:

  But does it support ftp protocol?  I though it needed ssh access.

 It does require SSH, and moreover if used within LiveCode requires
 shared SSH keys to avoid the password prompt, which is why I'd
 provided the link to the tutorial on setting up shared keys.


 OK, I fell better about my memory.  Isn't he trying to access a
 government repository, which is unlikely to have ssh available
 to users?

Seems I missed that.  I thought he was posting to his own server.  It 
wouldn't have occurred to me that a government site still uses FTP.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Need Help With FTP

2015-04-27 Thread Dr. Hawkins
On Mon, Apr 27, 2015 at 1:28 PM, Richard Gaskin ambassa...@fourthworld.com
wrote:

  But does it support ftp protocol?  I though it needed ssh access.

 It does require SSH, and moreover if used within LiveCode requires shared
 SSH keys to avoid the password prompt, which is why I'd provided the link
 to the tutorial on setting up shared keys.


OK, I fell better about my memory.  Isn't he trying to access a government
repository, which is unlikely to have ssh available to users?


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: Need Help With FTP

2015-04-27 Thread Gregory Lypny
Hi Robert and Richard,

Robert, thanks for the tip. I’ll give it a try. This may be the problem as I 
was able to download 60,000 of 130,000 files without a problem until it 
stopped. When I restarted the loop, it stopped roughly every 200.

 On Sat, Apr 25, 2015, at 4:44 AM,Robert Brenstein wrote:
 
 May be if you make a pause between successive downloads, the host 
 won't mind so much. They probably don't like robotic pulls of large 
 volumes.

Richard, yes, put url works well. I too keep it simply. I’m not familiar with 
shared SSH keys, but I’ll look into it. Thanks.

Gregory
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Need Help With FTP

2015-04-27 Thread Mark Talluto
On Apr 27, 2015, at 8:52 AM, Gregory Lypny gregory.ly...@videotron.ca wrote:

 Robert, thanks for the tip. I’ll give it a try. This may be the problem as I 
 was able to download 60,000 of 130,000 files without a problem until it 
 stopped. When I restarted the loop, it stopped roughly every 200.

You are going to want good error checking for your download routine. In the 
event of a failure, simply pick up where you left off and download another n 
quantity of files. You could start with a list of files that you need to get 
and remove successful downloads from the list as they come down. When the 
download fails you can pick up again from the list.

Best regards,

Mark Talluto
livecloud.io
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: Need Help With FTP

2015-04-27 Thread Richard Gaskin

Gregory Lypny wrote:


Richard, yes, put url works well. I too keep it simply. I’m not familiar with 
shared SSH keys, but I’ll look into it. Thanks.


It's a game-changer.  Once you have that set up you can use scp, rsync, 
and many other shell commands from LiveCode, easily and securely.


There are many tutorials on how to set up shared SSH keys - this one is 
my favorite:

https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2

Splash21 also wrote one in the forums:
http://forums.livecode.com/viewtopic.php?f=54t=20853p=106171

Keep me posted if I can be of any help with that.

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Need Help With FTP

2015-04-27 Thread Richard Gaskin

Dr. Hawkins wrote:

 On Fri, Apr 24, 2015 at 5:43 AM, Gregory Lypny wrote:

 Thanks for the detailed handler! I’ll give it a whirl. Blocking is
 not really the problem for me; it’s the session timeouts or dropped
 connection when downloading many files in a loop

 Unless you're using windows look at the command line wget, whose -C
 option will let you download continuing from where the file left
 off.  You could access it with shell.

And if you are using Windows you can install Cygwin to avoid having to 
deal with Microsoft-specific PowerShell and use industry standard shell 
commands instead - it's free and open under GPL:

https://www.cygwin.com/

For transferring large numbers of files I prefer rsync because it uses 
an uncommonly smart algo to avoid re-sending things that have already 
been sent, and has an on-the-fly compression option for quick transport:

http://en.wikipedia.org/wiki/Rsync#Algorithm

I most commonly use the -avz options when transferring outside my 
local network (just -av for local, since the compression isn't as 
useful over Gb ethernet):


 rsync -avz ~/LocalFolder/  user@server:/RemoteFolder/

...where:

a = archive mode, which is recursive and maintains mod dates, etc.

v = verbose, so you see a list of what's sent; if you don't need that
you can safely omit the v

z = on-the-fly gzip compression of file chunks for faster transport

Digital Ocean has a good introductory tutorial on rsync:
https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories-on-a-vps

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Need Help With FTP

2015-04-27 Thread Dr. Hawkins
On Fri, Apr 24, 2015 at 5:43 AM, Gregory Lypny gregory.ly...@videotron.ca
wrote:


 Thanks for the detailed handler! I’ll give it a whirl. Blocking is not
 really the problem for me; it’s the session timeouts or dropped connection
 when downloading many files in a loop


Unless you're using windows look at the command line wget, whose -C option
will let you download continuing from where the file left off.  You could
access it with shell.


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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: Need Help With FTP

2015-04-24 Thread Gregory Lypny
Hi Phil,

Thanks for the detailed handler! I’ll give it a whirl. Blocking is not really 
the problem for me; it’s the session timeouts or dropped connection when 
downloading many files in a loop. I think the public server does not like 
repeated calls with the same connection, but I do not know how to make a new 
connection for, say, every 100 downloads.

Gregory


 Message: 12
 Date: Thu, 23 Apr 2015 15:43:11 -0700
 From: Phil Davis rev...@pdslabs.net
 To: How to use LiveCode use-livecode@lists.runrev.com
 Subject: Re: Need Help With FTP
 Message-ID: 5539757f.8050...@pdslabs.net
 Content-Type: text/plain; charset=utf-8; format=flowed
 
 Hi Gregory,
 
 I would probably use the load command because it's a non-blocking way 
 to do it - it doesn't prevent interaction while it's working.
 


___
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: Need Help With FTP

2015-04-24 Thread Robert Brenstein

On 24.04.2015 at 8:43 Uhr -0400 Gregory Lypny apparently wrote:

Hi Phil,

Thanks for the detailed handler! I'll give it a whirl. Blocking is 
not really the problem for me; it's the session timeouts or dropped 
connection when downloading many files in a loop. I think the public 
server does not like repeated calls with the same connection, but I 
do not know how to make a new connection for, say, every 100 
downloads.


Gregory



May be if you make a pause between successive downloads, the host 
won't mind so much. They probably don't like robotic pulls of large 
volumes.


RObert

___
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: Need Help With FTP

2015-04-24 Thread Richard Gaskin

Gregory Lypny wrote:

  Blocking is not really the problem for me; it’s the session timeouts
 or dropped connection when downloading many files in a loop. I think
 the public server does not like repeated calls with the same
 connection, but I do not know how to make a new connection for, say,
 every 100 downloads.

That may be a bug in the server configuration.  Some of my WebMerge 
customers upload literally hundreds of thousands of files to simple 
shared host servers without issue.


I'm not even working that hard, just using this form in a loop that 
iterates through the file list:


put url (binfile:tDestFile) into url tDestUrl

If this app is used only by yourself you may consider setting up a 
shared SSH key with the server and using a shell call in LC to rsync, 
which would be much faster and perhaps a bit more robust, and certainly 
more secure.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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

Need Help With FTP

2015-04-23 Thread Gregory Lypny
Hello everyone,

I’m working on a big research project that requires that I download many small 
files (under 2MB) from the US Security and Exchange Commission’s (SEC) public 
FTP site. I have the links to all of the files I need, and I’m wondering how I 
would use a LiveCode “repeat with” loop to download the files while avoiding a 
session timed-out error.

Any tips would be much appreciated.

Regards,

Gregory
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Need Help With FTP

2015-04-23 Thread Phil Davis

Hi Gregory,

I would probably use the load command because it's a non-blocking way 
to do it - it doesn't prevent interaction while it's working.


Maybe something like this (I didn't test this):


-- button --
on mouseUp
doDownload
end mouseUp


-- card or stack --
# required:
# fld status
# fld my links
# fld folderpath

local sUrlList, sTotal, sCurrent=0

command doDownload
put fld my links into sUrlList
put (the number of lines in sUrlList) into sTotal
_download
end doDownload


command _download
-- let user know what's happening
add 1 to sCurrent
put (downloading  sCurrent  of  sTotal) into fld status
load url (line sCurrent of sUrlList) with message _saveFile
end _download


command _saveFile
set the itemDel to slash
get (line sCurrent of sUrlList)
put url it into url (binfile:  fld folderpath  /  last 
item of it)

unload url it

if sCurrent  sTotal then
send _download to me in 1 tick -- get the next file
else
put empty into fld status
answer all files downloaded!
exit to top
end if
end _saveFile


Best -
Phil Davis



On 4/23/15 2:18 PM, Gregory Lypny wrote:

Hello everyone,

I’m working on a big research project that requires that I download many small 
files (under 2MB) from the US Security and Exchange Commission’s (SEC) public 
FTP site. I have the links to all of the files I need, and I’m wondering how I 
would use a LiveCode “repeat with” loop to download the files while avoiding a 
session timed-out error.

Any tips would be much appreciated.

Regards,

Gregory
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


--
Phil Davis


___
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

[gig] need help with web video

2015-02-04 Thread William Prothero
Paolo:
It works on Windows. Haven’t tested in on Mac, again, because I just used the 
older implementation on Mac. I’ll test.
An existing problem, tho is the fact that Apple won’t accept it in the store 
because the bundle is broken, according the App Wrapper 3.
Bill



William A. Prothero
http://es.earthednet.org/

___
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

[gig] need help with web video

2015-02-03 Thread Phil Davis

Hi folks,

Please contact me off-list if you'd like to know more or be considered 
for this:


I maintain a multi-platform (Mac, Win, web) training system created with 
LC, whose web implementation needs some changes that are beyond my 
capability. We need to change our web video player from the current 
statically loaded MediaElementsJS player, to a dynamically loaded Vimeo 
player. Playback currently works fine in the right browsers, but the 
ongoing responsibility for keeping it working in the ever-changing world 
of browsers is on our shoulders. We want to shift that responsibility to 
Vimeo's much broader shoulders. This makes sense because the training 
videos are hosted there.


Like I said, please contact me off-list if this is something you might 
be interested in doing.


Thanks -

--
Phil Davis


___
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: [gig] need help with web video

2015-02-03 Thread Richmond

On 03/02/15 22:38, Phil Davis wrote:

Hi folks,

Please contact me off-list if you'd like to know more or be considered 
for this:


I maintain a multi-platform (Mac, Win, web) training system created 
with LC, whose web implementation needs some changes that are beyond 
my capability. We need to change our web video player from the current 
statically loaded MediaElementsJS player, to a dynamically loaded 
Vimeo player. Playback currently works fine in the right browsers, but 
the ongoing responsibility for keeping it working in the ever-changing 
world of browsers is on our shoulders. We want to shift that 
responsibility to Vimeo's much broader shoulders. This makes sense 
because the training videos are hosted there.


Like I said, please contact me off-list if this is something you might 
be interested in doing.


Thanks -



Why, if it is to be multi-platform are you going to rely on a web-based 
service (Vimeo)?


Surely it would make more sense to use Livecode's own video-delivery 
capabilities.


Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [gig] need help with web video

2015-02-03 Thread Phil Davis

Hi Richmond,

I'm not sure I understand. Do you mean we should use on-rev servers to 
serve the web video?


(The Win  Mac desktop training apps use local desktop video files, 
distributed as part of the desktop trainings.)


Phil


On 2/3/15 12:41 PM, Richmond wrote:

On 03/02/15 22:38, Phil Davis wrote:

Hi folks,

Please contact me off-list if you'd like to know more or be 
considered for this:


I maintain a multi-platform (Mac, Win, web) training system created 
with LC, whose web implementation needs some changes that are beyond 
my capability. We need to change our web video player from the 
current statically loaded MediaElementsJS player, to a dynamically 
loaded Vimeo player. Playback currently works fine in the right 
browsers, but the ongoing responsibility for keeping it working in 
the ever-changing world of browsers is on our shoulders. We want to 
shift that responsibility to Vimeo's much broader shoulders. This 
makes sense because the training videos are hosted there.


Like I said, please contact me off-list if this is something you 
might be interested in doing.


Thanks -



Why, if it is to be multi-platform are you going to rely on a 
web-based service (Vimeo)?


Surely it would make more sense to use Livecode's own video-delivery 
capabilities.


Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



--
Phil Davis


___
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: [gig] need help with web video

2015-02-03 Thread Colin Holgate
I believe it’s the browser based version that needs the work. And the videos 
are already on Vimeo.

As an aside (and not worrying about derailing the thread, because anyone 
interested will be contacting Phil off-list), can LiveCode present a Vimeo 
stream, using the built in video player?


 On Feb 3, 2015, at 3:41 PM, Richmond richmondmathew...@gmail.com wrote:
 
 Why, if it is to be multi-platform are you going to rely on a web-based 
 service (Vimeo)?
 
 Surely it would make more sense to use Livecode's own video-delivery 
 capabilities.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: OT: Need help with Indiegogo, Twitter, Facebook etc.

2014-11-25 Thread Simon Smith
Hi Rick

If you are new to social media, I would suggest choosing a platform and
getting use to it and then looking at the others.

Personally I would start with Facebook,and setting up a fan page and maybe
Twitter, and take it from there. Facebook has by far the biggest audience.
I would not suggest buying likes, tweet or any type of followers. It's
pretty much a waste of money.

That said, I would suggest having a website (even if its a free blog, but
get a domain name) and channeling people there and collecting email
addresses but as you already have the campaign running - its probably not
feasible.

Advertising on Facebook can be very cost effective, so long as you pay
attention to conversion rates. It's pretty easy to run yourself aswell and
you can channel people to directly to your indigogo campaign. I would start
off reaching out to family and friends and asking them to share your page /
campaign. As it takes a bit of time to grow ones following, you may have to
look at spending a bit on advertising.

You shouldn't need any software to start off with, though you could look at
Hootsuite and Buffer is also a good alternative.

I think what contributed the most to the success of the RunRev's success
with their campaigns is that they already had a large base of interested
and engaged customers that they could leverage (especially for the 2nd
campaign where they ran it themselves. The first campaign also got quiet a
bit of coverage on a variety of sites (if I remember correctly), which
always helps.

If you want to market yourself, or pretty much anything, then the more
people you are connected with the better :). If you are planning on future
campaigns etc, then I would suggest keeping your accounts going and work on
growing your followers.

http://www.socialmediaexaminer.com/ is a great website for getting the most
of social media.

Kind Regards
Simon







On Tue, Nov 25, 2014 at 12:36 AM, Rick Harrison harri...@all-auctions.com
wrote:

 Dear Fellow LiveCoders,

 I just started an Indiegogo.com http://indiegogo.com/ campaign to make
 my second music CD Album.  I’m doing some side
 advertising of my Apple Apps along with the project.
 (We might be able to use this to help push LiveCode
 too as I can add perks to my campaign to encourage
 others to donate.  For example: at the $400 level one gets
 a commercial copy of LiveCode, or at the $300 level, the
 mergExt suite etc.

 Here’s the link if you’d like to take and look and offer suggestions:

 https://www.indiegogo.com/projects/rick-harrison-s-2nd-cd-album 
 https://www.indiegogo.com/projects/rick-harrison-s-2nd-cd-album

 Anyway, many people are saying that I need to use
 Social Media to advertise this campaign.
 I’m not much of a social media expert and
 I think I’m already in over my head on this.

 The people here at RunRev have run two
 very successful fund raising campaigns and
 I wondered if anyone has any good advice
 as to how I should proceed with this.

 I’ve noticed that I’m already getting bugged
 by people trying to sell me on Likes, and
 getting Followers for Twitter, and re-tweets
 advertising packages etc.

 What do people do to manage this?
 I’m having to ask myself questions like, do
 I really want to be associated/liked/linked with
 the vast array of anyone who is out there?
 If I do, should I plan on deleting my Twitter
 account etc. when I’m done with my
 campaign?

 There are a lot of social questions and
 ramifications here.  If you know of a
 good forum for these kinds of discussions
 please let me know.

 Thanks,

 Rick










 ___
 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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: OT: Need help with Indiegogo, Twitter, Facebook etc.

2014-11-25 Thread Rick Harrison
Hi Simon,

This all sounds like good advice.
I will check out your suggestions.

Thanks!

Rick

 On Nov 25, 2014, at 3:52 PM, Simon Smith he...@simonsmith.co 
 mailto:he...@simonsmith.co wrote:
 
 Hi Rick
 
 If you are new to social media, I would suggest choosing a platform and
 getting use to it and then looking at the others.
 
 Personally I would start with Facebook,and setting up a fan page and maybe
 Twitter, and take it from there. Facebook has by far the biggest audience.
 I would not suggest buying likes, tweet or any type of followers. It's
 pretty much a waste of money.

...

___
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


OT: Need help with Indiegogo, Twitter, Facebook etc.

2014-11-24 Thread Rick Harrison
Dear Fellow LiveCoders,

I just started an Indiegogo.com http://indiegogo.com/ campaign to make
my second music CD Album.  I’m doing some side
advertising of my Apple Apps along with the project.
(We might be able to use this to help push LiveCode
too as I can add perks to my campaign to encourage
others to donate.  For example: at the $400 level one gets
a commercial copy of LiveCode, or at the $300 level, the
mergExt suite etc.

Here’s the link if you’d like to take and look and offer suggestions:

https://www.indiegogo.com/projects/rick-harrison-s-2nd-cd-album 
https://www.indiegogo.com/projects/rick-harrison-s-2nd-cd-album

Anyway, many people are saying that I need to use
Social Media to advertise this campaign.
I’m not much of a social media expert and
I think I’m already in over my head on this.

The people here at RunRev have run two
very successful fund raising campaigns and
I wondered if anyone has any good advice
as to how I should proceed with this.

I’ve noticed that I’m already getting bugged
by people trying to sell me on Likes, and
getting Followers for Twitter, and re-tweets
advertising packages etc.

What do people do to manage this?
I’m having to ask myself questions like, do
I really want to be associated/liked/linked with
the vast array of anyone who is out there?
If I do, should I plan on deleting my Twitter
account etc. when I’m done with my
campaign?

There are a lot of social questions and
ramifications here.  If you know of a
good forum for these kinds of discussions
please let me know.

Thanks,

Rick










___
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: Need help with Indiegogo, Twitter, Facebook etc.

2014-11-24 Thread Lynn Fredricks
  I've noticed that I'm already getting bugged by people trying 
 to sell me on Likes, and getting Followers for Twitter, and 
 re-tweets advertising packages etc.
 
 What do people do to manage this?
 I'm having to ask myself questions like, do I really want to 
 be associated/liked/linked with the vast array of anyone who 
 is out there?

These link /friend sellers create loads of bogus accounts on Twitter and
Facebook. They seem particularly attractive, especially on Facebook, because
the chances of anyone not directly associated with you or your page are very
unlikely to find it. FB changed things about two years ago so you pretty
much have to advertise in order to get likes.

Id shy away from these bogus friends, just like you would shy away from
bogus friends in real life. Its very obvious when they create bogus accounts
on Facebook. They could join groups, like your page, etc, then post your
link around - then you get complaints to Facebook about your product. Id
avoid getting on the I Pay Scumbags Lists of Twitter and Facebook because
you never know what THEY will do with that information in the future.

Best regards,

Lynn Fredricks
President
Paradigma Software
http://www.paradigmasoft.com

Valentina SQL Server: The Ultra-fast, Royalty Free Database Server 


___
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: Need help with Indiegogo, Twitter, Facebook etc.

2014-11-24 Thread Rick Harrison
Hi Lynn,

Ok, so you are recommending an upfront paid
advertising approach on FB and Twitter then
where my ads appear somewhere without
my having any links anywhere to anyone.

Is this approach going to cost me a small fortune?

Thank you Lynn for your opinion on this.

Rick

 
 These link /friend sellers create loads of bogus accounts on Twitter and
 Facebook. They seem particularly attractive, especially on Facebook, because
 the chances of anyone not directly associated with you or your page are very
 unlikely to find it. FB changed things about two years ago so you pretty
 much have to advertise in order to get likes.
 
 Id shy away from these bogus friends, just like you would shy away from
 bogus friends in real life. Its very obvious when they create bogus accounts
 on Facebook. They could join groups, like your page, etc, then post your
 link around - then you get complaints to Facebook about your product. Id
 avoid getting on the I Pay Scumbags Lists of Twitter and Facebook because
 you never know what THEY will do with that information in the future.
 
 Best regards,
 
 Lynn Fredricks
 President
 Paradigma Software
 http://www.paradigmasoft.com
 
 Valentina SQL Server: The Ultra-fast, Royalty Free Database Server 
 
 
 ___
 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: Need help with Indiegogo, Twitter, Facebook etc.

2014-11-24 Thread Lynn Fredricks
 Ok, so you are recommending an upfront paid advertising 
 approach on FB and Twitter then where my ads appear somewhere 
 without my having any links anywhere to anyone.
 
 Is this approach going to cost me a small fortune?

I haven't done any advertising on Twitter other than our own home grown
marketing. But I have made use of Facebook ads, bot for post and page
promotion. You have a lot of granular control over whom you target, key
words, gender, age, country there. You can also experiment with small sums
to see what the results are.

I can't claim a lot of experience in crowdfunding. I did watch your video
and its really hard to tell what your previous work is like. Sometimes
giving away a track or sampler or something helps let people know if that's
something they are interested in.

My reading up (I have a crowdfunding project in the works for Q1 or Q2 2015)
on it though leads me to the conclusion that you should have every single
day planned out for promoting, and that the first two weeks and the final
two weeks are likely to be the ones that bring in the most.

Best regards,

Lynn Fredricks
President
Paradigma Software
http://www.paradigmasoft.com

Valentina SQL Server: The Ultra-fast, Royalty Free Database Server 


___
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


Need help with making a polygon look totally flat

2014-04-18 Thread Jonathan Lynch
Hello everyone,


I am creating a coloring book application for work, to be marketed to kids.
Of course, this means having to create my own basic painting tools because
the standard painting tools are not available for IOS.


Creating a freehand line polygon (9 pixels thick) and having it draw new
segments in sync with mouse movements is a pretty easy way to simulate a
brush. It is also easy to merge this polygon down onto the underlying image
upon releasing the mouse button.


However, this polygon does not have a single color. Instead, there is a
very slight light edge and dark edge. I assume this is a standard part of
polygons in order to make them more visually appealing. Unfortunately,
these edges also merge down into the underlying image.


This doesn’t look horrible, but it messes up subsequent flood fill (paint
bucket) operations.


Is it possible to alter the settings of a polygon so that it is purely
flat, with not even a slight light or dark edge? I have experimented with
coloroverlay, antialiasing, and all ink settings, but to no avail. I could
have the polygon merge with a pure white image off-screen, work with the
imagedata and alphadata to remove all pixels that are not of the correct
color, then merge this new image with the main image – but that sounds like
a really slow and difficult kludge. Surely there is a way to just totally
flatten the look of a polygon?


And speaking of flood full – ugh, scripting that was a nightmare. I really
wish we could use the built-in flood fill operations in IOS.


Thank you greatly for any suggestions,


Jonathan
-- 
Do all things with love
___
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: Need help with making a polygon look totally flat

2014-04-18 Thread Alejandro Tejada
Hi Jonathan,

I am not a Mac or iOS user. Could you post
a screenshot of the non flat polygon?

Maybe, we could check if this appears on
Windows, Linux and Android, too.

Thanks in advance!

Al




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Need-help-with-making-a-polygon-look-totally-flat-tp4678416p4678434.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Need help with making a polygon look totally flat

2014-04-18 Thread Mark Schonewille

Jonathan,

I made this for iOS. It was a project for a customer. Perhaps you could 
send me your requirements and we could work out something.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 4/18/2014 20:44, Jonathan Lynch wrote:

Hello everyone,


I am creating a coloring book application for work, to be marketed to kids.
Of course, this means having to create my own basic painting tools because
the standard painting tools are not available for IOS.


Creating a freehand line polygon (9 pixels thick) and having it draw new
segments in sync with mouse movements is a pretty easy way to simulate a
brush. It is also easy to merge this polygon down onto the underlying image
upon releasing the mouse button.


However, this polygon does not have a single color. Instead, there is a
very slight light edge and dark edge. I assume this is a standard part of
polygons in order to make them more visually appealing. Unfortunately,
these edges also merge down into the underlying image.


This doesn’t look horrible, but it messes up subsequent flood fill (paint
bucket) operations.


Is it possible to alter the settings of a polygon so that it is purely
flat, with not even a slight light or dark edge? I have experimented with
coloroverlay, antialiasing, and all ink settings, but to no avail. I could
have the polygon merge with a pure white image off-screen, work with the
imagedata and alphadata to remove all pixels that are not of the correct
color, then merge this new image with the main image – but that sounds like
a really slow and difficult kludge. Surely there is a way to just totally
flatten the look of a polygon?


And speaking of flood full – ugh, scripting that was a nightmare. I really
wish we could use the built-in flood fill operations in IOS.


Thank you greatly for any suggestions,


Jonathan



___
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: Need help

2012-09-24 Thread ha...@exformedia.se
To my experience you never need a lock screen in preOpenCard as it is run pre 
(i.e. before) the card opens. Maybe a lock screen here could mess with some 
internal lock.

:-Håkan 
21 sep 2012 kl. 00:19 skrev Terence Blyth:

 Hi thanks, I have in preOpenCard at the start  lock screen and at the end 
 PreOpenCard  unlock screen. Could this do it ?
 
 Thanks
 Terence
 
 
 On 21/09/2012, at 10:14 AM, Bob Sneidar b...@twft.com wrote:
 
 Sounds like the screen is not refreshing properly. Do you have any screen 
 locks, message locks, etc in the buttons or cards?
 
 Bob
 
 
 On Sep 20, 2012, at 2:53 PM, Terence Blyth wrote:
 
 I have a main card with a button on it, the button has icons . When I click 
 the button it opens a sub card. Some times on the sub card, I can see the 
 icon from the main card.
 Why does this happen and how can I stop it ?
 
 Thanks
 Terence
 web:http://www.ctec.co.nz
 ___
 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


Need help

2012-09-20 Thread Terence Blyth
I have a main card with a button on it, the button has icons . When I click the 
button it opens a sub card. Some times on the sub card, I can see the icon from 
the main card.
Why does this happen and how can I stop it ?

Thanks
Terence
web:http://www.ctec.co.nz
___
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: Need help

2012-09-20 Thread Bob Sneidar
Sounds like the screen is not refreshing properly. Do you have any screen 
locks, message locks, etc in the buttons or cards?

Bob


On Sep 20, 2012, at 2:53 PM, Terence Blyth wrote:

 I have a main card with a button on it, the button has icons . When I click 
 the button it opens a sub card. Some times on the sub card, I can see the 
 icon from the main card.
 Why does this happen and how can I stop it ?
 
 Thanks
 Terence
 web:http://www.ctec.co.nz
 ___
 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: Need help

2012-09-20 Thread Terence Blyth
Hi thanks, I have in preOpenCard at the start  lock screen and at the end 
PreOpenCard  unlock screen. Could this do it ?

Thanks
Terence


On 21/09/2012, at 10:14 AM, Bob Sneidar b...@twft.com wrote:

 Sounds like the screen is not refreshing properly. Do you have any screen 
 locks, message locks, etc in the buttons or cards?
 
 Bob
 
 
 On Sep 20, 2012, at 2:53 PM, Terence Blyth wrote:
 
 I have a main card with a button on it, the button has icons . When I click 
 the button it opens a sub card. Some times on the sub card, I can see the 
 icon from the main card.
 Why does this happen and how can I stop it ?
 
 Thanks
 Terence
 web:http://www.ctec.co.nz
 ___
 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: Need help

2012-09-20 Thread Bob Sneidar
I bet it could. One way to find out: Comment out the lock screen. 

Bob


On Sep 20, 2012, at 3:19 PM, Terence Blyth wrote:

 Hi thanks, I have in preOpenCard at the start  lock screen and at the end 
 PreOpenCard  unlock screen. Could this do it ?
 
 Thanks
 Terence
 
 
 On 21/09/2012, at 10:14 AM, Bob Sneidar b...@twft.com wrote:
 
 Sounds like the screen is not refreshing properly. Do you have any screen 
 locks, message locks, etc in the buttons or cards?
 
 Bob
 
 
 On Sep 20, 2012, at 2:53 PM, Terence Blyth wrote:
 
 I have a main card with a button on it, the button has icons . When I click 
 the button it opens a sub card. Some times on the sub card, I can see the 
 icon from the main card.
 Why does this happen and how can I stop it ?
 
 Thanks
 Terence
 web:http://www.ctec.co.nz
 ___
 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: Need help

2012-09-20 Thread J. Landman Gay

On 9/20/12 5:19 PM, Terence Blyth wrote:

Hi thanks, I have in preOpenCard at the start  lock screen and at the
end PreOpenCard  unlock screen. Could this do it ?


Not really. But I'm not sure what you mean by a sub card. Do you mean 
just another card in the stack? If so, you've probably added the button 
to a shared group and that group has been placed on the other card. You 
can unplace the group from that card using the Objects menu - Remove group.


--
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: Need help

2012-09-20 Thread Bob Sneidar
Except that the initial email said it was intermittent. I have had something 
like this happen to me whilst messing with locking screens in preopencard 
handlers. Not sure what I did to remedy it though. I would get datagrid redraw 
problems and what not. Gave me a start the first time I saw it I can tell you! 

Bob


On Sep 20, 2012, at 3:29 PM, J. Landman Gay wrote:

 On 9/20/12 5:19 PM, Terence Blyth wrote:
 Hi thanks, I have in preOpenCard at the start  lock screen and at the
 end PreOpenCard  unlock screen. Could this do it ?
 
 Not really. But I'm not sure what you mean by a sub card. Do you mean just 
 another card in the stack? If so, you've probably added the button to a 
 shared group and that group has been placed on the other card. You can 
 unplace the group from that card using the Objects menu - Remove group.


___
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: groove blox - started already. Need help with arrays and snap to

2011-08-11 Thread Bob Sneidar
Arrays are easy. To create one, simply put something into the first element: 
put ~/Music/GrooveBox/groovyarp.wav into arps[track1]. If instead, you want 
a multidimensional array containing all your categories: put 
~/Music/GrooveBox/groovyarp.wav into aTracks[arps][track1]. 

If you need multiple elements for each track:
put Groovy Arp into aTracks[arps][track1][name]
put ~/Music/GrooveBox/groovyarp.wav into aTracks[arps][track1][path]
put Groovy Rythm into aTracks[drums][track1][name]
put ~/Music/GrooveBox/groovyrythm.wav into aTracks[drums][track1][path]

If the tracks are the top level key:
put Groovy Rythm into aTracks[track1][name]
put Drums into aTracks[track1][type]
put ~/Music/GrooveBox/groovyrythm.wav into aTracks[track1][path]
put Groovy Arp into aTracks[track2][name]
put Arps into aTracks[track2][type]
put ~/Music/GrooveBox/groovyarp.wav into aTracks[track2][path]

A few caveats: It does not follow that the order of the keys will be the order 
you created them. I do not know why this is. For this reason, you could not put 
the keys of aTracks and expect them to be in the order track1,track2,track3, 
 Refer to them by name. Secondly, you cannot test to see if atracks is 
empty, because an array will return true. I do not know why this is. To see if 
an array variable is empty, use: atracks is an array. 

If you have Trevor Devore's excellent and highly recommended sqlYoga, you can 
use his printkeys() function to turn an array into text that can be searched or 
filtered. Using the above example it would look like this:
track1
 name: Groovy Rythm
 type: Drums
 path: ~/Music/GrooveBox/groovyrythm.wav
track2
 name: Groovy Arp
 type: Arps
 path: ~/Music/GrooveBox/groovyarp.wav

Now you can use the filter command to get all the paths: 
   filter thetracks with *path:*

which produces: 
 path: ~/Music/GrooveBox/groovyrythm.wav
 path: ~/Music/GrooveBox/groovyarp.wav

Now delete the headers using: 
   replace  path:  with empty in thetracks

Which magically and without fuss produces a list of file paths to your tracks:
~/Music/GrooveBox/groovyrythm.wav
~/Music/GrooveBox/groovyarp.wav

Very handy with large arrays! Don't have to create repeat loops! (Trevor did 
that for you). :-)

Bob


On Aug 10, 2011, at 3:44 PM, Admin wrote:

 
 
 Dear All, 
 
 I already got drag and drop sort of working - can drag
 a wave file to a rectangle and it retains the name of the file - so now
 I can play that file once it is dragged to the track view. 
 
 I am not
 sure how to make an array - and I assume an array is what I need to keep
 track of multiple blocks (there are 4 categories of blocks - drum, arp,
 bass and fxfill) 
 
 Also, how would I implement a 'snap to' interface?
 
 
 Mike 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode