FYI

2021-03-17 Thread jbv via use-livecode

https://arstechnica.com/science/2021/03/how-does-the-brain-interpret-computer-languages/

BTW I wonder how brain activity would look like with xTalk...

Best

___
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: FYI: Cause found for LC crashing to desktop when Browser widget opens PDF

2020-01-22 Thread Paul McClernan via use-livecode
I believe 32bit run mode was the default for earlier versions of LiveCode
but 9.x is 64bit by default. I bring that up out of curiosity because I had
a problem with a browser plug-in (64/32bit) running inside a LiveCode
Browser widget in the past. The plugin would crash running in 64bit,
sometimes taking LiveCode Engine with it, but if it worked perfectly in LC
in 32bit mode or earlier versions of LiveCode.  Of course the plugin worked
fine in Safari and on both 32bit and 64bit kernel machines. I've since
replaced that plug-in with my own LCB Library that does most of what I need
that fo (and also got rid of my 32bit laptop) so I didn't investigate
further.

> On Jan 20, 2020, at 07:41 , Mark Waddingham via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > On 2020-01-20 15:20, Matthias Rebbe via use-livecode wrote:
> >> Just want to let you know that Livecode Dev Team confirmed that this is
> a bug
> >> https://quality.livecode.com/show_bug.cgi?id=22534
> >
> > Well, we confirmed it crashed ;) Whether it is a bug in LC or Adobe DC
> or not
> > is another matter.
> >
> > There was a similar issue a very long time ago with Adobe's PDF plugin -
> it would
> > cause the browser external to crash if used (we used the system webview
> back then
> > as we do now)... The Adobe plugin was doing things it shouldn't (I can't
> recall
> > if we managed to come up with a hack in the browser external to stop it
> or not; or
> > whether Adobe eventually cleaned up their plugin!)
> >
> > Warmest Regards,
> >
> > Mark.
> >
> > --
> > Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> > LiveCode: Everyone can create apps
>
>
___
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: FYI: Cause found for LC crashing to desktop when Browser widget opens PDF

2020-01-21 Thread Bob Sneidar via use-livecode
Adobe developers doing things they shouldn't??? Whoever heard of such a 
t'ing!!! ;-P

Bob S


> On Jan 20, 2020, at 07:41 , Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2020-01-20 15:20, Matthias Rebbe via use-livecode wrote:
>> Just want to let you know that Livecode Dev Team confirmed that this is a bug
>> https://quality.livecode.com/show_bug.cgi?id=22534
> 
> Well, we confirmed it crashed ;) Whether it is a bug in LC or Adobe DC or not
> is another matter.
> 
> There was a similar issue a very long time ago with Adobe's PDF plugin - it 
> would
> cause the browser external to crash if used (we used the system webview back 
> then
> as we do now)... The Adobe plugin was doing things it shouldn't (I can't 
> recall
> if we managed to come up with a hack in the browser external to stop it or 
> not; or
> whether Adobe eventually cleaned up their plugin!)
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps


___
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: FYI: Cause found for LC crashing to desktop when Browser widget opens PDF

2020-01-21 Thread Bob Sneidar via use-livecode
Great sleuthing Matthias. 

Bob S


> On Jan 20, 2020, at 07:20 , Matthias Rebbe via use-livecode 
>  wrote:
> 
> Just want to let you know that Livecode Dev Team confirmed that this is a bug
> 
> https://quality.livecode.com/show_bug.cgi?id=22534
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code


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


Re: FYI: Cause found for LC crashing to desktop when Browser widget opens PDF

2020-01-20 Thread Matthias Rebbe via use-livecode
Yes, you are right. I am sorry.
I should have written that LC Dev Team confirmed that there is a 
incompatibility between LC 9 and Adobe Acrobt.
But at least, it´s confirmed. ;)


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 20.01.2020 um 16:41 schrieb Mark Waddingham via use-livecode 
> :
> 
> On 2020-01-20 15:20, Matthias Rebbe via use-livecode wrote:
>> Just want to let you know that Livecode Dev Team confirmed that this is a bug
>> https://quality.livecode.com/show_bug.cgi?id=22534
> 
> Well, we confirmed it crashed ;) Whether it is a bug in LC or Adobe DC or not
> is another matter.
> 
> There was a similar issue a very long time ago with Adobe's PDF plugin - it 
> would
> cause the browser external to crash if used (we used the system webview back 
> then
> as we do now)... The Adobe plugin was doing things it shouldn't (I can't 
> recall
> if we managed to come up with a hack in the browser external to stop it or 
> not; or
> whether Adobe eventually cleaned up their plugin!)
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> ___
> 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: FYI: Cause found for LC crashing to desktop when Browser widget opens PDF

2020-01-20 Thread Mark Waddingham via use-livecode

On 2020-01-20 15:20, Matthias Rebbe via use-livecode wrote:
Just want to let you know that Livecode Dev Team confirmed that this is 
a bug


https://quality.livecode.com/show_bug.cgi?id=22534


Well, we confirmed it crashed ;) Whether it is a bug in LC or Adobe DC 
or not

is another matter.

There was a similar issue a very long time ago with Adobe's PDF plugin - 
it would
cause the browser external to crash if used (we used the system webview 
back then
as we do now)... The Adobe plugin was doing things it shouldn't (I can't 
recall
if we managed to come up with a hack in the browser external to stop it 
or not; or

whether Adobe eventually cleaned up their plugin!)

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
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: FYI: Cause found for LC crashing to desktop when Browser widget opens PDF

2020-01-20 Thread Matthias Rebbe via use-livecode
Just want to let you know that Livecode Dev Team confirmed that this is a bug

