Re: [OT] And You Thought Richmond Kept Old Macs Alive

2015-03-26 Thread Mark Schonewille

Hi,

I have an old Mac SE, which I can connect to the serial port of an old 
Performa, which has ethernet, and which lets me surf the net on my SE. 
It is kind of a hassle and I didn't think it was that interesting.


--
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 3/26/2015 01:59, Kay C Lan wrote:

Was rummaging through boxes of stuff looking for something when I came
across a few ADB keyboards and mice. Thought to myself, 'it's about time to
turf these, no one, not even Richmond, could possible want them'. Seems
like I could be wrong:

http://kernelmag.dailydot
.com/issue-sections/features-issue-sections/12228/mac-plus-modern-web/?fb
=ddutm_source=huffingtonpost.comutm_medium=referralutm_campaign=
pubexchange



___
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


Move the clock hands with fingers

2015-03-26 Thread Astghik Salnazaryan
Hello :)
I am new here :)  i am learning livecode and I found clock code in
livecode,where you can move the clock hands with scrollbar, i tried to move
the minute clock hand with touch but something is wrong, i couldn't do it
in the right way. please can you look at the code? i wrote the code in
minute clock hand :)  thanks
P.S. sorry for my bad english :)
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] And You Thought Richmond Kept Old Macs Alive

2015-03-26 Thread Dr. Hawkins
On Wed, Mar 25, 2015 at 5:59 PM, Kay C Lan lan.kc.macm...@gmail.com wrote:

 Was rummaging through boxes of stuff looking for something when I came
 across a few ADB keyboards and mice. Thought to myself, 'it's about time to
 turf these, no one, not even Richmond, could possible want them'. Seems
 like I could be wrong:


I still have my 128k mac, apparently working, my MacPortable (disassembled;
needs fuse), and a working MacClassic.

And a PowerBook 180 in pieces; it's been years since you could get a
working 2.5 scsi drive . . .


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] And You Thought Richmond Kept Old Macs Alive

