sending a PDF mail attachment in iOS7

2014-05-13 Thread Scott Morrow

Using mobileComposeHtmlMail to send a PDF attachment works as expected under 
iOS 6
but under iOS 7 the email to be sent (in the iOS 7 mail app) has a small box 
with a question mark instead of the pdf attachment icon (I also tested a text 
attachment and that seems to display correctly)
There does not appear to be an error during the creation of the pdf and in some 
cases the mail client on the receiving end displays the pdf attachment. 
Unfortunately, on some mail clients the pdf fails to show up. I’m wondering if 
anyone else is seeing this or can suggest what I might be doing incorrectly.
  LC 6.6.1, 6.6.2 (rc 3) and 6.7 (dp 3) 

-- construct an attachment array
-- tFilePath is the path to a pdf
 put empty into aAttachments -- init
 set the itemDel to SLASH
 put item -1 of tFilePath into tAttachmentName
 set the itemDel to COMMA  -- tidy
 put tFilePath into aAttachments[1][file]
 put pdf into aAttachments[1][type]
 put tAttachmentName into aAttachments[1][name]
-- —
-- assume  tSubject, tToAddress, tCC, tBCC, tBodyAsHTML were previously 
populated
-- —
-- send the e-mail
 mobileComposeHtmlMail tSubject, tToAddress, tCC, tBCC, tBodyAsHTML, 
aAttachments


—
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com
office 1-800-615-0867
--








___
use-livecode mailing list
use-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: Error Messages Are Evil

2014-05-13 Thread Dave Kilroy
Thanks for this Dar - I like it very much :)

Dar Scott wrote
 Sure.  Here is a belabored example of my style of tenacious I/O.





-
Some are born coders, some achieve coding, and some have coding thrust upon 
them. - William Shakespeare  Hugh Senior

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Error-Messages-Are-Evil-tp4679382p4679438.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: Does exists LiveCode Server Portable...

2014-05-13 Thread Björnke von Gierke
I'm not sure I understand your question correctly, so here's two answers:

Any livecode standalone can be a server. All you need to do is to use the 
accept socket command. For example, the ChatRev server runs from an IDE 
installed on an old ibook. But it could as well be a windows standalone (which 
it was some years back).

If you however mean the livecode server thing that runs in a web server, then 
you probably can't run it as server without apache or iss. however, you can run 
livecode locally as a non-server engine where it will behave exactly like a 
server, outputting text to the shell instead of a http connection.

Maybe you can specify a bit more detailed what the goal is, and why you want to 
work around zone alarm?

On 13 May 2014, at 01:44, Alejandro Tejada capellan2...@gmail.com wrote:

 Hi All, 
 
 LiveCode could open a socket to send and receive 
 data from other applications. 
 
 Does exists a method to create a portable 
 LiveCode server that runs locally without 
 installing any file in the computer? 
 
 In one of my computers, every application 
 that opens a socket must be authorized 
 by the user because Zone Alarm ask for 
 permission... 
 
 Notice that I run many versions of 
 LiveCode and none of them are installed. 
 I launch LiveCode from their own 
 folder. All versions of LiveCode are within 
 the Documents folder, not installed inside 
 the Windows Program folder. 
 
 Al
 
 
 
 --
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/Does-exists-LiveCode-Server-Portable-tp4679431.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

--

Anyone thinking about going to Zurich in the summer? 
Please fill out the form and send me an email: 
http://doodle.com/yapygihh3itgz2qr

-- 

Use an alternative Dictionary viewer:
http://bjoernke.com/bvgdocu/

Chat with other RunRev developers:
http://bjoernke.com/chatrev/



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


[SERVER] Is it possible to run a stack on LC-Server and interact with it ?

2014-05-13 Thread Rolf Kocherhans
Hi All

After reading the revUp article Cool Cat Server from David Williams some
time ago here:

http://newsletters.livecode.com/november/issue160/newsletter1.php

I was wondering if it is possible to take a snapshot of a stack running on a 
server
and directly interact with the snapshot from within a browser !

Kind of remotely control it... :-)