https://quality.livecode.com/show_bug.cgi?id=22534


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 14.01.2020 um 18:56 schrieb Matthias Rebbe via use-livecode 
> :
> 
> Hi,
> 
> maybe this is of use for the one or the other.
> in any case LC crashes on Mac to desktop when opening a PDF in the Browser 
> Widget and your are getting crazy because of that,  then check if Acrobat 
> software is installed on your system.
> 
> A few days ago i mentionend in an answer to an other post, that   LC 9.5/9.6 
> and also standalones created with that versions, but not LC8, crash to 
> desktop when one opens a PDF in the Browser Widget. 
> 
> I contacted support, as i was pretty sure that this worked in the past.
> 
> As this only happened on my iMac, but not on my Macbook, i decided to 
> completely erase the hard disk of my iMac and reinstall the OS and all needed 
> LC stuff, because i had to finish some important work and waiting for an 
> answer from support or continuing on the Macbook was not an option for me. 
> 
> I planned to install the other software one after the other  when i needed it.
> 
> All went well and the problem with the PDF in the widget did not happen 
> anymore. Today i needed to install Acrobat DC for some tasks.
> An hour later or so i received an answer from support and one question from 
> Dev team was if by any chance Acrobat software is/was installed on my machine.
> 
> I tried again in LC and the crash happened again. After uninstalling Acrobat 
> DC the crashes did not happen anymore. 
> 
> I reported this back to support.
> 
> Of course not using Acrobat DC anymore is no final solution, but for the 
> moment it´s a workaround and hopefully the Dev team finds out what exactly is 
> going wrong with.
> 
> Matthias
> 
> 
> 
> 
> ___
> 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


FYI: Cause found for LC crashing to desktop when Browser widget opens PDF

2020-01-14 Thread Matthias Rebbe via use-livecode
Hi,

maybe this is of use for the one or the other.
in any case LC crashes on Mac to desktop when opening a PDF in the Browser 
Widget and your are getting crazy because of that,  then check if Acrobat 
software is installed on your system.

A few days ago i mentionend in an answer to an other post, that   LC 9.5/9.6 
and also standalones created with that versions, but not LC8, crash to desktop 
when one opens a PDF in the Browser Widget. 

I contacted support, as i was pretty sure that this worked in the past.

As this only happened on my iMac, but not on my Macbook, i decided to 
completely erase the hard disk of my iMac and reinstall the OS and all needed 
LC stuff, because i had to finish some important work and waiting for an answer 
from support or continuing on the Macbook was not an option for me. 

I planned to install the other software one after the other  when i needed it.

All went well and the problem with the PDF in the widget did not happen 
anymore. Today i needed to install Acrobat DC for some tasks.
An hour later or so i received an answer from support and one question from Dev 
team was if by any chance Acrobat software is/was installed on my machine.

I tried again in LC and the crash happened again. After uninstalling Acrobat DC 
the crashes did not happen anymore. 

I reported this back to support.

Of course not using Acrobat DC anymore is no final solution, but for the moment 
it´s a workaround and hopefully the Dev team finds out what exactly is going 
wrong with.

Matthias




___
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: FYI: How to reliably identify an Android Tablet microSD Card

2018-12-20 Thread Bob Sneidar via use-livecode
Interesting approach. Of course, the downside is that if anything changes, the 
method becomes ineffective for that new device or for all andriods if the 
change is fundamental enough. 

Bob S


> On Dec 19, 2018, at 03:37 , Peter Reid via use-livecode 
>  wrote:
> 
> FYI
> 
> I've managed to put together some code that reliably locates the microSD card 
> in 4 very different Android-based tablets. The approach involves 3 different 
> methods:
> 
> 1. Search for a known folder on the SD card starting in the standard "/mnt" 
> folder using a breadth-first search strategy.
> 
> 2. Search for a known folder on the SD card starting in the less standard 
> "/storage" folder using a breadth-first search strategy.
> 
> 3. Search for a known folder using full paths that are used by specific 
> manufacturers. These look as though they should be located by method 1. (they 
> are all paths from "/mnt") but sometimes fail 1. however they work if the 
> full path is specified!
> 
> Here's my code for "findSDcard"...
> 
> 
> 
> on findSDcard
>   constant \
>  cSDcardRoot1 = "/mnt/ext_sdcard/Android/data/com.myorg.myapp/files", \
>  cSDcardRoot2 = "/mnt/sdcard2/Android/data/com.myorg.myapp/files", \
>  cSDcardRoot3 = "/mnt/m_external_sd/Android/data/com.myorg.myapp/files", \
>  cSDcardRoot4 = "/mnt/sdcard/Android/data/com.myorg.myapp/files", \
>  cSDcardRoot5 = "/mnt/extSdCard/Android/data/com.myorg.myapp/files", \
>  cSDcardRoot6 = "/mnt/external_sd/Android/data/com.myorg.myapp/files", \
>  cSDcardRoot7 = "/mnt/SDCard/Android/data/com.myorg.myapp/files"
> 
>global gDataPath -- /myapp-data
>global gSDcard -- path to app's data folder
> 
>   set wholeMatches to true
>   put empty into gSDcard
>   put (char 2 to -1 of gDataPath) into tTargetFolderName
>   if the platform is "android" then
>  put "/mnt" into tDeviceRoot
>  if there is a folder tDeviceRoot then
> -- search in standard /mnt folders:
> put empty into tFoundPath
> folderExists tTargetFolderName, tDeviceRoot, tFoundPath
> if tFoundPath is not empty then
>put tFoundPath into gSDcard
> end if
>  end if
>  if gSDcard is empty then
> -- try non-standard /storage folders:
> if there is a folder "/storage" then
>-- search in non-standard /storage folders:
>put "/storage" into tDeviceRoot
>put empty into tFoundPath
>folderExists tTargetFolderName, tDeviceRoot, tFoundPath
>if tFoundPath is not empty then
>   put tFoundPath into gSDcard 
>end if
> end if
>  end if
>  if gSDcard is empty then
> -- try bespoke SD locations:
> if there is a folder cSDcardRoot1 then
>put cSDcardRoot1 into gSDcard-- Huawei
> else if there is a folder cSDcardRoot2 then
>put cSDcardRoot2 into gSDcard-- Amazon
> else if there is a folder cSDcardRoot3 then
>put cSDcardRoot3 into gSDcard-- Lenovo
> else if there is a folder cSDcardRoot4 then
>put cSDcardRoot4 into gSDcard-- Fusion
> else if there is a folder cSDcardRoot5 then
>put cSDcardRoot5 into gSDcard-- ??
> else if there is a folder cSDcardRoot6 then
>put cSDcardRoot6 into gSDcard-- ??
> else if there is a folder cSDcardRoot7 then
>put cSDcardRoot7 into gSDcard-- Hudl?
> end if
>  end if
>   end if
> end findSDcard
> 
> on folderExists pFolderName, pRootPath, @pFoundPath
>   constant cNoDotsRegex = "^\..*"
> 
>   -- breadth-first search for a given folder
>   put empty into pPath
>   if there is a folder pRootPath then
>  put empty into tSubFolders
>  put folders(pRootPath) into tFolderList
>  filter lines of tFolderList without regex cNoDotsRegex
>  repeat for each line tFolder in tFolderList
> if tFolder = pFolderName then
>-- found it:
>put pRootPath into pFoundPath
>exit folderExists
> else
>-- add sub-folder to list for checking:
>put pRootPath & "/" & tFolder & return after tSubFolders
> end if
>  end repeat
>  if tSubFolders is empty then
> exit folderExists
>  end if
>  repeat for each line tSubFolder in tSubFolders
> folderExists pFolderName, tSubFolder, pFoundPath
> if pFoundPat