2015-03-26 Thread Marian Petrides MD
Gotcha all beat. I still have my Apple ][+ (purchased 4/4/1980) and it still 
works—did a power supply transplant 20 years ago. Plus three Apple ][ GSs—two 
work, one is parts for the others. 

And, of course, my 512K Enhanced Mac (Fat Mac), which also works. And a bunch 
of newer Macs, LC 2, gumdrop iMacs, fruit colored iBooks. All of them work. 
It’s a regular Mac museum in the making up there in my loft. Too bad I don’t 
have space to display all my goodies.


 On Mar 26, 2015, at 1:38 PM, Dr. Hawkins doch...@gmail.com wrote:
 
 On Wed, Mar 25, 2015 at 5:59 PM, Kay C Lan lan.kc.macm...@gmail.com wrote:
 
 Was rummaging through boxes of stuff looking for something when I came
 across a few ADB keyboards and mice. Thought to myself, 'it's about time to
 turf these, no one, not even Richmond, could possible want them'. Seems
 like I could be wrong:
 
 
 I still have my 128k mac, apparently working, my MacPortable (disassembled;
 needs fuse), and a working MacClassic.
 
 And a PowerBook 180 in pieces; it's been years since you could get a
 working 2.5 scsi drive . . .
 
 
 -- 
 Dr. Richard E. Hawkins, Esq.
 (702) 508-8462
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
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

Suggest a USB device.

2015-03-26 Thread Richmond

While I am waiting for my turtle to be delivered I am getting pretty
cheesed-off as I would like a USB device I could hook up to my various
computers running various operating systems . . .

Certainly I feel it is pretty pointless working on open to read and 
open to write

stuff if I don't have a target USB device to practise with.

I have plenty of USB devices, but most of them are what I call one-way 
devices:
that is to say they sent data to the computer, but no data is ever sent 
the other way.


Anyway, I have just spotted a fairly old USB scanner (well, bought it 
about 15-16 years ago)
lurking under a desk, and that is a two-way device as it has to be 
controlled from an interface on

the computer . . .

However, while I can, quite possibly, do an open to read, I am going 
to find it difficult to read
anything until I write some sort of command to the scanner to scan 
something . . .


Has anybody tried controlling a scanner from LIvecode?

Has anybody any idea of the sort of commands I should be sending a scanner?

Richmond.

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


Re: Suggest a USB device.

2015-03-26 Thread Richmond

On 26/03/15 22:14, Phil Davis wrote:

Hi Richmond,

If the scanner is an HID device, you won't get very far. You would 
probably need a driver to communicate with, via open driver etc. And 
even then you would have to have info about the driver's data formats.


Am I being naive? or if one uses open driver to write can one then 
write API commands to that driver?




I tend to see USB as a large black hole. I haven't looked at it since 
USB 2.0, but at that time the spec was daunting. It seems to have 
multiplied since then:  http://www.usb.org/developers/docs/


Do you have a flash drive (aka thumb drive)? That's a USB mass storage 
device. You can read from/write to that. (Of course)


Just some thoughts off the top of my head -
Phil Davis


On 3/26/15 1:04 PM, Richmond wrote:

While I am waiting for my turtle to be delivered I am getting pretty
cheesed-off as I would like a USB device I could hook up to my various
computers running various operating systems . . .

Certainly I feel it is pretty pointless working on open to read and 
open to write

stuff if I don't have a target USB device to practise with.

I have plenty of USB devices, but most of them are what I call 
one-way devices:
that is to say they sent data to the computer, but no data is ever 
sent the other way.


Anyway, I have just spotted a fairly old USB scanner (well, bought it 
about 15-16 years ago)
lurking under a desk, and that is a two-way device as it has to be 
controlled from an interface on

the computer . . .

However, while I can, quite possibly, do an open to read, I am 
going to find it difficult to read
anything until I write some sort of command to the scanner to scan 
something . . .


Has anybody tried controlling a scanner from LIvecode?

Has anybody any idea of the sort of commands I should be sending a 
scanner?


Richmond.

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

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






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


Re: [OT] And You Thought Richmond Kept Old Macs Alive

2015-03-26 Thread J. Landman Gay

On 3/26/2015 2:09 PM, Richmond wrote:



If you happened to have a SCSI-to-USB cable . .  .

Or one of those USB-to-ADB+SCSI for iMac things . . .


Sorry, those I don't have.

--
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: [OT] And You Thought Richmond Kept Old Macs Alive

2015-03-26 Thread Erik Beugelaar - Gmail
This will help maybe:

http://www.amazon.com/Griffin-2001-ADB-iMate-Universal-adapter/dp/B67V8L

https://geekhack.org/index.php?topic=14290.0

Cheers,
Erik

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of J. Landman Gay
Sent: donderdag 26 maart 2015 21:14
To: How to use LiveCode
Subject: Re: [OT] And You Thought Richmond Kept Old Macs Alive

On 3/26/2015 2:09 PM, Richmond wrote:

 If you happened to have a SCSI-to-USB cable . .  .

 Or one of those USB-to-ADB+SCSI for iMac things . . .

Sorry, those I don't have.

-- 
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: [OT] And You Thought Richmond Kept Old Macs Alive

2015-03-26 Thread J. Landman Gay
Okay, so do any of you want some of the dozens of SCSI cables I have? 
How about a whole set of...whatchacallit... the dealies that connect a 
local network over telephone wires. Got a ton of those.



On 3/26/2015 12:55 PM, Marian Petrides MD wrote:

Gotcha all beat. I still have my Apple ][+ (purchased 4/4/1980) and it still 
works—did a power supply transplant 20 years ago. Plus three Apple ][ GSs—two 
work, one is parts for the others.

And, of course, my 512K Enhanced Mac (Fat Mac), which also works. And a bunch 
of newer Macs, LC 2, gumdrop iMacs, fruit colored iBooks. All of them work. 
It’s a regular Mac museum in the making up there in my loft. Too bad I don’t 
have space to display all my goodies.



On Mar 26, 2015, at 1:38 PM, Dr. Hawkins doch...@gmail.com wrote:

On Wed, Mar 25, 2015 at 5:59 PM, Kay C Lan lan.kc.macm...@gmail.com wrote:


Was rummaging through boxes of stuff looking for something when I came
across a few ADB keyboards and mice. Thought to myself, 'it's about time to
turf these, no one, not even Richmond, could possible want them'. Seems
like I could be wrong:



I still have my 128k mac, apparently working, my MacPortable (disassembled;
needs fuse), and a working MacClassic.

And a PowerBook 180 in pieces; it's been years since you could get a
working 2.5 scsi drive . . .


--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
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

Re: [OT] And You Thought Richmond Kept Old Macs Alive

2015-03-26 Thread Richmond

On 26/03/15 19:38, Dr. Hawkins wrote:

On Wed, Mar 25, 2015 at 5:59 PM, Kay C Lan lan.kc.macm...@gmail.com wrote:


Was rummaging through boxes of stuff looking for something when I came
across a few ADB keyboards and mice. Thought to myself, 'it's about time to
turf these, no one, not even Richmond, could possible want them'. Seems
like I could be wrong:


I still have my 128k mac, apparently working, my MacPortable (disassembled;
needs fuse), and a working MacClassic.

And a PowerBook 180 in pieces; it's been years since you could get a
working 2.5 scsi drive . . .




Joking apart (???) I have, in the attic of my house in Scotland, an 
all-in-one Performa
as well as a few pre-PPC machines, and about 4 ADB keyboards: as such 
the keyboards

are extremely resilient and much stronger that your average USB keyboard.

So, if I could only lay me hands on a few ADB-to-USB converters I could 
put them to

good use.

Richmond.

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


Re: [OT] And You Thought Richmond Kept Old Macs Alive

2015-03-26 Thread Richmond

On 26/03/15 20:41, J. Landman Gay wrote:
Okay, so do any of you want some of the dozens of SCSI cables I have? 
How about a whole set of...whatchacallit... the dealies that connect a 
local network over telephone wires. Got a ton of those.



If you happened to have a SCSI-to-USB cable . .  .

Or one of those USB-to-ADB+SCSI for iMac things . . .

Richmond.



On 3/26/2015 12:55 PM, Marian Petrides MD wrote:
Gotcha all beat. I still have my Apple ][+ (purchased 4/4/1980) and 
it still works—did a power supply transplant 20 years ago. Plus three 
Apple ][ GSs—two work, one is parts for the others.


And, of course, my 512K Enhanced Mac (Fat Mac), which also works. And 
a bunch of newer Macs, LC 2, gumdrop iMacs, fruit colored iBooks. All 
of them work. It’s a regular Mac museum in the making up there in my 
loft. Too bad I don’t have space to display all my goodies.




On Mar 26, 2015, at 1:38 PM, Dr. Hawkins doch...@gmail.com wrote:

On Wed, Mar 25, 2015 at 5:59 PM, Kay C Lan 
lan.kc.macm...@gmail.com wrote:



Was rummaging through boxes of stuff looking for something when I came
across a few ADB keyboards and mice. Thought to myself, 'it's about 
time to
turf these, no one, not even Richmond, could possible want them'. 
Seems

like I could be wrong:



I still have my 128k mac, apparently working, my MacPortable 
(disassembled;

needs fuse), and a working MacClassic.

And a PowerBook 180 in pieces; it's been years since you could get a
working 2.5 scsi drive . . .


--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

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



___
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: Movie problems in LiveCode

2015-03-26 Thread J. Landman Gay

On 3/26/2015 8:47 AM, stgoldb...@aol.com wrote:

Richard and Jackie, does your reluctance to use relative paths
also extend to the distribution of standalones, or is it just stacks
that present the problem?


I do it mostly for the reasons Richard outlined -- more control over 
playback and media selection as well as the abilitly to specify 
different movie playbacks by reloading the same player object.


But I get the feeling you don't want to mess around with scripts, you 
just want to set a filepath once during development and forget about it. 
If the IDE is changing that path then you're right, you won't be able to 
do that during development. I'd submit a bug report.


But it shouldn't be an issue for a standalone. Selecting the Copy 
referenced files in the standalone builder's Copy Files pane should 
create a standalone where your referenced movies are converted to 
correct filepaths inside the standalone, which is probably what you're 
after. So that's a solution for standalones, even though during 
development you may be stuck with absolute paths.


--
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: Suggest a USB device.

2015-03-26 Thread Phil Davis

On 3/26/15 1:26 PM, Richmond wrote:

On 26/03/15 22:14, Phil Davis wrote:

Hi Richmond,

If the scanner is an HID device, you won't get very far. You would 
probably need a driver to communicate with, via open driver etc. 
And even then you would have to have info about the driver's data 
formats.


Am I being naive? 


Sometimes ignorance/naivety can lead to great things, because you didn't 
know it couldn't be done.  ;-)  At least that's what I keep telling myself.


or if one uses open driver to write can one then write API commands 
to that driver?


Basically yes, that's my understanding at least. That may require you to 
deal with strongly typed data.


I'm sure there are others on this list who have much more experience 
than I do with drivers. Maybe you!


Phil





I tend to see USB as a large black hole. I haven't looked at it since 
USB 2.0, but at that time the spec was daunting. It seems to have 
multiplied since then: http://www.usb.org/developers/docs/


Do you have a flash drive (aka thumb drive)? That's a USB mass 
storage device. You can read from/write to that. (Of course)


Just some thoughts off the top of my head -
Phil Davis


On 3/26/15 1:04 PM, Richmond wrote:

While I am waiting for my turtle to be delivered I am getting pretty
cheesed-off as I would like a USB device I could hook up to my various
computers running various operating systems . . .

Certainly I feel it is pretty pointless working on open to read 
and open to write

stuff if I don't have a target USB device to practise with.

I have plenty of USB devices, but most of them are what I call 
one-way devices:
that is to say they sent data to the computer, but no data is ever 
sent the other way.


Anyway, I have just spotted a fairly old USB scanner (well, bought 
it about 15-16 years ago)
lurking under a desk, and that is a two-way device as it has to be 
controlled from an interface on

the computer . . .

However, while I can, quite possibly, do an open to read, I am 
going to find it difficult to read
anything until I write some sort of command to the scanner to scan 
something . . .


Has anybody tried controlling a scanner from LIvecode?

Has anybody any idea of the sort of commands I should be sending a 
scanner?


Richmond.

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

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






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

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



--
Phil Davis


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


Movie problems in LiveCode

2015-03-26 Thread stgoldb...@aol.com
Regarding the problem of the LC 6-7 series not allowing relative paths on the 
Macintosh:

On 3/24/2015 10:26 AM, Richard Gaskin wrote:

 I've always been wary of shipping things that rely on
relative paths, since any other script can change the
default directory out from under me at any time.
In apps where the media I'm playing resides in a single
folder. I often just have a central handler cover that to
which I pass the file's short name only and it takes care
of the rest, e.g.:

 on PlayMovie pFile
put specialFolderPath(documents)/MyApp/media/ pFile into
tPath
if there is not a file tPath then
   answer Media file missing:  tPath
   exit to top
end if
play tPath
 end PlayMovie

Jackie Landman Gay wrote:
That's exactly what I do too, I've never trusted relative paths. 

Richard and Jackie, does your reluctance to use relative paths
also extend to the distribution of standalones, or is it just stacks 
that present the problem? I’m not experienced enough to follow the above script.
Perhaps you can recommend a place where I can find a more
detailed explanation.
Thanks.

Stephen Goldberg, President
Medmaster Publishing Co.
Prof Emeritus, Univ Miami Miller School of Medicine
___
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: Suggest a USB device.

2015-03-26 Thread dunbarx
Richmond.

Buy the Bonig and Kallenbach gadget already. You will love it. I have four.

Craig



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Suggest-a-USB-device-tp4690650p4690658.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: Suggest a USB device.

2015-03-26 Thread Phil Davis

Hi Richmond,

If the scanner is an HID device, you won't get very far. You would 
probably need a driver to communicate with, via open driver etc. And 
even then you would have to have info about the driver's data formats.


I tend to see USB as a large black hole. I haven't looked at it since 
USB 2.0, but at that time the spec was daunting. It seems to have 
multiplied since then:  http://www.usb.org/developers/docs/


Do you have a flash drive (aka thumb drive)? That's a USB mass storage 
device. You can read from/write to that. (Of course)


Just some thoughts off the top of my head -
Phil Davis


On 3/26/15 1:04 PM, Richmond wrote:

While I am waiting for my turtle to be delivered I am getting pretty
cheesed-off as I would like a USB device I could hook up to my various
computers running various operating systems . . .

Certainly I feel it is pretty pointless working on open to read and 
open to write

stuff if I don't have a target USB device to practise with.

I have plenty of USB devices, but most of them are what I call 
one-way devices:
that is to say they sent data to the computer, but no data is ever 
sent the other way.


Anyway, I have just spotted a fairly old USB scanner (well, bought it 
about 15-16 years ago)
lurking under a desk, and that is a two-way device as it has to be 
controlled from an interface on

the computer . . .

However, while I can, quite possibly, do an open to read, I am going 
to find it difficult to read
anything until I write some sort of command to the scanner to scan 
something . . .


Has anybody tried controlling a scanner from LIvecode?

Has anybody any idea of the sort of commands I should be sending a 
scanner?


Richmond.

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

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



--
Phil Davis


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


Re: Suggest a USB device.

2015-03-26 Thread Mark Wieder
Richmond richmondmathewson@... writes:

 Am I being naive?

Quite, I think.
If the scanner is that old your chances of finding a recent driver are
miniscule. If you *do* find a driver for it, you'll still have to figure
out how to use the driver. USB device manufacturers don't normally publish
communication information, and certainly not at a device driver level.

The USB standard gives you guidelines when creating a device, but leaves
a lot to the imagination. And manufacturers have a lot of imagination.

If you actually manage to talk to a USB device, you have no assurance of
being able to leverage that information to other devices, even from that
manufacturer.

If you're attempting to create the holy grail of universal usb functions,
I think you'll soon come to realize why this hasn't yet been done. I have
a nice USB breakout box that I helped Kickstart, and it helps when trying
to follow the communications stream in order to reverse-engineer how to talk
to various USB devices, but it's still a *lot* of work. And without that box
and the python tools that enable it, I wouldn't even try.

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


LC 7.03 ff Crashing on larger text blocks

2015-03-26 Thread R.H.
I am trying in varying ways to process large chunks of text data, actually
in this current application trying to read my Gmail contact data (cvs
export) and converting such data to lists / arrays.

Using lists I want to exchange commas and returns inside quoted text and
keep records as lines to be able to import to Excel or do whatever.

Using either a repeat for or repeat with loop, using replaceTex(),
offset() or simply going through each characters and changing one or the
other character  whatever I do, LiveCode fails operating and crashes
after processing part of the data.

I tried other versions of 7. I need UTF-8 character encoding, so going to
6.x is not an option.

Nothing helps. It crashes and crashes.

Trying to understand when what is happening, I multiplied step by step
thousands and then millions of times a line of 50-100 commas and tried
replacing this list with semikolons using any of the methods available -
but it crashes.

Also going through it line by line, adding lines to another text variable,
or whatever I do, the same happens.

LiveCode 7 ff obviously runs into a memory problem.

Maybe there is a work-around I did not yet recognize?

I already have filed a bug report first seeing this behaviour with the
replacetext() function. But it happens whatever processing is done on such
largers text blocks.

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


Replace existing notification

2015-03-26 Thread J. Landman Gay
Does anyone know a trick to replace an existing Android notification 
with new content? I need to repeat a notification periodically if it 
isn't dismissed and I don't want more than one in the notification bar. 
Android OS allows this but I'm not sure if we can do it.


--
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: LC 7.03 ff Crashing on larger text blocks

2015-03-26 Thread Alex Tweedly

Suggestion 1.

Is it feasible for you to avoid the problem ?

i.e. rather than something like (I assume what you currently have)

put URL (file:inputdata.txt) into myVar
replaceText (...)
put myModifiedVar into URL(file:output.txt)

do the processing within a read / write loop, something very vaguely like

  open file inputdata.txt for read
  open file output.txt for write
  repeat forever
 read from file inputdata.txt until CR
 if the result is EOF then exit repeat
 put it into t
 replace comma with ; in t
 write t  CR to file output.txt
  end repeat

Suggestion 2.
You mentioned a synthetic example (i.e. creating a data string and 
processing it). Can you post the snippet(s) of code to create and 
operate that sample, and let others try it to see if

(a) they also encounter a problem
   and
(b) can find a variant that will work

Thanks
Alex.


On 26/03/2015 20:42, R.H. wrote:

I am trying in varying ways to process large chunks of text data, actually
in this current application trying to read my Gmail contact data (cvs
export) and converting such data to lists / arrays.

Using lists I want to exchange commas and returns inside quoted text and
keep records as lines to be able to import to Excel or do whatever.

Using either a repeat for or repeat with loop, using replaceTex(),
offset() or simply going through each characters and changing one or the
other character  whatever I do, LiveCode fails operating and crashes
after processing part of the data.

I tried other versions of 7. I need UTF-8 character encoding, so going to
6.x is not an option.

Nothing helps. It crashes and crashes.

Trying to understand when what is happening, I multiplied step by step
thousands and then millions of times a line of 50-100 commas and tried
replacing this list with semikolons using any of the methods available -
but it crashes.

Also going through it line by line, adding lines to another text variable,
or whatever I do, the same happens.

LiveCode 7 ff obviously runs into a memory problem.

Maybe there is a work-around I did not yet recognize?

I already have filed a bug report first seeing this behaviour with the
replacetext() function. But it happens whatever processing is done on such
largers text blocks.

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


revDataFromQuery Selecting Files

2015-03-26 Thread JB
I am working on the sort, search and find in
SQL lite with revDataFromQuery in a single
database with a single table.

I know this is simple for people who already
are able to do it but for those who are new
to working with database selecting records
here are a couple of steps to help.

To return a list of ALL RECORDS with ALL FIELDS in a table named tFiles
you can use the following where gConID = the connection id;

   put SELECT * FROM tFiles into tSQL --returns all records  fields
   put revDataFromQuery(,,gConID,tSQL) into tList
   put tList

To return a list of ALL RECORDS in 1 FIELD in a table named tFiles
you can use the following where gConID gConID = the connection id
and the field name is FirstName;

   put SELECT FirstName FROM tFiles into tSQL --returns all records in 1 field
   put revDataFromQuery(,,gConID,tSQL) into tList
   put tList

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


Re: [OT] And You Thought Richmond Kept Old Macs Alive

2015-03-26 Thread Dr. Hawkins
On Thu, Mar 26, 2015 at 10:55 AM, Marian Petrides MD 
mpetri...@earthlink.net wrote:

 Gotcha all beat. I still have my Apple ][+ (purchased 4/4/1980) and it
 still works—did a power supply transplant 20 years ago. Plus three Apple ][
 GSs—two work, one is parts for the others.


Well, that's not a mac.

If any computer counts, my 1978 wire-wrapped 1802 and parts are still in my
garage . . .


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

compress decompress

2015-03-26 Thread Dr. Hawkins
In my attempts to provide backups of databases, I have a sequence that
gathers the commands and executes

  open file outfile for binary write
   write compress(theData )to file outfile

Another routine has

   put url infile into theData
   switch
  case infile ends with .gz
 put decompress(theData) into theData
 break
   end switch

I get
stack mcp: execution error at line 11923 (decompress: error during
decompression), char 1

On the attempt to decompress.

If I instead open the file from the OSX finder, it decompresses correctly.

There don't seem to be any options to affect this.
-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: compress decompress

2015-03-26 Thread J. Landman Gay

On 3/26/2015 8:31 PM, Dr. Hawkins wrote:

In my attempts to provide backups of databases, I have a sequence that
gathers the commands and executes

   open file outfile for binary write
write compress(theData )to file outfile

Another routine has

put url infile into theData
switch
   case infile ends with .gz
  put decompress(theData) into theData
  break
end switch

I get
stack mcp: execution error at line 11923 (decompress: error during
decompression), char 1

On the attempt to decompress.

If I instead open the file from the OSX finder, it decompresses correctly.

There don't seem to be any options to affect this.



Is the file opened as a binary file?

--
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: [ANN] modified Table Field 0_2_2

2015-03-26 Thread Rolf Kocherhans
Hello Bernd

Your new TableField looks very clean and very tidy, thanks for it !

Everyone who doesn’t like DataGrid should have a look at it !

Cheers
Rolf


 Dear list,
 
 here is a new version of modTableField.
 It is a way to display tabular data in a table view.
 
 --
 http://berndniggemann.on-rev.com/modTableField/modTableField_0_3_2.zip 
 http://berndniggemann.on-rev.com/modTableField/modTableField_0_3_2.zip
 --
 
 modTableField_0_3_2 has been cleaned up and has more examples and a revamped
 Helper stack that makes it easier to configure columns.
 Additionally you can now add Icons to columns that are user switchable.
___
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] modified Table Field 0_2_2