After a lot of learning I came up with this:

http://forums.runrev.com/viewtopic.php?f=15t=20388

Enjoy
Cheers
Rolf
___
use-livecode mailing list
use-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: Error Messages Are Evil

2014-05-13 Thread Richard Gaskin

Peter M. Brigham wrote:
 Someone on this list (Richard Gaskin?) once observed that the
 difference between a tool and a product is that a tool only has
 to be able to be used properly, whereas a product has to be unable
 to be used improperly.

I wish I could take credit for that, but that slice of insight comes 
from Steven McConnell, from either Code Complete or Rapid Development.


...
 Windows has always done a lousy job with consistency...

One thing Windows is consistent about is telling us obvious things that 
don't need special notice, like letting me know there are icons on my 
desktop or that I've inserted a CD.


Of course I've inserted a CD - I know that because I just did it.  In 
fact, I can't think of any other way to insert a CD than by human 
intervention, so what new information did they designers of the OS 
imagine they were imparting?


It's the opposite of a confidence-builder when the designers of an OS 
are so overjoyed at the prospect of a computer simply doing what you 
asked it to do that it must be celebrated with an announcement.


Ubuntu had a similar annoyance for many years (thankfully fixes in 
recent versions):  when connecting to wifi, it would present a 
notification box letting me know, as though the wifi icon wasn't 
notification enough.


These are basic tasks we should expect to be done efficiently and 
without error.  They require no celebration.  Don't even mention them 
unless something goes wrong.  Otherwise, as long as the computer is 
doing what we expect it to do, please just shut up and let me focus on 
my work.



Thanks for letting me rant

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


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


Animation Engine: animating points in a polygon?

2014-05-13 Thread Monk in Exile
Just taking a look at the latest version of AE... I have some complex
geometry that create polygons, and would like to animate individual points
so that the shape changes - any ideas?
___
use-livecode mailing list
use-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: Does exists LiveCode Server Portable...

2014-05-13 Thread Richard Gaskin

Alejandro Tejada wrote:


LiveCode could open a socket to send and receive
data from other applications.

Does exists a method to create a portable
LiveCode server that runs locally without
installing any file in the computer?


Many years ago Dr. Raney made a stack available at the old MetaCard site 
called mchttpd which is exactly that:  a simple Web server built in what 
was then called MetaCard.


It still runs in LiveCode, but needed modification to output proper 
headers for more recent browsers, so with Dr. Raney's permission I've 
modified it and you can download it here:

http://fourthworld.net/lc/mchttpd-4W.zip

I still prefer working with Apache for most things since it lets me 
mirror the environment I'll be using when I move what I'm working on 
locally to a public server, but for specialized services mchttpd can be 
a good starting point.



In one of my computers, every application
that opens a socket must be authorized
by the user because Zone Alarm ask for
permission...


A similar requirement happens on OS X as well:  in Lion and later (I 
don't recall seeing this in Snow Leopard), whenever an app starts 
listening on a port the OS notifies the user and asks for confirmation.


This is very helpful, since most serious OSes (read OS X and Linux) 
usually ship with all incoming traffic blocked (well, that's true for 
Ubuntu, not sure about other distros or how well OS X matches that 
security decision).  This means that out of the box the system is 
unreachable from the outside, leaving it to the user to explicitly open 
any ports they might need, while most users never need to go out of 
their way to have the system reasonably well protected.


Once you open a port you're inviting traffic to your machine.  Of course 
most folks have a router to negotiate between their internal network and 
the external Internet, and most routers should require explicit action 
to set up the forwarding of requests to a specific port from the outside 
world to the machine providing the service.  So without that, on most 
routers worth using, things like mchttpd are useful for intranet 
services yet still unreachable to the outside world.


As written, mchttpd is pretty nice, and fairly limited - by design, so 
that it won't, for example, run do on arbitrary strings passed into it.


But it's extensible, so if one were inclined to live dangerously you 
could extend mchttpd to allow it to do any LiveCode statements passed 
in as arguments to the HTTP request - and then your machine could be 
pwned by anyone who can reach it.


Set up port forwarding on your router to allow the world to do that, and 
it would be an interesting measure of LiveCode's current global adoption 
to find out how long it would be until your machine gets pwned. ;)