FYI: How to reliably identify an Android Tablet microSD Card

2018-12-19 Thread Peter Reid via use-livecode
FYI

I've managed to put together some code that reliably locates the microSD card 
in 4 very different Android-based tablets. The approach involves 3 different 
methods:

1. Search for a known folder on the SD card starting in the standard "/mnt" 
folder using a breadth-first search strategy.

2. Search for a known folder on the SD card starting in the less standard 
"/storage" folder using a breadth-first search strategy.

3. Search for a known folder using full paths that are used by specific 
manufacturers. These look as though they should be located by method 1. (they 
are all paths from "/mnt") but sometimes fail 1. however they work if the full 
path is specified!

Here's my code for "findSDcard"...



on findSDcard
   constant \
  cSDcardRoot1 = "/mnt/ext_sdcard/Android/data/com.myorg.myapp/files", \
  cSDcardRoot2 = "/mnt/sdcard2/Android/data/com.myorg.myapp/files", \
  cSDcardRoot3 = "/mnt/m_external_sd/Android/data/com.myorg.myapp/files", \
  cSDcardRoot4 = "/mnt/sdcard/Android/data/com.myorg.myapp/files", \
  cSDcardRoot5 = "/mnt/extSdCard/Android/data/com.myorg.myapp/files", \
  cSDcardRoot6 = "/mnt/external_sd/Android/data/com.myorg.myapp/files", \
  cSDcardRoot7 = "/mnt/SDCard/Android/data/com.myorg.myapp/files"
  
global gDataPath -- /myapp-data
global gSDcard -- path to app's data folder

   set wholeMatches to true
   put empty into gSDcard
   put (char 2 to -1 of gDataPath) into tTargetFolderName
   if the platform is "android" then
  put "/mnt" into tDeviceRoot
  if there is a folder tDeviceRoot then
 -- search in standard /mnt folders:
 put empty into tFoundPath
 folderExists tTargetFolderName, tDeviceRoot, tFoundPath
 if tFoundPath is not empty then
put tFoundPath into gSDcard
 end if
  end if
  if gSDcard is empty then
 -- try non-standard /storage folders:
 if there is a folder "/storage" then
-- search in non-standard /storage folders:
put "/storage" into tDeviceRoot
put empty into tFoundPath
folderExists tTargetFolderName, tDeviceRoot, tFoundPath
if tFoundPath is not empty then
   put tFoundPath into gSDcard 
end if
 end if
  end if
  if gSDcard is empty then
 -- try bespoke SD locations:
 if there is a folder cSDcardRoot1 then
put cSDcardRoot1 into gSDcard-- Huawei
 else if there is a folder cSDcardRoot2 then
put cSDcardRoot2 into gSDcard-- Amazon
 else if there is a folder cSDcardRoot3 then
put cSDcardRoot3 into gSDcard-- Lenovo
 else if there is a folder cSDcardRoot4 then
put cSDcardRoot4 into gSDcard-- Fusion
 else if there is a folder cSDcardRoot5 then
put cSDcardRoot5 into gSDcard-- ??
 else if there is a folder cSDcardRoot6 then
put cSDcardRoot6 into gSDcard-- ??
 else if there is a folder cSDcardRoot7 then
put cSDcardRoot7 into gSDcard-- Hudl?
 end if
  end if
   end if
end findSDcard

on folderExists pFolderName, pRootPath, @pFoundPath
   constant cNoDotsRegex = "^\..*"
   
   -- breadth-first search for a given folder
   put empty into pPath
   if there is a folder pRootPath then
  put empty into tSubFolders
  put folders(pRootPath) into tFolderList
  filter lines of tFolderList without regex cNoDotsRegex
  repeat for each line tFolder in tFolderList
 if tFolder = pFolderName then
-- found it:
put pRootPath into pFoundPath
exit folderExists
 else
