[OT] The State Of HTML5 Video UPDATE

2012-04-23 Thread stephen barncard
http://www.longtailvideo.com/html5/

this is an update of Longtail's comprehensive and concise report about the
state of HTML5 and the browsers that support it. The numbers have
changed significantly.

I've found this company's HTML5 media player (JWPlayer) to be one of the
best performing and most compatible for web based media delivery. And they
update versions regularly.

-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  
___
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


LC for Android: Retrieve center lat n lng from LC browser using google maps?

2012-04-23 Thread Barry G. Sumpter
Hi all,

I'm using the LC for Android browser.
I've got a web page .html that will allow me to pin point a specific
location on a Google map.
The HTML will display the lat n lng of that address and the closest matching
address.
I would like to be able to access that info.
And perhaps save to a db or send an email or sms with it etc.

I'm trying to screen scrape that info off the page.

I see that LC HTMLText property is available for the desktop browser
versions but not for the Android browser.

Anyone have any ideas on how to screen scrape or to retrieve that HTML data
for use in LiveCode for Android?

Or perhaps suggest another method?

tia  

http://gmaps-samples-v3.googlecode.com/svn/trunk/draggable-markers/draggable
-markers.html


All my best,
 Barry G. Sumpter


___
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: ANN: Radial Dial Making Utility

2012-04-23 Thread tbodine
S easy! Thanks!
Tom Bodine

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-Radial-Dial-Making-Utility-tp4571602p4582321.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: Time-Stamping Demo programs #2

2012-04-23 Thread Kay C Lan
On Mon, Apr 23, 2012 at 4:45 PM, Richmond wrote:

>
> Blast! I am trying to find a way so that I don't have a file "floating
> about" on somebody's system that they can just flush away to
> reset the 30 day limit on my DEMO.
>

I'm assuming then you must have some sort of licensing system for those who
wish to go beyond the demo. How does this work? Surely your demo licensing
system must be based aound it.

I'm out of my depth here because I only develop for a very small circle of
users (more like a dot really;-) so licensing isn't an issue, but I thought
the whole concept of the Splash stack was to get around the limitation of a
stack not being able to save to itself. Once you have a Splash-Working
stack arrangement you can save your rego info in an encrypted sub-stack, as
a customProp so it isn't available to prying eyes to throw away or amend.
___
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: Working with seconds, what am I missing?

2012-04-23 Thread Kay C Lan
On Mon, Apr 23, 2012 at 5:05 PM, Andrew Henshaw  wrote:

>
> Its odd as I had expected  livecode to convert the seconds to and from a
> date in the same way as all the online tools that convert unix time based
> on seconds since the epoch,  but apparently it does depend on which format
> you convert to as to what time it is.
>
> I think you may have just needed to do a little more checking.

I went to this website:

http://www.epochconverter.com/

and input your number: 1335049200

and it came up with, as you say: 21 Apr 2012 23:00:00 GMT, BUT it also came
up with 22 Apr 2012 07 19:00:00 which is the time corrected for the time
zone I'm currently in.

I then test in Terminal on OS X with:

$ date -r 1335049200

and the it came back: Sun 22 Apr 2012 19:00:00 EDT - a local time, NOT a
GMT time.

I then tested using the -u option:

$ date -ur 1335049200

and it came back: Sat 21 Apr 2012 23:00:00 UTC - as per your online
converters.

All you are seeing when you use an online converter is that they've
probably set the -u option so the output is UTC (GMT) rather than the
default time zone, which would have been where ever the server is located.

What you don't appreciate is that this is because they haven't gone to the
trouble, as www.epochconverter.com obviously did, to write the extra code
to search your computer to find what time zone you're in to output the
conversion into something more usable to you. The helpful people at RunRev
have done that for you with LiveCode.

Terminal and LiveCode (which I'm guessing is simply using OS X underlying
Unix for the answer) base all their 'seconds' on the same Epoch as the
online Unix converters you have used. The only difference is, Terminal and
LiveCode KNOW what time zone your computer is in so give you the answer
relative to your time zone. This is actually what you want for ALL date and
time manipulation presented to a user.

Where dates and time become tricky is when you are trying to compare them
between different users located around the world.

My general rule of thumb is:

If you are only interested in avoiding confusion surround date formats (is
2/4/12 2nd Apr or Feb 4th) then use dateItems.
If time is involved, the start with internet date (as it includes the UTC
(GMT) offset) and then convert to dateItems and apply appropriate UTC
conversions.

If you haven't gathered, I love LiveCode and dateItems. It makes it so easy
to figure out what date and time it was 83 days 98 hours 76 min ago in
India, which has an offset of UTC + 5hrs 30 min. Actually it's not that
hard with seconds, but dateItems just gel with my simple mind.

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


reposition single-line text to the left or right?

2012-04-23 Thread Nicolas Cueto
Hello All,

On the keyboard I made for my Android app, a typed letter gets added
after the last typed letter onto a single-line text field (locked and
wrap off). When the string of letters reaches the field's far-right,
newly typed letters of course get added but out of sight off-field.

Is there an LC way (without relying on horizontal scroll) to move left
the text-string/line as each new letter gets added to the end of the
string? Likewise, shifted right when deleting last letters?

