Re: Linux software suggestions

2015-09-21 Thread Peter Alcibiades
After saying to make the acquaintance of the command line one should probably
offer some reading.

The short version is Linux Phrasebook by Scott Granneman.  The long form
reference version is the O'Reilly Linux in a Nutshell.

Anything by Carla Schroder is worth reading.

Here's an example of why you'd bother.  You have an audio track, compressed
in some lossy way, and want to extract a few sections and put them together
in one new track. 

You can do it with point and click in Audacity of course.  But... Audacity
will import it into its own format and you'll then export it in a playable
format.  So you will recode, and this will affect quality.  What you want to
do is simply cut out and join without any recoding.  You won't readily find
a way of doing that in Audacity.  There may be one, but I haven't found it. 
But in the command line?

You just locate the start and end points and cut them out into temp files,
then concatenate the temp files into one new file in the same coding using
ffmpeg.  If you want to do this regularly you write a small script to take
source, time and file inputs and do the rest automagically.

The command line is full of this stuff - it lets you get at all the options
that the gui layer on top of it doesn't provide for.  This is really the
difference between Windows and Linux (or Mac also since its Unix based).  In
Linux the gui on utility apps is often just passing your point and clicks in
the form of commands into the shell.  But by the nature of gui interfaces
this only lets you get at a very small percentage of what the shell can
actually do.

Its not that you have to use the shell.  You don't, any more than you do in
Windows.  But its there.  Its like in Windows they have extracted the wheat
germ and said you don't need this or want it, and then fed it to the pigs,
and when you realise what is not there, your morning toast seems a bit
tasteless.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Linux-software-suggestions-tp4696462p4696526.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: LiveCode for the rest of us

2015-09-21 Thread Brahmanathaswami
We appreciate everyone pointing out the plugins made some of these 
features, but i was trying to make a  point:


if someone opens LC for the first time... she won't be knowing anything 
about plug-ins for what she considers "standard layout engine" features..


FYI, we are abandoning Google apps (docs email, sheets sites etc..) here 
and moving to Microsoft365


It's been years since I worked in MS Word and Excel... I have to say 
that the old "antipathy" for all things Windows is pretty much gone, 
these apps look great! finally I won't have to pull my hair like I do in 
Google Docs to get something formatted...


MS Word's new model for switching tool sets at the top of the window is 
pretty powerful..


Something like that for LC would be awesome.


Bob Sneidar wrote:

Someone wrote a plugin to address this.

Bob S


On Sep 21, 2015, at 10:41 , J. Landman 
Gaymailto:jac...@hyperactivesw.com>>  wrote:

-- Oh where can I set the design grid unit values? Oh, no grids?

-- where is my hide and show design grid? Oh right.. no grids...
-- Oh, where do I turn on "snap to grid" Oops right... no grid...


Yes, there's been a grid since MetaCard. It's set to either 1 or 2 px by default 
(can't remember, I changed it) so you probably didn't notice it was there. Toggle it 
on/off from the View menu. Set the size of the grid in Preferences ->  Appearance 
->  Grid spacing. However, there are no visible lines for the grid, so maybe 
that's what you mean.

___
use-livecode mailing list
use-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: Monitoring stdout on iOS simulator

2015-09-21 Thread J. Landman Gay

On 9/21/2015 5:50 PM, panagiotis merakos wrote:


It is possible to see the output in the simulator. If I remember correctly,
you can do:

Launch iOS Simulator -> Menu Bar -> Debug -> Open System Log


Thank you! Yes, it does work. In the past it was possible to just launch 
Console and choose "All Messages", and logging showed up there. I 
haven't been able to do that for a long time, but choosing the menu item 
from within the simulator does it.


Happy dance. This makes things much easier.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

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


Re: Need Help Throttling Downloads From an FTP Site

2015-09-21 Thread Jim Lambert
Whoops!

That should be:

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

delete line 1 of lListOfFilePaths


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

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

Re: Need Help Throttling Downloads From an FTP Site

2015-09-21 Thread Jim Lambert
Gregory,

Try this (untested):

local lListOfFilePaths

on downloadAll
put theListofFiles into lListOfFilePaths
getnextFile
end repeat

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


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


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

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

Valentina 6 Platform Released; Notifications, SQLite Server & ADK for LiveCode

2015-09-21 Thread Lynn Fredricks
Hi all,

If you've been working with SQLite as a database platform, you'll be
interested in our new support for SQLite.

Paradigma Software has released Valentina Studio 6, Valentina Server 6 and
updated ADKs for LiveCode.

Valentina Server 6 is available as a standalone product, but its possible to
distribute it under our VDN license, with your solutions. There's a free
evaluation version (and free for use by non-profits and academic use!), and
it includes Valentina Reports Server, Valentina DB Server and Valentina
SQLite Server. If you've been using SQLite for local databases, you can now
create client-server applications with SQLite. The evaluation version
supports 5 REST / Reports / Valentina DB simultaenous connections, and the
SQLite Server portion supports 10 (yes, indirectly saying, we support REST,
plus other new features).

The Reports ADK for LiveCode and Valentina DB ADK for LiveCode components
are also updated with all the new features and improvements, plus there's an
example project to try out using the SQLite Server.

We've beaten most of the complexity out of VDN, our 'OEM' program for
Valentina Server that allows redistribution of Valentina Server with your
client-server or server only solution.

Oh yeah...Valentina Studio 6 is still free on Windows, Mac OS X and Linux.
We've polished it significantly, adding support for interacting with
features added to the ADKs and Valentina Server, plus also adding MS SQL
Server support, and support for administering the new SQLite Server (it has
supported local SQLite dbs for quite some time).

Various much more detailed announcements for your pleasure:
http://valentina-db.net/en/discussions/categories/listings/announcements-new
s

Get your free Valentina Studio 6 here:
http://valentina-db.net/en/store/product/1-valentina-studio/lang-en-GB


Surprisingly enough, Ruslan did not have stroke while we implemented support
for SQLite ;-)

Best regards,

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

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



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


Re: Need Help Throttling Downloads From an FTP Site

2015-09-21 Thread Mike Bonner
The problem doesn't seem to be a local network issue.  When I try to grab
files from the sec site, too many connections too fast make it choke.
 (There end, not mine, most likely anti-bot code)

As scott rossi said, using a delay should help.  I've noticed, the magic
number seems to be 5, so I used load and a counter to get reliable
downloads.

local sList,sBaseUrl,sCount
on mouseUp
   put 0 into sCount
   put "ftp://anonymous:nob...@ftp.sec.gov/edgar/forms/"; into sBaseUrl --
the folder I chose to download from.
   put empty into field 2 -- my status field
   set the defaultfolder to specialfolderpath("desktop") & "/downloads" --