-- add sub-folder to list for checking:
put pRootPath & "/" & tFolder & return after tSubFolders
 end if
  end repeat
  if tSubFolders is empty then
 exit folderExists
  end if
  repeat for each line tSubFolder in tSubFolders
 folderExists pFolderName, tSubFolder, pFoundPath
 if pFoundPath is not empty then
exit folderExists
 end if
  end repeat
   end if
end folderExists



Note that the above was necessary because specialFolderPath("external 
documents") doesn't work reliably across the 4 Android-based tablets I'm trying 
to support.

If anyone has a more elegant or succinct method, please let me know.  In the 
meantime you're welcome to use the above code.

Peter
--
Peter Reid
Loughborough, UK

> On 28 Nov 2018, at 11:49am, Peter Reid  wrote:
> 
> I've got an app running on an Android 8.1 7in tablet which uses a microSD 
> card for its RW data storage. I've tried using:
> 
>   specialFolderPath("external doc

Re: android sdk fyi

2016-07-22 Thread Mark Schonewille

Thanks Mike!
+1

Kind regards,

Mark Schonewille
http://economy-x-talk.com
https://www.facebook.com/marksch

Buy the most extensive book on the
LiveCode language:
http://livecodebeginner.economy-x-talk.com

Op 07-Jul-16 om 14:47 schreef Mike Bonner:

I recently started working with android again, and was having trouble
building successfully.  aapt.exe would crash every time.  If you happen to
run into this, go to the sdk manager and install the build tools 22.01,
then backup the aapt.exe in the most recent build tools (just in case) and
copy the aapt.exe from the 22.01 build tools in to replace it.

A version other than 22.01 might work, but during research of the problem I
ran across mention of that specific version. Unfortunately, I can't seem to
find it again, but hey, it worked!



___
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


android sdk fyi

2016-07-07 Thread Mike Bonner
I recently started working with android again, and was having trouble
building successfully.  aapt.exe would crash every time.  If you happen to
run into this, go to the sdk manager and install the build tools 22.01,
then backup the aapt.exe in the most recent build tools (just in case) and
copy the aapt.exe from the 22.01 build tools in to replace it.

A version other than 22.01 might work, but during research of the problem I
ran across mention of that specific version. Unfortunately, I can't seem to
find it again, but hey, it worked!
___
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


Option Drag FYI

2014-10-27 Thread Peter Haworth
Just learned the above trick to create a copy of a control from a recent
thread.

Found out today that there is a difference between copy/paste and
option-drag.  If you copy/paste a control in a group, the copy is not part
of the group, but if you option-drag it, the copy remains in the group.

The Edit menu Duplicate and Replicate commands also leave the copies in the
group.

Pete
lcSQL Software http://www.lcsql.com
Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
SQLiteAdmin http://www.lcsql.com/sqliteadmin.html
___
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: Option Drag FYI

2014-10-27 Thread Colin Holgate
I think it depends on how you work with groups. If you use Edit Group to go in 
and edit a group, copy and paste acts the same as option-drag. If you prefer to 
directly select objects inside a group, without actually going into the group, 
then copy and paste acts differently, because you’re at the card level at the 
time.
___
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: Option Drag FYI

2014-10-27 Thread Peter Haworth
Right, I wasn't in group edit mode at the time I tried all the different
options.

I wasn't complaining, I think it's great there's a way to make a copy of an
object without going into group edit mode.  Would be even nicer if there
was a Paste into group command.

Pete
lcSQL Software http://www.lcsql.com
Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
SQLiteAdmin http://www.lcsql.com/sqliteadmin.html

On Mon, Oct 27, 2014 at 9:59 AM, Colin Holgate co...@verizon.net wrote:

 I think it depends on how you work with groups. If you use Edit Group to
 go in and edit a group, copy and paste acts the same as option-drag. If you
 prefer to directly select objects inside a group, without actually going
 into the group, then copy and paste acts differently, because you’re at the
 card level at the time.
 ___
 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: Option Drag FYI

2014-10-27 Thread J. Landman Gay

On 10/27/2014, 12:49 PM, Peter Haworth wrote:

Would be even nicer if there
was a Paste into group command.


There is. :) Be sure selectGroupedControls is false so that you can 
click a group to select it. Copy a control. Right-click on the target 
group with the edit tool and the contextual menu has Paste into group 
available.


--
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: Option Drag FYI

2014-10-27 Thread Peter Haworth
Nice! Thank you.  I've only ever looked on the Edit menu before.

Pete
lcSQL Software http://www.lcsql.com
Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
SQLiteAdmin http://www.lcsql.com/sqliteadmin.html

On Mon, Oct 27, 2014 at 11:44 AM, J. Landman Gay jac...@hyperactivesw.com
wrote:

 On 10/27/2014, 12:49 PM, Peter Haworth wrote:

 Would be even nicer if there
 was a Paste into group command.


 There is. :) Be sure selectGroupedControls is false so that you can click
 a group to select it. Copy a control. Right-click on the target group with
 the edit tool and the contextual menu has Paste into group available.

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

___
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


FYI iTunes Connect bug

2014-10-09 Thread Ralph DiMola
It never ends with Apple and iOS 8/Xcode 6. I can't submit for review
because the third question is missing from the web page. I had trouble
getting onto the web site earlier today but chalked it up to a fluke and
tried after lunch and had no problem logging on. Apple must have injected a
bug into the web site. Other are having the same problem. See
http://stackoverflow.com/questions/26286454/submit-for-review-button-grayed-
out-xcode-6

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net



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


Re: Fwd: [FYI] Using Graphic Commands on Server

2013-06-30 Thread stephen barncard
I am sad to report that it does not seem possible to use templates to do
group snapshots yet.

This would require the ability to manipulate graphic objects rather than
their templates.