Thanks.
--
Nicolas Cueto

___
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: Streaming video in a multi platform application

2012-04-23 Thread François Chaplais
It also plays on the iPhone (I just checked)
F.
Le 23 avr. 2012 à 22:13, Paolo Mazza a écrit :

> Hi Mark,
> Unfortunately most of win-pc have not Quick Time. Any other solution?
> All the best
> Paolo 


___
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: Augmented reality

2012-04-23 Thread Monte Goulding
Hi Paolo

You get callbacks when the use selects, deselects and taps the annotation 
callout. One thing you could do is have the map in part of your screen and when 
the user selects an annotation ask a question about that location on the other 
part of the screen. If they get the answer right you could add another 
annotation to the map for the next step in the game. Is that the kind of thing 
you mean? You could also calculate their proximity to the annotation before 
letting them see the question.

Cheers
On 24/04/2012, at 1:23 AM, paolo mazza wrote:

> Monte you are right, it is too early ask for samples.
> However, in theory, do you think is it possible to create an Augmented
> Reality application using your external to manage the Relevant Points
> on the map?
> All the best
> Paolo
> 
> ___
> 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

--
M E R Goulding 
Software development services
Bespoke application development for vertical markets

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: Streaming video in a multi platform application

2012-04-23 Thread François Chaplais
my son is a student in 3D and video effects, and his teachers advise the 
students to export their video to .mp4 format for best compatibility, which is 
I think MPEG 4 without the quicktime embedding. The following movie has been 
finalized on windows and plays fine in Safari on my mac. Give it a try for 
testing if you like.
http://www.graphisme-chaplais.fr/Graphisme_Chaplais/Videos_files/Atelier_Demo_1.mp4
I realize this is not streaming in the strict sense, but the remark on file 
format should hold.
Best,
François
Le 23 avr. 2012 à 22:13, Paolo Mazza a écrit :

> Hi Mark,
> Unfortunately most of win-pc have not Quick Time. Any other solution?
> All the best
> Paolo 
> 
> Il giorno 23/apr/2012, alle ore 17:59, Mark Schonewille 
>  ha scritto:
> 
>> Hi Paolo,
>> 
>> I don't know what is "best", but the rtsp protocol with a video format that 
>> QuickTime understands works fine on Mac and Windows, provided that QuickTime 
>> is installed.
>> 
>> I would expect this to work on iOS as well but I haven't tried that with LC 
>> yet.
>> 
>> --
>> 
>> Economy-x-Talk
>> Consultancy and Software Engineering
>> http://economy-x-talk.com
>> 
>> Download Color Converter at http://www.color-converter.com
>> 
>> Op 23-apr-2012, om 17:37 heeft paolo mazza het volgende geschreven:
>> 
>>> What's the best solution in LiveCode to show  Streaming Videos ?
>>> Consider an application  (for Mac, Windows and Mobile) with a
>>> player/window to show videos coming from a Streaming Server.
>>> 
>>> The iOS video player is reliable?
>>> How can I show videos in a Windows and MAC applications ?
> 
> ___
> 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: Streaming video in a multi platform application

2012-04-23 Thread Paolo Mazza
Hi Mark,
Unfortunately most of win-pc have not Quick Time. Any other solution?
All the best
Paolo 

Il giorno 23/apr/2012, alle ore 17:59, Mark Schonewille 
 ha scritto:

> Hi Paolo,
> 
> I don't know what is "best", but the rtsp protocol with a video format that 
> QuickTime understands works fine on Mac and Windows, provided that QuickTime 
> is installed.
> 
> I would expect this to work on iOS as well but I haven't tried that with LC 
> yet.
> 
> --
> 
> Economy-x-Talk
> Consultancy and Software Engineering
> http://economy-x-talk.com
> 
> Download Color Converter at http://www.color-converter.com
> 
> Op 23-apr-2012, om 17:37 heeft paolo mazza het volgende geschreven:
> 
>> What's the best solution in LiveCode to show  Streaming Videos ?
>> Consider an application  (for Mac, Windows and Mobile) with a
>> player/window to show videos coming from a Streaming Server.
>> 
>> The iOS video player is reliable?
>> How can I show videos in a Windows and MAC applications ?

___
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: ANN: Radial Dial Making Utility

2012-04-23 Thread Mark Smith

Roger Guay wrote
> 
> Hi All,
> 
> RadialDialOmatic is a utility I created to make nice (even if I say so
> myself) Radial Dials. With RevOnLine still down, I'm afraid you will have
> to go to my downloads page to get it:
> 
> Roger
> 

Roger, your stuff is always so cool!

-- Mark

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-Radial-Dial-Making-Utility-tp4571602p4581155.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: Journalism

2012-04-23 Thread Richmond

On 04/23/2012 08:17 PM, Tim Jones wrote:

Err; sorry; nobody's e-mail has been hacked, but my fingers slipped and 
posted this message to the wrong place.



Spam??? Someone's email account has been hacked?

Otherwise, how is this apropos to LiveCode?

On Apr 23, 2012, at 10:11 AM, Richmond wrote:


"There are now over 60 universities in the UK offering BA honours degrees in 
journalism."



___
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: Journalism

2012-04-23 Thread Tim Jones
Spam??? Someone's email account has been hacked?