2015-03-26 Thread BNig
Bill, Rolf

thank you.

modTableField is at its core just two fields that are used for display. All
data lives in these two fields. It is not as powerful as the dataGrid which
I think is an ingenious piece of code. 

modTableField can be easier because of its simpler structure and might
suffice in some situations where you don't need all the options of the
dataGrid-table. On the other hand it is of course more limited.

Kind regard

Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-modified-Table-Field-0-2-2-tp4690621p4690635.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: Workaround on the inability to create relative paths in the LC6-7 series Movie Player

2015-03-26 Thread Scott Rossi
Stephen, have you verified that VR playback works with QuickTime Player 10 on 
Windows?  My guess is that the Windows system you're looking at has QuickTime 
Player 7 installed (which is also capable of playing VR movies on OS X, but is 
out of date).  It seems unlikely that Player 10 would work on Windows and not 
OS X, but maybe Apple did something different there.

Regards,

Scott Rossi
Creative Director
Tactile Media UX/UI Design

 On Mar 26, 2015, at 7:16 AM, stgoldb...@aol.com stgoldb...@aol.com wrote:
 
 3.  QTVR is not so fortunate. QTVR will not play on Macintosh in the LC 6-7 
 series, even if a build is made on Windows with LC 7.0.  Windows itself, 
 though, with LC 7.0 will play QTVR.