where I'm saving em
   put field 1 into sList -- my list of files
   downloadit -- start the downloads
end mouseUp

command downloadit
   repeat for each line tLine in sList
  if sCount mod 5 is 0 then wait 5 seconds with messages -- pause every
5 files

  load URL (sBaseUrl & tLine) with message "doDownloads" -- load the
url into cache then process with doDownloads
  add 1 to sCount
   end repeat
end downloadit
command doDownloads pUrl, pStatus
  put URL pUrl into URL ("binfile:" & line 1 of sList) -- save the file
from cache
  put  pUrl & ":" && pStatus & cr after field 2 -- update the status
field
  unload pUrl -- clear the url from the cache
end doDownloads

On Mon, Sep 21, 2015 at 4:33 PM, Scott Rossi  wrote:

> How large are the files you're retrieving?  If the script below is your
> actual script, you might try allowing some execution time in the loop:
>
> repeat with each line remoteFilePath in listOfFilePaths
> -- set new localFileName is set before the download request is made
> put url ("ftp://anonymous:myemailaddr...@ftp.sec.gov/"; &
> remoteFilePath)
> into url ("file:/" & exportFolderPath & "/" & localFileName )
> wait 2 seconds with messages --  <-- ADD THIS
> end repeat
>
> It would probably be most helpful to you to check the status of each
> request, so you can keep track of which events succeeded and which failed.
> I
> imagine there are folks on the list who have something like this more
> readily available than me.
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
> On 9/21/15, 2:33 PM, "use-livecode on behalf of Gregory Lypny"
>  gregory.ly...@videotron.ca> wrote:
>
> > Hello everyone,
> >
> > I posted about this a while back but am still having trouble.
> >
> > I need to download thousands of files from the Security and Exchange
> > Commission's website. Access is through anonymous FTP with "anonymous"
> as the
> > username and my email address as the password. I've been using Put in a
> Repeat
> > With loop as
> >
> > repeat with each line remoteFilePath in listOfFilePaths
> > ‹ set new localFileName is set before the download request is made
> > put url ("ftp://anonymous:myemailaddr...@ftp.sec.gov/"; &
> remoteFilePath)
> > into url ("file:/" & exportFolderPath & "/" & localFileName )
> > end repeat
> >
> > but my script dies (the stack is lifeless and unresponsive) after a few
> dozen,
> > and sometimes a few hundred downloads. I used similar scripts in
> Mathematica
> > and confirmed that the problem is session-timed-out and
> > cannot-connect-to-server types of errors. The SEC's webmaster tells me,
> "There
> > is no load/rate limiting on FTP, but if you are running a fast process,
> it is
> > possible you are temporarily overwhelming the server." So, I'm thinking
> that I
> > need to throttle my requests, and maybe should be using
> libURLDownloadToFile
> > to check the status of the current file being downloaded and not request
> > another file until the current download is complete. I also wonder
> whether I
> > should be connecting to the FTP site only once with the username and
> password,
> > loop my requests, and then close the connection. Not sure how to do
> either of
> > these and would greatly appreciate any suggestions or tips.
> >
> > Gregory
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription
> > preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-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: SQL Select... the last 10 records from a table ?

2015-09-21 Thread Mark Schonewille
Because my solution isn't entirely satisfactory IMHO, I have asked a 
question on Stackoverflow.


http://stackoverflow.com/questions/32705801/select-last-10-records-from-a-table-without-ordering-the-table

--
Mark Schonewille
http://economy-x-talk.com

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

Op 9/22/2015 om 00:23 schreef Mark Schonewille:

Hi John,

If you have a date, timestamp or ID number in your table, you can use 
the following query.


SELECT * FROM main ORDER BY date DESC LIMIT 10

Replace date with the column containing the date, timestamp or ID 
number. If the date field hasn't been defined as a date, you may need 
to wrap it in the DATE() function.


If you don't have anything like a date, timestamp or ID number and 
still want to get the last 10 records, in the order they arrived in 
the database, you could use the following query:


SELECT * FROM (SELECT main.*,@rownum:=@rownum+1 AS rank,0 AS c1 FROM 
main,(SELECT @rownum:=0) AS t2) AS t3 WHERE rank > (SELECT COUNT(*) 
FROM main) - 10


Replace "main" with the name of your table.

This part

(SELECT main.*,@rownum:=@rownum+1 AS rank,0 AS c1 FROM main,(SELECT 
@rownum:=0) AS t2) AS t3


creates a temporary table, which includes the entire table main, the 
field 'rank' and an additional field containing the value 0.


The remaining part

SELECT * FROM ( . . . ) AS t3 WHERE rank >  (SELECT COUNT(*) FROM 
main) - 10


selects the records where the rank > the total number of records - 10.

Two side-notes on this:

1) I admit that I'm not entirely sure what I'm doing here. The 
subquery 0 AS C1 FROM main is a bit unexpected and there should be a 
better way to do this, but replacing 0 with * is unnecessary while 
removing this subquery causes an error.


2) This query is very inefficient and slow and may cause an overflow 
if you have a very large database, or perhaps even if you have 
relatively small database. You really should use timestamps and do an 
ordered query with the LIMIT clause.


--
Mark Schonewille
http://economy-x-talk.com

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

Op 9/20/2015 om 15:39 schreef John Dixon:

Thanks.. :-) I'll try that ...


Date: Sun, 20 Sep 2015 09:27:44 -0400
Subject: Re: SQL Select... the last 10 records from a table ?
From: roger.e.el...@sealedair.com
To: use-livecode@lists.runrev.com

Sort descending, and still SELECT TOP 10.
On Sep 20, 2015 8:59 AM, "John Dixon"  wrote:


I understand how to select, say the top 10 records in a table... What
would the best way to select the last 10 records from a table ?

___
use-livecode mailing list
use-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



___
use-livecode mailing list
use-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: Monitoring stdout on iOS simulator

2015-09-21 Thread panagiotis merakos
Hi Jacque,

It is possible to see the output in the simulator. If I remember correctly,
you can do:

Launch iOS Simulator -> Menu Bar -> Debug -> Open System Log

Regards,
Panos
--

On Tue, Sep 22, 2015 at 1:36 AM, J. Landman Gay 
wrote:

> On 9/21/2015 3:43 PM, Chris Sheffield wrote:
>
>> Hi Jacque,
>>
>> Xcode now has a “console” built into it, that I’m pretty sure still
>> works with LiveCodes “put” command. With your device plugged in, fire
>> up a recent version of Xcode, select the device in the Devices
>> window, then click the little triangle icon to the right of the
>> Filter field. That should show you the output from the device.
>>
>
> Thanks, but I was hoping to see output from the simulator since I need to
> test on various devices I don't have. It doesn't sound like it's possible,
> which is too bad because it used to work great.
>
>
> --
> 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: Monitoring stdout on iOS simulator