Otherwise, how is this apropos to LiveCode?

On Apr 23, 2012, at 10:11 AM, Richmond wrote:

> "There are now over 60 universities in the UK offering BA honours degrees in 
> journalism."



___
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


Journalism

2012-04-23 Thread Richmond
"There are now over 60 universities in the UK offering BA honours 
degrees in journalism."


http://www.city.ac.uk/arts/journalism

Leeds:  http://ics.leeds.ac.uk/ug/

"Journalism Studies at Sheffield also ranked 1st under the Times Good 
University Guide 2009 subject league table for Communications and Media 
Studies."


http://www.shef.ac.uk/journalism/prospectiveug

http://www.shef.ac.uk/journalism/prospectiveug/ba_structure

GERMANY:

http://www.djs-online.de/



___
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: in-App Reviews

2012-04-23 Thread Colin Holgate
My answer no doubt confused everyone! There is someone on a Flash list I'm on 
that has a similar name to Dan, and I though I was reading that list. The 
solution still applies, in LiveCode you should be able to do this:

launch url 
"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=514220257"

where the 514220257 part would be your app's ID.

However, in the Simulator it seems not to work. Not sure if it will work on a 
device.


___
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: in-App Reviews

2012-04-23 Thread J. Landman Gay

On 4/23/12 10:43 AM, Dan Friedman wrote:

Greetings!

I would like to prompt the user to rate my app.  Something like every
10 launches the app throws a dialog asking the user if they want to
leave a positive review.


I'd think twice about that. At least on Android, people detest it and 
will degrade the app rating if the developer spams them with requests 
for reviews. Some people have deleted the app entirely because of it and 
left a scathing review. If they get irritated when your dialog pops up, 
you've provided a convenient way for them to go directly to the App 
Store and tell you off.


A better approach is to put something into an About screen or possibly 
the settings card that provides a link to the app store URL. People 
don't seem to mind that so much.


--
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: in-App Reviews

2012-04-23 Thread Colin Holgate
You can use a shared object to note whether the user has previously clicked on 
your Write Review button, or perhaps on the Never Ask Me Again button.

Here's the code I use to go directly from within my app to the list of reviews 
for the app in the App Store app:

public function toreview() {

goURL("itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=514220257");
}   

public function goURL(url:String) {
navigateToURL(new URLRequest(url),"_blank");
}

The 514220257 is the code for my app, you will know your ID as you start to 
enter details in the App Store. The Upload App part comes later than when you 
are given the ID, so you can do one last build with the correct link.




___
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: in-App Reviews

2012-04-23 Thread Bob Sneidar
Just make sure you give the user a Never Ask Me Again option. An app that keeps 
asking me to review it or upgrade it is irritating to me. Parallels does that, 
and they do have a Don't Ask Again checkbox, but it only applies to THAT 
particular version of Parallels, and when there is a minor update, it resets 
the ad. G!!!

Bob


On Apr 23, 2012, at 8:43 AM, Dan Friedman wrote:

> Greetings!
> 
> I would like to prompt the user to rate my app.  Something like every 10 
> launches the app throws a dialog asking the user if they want to leave a 
> positive review.  If they tap "Yes", note that somewhere so we don't as them 
> again.  How do you do this?
> 
> Several questions come to mind:
> 
> (1) Do you just go to the app's url?  Launching Safari with the app's url 
> (http://itunes.apple.com/us/app/id123456789)
> (2) How do you get the app ID that Apple assigns your app when it's approved?
> 
> Has anyone done something like this?  If so, how did you do it!
> 
> Thanks in advance!
> 
> -Dan
> ___
> 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: Streaming video in a multi platform application

2012-04-23 Thread Mark Schonewille

Hi Paolo,

I don't know what is "best", but the rtsp protocol with a video  
format that QuickTime understands works fine on Mac and Windows,  
provided that QuickTime is installed.


I would expect this to work on iOS as well but I haven't tried that  
with LC yet.


--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com

Download Color Converter at http://www.color-converter.com

Op 23-apr-2012, om 17:37 heeft paolo mazza het volgende geschreven:


What's the best solution in LiveCode to show  Streaming Videos ?
Consider an application  (for Mac, Windows and Mobile) with a
player/window to show videos coming from a Streaming Server.

The iOS video player is reliable?
How can I show videos in a Windows and MAC applications ?

All the best
Paolo




___
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


in-App Reviews

2012-04-23 Thread Dan Friedman
Greetings!

I would like to prompt the user to rate my app.  Something like every 10 
launches the app throws a dialog asking the user if they want to leave a 
positive review.  If they tap "Yes", note that somewhere so we don't as them 
again.  How do you do this?

Several questions come to mind:

(1) Do you just go to the app's url?  Launching Safari with the app's url 
(http://itunes.apple.com/us/app/id123456789)
(2) How do you get the app ID that Apple assigns your app when it's approved?

Has anyone done something like this?  If so, how did you do it!

Thanks in advance!

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


Streaming video in a multi platform application

2012-04-23 Thread paolo mazza
What's the best solution in LiveCode to show  Streaming Videos ?
Consider an application  (for Mac, Windows and Mobile) with a
player/window to show videos coming from a Streaming Server.

The iOS video player is reliable?
How can I show videos in a Windows and MAC applications ?

All the best
Paolo

___
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: Augmented reality

2012-04-23 Thread paolo mazza
Monte you are right, it is too early ask for samples.
However, in theory, do you think is it possible to create an Augmented
Reality application using your external to manage the Relevant Points
on the map?
All the best
Paolo

___
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: Livecode blows a Raspberry?

2012-04-23 Thread Richard Gaskin

varvar chemrama wrote:


Re: Livecode blows a Raspberry? LiveCode does not currently support ARM/Linux
(as opposed to (de facto) ARM/Android).

OK, I had made the original request in January  to LiveCode Dev for a
ARM/Linux port, anticipating release of the Raspberry Pi.


If you're in the dev program you may wish to add your votes to this 
request for an ARM Linux engine:



However:


I have no idea what RunRev thinks of all of this, but given the recent
press release where I understand that LiveCode is going to be adopted
as the programming IDE in schools in a major school district close to
Cambridge, they should pay attention to Raspberry Pi and Eben Upton's
stated mission of promoting interest in computing among school age children,
and port LiveCode to ARM/Linux.


At this time, both models of the Raspberry Pi ship with only 256MB RAM, 
and to keep costs down they use a version of ARM so old that not even 
Ubuntu can run on it.


So while I agree there is some usefulness in an ARM compile of 
LiveCode's Linux engine, it would not be for the Raspberry Pi because 
the system specs won't support the sort of GUI work that makes LC 
uniquely valuable.


For teaching, as much as I enjoy LiveCode I would have to suggest that 
if I were in charge of such decisions for a school district I would 
choose Python or JavaScript as a beginning language, because they're 
both entirely free and so widely used that the skills will be more 
immediately transferable to professional work if the student wishes to 
pursue that.


Of course this isn't to suggest that LC can't be used professionally. 
On the contrary, it's been a key component of my own profession for more 
than a decade.  But in a world in which most popular languages are free 
and open (C, C++, Lua, Ruby, PHP, JavaScript, Python, etc.) it becomes 
difficult to justify LC as a first language in cost-sensitive settings 
like public schools, no matter how valuable it is as a second language.


All of those languages can be used on a Raspberry Pi.

I've been parting out low-cost systems for running LiveCode on x86, and 
so far the cheapest system I can come up with using off-the-shelf parts 
from outlets like NewEgg is about US$160.   While that's many times more 
expensive than the Pi it's also a much more capable system, with 2 GB 
RAM and a 30 GB SSD driven by a Via PV530 (which has a Passmark score 
roughly on par with the Atom 230 I use here in my Lenovo Q110 as a test 
server; not a powerhouse, but quite adequate for such needs).  And with 
the x86 instruction set it can run not only LiveCode but pretty much any 
other x86 program; one can even enjoy the simplicity of installing new 
software from the Ubuntu Software Center, as opposed to the Raspberry Pi 
experience which will likely require some competence with Bash to use 
effectively.


So while Raspberry Pi is a bit of a non-starter for serious GUI 
development such as LiveCode excels at, here you provide an interesting 
alternative:



If they do not, all is not lost since the
Android/ARM gadgets are also in freefall as far as prices are concerned.
When I attended the MIT ARM
Dev Conference in February, Eben was very candid about how the Foundation's
objectives vis-a-vis hardware had changed. Originally, they wanted
everything to be sourced in  the U.K., I believe. But they soon found out
that this was not going to be cost effective , and after much debate,
decided to OEM from China. Well, the Raspberry may be the cheapest computer
in the world, but you need display, keyboard,  etc., and that adds $ to the
cost.

If you do a diligent Google search, you will find OEMs in China offering
Android tablets at a cost of between $75 and $90 at the time I am posting
this--it drops every few days! What is the advantage of an Android tablet?
Most of them throw in the wireless interface and you do not need a display
or keyboard. So, you may not get the world's tiniest SBC/COM but you
certainly get a very low power, high res display all-in-one gadget, somewhat
more "open" than the Pi [it was my understanding from the MIT presentation
that certain parts of the Raspberry hardware engine , esp display drivers
and graphics,  were proprietary.] The Android tablets are all fairly generic
standard "clones."! Thus, LiveCode will run effortlessly on these low cost
machines, as I have determined from my tests. (Make sure that the OS is >
2.3 though!)


On the developer list Monte Goulding suggested that we end-users 
consider pitching in to develop an IDE suitable for use on Android, in 
the hopes that if such an IDE were available RunRev may see the benefit 
in allow the development version of the engine to be run there.


This is no small feat, however, since the single-window nature of mobile 
UIs will require us to re-think nearly everything about what an IDE 
means, either settling for intensely modal UIs or dynamically copying 
groups of IDE controls into the develop

Re: Animation

2012-04-23 Thread BNig
Dereks game can be found on 
rev-online
http://revonline2.runrev.com/stack/359/Side-Scrolling-Game-Test

If rev-online works for you from within LiveCode then you can also access it
from "user samples"
or menu "Development" -> Rev Online

Kind regards

Bernd

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Code-Security-When-Using-LiveCode-Server-tp4576830p4580699.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: Animation

2012-04-23 Thread bar...@libero.it
Dear J.Downs

Derek Bump  posted "Building a Side-Scrolling Game in Revolution" in this list 
on September 10th 2009 you can find the whole message at the list archives, 
http://lists.runrev.com/pipermail/use-livecode/2009-September/128220.html
and then download the stack from his site from the link given there.

Wait, hold on! His site states that it is Closed Down due to change of 
activity. Thats a pity, we will all miss the stacks he often offered for our 
delight and the help he gave to many. Best wishes Derek in your new venture.

 J, if you would like the stack, please write me offline and I will send 
you a copy. My grandsons love it despite the hours they spend on Nintendo!
Barry 
___
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: Time-Stamping Demo programs

2012-04-23 Thread Mark Schonewille
Hi Francis,

Using software that keeps a list of all existing files, it is easy to find 
newly created files. This way, it is very easy to find preferences files and 
"secret" license files.

On the other hand, I believe that only very few people actually do this. Most 
people just delete the software if they don't like it or obtain a license if 
they do like it.

--
Best regards,

Mark Schonewille

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

We will have room for new projects after 1 June. Contact me now and be first in 
line.

On 23 apr 2012, at 13:45, Francis Nugent Dixon wrote:

> Hi from Beautiful Brittany,
> 
> Richmond wrote :
> 
>> Blast! I am trying to find a way so that I don't have a file "floating
>> about" on somebody's system that they can just flush away to
>> reset the 30 day limit on my DEMO.
> 
> Richmond, forgive me if I am being obtuse, but I don't see the problem.
> 
> Create a coded file in an obscure place with an obscure name, and
> with an old creation and modification date. You don't even have
> to hide it !
> This file is effectively "floating around" on the users system, but
> I doubt if he can find it and delete it.
> The work-around is to set an old systems date every time you boot your
> system, but that can lead to unforetold problems
> 
> Of course, if you create a non-coded file with todays date, with a
> name like "This is Richmonds 30 Day Demo Check File", and put it in
> the Preferences Folder, then you are asking for trouble !
> 
>  Unless there is something I haven't understood ..
> 
> Best Regards
> 
> -Francis


___
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: Time-Stamping Demo programs

2012-04-23 Thread Francis Nugent Dixon

Hi from Beautiful Brittany,

Richmond wrote :


Blast! I am trying to find a way so that I don't have a file "floating
about" on somebody's system that they can just flush away to
reset the 30 day limit on my DEMO.


Richmond, forgive me if I am being obtuse, but I don't see the problem.

Create a coded file in an obscure place with an obscure name, and
with an old creation and modification date. You don't even have
to hide it !
This file is effectively "floating around" on the users system, but
I doubt if he can find it and delete it.
The work-around is to set an old systems date every time you boot your
system, but that can lead to unforetold problems

Of course, if you create a non-coded file with todays date, with a
name like "This is Richmonds 30 Day Demo Check File", and put it in
the Preferences Folder, then you are asking for trouble !

 Unless there is something I haven't understood ..

Best Regards

-Francis

___
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: Time-Stamping Demo programs via substacks?

2012-04-23 Thread Richmond

In the clouds, baby!

That presupposes that my target demographic are all connected, 
permanently, to the internet; and they are not.



Richmond,

The best way to go is to call the DAZE30 function from your standalone and 
compare it with a TSTAMP reference stored on the cloud so your customers won't 
find any local file to delete to get a way to bypass your 30 days try-period 
key.

HTH,

Le 23 avr. 2012 à 10:31, Richmond a écrit :


Um:

--30 Day code--

if the fld "STAMP" of stack "STAMP" is empty then
  set the lockScreen to true
put the seconds into into fld "STAMP" of stack "STAMP"
save stack "STAMP"
  set the lockScreen to false
end if

put the seconds into DAZE30
put fld "STAMP" of stack "STAMP" into TSTAMP
if DAZE30>  (TSTAMP + 2592000) then
  set the vis of img "TIME IS UP CHUM" to true
end if

--End 30 Day code--

This works very well in a stack (where stack "STAMP" is a substack of my 
mainstack),

will it work in a standalone?

or, put another way,

will the standalone save the time-stamp data in the substack?

___
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

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.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: install fail inconsistent certificates (Android)

2012-04-23 Thread Nicolas Cueto
> The development certificate is dynamically created in the .android folder.
> So every machine will have a different one. You could try copying the
> debug.keystore from one machine to all the others and overwrite the one that
> had been created on the other machines. Never tried it but it might work.

That did the trick. Thanks, Ralph.

--
Nicolas Cueto

___
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: Time-Stamping Demo programs #2

2012-04-23 Thread Richmond

On 04/23/2012 12:30 PM, Mark Schonewille wrote:

Hi,

Yes, it will.

I would use a time limitation using a separate file together with a functional 
limitation, e.g. the inability to save documents. Actually, I rarely use time limitations 
for my own products, because I believe that every time a user starts up your software is 
a potential sale. I regularly get requests such as "please send me my license for 
Strõm Flow Chart Software quickly because I want to save my work" :-)


That is certainly a thought. Thanks.



--
Best regards,

Mark Schonewille

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

We will have room for new projects after 1 June. Contact me now and be first in 
line.

On 23 apr 2012, at 11:21, Richmond wrote:


On 04/23/2012 11:37 AM, Mark Schonewille wrote:

Hi Richmond,

Standalones can't write to themselves and thus your standalone can't save 
anything in a substack. You can create a separate stack file in a different 
folder, e.g. application data on Windows, Preferences on Mac OS X and the Home 
folder on Linux and save time stamp in that stack file.

And, I suppose storing a time-stamp in a custom property will, similarly, 
"evaporate" when a standalone is quitted?



___
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: Time-Stamping Demo programs #2

2012-04-23 Thread Mark Schonewille
Hi,

Yes, it will. 

I would use a time limitation using a separate file together with a functional 
limitation, e.g. the inability to save documents. Actually, I rarely use time 
limitations for my own products, because I believe that every time a user 
starts up your software is a potential sale. I regularly get requests such as 
"please send me my license for Strõm Flow Chart Software quickly because I want 
to save my work" :-)

--
Best regards,

Mark Schonewille

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

We will have room for new projects after 1 June. Contact me now and be first in 
line.

On 23 apr 2012, at 11:21, Richmond wrote:

> On 04/23/2012 11:37 AM, Mark Schonewille wrote:
>> Hi Richmond,
>> 
>> Standalones can't write to themselves and thus your standalone can't save 
>> anything in a substack. You can create a separate stack file in a different 
>> folder, e.g. application data on Windows, Preferences on Mac OS X and the 
>> Home folder on Linux and save time stamp in that stack file.
> 
> And, I suppose storing a time-stamp in a custom property will, similarly, 
> "evaporate" when a standalone is quitted?
> 


___
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: Time-Stamping Demo programs #2

2012-04-23 Thread Richmond

On 04/23/2012 11:37 AM, Mark Schonewille wrote:

Hi Richmond,

Standalones can't write to themselves and thus your standalone can't save 
anything in a substack. You can create a separate stack file in a different 
folder, e.g. application data on Windows, Preferences on Mac OS X and the Home 
folder on Linux and save time stamp in that stack file.


And, I suppose storing a time-stamp in a custom property will, 
similarly, "evaporate" when a standalone is quitted?




--
Best regards,

Mark Schonewille

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

We will have room for new projects after 1 June. Contact me now and be first in 
line.

On 23 apr 2012, at 10:32, Richmond wrote:


Um:

--30 Day code--

if the fld "STAMP" of stack "STAMP" is empty then
  set the lockScreen to true
put the seconds into into fld "STAMP" of stack "STAMP"
save stack "STAMP"
  set the lockScreen to false
end if

put the seconds into DAZE30
put fld "STAMP" of stack "STAMP" into TSTAMP
if DAZE30>  (TSTAMP + 2592000) then
  set the vis of img "TIME IS UP CHUM" to true
end if

--End 30 Day code--

This works very well in a stack (where stack "STAMP" is a substack of my 
mainstack),

will it work in a standalone?

[NOT unless I remove that double 'into' . . .  :) ]

or, put another way,

will the standalone save the time-stamp data in the substack?


___
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: Time-Stamping Demo programs via substacks?

2012-04-23 Thread Pierre Sahores
Richmond,

The best way to go is to call the DAZE30 function from your standalone and 
compare it with a TSTAMP reference stored on the cloud so your customers won't 
find any local file to delete to get a way to bypass your 30 days try-period 
key.

HTH,

Le 23 avr. 2012 à 10:31, Richmond a écrit :

> Um:
> 
> --30 Day code--
> 
> if the fld "STAMP" of stack "STAMP" is empty then
>  set the lockScreen to true
>put the seconds into into fld "STAMP" of stack "STAMP"
>save stack "STAMP"
>  set the lockScreen to false
> end if
> 
> put the seconds into DAZE30
> put fld "STAMP" of stack "STAMP" into TSTAMP
> if DAZE30 > (TSTAMP + 2592000) then
>  set the vis of img "TIME IS UP CHUM" to true
> end if
> 
> --End 30 Day code--
> 
> This works very well in a stack (where stack "STAMP" is a substack of my 
> mainstack),
> 
> will it work in a standalone?
> 
> or, put another way,
> 
> will the standalone save the time-stamp data in the substack?
> 
> ___
> 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

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.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: Working with seconds, what am I missing?

2012-04-23 Thread Andrew Henshaw
Thanks everyone,

>From all the tests this seems to be the best option,  but converting the date 
>to the date items it comes back reliably with the same date and time on all 
>settings ive tried,  eg UK and US,  switching the computers date in and out of 
>daylight savings time etc.

Its odd as I had expected  livecode to convert the seconds to and from a date 
in the same way as all the online tools that convert unix time based on seconds 
since the epoch,  but apparently it does depend on which format you convert to 
as to what time it is. 

Dateitems works fine though!

Thanks

Andy


On 23 Apr 2012, at 09:07, Kay C Lan wrote:

> Andy,
> 
> As you've discovered seconds is based on GMT so it will cause differences
> based on everyone's system settings, there are work arounds as suggested
> but it may be easier just to:
> 
> put the date into tDate
> convert tDate to dateItems
> put tDate
> 
> The output will always be ,MM,DD,HH,MM,SS,day of week, and if you
> haven't included a time then, ,MM,DD,0,0,0,day of week.
> 
> Regardless of the system setting, the GMT correction, or personal
> preferences, you can always correctly determine the local date and time of
> a users computer using dateItems.
> 
> HTH
> 
> On Mon, Apr 23, 2012 at 4:55 AM, Andrew Henshaw  wrote:
> 
>> Trying to work with seconds to avoid format issues with dates in different
>> countries I keep running into this issue,  and im probably just missing
>> something very obvious!
>> 
>> Using the following simple code today (the 22nd April)..
>> 
>>  put the date into tDate
>>  convert tDate to seconds
>>  put tDate
>> 
>> Returns 1335049200
>> 
>> Id expect to get a result of 22nd April,  but instead Ive fed that in to a
>> few online UNIX time converters and they all return Sat, 21 Apr 2012
>> 23:00:00 GMT which is an hour into the previous day.
>> 
>> Im assuming its something to do with GMT / daylight savings time,  but is
>> there a reliable way to get and use the seconds.  Id like to ensure the
>> values stored are correct.
>> 
>> Andy
>> ___
>> 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: Working with seconds, what am I missing?

2012-04-23 Thread Kay C Lan
What always happens.

On a Mac, when you set it up it will ask you where you live and give you a
map, from the Time Zone tab of the Date & Time preference pane to click on.
Once you provided the answer, and assuming you've given it the correct time
to start with, it will calculate UTC (politically correct version of GMT).
>From then on, even if you don't update the system or connect it to the
internet it will adjust for daylight savings if your region has such a
thing.

Of course if you never update the system or connect it to the internet,
should your region decide to change the date that daylight savings starts
and finished on, your computer will no longer change to/from daylight
savings time appropriately.

HTH

On Mon, Apr 23, 2012 at 4:34 PM, Richmond wrote:

> What happens if you do a "put the seconds" on a computer
> that is not internet connected?
>
>
>  Andy,
>>
>> As you've discovered seconds is based on GMT so it will cause differences
>> based on everyone's system settings, there are work arounds as suggested
>> but it may be easier just to:
>>
>> put the date into tDate
>> convert tDate to dateItems
>> put tDate
>>
>> The output will always be ,MM,DD,HH,MM,SS,day of week, and if you
>> haven't included a time then, ,MM,DD,0,0,0,day of week.
>>
>> Regardless of the system setting, the GMT correction, or personal
>> preferences, you can always correctly determine the local date and time of
>> a users computer using dateItems.
>>
>> HTH
>>
>> On Mon, Apr 23, 2012 at 4:55 AM, Andrew Henshaw  wrote:
>>
>>  Trying to work with seconds to avoid format issues with dates in
>>> different
>>> countries I keep running into this issue,  and im probably just missing
>>> something very obvious!
>>>
>>> Using the following simple code today (the 22nd April)..
>>>
>>>   put the date into tDate
>>>   convert tDate to seconds
>>>   put tDate
>>>
>>> Returns 1335049200
>>>
>>> Id expect to get a result of 22nd April,  but instead Ive fed that in to
>>> a
>>> few online UNIX time converters and they all return Sat, 21 Apr 2012
>>> 23:00:00 GMT which is an hour into the previous day.
>>>
>>> Im assuming its something to do with GMT / daylight savings time,  but is
>>> there a reliable way to get and use the seconds.  Id like to ensure the
>>> values stored are correct.
>>>
>>> Andy
>>> __**_
>>> 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: Time-Stamping Demo programs #2

2012-04-23 Thread Richmond

On 04/23/2012 11:37 AM, Mark Schonewille wrote:

Hi Richmond,

Standalones can't write to themselves and thus your standalone can't save 
anything in a substack. You can create a separate stack file in a different 
folder, e.g. application data on Windows, Preferences on Mac OS X and the Home 
folder on Linux and save time stamp in that stack file.


Blast! I am trying to find a way so that I don't have a file "floating 
about" on somebody's system that they can just flush away to

reset the 30 day limit on my DEMO.



--
Best regards,

Mark Schonewille

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

We will have room for new projects after 1 June. Contact me now and be first in 
line.

On 23 apr 2012, at 10:32, Richmond wrote:


Um:

--30 Day code--

if the fld "STAMP" of stack "STAMP" is empty then
  set the lockScreen to true
put the seconds into into fld "STAMP" of stack "STAMP"
save stack "STAMP"
  set the lockScreen to false
end if

put the seconds into DAZE30
put fld "STAMP" of stack "STAMP" into TSTAMP
if DAZE30>  (TSTAMP + 2592000) then
  set the vis of img "TIME IS UP CHUM" to true
end if

--End 30 Day code--

This works very well in a stack (where stack "STAMP" is a substack of my 
mainstack),

will it work in a standalone?

[NOT unless I remove that double 'into' . . .  :) ]