___
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: Workaround on the inability to create relative paths in the LC6-7 series Movie Player

2015-03-26 Thread Richard Gaskin

stgoldberg wrote:

 2.  Create the standalone on Windows.  In Windows, LC 7.0 does
 maintain the relative path, and standalones built on Windows for
 Mac will keep the relative path and display the Quicktime movies
 on Mac, even when using the LC 6-7 series.

Are the movies files stored within the Mac app bundle?

Remember that the app bundle is unique to OS X, so the paths from the 
standalone executable to whatever folder contains media will often 
differ between platforms.



 Phil Jimmieson wrote (Mar 24 2015):
 I think Apple dropped support of quicklime VR movies. You’re supposed
 to move to AVKit and AV Foundation.

 In order to show the movies through LiveCode, though, we’ll have to
 wait for the LiveCode team to adopt the newer technology.

If you're referring to temporal media (movies, audio), that was part of 
the v6.7 transition to the Cocoa APIs.  If you find bugs in v6.7 or 
later for playing temporal media files please file a report on those.


For spatial media (QuickTime VR) it appears Apple has abandoned support 
for that altogether, and users are now expected to rely on third-party 
solutions.  Too bad, IMO, since QTVR was pretty cool in its day.


But given the number and variety of third-party solutions, the somewhat 
specialized nature of spatial media, and the goals already on the 
Roadmap that the core dev team is committed to completing, it may be 
quicker to put together a team of people in the community who need 
spatial media support and use LC 8's ability to talk to native APIs to 
create a library for that.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

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