here is my code for scaling (there may some pointless garbage in the code):

?rev
/*
TEST OF ABILITY TO IMPORT,
SCALE AND EXPORT IMAGE ON LIVECODE SERVER

uses URL for input:

test.iRev?imagename=DSC4.JPGpercent=50

SQB 20130630
*/

--  get parameters from URL
put $_GET[imagename] into pFilename
put $_GET[percent] into pScalePercent

-- confirm input
put pFilename  br  pScalePercent

-- converts and saves image
convertImage pFilename,pScalePercent


/*

importing and scaling images on server

*/


on convertImage pSourceName,pScalePercent
   importTImage pSourceName
   if the result is not empty
   then
-- report if the file is not there
  put the result
  exit to top
   end if
   scaleTImage pSourceName,pScalePercent
   exportTImage
end convertImage

on importTImage pFileName
   if there is a file pFileName
   then
  set the filename of the templateImage to 
  wait .1 second with messages
  set the filename of the templateImage to pFileName
  put the rect of the templateImage into tRect
  set the cOriginalRect of the templateImage to tRect
  set the cOriginalWidth of the templateImage to the width of the
templateImage
  set the cOriginalHeight of the templateImage to the height of the
templateImage
  set the topLeft of the templateImage to 38,132
   else
  return file not found
   end if
end importTImage

on scaleTImage pIname,pScalePCT
   put the cOriginalWidth of the templateImage into a
   put the cOriginalHeight of the templateImage into b
   put round((a*pScalePCT)/100) into a
   put round((b*pScalePCT)/100) into b
   set the width of the templateImage to a
   set the height of the templateImage to b
   set the topLeft of the templateImage to 38,132
end scaleTImage

on exportTImage
   put randomname(image_,.png) into x
   export the templateImage to file x as PNG
end exportTImage

function randomName preamble,postamble
   --  put randomname(image_,.png)
   put randombytes(2) into a
   repeat for each char cCH in a
  put charToNum(cCH) into x
  put baseconvert(x,10,16) after tOut
   end repeat
   return preamble  tOut  postamble
end randomName

?


On Sat, Jun 29, 2013 at 10:44 PM, stephen barncard 
stephenrevoluti...@barncard.com wrote:

 got it. An overlay of sorts. Very useful. Good idea..

 I would need to use templateField  and position it.

 I'll give it a try...

 sqb


 On Sat, Jun 29, 2013 at 10:40 PM, Richard Gaskin 
 ambassa...@fourthworld.com wrote:

 stephen barncard wrote:

  On Sat, Jun 29, 2013 at 10:21 PM, Richard Gaskin wrote:
  Do we have the ability to export objects other than images in
  that build?
 
  Once we can export groups we have custom greeting cards and a
  whole lot more...
 
  Richard,
 
  Help me out here - scratching my head...
  what grouped objects would be useful on server?

 Suppose for example you want to make customized greeting cards.  So you
 have a selection of pictures, and let the user enter text, which will be
 embedded in the image.

 If you had to calculate the pixel positions for every letter and insert
 them by monkeying with the imageData, it would be tedious, error-prone, and
 probably look horrible.

 Much simpler would be to have a script that takes the input from the
 user, sets the text of a field, and exports a snapshot of a group which
 contains the field and the original picture, generating a composite JPEG
 which can be sent back to the browser or emailed.

 There are all sorts of things we can do by combining vector objects to
 create raster ouput - provided, of course, that the latest LC server now
 has its image rendering sufficiently factored from the UI routines that
 it's at long last possible.


 --
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for Desktop, Mobile, and 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-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode




 --



 Stephen Barncard
 San Francisco Ca. USA

 more about sqb  http://www.google.com/profiles/sbarncar




-- 



Stephen Barncard
San Francisco Ca. USA

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


Re: Fwd: [FYI] Using Graphic Commands on Server

2013-06-30 Thread Mike Bonner
This is the root, you can locate stuff from there in the tree.
http://downloads.livecode.com/livecode/


On Sun, Jun 30, 2013 at 2:26 PM, Richard Gaskin
ambassa...@fourthworld.comwrote:

 stephen barncard wrote:

 I am sad to report that it does not seem possible to use templates to do
 group snapshots yet.


 I wouldn't have imagined that template objects could be exported from -
 does that work on the desktop?

 I was going to experiment with this myself to see if I can export group
 objects, but I can't turn up the link to the latest LC Server.  How did I
 miss that?  I'm sure it's on livecode.com somewhere, no?


 --
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  
 http://twitter.com/**FourthWorldSyshttp://twitter.com/FourthWorldSys


 __**_
 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-livecodehttp://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: Fwd: [FYI] Using Graphic Commands on Server

2013-06-30 Thread stephen barncard
On Sun, Jun 30, 2013 at 1:26 PM, Richard Gaskin
ambassa...@fourthworld.comwrote:

 I wouldn't have imagined that template objects could be exported from -
 does that work on the desktop?


I don't know but it works on the server!  I changed all references to
image xxx to the templateImage in the desktop version.




 I was going to experiment with this myself to see if I can export group
 objects, but I can't turn up the link to the latest LC Server.  How did I
 miss that?  I'm sure it's on livecode.com somewhere, no?



here:


http://downloads.livecode.com/livecode/server/6_1_0/


let me know if you can do it...



this is what my (sloppy and failed) code looked like  (in a stack for this
test, originally written for image objects which failed)

*on* createLabledTGraphic pFileName

   *set* the filename of the templateImage to pFileName



   *set* the topLeft of the templateImage to 38,132



   *--create field textField*

   *set* the text of the templatefield to  shmengie

   *set* the textsize of the templatefield to 24

   *set* the width of the templatefield to  200

   *set* the height of the templatefield to 100



   *group* the templatefield and templateImage

   *set* the name of last *group* to thegroup

   *relayer* the templatefield after the templateImage

   *set* the loc of the templatefield to the loc of grp theGroup

   *export* snapshot from the templateGroup to file groupThing.png as PNG

   *ungroup* templateGroup

   *-- delete fld textField*

   *-- put the result*