Of course in any real system you'd want to be very careful to avoid such 
injection exploits.


One of the reasons I've tried to get do, eval and the rest out of my 
habits is not merely because there are almost almost always better 
alternatives, but that if I ever get absent-minded I'm less likely by 
habit to include anything like that in server code.


Interesting exercise for the reader:

On a Mac, open Console and in the side pane click on appfirewall.log

- or -

In Lubuntu, run:

  more /var/log/auth.log

The world is full of botnets randomly attempting access on all ports on 
all machines all day long


On my critical machines I recently set up shared keys between the 
various computers I use, and once that was done I modded my 
/etc/sshd_config so that it no longer allows password login at all.


The downside is that whenever I get a new computer I have to add its key 
by going through one of the existing ones already known in authorized_keys.


But the upside is that no one can use any password to get in, since all 
passwords are rejected.


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

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


Re: sending a PDF mail attachment in iOS7

2014-05-13 Thread William de Smet
Hi Scott,

I have asked the same thing before on the list.
Never got an answer. So nobody uses this or there is no solution.
Maybe it's a bug?

greetings,

William



2014-05-13 9:33 GMT+02:00 Scott Morrow sc...@elementarysoftware.com:


 Using mobileComposeHtmlMail to send a PDF attachment works as expected
 under iOS 6
 but under iOS 7 the email to be sent (in the iOS 7 mail app) has a small
 box with a question mark instead of the pdf attachment icon (I also tested
 a text attachment and that seems to display correctly)
 There does not appear to be an error during the creation of the pdf and in
 some cases the mail client on the receiving end displays the pdf
 attachment. Unfortunately, on some mail clients the pdf fails to show up.
 I’m wondering if anyone else is seeing this or can suggest what I might be
 doing incorrectly.
   LC 6.6.1, 6.6.2 (rc 3) and 6.7 (dp 3) 

 -- construct an attachment array
 -- tFilePath is the path to a pdf
  put empty into aAttachments -- init
  set the itemDel to SLASH
  put item -1 of tFilePath into tAttachmentName
  set the itemDel to COMMA  -- tidy
  put tFilePath into aAttachments[1][file]
  put pdf into aAttachments[1][type]
  put tAttachmentName into aAttachments[1][name]
 -- —
 -- assume  tSubject, tToAddress, tCC, tBCC, tBodyAsHTML were previously
 populated
 -- —
 -- send the e-mail
  mobileComposeHtmlMail tSubject, tToAddress, tCC, tBCC,
 tBodyAsHTML, aAttachments


 —
 Scott Morrow

 Elementary Software
 (Now with 20% less chalk dust!)
 web   http://elementarysoftware.com/
 email sc...@elementarysoftware.com
 office 1-800-615-0867
 --








 ___
 use-livecode mailing list
 use-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: dgh_findIndexes Overwrites Button Script

2014-05-13 Thread Bob Sneidar
Sorry my posts from iPhone are not all getting through. Thinking about it now, 
I probably moved the scripts somewhere else. In fact I may have copied the 
button from another project thinking my utility scripts were contained therein, 
and they were not. 

Bob


On May 6, 2014, at 15:04 , Dar Scott d...@swcp.com wrote:

 Do you think it possible you have not used the Utilities button for a period 
 of time that includes many backups?
 
 Maybe this is the consequence of something that took place long ago.  Maybe 
 select text, forget to copy, then select all in the script and paste.  Save 
 it all in a hurry because it was time for you to blow out birthday candles.  
 I do goofy things, so I think it might be possible that others occasionally 
 do.
 
 I like the new Mavericks multi-display menus, but I have goofed in copy-paste 
 at least once with that.  
 
 Dar
 
 
 On May 6, 2014, at 12:35 PM, Bob Sneidar bobsnei...@iotecdigital.com wrote:
 
 Hi all. 
 
 Wondering if anyone else has seen this: I have a button called Utilities 
 which contains commonly used commands and functions. It seems to have been 
 overwritten by one handler, dgh_findIndexes. All the backups I have are also 
 overwritten. I have not used Datagrid Helper in well over a year, long 
 before I created this stack. How is it then that this script has overwritten 
 virtually all my utility handlers?
 
 Hopefully I have a copy in another project somewhere, but if this is 
 happening to anyone else, I suspect we should find out how and why. 
 
 Bob S
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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 to compare two datagrids