Re: Movie problems in LiveCode

2015-03-26 Thread Richard Gaskin

stgoldberg wrote:

On 3/24/2015 10:26 AM, Richard Gaskin wrote:

 I've always been wary of shipping things that rely on
relative paths, since any other script can change the
default directory out from under me at any time.
In apps where the media I'm playing resides in a single
folder. I often just have a central handler cover that to
which I pass the file's short name only and it takes care
of the rest, e.g.:

 on PlayMovie pFile
put specialFolderPath(documents)/MyApp/media/ pFile into
 tPath
if there is not a file tPath then
   answer Media file missing:  tPath
   exit to top
end if
play tPath
 end PlayMovie

Jackie Landman Gay wrote:
That's exactly what I do too, I've never trusted relative paths.

 Richard and Jackie, does your reluctance to use relative paths
 also extend to the distribution of standalones, or is it just stacks
 that present the problem?

It's not so much a problem (at least not while QuickTime existed) as it 
is an opportunity to centralize program logic for easier scripting in 
the short term and easier maintenance over the long term.


Without centralizing the playback handling, I'd need to write paths to 
the media and check for the file's existence everywhere throughout my 
code that I need to play a movie.


By centralizing it in a common handler, the scripts that call it are 
very short:


  on mouseUp
  PlayMovie SomeFile.mov
  end mouseUp