*end* createLabledTGraphic

error reporting on the server is excellent.

stack /home/cranbus/media.barncard.com/photo/servergraphics.rev
  row 124, col 1: group: object cannot be grouped
  row 124, col 1: Handler: error in statement (createLabledTGraphic)
file /home/cranbus/media.barncard.com/photo/test.iRev
  row 25, col 1: Handler: can't find handler (createLabledTGraphic)








-- 



Stephen Barncard
San Francisco Ca. USA

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


Re: Fwd: [FYI] Using Graphic Commands on Server

2013-06-30 Thread Richard Gaskin

stephen barncard wrote:


On Sun, Jun 30, 2013 at 1:26 PM, Richard Gaskin wrote:


I wouldn't have imagined that template objects could be exported from -
does that work on the desktop?


I don't know but it works on the server!  I changed all references to
image xxx to the templateImage in the desktop version.


I'm confused - it works now?


I was going to experiment with this myself to see if I can export group
objects, but I can't turn up the link to the latest LC Server.  How did I
miss that?  I'm sure it's on livecode.com somewhere, no?


here:

http://downloads.livecode.com/livecode/server/6_1_0/


Thanks, but two questions:

1. Why isn't this linked to from the site - how are others supposed to 
be able to find it?


2. Where are the change logs so we can see what they've been doing with 
graphics support in this version?


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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: Fwd: [FYI] Using Graphic Commands on Server

2013-06-30 Thread Richard Gaskin
FWIW, I just ran a quick test and confirmed that export image works 
well, but export snapshot results in an error (I ran from terminal 
over SSH):


livecode-server exited due to fatal signal 11
  in __kernel_sigreturn @ 0
  in unknown @ 0x81a99c3
  in unknown @ 0x80f6235
  in unknown @ 0x812dfd8
  in unknown @ 0x812efc9
  in unknown @ 0x804d46e
  in unknown @ 0x81a105a
  in unknown @ 0x8085ad4
  in unknown @ 0x808208f
  in unknown @ 0x8082490
  in __libc_start_main @ 230
  in fwrite @ 321

::sigh::

I didn't quite expect export snapshot to work just yet, but it sure 
would be nice.


Hopefully someday

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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: [FYI] Using Graphic Commands on Server

2013-06-30 Thread Monte Goulding

On 01/07/2013, at 6:50 AM, Richard Gaskin ambassa...@fourthworld.com wrote:

 2. Where are the change logs so we can see what they've been doing with 
 graphics support in this version?

The new graphics stuff isn't merged in yet guys. I don't think you will get 
much luck here.

--
Monte Goulding

M E R Goulding - software development services
mergExt - There's an external for that!





___
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: [FYI] Using Graphic Commands on Server

2013-06-30 Thread stephen barncard
I am happy that I can at least create thumbnails on the server for now.
That was the origin of my quest.


On Sun, Jun 30, 2013 at 2:11 PM, Monte Goulding mo...@sweattechnologies.com
 wrote:


 On 01/07/2013, at 6:50 AM, Richard Gaskin ambassa...@fourthworld.com
 wrote:

  2. Where are the change logs so we can see what they've been doing with
 graphics support in this version?

 The new graphics stuff isn't merged in yet guys. I don't think you will
 get much luck here.

 --
 Monte Goulding

 M E R Goulding - software development services
 mergExt - There's an external for that!





 ___
 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




-- 



Stephen Barncard
San Francisco Ca. USA

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


Fwd: [FYI] Using Graphic Commands on Server

2013-06-29 Thread stephen barncard
I did a test just now using Livecode server 6.0.0 dp1.

I successfully imported a jpg file to the templategraphic ,  scaled it, and
exported to an output file as a png on a server at Dreamhost using an iRev
script.

I also stored the initial rect, height and width of the imported graphic
into custom properties of the templategraphic to allow scaling. Just a
place to put the data, I could have used variables.

so the answer to my own question from a few days ago is YES, at least these
graphic commands work on this version.

And I don't have to use shell calls to ImageMagick.  yay


sqb

-- 
-  !  -


Stephen Barncard
San Francisco Ca. USA
* *

more about sqb http://www.google.com/profiles/sbarncar



-- 



Stephen Barncard
San Francisco Ca. USA

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


Re: Fwd: [FYI] Using Graphic Commands on Server

2013-06-29 Thread Richard Gaskin

Thanks for the update, Stephen.

Do we have the ability to export objects other than images in that build?

Once we can export groups we have custom greeting cards and a whole lot 
more...


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and 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: Fwd: [FYI] Using Graphic Commands on Server

2013-06-29 Thread stephen barncard
Richard,

Help me out here - scratching my head...
what grouped objects would be useful on server? And exported as a binary
file?


On Sat, Jun 29, 2013 at 10:21 PM, Richard Gaskin ambassa...@fourthworld.com
 wrote:

 Thanks for the update, Stephen.

 Do we have the ability to export objects other than images in that build?

 Once we can export groups we have custom greeting cards and a whole lot
 more...

 --
  Richard Gaskin


Stephen Barncard
San Francisco Ca. USA

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


Re: Fwd: [FYI] Using Graphic Commands on Server

2013-06-29 Thread Richard Gaskin

stephen barncard wrote:
 On Sat, Jun 29, 2013 at 10:21 PM, Richard Gaskin wrote:
 Do we have the ability to export objects other than images in
 that build?

 Once we can export groups we have custom greeting cards and a
 whole lot more...

 Richard,

 Help me out here - scratching my head...
 what grouped objects would be useful on server?