2015-09-21 Thread J. Landman Gay

On 9/21/2015 3:43 PM, Chris Sheffield wrote:

Hi Jacque,

Xcode now has a “console” built into it, that I’m pretty sure still
works with LiveCodes “put” command. With your device plugged in, fire
up a recent version of Xcode, select the device in the Devices
window, then click the little triangle icon to the right of the
Filter field. That should show you the output from the device.


Thanks, but I was hoping to see output from the simulator since I need 
to test on various devices I don't have. It doesn't sound like it's 
possible, which is too bad because it used to work great.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


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

Re: Need Help Throttling Downloads From an FTP Site

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

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

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

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design



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

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


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


Re: SQL Select... the last 10 records from a table ?

2015-09-21 Thread Mark Schonewille

Hi John,

If you have a date, timestamp or ID number in your table, you can use 
the following query.


SELECT * FROM main ORDER BY date DESC LIMIT 10

Replace date with the column containing the date, timestamp or ID 
number. If the date field hasn't been defined as a date, you may need to 
wrap it in the DATE() function.


If you don't have anything like a date, timestamp or ID number and still 
want to get the last 10 records, in the order they arrived in the 
database, you could use the following query:


SELECT * FROM (SELECT main.*,@rownum:=@rownum+1 AS rank,0 AS c1 FROM 
main,(SELECT @rownum:=0) AS t2) AS t3 WHERE rank >  (SELECT COUNT(*) 
FROM main) - 10


Replace "main" with the name of your table.

This part

(SELECT main.*,@rownum:=@rownum+1 AS rank,0 AS c1 FROM main,(SELECT 
@rownum:=0) AS t2) AS t3


creates a temporary table, which includes the entire table main, the 
field 'rank' and an additional field containing the value 0.


The remaining part

SELECT * FROM ( . . . ) AS t3 WHERE rank >  (SELECT COUNT(*) FROM main) - 10

selects the records where the rank > the total number of records - 10.

Two side-notes on this:

1) I admit that I'm not entirely sure what I'm doing here. The subquery 
0 AS C1 FROM main is a bit unexpected and there should be a better way 
to do this, but replacing 0 with * is unnecessary while removing this 
subquery causes an error.


2) This query is very inefficient and slow and may cause an overflow if 
you have a very large database, or perhaps even if you have relatively 
small database. You really should use timestamps and do an ordered query 
with the LIMIT clause.


--
Mark Schonewille
http://economy-x-talk.com

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

Op 9/20/2015 om 15:39 schreef John Dixon:

Thanks.. :-) I'll try that ...


Date: Sun, 20 Sep 2015 09:27:44 -0400
Subject: Re: SQL Select... the last 10 records from a table ?
From: roger.e.el...@sealedair.com
To: use-livecode@lists.runrev.com

Sort descending, and still SELECT TOP 10.
On Sep 20, 2015 8:59 AM, "John Dixon"  wrote:


I understand how to select, say the top 10 records in a table... What
would the best way to select the last 10 records from a table ?

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


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


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



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


Re: Need Help Throttling Downloads From an FTP Site

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

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

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

Bob S


On Sep 21, 2015, at 14:33 , Gregory Lypny 
mailto:gregory.ly...@videotron.ca>> wrote:

Hello everyone,

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

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

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

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

Gregory

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

Re: LiveCode for the rest of us

2015-09-21 Thread Bob Sneidar
Someone wrote a plugin to address this.

Bob S


On Sep 21, 2015, at 10:41 , J. Landman Gay 
mailto:jac...@hyperactivesw.com>> wrote:

-- Oh where can I set the design grid unit values? Oh, no grids?
> -- where is my hide and show design grid? Oh right.. no grids...
> -- Oh, where do I turn on "snap to grid" Oops right... no grid...