2014-05-13 Thread Bob Sneidar
Easier to work with SQL. Dump your data into two memory resident sqLITE 
databases and use SQL for your comparisons. I did mention quite a while ago how 
nice it would have been to get a single column of data from a data grid. But it 
would not be too difficult to get into the library and write the functionality 
into it yourself. 

Bob


On May 5, 2014, at 12:52 , Magicgate Software - Skip Kimpel 
s...@magicgate.com wrote:

 I have two datagrids that I need to compare column 1.  I then need to
 separate these two lists out into additional datagrids.
 
 For instance, datagrid 1 contains three columns:
 1234, ItemA, ItemDetails
 1235, ItemB, ItemDetails
 1236, ItemC, ItemDetails
 
 Datagrid 2 contains three columns:
 1234, ItemA, ItemDetails
 1235, ItemB, ItemDetails
 
 After the comparison I need a DG that has similar items and a separate DG
 that has unique items:
 Datagrid 3 would result in: (same items)
 1234, ItemA, ItemDetails
 1235, ItemB, ItemDetails
 
 Datagrid 4 would result in: (unique items)
 1236, ItemC, ItemDetails
 
 My head is spinning in datagrid code!  Any help would be greatly
 appreciated!
 
 SKIP
 ___
 use-livecode mailing list
 use-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


Subscription-based sales system

2014-05-13 Thread Marty Knapp
Has anyone set up sales of their applications on a subscription basis? I 
would want something that could be automated so that if a customer's 
subscription ran out, they could make a payment and be back up and 
running without having to wait. It would be for Mac and Windows - no 
mobile and no app stores.


Thanks for any input and ideas.

Marty

___
use-livecode mailing list
use-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: Subscription-based sales system

2014-05-13 Thread Simon Smith
Hi

A number of payment gateways let you do subscriptions (e.g. paypal), if the
periodic payment is unsuccessful (e.g. credit card expires) it will send a
notification to your server, so that you can process and stop the
subscription. You would just need your application to periodically check
the server to see if it can load and react accordingly.



On Tue, May 13, 2014 at 7:08 PM, Marty Knapp martyknapps...@gmail.comwrote:

 Has anyone set up sales of their applications on a subscription basis? I
 would want something that could be automated so that if a customer's
 subscription ran out, they could make a payment and be back up and running
 without having to wait. It would be for Mac and Windows - no mobile and no
 app stores.

 Thanks for any input and ideas.

 Marty

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




-- 

*Simon Smith*
*seo, online marketing, web development*

w. http://www.simonsmith.co
m. +27 83 306 7862
___
use-livecode mailing list
use-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: Subscription-based sales system

2014-05-13 Thread Mark Schonewille

Hi Marty,

Installer Maker is a plug-in and standalone program that can be updated 
for free during 3 months after purchase. During one year after purchase, 
people can buy a new license at a discount price.


Almost everything happens automatically when someone buys a license. I 
only need to press a button to confirm receipt of payment --a step which 
I could easily take out of the process if I wanted to.


The process is the following:
1) someone buys a license using PayPal
2) the server registers payment and PayPal sends an e-mail to me
3) I press the button and an e-mail with the license is sent
4) the license keys of the past 3 months are stored in a database on my 
server


When someone tries to buy an update
5) the user enters his or her license key in a web form
6) if the license key is in the database, a different web form loads
7) the user can use this web form to buy a discounted license using PayPal
8) see step (2)

This isn't exactly a subscription-based system, because people can still 
use Installer Maker with an expired license; they just can't upgrade at 
the discount price after more than one year. However, the license is 
connected with the date it is created on and thus it is easy to make the 
software stop working entirely when this date is reached.


