Re: Uploading a file using FTP

2017-06-18 Thread Terry Vogelaar via use-livecode
Matthias, thank you for your response.
I do have an Indy licence. There were 2 minor typo’s in line 18 of the script 
of button “upload” that resulted in sending the wrong data. I changed it from:
put URL ("binfile"& fld "ftp_file") into pData
to:
put URL ("binfile:"& fld "ftp_file") into pDat
Now the variable name corresponds with the one used in line 36 and it works 
like a breeze. Thank you


With kind regards,
Terry Vogelaar

> Terry, 
> are you using a commercial license of  LC 8 / 9, Indy or business?
> 
> If so, you could use tsNet external for your ftp uploader. See here 
> <http://dl.qck.nu//?dl=lcMailAndFTP.livecode> for a sample stack which shows 
> how to use tsNet external for uploading using FTP
> Unfortunately the number of parameters changed for tsNetUploadSync between 
> the tsNet releases. So please check the dictionary of your LC version for 
> that function with the script  of the upload button (line 36).
> 
> My stack was successfully tested with LC 8.1.4.
> 
> Hope this helps.
> 
> Matthias
> 
> Matthias Rebbe
> +49 5741 31
> ?matthiasrebbe.eu <http://matthiasrebbe.eu/>?
> 
>> Am 17.06.2017 um 09:20 schrieb Terry Vogelaar via use-livecode 
>> <use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>:
>> 
>> I tried to create a FTP uploader in LC, so I followed the instructions on:
>> http://lessons.livecode.com/m/4071/l/6998-uploading-a-file-using-ftp 
>> <http://lessons.livecode.com/m/4071/l/6998-uploading-a-file-using-ftp>
>> Of course I changed the constants and the FTP domain to the appropriate 
>> settings and that is the only thing I changed. But I only get Status Update: 
>> error. No indication on what the error might be. 
>> 
>> How should I figure out what went wrong, without sharing my FTP credentials 
>> with the list?
>> 
>> 
>> 
>> With kind regards,
>> Terry Vogelaar




___
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

Uploading a file using FTP

2017-06-17 Thread Terry Vogelaar via use-livecode
I tried to create a FTP uploader in LC, so I followed the instructions on:
http://lessons.livecode.com/m/4071/l/6998-uploading-a-file-using-ftp
Of course I changed the constants and the FTP domain to the appropriate 
settings and that is the only thing I changed. But I only get Status Update: 
error. No indication on what the error might be. 

How should I figure out what went wrong, without sharing my FTP credentials 
with the list?



With kind regards,
Terry Vogelaar


___
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: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Terry Vogelaar
Thank you, Mike, for this! This is what I was searching for indeed. And you're 
right; I want to detect activity, not just scrolling. Scrolling was the only 
activity I could not catch yet, hence the subject line. But this does exactly 
what I want.

Fortunately I can not replicate the issue with 10.12 with typing. I am on 
10.12.2, so maybe it has already been fixed. 

This is a priceless Christmas gift to me. Wow!


With kind regards,
Terry Vogelaar

> Op 25 dec. 2016, om 18:19 heeft use-livecode-requ...@lists.runrev.com het 
> volgende geschreven:
> 
> I have an answer..
> 
> Heres a sample script:
> local sRunning
> 
> on mouseUp
> if sRunning is empty then put false into sRunning
> put not sRunning into sRunning
> loopit
> end mouseUp
> 
> command loopit
> if sRunning then
> put the last word of (shell("ioreg -c IOHIDSystem |grep Idle")) into tIdle
> put tIdle / 10 into field 1
> send "loopit" to me in 2 sec
> end if
> end loopit
> 
> The script is in a button, and I have a single field on the card.  The math
> is done to convert to seconds of idle.
> 
> The are only 2 disclaimers here.  First is that the value returned pre 10.3
> is hex so you'd have to handle that if you have an earlier osx.  10.3 and
> after this solution should work fine.
> 
> The second issue is is that on mac 10.12, the idle time won't update on
> typing.  Its an osx issue for that specific version, but worst case you
> already have a method to track keypresses.

___
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: Detect scroll activity (when LC is not frontmost)

2016-12-25 Thread Terry Vogelaar
A lot of responses to my question; thank you all for that. I use the digest, so 
sometimes it takes a while before I respond.

Richard's suggestion to keep the LC window in front is not what I want. It 
needs to run in the background because it is for a productivity & 
RSI-prevention app. The whole idea is that I do other work in-between and I get 
warnings and suggestions when it is time for a break.

Mike's idea to periodically check some Windows log file is hard for me to 
implement because I am on a Mac.

So it starts to become clear that it might not be possible to do what I want. 
Although I hope to be wrong about that.



With kind regards,
Terry Vogelaar


___
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


Detect scroll activity (when LC is not frontmost)

2016-12-21 Thread Terry Vogelaar
I’m working on a productivity & RSI prevention app. So I want to notice 
activity while my project is not the frontmost application. Thanks to a very 
helpful list member, my LiveCode stack can detect key strokes (the keysdown is 
not empty) and mouse clicks (the mouse is down). I added mouse movement to that 
(the screenMouseLoc).