or, put another way,

will the standalone save the time-stamp data in the substack?


___
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: Time-Stamping Demo programs #2

2012-04-23 Thread Mark Schonewille
Hi Richmond,

Standalones can't write to themselves and thus your standalone can't save 
anything in a substack. You can create a separate stack file in a different 
folder, e.g. application data on Windows, Preferences on Mac OS X and the Home 
folder on Linux and save time stamp in that stack file.

--
Best regards,

Mark Schonewille

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

We will have room for new projects after 1 June. Contact me now and be first in 
line.

On 23 apr 2012, at 10:32, Richmond wrote:

> Um:
> 
> --30 Day code--
> 
> if the fld "STAMP" of stack "STAMP" is empty then
>  set the lockScreen to true
>put the seconds into into fld "STAMP" of stack "STAMP"
>save stack "STAMP"
>  set the lockScreen to false
> end if
> 
> put the seconds into DAZE30
> put fld "STAMP" of stack "STAMP" into TSTAMP
> if DAZE30 > (TSTAMP + 2592000) then
>  set the vis of img "TIME IS UP CHUM" to true
> end if
> 
> --End 30 Day code--
> 
> This works very well in a stack (where stack "STAMP" is a substack of my 
> mainstack),
> 
> will it work in a standalone?
> 
> [NOT unless I remove that double 'into' . . .  :) ]
> 
> or, put another way,
> 
> will the standalone save the time-stamp data in the substack?