...and all the details for how that file is found, verified to exist, 
and then played are handled in one handler.


So there's an immediate benefit while I'm writing the program, and it 
only gets better over time:  if I later need to change anything about 
how movies are played, I change only one handler and everything 
throughout my app that calls it benefits from that change immediately 
without any of those calls needing to be changed themselves.



 I’m not experienced enough to follow the above script.
 Perhaps you can recommend a place where I can find a more
 detailed explanation.

The Dictionary entry for the specialFolderPath function is good reading, 
and worth taking some time to experiment with.


For security reasons, OSes are increasingly limiting the places 
applications can access files.  The specialFolderPath function returns 
the path to a good many special folders, directories the OS guidelines 
recommend for certain types of files, such as Preferences and 
Application Support, and handles constants for other commonly-used 
folders like Desktop and Home.


All that's happening in that handler is using that function to build a 
full path at runtime, with an additional step to make sure the file 
exists (you never know what people might do with stuff after it's 
installed, which is why more than 30% of an app's code on average isn't 
feature-related but merely error-checking).


Let's look at each part:

  put specialFolderPath(documents)/MyApp/media/ pFile into tPath

This calls the specialFolderPath function, asking for the path to the 
Documents folder.  Mac, Windows, and Linux all have a Documents folder, 
the recommended place for users to store files they create with your app.


