Re: Where are these stacks being cached?

2014-08-14 Thread Peter W A Wood
Is the stack being cached by Amazon - 
http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html

Peter

J. Landman Gay jac...@hyperactivesw.com wrote:

Thanks for leaving Nabble to get this info here Shawn. I can have my 
client try that. We did discuss DNS issues and decided it probably 
wouldn't apply, because the DNS always resolves to Amazon and that 
doesn't change (though AWS does redirect to lots of different servers.)

I'm still not sure how an old DNS lookup could download a file that 
doesn't exist on the server though. None of the stacks are ever saved to 
disk, they are always in RAM only, so they have to be coming from the 
internet somewhere.


On 8/13/2014, 5:07 PM, Shawn Blc wrote:
 Tried to post on the nabble revolution list, but so far it hasn't been
 accepted (ok, but odd).   So I'll post here.

 ---
 I'm sure you've tried the following, but if you haven't:


 osx mavericks
 
 dscacheutil -flushcache
 sudo killall -HUP mDNSResponder

 or

 windows 7
 
 ipconfig /flushdns
 --




 On Wed, Aug 13, 2014 at 5:03 PM, Mark Wieder mwie...@ahsoftware.net wrote:

 Jacque-

 Try clearing the browser cache on those machines using browser-specific
 instructions, each one different. My guess is the browser has cached the
 old version and is helpfully saving the user from having to download again.

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

 ___
 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



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

Re: Standard Library

2014-08-14 Thread Thierry Douez
 Here is a simple one:

put (?Ptag[A-Z][A-Z0-9]*)\b[^]*.*?/(?P=tag) into RX

if matchText( anyHtmlText, RX) then put Get it!


Ok, just received 2 another positives feedback that this regex is valid!
even with the latest LC x.x DP x  versions. So, we are 3 by now.

And please, avoid coming back saying that it doesn't do this or that;
that was not the idea of my first post.

This line of LC+Regex was here just to explain how to use
named groups, nothing more. So focus on:

- (?Ptag...
- (?P=tag)

If you need some experimented LC + Regex coders,
please, feel free to contact me off-list.


 Regex is powerful stuff. LC + regex is just giving your stack extra
 horsepower for free.

I like nice ending stories :)

Be well,

Thierry


Thierry Douez - http://sunny-tdz.com
Maker of sunnYperl - sunnYmidi - sunnYmage

___
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


mobilePickPhoto

2014-08-14 Thread Eric Corbett
I’m on 6.6.2, building for iOS 7.1 or later and running on an iPhone 4s  above.

After clicking on a photo when using mobilePickPhoto, the phone takes forever 
to return to the application.  (it’s only 5 to 10 seconds average but that’s 
too long, don’t you think?)

Even if we do nothing with the photo after it’s placed on the current card, 
getting back to app is super slow.

The basic script looks like this:

on mouseUp
local tImageAttachment, tImageID, tPhotoCount
   
set vis of the templateImage to false
   
lock screen
   
if exists(img user selected image) then delete img user selected image
   
if the environment is mobile then
put the num of imgs of this cd into tPhotoCount — RETURNING CANCEL MIGHT BE 
BROKEN
answer Choose Photo from... with Library and Camera
mobilePickPhoto it
end if
set the name of the last image of this cd to user selected image
…

I’ve timed every step of the process and the delay is clearly from photo select 
to return to app.

Thanks

-E
___
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: Where are these stacks being cached?

2014-08-14 Thread J. Landman Gay

On 8/14/2014, 1:28 AM, Peter W A Wood wrote:

Is the stack being cached by Amazon 
-http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html



Aha. Yes, it very well could be. I just knew an old copy had to be 
stashed somewhere.


This may be coupled with the DNS issue too; an old URL might be pointing 
to a cached copy. I haven't quite worked out exactly how that would 
happen but it sounds right.


Thank you.

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


Mac printing Scale to fit paper size

2014-08-14 Thread kee nethery
I’m printing postcards onto individually cut postcards and they are a custom 
paper size (4.25 x 6 inches). The stack displays the postcard text in landscape 
mode but the postcards go into the printer in portrait orientation (smallest 
edge gets sucked into the printer). Normally I’d set landscape mode and fit to 
page size, make sure I’d selected the postcard size and print. Worked great 
only now it doesn’t. It seems that whatever code is printing is ignoring the 
landscape mode when printing to fit the paper size. 

If I print without the “fit paper size” it will actually print landscape mode 
but it prints around 1/4th the normal size as if it has decided the postcard is 
actually the size of 8.5x11 paper and scales the image down accordingly.

I’ve tried making the stack larger to compensate and it just prints it larger 
but from the same starting point on the page so most of the text ends up off 
the edge of the postcard.

I’m using Mac OS X 10.9.4 and I’ve tried it with LiveCode 6.6.2 and Livecode 
5.5.4