___
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: Working with seconds, what am I missing?

2012-04-23 Thread Richmond

What happens if you do a "put the seconds" on a computer
that is not internet connected?


Andy,

As you've discovered seconds is based on GMT so it will cause differences
based on everyone's system settings, there are work arounds as suggested
but it may be easier just to:

put the date into tDate
convert tDate to dateItems
put tDate

The output will always be ,MM,DD,HH,MM,SS,day of week, and if you
haven't included a time then, ,MM,DD,0,0,0,day of week.

Regardless of the system setting, the GMT correction, or personal
preferences, you can always correctly determine the local date and time of
a users computer using dateItems.

HTH

On Mon, Apr 23, 2012 at 4:55 AM, Andrew Henshaw  wrote:


Trying to work with seconds to avoid format issues with dates in different
countries I keep running into this issue,  and im probably just missing
something very obvious!

Using the following simple code today (the 22nd April)..

   put the date into tDate
   convert tDate to seconds
   put tDate

Returns 1335049200

Id expect to get a result of 22nd April,  but instead Ive fed that in to a
few online UNIX time converters and they all return Sat, 21 Apr 2012
23:00:00 GMT which is an hour into the previous day.

Im assuming its something to do with GMT / daylight savings time,  but is
there a reliable way to get and use the seconds.  Id like to ensure the
values stored are correct.

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