Yes, there's been a grid since MetaCard. It's set to either 1 or 2 px by 
default (can't remember, I changed it) so you probably didn't notice it was 
there. Toggle it on/off from the View menu. Set the size of the grid in 
Preferences -> Appearance -> Grid spacing. However, there are no visible lines 
for the grid, so maybe that's what you mean.

___
use-livecode mailing list
use-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: Introducing LiveCode's New Feature Exchange Platform

2015-09-21 Thread Bob Sneidar
Interesting...

> On Sep 21, 2015, at 09:11 , Jana Doughty  wrote:
> 
> Hi All,
> 
> We have a new platform we're launching today! You can read all about it
> and its the new feature opportunities here:
> https://livecode.com/introducing-new-feature-exchange-platform/
> 
> Thanks!
> 
> Jana
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Need Help Throttling Downloads From an FTP Site

2015-09-21 Thread Gregory Lypny
Hello everyone,

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

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

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

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

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

Re: Monitoring stdout on iOS simulator

2015-09-21 Thread Chris Sheffield
Hi Jacque,

Xcode now has a “console” built into it, that I’m pretty sure still works with 
LiveCodes “put” command. With your device plugged in, fire up a recent version 
of Xcode, select the device in the Devices window, then click the little 
triangle icon to the right of the Filter field. That should show you the output 
from the device.

Good luck!

Chris

--
Chris Sheffield
Read Naturally, Inc.
www.readnaturally.com

> On Sep 21, 2015, at 2:28 PM, J. Landman Gay  wrote:
> 
> Way back when, we used to be able to see output from the iOS simulator by 
> watching the Mac Console app. That stopped working some time ago. Is it 
> possible to view stdout from the simulator any more?
> 
> -- 
> 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

Monitoring stdout on iOS simulator

2015-09-21 Thread J. Landman Gay
Way back when, we used to be able to see output from the iOS simulator 
by watching the Mac Console app. That stopped working some time ago. Is 
it possible to view stdout from the simulator any more?


--
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: LiveCode for the rest of us

2015-09-21 Thread BNig

> -- Oh where can I set the design grid unit values? Oh, no grids? 
> -- where is my hide and show design grid? Oh right.. no grids... 
> -- Oh, where do I turn on "snap to grid" Oops right... no grid...  but 
> this is 2015! 

In addition to what Jaque said (that you can set it via preferencese and
from the "View" menu)you might want to have a look at
-
http://livecodeshare.runrev.com/stack/757/GridDrawer
-

until visual feedback for grid is build in this plug-in might be helpful

Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/LiveCode-for-the-rest-of-us-tp4696424p4696508.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: LiveCode for the rest of us

2015-09-21 Thread J. Landman Gay
At least some of the things you mention are already there, but are easy 
to miss.


On 9/21/2015 1:57 AM, Brahmanathaswami wrote:

-- still futzing with getting the label of a button to center


See the new "iconGravity" property.


-- Oh... ouch, the color picker is giving me wrong RGB values when I use
the dropper to pick color from somewhere else on the screen.
Fortunately I have Eric Chatonet's color widget.. it still works and
*his* picker gives me the *real* RGB values


I never noticed this. I wonder if it has something to do with the gamma 
and/or display settings on the machine. I believe LC returns the values 
that are reflected by the monitor rather than the actual numbers that 
were set in LC (or maybe it's the other way around.)



-- Hmmm.. why align  objects isn't just be there in the menubar?


Objects -> Align Selected Controls


-- OMG... typesetting support is all over the place, here, there, over
there... this palette, that property.


I agree. And there are some very nice newer additions that haven't made 
it to the property inspector at all, and must be applied via the message 
box.



-- Oh where can I set the design grid unit values? Oh, no grids?

> -- where is my hide and show design grid? Oh right.. no grids...
> -- Oh, where do I turn on "snap to grid" Oops right... no grid...

Yes, there's been a grid since MetaCard. It's set to either 1 or 2 px by 
default (can't remember, I changed it) so you probably didn't notice it 
was there. Toggle it on/off from the View menu. Set the size of the grid 
in Preferences -> Appearance -> Grid spacing. However, there are no 
visible lines for the grid, so maybe that's what you mean.



-- Animation: I'm not looking to do Disney characters... or skins for
Unity characters... I just want an object to move smoothly across the
screen from point A to point B...So I have to code that? ok... but why
is it so jerky... it's not smooth... like if I do css animation, it's
smooth as skates on ice...flowing water... what's with LC?


You do have to code it, and that's what acceleratedRendering does along 
with the layerMode setting for each object. I'd like to see a blog post 
about this because it's not something that's readily apparent and does 
require some specialized tinkering. But once it works, animation is 
pretty good.


Good points about the other things in the list that I didn't include. 
Some of them, like changing text size with a keystroke, could be done 
without too much work and submitted as a contribution to the IDE. If I 
had more time I'd do it myself. If things calm down here, maybe I will. 
I hope that won't prevent someone else from trying though.


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


Introducing LiveCode's New Feature Exchange Platform

2015-09-21 Thread Jana Doughty
Hi All,

We have a new platform we're launching today! You can read all about it
and its the new feature opportunities here:
https://livecode.com/introducing-new-feature-exchange-platform/

Thanks!

Jana


___
use-livecode mailing list
use-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: SQL Select... the last 10 records from a table ?

2015-09-21 Thread Bob Sneidar
Inverse sort, limit 10

Bob S


> On Sep 20, 2015, at 05:59 , John Dixon  wrote:
> 
> I understand how to select, say the top 10 records in a table... What would 
> the best way to select the last 10 records from a table ?
> 
> ___
> use-livecode mailing list
> use-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: Mobile ftp

2015-09-21 Thread Matthias Rebbe | M-R-D


> Am 21.09.2015 um 17:25 schrieb John Dixon :
> 
> Matthias and Ralph...
> 
> Thanks to both of you for getting me on the right path... eventually, I have 
> got it to work ... :-) but for a little while earlier this afternoon my mac 
> nearly went out of the window

That´s why i  have attached my Mac to a KensingtonLock .. ;)
> 
> Dixie
> 
>> From: rdim...@evergreeninfo.net
>> To: use-livecode@lists.runrev.com
>> Subject: RE: Mobile ftp
>> Date: Mon, 21 Sep 2015 10:28:03 -0400
>> 
>> No it's just a variable. You could:
>> 
>> put url ("File:"& specialFolderPath("documents") & slash & "MyFile.txt")
>> into MyVar
>> 
>> put MyVar into
>> url("ftp://Username:=passw...@xyz.on-rev.com/somepath/filename.txt";)
>> 
>> or put it in one line:
>> 
>> put url ("File:"& specialFolderPath("documents") & slash & "MyFile.txt")
>> into url("ftp://Username:=passw...@xyz.on-rev.com/somepath/filename.txt";)
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
>> 
>> -Original Message-
>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
>> Of John Dixon
>> Sent: Monday, September 21, 2015 10:10 AM
>> To: How to use LiveCode
>> Subject: RE: Mobile ftp
>> 
>> Ralph...
>> 
>> In your example is myVar the path to a file ?
>> 
>> 
>>> From: rdim...@evergreeninfo.net
>>> To: use-livecode@lists.runrev.com
>>> Subject: RE: Mobile ftp
>>> Date: Mon, 21 Sep 2015 09:55:59 -0400
>>> 
>>> John,
>>> 
>>> This works for me on mobile.
>>> 
>>> put MyVar into url
>>> ("ftp://Username:=passw...@xyz.on-rev.com/somepath/filename.txt";)
>>> 
>>> Ralph DiMola
>>> IT Director
>>> Evergreen Information Services
>>> rdim...@evergreeninfo.net
>>> 
>>> 
>>> -Original Message-
>>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
>>> Behalf Of John Dixon
>>> Sent: Monday, September 21, 2015 9:34 AM
>>> To: How to use LiveCode
>>> Subject: RE: Mobile ftp
>>> 
>>> Matthias...
>>> 
>>> This is working for you on mobile ?
>>> 
 Subject: Re: Mobile ftp
 From: matthias_livecode_150...@m-r-d.de
 Date: Mon, 21 Sep 2015 15:16:45 +0200
 To: use-livecode@lists.runrev.com
 
 Hi John,
 
 to upload a file by ftp  to an ftp server you need to add the 
 username and password to the put statement and also if the  file is 
 a ascii/text or
>>> a binary file E.g.
 
 
 put tData into
>>> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com" 
 
 this put a text/ascii file into the root folder of the ftp account 
 put tData into
>>> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com"
 
 or to put the text file into an existing subfolder named "testupload" 
 use
 
 put tData into
>>> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com
>>> /testu
>>> pload/"
 
 
 Replace file with binfile if you want to upload a binary file. 
 
 
 Regards,
 
 Matthias
 
 
> Am 21.09.2015 um 14:21 schrieb John Dixon :
> 
> In the iOS release notes it says...
> 
> To upload a file to an FTP server you can use:
> put tData into url "ftp://ftp.myftpserver.com";
> 
> Could someone flesh this out a little for me... I'm not getting it 
> to
>>> work... 
> 
> 
> ___
> use-livecode mailing list
> use-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
>>
>> ___
>> use-livecode mailing list
>> use-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 v

RE: Mobile ftp

2015-09-21 Thread John Dixon
Matthias and Ralph...

Thanks to both of you for getting me on the right path... eventually, I have 
got it to work ... :-) but for a little while earlier this afternoon my mac 
nearly went out of the window

Dixie