I did figure out a way to print through a bunch of trial and error but when I 
moved that recipe to another’s machine, it prints in the wrong place on the 
postcard.

Is there someone out there with printer foo who I can hire to fix this for me? 

Kee Nethery
___
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: Mac printing Scale to fit paper size

2014-08-14 Thread Mark Schonewille

Hi Kee,

I'm in a hurry actually, so I don't have time to read everything 
carefully right now, but I do something like this:


put 72 into myMargin
put myMargin,myMargin,item 2 of the printPapersize - myMargin,item 1 of 
the printPapersize - 72 into myPrintRect

print this card into myPrintRect

This should be for landscape format. You can change the margin. Feel 
free to send me an e-mail if this doesn't work for you.


--
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 8/14/2014 21:11, kee nethery wrote:

I’m printing postcards onto individually cut postcards and they are a custom 
paper size (4.25 x 6 inches). The stack displays the postcard text in landscape 
mode but the postcards go into the printer in portrait orientation (smallest 
edge gets sucked into the printer). Normally I’d set landscape mode and fit to 
page size, make sure I’d selected the postcard size and print. Worked great 
only now it doesn’t. It seems that whatever code is printing is ignoring the 
landscape mode when printing to fit the paper size.

If I print without the “fit paper size” it will actually print landscape mode 
but it prints around 1/4th the normal size as if it has decided the postcard is 
actually the size of 8.5x11 paper and scales the image down accordingly.

I’ve tried making the stack larger to compensate and it just prints it larger 
but from the same starting point on the page so most of the text ends up off 
the edge of the postcard.

I’m using Mac OS X 10.9.4 and I’ve tried it with LiveCode 6.6.2 and Livecode 
5.5.4

I did figure out a way to print through a bunch of trial and error but when I 
moved that recipe to another’s machine, it prints in the wrong place on the 
postcard.

Is there someone out there with printer foo who I can hire to fix this for me?

Kee Nethery
___
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


Send mail encrypted with attachments

2014-08-14 Thread Bob Sneidar
Hi all. 

I got Sarah Reichelts SMTP library (and paid for it) and it’s very cool, but it 
does not seem to work with SSL encrypted connections, like Gmail for example. 

Has anyone done this? Might I use Livecode’s built in SSL library to retrofit 
her SMTP library to support SSL? 

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: Send mail encrypted with attachments

2014-08-14 Thread Bob Sneidar
UPDATE:

I poked around in Sarah’s library and found the pertinent line that opens the 
socket. So instead of using:

open socket to sSocketAddr with message “sSMTPsocketConnected

I use:

open secure socket to sSocketAddr with message “sSMTPsocketConnected

the server is smtp.gmail.com:465. I get a read error. Any ideas on how to go 
about opening a secure SMTP connection?

Bob S


On Aug 14, 2014, at 13:21 , Bob Sneidar bobsnei...@iotecdigital.com wrote:

 Hi all. 
 
 I got Sarah Reichelts SMTP library (and paid for it) and it’s very cool, but 
 it does not seem to work with SSL encrypted connections, like Gmail for 
 example. 
 
 Has anyone done this? Might I use Livecode’s built in SSL library to retrofit 
 her SMTP library to support SSL? 
 
 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


___
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


GPS timestamp

2014-08-14 Thread Paul Kocsis
I posted this in the android forums but have not gotten a response yet, so
thought I'd ask here.  Here's my post from the forum:

Didn't know whether to post this in Talking Livecode or here, because
although I'm asking the following with android in mind, I'm really looking
for answers that apply to both android AND iOS.

My baseline question is: when I query for a detailed=true location reading,
one of the items returned is timestamp. In the documentation, there
really is nothing describing what or where this timestamp is coming from.
Is it from actual GPS packets? ...or from the cellular network if the
reading came from AGPS (tower triangulation)?

In reading about GPS timestamps in google's api's (IOS as well), there
seems to be different timestamps one can get depending upon which Location
object is queried.and thus those timestamps can be and mean different
things.

I'm simply trying to ascertain what the heck timestamp am I getting from
LC

I don't know if its a LC thing, or if GPS timestamps from mobile devices in
general are unreliable, but when simply logging detailed location data in a
test app, I see all sorts of (seeming) anomalies with the timestamp, and
it would be ultra-helpful to have some information/documentation on the
origin of what LC is returning as timestamp...

(BTW, I *only* do a detailed=true location mobileSensorReading when I
receive a locationChanged message)

For example, sometimes I'll get timestamps that are several minutes to over
an hour IN THE FUTURE..sometimes I'll see a timestamp that is indeed
old, but cannot be *reliably* deemed as old since one can receive
readings WITH THE SAME OLD TIMESTAMP where the GPS coordinates are
changing and the accuracies are changing/improving. If a GPS reading has
changed (along with its calculated accuracy), then why would I get many
GPS readings with the EXACT same timestamp?