Time-Stamping Demo programs #2

2012-04-23 Thread Richmond

Um:

--30 Day code--

if the fld "STAMP" of stack "STAMP" is empty then
  set the lockScreen to true
put the seconds into into fld "STAMP" of stack "STAMP"
save stack "STAMP"
  set the lockScreen to false
end if

put the seconds into DAZE30
put fld "STAMP" of stack "STAMP" into TSTAMP
if DAZE30 > (TSTAMP + 2592000) then
  set the vis of img "TIME IS UP CHUM" to true
end if

--End 30 Day code--

This works very well in a stack (where stack "STAMP" is a substack of my 
mainstack),


will it work in a standalone?

[NOT unless I remove that double 'into' . . .  :) ]

or, put another way,

will the standalone save the time-stamp data in the substack?

___
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


Time-Stamping Demo programs via substacks?

2012-04-23 Thread Richmond

Um:

--30 Day code--

if the fld "STAMP" of stack "STAMP" is empty then
  set the lockScreen to true
put the seconds into into fld "STAMP" of stack "STAMP"
save stack "STAMP"
  set the lockScreen to false
end if

put the seconds into DAZE30
put fld "STAMP" of stack "STAMP" into TSTAMP
if DAZE30 > (TSTAMP + 2592000) then
  set the vis of img "TIME IS UP CHUM" to true