> From: rdim...@evergreeninfo.net
> To: use-livecode@lists.runrev.com
> Subject: RE: Mobile ftp
> Date: Mon, 21 Sep 2015 10:28:03 -0400
> 
> No it's just a variable. You could:
> 
> put url ("File:"& specialFolderPath("documents") & slash & "MyFile.txt")
> into MyVar
> 
> put MyVar into
> url("ftp://Username:=passw...@xyz.on-rev.com/somepath/filename.txt";)
> 
> or put it in one line:
> 
> put url ("File:"& specialFolderPath("documents") & slash & "MyFile.txt")
> into url("ftp://Username:=passw...@xyz.on-rev.com/somepath/filename.txt";)
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of John Dixon
> Sent: Monday, September 21, 2015 10:10 AM
> To: How to use LiveCode
> Subject: RE: Mobile ftp
> 
> Ralph...
> 
> In your example is myVar the path to a file ?
> 
> 
> > From: rdim...@evergreeninfo.net
> > To: use-livecode@lists.runrev.com
> > Subject: RE: Mobile ftp
> > Date: Mon, 21 Sep 2015 09:55:59 -0400
> > 
> > John,
> > 
> > This works for me on mobile.
> > 
> > put MyVar into url
> > ("ftp://Username:=passw...@xyz.on-rev.com/somepath/filename.txt";)
> > 
> > Ralph DiMola
> > IT Director
> > Evergreen Information Services
> > rdim...@evergreeninfo.net
> > 
> > 
> > -Original Message-
> > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
> > Behalf Of John Dixon
> > Sent: Monday, September 21, 2015 9:34 AM
> > To: How to use LiveCode
> > Subject: RE: Mobile ftp
> > 
> > Matthias...
> > 
> > This is working for you on mobile ?
> > 
> > > Subject: Re: Mobile ftp
> > > From: matthias_livecode_150...@m-r-d.de
> > > Date: Mon, 21 Sep 2015 15:16:45 +0200
> > > To: use-livecode@lists.runrev.com
> > > 
> > > Hi John,
> > > 
> > > to upload a file by ftp  to an ftp server you need to add the 
> > > username and password to the put statement and also if the  file is 
> > > a ascii/text or
> > a binary file E.g.
> > > 
> > > 
> > > put tData into
> > URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com" 
> > > 
> > > this put a text/ascii file into the root folder of the ftp account 
> > > put tData into
> > URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com"
> > > 
> > > or to put the text file into an existing subfolder named "testupload" 
> > > use
> > > 
> > > put tData into
> > URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com
> > /testu
> > pload/"
> > > 
> > > 
> > > Replace file with binfile if you want to upload a binary file. 
> > > 
> > > 
> > > Regards,
> > > 
> > > Matthias
> > > 
> > > 
> > > > Am 21.09.2015 um 14:21 schrieb John Dixon :
> > > > 
> > > > In the iOS release notes it says...
> > > > 
> > > > To upload a file to an FTP server you can use:
> > > > put tData into url "ftp://ftp.myftpserver.com";
> > > > 
> > > > Could someone flesh this out a little for me... I'm not getting it 
> > > > to
> > work... 
> > > > 
> > > >   
> > > > ___
> > > > use-livecode mailing list
> > > > use-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
> 
> ___
> use-livecode mailing list
> use-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.ru

RE: Mobile ftp TYPO

2015-09-21 Thread Ralph DiMola
Correction==>THERE IS NO "=" before the password. Just a ":" between the
username and password. It was a cut/paste snafu. Also as Matthias said use
"binfile:" not "file:" form for binary data.

No it's just a variable. You could:

put url ("File:"& specialFolderPath("documents") & slash & "MyFile.txt")
into MyVar

put MyVar into
url("ftp://Username:passw...@xyz.on-rev.com/somepath/filename.txt";)

or put it in one line:

put url ("File:"& specialFolderPath("documents") & slash & "MyFile.txt")
into url("ftp://Username:passw...@xyz.on-rev.com/somepath/filename.txt";)

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

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of John Dixon
Sent: Monday, September 21, 2015 10:10 AM
To: How to use LiveCode
Subject: RE: Mobile ftp

Ralph...

In your example is myVar the path to a file ?


> From: rdim...@evergreeninfo.net
> To: use-livecode@lists.runrev.com
> Subject: RE: Mobile ftp
> Date: Mon, 21 Sep 2015 09:55:59 -0400
> 
> John,
> 
> This works for me on mobile.
> 
> put MyVar into url
> ("ftp://Username:=passw...@xyz.on-rev.com/somepath/filename.txt";)
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
> Behalf Of John Dixon
> Sent: Monday, September 21, 2015 9:34 AM
> To: How to use LiveCode
> Subject: RE: Mobile ftp
> 
> Matthias...
> 
> This is working for you on mobile ?
> 
> > Subject: Re: Mobile ftp
> > From: matthias_livecode_150...@m-r-d.de
> > Date: Mon, 21 Sep 2015 15:16:45 +0200
> > To: use-livecode@lists.runrev.com
> > 
> > Hi John,
> > 
> > to upload a file by ftp  to an ftp server you need to add the 
> > username and password to the put statement and also if the  file is 
> > a ascii/text or
> a binary file E.g.
> > 
> > 
> > put tData into
> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com" 
> > 
> > this put a text/ascii file into the root folder of the ftp account 
> > put tData into
> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com"
> > 
> > or to put the text file into an existing subfolder named "testupload" 
> > use
> > 
> > put tData into
> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com
> /testu
> pload/"
> > 
> > 
> > Replace file with binfile if you want to upload a binary file. 
> > 
> > 
> > Regards,
> > 
> > Matthias
> > 
> > 
> > > Am 21.09.2015 um 14:21 schrieb John Dixon :
> > > 
> > > In the iOS release notes it says...
> > > 
> > > To upload a file to an FTP server you can use:
> > > put tData into url "ftp://ftp.myftpserver.com";
> > > 
> > > Could someone flesh this out a little for me... I'm not getting it 
> > > to
> work... 
> > > 
> > > 
> > > ___
> > > use-livecode mailing list
> > > use-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
  
___
use-livecode mailing list
use-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: Mobile ftp

2015-09-21 Thread Ralph DiMola
No it's just a variable. You could:

put url ("File:"& specialFolderPath("documents") & slash & "MyFile.txt")
into MyVar

put MyVar into
url("ftp://Username:=passw...@xyz.on-rev.com/somepath/filename.txt";)

or put it in one line:

put url ("File:"& specialFolderPath("documents") & slash & "MyFile.txt")
into url("ftp://Username:=passw...@xyz.on-rev.com/somepath/filename.txt";)

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

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of John Dixon
Sent: Monday, September 21, 2015 10:10 AM
To: How to use LiveCode
Subject: RE: Mobile ftp

Ralph...

In your example is myVar the path to a file ?