The above makes it difficult (impossible?) to discern actual stale
readings vs usable readings.

Can anyone shed any light on what LC's timestamp actually is and/or why
I'm seeing some of the timestamp anomalies that I detailed above?
___
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: Mac printing Scale to fit paper size

2014-08-14 Thread kee nethery
Mark, 

Thank you very much for the suggestions.

If I print to 8.5x11 paper, I can use the following code to print the postcard 
full page landscape mode.

on mouseUp
   set the printPaperOrientation to landscape 
   put 18 into myMargin
   put myMargin,myMargin,item 2 of the printPapersize - myMargin,item 1 of the 
printPapersize - 72 into myPrintRect
   print this card into myPrintRect
end mouseUp

If I am in the IDE and do a Print Card so that I can set the Tray to Tray 1 
which has the 4.5x6 inch postcards, when it prints, it puts the card into the 
bottom left quadrant of the postcard. If I change the tray to autoselect, and 
set the Page Setup to “postcard”, it prints centered on the bottom third of the 
postcard.

If I manually set the print area (notice Top is a negative number) it prints 
onto the postcards on tray 1. 

   print card from 10,10 to 413,287 into 0,-255,780,255

Setting a negative Top parameter seems to have done the trick. Weird. Thanks 
for the suggestions, it wasn’t the solution but it did get me thinking and 
experimenting in ways I didn’t do yesterday. 

Thanks,
Kee




On Aug 14, 2014, at 1:03 PM, Mark Schonewille 
m.schonewi...@economy-x-talk.com wrote:

 Hi Kee,
 
 I'm in a hurry actually, so I don't have time to read everything carefully 
 right now, but I do something like this:
 
 put 72 into myMargin
 put myMargin,myMargin,item 2 of the printPapersize - myMargin,item 1 of the 
 printPapersize - 72 into myPrintRect
 print this card into myPrintRect
 
 This should be for landscape format. You can change the margin. Feel free to 
 send me an e-mail if this doesn't work for you.
 
 --
 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 8/14/2014 21:11, kee nethery wrote:
 I’m printing postcards onto individually cut postcards and they are a custom 
 paper size (4.25 x 6 inches). The stack displays the postcard text in 
 landscape mode but the postcards go into the printer in portrait orientation 
 (smallest edge gets sucked into the printer). Normally I’d set landscape 
 mode and fit to page size, make sure I’d selected the postcard size and 
 print. Worked great only now it doesn’t. It seems that whatever code is 
 printing is ignoring the landscape mode when printing to fit the paper size.
 
 If I print without the “fit paper size” it will actually print landscape 
 mode but it prints around 1/4th the normal size as if it has decided the 
 postcard is actually the size of 8.5x11 paper and scales the image down 
 accordingly.
 
 I’ve tried making the stack larger to compensate and it just prints it 
 larger but from the same starting point on the page so most of the text ends 
 up off the edge of the postcard.
 
 I’m using Mac OS X 10.9.4 and I’ve tried it with LiveCode 6.6.2 and Livecode 
 5.5.4
 
 I did figure out a way to print through a bunch of trial and error but when 
 I moved that recipe to another’s machine, it prints in the wrong place on 
 the postcard.
 
 Is there someone out there with printer foo who I can hire to fix this for 
 me?
 
 Kee Nethery
 ___
 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: M

2014-08-14 Thread Peter M. Brigham
On Aug 13, 2014, at 10:55 AM, Jim Hurley wrote:

 

I thought this meant that Jim has reached enlightenment….

-- 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: Marker image sizes

2014-08-14 Thread J. Landman Gay
It took me some time to get around to trying this, but I must say, this 
marker will be very useful to some of us. :)


Thanks for making these tools available, Bernd.


On 8/12/2014, 12:08 PM, BNig wrote:

and for a nice marker made with above utility set the markerPoints of a
polygon graphic to

--
-4,-6
-4,-5
-4,-4
-4,-3
-4,-2
-4,-1
-4,0

-4,0
-5,0
-6,0

-2,-4
-2,-3
-2,-2
-2,-1
-2,0

-2,-4
-1,-4
0,-4
1,-4

1,-4
1,-3
1,-2
1,-1
1,0

-2,-2
-1,-2
0,-2

3,-4
4,-4
5,-4

3,-4
3,-3
3,-2
3,-1
3,0

3,0
4,0
5,0

-6,2
-5,2
-4,2

-6,2
-6,3
-6,4

-6,4
-5,4
-4,4

-4,2
-4,3
-4,4
-4,5
-4,6

-2,2
-2,3
-2,4
-2,5
-2,6

-2,6
-1,6
0,6
1,6

1,6
1,5
1,4
1,3
1,2

3,2
3,3
3,4
3,5
3,6

3,2
4,2
5,2

3,6
4,6
5,6

3,4
4,4
-



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