For files your app creates or installs itself it may be better to use 
another folder to install those into, but the recommended location is a 
bit different for each OS.  I can provide a handler for that if needed, 
but for now we'll keep things simple here using one of the special 
folders consistently supported across OSes.



This second bit just ensures the file exists, informing the user if it's 
been removed:


  if there is not a file tPath then
 answer Media file missing:  tPath
 exit to top
  end if

The last line just plays the file:

  play tPath

If somewhere down the road is became necessary for the engine team to 
change the play command to something like PlayVideo, with this 
centralized handler you just make that change in one place and 
everything in your app immediately benefits without any other changes.


If you if need to add more error-checking, or handle platform-specific 
considerations, or just about anything else, without a centralized 
handler you'd need to replicate that code throughout your app every time 
you want to play a movie.


Much simpler to just write:

   PlayMovie SomeMovie.mov

...and let one script to all the work for you in one place.

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

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

Workaround on the inability to create relative paths in the LC6-7 series Movie Player

2015-03-26 Thread stgoldb...@aol.com
The LC 6-7 series for Macintosh will not allow the creation of a relative path 
for the movie player. I understand that Apple has deprecated Quicktime and 
QTVR.  While the LiveCode team works to resolve the issue, I find several 
temporary workarounds for the problem: 

1.  On Macintosh, create the standalone with the relative path in LC 5.5.3.  
The standalone will play in the LC 6-7 series.