> From: rdim...@evergreeninfo.net
> To: use-livecode@lists.runrev.com
> Subject: RE: Mobile ftp
> Date: Mon, 21 Sep 2015 09:55:59 -0400
> 
> John,
> 
> This works for me on mobile.
> 
> put MyVar into url
> ("ftp://Username:=passw...@xyz.on-rev.com/somepath/filename.txt";)
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
> Behalf Of John Dixon
> Sent: Monday, September 21, 2015 9:34 AM
> To: How to use LiveCode
> Subject: RE: Mobile ftp
> 
> Matthias...
> 
> This is working for you on mobile ?
> 
> > Subject: Re: Mobile ftp
> > From: matthias_livecode_150...@m-r-d.de
> > Date: Mon, 21 Sep 2015 15:16:45 +0200
> > To: use-livecode@lists.runrev.com
> > 
> > Hi John,
> > 
> > to upload a file by ftp  to an ftp server you need to add the 
> > username and password to the put statement and also if the  file is 
> > a ascii/text or
> a binary file E.g.
> > 
> > 
> > put tData into
> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com" 
> > 
> > this put a text/ascii file into the root folder of the ftp account 
> > put tData into
> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com"
> > 
> > or to put the text file into an existing subfolder named "testupload" 
> > use
> > 
> > put tData into
> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com
> /testu
> pload/"
> > 
> > 
> > Replace file with binfile if you want to upload a binary file. 
> > 
> > 
> > Regards,
> > 
> > Matthias
> > 
> > 
> > > Am 21.09.2015 um 14:21 schrieb John Dixon :
> > > 
> > > In the iOS release notes it says...
> > > 
> > > To upload a file to an FTP server you can use:
> > > put tData into url "ftp://ftp.myftpserver.com";
> > > 
> > > Could someone flesh this out a little for me... I'm not getting it 
> > > to
> work... 
> > > 
> > > 
> > > ___
> > > use-livecode mailing list
> > > use-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
  
___
use-livecode mailing list
use-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: Mobile ftp

2015-09-21 Thread Matthias Rebbe | M-R-D
If you want to upload a file then you have to use

put URL myvar into URL “ftp://…..";

where myvar contains the the path to a file and as prefix file: or binfile: 
e.g.

binfile:c:/users/matthias/documents/test.jpg




> Am 21.09.2015 um 16:10 schrieb John Dixon :
> 
> Ralph...
> 
> In your example is myVar the path to a file ?
> 
> 
>> From: rdim...@evergreeninfo.net
>> To: use-livecode@lists.runrev.com
>> Subject: RE: Mobile ftp
>> Date: Mon, 21 Sep 2015 09:55:59 -0400
>> 
>> John,
>> 
>> This works for me on mobile.
>> 
>> put MyVar into url
>> ("ftp://Username:=passw...@xyz.on-rev.com/somepath/filename.txt";)
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
>> 
>> 
>> -Original Message-
>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
>> Of John Dixon
>> Sent: Monday, September 21, 2015 9:34 AM
>> To: How to use LiveCode
>> Subject: RE: Mobile ftp
>> 
>> Matthias...
>> 
>> This is working for you on mobile ?
>> 
>>> Subject: Re: Mobile ftp
>>> From: matthias_livecode_150...@m-r-d.de
>>> Date: Mon, 21 Sep 2015 15:16:45 +0200
>>> To: use-livecode@lists.runrev.com
>>> 
>>> Hi John,
>>> 
>>> to upload a file by ftp  to an ftp server you need to add the username 
>>> and password to the put statement and also if the  file is a ascii/text or
>> a binary file E.g.
>>> 
>>> 
>>> put tData into
>> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com" 
>>> 
>>> this put a text/ascii file into the root folder of the ftp account put 
>>> tData into
>> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com"
>>> 
>>> or to put the text file into an existing subfolder named "testupload" 
>>> use
>>> 
>>> put tData into
>> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com/testu
>> pload/"
>>> 
>>> 
>>> Replace file with binfile if you want to upload a binary file. 
>>> 
>>> 
>>> Regards,
>>> 
>>> Matthias
>>> 
>>> 
 Am 21.09.2015 um 14:21 schrieb John Dixon :
 
 In the iOS release notes it says...
 
 To upload a file to an FTP server you can use:
 put tData into url "ftp://ftp.myftpserver.com";
 
 Could someone flesh this out a little for me... I'm not getting it to
>> work... 
 
  
 ___
 use-livecode mailing list
 use-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
> 
> ___
> use-livecode mailing list
> use-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: Mobile ftp

2015-09-21 Thread John Dixon
Ralph...

In your example is myVar the path to a file ?


> From: rdim...@evergreeninfo.net
> To: use-livecode@lists.runrev.com
> Subject: RE: Mobile ftp
> Date: Mon, 21 Sep 2015 09:55:59 -0400
> 
> John,
> 
> This works for me on mobile.
> 
> put MyVar into url
> ("ftp://Username:=passw...@xyz.on-rev.com/somepath/filename.txt";)
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of John Dixon
> Sent: Monday, September 21, 2015 9:34 AM
> To: How to use LiveCode
> Subject: RE: Mobile ftp
> 
> Matthias...
> 
> This is working for you on mobile ?
> 
> > Subject: Re: Mobile ftp
> > From: matthias_livecode_150...@m-r-d.de
> > Date: Mon, 21 Sep 2015 15:16:45 +0200
> > To: use-livecode@lists.runrev.com
> > 
> > Hi John,
> > 
> > to upload a file by ftp  to an ftp server you need to add the username 
> > and password to the put statement and also if the  file is a ascii/text or
> a binary file E.g.
> > 
> > 
> > put tData into
> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com" 
> > 
> > this put a text/ascii file into the root folder of the ftp account put 
> > tData into
> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com"
> > 
> > or to put the text file into an existing subfolder named "testupload" 
> > use
> > 
> > put tData into
> URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com/testu
> pload/"
> > 
> > 
> > Replace file with binfile if you want to upload a binary file. 
> > 
> > 
> > Regards,
> > 
> > Matthias
> > 
> > 
> > > Am 21.09.2015 um 14:21 schrieb John Dixon :
> > > 
> > > In the iOS release notes it says...
> > > 
> > > To upload a file to an FTP server you can use:
> > > put tData into url "ftp://ftp.myftpserver.com";
> > > 
> > > Could someone flesh this out a little for me... I'm not getting it to
> work... 
> > > 
> > > 
> > > ___
> > > use-livecode mailing list
> > > use-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
  
___
use-livecode mailing list
use-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: Mobile ftp

2015-09-21 Thread Matthias Rebbe | M-R-D
Hi John,

please excuse. That was bullshit. I should have reread my answer before 
posting. Just replace file: with ftp:// in the examples. That should work.