Suppose for example you want to make customized greeting cards.  So you 
have a selection of pictures, and let the user enter text, which will be 
embedded in the image.


If you had to calculate the pixel positions for every letter and insert 
them by monkeying with the imageData, it would be tedious, error-prone, 
and probably look horrible.


Much simpler would be to have a script that takes the input from the 
user, sets the text of a field, and exports a snapshot of a group which 
contains the field and the original picture, generating a composite JPEG 
which can be sent back to the browser or emailed.


There are all sorts of things we can do by combining vector objects to 
create raster ouput - provided, of course, that the latest LC server now 
has its image rendering sufficiently factored from the UI routines that 
it's at long last possible.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and 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: Fwd: [FYI] Using Graphic Commands on Server

2013-06-29 Thread stephen barncard
got it. An overlay of sorts. Very useful. Good idea..

I would need to use templateField  and position it.

I'll give it a try...

sqb


On Sat, Jun 29, 2013 at 10:40 PM, Richard Gaskin ambassa...@fourthworld.com
 wrote:

 stephen barncard wrote:

  On Sat, Jun 29, 2013 at 10:21 PM, Richard Gaskin wrote:
  Do we have the ability to export objects other than images in
  that build?
 
  Once we can export groups we have custom greeting cards and a
  whole lot more...
 
  Richard,
 
  Help me out here - scratching my head...
  what grouped objects would be useful on server?

 Suppose for example you want to make customized greeting cards.  So you
 have a selection of pictures, and let the user enter text, which will be
 embedded in the image.

 If you had to calculate the pixel positions for every letter and insert
 them by monkeying with the imageData, it would be tedious, error-prone, and
 probably look horrible.

 Much simpler would be to have a script that takes the input from the user,
 sets the text of a field, and exports a snapshot of a group which contains
 the field and the original picture, generating a composite JPEG which can
 be sent back to the browser or emailed.

 There are all sorts of things we can do by combining vector objects to
 create raster ouput - provided, of course, that the latest LC server now
 has its image rendering sufficiently factored from the UI routines that
 it's at long last possible.


 --
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for Desktop, Mobile, and 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-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode




-- 



Stephen Barncard
San Francisco Ca. USA

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


Re: FYI, initializing variables by reference

2012-06-19 Thread Peter M. Brigham
Yup, try it and see. The variables are loaded and their values are available in 
subsequent script lines. 

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

On Jun 18, 2012, at 4:53 PM, Bob Sneidar wrote:

 You are saying these variables survive the command call because they are 
 called by reference? Interesting! I would have thought that this would throw 
 a compile error because the variables do not exist in the calling handler. 
 
 Bob
 
 
 On Jun 18, 2012, at 7:24 AM, Peter M. Brigham wrote:
 
 For some reason I never realized that you can use referenced variables in a 
 command handler -- I was thinking of them only when using functions. In case 
 others haven't discovered it, you can, for instance, do something like this:
 
 on prepareInvoice tID
 initializeVars tID, tName, tDOB, tAddr, tPhone
 -- now you can go on and do something
 -- with the initialized variables
 -- ...
 end prepareInvoice
 
 on initializeVars tID, @tName, @tDOB, @tAddr, @tPhone
 put fetchData(tID) into tArray
 put tArray[name] into tName 
 put tArray[DOB] into tDOB
 put tArray[ID] into tID
 put tArray[address] into tAddr 
 put tArray[phone] into tPhone
 end initializeVars
 
 This may not be new to some, but it was new to me.
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 
 ___
 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: FYI, initializing variables by reference

2012-06-19 Thread Bob Sneidar
Brilliant! (Can I immigrate to the UK now please? See? I can speak the 
language!) 

Bob


On Jun 19, 2012, at 5:13 AM, Peter M. Brigham wrote:

 Yup, try it and see. The variables are loaded and their values are available 
 in subsequent script lines. 
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 On Jun 18, 2012, at 4:53 PM, Bob Sneidar wrote:
 
 You are saying these variables survive the command call because they are 
 called by reference? Interesting! I would have thought that this would throw 
 a compile error because the variables do not exist in the calling handler. 
 
 Bob
 
 
 On Jun 18, 2012, at 7:24 AM, Peter M. Brigham wrote:
 
 For some reason I never realized that you can use referenced variables in a 
 command handler -- I was thinking of them only when using functions. In 
 case others haven't discovered it, you can, for instance, do something like 
 this:
 
 on prepareInvoice tID
 initializeVars tID, tName, tDOB, tAddr, tPhone
 -- now you can go on and do something
 -- with the initialized variables
 -- ...
 end prepareInvoice
 
 on initializeVars tID, @tName, @tDOB, @tAddr, @tPhone
 put fetchData(tID) into tArray
 put tArray[name] into tName 
 put tArray[DOB] into tDOB
 put tArray[ID] into tID
 put tArray[address] into tAddr 
 put tArray[phone] into tPhone
 end initializeVars
 
 This may not be new to some, but it was new to me.
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 
 ___
 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


FYI, initializing variables by reference

2012-06-18 Thread Peter M . Brigham
For some reason I never realized that you can use referenced variables in a 
command handler -- I was thinking of them only when using functions. In case 
others haven't discovered it, you can, for instance, do something like this:

on prepareInvoice tID
  initializeVars tID, tName, tDOB, tAddr, tPhone
  -- now you can go on and do something
  -- with the initialized variables
  -- ...
end prepareInvoice

on initializeVars tID, @tName, @tDOB, @tAddr, @tPhone
  put fetchData(tID) into tArray
  put tArray[name] into tName 
  put tArray[DOB] into tDOB
  put tArray[ID] into tID
  put tArray[address] into tAddr 
  put tArray[phone] into tPhone