2.  Create the standalone on Windows.  In Windows, LC 7.0 does maintain the 
relative path, and standalones built on Windows for Mac will keep the relative 
path and display the Quicktime movies  on Mac, even when using the LC 6-7 
series.

3.  QTVR is not so fortunate. QTVR will not play on Macintosh in the LC 6-7 
series, even if a build is made on Windows with LC 7.0.  Windows itself, 
though, with LC 7.0 will play QTVR.

Scott Rossi wrote (Mar 24 2015):
In some simple tests, it looks like QuickTime Player 10 (on Mavericks)
won’t even open VR movies, but will hand them off to Player 7 if available.
You’d probably do well to stop using QTVR and look for an alternative.
  
If Scott say so, I take it seriously.

Phil Jimmieson wrote (Mar 24 2015):
I think Apple dropped support of quicklime VR movies. You’re supposed to move 
to AVKit and AV Foundation.

In order to show the movies through LiveCode, though, we’ll have to wait for 
the LiveCode team to adopt
the newer technology.

Stephen Goldberg, President
Medmaster Publishing Co.
Prof Emeritus, Univ Miami School of Medicine
www.medmaster.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: Move the clock hands with fingers

2015-03-26 Thread Michael Doub

Astghik,

Contact me off list and I will try to help you.  Please send a copy of 
your stack.


Regards,
Mike



On 3/26/15 7:59 AM, Astghik Salnazaryan wrote:

Hello :)
I am new here :)  i am learning livecode and I found clock code in
livecode,where you can move the clock hands with scrollbar, i tried to move
the minute clock hand with touch but something is wrong, i couldn't do it
in the right way. please can you look at the code? i wrote the code in
minute clock hand :)  thanks
P.S. sorry for my bad english :)
___
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