But how do I catch usage of the mouse scroll wheel? There is a lot of scrolling 
(and not much else) going on when viewing a website like Facebook or Twitter. 
So my app would consider that to be a ‘pause’. 


With kind regards,
Terry Vogelaar


___
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: My own productivity app

2016-11-30 Thread Terry Vogelaar
Thank you, Jacqueline and Mike, for your responses. 

Jacqueline wrote that LC provides no feedback when it isn't the frontmost app. 
But is there a way to use MacOS's Notification Center from within LiveCode to 
tell me things like that?

Mike's solution using a timed loop seems to do the trick to add the MacBreakZ 
functionality. So the app and site blocking functionality is the only thing 
that is hard to implement. But for that, I could use (hey)Focus; this app is 
the least intrusive of the three I mentioned. So I could make my own 
Pomodoro-timer with a ToDo-list and the MacBreakZ-functionality, and let 
(hey)Focus do the site/app blocking.

Heck, key logging, site blocking, disabling of other apps… It sounds like I'm 
brewing up something evil. (But I'm not.) 

Thanks for the help.


With kind regards,
Terry Vogelaar


> The only way I know of to monitor keystrokes/mouse events is with a loop. 
> Check to see if keysdown() is empty, and "if the mouse is down.”  Certain 
> things won't trigger the mouse is down such as grabbing a title bar and 
> dragging it around (on windows)  but most other clicks will work fine.
> 
> For a simple test, I made a stack with a field and a button. the following 
> code is in the button.
> local sRunning
> 
> on mouseUp
> if sRunning is empty then put false into sRunning
> put not sRunning into sRunning
> loopit
> end mouseUp
> 
> command loopit
> if sRunning then
>   if the keysdown is not empty then
>  put keysdown() into field 1
>   else
>  put empty into field 1
>   end if
>   if the mouse is down then
>  set the backgroundcolor of field 1 to red
>   else
>  set the backgroundcolor of field 1 to empty
>   end if
>   send loopit to me in 100 millisec
> end if
> end loopit
> 
> Placing the window where its visible but not focused and work with another 
> program.  Every click the field turns red, every keypress and the keys that 
> are down show up in the field.  With a delay of 100 seconds its possible to 
> miss an event, but if a person were actually working actively most keypresses 
> and clicks will be caught.  It should be possible to use either applescript 
> or vbscript to note what window is focused, though im not sure how to tell if 
> one is working in a facebook tab or not.
> 
>> The problem I see here is that LC has no knowledge of what other apps are in 
>> use, and provides no feedback when it isn't the frontmost app. There may be 
>> shell calls you could use to get some of the information, but I kind of 
>> doubt there's a way to monitor keystrokes and that sort of thing.

___
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

My own productivity app

2016-11-28 Thread Terry Vogelaar
I want to write my own productivity app in LiveCode. Aren’t there enough? 
Maybe, but I haven’t found what I’m looking for.

Here’s what I have. I use MacBreakZ (http://www.publicspace.net/MacBreakZ/ 
<http://www.publicspace.net/MacBreakZ/>) to prevent RSI. It lets me take breaks 
when I’m using the Mac for too long. The great thing is that it detects whether 
I use my Mac or not. So when I’m interrupted, the timer delays the break and it 
will eventually notify it as an informal break.

Then there is Focus (https://heyfocus.com <https://heyfocus.com/>). I tend to 
waste my most productive hours on Facebook or e-mail. Focus is basically a 
timer to restrict the usage of distracting apps or sites to help me with my 
self-control during those hours.

Then there is another app, also called Focus (https://masterbuilders.io 
<https://masterbuilders.io/>). I hoped it would have the restricting 
functionality of the other Focus, but no, this is just a simple Pomodoro timer 
with an integrated ToDo-list. It gives 4 blocks of productivity, 25 min each, 
with a 5 min break in between. Then there’s a longer break.

All of them help users to have productive time and leisure time. But if I would 
run all three, there would be no agreement between them when I should have my 
break.

The latter app made me realise I could create my own. Any programmer could make 
that. But ideally I would want to integrate what makes the other two apps 
great. I want the activity detection that MacBreakZ has and the 
distraction-restriction (hey)Focus offers. Would an app made in LiveCode be 
able to do that? If so, how?



With kind regards,
Terry Vogelaar

___
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: use-livecode Digest, Vol 146, Issue 26

2015-11-16 Thread Terry Vogelaar
Hi Stephen,

That space needs to be a space; not a %20. 

But I found the solution. There was a helpful user contributed note in the 
documentation of the shell command: change the $PATH variable. I figured out 
what the $PATH was in the Terminal and I copied it. Then I changed the variable 
in LiveCode to match it. It worked like a breeze and it solved my problem.


With kind regards,
Terry Vogelaar

> From: stephen barncard <stephenrevoluti...@barncard.com>
> To: How to use LiveCode <use-livecode@lists.runrev.com>
> Subject: Re: Converting HTML to Jade?
> 
> On Fri, Nov 13, 2015 at 10:35 AM, Terry Vogelaar <tvogel...@de-mare.nl>
> wrote:
> 
>> Strange that the terminal doesn?t have problems finding it, while the
>> LiveCode shell does. What am I doing wrong?
> 
> 
> there's a space after html2jade -- I am pretty sure it needs to be encoded.
> 
> --
> Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words
___
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: Converting HTML to Jade?

2015-11-13 Thread Terry Vogelaar
Thanks, Lyn. This is what I am looking for, but there is one last hurdle to 
take before I can use it.

I needed NPM to install it. But I needed Homebrew to install NPM. And Xcode to 
install Homebrew. Fortunately I already had Xcode installed. This is quite an 
effective fence to keep the non-geeks out. 

html2jade is working like a breeze when I run it from the terminal. However, 
when I use:
put shell("html2jade /path/to/LocalFile.html”)
I get:
/bin/sh: line 1: html2jade: command not found

Strange that the terminal doesn’t have problems finding it, while the LiveCode 
shell does. What am I doing wrong?


With kind regards,
Terry Vogelaar

> Date: Fri, 13 Nov 2015 01:44:38 +0100
> From: Lyn Teyla <lyn.te...@gmail.com>
> 
> Terry Vogelaar wrote:
> 
>> Does anyone know if there is an easy way to convert HTML to Jade from within 
>> a LiveCode script?
> 
> I use the html2jade command line tool:
> 
> https://github.com/donpark/html2jade
> 
> You can run it from within LiveCode using the "shell" or "open process" 
> commands, thereby integrating it directly into your workflow.
> 
> Lyn

___
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

Converting HTML to Jade?

2015-11-12 Thread Terry Vogelaar
Does anyone know if there is an easy way to convert HTML to Jade from within a 
LiveCode script?

I want to distill information from a website for personal use. But HTML tags 
sometimes do and sometimes don’t have an end tag, and if they do, they don’t 
have to be nested properly. So it can be very tedious to get to the right 
content. Since this is much easier to use Jade, I often find myself copying the 
HTML to the left field on http://html2jade.aaron-powell.com 
<http://http//html2jade.aaron-powell.com> and manually convert it to Jade to 
copy the result back to my LiveCode stack. 

I suspect there is a better, more automated solution I am not aware of.



With kind regards,
Terry Vogelaar

___
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

Import SVG (was: Re: Print margins)

2014-03-28 Thread Terry Vogelaar
Thank you, Terence and Mark.

It works fine when I print a card. But unfortunately I cannot get printMargins 
to work with revBrowserPrint. Also, revBrowserPrint seems to have nothing to do 
with open printing and close printing. It operates entirely separate from 
normal printing, apparently. That is too bad, because now I cannot use 
revBrowserPrint. Or am I doing something wrong here?

on mouseUp
   global lBrowserID
   set the printMargins to 0,0,0,0
   open printing
   revBrowserPrint lBrowserID
   close printing
end mouseUp

The reason I chose revBrowserPrint is that I want to use a vector logo on the 
newsletter. I can use an SVG file in HTML5 for that. But unfortunately SVG 
graphics support in LC is not there yet, is it?

Does anyone know an elegant solution to bring in a printable logo? The only 
thing I can think of is to create my own font and include the logo in it.


With kind regards,
Terry Vogelaar

Op 28 mrt. 2014, om 12:00 heeft use-livecode-requ...@lists.runrev.com het 
volgende geschreven:

 Date: Thu, 27 Mar 2014 14:34:35 +
 From: Terence Heaford 
 
 Have a look at printMargins in the Language Dictionary
 
 From: Mark Schonewille
 
 Hi Terry,
 
 For my envelopes and labels, I create a stack of exactly the same size 
 as my paper, set the printMargins to 0,0,0,0 and then I print the card. 
 For multiple pages, I use open printing (with dialog), refresh the data 
 on the card and print the card again, until all data has been printed. 
 When the last data has been printed, I close printing.
 
 --
 Best regards,
 
 Mark Schonewille
 
 
 On 3/27/2014 13:42, Terry Vogelaar wrote:
 I want to make software to generate a printed newsletter.
 
 First I did the page layout in HTML so I could use revBrowserPrint to print 
 it. But to my amazement it didn't fill the whole A4 sheet. The layout was 
 scaled down to 16 cm wide (instead of 21).
 So I did the math and scaled up the entire layout by 132%. I tried again: 
 still 16 cm wide.
 
 I thought it might be a revBrowserPrint problem, so I printed a stack 
 instead. What was supposed to be the top left corner was printed on a 
 distance of 25,4 mm from the top and from the left of the paper (1 inch).
 
 I finally understood the weird scaling. Apparently every print from LC needs 
 a margin of an inch, because 21 cm minus 2 inches is around 16 cm. I hope 
 I'm wrong on this; I hope this can be adjusted and I like to know how.
 
 In my opinion, this margin is so wide that it looks quite silly. I 
 understand that printers cannot use the outermost edges, but that should be 
 around 4 mm, or 1 cm at most. Not an inch!
 
 How can I teach LC some sanity here? I would be fine with a margin of 1 cm 
 on each side.
 
 Kind regards,
 Terry

___
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


Print margins

2014-03-27 Thread Terry Vogelaar
I want to make software to generate a printed newsletter.

First I did the page layout in HTML so I could use revBrowserPrint to print it. 
But to my amazement it didn't fill the whole A4 sheet. The layout was scaled 
down to 16 cm wide (instead of 21).
So I did the math and scaled up the entire layout by 132%. I tried again: still 
16 cm wide.

I thought it might be a revBrowserPrint problem, so I printed a stack instead. 
What was supposed to be the top left corner was printed on a distance of 25,4 
mm from the top and from the left of the paper (1 inch). 

I finally understood the weird scaling. Apparently every print from LC needs a 
margin of an inch, because 21 cm minus 2 inches is around 16 cm. I hope I'm 
wrong on this; I hope this can be adjusted and I like to know how.

In my opinion, this margin is so wide that it looks quite silly. I understand 
that printers cannot use the outermost edges, but that should be around 4 mm, 
or 1 cm at most. Not an inch!

How can I teach LC some sanity here? I would be fine with a margin of 1 cm on 
each side.

Kind regards,
Terry
___
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: Support for Mac OSX 10.5

2014-02-25 Thread Terry Vogelaar
I say drop 10.5 support. 

Any Mac OS X version older than 10.7 shouldn't be considered safe to use on the 
internet, because it is partially open source and there are no security updates 
provided for it. Meaning that hackers can tell exactly what is fixed and where 
the vulnerabilities of the old versions were. If anyone wish to use those old 
OSes, they are on their own.

Also, LC 6.5 and 6.6 won't disappear. If the file system doesn't change and the 
language doesn't change too much, it should be fairly simple to use those to 
brew a compatible version. And even if it does, we got to move on.


Terry Vogelaar

___
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


Regular expressions

2013-07-02 Thread Terry Vogelaar
GREP saved my bacon in several occasions. And the regular expressions in LC are 
somewhat similar to GREP, but not quite.

In GREP I can do this:

stringToChange: bodyspanBlock of text/span/body
matchExpression: span[^]+/span
replacementString: div?/div
result: bodydivspanBlock of text/span/div/body

The question-mark fills in everything that matches the matchExpression. Very 
useful when you want to put something around the found instances. 

Or you can even take it a step further by using ( and ) in combination with \1, 
\2 etc.:

stringToChange: bodyspan class=MakeMeVisibleBlock of text/span/body
matchExpression: span class=([^]+)([^]+)/span
replacementString: span\1: \2/span
result: bodyspanMakeMeVisible: Block of text/span/body

The \1 fills in what it found inside the first pair of parentheses; the \2 the 
second pair. This way you can do really powerful replacements, if you know what 
you are doing.

So I wonder how I do this in LC. I know I need to use Perlre and not GREP. So 
how do I do this in Perlre?

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


What has Cocoa to do wit Windows RT?

2013-02-27 Thread Terry Vogelaar
I am so excited that ALL the stretch goals are reached, and that they still 
have an extra dime to get some candy.

But I was wondering about what this could mean:
So many people have asked for Windows Mobile support since RT was launched! 
Doing the Cocoa layer first brings this within reach.
And also:
Some of these items do have dependencies on other items being completed first 
(Pluggable Themes  Cocoa is essential before Windows RT for example).

I am not a very technical guy, but I just don't understand the connection 
between those. Cocoa is as Apple as it gets, and Windows RT is on that other 
island. How can there be depencencies between them?
___
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


[kind of OT] Robots

2012-12-13 Thread Terry Vogelaar
I remember I have seen a video where Kevin Miller and someone else demonstrate 
a home made robot that is programmable using LiveCode. But I cannot find that 
video.

I would be very interested in such a robot. Where can I find the parts/software?

With kind regards,
Terry Vogelaar

___
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


Uploading to Dropbox

2011-10-18 Thread Terry Vogelaar
How can I upload a file from my LiveCode iOS app to my Dropbox folder?

Dropbox accepts files sent via an HTTP POST submission. So the question could 
also be: How can I send a file via an HTTP POST submission? 

It is a very small plain .txt file (sub 100kB); no package or other weirdness.

Regards,
Terry




___
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


Can I skin a scrollbar?

2011-09-20 Thread Terry Vogelaar
Is there a way to give a custom look to a scrollbar object (progress bar)? How 
do I avoid the ugly Motif look  feel for these on iOS?

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


Lion Xcode 3.2.6

2011-07-20 Thread Terry Vogelaar
Hi there,

Is anyone experiencing this same problem with Lion?

I cannot save a stack as a standalone for iOS anymore since upgrading to Lion. 
When I go to the preferences and go under Mobile Support and choose 'Location 
of developer root for iOS 3.2 and above', it says '/Developer' like it should. 
When I browse to reselect it, it says: 'The chosen folder is not a valid iOS 
SDK for 3.2 and later. It must be the one that ships with XCode 3.2.4 or later.'

I also tried installing Xcode 4.1 for Lion, which is the preferred version for 
Lion, but that is not supported by RunRev (yet).

I'm on Developer Preview 4 of Lion. I wanted to upgrade yesterday, but I 
couldn't, because it is 'Already installed' according to the App Store. So I 
will download it at work and bring it here on an USB stick. Hopefully this 
resolves these issues.

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


Linking step of external object build failed

2011-07-07 Thread Terry Vogelaar
I tried to get started building an external for iOS. So I tried to follow along 
with the video on http://www.youtube.com/watch?v=lqduyQkhigg step by step. It 
worked fine a few days ago, but it stopped working. The only change I can think 
of is upgrading to 10.6.8. Actually, the build succeeded, and if chosen, the 
simulator starts up, but no binaries were created, so I cannot test on a device.

The examples don't seem to have this problem. But every newly created project 
does. Here are the details:

SIMULATOR:
PhaseScriptExecution Build External 
build/rreDevice.build/Debug-iphonesimulator/rreDevice.build/Script-4D3B0F3C1367DD4000E00C1E.sh
cd /Users/tvogelaar/Dropbox/rreDevice
/bin/sh -c 
/Users/tvogelaar/Dropbox/rreDevice/build/rreDevice.build/Debug-iphonesimulator/rreDevice.build/Script-4D3B0F3C1367DD4000E00C1E.sh

Undefined symbols:
  ___libinfoptr_rreDevice, referenced from:
 -exported_symbol[s_list] command line option
ld: symbol(s) not found
error: linking step of external object build failed

DEVICE:
PhaseScriptExecution Build External 
build/rreDevice.build/Debug-iphoneos/rreDevice.build/Script-4D3B0F3C1367DD4000E00C1E.sh
cd /Users/tvogelaar/Dropbox/rreDevice
/bin/sh -c 
/Users/tvogelaar/Dropbox/rreDevice/build/rreDevice.build/Debug-iphoneos/rreDevice.build/Script-4D3B0F3C1367DD4000E00C1E.sh

ld: cannot export hidden symbol ___libinfoptr_rreDevice for architecture armv6
error: linking step of external object build failed


Anyone experiencing this as well?

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


Objective C iOS external example

2011-06-30 Thread Terry Vogelaar
I want to learn how to make an iOS external and I spent some time looking at 
the tutorial and the example projects. These are either in C++ or in 
Objective-C++. However, all the Xcode documentation and examples I have, are in 
Objective-C. I am not very good in either of them, but I want to continue to 
learn Objective-C, and focus purely on that language for now. 

So I think it is a pity there are no Objective-C examples included with the iOS 
External SDK. Grammar conversions are probably trivial for seasoned 
programmers, but for me, the C++ and Objective-C++ examples confuse me and give 
me the feeling I have to learn 2 or 3 lower level languages simultaneously 
before I can continue.

So is there anyone who is willing to share a pure Objective C project for 
making an iOS external?

And for an example involving MPMusicPlayerController iPodMusicPlayer, I'm 
willing to pay :-)

(Contact me off-list if you want to send attachments)

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


iOS SDK config problems

2011-06-26 Thread Terry Vogelaar
I was delighted to see the LiveCode iOS externals SDK ship, and to see an 
instruction video on the RunRev channel to help me get started. I expected to 
run into problems with starting to write my own Objective C code, but I 
actually ran into problems much sooner. So I might need some help.

What I have installed is: the DP4 of Lion, LiveCode 4.6.2, the iOS Externals 
SDK, Xcode 3.2.6 and iOS SDK 4.3. And with this configuration, I cannot use the 
test button in the LiveCode toolbar. So I went to the Preferences, and under 
Mobile Support, I tried to reset the 'Location of developer root for iOS 3.2 
and above'. It was set to /Developer, which should be right. But when I choose 
that folder again, I get an error: The chosen folder is not a valid iOS SDK 
for 3.2 and later. It must be the one that ships with XCode 3.2.4 or later. 

Bummer! It might be because of Lion. So I restarted from my bootable clone I 
made before upgrading to Lion and I installed LiveCode 4.6.2 and the Externals 
SDK on it. So now I have almost the same config, but with the newest Snow 
Leopard instead of Lion.

That was better. Testing on the iPhone Simulator worked as expected. So I 
started following along with the instruction video, but near the end of it, the 
instructor chose iPhone Simulator from the pulldown menu. That option wasn't 
available for me. Over here, it reads Base SDK Missing on that same pulldown 
menu. I did some googling on that, but I was unsuccessful in solving it.

What am I doing wrong? 

Terry
___
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: Wondering about LC and HTML5

2011-06-21 Thread Terry Vogelaar
Hi Chipp,

This sheds some other light upon this topic. I think the reason why it is such 
a torture to work with HTML5 is the lack of a good RAD tool. The guy who 
figures out how to do that, is a soon to be rich guy. A development environment 
with the ease of use LiveCode offers, that makes behind the curtains all it's 
HTML and CSS and PHP and JS that just works, so there is almost no temptation 
to take a look under the hood, is the dream of a few million web developers, 
including me. Sounds a whole lot better than what I currently need to do to 
make a web page, which mainly involves inspecting elements in Safari a few 100 
times.

Michael Kann wrote that Livecoders will never be able to compete with the 
people writing and maintaining the popular javascript libraries. I kind of 
agree, except that they lack ease of use. It really is a pain to learn how to 
use jQuery etc.

I thought you meant HTML5 as one of the distributions to export a stack to. 
That is not going to happen. But if you mean a Rapid Application Development 
tool to make Rich Internet Applications, with the ease of use and the stability 
LC offers, I'm cheering. 

Terry

Op 21 jun. 2011, om 18:28 heeft use-livecode-requ...@lists.runrev.com het 
volgende geschreven:

 Terry,
 
 Thank you for your thoughtful reply. A couple of thoughts crossed my mind
 while reading it.
 
 Years ago, in a former life, I used to attend various CEO conferences. At
 one of them, I had a chance to visit with Eric Schmidt, now of Google, but
 then he was with Sun. We got to talking about Java, the topic of the day. My
 comment to him was, as a multimedia company, we had evaluated Java and
 determined it was too slow and too abstracted to do any meaningful
 development with. He remarked, yes, he already knew this. But more important
 than the reality of what Java currently was, is the expectation and
 perception of what it will be. His point to me was the perception is more
 important the the nuts and bolts of reality.
 
 I think the same is true for HTML5.
 
 When a client says they want an HTML5 application, most don't really know
 what it is they want, nor do they know the trade-offs which may be necessary
 to provide a lowest common denominator application. But they do know they
 need it to run on the web, and on browsers connected to iPads and Androids
 and Macs and PCs. As a strategy component for the client, and even more
 importantly for us developers, we MUST have a RAD tool for HTML5 apps-- or
 if not HTML5, then AJAXy look like application and not websites apps. Most
 clients don't know the difference. If we don't heed this, my guess is we
 will run out of clients and projects as they end up moving to the web or
 isolated platforms.
 
 The other key point is perhaps a lesson learned from Jerry and Sarah. Here
 in Austin, I see Jerry often. In fact I'm having lunch with him tomorrow.
 One thing Jerry always understood when he developed applications, is to
 start simple. His RodeoApps did just that. I'm saying we do the same. Start
 by creating a card and a button with a home icon...and go from there.
 
 That said, RodeoApps is not what I'm talking about. I'm not talking about a
 subscription based model where all code lives on a server. HTML5 allows for
 caching. I actually suggesting the opposite approach, where you start on the
 client and load an HTML5 app there and do simple things. Just like Rev.
 Early on, it only did simple things-- even now you can't code Photoshop or
 MS Word in it. I'm thinking the same with an HTML5 plugin approach.
 
 I get it there will be some hurdles, and one of them will have to be a
 compile (translate) first approach-- not unlike many other IDE's including
 our own LC iOS plugin. Still, the time is now, not AFTER all HTML5 problems
 are worked out-- or pushed out to HTML6. Sorta like the guy who never bought
 a TV because he was waiting for the new and better one to come out in just a
 few months.
 
 Just my 2 cents.

___
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: Wondering about LC and HTML5

2011-06-20 Thread Terry Vogelaar
Hi Chipp,

You bring up some interesting points. But still, in my opinion, HTML5 is (as of 
now) too limited. In spite of everything Apple is trying to say about it, it is 
not a standard. And considering the approach it is taking, it never will be. 
What I mean is that there is still room to add features to it; a stage that 
would have been over if it was in beta. Still, the entire industry wants to use 
it. Which results in a muddy, half-baked product. 

Yes, I agree that the puck is going to be there eventually. But what needs to 
happen first is some decision-making about what gets included in the standard, 
and what is shifted to HTML6. And that is a scary step to take, because it 
means excluding functionality, and thus limiting possibilities for web app 
developers.

Sorry, I love HTML5 and use it as much as I can. But I also passionately hate 
it. It is all going too slow and too fast at the same time, if you get what I 
mean.

Back to the subject: should LiveCode move towards being a web app development 
environment? I truly don't know. I like the idea. But it also means there is a 
major change in the way LiveCode works. It is proud to be compile-free, 
breaking the development cycle of editing, compiling, running and debugging. If 
however the code is being translated to something else like HTML5, there HAS TO 
BE a compile step. The code that is used (HTML, CSS, JS, PHP) differs from the 
code that is written (LiveCode). Which makes debugging a living hell. You'll 
end up changing the HTML5 files manually, and that is exactly what you tried to 
avoid. Otherwise you would have started using HTML5 right away instead of using 
LiveCode first. 

If there are people who pursued this dream further than any of us, it would be 
Jerry Daniels and Sarah Reichelt. With their Rodeo product they accomplished 
exactly what you describe: a development environment to use LiveCode-like input 
and convert it to a fully functional web app. It isn't my cup of tea, for 
exactly the reasons I mentioned above. But they made a fine product. I agree 
with what Andre Garcia wrote: Desktop code is not portable to server 
environment but if you start from the server point of view from the beginning 
then it is possible. Jerry and Sarah started from the server point of view; 
they succeeded. Does this mean that every LiveCode project can become a web 
app? Absolutely not.

If I judge based on the keynote on WWDC'11, Apple seems to actually be moving 
away from web apps, moving towards standalone apps. For me, that is indicating 
that, although Apple is pushing HTML5 forward, the puck is not there yet. It 
will be. With a time span of a few years and a puck constantly moving, the puck 
will be on every spot of the playing field at some point in time. Does that 
mean it is wise to stand still or perhaps move in whatever direction we feel 
like? I don't think so; it is wise to go to the spot where it will be when we 
can hit it the soonest. Translated to our situation, it means that we envision 
how long it will take for us to get the job done, and figure out whether HTML5 
will be ready enough to deliver. If your project is a stunning website, the 
answer is: go for it, you will love HTML5. If it is an application, I wouldn't 
hold my breath.

Terry


Op 21 jun. 2011, om 04:10 heeft use-livecode-requ...@lists.runrev.com het 
volgende geschreven:

 Perhaps it's wise to consider an oft-quoted famous statement by
 Wayne Gretzky, I don't skate to where the puck is. I skate to where it's
 going to be.
 
 Let's count the number of OS'es now in need of support from multi plaftform
 IDEs:
 
   1. MacOS Tiger, Lion and who knows what previous versions
   2. Windows 7 and soon 8, not to mention 2000, XP and Vista still in use
   3. iOS (iPad and iPhone)
   4. Android and the many different flavors and versions it has for both
   phone and tablet.
   5. HP's new WebOS
   6. Doesn't Blackberry have a tablet OS?
   7. ChromeOS and Chromebook
   8. Linux and it's many different flavors
   9. I'm sure I'm missing some
 
 Now the number of mainstream browsers:
 
   1. Internet Explorer (I see where Google just end of lifed support of it
   in Gmail and Google Apps)
   2. Chrome
   3. Safari
   4. Firefox
 
 It appears to me, the browsers are consolidating much quicker than any of
 the OS'es. In fact, the OS'es are all competing with each other by
 highlighting the differences, something the browsers have to be much more
 careful about.
 
 Assuming HTML5 becomes decently stable and robust AND capable, doesn't it
 make more sense to target it as a delivery platform rather than having to
 contingency plan for the constantly moving target which the various OS'es
 represent? And, that's the real problem with most OS'es today-- they are all
 basically the same. Sure, some are prettier, others more safe, but they all
 provide the basic same functions.
 
 In fact, what is more interesting to me is seeing how Apple had to actually
 reset OS 

[OT] MultiMailer software

2011-06-18 Thread Terry Vogelaar
Does anyone of you have experience with software to send newsletters to a list 
of 1000+ email addresses? I tried to write something myself, but I'm afraid 
servers will falsely recognize me as a spammer if I make my own software for 
this.

Any recommendations?

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


Will iOS 5 Beta break usage of LiveCode App testing?

2011-06-07 Thread Terry Vogelaar
Hi all,

I would like to try iOS 5 beta on my iPod Touch, and I can because I am a 
registered iOS developer. But I also use the iPod for testing apps I make in 
LiveCode. So I wonder, will installation break that ability?

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


Unexpected behavior in iOS app

2011-05-11 Thread Terry Vogelaar
I'm running into a few problems building an iOS app.

The most important one is this one. I want it to retrieve data from an 18MB 
text file, because I want it to work when the device is not connected to the 
internet. So I tried this:
on preopenstack
   put file:  specialFolderPath(documents)  /Muziek.txt into docsmap
   if the environment = mobile then
   answer Download or use local? with Download or Local
   if it is Download then
  put url http://dl.dropbox.com/u/10128030/Muziek.txt; into muzieklijst -- 
not the actual url
  put muzieklijst into url docsmap
   else
  put url docsmap into muzieklijst
   end if
   else
 put url file:~/Dropbox/Public/Muziek.txt into muzieklijst
  end if
  -- and some additional processing of the muzieklijst data that works fine
end preopenstack

As you can see, it intends to write the text file I expected the download to be 
only the first time the app is used, or optionally when I know the file has 
changed. It takes a few minutes staring at a black screen, but eventually it 
works. 

But apparently it doesn't save the file on the iPod Touch. The variable 
muzieklijst only contains data when it is freshly downloaded. If I tap on the 
Local button, muzieklijst stays empty. 

In this case, to drag the file to the Documents area of the app in the Apps tab 
when the iPod is connected to iTunes is even better than downloading. So I 
tried it, and it is there each time I connect my iPod to iTunes. But the app 
apparently can't access it when I choose Local.

I also tried to run it using the iPhone Simulator. But apparently the 
downloaded file is saved to ~/Documents/Muziek.txt, while I expect it to end up 
in ~/Library/Application Support/iPhone 
Simulator/4.1/Applications/CCDE447A-9119-43DF-B1C3-33A59507200B/Documents/Muziek.txt

So apparently specialFolderPath(documents) doesn't work as expected on iOS.

That was the main problem; but I encountered some minor ones as well. 

For example, pickers. I see a beautiful picker on iOS when using a button with 
the menuMode set to 'option'. But on screen, the button looks 90'ish with an 
ugly border around it. So I tried to set the menuMode to 'pulldown' or any of 
the other menuMode settings, to have more control over how the button looks on 
screen. But then I loose the picker control; instead I have an ugly 90'ish list 
to choose my items from.

Also, I applied a great technique I learned on the Beginners Mobile Course on 
the Simulcast. I put a bunch of PNGs in a Resouces substack and I copied the 
scripts from the Ticked Off stack, used in the demo. It worked great; it scaled 
all the icons  on the main stack. But as soon as I switched an icon (using: 
set the icon of me to 1023), it showed (the center portion of) the large 
version of that icon; not the downscaled one I wanted to see.

Terry
___
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: Unexpected behavior in iOS app

2011-05-11 Thread Terry Vogelaar
Hi Jacque,

Eureka! That helped. There was indeed a problem with my actual script. When I 
wrote this question, I made some changes to shorten it somewhat. That actually 
solved it. So there is nothing wrong with the script I showed...

For the ugly option menus, I found a workaround. I thought I could solve it by 
using blending inks. I played around with text colors, border colors and 
blending inks, but unfortunately none of these blending inks seemed to work in 
iOS either. But fortunately the blendLevel does. So I used 100, which makes it 
totally transparent. And I put a button behind it to take care of the 'looks'.

And thank you for the lockloc tip. I ignored to set that, so that was the 
problem.

But actually there is another minor weirdness I ran into. The on-screen 
keyboard types all caps until I manually hit the caps key. 

Terry

Op 11 mei 2011, om 17:05 heeft J. Landman Gay het volgende geschreven:

 On 5/11/11 1:17 AM, Terry Vogelaar wrote:
 I'm running into a few problems building an iOS app.
 
 The most important one is this one. I want it to retrieve data from an 18MB 
 text file, because I want it to work when the device is not connected to the 
 internet. So I tried this:
 on preopenstack
put file:  specialFolderPath(documents)  /Muziek.txt into docsmap
if the environment = mobile then
answer Download or use local? with Download or Local
if it is Download then
   put url http://dl.dropbox.com/u/10128030/Muziek.txt; into muzieklijst 
 -- not the actual url
   put muzieklijst into url docsmap
else
   put url docsmap into muzieklijst
end if
else
  put url file:~/Dropbox/Public/Muziek.txt into muzieklijst
   end if
   -- and some additional processing of the muzieklijst data that works fine
 end preopenstack
 
 As you can see, it intends to write the text file I expected the
 download to be only the first time the app is used, or optionally
 when I know the file has changed. It takes a few minutes staring at a
 black screen, but eventually it works.
 
 But apparently it doesn't save the file on the iPod Touch. The
 variable muzieklijst only contains data when it is freshly
 downloaded. If I tap on the Local button, muzieklijst stays empty.
 
 Check to see if the path is really valid in iOS while the app is 
 running. Add this to your script temporarily:
 
 put file:  specialFolderPath(documents)  /Muziek.txt into docsmap
 answer File exists:  there is a file docsmap  cr  docsmap
 
 See what it says. SpecialFolderPath should work, so I suspect the path 
 isn't resolving correctly.
 
 I see a beautiful picker on iOS when using a
 button with the menuMode set to 'option'. But on screen, the button
 looks 90'ish with an ugly border around it.
 
 I haven't played much with these yet, so can't say. Maybe someone else 
 knows.
 
 
 Also, I applied a great technique I learned on the Beginners Mobile
 Course on the Simulcast. I put a bunch of PNGs in a Resouces substack
 and I copied the scripts from the Ticked Off stack, used in the demo.
 It worked great; it scaled all the icons  on the main stack. But as
 soon as I switched an icon (using: set the icon of me to 1023), it
 showed (the center portion of) the large version of that icon; not
 the downscaled one I wanted to see.
 
 All the images in your resources stack need to have their lockloc set to 
 true so they won't revert to their original dimensions. You only have to 
 do that once, when you set up the images.
 
 -- 
 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


How to toggle play/pause the music in iOS?

2011-05-05 Thread Terry Vogelaar
Is there a way to pause the standard music player from a LiveCode app on iOS? I 
mean, lots of audio-playing apps need to make sure the (other) music pauses, 
right? So there should be a way to mute the iPod when my app starts to make its 
own sounds.

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


Re: OT: are 72dpi still state of the art for screen design?

2011-05-02 Thread Terry Vogelaar
Hi Tiemo,

I like to supplement to what Colin is saying, that as long as we talk about 
screens, there is practically no way to tell how large a pixel is. So you can 
fill in whatever measure suits you. On screens, the only 'true' measurement is 
pixels.

Currently I have an external screen attached to my iMac. The built-in one is 
110 ppi (pixels per inch; dpi is only correct for printers), and the other 
screen is 86 ppi. Should it recalculate all measurements to compensate that 
difference? I don't think so, and neither do the makers of the system software. 
So when I drag a window from one monitor to another, I see it enlarge. 

The OS actually cannot know how large a pixel is on the monitor it is 
displaying on. Take LCD projectors for example. I use an 1024 x 768 pixel 
setting to project on a screen, but there is no way for the software to know 
how large a pixel on the screen is. It might be in a range between 5 and 25 
ppi. 

So, you can follow the old Macintosh convention of 72 ppi, or Windows with its 
96 ppi standard. Both are equally incorrect and irrelevant. Use whatever value 
that suits you. The number of pixels per inch only starts to matter when you 
print the image. Only then the dimensions of the image become measurable with a 
ruler.


Terry



___
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


Currently playing song on iPod Touch

2011-04-01 Thread Terry Vogelaar
I want to make an app that uses data from the currently playing song on my iPod 
Touch, like song title, artist, comments, etc.

Is there a way to see data like that in a LiveCode app? Probably not 'out of 
the box'. Is there a workaround? I know Xcode can do it. So is there someone 
who can make an external to do this? At what cost? Can LiveCode for iOS use 
externals?

Any help is greatly appreciated.

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