put tData into 
URL”ftp://HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com 
” 

Matthias




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


RE: Mobile ftp

2015-09-21 Thread Ralph DiMola
John,

This works for me on mobile.

put MyVar into url
("ftp://Username:=passw...@xyz.on-rev.com/somepath/filename.txt";)

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


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of John Dixon
Sent: Monday, September 21, 2015 9:34 AM
To: How to use LiveCode
Subject: RE: Mobile ftp

Matthias...

This is working for you on mobile ?

> Subject: Re: Mobile ftp
> From: matthias_livecode_150...@m-r-d.de
> Date: Mon, 21 Sep 2015 15:16:45 +0200
> To: use-livecode@lists.runrev.com
> 
> Hi John,
> 
> to upload a file by ftp  to an ftp server you need to add the username 
> and password to the put statement and also if the  file is a ascii/text or
a binary file E.g.
> 
> 
> put tData into
URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com" 
> 
> this put a text/ascii file into the root folder of the ftp account put 
> tData into
URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com"
> 
> or to put the text file into an existing subfolder named "testupload" 
> use
> 
> put tData into
URL"file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com/testu
pload/"
> 
> 
> Replace file with binfile if you want to upload a binary file. 
> 
> 
> Regards,
> 
> Matthias
> 
> 
> > Am 21.09.2015 um 14:21 schrieb John Dixon :
> > 
> > In the iOS release notes it says...
> > 
> > To upload a file to an FTP server you can use:
> > put tData into url "ftp://ftp.myftpserver.com";
> > 
> > Could someone flesh this out a little for me... I'm not getting it to
work... 
> > 
> >   
> > ___
> > use-livecode mailing list
> > use-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: Is it safe to return an array from a function?

2015-09-21 Thread Dave Kilroy
Peter & Mark - hooray! :)



-
"The difference between genius and stupidity is; genius has its limits." - 
Albert Einstein
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Is-it-safe-to-return-an-array-from-a-function-tp4696483p4696496.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: Mobile ftp

2015-09-21 Thread John Dixon
Matthias...

This is working for you on mobile ?

> Subject: Re: Mobile ftp
> From: matthias_livecode_150...@m-r-d.de
> Date: Mon, 21 Sep 2015 15:16:45 +0200
> To: use-livecode@lists.runrev.com
> 
> Hi John,
> 
> to upload a file by ftp  to an ftp server you need to add the username and 
> password to the put statement and also if the  file is a ascii/text or a 
> binary file
> E.g.
> 
> 
> put tData into 
> URL”file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com” 
> 
> this put a text/ascii file into the root folder of the ftp account
> put tData into 
> URL”file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com” 
> 
> or to put the text file into an existing subfolder named “testupload” use
> 
> put tData into 
> URL”file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com/testupload/"
> 
> 
> Replace file with binfile if you want to upload a binary file. 
> 
> 
> Regards,
> 
> Matthias
> 
> 
> > Am 21.09.2015 um 14:21 schrieb John Dixon :
> > 
> > In the iOS release notes it says...
> > 
> > To upload a file to an FTP server you can use:
> > put tData into url "ftp://ftp.myftpserver.com";
> > 
> > Could someone flesh this out a little for me... I'm not getting it to 
> > work... 
> > 
> >   
> > ___
> > use-livecode mailing list
> > use-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: Mobile ftp

2015-09-21 Thread Matthias Rebbe | M-R-D
Hi John,

to upload a file by ftp  to an ftp server you need to add the username and 
password to the put statement and also if the  file is a ascii/text or a binary 
file
E.g.


put tData into 
URL”file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com” 

this put a text/ascii file into the root folder of the ftp account
put tData into 
URL”file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com” 

or to put the text file into an existing subfolder named “testupload” use

put tData into 
URL”file:HERCOMESTHEUSERNAME:herecomesthepassw...@ftp.mymftpserver.com/testupload/"


Replace file with binfile if you want to upload a binary file. 


Regards,

Matthias


> Am 21.09.2015 um 14:21 schrieb John Dixon :
> 
> In the iOS release notes it says...
> 
> To upload a file to an FTP server you can use:
> put tData into url "ftp://ftp.myftpserver.com";
> 
> Could someone flesh this out a little for me... I'm not getting it to work... 
> 
> 
> ___
> use-livecode mailing list
> use-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

Mobile ftp

2015-09-21 Thread John Dixon
In the iOS release notes it says...

To upload a file to an FTP server you can use:
put tData into url "ftp://ftp.myftpserver.com";

Could someone flesh this out a little for me... I'm not getting it to work... 

  
___
use-livecode mailing list
use-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: Is it safe to return an array from a function?

2015-09-21 Thread Peter W A Wood
Thanks very much for the explanation Mark.

Regards

Peter

> On 21 Sep 2015, at 16:52, Mark Waddingham  wrote:
> 
> Like numbers and strings, arrays are values so they are always (notionally) 
> copied whenever they move between locations.
> 
> In 7+ this copying is deferred until needed (copy-on-write), prior to 7 they 
> are copied immediately.
> 
> So, yes, you can pass arrays around without worry.
> 
> Mark.
> 
> Sent from my iPhone
> 
>> On 21 Sep 2015, at 03:28, Peter W A Wood  wrote:
>> 
>> I understand that arrays are passed by reference in LiveCode not by value. I 
>> assume that is also that case if you return an array from a function (i.e. 
>> the reference to the array is returned not its content). When I tried to 
>> return an array from a function, I found that not only you can do so but 
>> multiple calls of the function provide different arrays. As the array being 
>> returned from the function is local to the function, I’m guessing that 
>> LiveCode is creating a new local array for each function call and returning 
>> a reference to the local variable.
>> 
>> Here is the code that I ran under LiveCode Server:
>> 
>> function returnArray
>> local a
>> put 1 into a[1]
>> return a
>> end returnArray
>> 
>> put returnArray() into b
>> put b[1] & return—> prints 1
>> 
>> put returnArray() into c
>> put c[1] & return—> prints 1   
>> 
>> put 3 into c[1]
>> 
>> put b[1] & return—> prints 1
>> put c[1] & return—> prints 2
>> 
>> Is it safe to use such a technique or will the reference to the array become 
>> invalid at some stage?
>> 
>> Peter
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: LiveCode for the rest of us

2015-09-21 Thread Roland Huettmann
Dear Mark, dear Brahmanathaswami, dear all

Thank you very much for your comments. They stir more thinking... )

But if LC is not a graphics tool, not a database tool, not a network tool,
what is it then?

Is it a front-end tool to develop rich interface for various operating
systems? How well does it do this job?

And Brahmanathaswami is pointing out a number of important missing points.