end if

--End 30 Day code--

This works very well in a stack (where stack "STAMP" is a substack of my 
mainstack),


will it work in a standalone?

or, put another way,

will the standalone save the time-stamp data in the substack?

___
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: Working with seconds, what am I missing?

2012-04-23 Thread Kay C Lan
Andy,

As you've discovered seconds is based on GMT so it will cause differences
based on everyone's system settings, there are work arounds as suggested
but it may be easier just to:

put the date into tDate
convert tDate to dateItems
put tDate

The output will always be ,MM,DD,HH,MM,SS,day of week, and if you
haven't included a time then, ,MM,DD,0,0,0,day of week.

Regardless of the system setting, the GMT correction, or personal
preferences, you can always correctly determine the local date and time of
a users computer using dateItems.

HTH

On Mon, Apr 23, 2012 at 4:55 AM, Andrew Henshaw  wrote:

> Trying to work with seconds to avoid format issues with dates in different
> countries I keep running into this issue,  and im probably just missing
> something very obvious!
>
> Using the following simple code today (the 22nd April)..
>
>   put the date into tDate
>   convert tDate to seconds
>   put tDate
>
> Returns 1335049200
>
> Id expect to get a result of 22nd April,  but instead Ive fed that in to a
> few online UNIX time converters and they all return Sat, 21 Apr 2012
> 23:00:00 GMT which is an hour into the previous day.
>
> Im assuming its something to do with GMT / daylight savings time,  but is
> there a reliable way to get and use the seconds.  Id like to ensure the
> values stored are correct.
>
> Andy
> ___
> 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