--
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 5/13/2014 19:08, Marty Knapp wrote:

Has anyone set up sales of their applications on a subscription basis? I
would want something that could be automated so that if a customer's
subscription ran out, they could make a payment and be back up and
running without having to wait. It would be for Mac and Windows - no
mobile and no app stores.

Thanks for any input and ideas.

Marty



___
use-livecode mailing list
use-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: Subscription-based sales system

2014-05-13 Thread Andrew Kluthe
I did this for a while. Used revIgniter to talk to stripe.com's recurring
payment service. They provide you with webhooks that can contact your
backend system when a clients subscription status changes.

I found their interfaces and documentation geared towards developers.


On Tue, May 13, 2014 at 12:08 PM, Marty Knapp martyknapps...@gmail.comwrote:

 Has anyone set up sales of their applications on a subscription basis? I
 would want something that could be automated so that if a customer's
 subscription ran out, they could make a payment and be back up and running
 without having to wait. It would be for Mac and Windows - no mobile and no
 app stores.

 Thanks for any input and ideas.

 Marty

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




-- 
Regards,

Andrew Kluthe
and...@ctech.me
___
use-livecode mailing list
use-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: Does exists LiveCode Server Portable...

2014-05-13 Thread Alejandro Tejada
Network Security must be one of the fastest
moving areas in computer technology... :o

Looks like the knowledge in this area is replaced
and discarded every few days or hours
(probably faster than in any other
area in Computer Science). 

This explains why an experienced IT security 
manager commands a salary in the range 
$145,000 - $177,000.

http://www.networkworld.com/news/2014/051214-windows-xp-die-hards-can-slash-281505.html?t51hb

By the way, I do not want to bypass
the Zone Alarm warning about a program
who wants to reach the internet.

A Portable LiveCode Server would help a lot
towards the adoption of it.

Al  
 



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Does-exists-LiveCode-Server-Portable-tp4679431p4679451.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: Does exists LiveCode Server Portable...

2014-05-13 Thread Alejandro Tejada
This is the correct link, instead of XP die-hards... :D
http://www.networkworld.com/news/2013/061213-highest-lowest-tech-salaries-271126.html

Al




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Does-exists-LiveCode-Server-Portable-tp4679431p4679452.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: Animation Engine: animating points in a polygon?

2014-05-13 Thread Alejandro Tejada
Hi David,

To animate a polygon graphic,
change the points of the polygon
using the command:

set the points of graphic myAnimation to the cpFrame01 of graphic
myAnimation
wait 1 second
set the points of graphic myAnimation to the cpFrame02 of graphic
myAnimation
etc, etc, etc

Notice that if your polygon graphics use many curved segments,
you could calculate the points of the curve on the fly 
using any of the handlers posted in this mail list 
by Jim Hurley, Ian Macphail and myself.

Al





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Animation-Engine-animating-points-in-a-polygon-tp4679442p4679453.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: Does exists LiveCode Server Portable...

2014-05-13 Thread Richard Gaskin

Alejandro Tejada wrote:

A Portable LiveCode Server would help a lot
towards the adoption of it.


What do you mean by portable?

Servers run many services, LiveCode being just one.  They also need DNS. 
 So using LC Server under Apache at a Web host seems a good way to go, no?


Besides, neither mchttpd nor any other standalone will do quite what LC 
Server does in terms of mixing HTML with executable LiveCode.   The 
merge function available to standalones is quite different from the one 
called implicitly in Server (no control structures, for example).


mchttd can be a good solution for providing specialized services, but 
for integration with publicly accessible servers LC Server is the way to go.


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

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


Re: Does exists LiveCode Server Portable...

2014-05-13 Thread Alejandro Tejada
Hi Richard,


Richard Gaskin wrote
 Many years ago Dr. Raney made a stack available at the old MetaCard site 
 called mchttpd which is exactly that:  a simple Web server built in what 
 was then called MetaCard.
 
 It still runs in LiveCode, but needed modification to output proper 
 headers for more recent browsers, so with Dr. Raney's permission I've 
 modified it and you can download it here:
 lt;
 http://fourthworld.net/lc/mchttpd-4W.zip
 gt;
 [snip]