end initializeVars

This may not be new to some, but it was new to me.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
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: FYI, initializing variables by reference

2012-06-18 Thread Bob Sneidar
You are saying these variables survive the command call because they are called 
by reference? Interesting! I would have thought that this would throw a compile 
error because the variables do not exist in the calling handler. 

Bob


On Jun 18, 2012, at 7:24 AM, Peter M. Brigham wrote:

 For some reason I never realized that you can use referenced variables in a 
 command handler -- I was thinking of them only when using functions. In case 
 others haven't discovered it, you can, for instance, do something like this:
 
 on prepareInvoice tID
  initializeVars tID, tName, tDOB, tAddr, tPhone
  -- now you can go on and do something
  -- with the initialized variables
  -- ...
 end prepareInvoice
 
 on initializeVars tID, @tName, @tDOB, @tAddr, @tPhone
  put fetchData(tID) into tArray
  put tArray[name] into tName 
  put tArray[DOB] into tDOB
  put tArray[ID] into tID
  put tArray[address] into tAddr 
  put tArray[phone] into tPhone
 end initializeVars
 
 This may not be new to some, but it was new to me.
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 
 ___
 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: FYI: Mac trojan horse

2012-02-27 Thread Mark Schonewille
Hi,

Always when I read such articles, I can't help thinking that the antivirus 
software publishers have the most interest in the creation of such viruses. 
From the website: You won’t be surprised to learn that Intego’s own 
VirusBarrier X6 software can detect Flashback if it’s installed, and even 
prevent it from installing in the first place. Doh. Also, this trojan only 
installs itself if... when... again if... and only if 

According to that website, this is how you can check for the trojan:

function virusCheck
 put ls /Users/Shared/.*.so into myShell
 return not (shell(myShell) contains No such file or directory)
end virusCheck

The function returns true if the trojan is on your machine.

--
Best regards,

Mark Schonewille

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

Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za

On 27 feb 2012, at 23:20, Peter M. Brigham, MD wrote:

 Just got this from MacWorld:
 
 Intego finds new strain of Mac Flashback Trojan horse
 http://tinyurl.com/7w3weqa
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig



___
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: FYI: Mac trojan horse

2012-02-27 Thread François Chaplais
do not forget cd /Applications/Utilities  return before ls
best
François
Le 27 févr. 2012 à 23:44, Mark Schonewille a écrit :

 Hi,
 
 Always when I read such articles, I can't help thinking that the antivirus 
 software publishers have the most interest in the creation of such viruses. 
 From the website: You won’t be surprised to learn that Intego’s own 
 VirusBarrier X6 software can detect Flashback if it’s installed, and even 
 prevent it from installing in the first place. Doh. Also, this trojan only 
 installs itself if... when... again if... and only if 
 
 According to that website, this is how you can check for the trojan:
 
 function virusCheck
 put ls /Users/Shared/.*.so into myShell
 return not (shell(myShell) contains No such file or directory)
 end virusCheck
 
 The function returns true if the trojan is on your machine.
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za
 
 On 27 feb 2012, at 23:20, Peter M. Brigham, MD wrote:
 
 Just got this from MacWorld:
 
 Intego finds new strain of Mac Flashback Trojan horse
 http://tinyurl.com/7w3weqa
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 
 
 ___
 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: FYI: Mac trojan horse

2012-02-27 Thread Mark Schonewille
François,

I believe you are a little confused. It is not necessary to change directory in 
this particular case and if it were necessary then it would definitely not be 
/Applications/Utilities.

--
Best regards,

Mark Schonewille

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

Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za

On 28 feb 2012, at 00:05, François Chaplais wrote:

 do not forget cd /Applications/Utilities  return before ls
 best
 François


___
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: FYI: Mac trojan horse

2012-02-27 Thread François Chaplais
Right point.
Le 28 févr. 2012 à 00:16, Mark Schonewille a écrit :

 François,
 
 I believe you are a little confused. It is not necessary to change directory 
 in this particular case and if it were necessary then it would definitely not 
 be /Applications/Utilities.
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za
 


___
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: FYI: Mac trojan horse

2012-02-27 Thread Peter M. Brigham, MD
Right. I already had put a little addition similar to this in my frontscript 
openstack handler so that every time I open a stack it tests for the presence 
of *.so files and, if found, sends me to the website for the instructions on 
how to delete the thing. Obviously, I open stacks constantly during the day 
(and night!), and that way I don't have to remember to check, which I would 
rapidly forget to do. As one of my patients said to me once, I have a mind like 
a steel sieve.

This is the first time in a long time I've even had to *think* about malware. 
Now that I've automated it, I don't have to think about it any more. At least 
until something new comes along.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


On Feb 27, 2012, at 5:44 PM, Mark Schonewille wrote:

 Hi,
 
 Always when I read such articles, I can't help thinking that the antivirus 
 software publishers have the most interest in the creation of such viruses. 
 From the website: You won’t be surprised to learn that Intego’s own 
 VirusBarrier X6 software can detect Flashback if it’s installed, and even 
 prevent it from installing in the first place. Doh. Also, this trojan only 
 installs itself if... when... again if... and only if 
 
 According to that website, this is how you can check for the trojan:
 
 function virusCheck
 put ls /Users/Shared/.*.so into myShell
 return not (shell(myShell) contains No such file or directory)
 end virusCheck
 
 The function returns true if the trojan is on your machine.
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za
 
 On 27 feb 2012, at 23:20, Peter M. Brigham, MD wrote:
 
 Just got this from MacWorld:
 
 Intego finds new strain of Mac Flashback Trojan horse
 http://tinyurl.com/7w3weqa
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 
 
 ___
 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