When the level of sophistication goes up - and I am just talking of front
end functionality - then the show is over quickly. Or it needs developers
mastering the extra mile - and then the advantage of such tool is quickly
lost in comparison with other tools and languages on the market.

I have spent many hours - actually weeks - in trying to accomplish
something more sophisticated in LC just on the user interface level - while
other developers doing the same with C# or Java won the race in terms of
how the end product really performed and looked in the end. The end product
is what counts.

And I understand the advantages and disadvantages. I am all for LiveCode
!!!.

But in LC I continuously seem to be developing my own tool set first of all
- (nobody will buy that) - even to accomplish relatively easy tasks. I am
sitting here to develop tools based on tools to feel at ease with my actual
purpose of developing an application (95% database driven). Why do I have
to spend all that time? And why the end product still is missing something
here, and something there? Was this really a good investment of time?

And yes - LC needs to allow for really cool visual design and have a cool
design itself - as it is mainly a front end application builder. Is it?

I happened to watch the roll-out of Hypercard in those old days, and it hit
the Macintosh "masses". But guess what was selling in the end? Even in
those days, the application "Focal Point" of Danny Goodman (such a nice
friendly guy) was making money - not the tool Hypercard. And I translated
it and took it to the European markets localizing and adding functions. It
was a great experience. How many years back? Where are we now? A lot can be
learned even from those experiences.

The point here: Applications serving a purpose may sell. And they must be
"state of the art" at least.

In then end, nobody is asking HOW you made them.

Only in rare cases, and when there are really large developer communities -
 tools sell. And a danger is inherent especially in tools trying to be an
"Eierlegende Wollmilchsau" - a German idiom for something that tries to be
a multi-purpose everything at once. My literal translation: "egg-laying
milk-bearing wool-giving sow".

You can never have enough developers to accomplish that. )

And we all seem to be sitting here opening our beaks as a band of chicks
 expecting the worms to be crammed into our throats. )

How could Kevin ever accomplish that? My highest admiration on one side. My
sorrowful face on the other.

Certainly, I am aware of the promises of LC 8 ))). It is a great promise.

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


Re: Is it safe to return an array from a function?

2015-09-21 Thread Peter W A Wood
Dave

> On 21 Sep 2015, at 16:15, Dave Kilroy  wrote:
> 
> Hi Peter
> 
> Your scary posting made me test on LC8.0(db4), LC7.0.1(rc2) and LC 6.7.6 -
> and I'm relieved to say that the arrays performed impeccably (returning '3'
> in the final line)
> 
> Can you give us some more info on your setup and anything else that could be
> conspiring to give you '2' instead of 3?

The main difference between my set up and yours is the keyboard operator 
driver. I typed 2 when I should have typed 3. Sorry if I got you worried.

Regards

Peter


___
use-livecode mailing list
use-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: Is it safe to return an array from a function?

2015-09-21 Thread Mark Waddingham
Like numbers and strings, arrays are values so they are always (notionally) 
copied whenever they move between locations.

In 7+ this copying is deferred until needed (copy-on-write), prior to 7 they 
are copied immediately.

So, yes, you can pass arrays around without worry.

Mark.

Sent from my iPhone

> On 21 Sep 2015, at 03:28, Peter W A Wood  wrote:
> 
> I understand that arrays are passed by reference in LiveCode not by value. I 
> assume that is also that case if you return an array from a function (i.e. 
> the reference to the array is returned not its content). When I tried to 
> return an array from a function, I found that not only you can do so but 
> multiple calls of the function provide different arrays. As the array being 
> returned from the function is local to the function, I’m guessing that 
> LiveCode is creating a new local array for each function call and returning a 
> reference to the local variable.
> 
> Here is the code that I ran under LiveCode Server:
> 
> function returnArray
>  local a
>  put 1 into a[1]
>  return a
> end returnArray
> 
> put returnArray() into b
> put b[1] & return—> prints 1
> 
> put returnArray() into c
> put c[1] & return—> prints 1   
> 
> put 3 into c[1]
> 
> put b[1] & return—> prints 1
> put c[1] & return—> prints 2
> 
> Is it safe to use such a technique or will the reference to the array become 
> invalid at some stage?
> 
> Peter
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: Is it safe to return an array from a function?

2015-09-21 Thread Dave Kilroy
Peter - looking at your post again makes me think your 'returns 2' must have
been a typo (phew) - let me know if not...

Page 8 of the Release Notes for LC 7.0.0(rc2) states:


> Array element pass by reference (7.0.0-rc-2)
> 
> It is now possible to pass parts of an array by reference. For example,
> the following
> 
> on mouseUp local tArray
> put "" into tArray[1][2] passByRef tArray[1]
> put tArray[1][2]
> end mouseUp
> 
> on passByRef @rArray
> put "changed" into rArray[2]
> end passByRef
> 
> in the script of a button will result in "changed" appearing in the
> message box when the button is pressed.
> 
> This allows users to reduce the overhead associated with passing
> sub-arrays to handlers, as this would no longer require copying the
> sub-array internally.

But this says nothing about arrays returned from functions - so you have a
VERY GOOD QUESTION - at a guess I should think that the well-established
'return' routines would trump any new-fangled 'referencing' functionality
(otherwise how many apps would suddenly start crashing?). 

But it would indeed be nice to get confirmation from someone who knows...

Kind regards

Dave



-
"The difference between genius and stupidity is; genius has its limits." - 
Albert Einstein
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Is-it-safe-to-return-an-array-from-a-function-tp4696483p4696488.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


[ANN] This Week in LiveCode - new open source newsletter

2015-09-21 Thread Peter TB Brett

Hi all,

Read all about new developments in LiveCode open source and the open 
source community in the new "This Week in LiveCode" newsletter!


Read the first issue here: https://goo.gl/7U0xGB


This is a new, weekly newsletter about LiveCode, focussing on what's 
been going on in and around the open source project.  New issues will be 
released weekly on Mondays.  We have a dedicated mailing list that will 
deliver each issue directly to you e-mail, so you don't miss any!


If you have anything you'd like mentioned (a project, a discussion 
somewhere, an upcoming event) then please get in touch.


 Peter


--
Dr Peter Brett 
LiveCode Open Source Team

LiveCode on reddit: https://reddit.com/r/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: Is it safe to return an array from a function?

2015-09-21 Thread Dave Kilroy
Hi Peter

Your scary posting made me test on LC8.0(db4), LC7.0.1(rc2) and LC 6.7.6 -
and I'm relieved to say that the arrays performed impeccably (returning '3'
in the final line)

Can you give us some more info on your setup and anything else that could be
conspiring to give you '2' instead of 3?



-
"The difference between genius and stupidity is; genius has its limits." - 
Albert Einstein
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Is-it-safe-to-return-an-array-from-a-function-tp4696483p4696486.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