Excellent! :D

After clicking the button START SERVER
Zone Alarm alerted me that LiveCode
wants to open port 8080. 

After authorizing this connection,
I pasted this in Google Chrome
new tab:

http://localhost:8080

and there it is.
 
A welcome webpage served by 
mchttpd itself! :D
Just all images links are broken.

This page:
http://localhost:8080/answerClient
works really fine and now it's my
turn to experiment, change and
extend this basic example.

I just keep wondering:
Does exists a method to use Ralf Bitter's revIgniter
with this server?  http://revigniter.com/

By the way, inside the folder cgi-bin
there is a file named: link_MC_here-_
What does this means?

There is no explanation
in this page either:
http://localhost:8080/nextpage.html

The server script: echo.mt
http://localhost:8080/echo.mt
just produces a single character,
the number 1 after running.

Richard, many thanks again for updating and
reposting this stack from your archives!

Al






--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Does-exists-LiveCode-Server-Portable-tp4679431p4679455.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: Error Messages Are Evil

2014-05-13 Thread Alejandro Tejada
Richard Gaskin wrote
 [snip]
 These are basic tasks we should expect to be done efficiently and 
 without error.  They require no celebration.  Don't even mention them 
 unless something goes wrong.  Otherwise, as long as the computer is 
 doing what we expect it to do, please just shut up and let me focus on 
 my work.
 
 Thanks for letting me rant

You are not alone in this! :D
https://www.youtube.com/watch?v=xYiiD-p2q80



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Error-Messages-Are-Evil-tp4679382p4679456.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: sending a PDF mail attachment in iOS7

2014-05-13 Thread Scott Morrow

There appears to be discussion of, what I assume is our problem, in the Apple 
Support Communities.

https://discussions.apple.com/thread/5992793
https://discussions.apple.com/message/25177460#25177460

This would indicate that it isn’t a LC issue.

—
Scott



On May 13, 2014, at 8:48 AM, William de Smet williamdes...@gmail.com wrote:

 Hi Scott,
 
 I have asked the same thing before on the list.
 Never got an answer. So nobody uses this or there is no solution.
 Maybe it's a bug?
 
 greetings,
 
 William
 
 
 
 2014-05-13 9:33 GMT+02:00 Scott Morrow sc...@elementarysoftware.com:
 
 
 Using mobileComposeHtmlMail to send a PDF attachment works as expected
 under iOS 6
 but under iOS 7 the email to be sent (in the iOS 7 mail app) has a small
 box with a question mark instead of the pdf attachment icon (I also tested
 a text attachment and that seems to display correctly)
 There does not appear to be an error during the creation of the pdf and in
 some cases the mail client on the receiving end displays the pdf
 attachment. Unfortunately, on some mail clients the pdf fails to show up.
 I’m wondering if anyone else is seeing this or can suggest what I might be
 doing incorrectly.
   LC 6.6.1, 6.6.2 (rc 3) and 6.7 (dp 3) 
 
 -- construct an attachment array
 -- tFilePath is the path to a pdf
 put empty into aAttachments -- init
 set the itemDel to SLASH
 put item -1 of tFilePath into tAttachmentName
 set the itemDel to COMMA  -- tidy
 put tFilePath into aAttachments[1][file]
 put pdf into aAttachments[1][type]
 put tAttachmentName into aAttachments[1][name]
 -- —
 -- assume  tSubject, tToAddress, tCC, tBCC, tBodyAsHTML were previously
 populated
 -- —
 -- send the e-mail
 mobileComposeHtmlMail tSubject, tToAddress, tCC, tBCC,
 tBodyAsHTML, aAttachments
 
 
 —
 Scott Morrow
 
 Elementary Software
 (Now with 20% less chalk dust!)
 web   http://elementarysoftware.com/
 email sc...@elementarysoftware.com
 office 1-800-615-0867
 --
 
 
 
 
 
 
 
 
 ___
 use-livecode mailing list
 use-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