Re: Weekend challenge

2013-06-30 Thread Michael Kann
J,

I tried to reply but the moderator says too many characters. Anyway, here's my 
question: According to rule 5 everything is grouped. Does that mean everything 
is also alphabetized.

Mike

___
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


Dreamhost Offer Before Apr 30, 2013

2013-04-27 Thread Michael Kann
http://lifehacker.com/get-a-year-of-dreamhost-web-hosting-for-only-20-479858454?utm_source=tab&utm_medium=cpc&utm_campaign=dh&utm_source=taboola
___
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


Leap Motion

2013-04-04 Thread Michael Kann
This might be of interest to LiveCode developers:

http://www.newscientist.com/article/mg21829116.100-leap-motion-hacks-show-what-3d-gesture-sensing-can-do.html

-- Watch for line break in URL
___
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: Huffington Post article

2013-02-25 Thread Michael Kann
There is also a French version of HuffingtonPost at huffingtonpost.fr

Perhaps one of the French LiveCoders could translate the English article and 
send it over to the French version.

Mike

--- On Mon, 2/25/13, Colin Holgate  wrote:

From: Colin Holgate 
Subject: Huffington Post article
To: "How to use LiveCode" 
Date: Monday, February 25, 2013, 10:10 AM

One of the discussions I have online is in an Apple Alumni group. There are 
some big names hanging out there, and they were all interested in my topic 
about HyperCard and LiveCode. One poster to the discussion is John Pavley, who 
wrote this blog post about HyperCard:

http://www.huffingtonpost.com/john-pavley/hypercard-bridge-over-digital-divide_b_1564867.html

I asked him to write one about LiveCode, and he says he's working on it right 
now. He did already tweet the info:

https://twitter.com/jpavley

I'll send a link to the new article when it's online.
___
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


2013 Office Not Transferrable

2013-02-16 Thread Michael Kann
http://www.engadget.com/2013/02/16/microsoft-confirms-office-2013-licenses-cant-be-transferred/
___
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


Substitute "LiveCode" for "Scratch"

2013-02-02 Thread Michael Kann
http://www.ted.com/talks/mitch_resnick_let_s_teach_kids_to_code.html
___
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


[OT] New Travel Site

2013-01-16 Thread Michael Kann
http://www.wikivoyage.org/
___
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: getting URL data from website when proxy required

2013-01-08 Thread Michael Kann
Mark,
Can you access the desired website with a browser?
Mike

--- On Tue, 1/8/13, Mark Stuart  wrote:

From: Mark Stuart 
Subject: getting URL data from website when proxy required
To: use-revolut...@lists.runrev.com
Date: Tuesday, January 8, 2013, 10:11 AM

Hi,
I'm trying to download a web page content, and it looks like I have to use
the httpProxy setting.

This is done from a corporate office, in a Windows OS environment. I see
that IE > Internet options > Connections tab > LAN settings, the "Use a
proxy server" is checked and the Address and Port are defined. Address:
theProxyValue and Port is 8080.

So first, I tried without setting the httpProxy:
   set the htmlText of fld "Source" to URL fld "WebURL"
this put a lot of text into the field "Source".
Here's the META tag: 

    •         Technical Information (for support personnel)                
    •    Error Code: 407 Proxy Authentication Required. Forefront TMG requires
authorization to fulfill the request. Access to the Web Proxy filter is
denied. (12209)
    •    IP Address: xx.x.xx.xxx
    •    Date: 1/8/2013 4:01:42 PM [GMT]
    •    Server: theProxyValue.corporate.com
    •    Source: proxy

So I used:
set the httpProxy to (theProxyValue & ":" & thePortValue)
set the httpHeaders to "Content-Type content=text/html; charset=UTF-8"
which returned the same Technical Information result into the field
"Source".


So what am I missing?
How do I find out how to set the httpHeaders?
As from my search on the user-list, that's what seems to be the key in
getting this to work.
But I've no idea on how to get that info and to what it should be set.

Is this a trial and error go around?




-
Regards,
Mark Stuart
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/getting-URL-data-from-website-when-proxy-required-tp4658744.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
___
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: [kind of OT] Robots

2012-12-14 Thread Michael Kann
http://runrev.com/newsletter/october/issue79/newsletter1.php

--- On Thu, 12/13/12, Terry Vogelaar  wrote:

From: Terry Vogelaar 
Subject: [kind of OT] Robots
To: use-livecode@lists.runrev.com
Date: Thursday, December 13, 2012, 11:40 PM

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
___
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: Algorithm time...

2012-12-09 Thread Michael Kann
Glen,
In your example do you use the numbers in the left column for anything? Are 
they just the line numbers?

Mike



Example:

1    23
2    12
3    9
4    77
5    2
6    13
7    44
8    83
9    2
10  37

In this example the result would be **Note if one or more values are the
min or max the the first value found can be used

5    2
8    83
___
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] Re: Flingo -- does anyone use this program?

2012-11-19 Thread Michael Kann
I want to improve it using Livecode.

--- On Mon, 11/19/12, Mark Schonewille  wrote:

From: Mark Schonewille 
Subject: [OT] Re: Flingo -- does anyone use this program?
To: "How to use LiveCode" 
Date: Monday, November 19, 2012, 5:16 PM

Why do you ask?

--
Best regards,

Mark Schonewille

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

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour 
spaces. http://www.color-converter.com

We have time for new software development projects. Contact me for a quote.




On 20 nov 2012, at 00:07, Michael Kann wrote:

> I'm guessing I'm the only one. 
> 
> Flingo makes it easier to watch youtube videos on a smart TV. If you have 
> three items on the same network -- a smart TV, a computer, and an Internet 
> connection, you can look up a video in Firefox and queue it up for viewing on 
> your TV. Everything about the program is well done. 
> 
> If you are interested you can check it out at:
> www.flingo.org 
> 
> Mike
> 
> 


___
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


Flingo -- does anyone use this program?

2012-11-19 Thread Michael Kann
I'm guessing I'm the only one. 

Flingo makes it easier to watch youtube videos on a smart TV. If you have three 
items on the same network -- a smart TV, a computer, and an Internet 
connection, you can look up a video in Firefox and queue it up for viewing on 
your TV. Everything about the program is well done. 

If you are interested you can check it out at:
www.flingo.org 

Mike


___
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: URL function fails on http requests, results in "invalid host address", other internet functions work correctly

2012-11-19 Thread Michael Kann
Gabriel,

I've never had this problem, but I'll chime in anyway -- what the heck. My  
suspect is an anti-virus progam or two itching for a fight once in a while. 

One thing I noticed was that you used "htmlText" as a variable. Since 
"htmlText" is a reserved word it probably is risky to do that, though it seems 
to work for me, too.

Best of luck,
Mike



--- On Mon, 11/19/12, Gabriel Johnson  wrote:

From: Gabriel Johnson 
Subject: URL function fails on http requests, results in "invalid host 
address", other internet functions work correctly
To: use-livecode@lists.runrev.com
Date: Monday, November 19, 2012, 2:14 PM

Hi All,

We are having a baffling problem with the standard URL function not working
on one of our machines.

Message Box Example:

   put url "http://www.google.com";

returns empty.


If altered slightly to give more feedback, then:

   put url "http://www.google.com"; into htmlText; put the result

returns "invalid host address" in the message box.


Here are some things we've tried and the results:

1. Other internet applications run fine on the computer. Firefox/Safari
load www.google.com just fine
2. Older versions of LiveCode, which had previously worked, now fail with
the url command
3. Creating a dummy user account and running LiveCode fresh causes the url
command to work
4. Other LiveCode internet commands/functions work
fine: hostnametoaddress(), liburl functions
5. Zapping the PRAM caused the url function to work one of the times we
tried it, for a limited period of time.

So, it seems to be something very specific to the url function (at least
with http requests) on this one user account that is failing. It appears it
might be something corrupt in the user library. A first thought we had was
to remove all LiveCode items from the user Library and start from scratch
on the original user account. However, I'm not sure if we removed
everything. We removed the "RunRev" folder from Application Support, and
the following 4 preference files: com.runrev.livecode.plist,
com.runrev.revinstaller.plist, com.runrev.revolution.plist,
com.runrev.revolution.plist.saved.
Are there some other items from the user Library/etc we need to remove to
completely uninstall LiveCode from the original user account?

Does anyone know any more about the http url function in general? Is there
some other process/function in sits on top of that I could look at to
figure out why this specific user account causes it to fail?

Thanks

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


Re: [OT] LiveCode 6.0 - Upgrade, Update or Addon

2012-11-15 Thread Michael Kann
Monte,

Thanks, that was just the info I was looking for.

Mike

--- On Thu, 11/15/12, Monte Goulding  wrote:

From: Monte Goulding 
Subject: Re: [OT] LiveCode 6.0 - Upgrade, Update or Addon
To: "How to use LiveCode" 
Date: Thursday, November 15, 2012, 1:40 PM

Mike if you have the developer program then ask about 6 on that list because 
nobody that has seen 6 is allowed to answer your questions on the use list. All 
we can really say is any dp 1 is going to be a very early release so unless 
your interested in what's next to offer feedback then it might not be worth 
installing it.

Cheers

--
M E R Goulding
Software development services

mergExt - There's an external for that!

On 16/11/2012, at 6:19 AM, Michael Kann  wrote:

> I don't want to go through the hassle of installing 6.0.0 unless there is 
> something in it I might need.

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


Re: [OT] LiveCode 6.0 - Upgrade, Update or Addon

2012-11-15 Thread Michael Kann
Richard,

I was able to download 6.0.0 with my current Enterprise license. I always 
assumed that license made me a member of the Developer Program (but things have 
changed quite a bit since I last checked) . Anyway, I don't see any release 
notes anywhere so maybe they're not for public consumption yet. I don't want to 
go through the hassle of installing 6.0.0 unless there is something in it I 
might need.

Thanks again,

Mike



--- On Thu, 11/15/12, Richard Gaskin  wrote:

From: Richard Gaskin 
Subject: Re: [OT] LiveCode 6.0 - Upgrade, Update or Addon
To: use-livecode@lists.runrev.com
Date: Thursday, November 15, 2012, 12:55 PM

I think the 6.0 "Preview" is only available to members of the Developer 
Program, but I'm not sure how that could be dependent on the Linux deployment 
option.

Weirder still, I recently tried to point a friend to where they could buy just 
a license for Mac OS X, and neither of us was able to figure that out.

I hope Heather doesn't mind, but I've cc'd her with this reply as I think there 
may be some benefit to clarifying a few things in the current storefront.

While I appreciate that mobile is big right now, the product offers an even 
better experience on the desktop and those who want to use only that have a 
difficult time doing so.

Like that character on The Simpsons says, "Shut up and take my money!" :)

I trust it would take only a few small revisions to make it easier for folks to 
give their money to RunRev.  At a minimum, making a desktop-only option readily 
available would seem helpful, while still providing the other options as they 
do now.

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



Kay C Lan wrote:

> I just got an email offering me:
>
> Our offer to you*: Get any update to your LiveCode license today, and
> we'll give you:
>
>    Access to the LiveCode Developer Program
>    All developer preview releases of 6.0
>    And all updates for the next year for your updated platform/s.
>
> So what constitutes "any update", "all updates" and "updated
> platform/s"
>
> When I go to: http://www.runrev.com/store/
>
> I see that all the PAYG options have "Updates included", whilst the
> Perpetuals do not - except Complete.
>
> This seems to suggest that 'updates' means from one major release to
> another,i.e. 5.0 to 5.5?
...
> So if I want to check out LC 6.0, is my only option to 'Update Addon'
> Linux, in which case it's completely pointless as I don't have a
> Linux box to develop on.
>
> What is it that I UPDATE (that is not an Upgrade or Addon) that will
> allow me to preview 6.0 on my Mac?
>
> I was expecting a button next to 'Desktop Deployment: Mac + Windows'
> which said "Update 6.0 Preview", but alas, nothing so simple.
>
> Any pointers?


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


Re: [OT] LiveCode 6.0 - Upgrade, Update or Addon

2012-11-15 Thread Michael Kann
Kay and others,

Would anyone like to share what they have found to be new and improved  in 
Livecode 6.0.-dp-1 ?

I'm also somewhat confused about the array of wonderful products for purchase 
so if someone wants to provide the For Dummies version that would be great.

Mike

I

--- On Wed, 11/14/12, Kay C Lan  wrote:

From: Kay C Lan 
Subject: [OT] LiveCode 6.0 - Upgrade, Update or Addon
To: "How to use LiveCode" 
Date: Wednesday, November 14, 2012, 6:10 PM

Richard penned the below quite some time ago, but it's still clear as mud
to me.

I just got an email offering me:

Our offer to you*: Get any update to your LiveCode license today, and we'll
give you:

    Access to the LiveCode Developer Program
    All developer preview releases of 6.0
    And all updates for the next year for your updated platform/s.

So what constitutes "any update", "all updates" and "updated platform/s"

When I go to: http://www.runrev.com/store/

I see that all the PAYG options have "Updates included", whilst the
Perpetuals do not - except Complete.

This seems to suggest that 'updates' means from one major release to
another,i.e. 5.0 to 5.5?

Under the Gold column it says I can "Buy Upgrades", and if I click on it it
offers me 'LiveCode Commercial' which isn't a package offered any more but
happens to be the one I already own. This is reinforced when I log in to my
account, there is a tab next to my 'Personal Licence' offering to Upgrade
to 'Commercial' and for my 'Commercial Licence' a tab to 'Upgrade to
Complete'.

This seems to suggest that 'upgrade' means from one package to another.

Also in my Account there are a bunch of 'Addons'. I can 'Buy addon' for
'Mobile Deployment: Android' understandably because I've never purchased
it, but for reasons I don't understand there is ONLY one  'Update Addon'
which is for 'Desktop Deployment Linux' even though I've never owned that
either.

So if I want to check out LC 6.0, is my only option to 'Update Addon'
Linux, in which case it's completely pointless as I don't have a Linux box
to develop on.

What is it that I UPDATE (that is not an Upgrade or Addon) that will allow
me to preview 6.0 on my Mac?

I was expecting a button next to 'Desktop Deployment: Mac + Windows' which
said "Update 6.0 Preview", but alas, nothing so simple.

Any pointers?

On Wed, Aug 22, 2012 at 2:05 AM, Richard Gaskin
wrote:

> Richmond wrote:
>
>  3. How many of them feel that a Linux version of Livecode at the same
>> sort of pricing as the versions for Mac and Win is financially worth it.
>>
>
> I finally took a moment to look at the new store pricing grid.  Now I see
> why folks are concerned.
>
> It's even worse than you describe, though what you describe is already
> taken care of:
>
> It doesn't seem that it's possible to buy a license for ANY single desktop
> platform.
>
> Linux hasn't been singled out:  I don't see an option to buy for Mac or
> Windows either.
>
> Even more confusing, the only single-platform licenses I can find are for
> iOS and Android, but neither of those are development platforms so it's
> unclear what you're getting with that.
>
> I could write several pages about the ROI of developing for the desktop vs
> mobile, but fortunately for the readers here I have work to do.
>
> The key point is that the two aren't mutually exclusive.  One should be
> able to use LiveCode to develop for desktop, or mobile, or both, if they
> choose.  "Shut up and take my money!"
>
> Indeed, not offering a desktop-only option for any platform is so silly
> that I have to assume it's an error that will be corrected before the day's
> out.
>
> --
>  Richard Gaskin
>
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  __**__**
>  ambassa...@fourthworld.com                http://www.FourthWorld.com
>
> __**_
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode
>
___
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: Location-Based Push Message?

2012-11-15 Thread Michael Kann
Dan, 
Where is the app, on mobile or the desktop?
Mike

--- On Wed, 11/14/12, Dan Friedman  wrote:

From: Dan Friedman 
Subject: Location-Based Push Message?
To: use-livecode@lists.runrev.com
Date: Wednesday, November 14, 2012, 6:13 PM

Is it possible to send a push message to users of an app that are within a 
given location?  For example, I want to send a push message to all users of my 
app that are within a 1/2 mile radius of a given latitude and longitude.

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


[OT] Killer Anti-Virus App

2012-11-12 Thread Michael Kann
http://www.rawstory.com/rs/2012/11/12/antivirus-software-developer-accused-of-murder-in-belize/
___
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 Choice for President

2012-11-06 Thread Michael Kann
Everything

--- On Tue, 11/6/12, dirk cleenwerck  wrote:

From: dirk cleenwerck 
Subject: Re: My Choice for President
To: "How to use LiveCode" 
Date: Tuesday, November 6, 2012, 8:57 AM

President of what? ;)

Dirk
(from Belgium, not the US)


On Tue, Nov 6, 2012 at 3:56 PM, Roger Eller wrote:

> I agree!  I'm writing her in.  ;-)
>
> ~Roger
>
>
> On Tue, Nov 6, 2012 at 9:52 AM, Michael Kann  wrote:
>
> > Jacqueline
> >
> >
> ___
> 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


My Choice for President

2012-11-06 Thread Michael Kann
Jacqueline
___
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: Audio clips

2012-10-14 Thread Michael Kann
Klaus,

Don't depend on me for learning English.

It should be:

Your posts are always very educational. (Which is very true.)

Mike



--- On Sun, 10/14/12, Michael Kann  wrote:

From: Michael Kann 
Subject: Re: Audio clips
To: "How to use LiveCode" 
Date: Sunday, October 14, 2012, 10:58 AM

Klaus,
Thanks for the clarification. You're posts are always very educational.
Mike

--- On Sun, 10/14/12, Klaus on-rev  wrote:

From: Klaus on-rev 
Subject: Re: Audio clips
To: "How to use LiveCode" 
Date: Sunday, October 14, 2012, 10:49 AM

Hi Pete,

Am 14.10.2012 um 17:29 schrieb Peter Haworth :

> Thanks Michael, looks like that should work.

hmm, sure this will work with a PLAYER object, even without storing the 
currenttime***,
but you were asking for a possibility with the "PLAY" command 8-)

"play" is for use with imported audio- and videoclips, the "official" syntax 
for player objects 
is "start player XYZ", although "play player XYZ" obviously also works.

But THAT syntax really hurts me :-D

***Unless you set the currenttime of a player back to 0, any "start player XYZ" 
will continue
at the exact time where you told it to "stop player XYZ".

> Pete
> lcSQL Software

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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
___
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: Audio clips

2012-10-14 Thread Michael Kann
Klaus,
Thanks for the clarification. You're posts are always very educational.
Mike

--- On Sun, 10/14/12, Klaus on-rev  wrote:

From: Klaus on-rev 
Subject: Re: Audio clips
To: "How to use LiveCode" 
Date: Sunday, October 14, 2012, 10:49 AM

Hi Pete,

Am 14.10.2012 um 17:29 schrieb Peter Haworth :

> Thanks Michael, looks like that should work.

hmm, sure this will work with a PLAYER object, even without storing the 
currenttime***,
but you were asking for a possibility with the "PLAY" command 8-)

"play" is for use with imported audio- and videoclips, the "official" syntax 
for player objects 
is "start player XYZ", although "play player XYZ" obviously also works.

But THAT syntax really hurts me :-D

***Unless you set the currenttime of a player back to 0, any "start player XYZ" 
will continue
at the exact time where you told it to "stop player XYZ".

> Pete
> lcSQL Software

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.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


Two hours until the highest jump

2012-10-14 Thread Michael Kann
http://www.washingtonpost.com/blogs/innovations/post/felix-baumgartner-tries-record-breaking-jump-again-live-blog/2012/10/14/b7ddfc18-159d-11e2-be82-c3411b7680a9_blog.html?hpid=z2

If anyone is interested in the highest skydive, it is being webcast live.

Very much down to earth,
Mike
___
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: Audio clips

2012-10-14 Thread Michael Kann
Peter,

You can make a poor man's pause btn using the following idea:

--- stop btn

--- stop audio and save point audio is stopped


on mouseUp
   stop player  1
   put the currentTime of player 1 into fld "store_cur_time"
end mouseUp

--- resume from stopped point


on mouseUp
  put fld "store_cur_time" into cur_time
  set the currentTime of player 1 to cur_time
  play player 1
end mouseUp
---

Mike


--- On Sat, 10/13/12, Peter Haworth  wrote:

From: Peter Haworth 
Subject: Audio clips
To: "How to use LiveCode" 
Date: Saturday, October 13, 2012, 8:03 PM

Is there a way to pause an audio clip?  Play and stop seem to work but I
don't see a pause command and "play pause" doesn't work for audio clips.
Pete
lcSQL Software 
___
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: Repeat script does not work

2012-10-12 Thread Michael Kann
Charles,

You're right. The correct order of the last lines should probably be the 
following:
I was being called to dinner and didn't check carefully enough.

end repeat
end repeat
delete char -1 of theList
put theList into fld "recommendations"
end mouseUp

--- On Fri, 10/12/12, Michael Kann  wrote:

From: Michael Kann 
Subject: Re: Repeat script does not work
To: "How to use LiveCode" 
Date: Friday, October 12, 2012, 2:53 PM

Charles, 

Could it be this:


on mouseUp 

repeat with y = 1 to the num of cards

if the mark of card y = false
then next repeat
end if

put the num of btns of card y into nbr

repeat with n = 1 to nbr

if the style of btn n is "checkbox" and the hilite of btn n is true then

 put the uMyLabel of btn n into tName
 put tName & cr after theList
end if

end repeat
delete char -1 of theList

end repeat

put theList into fld "recommendations"

end mouseUp

Mike

--- On Fri, 10/12/12, Charles Szasz  wrote:

From: Charles Szasz 
Subject: Repeat script does not work
To: use-livecode@lists.runrev.com
Date: Friday, October 12, 2012, 2:20 PM

The following script works for finding a checkbox that is checked and putting 
its custom property (uMyLabel) into the field "recommendations" on the marked 
card that it is on. However, it fails to put the uMyLabel of another checked 
checkbox that is on another marked card into the field "recommendations".  What 
am I missing here!

on mouseUp  
   repeat with y = 1 to the number of cards
      if the mark of card y = true then
         put the number of buttons of card y into nbr
      end if
   end repeat
   
   repeat with n = 1 to nbr
      if the style of button n is "checkbox" and the hilite of button n is true 
then
         put the uMyLabel of button n into tName
         put tName & cr after theList
      end if
   end repeat
   delete char -1 of theList
   put theList into field "recommendations"
end mouseUp

Charles Szasz
csz...@mac.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
___
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: Repeat script does not work

2012-10-12 Thread Michael Kann
Charles, 

Could it be this:


on mouseUp 

repeat with y = 1 to the num of cards

if the mark of card y = false
then next repeat
end if

put the num of btns of card y into nbr

repeat with n = 1 to nbr

if the style of btn n is "checkbox" and the hilite of btn n is true then

 put the uMyLabel of btn n into tName
 put tName & cr after theList
end if

end repeat
delete char -1 of theList

end repeat

put theList into fld "recommendations"

end mouseUp

Mike

--- On Fri, 10/12/12, Charles Szasz  wrote:

From: Charles Szasz 
Subject: Repeat script does not work
To: use-livecode@lists.runrev.com
Date: Friday, October 12, 2012, 2:20 PM

The following script works for finding a checkbox that is checked and putting 
its custom property (uMyLabel) into the field "recommendations" on the marked 
card that it is on. However, it fails to put the uMyLabel of another checked 
checkbox that is on another marked card into the field "recommendations".  What 
am I missing here!

on mouseUp  
   repeat with y = 1 to the number of cards
      if the mark of card y = true then
         put the number of buttons of card y into nbr
      end if
   end repeat
   
   repeat with n = 1 to nbr
      if the style of button n is "checkbox" and the hilite of button n is true 
then
         put the uMyLabel of button n into tName
         put tName & cr after theList
      end if
   end repeat
   delete char -1 of theList
   put theList into field "recommendations"
end mouseUp

Charles Szasz
csz...@mac.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: Put URL and garbage in result from PHP

2012-10-08 Thread Michael Kann
Mark,

A little more on the "junk" found in your output.

The hex number 1e7d is 7805 in decimal, which is not divisible by 9. If all 
your words have 9 characters then 1e7d cannot represent the number of bytes 
left over after groups of 8001 bytes have been outputted. What the final 1e7d 
represents, if anything, is a mystery (at least to me).

Mike

--- On Mon, 10/8/12, Mark Schonewille  wrote:

From: Mark Schonewille 
Subject: Put URL and garbage in result from PHP
To: "How to use LiveCode" 
Date: Monday, October 8, 2012, 9:58 AM

Hi,

I'm downloading a list of words of 9 characters from a MySQL database using a 
PHP script and a put URL command in a LiveCode script. Altogether, there are 
approximately 1 lines in my list, with one word on each line.

Both the PHP script and the LiveCode script run on Mac OS X. I use a put URL 
command in my LiveCode script, such as

put url "http://localhost/~user/list.php";

The relevant part of the PHP script is:

$q="SELECT xword FROM ydatabase";
$r=mysql_query($q);
if (!$r) {
    echo 'An error occurred: '.mysql_error();
}
else {
    while ($row = mysql_fetch_array($r)) {
        echo "$row[0]\n";
    }
}

Exactly every 8001 bytes (or 889 words, which are all different), I get some 
garbage:

1f41
A
B
[889 times]
C
1f41
P
Q
[889 times]
R
etc etc etc
X
1e7d

The garbage is often the same but not always and it appears before the first 
line and after the last line. I have tried several combinations of the 
content-type and content-transfer-encoding headers in PHP. I have also tried 
changing the encoding of the PHP script itself.

If I call the same URL from CURL and pipe the output to a text file or if I 
open the URL in a browser, I don't see any garbage:

A
B
[889 times]
C
P
Q
[889 times]
R
etc etc etc
X

Does anyone have an idea what causes LiveCode to add garbage to my list?

--
Best regards,

Mark Schonewille

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

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour 
spaces. http://www.color-converter.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: Put URL and garbage in result from PHP

2012-10-08 Thread Michael Kann
Mark,

The filler "1f41" is the hex number for 8001 decimal, which is the number of 
bytes of real data that is coming next. It looks like it is telling you how 
many bytes you are going to get (in hex), then giving you the bytes you want. 
The "1e7d" at the end might be the number of data bytes left over that don't 
fill out the last chunk of 8001.

Why it does that I don't know.

Mike



--- On Mon, 10/8/12, Mark Schonewille  wrote:

From: Mark Schonewille 
Subject: Put URL and garbage in result from PHP
To: "How to use LiveCode" 
Date: Monday, October 8, 2012, 9:58 AM

Hi,

I'm downloading a list of words of 9 characters from a MySQL database using a 
PHP script and a put URL command in a LiveCode script. Altogether, there are 
approximately 1 lines in my list, with one word on each line.

Both the PHP script and the LiveCode script run on Mac OS X. I use a put URL 
command in my LiveCode script, such as

put url "http://localhost/~user/list.php";

The relevant part of the PHP script is:

$q="SELECT xword FROM ydatabase";
$r=mysql_query($q);
if (!$r) {
    echo 'An error occurred: '.mysql_error();
}
else {
    while ($row = mysql_fetch_array($r)) {
        echo "$row[0]\n";
    }
}

Exactly every 8001 bytes (or 889 words, which are all different), I get some 
garbage:

1f41
A
B
[889 times]
C
1f41
P
Q
[889 times]
R
etc etc etc
X
1e7d

The garbage is often the same but not always and it appears before the first 
line and after the last line. I have tried several combinations of the 
content-type and content-transfer-encoding headers in PHP. I have also tried 
changing the encoding of the PHP script itself.

If I call the same URL from CURL and pipe the output to a text file or if I 
open the URL in a browser, I don't see any garbage:

A
B
[889 times]
C
P
Q
[889 times]
R
etc etc etc
X

Does anyone have an idea what causes LiveCode to add garbage to my list?

--
Best regards,

Mark Schonewille

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

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour 
spaces. http://www.color-converter.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: Skanky ways to play MP3 on Windows XP

2012-09-13 Thread Michael Kann
Greetings Ben,

I'm using Vista to play an mp3 file in the same folder as my stack. On our 
other computer we used to have XP, but now have Windows 7. I didn't remember 
having any problem play mp3's from XP, but don't think I have a stack for that 
scenario. If you want the Vista script I can send it along.

Mike

--- On Thu, 9/13/12, Ben Rubinstein  wrote:

From: Ben Rubinstein 
Subject: Skanky ways to play MP3 on Windows XP
To: "How to use LiveCode" 
Date: Thursday, September 13, 2012, 2:41 PM

I'm having trouble using the player object on Windows XP to play audio.  MP3 
files play in the Windows Media Player; WAV files play in LiveCode if I import 
them as audioclips.  (MP3 files of course have never worked as imported 
audioclips.).  But using the player object, on either WAV or MP3 files, fails. 
(I have set dontUseQT to true.)  I'm pursuing this with RunRev support, but I'm 
running out of time.

Are there any skanky ways, using shell commands or similar, to play MP3 files 
on Windows?

Alternative question: are there any compressed formats that work with 
audioclips?  I don't mind that the audioclip is uncompressed, because I can 
import them on the fly, play the audioclip, then delete it; but I am likely to 
run out of disk space (it's all on compact flash) if I have to have all the 
audio as uncompressed WAV.

TIA,

Ben

___
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: word counts - what is going on?

2012-08-15 Thread Michael Kann
Jim,

Sounds like a good project. If you haven't discovered it yourself I'll just 
mention one of my alltime favorite scripts. It outputs a frequency list of 
words in a text file. Something like:

on mouseUp

repeat for each word w in fileContent
add 1 to wordCount[w]
end repeat

put keys(wordCount) into keyWords
sort keyWords

repeat for each line l in keyWords
put l & tab & wordCount[l] & return after displayResult
end repeat

put displayResult into field "result"

end mouseUp

I think it came from Richard Gaskin, or perhaps the Almighty Himself (Scott 
Raney).

Good luck, 
Mike

--- On Tue, 8/14/12, James Hale  wrote:

From: James Hale 
Subject: Re: word counts - what is going on?
To: use-livecode@lists.runrev.com
Date: Tuesday, August 14, 2012, 10:39 PM

Well,

lots of suggestions and attempts at humour. Nice.

The problem with using the word chunk boils down to not being able to get 
quoted text seen as multiple words as in selecting a word within the quoted 
block using the word chunk command to say hilite it.
Certainly I could replace the quotes with curly quotes etc but as the source 
text is open (i.e. not within my control) I have no idea if that would cause 
some unforeseen problem with the text presentation itself.

As mentioned I decided to process the text by character and fully control word 
boundaries myself. Doing this resulted in the following timings.

0.022096+7.497033 secs for 488872 words

The down side being that I actually ended up with some 500326 'words' in my 
array.
The extra words being the components of quoted strings as well as a number of 
dotted strings being broken up (e.g. web addresses etc)
The upshot being the time penalty was only about 5 secs extra.
A good result all things considered. (this process only needs take place once.)
The script provides an array entry with the word itself, its line number within 
the text, the character position from the start of the text, the character 
position from the start of the line as well as the length of the word itself.

On 15/08/2012, at 2:37 AM, Michael Kann  wrote:

> Can you give us the skinny on what you are trying to do? What do you want 
> your output to look like?
> Mike

The purpose being this is an application that will read an ebook (epub 
currently), display it, allow searching and annotations (with hierarchical 
tagging) for purposes of studying texts.

This current issue was concerned with enabling boolean and proximity searches 
on the text.

Boolean searches can be done with straight Livecode scripting without much 
trouble although once there are 3 or 4 terms the search can slow down a bit. 
However apart from speed issues I wanted to provide a display of the number of 
hits for each term as well as the number of hits for the boolean combination as 
the terms are entered into the search block.
for example:

Search Term       Hits          Hits Boolean
        "text"              45          
                                                     27
       "book"           123          
 
So this tells me there were 45 hits for "text", 123 hits for "book" and 27 hits 
where "text" and "book" appear within the same paragraph (line).
I am thinking the best way to do this was to use SQL to do joins and counts 
which I am assuming should be fairly quick (I could be wrong here but I hope 
not.)
The character positions provide both the proximity detail as well as easily 
showing the hits in context, for example:

     …the text was later supplied in book form to anyone th…..

I also realised that the FT module in sqlite could do all this but I couldn't 
guarantee that this would be available as not all installations of sqlite have 
this module compiled and I didn't want to go down the road of compiling and 
supplying it myself. My app is initially for Mac but will also be compiled for 
Windows once I get a working beta. I also plan to provide input for other text 
forms such as .txt, .html, .rtf and perhaps markdown, but early days yet.

Thanks again to everyone who has made suggestions.

James

ja...@thehales.id.au

Tel: +61 3 9386 2516    
Fax: +61 3 9386 1387




___
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: word counts - what is going on?

2012-08-14 Thread Michael Kann
James,
Can you give us the skinny on what you are trying to do? What do you want your 
output to look like?
Mike

--- On Tue, 8/14/12, James Hale  wrote:

From: James Hale 
Subject: word counts - what is going on?
To: use-livecode@lists.runrev.com
Date: Tuesday, August 14, 2012, 2:07 AM

Hi,

I am processing a body of text and identifying each word and where it is within 
the text block.
I am after its word number and its line number.

Using a repeat for each type loop I am stepping through the text and simply 
adding each step.

My previous post on identifying the words included test results from two ways 
of cleaning up my words for identification.
I was interested in the times but there was something else amiss.

Here are the two results.

Script 1: 2.856504+1.876625 secs for 491081 words
Script 2: 0.502831+2.173185 secs for 488871 words

Now the thing is, the counting loop to give me the line and word number for 
each word is the same in both cases.
The word count given above is the final value of the word index I compute.

So the difference must lie in my preamble to this counting, i.e tidying up the 
text.

After a bit of to'ing and fro'ing I think I see the problem.
Word boundaries.
For example, quoted text is considered 1 word.
Removing the quotes is ok to find the included words within the quoted text but 
from then on the word number is out of whack.
By this I mean that if I see that word 45 of line 1223 is "World" for example, 
I can't simply hilite  word 45 of line 1223 of mytext field and expect the 
hilite to fall on "World".

It would seem that to avoid these contradictory requirements (need to keep 
quoted text versus identifying words within the quote) I might need to revisit 
character positions.

So, back to the drawing board.


James

ja...@thehales.id.au

Tel: +61 3 9386 2516    
Fax: +61 3 9386 1387




___
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: What about image file names with a space -- will that be a problem later?

2012-06-21 Thread Michael Kann
Mark,

Best to stay away from spaces. Underscore would be better. You might want to 
divide the names up into first name, last name. When you sort you probably want 
to sort on the last name anyway. I don't like to use capital letters in file 
names either, but that might not be too bad. If you ever want to move your data 
to a Linux environment the capital letters are treated as different letters, 
which might cause problems.

I checked out your water polo website. Looks like a great program.

Mike



--- On Thu, 6/21/12, Mark Rauterkus  wrote:

From: Mark Rauterkus 
Subject: What about image file names with a space -- will that be a problem 
later?
To: use-livecode@lists.runrev.com
Date: Thursday, June 21, 2012, 11:15 AM

Hi,

Building the camp attendance application with LC Win and wonder about
the use of a space in a file name of an image. Is that going to cause
troubles later?

I've got the record for each student as a two words with a space
between. That then becomes the "card name." (example, Roberto
Clemente).

I'll take photos of the kids and then rename the file, from the
digital camera, "imagex.jpg" to "Roberto Clemente.jpg". Then I'll get
the photo of the person and have it show in the record, etc.

Am I going to run into problems with the finder or such with that
"space" between the FirstName and LastName?

Should I do something else, like name the files with an UNDERLINE character?

Does anyone have a LC card or button routine that can surf a directory
of photos and rename the file names. Image #25 is "Sally Smith." -->
filename changed to Sally Smith.jpg.


--
Ta.


Mark Rauterkus       mark.rauter...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
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: Seeking a navigation system among 200 individual / card DB for attendance at camp

2012-06-13 Thread Michael Kann
Mark,
You might want to start out with a simple text file database. Use a comma, a 
tab, or some other unused character to separate the fields. With "sort" and 
"repeat for each" you can find or arrange the data however you wish.
Mike



--- On Wed, 6/13/12, Mark Rauterkus  wrote:

From: Mark Rauterkus 
Subject: Seeking a navigation system among 200 individual / card DB for 
attendance at camp
To: use-livecode@lists.runrev.com
Date: Wednesday, June 13, 2012, 11:59 AM

Hi LC Pros and the Rest of the world more experienced than me:

I am searching for a "navigation system" for my >200 card camp
attendance project. Pointers welcome.

I'll have 150 to 200 cards in a database of people (camper kids in
summer school, volunteers, staff). Each card has its card name set to
the person's name. Contact info, attendance, performance notes on the
main card in a main stack for each person.

One day I'd love to store the data elsewhere and have it run on iPhone
and Android, but first things first.

I'm wondering how to set up a navigation system for finding an
individual -- but also taking class role calls.

Popup buttons might get too crowded with too many names.

Should I do individual dynamic palettes on their own card(s) in sub-stacks?

Wondering.


--
Ta.


Mark Rauterkus       mark.rauter...@gmail.com
PPS Summer Dreamers' Swim and Water Polo Camp Head Coach with
Neighborhood Learning Alliance

http://NeighborhoodLearning.org

http://Rauterkus.blogspot.com
http://FixPA.wikia.com
http://CLOH.wikia.com
412 298 3432 = cell

___
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


Mathematica based system modeler

2012-06-10 Thread Michael Kann
This might be of interest to someone on the list:

Join us for a free virtual conference on Wolfram 
SystemModeler--the high-fidelity modeling environment for driving 
design efficiency and innovation.

The conference will feature a keynote by Dr. Roger Germundsson, 
Director of Research & Development, and several courses and 
example-driven workshops, followed by an open chat.

This virtual event will be held on Tuesday, June 19 at the 
following times:

8am-12:30pm Eastern Daylight Time (EDT); 2-6:30pm Central 
European Summer Time (CEST)

Repeat session:
1-5:30pm EDT; 7-11:30pm CEST

This is a great opportunity to see what SystemModeler has to 
offer.

Virtual seats are limited--see the event schedule and register 
today:
http://url.wolfram.com/biDs.ry/

Please feel free to pass this information along to your 
employees, colleagues, and friends who might also be interested 
in SystemModeler.

Best regards,


Wolfram Training Team 
___
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


Pining for HC at huffingtonpost

2012-06-04 Thread Michael Kann
http://www.huffingtonpost.com/john-pavley/hypercard-bridge-over-digital-divide_b_1564867.html

Last line:

If you developed a stack or two way back when, I'd love to hear about your 
experiences or what you would do if something like HyperCard was available 
today.
___
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: hello

2012-05-31 Thread Michael Kann
This is Michael. I admit I had a real weak password -- a four letter word for a 
common bird. My mistake was that I clicked on a link that was supposedly sent 
by my sister. If I don't know the sender I don't click on anything. I apologize 
for any problems I caused. First time in 14 years, so I guess I've been lucky, 
thus less vigilant.



--- On Thu, 5/31/12, Kay C Lan  wrote:

From: Kay C Lan 
Subject: Re: hello
To: "How to use LiveCode" 
Date: Thursday, May 31, 2012, 5:18 PM

If you don't mind me asking, what was your old password. I don't need the
exact, I'm just wondering if was 'my birthday' or like  '12345' or
something that would be considered weak.

I'm just interested in how sophisticated the attack was.

My passwords are getting more complex, but I'm wondering if I'm keeping
ahead of the game.

Thanks.

On Wed, May 30, 2012 at 9:33 PM, Michael Kann  wrote:

> Sorry, Richard. I changed my password as soon as I found out.
>
> --- On Wed, 5/30/12, Richmond  wrote:
>
> From: Richmond 
> Subject: Re: hello
> To: "How to use LiveCode" 
> Date: Wednesday, May 30, 2012, 2:51 AM
>
> On 05/30/2012 04:04 AM, Jerry Jensen wrote:
> > SIGH. Another compromised yahoo account. Change password please.
>
> And my gmail !!
>
> >
> > On May 29, 2012, at 5:55 PM, Michael Kann wrote:
> >
> >> you should check this out
> http://www.bunnews.netz/biz/?page=2654216
> >>
> >>
> >> ___
> >> 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


Spam from me

2012-05-30 Thread Michael Kann
If anyone got spam from my yahoo account I apologize. I changed the password as 
soon as I found out. I think I'll just get rid of the account all together.

Michael Kann
mikekann **at** yahoo.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: hello

2012-05-30 Thread Michael Kann
Sorry, Richard. I changed my password as soon as I found out.

--- On Wed, 5/30/12, Richmond  wrote:

From: Richmond 
Subject: Re: hello
To: "How to use LiveCode" 
Date: Wednesday, May 30, 2012, 2:51 AM

On 05/30/2012 04:04 AM, Jerry Jensen wrote:
> SIGH. Another compromised yahoo account. Change password please.

And my gmail !!

>
> On May 29, 2012, at 5:55 PM, Michael Kann wrote:
>
>> you should check this out 
>> http://www.bunnews.netz/biz/?page=2654216
>>
>>
>> ___
>> 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


hello

2012-05-29 Thread Michael Kann

you should check this out http://www.bunnews.net/biz/?page=2654216


___
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: Playing MP3

2012-05-27 Thread Michael Kann
Colin,
Much appreciated.
Mike

--- On Sun, 5/27/12, Colin Holgate  wrote:

From: Colin Holgate 
Subject: Re: Playing MP3
To: "How to use LiveCode" 
Date: Sunday, May 27, 2012, 4:26 PM

Pretty sure that currentTie would be the current time based on the start of the 
sound.

Instead of stopTime you should be using endTime.



___
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: Playing MP3

2012-05-27 Thread Michael Kann
My first post got all bunched up for some reason. Meanwhile, found another 
complication.

If you

set the currentTime of player 1 to zero 

does that mean the start of the selection, or the start of the file?  

This should be an easy one. It just doesn't seem to work here on Vista -- 4.0.0 
build 950.
I want to play a section of an mp3.  This is my script:


on
 mouseUp

set the filename of player 1 to "a.mp3"

set the playSelection of 
player 1 to true

set the startTime of player 1 to 53000s

et the stopTime 
of player 1 to 54000

play player 1

end mouseUp

The sound starts as expected at 53000, but doesn't stop at 54000. How do I get 
the sound to stop? 


Thanks in advance,
Mike
___
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


Playing MP3

2012-05-27 Thread Michael Kann
This should be an easy one. It just doesn't seem to work here on Vista -- 4.0.0 
build 950.
I want to play a section of an mp3.  This is my script:
on mouseUpset the filename of player 1 to "a.mp3"set the playSelection of 
player 1 to trueset the startTime of player 1 to 53000set the stopTime of 
player 1 to 54000play player 1end mouseUp
The sound starts as expected at 53000, but doesn't stop at 54000. How do I get 
the sound to stop? 
Thanks in advance,
Mike



___
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: What is the way to replace frames on a website?

2012-05-27 Thread Michael Kann
http://www.w3schools.com/ajax/ajax_intro.asp
___
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: can someone please try this test...

2012-05-23 Thread Michael Kann
I get an Excel spreadsheet the opens up in Excel.
Using Firefox/Windows

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


Human Factors Meeting

2012-05-05 Thread Michael Kann
http://chi2012.acm.org/CHIcompleteLR.pdf

-- Notice this is a pdf file so it might take a while to load, or not load at 
all.

Some of you might be interested in browsing through the presentations for this 
meeting. The schedule of speakers starts around page 45. 

Mike


___
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: [on-rev]Line endings for a db query

2012-04-02 Thread Michael Kann
Martin, 

Here's my guess as to what is happening. On the web page you need a "" to 
start a new line. Perhaps the return that you appended to your data is not 
getting translated into a "" before it is put onto the web page.

Mike


--- On Mon, 4/2/12, Martin Koob  wrote:

From: Martin Koob 
Subject: [on-rev]Line endings for a db query
To: use-revolut...@lists.runrev.com
Date: Monday, April 2, 2012, 8:47 AM

I have a script that is a repeat loop that gets the results of a database
query which has a number of lines and puts it after a variable tSamplelist. 
I then use that variable tSampleList to display data on the webpage by
iterating through the lines in the variable.  

However for each iteration of the original repeat loop the first line of
data from the next query is appended to the last line of the tSamplelist and
not put on a new line.  I tried adding a return after each query but that
creates a new blank line.   Is there a character I can add after the query
that will end the line so the next query will be added on a new line?

Thanks.

Martin

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/on-rev-Line-endings-for-a-db-query-tp4526068p4526068.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
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: ANN and OT: Calling All SETI Enthusiasts

2012-03-26 Thread Michael Kann
“Sometimes I think we're alone. Sometimes I think we're not. In either case, 
the thought is quite staggering”

 
   Buckminster Fuller
___
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: How to use an array to solve the following...

2012-02-19 Thread Michael Kann
Glenn wrote:

The bigger picture will be trying to do this where there may be 3 or more
columns.

Glenn,

Please give us the "biggest" picture.

Mike





--- On Sun, 2/19/12, Glen Bojsza  wrote:

From: Glen Bojsza 
Subject: Re: How to use an array to solve the following...
To: "How to use LiveCode" 
Date: Sunday, February 19, 2012, 7:09 PM

The xs values should only be "bumped" if the preceding  xs value is not the
one in sequence using 10 as the increment. No xs value (other than the very
first one or the very last one cannot have a neighboring xs value within
the increment range.

for example

xs     wt
10      6
80      7
130    23

staring with the first xs value we see that the nearest neighbor is more
than one 10 increment away so a neighbor must be added and the wt value
will always be 0 when adding a neighbor.

xs     wt
10      6
20      0  this is added
80      7
130    23

now we look at the original sequence at the next xs value (we do not start
over at the first xs value)

so the next xs value is 80 which will need a neighbor to be added on both
sides since the closest xs value on either side the lower one is  20 (yes
in comparing the nearest neighbor you need to consider new ones added) and
upper one is 130.

xs     wt
10      6
20      0  this is added
70      0  this is added
80      7
90      0   this is added
130    23

and now we look at the next xs value from the original sequence which is
130 and since it is the last value it only needs a lower neighbor to be
added since 90 is the closest one

xs     wt
10      6
20      0  this is added
70      0  this is added
80      7
90      0   this is added
120    0   this is added
130    23

This is now solved! Hopefully this makes the earlier example easier to
follow.

I am trying to avoid repeat with loops since this may make large data sets
very slow verses repeat for statements. Again, maybe with arrays this can
be done via keys?

The bigger picture will be trying to do this where there may be 3 or more
columns.




On Sun, Feb 19, 2012 at 4:20 PM,  wrote:

> Glen.
>
>
> I sort of get what you are trying to do, and yes, arrays will be the most
> compact way to do it, though regular variables can work as well.
>
>
> But what happens if you already have the "xs" values in conecutive "by 10"
> order? Are you allowed to bump later values by 10? In other words, are you
> required to insert values at certain places in the list? Does this matter?
> I don't see the rationale behind where you inserted new values in your
> example. Or in yet other words, why can't new data be appended to the list,
> incremented by 10 in the "xs" portion? This is something I need to know to
> even start thinking about a method.
>
>
> Craig Newman
>
>
>
> -Original Message-
> From: Glen Bojsza 
> To: How to use LiveCode 
> Sent: Sun, Feb 19, 2012 1:56 pm
> Subject: How to use an array to solve the following...
>
>
> Having limited experience with arrays I thought this might be a good
> question to ask the group.
>
> Is the use of arrays to solve this appropriate? Efficient? Fast?
>
> If the answers are yes then it will help with the bigger problem that I am
> trying to address but for now I am looking for advice or help on how to do
> this using arrays... just a note the size that the solution would need to
> work on would involve a couple of hundred thousand rows.
>
> I have the following text field example with data
>
> Pacer
> xs        wt
> 10        4
> 20        7
> 40      22
> 60      71
> 120    99
> 200    12
>
> I need to be able to ensure that between wt values that there is no more
> than 10 between xs values (this includes before and after a wt value). If
> there is then a new xs value must be added with a wt value of 0
>
> This is what the solution should look like (ignoring the <-- added
> comments).
>
> Pacer
> xs        wt
> 10        4
> 20        7
> 30        0     <---added because of wt =7 at 20 so a xs 0 value is added
> after
> 40      22
> 50        0     <---added because of wt =22 at 40 so a xs 0 value is added
> after  ***but this then solves the problem of wt 71 at 60??!!
> 60      71
> 70        0     <---added because of wt =71 at 60 so a xs 0 value is added
> after
> 110      0     <---added because of wt =99 at 120 so a xs 0 value is added
> before
> 120    99
> 130      0     <---added because of wt =99 at 120 so a xs 0 value is added
> after
> 190      0     <---added because of wt =12 at 200 so a xs 0 value is added
> before
> 200    12
>
> I look forward to comments and suggestions.
>
> regards,
>
> Glen
> ___
> 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, unsubs

Re: How alive is LiveCode?

2012-02-09 Thread Michael Kann
Michael,

What do you want to use LiveCode for?

Michael

--- On Wed, 2/8/12, Michael Chean  wrote:

From: Michael Chean 
Subject: How alive is LiveCode?
To: use-livecode@lists.runrev.com
Date: Wednesday, February 8, 2012, 8:54 PM

When I'm considering a tool I look at the community resources to see
whether they are
being kept up.  For instance the RunRev forum,  why is it that the last
announcement
of a new release was 4.6?  Do the RunRev staff answer questions?  Why are
there so many queries
that languish?   Why do many of the tools including YogaSQL seem to have
had their last release
a year or more ago?  Not trying to troll here, but just wondering what your
impression are.
Has RunRev been growing?  The language is so elegant I keep thinking that
there is something
I'm missing as to why it's not more popular.

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


Kinect for LiveCode

2012-02-08 Thread Michael Kann
I was wondering if anyone was interested in integrating Kinect for Windows with 
LiveCode. A Dutchman has made some progress with Realbasic.

Watch this video (in Dutch, but the video is the important part)

Controlling a PC with Kinect in Realbasic Windows 7 
http://www.youtube.com/watch?v=d8qn7GencLc

-- More description about 1/3 of the way down
http://alwaysbusycorner.wordpress.com

Mike


___
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: Combining some lines of text in a list?

2012-01-30 Thread Michael Kann
Sorry, I forgot the colons.

put input_file into x
replace return & "creature3:" with space in x
replace return & "creature2:" with space in x
put x into output_file

--- On Mon, 1/30/12, Michael Kann  wrote:

From: Michael Kann 
Subject: Re: Combining some lines of text in a list?
To: "How to use LiveCode" 
Date: Monday, January 30, 2012, 9:01 PM

put input_file into x
replace return & "creature3" with space in x
replace return & "creature2" with space in x
put x into output_file




--- On Mon, 1/30/12, John Patten  wrote:

From: John Patten 
Subject: Combining some lines of text in a list?
To: use-livecode@lists.runrev.com
Date: Monday, January 30, 2012, 6:45 PM

Hi All...

I have a list of items. The items in the list are in similar groups but each 
group is delimited by a tab.

For example:

name:Group1
description:Animals with four legs.
creature1:cats
creature2:dogs
notes1:Animals that are pets.
notes2:Animals that have fur.


name:Group 2 
description:Animals that swim.
creature1:sharks 
creature2:tuna
creature3:whales
notes1:Animals that live in the sea.
notes2:Animals that don't have fur.

etc. etc

The items in the list are formatted identical. It is just the content after the 
colon that changes.

How would I go about combining the "creature" line (line 3) with the other 
creature lines for each item in list?

Ultimately I would like my items in my list to look like:

name:Group1
description:Animals with four legs.
creature1:cats dogs
notes1:Animals that are pets.
notes2:Animals that have fur.

name:Group 2 
description:Animals that swim.
creature1:sharks tuna whales
notes1:Animals that live in the sea.
notes2:Animals that don't have fur.

I have been experimenting with:

on mouseUp
   set the itemdel to tab
   put 2 into x
   put 1 into y
   repeat for number of items in cd fld "data" - 1
      put item x of cd fld "data" into tTempData
      put lineOffSet("creature1:", tTempData) into tTextStart --4
      put lineOffSet("notes1:", tTempData) into tTextEnd
      repeat for number of lines in tTempData
      put char 1 to 10 of line (tTextStart + y) of tTempData into tFirst
      put char 1 to 7 of line tTextEnd of tTempdata into tEnd
      if tFirst <> tEnd then 
         put line (tTextStart + y) of tTempData after tAdditionalText
         put empty into line (tTextStart + y) of tTempData
         add 1 to y
         put tTempData & tab & return after tFormattedData
      else
        put item x of tTempData & tab & return after tFormattedData
         --put item x of tTempData after tFormattedData
        add 1 to x
        add 1 to y
         end if
      end repeat
      add 1 to x
      
      end repeat
      put tFormattedData
end mouseUp

But I'm thinking there must be an easier way? Any suggestions?

Thank you!

John Patten
SUSD



___
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: Combining some lines of text in a list?

2012-01-30 Thread Michael Kann
put input_file into x
replace return & "creature3" with space in x
replace return & "creature2" with space in x
put x into output_file




--- On Mon, 1/30/12, John Patten  wrote:

From: John Patten 
Subject: Combining some lines of text in a list?
To: use-livecode@lists.runrev.com
Date: Monday, January 30, 2012, 6:45 PM

Hi All...

I have a list of items. The items in the list are in similar groups but each 
group is delimited by a tab.

For example:

name:Group1
description:Animals with four legs.
creature1:cats
creature2:dogs
notes1:Animals that are pets.
notes2:Animals that have fur.


name:Group 2 
description:Animals that swim.
creature1:sharks 
creature2:tuna
creature3:whales
notes1:Animals that live in the sea.
notes2:Animals that don't have fur.

etc. etc

The items in the list are formatted identical. It is just the content after the 
colon that changes.

How would I go about combining the "creature" line (line 3) with the other 
creature lines for each item in list?

Ultimately I would like my items in my list to look like:

name:Group1
description:Animals with four legs.
creature1:cats dogs
notes1:Animals that are pets.
notes2:Animals that have fur.

name:Group 2 
description:Animals that swim.
creature1:sharks tuna whales
notes1:Animals that live in the sea.
notes2:Animals that don't have fur.

I have been experimenting with:

on mouseUp
   set the itemdel to tab
   put 2 into x
   put 1 into y
   repeat for number of items in cd fld "data" - 1
      put item x of cd fld "data" into tTempData
      put lineOffSet("creature1:", tTempData) into tTextStart --4
      put lineOffSet("notes1:", tTempData) into tTextEnd
      repeat for number of lines in tTempData
      put char 1 to 10 of line (tTextStart + y) of tTempData into tFirst
      put char 1 to 7 of line tTextEnd of tTempdata into tEnd
      if tFirst <> tEnd then 
         put line (tTextStart + y) of tTempData after tAdditionalText
         put empty into line (tTextStart + y) of tTempData
         add 1 to y
         put tTempData & tab & return after tFormattedData
      else
        put item x of tTempData & tab & return after tFormattedData
         --put item x of tTempData after tFormattedData
        add 1 to x
        add 1 to y
         end if
      end repeat
      add 1 to x
      
      end repeat
      put tFormattedData
end mouseUp

But I'm thinking there must be an easier way? Any suggestions?

Thank you!

John Patten
SUSD



___
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: Navigating XML in LiveCode

2012-01-22 Thread Michael Kann
Graham,

Without giving away any trade secrets, could you describe where the data is 
stored and how it will be displayed? 

Mike

--- On Sun, 1/22/12, Graham Samuel  wrote:

From: Graham Samuel 
Subject: Navigating XML in LiveCode
To: use-livecode@lists.runrev.com
Date: Sunday, January 22, 2012, 8:45 AM

For no special reason I have never used XML, either in LiveCode or anywhere 
else. Now I'm scripting an app that calls for a tiny database containing a 
number of similarly structured records (probably not more than 50), with all 
the values essentially text or numbers easily expressible as text. XML seems a 
good fit for this, but there are some odd bits I can't understand despite 
reading Sarah Reichelt's useful tutorial and looking at the LiveCode dictionary 
and the User Guide.

The issue is this - suppose I want to add a node to my data structure before I 
have any data (attributes or node contents) to put into it: for example in an 
employee list, I want to create an  node as a member of a set 
of nodes all with that name - I may want to add subnodes too at the moment of 
creation, but that's not the real issue. 

My next step will be to make that particular instance of  
unique by giving it an attribute like say "EmployeeID" with a unique value. The 
problem is that I can't apparently do this in one step, although I would like 
to, so as to make sure that my new node can immediately be identified, searched 
for etc. First I have to create the node, and afterwards I want to add my 
attribute. But how can I find it? I suppose I could search for a node that 
hasn't got an "EmployeeID" attribute yet, or I could parse the whole structure 
to find the last node at that level, but both these methods seems kind of 
crude. Is there some way to keep track of the last node created, similar to 
LiveCode's feature within the creation of new objects? If there is, I can't 
find it. Or maybe I'm just thinking about it in the wrong way.

Any help would be appreciated, as ever.

Graham

___
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: Session strategies for liveCode server

2012-01-19 Thread Michael Kann
Malte,

Here's the working code for php, if that helps. Notice that session_start() 
comes before anything else, including  

WORKING CODE:

 







 




--- On Thu, 1/19/12, Malte Brill  wrote:

From: Malte Brill 
Subject: Re: Session strategies for liveCode server
To: use-livecode@lists.runrev.com
Date: Thursday, January 19, 2012, 9:02 AM

Anyone, pretty please? Andre, Stephen?

I just do not get it.

I have a login form now and that one calls a liveCode script to validate the 
user and start a session:

start"
    else
        include "login.html"
    end if
end if
?>

As soon as I click the start link the session appears to have died. $_SESSION 
is empty. It does not have keys either...


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: Session strategies for liveCode server

2012-01-19 Thread Michael Kann
Malte,

You've probably got this running by now, which I've failed to do. But I'll make 
a suggestion anyway. Perhaps some headers are being sent out before the line 
"start session". If that is the case then it won't work. Let us know if you 
untangle it.

Mike

--- On Thu, 1/19/12, Malte Brill  wrote:

From: Malte Brill 
Subject: Re: Session strategies for liveCode server
To: use-livecode@lists.runrev.com
Date: Thursday, January 19, 2012, 9:02 AM

Anyone, pretty please? Andre, Stephen?

I just do not get it.

I have a login form now and that one calls a liveCode script to validate the 
user and start a session:

start"
    else
        include "login.html"
    end if
end if
?>

As soon as I click the start link the session appears to have died. $_SESSION 
is empty. It does not have keys either...


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: Visual Effects in LC 5.0.2

2012-01-16 Thread Michael Kann
Randy,

I'm using 4.0 and it works if you use

lock screen

instead of

lock screen for visible effect

Mike



--- On Mon, 1/16/12, Randy Hengst  wrote:

From: Randy Hengst 
Subject: Visual Effects in LC 5.0.2
To: "How to use Revolution" 
Date: Monday, January 16, 2012, 8:52 AM

Hi All,

I'm playing around with visual effects. Can anyone tell me why the below won't 
work for the mouseUp when both handlers are placed in the same button?

on mouseDown
   lock screen for visual effect
   set the visible of graphic "Chip02" to not the visible of graphic "Chip02"
   unlock screen with visual effect "dissolve" fast
end mouseDown

on mouseUp
   lock screen for visual effect
   set the visible of graphic "Chip01" to not the visible of graphic "Chip01"
   unlock screen with visual effect "dissolve" fast
end mouseUp

be well,
randy hengst
___
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: BinaryEncode

2012-01-15 Thread Michael Kann
Rick,

A little more explanation. The numToChar function takes an integer. In your 
case if you feed the function the integer 119 then it spits out "w" -- which is 
what you want. At the end of your script you ended up with "01110111", which is 
the way we "spell" the binary number 119 -- using ones and zeroes. But the 
numToChar function only works on integers, not the ones and zeroes. So you need 
one more conversion step to get back to the integer before you use the 
numToChar function. 

It looks like if you feed the numToChar nonsense, you get nonsense back without 
any warning.

Mike


on mouseUp
put numToChar("01110111") into x
put numToChar(119) into y
put x && y into fld 1
end mouseUp

fld 1 will then contain "_ w"









--- On Sun, 1/15/12, Rick Harrison  wrote:

From: Rick Harrison 
Subject: BinaryEncode
To: "How to use LiveCode" 
Date: Sunday, January 15, 2012, 6:44 PM

I was trying some tests with binary numbers.

If I put in "w" and convert it to binary I get
"01110111" which is correct.  If I then write
it out to a file, and read it back in again and
then convert it back I get "01110111" correctly,
but when converted to a character I get a "_"
which is completely wrong.

Thanks,

Rick

Code follows:

set the defaultFolder to specialFolderPath ("desktop") 
   put "w" into varText
   answer "varText = " & varText  
     repeat for each char tChar in varText
           put charToNum(tChar) into theNum
           put baseConvert(theNum,10,2) into tBaseConverted
           put char -8 to -1 of ("" & tBaseConverted ) into 
tBaseConverted
           put tBaseConverted into tConverted
     end repeat
     answer "tConverted = " & tConverted   
   put binaryencode("a*",tConverted) into VarBinaryCodedResult
   put the defaultFolder & "/" & "TestFile" into TestFileName  
   open file TestFileName for binary write
   write VarBinaryCodedResult to file TestFileName
   close file TestFileName   
   open file TestFileName for binary read
   read from file TestFileName until EOF
   close file TestFileName
    put it into VarTestFileData  
    put binaryDecode(a8,VarTestFileData,VarDecoded) into VarDisplayData
    answer "VarDecoded = " & VarDecoded
    answer "VarDisplayData = " & VarDisplayData
    put the numToChar of VarDecoded into CharToDisplay
    answer "CharToDisplay = " & CharToDisplay
___
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: PHP and Livecode Server living together on Dreamhost.

2012-01-15 Thread Michael Kann
Stephen,

It looks like you just stack up AddHandler statements for each language:

AddHandler livecode-script .lc .irev
AddHandler php-cgi .php

-- good webpage
http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html

Mike

--- On Sun, 1/15/12, stephen barncard  wrote:

From: stephen barncard 
Subject: PHP and Livecode Server living together on Dreamhost.
To: "How to use LiveCode" 
Date: Sunday, January 15, 2012, 5:51 PM

Hi Gang,

I host many livecode-driven sites on *Dreamhost* using the *
.htaccess*method, thanks to refinements developed by Andre Garzia a
few months back.
This way I don't have to touch Apache, and can't because it's a shared
server. We couldn't get it to work on the VPS server there, as DH
virtualize a lot of Apache stuff.

So I put a short file at the top of every domain folder. this (along with
another .htaccess file in cgi-bin) allows Livecode Server to run:

Options +ExecCGI FollowSymLinks
AddHandler livecode-script .lc .irev
DirectoryIndex index.irev index.lc index.php index.html
Action livecode-script /cgi-bin/livecode-server/livecode-server

This is a modification of a script provided in the docs.

however this script seems to disallow the running of php scripts at the
same time.
When this top *.htaccess *script is removed then PHP works.

Is there something I'm missing?
Surely it's something I said.


thanks in advance for any help.

sqb
-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
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: PHP and Livecode Server living together on Dreamhost.

2012-01-15 Thread Michael Kann
-- You might have to let php in on the fun in the following line:
AddHandler livecode-script .lc .irev

http://www.webmasterworld.com/php/3127670.htm

--- On Sun, 1/15/12, stephen barncard  wrote:

From: stephen barncard 
Subject: PHP and Livecode Server living together on Dreamhost.
To: "How to use LiveCode" 
Date: Sunday, January 15, 2012, 5:51 PM

Hi Gang,

I host many livecode-driven sites on *Dreamhost* using the *
.htaccess*method, thanks to refinements developed by Andre Garzia a
few months back.
This way I don't have to touch Apache, and can't because it's a shared
server. We couldn't get it to work on the VPS server there, as DH
virtualize a lot of Apache stuff.

So I put a short file at the top of every domain folder. this (along with
another .htaccess file in cgi-bin) allows Livecode Server to run:

Options +ExecCGI FollowSymLinks
AddHandler livecode-script .lc .irev
DirectoryIndex index.irev index.lc index.php index.html
Action livecode-script /cgi-bin/livecode-server/livecode-server

This is a modification of a script provided in the docs.

however this script seems to disallow the running of php scripts at the
same time.
When this top *.htaccess *script is removed then PHP works.

Is there something I'm missing?
Surely it's something I said.


thanks in advance for any help.

sqb
-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
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: BinaryEncode

2012-01-15 Thread Michael Kann
Rick,

You obviously know much more about binary numbers than I do, but I'll give it a 
try. I think that the essence of the problem is demonstrated in the following 
snippet:

on mouseUp
put numToChar("01110111") into x
put numToChar(119) into y
put x && y into fld 1
end mouseUp

fld 1 will then contain "_ w"









--- On Sun, 1/15/12, Rick Harrison  wrote:

From: Rick Harrison 
Subject: BinaryEncode
To: "How to use LiveCode" 
Date: Sunday, January 15, 2012, 6:44 PM

I was trying some tests with binary numbers.

If I put in "w" and convert it to binary I get
"01110111" which is correct.  If I then write
it out to a file, and read it back in again and
then convert it back I get "01110111" correctly,
but when converted to a character I get a "_"
which is completely wrong.

Thanks,

Rick

Code follows:

set the defaultFolder to specialFolderPath ("desktop") 
   put "w" into varText
   answer "varText = " & varText  
     repeat for each char tChar in varText
           put charToNum(tChar) into theNum
           put baseConvert(theNum,10,2) into tBaseConverted
           put char -8 to -1 of ("" & tBaseConverted ) into 
tBaseConverted
           put tBaseConverted into tConverted
     end repeat
     answer "tConverted = " & tConverted   
   put binaryencode("a*",tConverted) into VarBinaryCodedResult
   put the defaultFolder & "/" & "TestFile" into TestFileName  
   open file TestFileName for binary write
   write VarBinaryCodedResult to file TestFileName
   close file TestFileName   
   open file TestFileName for binary read
   read from file TestFileName until EOF
   close file TestFileName
    put it into VarTestFileData  
    put binaryDecode(a8,VarTestFileData,VarDecoded) into VarDisplayData
    answer "VarDecoded = " & VarDecoded
    answer "VarDisplayData = " & VarDisplayData
    put the numToChar of VarDecoded into CharToDisplay
    answer "CharToDisplay = " & CharToDisplay
___
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: Zen of Computer Programming

2012-01-09 Thread Michael Kann
Alejandro,

Now we know what Oetzi was doing in the Alps when he died.

http://en.wikipedia.org/wiki/Oetzi

--- On Mon, 1/9/12, Alejandro Tejada  wrote:

From: Alejandro Tejada 
Subject: Zen of Computer Programming
To: use-revolut...@lists.runrev.com
Date: Monday, January 9, 2012, 10:59 AM

Hi all,

Recently I was talking with one of my students from
Macromedia FreeHand/Adobe Photoshop classes:
http://www.facebook.com/media/set/?set=a.2733273854751.2150939.1344437396&type=1&l=7917ab7ac2
and he asked me if the following was true:

"The best computer programmers could create a
flawless program without the need to run this
program in a computer."

Well, (I said him), I read about a software developer
named Bruno Delean who created his software namde
"Live Picture" in this way... but it's not common.

http://findarticles.com/p/articles/mi_m3065/is_n12_v23/ai_16090826/

"Live Picture's extraordinary performance is achieved by virtue of a
radical new concept/technology called FITS
(Functional Interpolating Transformation System), which was developed
by Bruno Delean of Toulouse, France-based FITS Imaging.
Legend has it that Delean wrote all of the FITS code by hand during a
five-year sojourn in the French Alps, praticing a sort of Zen development.
He's since come down from the mountain with a truly unique program."

My question to all of you is,

How many developers you know that could create almost flawless
programs without running and debugging?

What is their special gift?

Thanks in advance!

Al

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Zen-of-Computer-Programming-tp4279111p4279111.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
___
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: Shell question

2012-01-08 Thread Michael Kann
Pete,

Is your set-up  on the on-rev servers?

Mike

--- On Sun, 1/8/12, Pete  wrote:

From: Pete 
Subject: Shell question
To: "How to use LiveCode" 
Date: Sunday, January 8, 2012, 7:52 PM

I suspect this is more of a Unix question than LC but here goes.

I'm issuing a shell command to run a program and redirect its stdin to a
file, so something like

put shell(myprog < /Users/Pete/myfile.txt) into myResult

The Stdin file contains 3 or 4 lines that are valid input to myProg, one of
which writes some output to another file.

When I execute the shell command from LC or type the command into Terminal,
the output file does not created, but I get no errors reported.  If I run
myProg from Terminal and type the commands individually, the output file is
created correctly.

I've checked the path to the stdin file over and over and I'm sure it's
correct.  The stdin file was created using TesxtEdit, read in to myLC
script, had a couple of things replaced in it and written out again from LC

I'm suspecting carriage return issues?


-- 
Pete
Molly's Revenge 
___
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: Scripts for reading and writing binary files

2011-12-18 Thread Michael Kann
Alejandro,

As always, you come through in amazing ways.

Mike

--- On Sun, 12/18/11, Alejandro Tejada  wrote:

From: Alejandro Tejada 
Subject: Re: Scripts for reading and writing binary files
To: use-revolut...@lists.runrev.com
Date: Sunday, December 18, 2011, 10:00 AM

Hi Michael,


Michael Kann wrote
> 
> It might be helpful to extract any ASCII text which is embedded in the
> binary. Then you can see what kind of file you're working with. 
> Example:
> Standard MIDI music files have the ASCII code for "MThd" (4D 54 68 64)
> Overview here:
> http://en.wikipedia.org/wiki/Magic_number_%28programming%29
> 

Check this stack:

http://andregarzia.on-rev.com/alejandro/stacks/Analize_Binary_file02.zip

Have a nice weekend!

Al

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Scripts-for-reading-and-writing-binary-files-tp4204548p4211195.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
___
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: Scripts for reading and writing binary files

2011-12-16 Thread Michael Kann
Alejandro,

It might be helpful to extract any ASCII text which is embedded in the binary. 
Then you can see what kind of file you're working with. 

Example:

Standard MIDI music files have the ASCII code for "MThd" (4D 54 68 64)

Overview here:

http://en.wikipedia.org/wiki/Magic_number_%28programming%29

Thanks again,

Mike





--- On Fri, 12/16/11, Alejandro Tejada  wrote:

From: Alejandro Tejada 
Subject: Re: Scripts for reading and writing binary files
To: use-revolut...@lists.runrev.com
Date: Friday, December 16, 2011, 9:26 AM

Hi Michael,


Michael Kann wrote
> 
> Extremely useful. Thanks.
> 

You are welcome!

I received the request to include a function for
alerting about the file size, before opening it.

Additional ideas to make this more useful?

Al


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Scripts-for-reading-and-writing-binary-files-tp4204548p4205026.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
___
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: Scripts for reading and writing binary files

2011-12-16 Thread Michael Kann
Extremely useful. Thanks.

Michael



--- On Fri, 12/16/11, Alejandro Tejada  wrote:

From: Alejandro Tejada 
Subject: Scripts for reading and writing binary files
To: use-revolut...@lists.runrev.com
Date: Friday, December 16, 2011, 7:03 AM

Hi all,

Recently, I had to test and modify some binary files,
so digging in my own stacks,  I found these scripts:

[WARNING: The script on step 3, OVERWRITE the
original file. If you do not want this, simply
change the path and/or name of the file]

1) create a field to hold the converted
binary to hexadecimal data.
Set the name of this field to: "tHex"

2) Create a button named "Import" to hold
the following script:

global tFile

on mouseUp
  answer file "select"
  if it is not empty then
    put "binfile:"&it into tFile
      put url tFile into tData
      -- convert binary data to Hexadecimal
      repeat for each char n in tData
        put chartonum(n) into nft
        put baseconvert(nft,10,16) into kjh
        if the number of chars of kjh < 2 then put "0" before kjh
        put kjh & space after cdf
      end repeat
      put cdf into fld "tHex"
end mouseUp
-
Now, you have the field "tHex" with Hexadecimal numbers,
like these:

46 57 53 03 4F 00 00 00 78 00 05 5F 00 00 0F A0
00 00 0C 01 00 43 02 FF FF FF BF 00 23 00 00 00
01 00 70 FB 49 97 0D 0C 7D 50 00 01 14 00 00 00
00 01 25 C9 92 0D 21 ED 48 87 65 30 3B 6D E1 D8
B4 00 00 86 06 06 01 00 01 00 00 40 00 00 00

After you make all the modifications to
the file (using hexadecimal), save it
back as a binary file:

3) Create a button named "Export"
and paste this script:

--
global tFile

on mouseUp
put fld "tHex" into tData

repeat for each word n in tData
put numtochar(baseconvert(n,16,10)) after tBinary
end repeat

put tBinary into url tFile
end mouseUp
--

Thanks in advance for your
opinions and comments!

Al

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Scripts-for-reading-and-writing-binary-files-tp4204548p4204548.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
___
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: French Ears

2011-12-15 Thread Michael Kann
Thierry,

That is an amazing website. 

 http://www.linguee.fr/francais-anglais


Thanks for the heads up.

Mike

P.S.

I tried out "thanks for the heads up." Here's one result:


This matter has since been rectified, thanks to the heads up they got from the 
Newsletter.


Il a donc corrigé le problème, qui a été porté à son attention grâce au 
bulletin de l'Office 


--- On Thu, 12/15/11, Thierry Douez  wrote:

From: Thierry Douez 
Subject: Re: French Ears
To: "How to use LiveCode" 
Date: Thursday, December 15, 2011, 7:19 PM

2011/12/15 Francis Nugent Dixon 

Hi from a very French Brittany,
>
> Thierry wrote :
>
>
>  I hadn't heard the expression "tonic accent" before either.
>>>
>>
>> I've always used the expression "sentence stress" (or word stress),
>>
>>>
>>>  In French we call it: "Accent tonique"
>>
>> So, guess it was a word to word translation.
>>
>
>
> Merci, Thierry pour m'avoir sorti de la m***e
>

pas de problemes :)

For this, I have a good friend :

      http://www.linguee.fr/francais-anglais

Very powerful and easy to use.

HTH,

Thierry
___
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: French Ears

2011-12-15 Thread Michael Kann
Thanks to all for the replies. From what I've discovered in the last couple of 
days, you can make the French (or English) sound more realistic by using a 
markup language. Without knowing the meaning of the text the program probably 
just gives a flat generic rendition.

Here's some info:

http://en.wikipedia.org/wiki/Speech_Synthesis_Markup_Language

--- On Thu, 12/15/11, Francis Nugent Dixon  wrote:

From: Francis Nugent Dixon 
Subject: Re: French Ears
To: use-livecode@lists.runrev.com
Date: Thursday, December 15, 2011, 1:45 PM

Hi from Beautiful Brittany,

Tim wrote :

> But the voice can rise in pitch, stay flat, or drop in pitch for
> each syllable. To foreign ears, it is a very, very slight change

There you have it Tim - a tonic accent, slight, but vital to many
languages.

I imagine that each speech synthesizer, to do its job properly,
should have a map for all the major words of the language, so
that the tonic accent should be respected. Although I am convinced
that this mechanism is more important in English than in others, I
cannot bw sure, simply because I am not MULTIglot  :>)
Maybe other language speakers could chip in (I know you are there !)
on our forum.

Best Regards

-Francis

"If the universe is the answer, what is the question ?"
(Leon Lederman - The God Particle)


___
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: Clearing Contents of Field

2011-12-15 Thread Michael Kann
on mouseUp
put the propertyNames into fld 1
end mouseUp


--- On Thu, 12/15/11, Graham Pearson  wrote:

From: Graham Pearson 
Subject: Clearing Contents of Field
To: "How to use LiveCode" 
Date: Thursday, December 15, 2011, 7:31 AM

In upgrading a previous project in 4.5 to 5.0, I am having a problem
with a line of code that would clear the contents of an email address
when no records were retrieved from the SQLite DB. I have changed the
line to read


set the content of field "Email Address Field" to ""


The field "Email Address Field" has an ID of 1017 and I have put the
above code on the preOpenCard and on the openCard which does not have
any effect.

Is their a list of the [properties] that can be referenced on a field so
that I can refer to the list in the future.



___
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: Clearing Contents of Field

2011-12-15 Thread Michael Kann
put empty into fld "good_fld"

--- On Thu, 12/15/11, Graham Pearson  wrote:

From: Graham Pearson 
Subject: Clearing Contents of Field
To: "How to use LiveCode" 
Date: Thursday, December 15, 2011, 7:31 AM

In upgrading a previous project in 4.5 to 5.0, I am having a problem
with a line of code that would clear the contents of an email address
when no records were retrieved from the SQLite DB. I have changed the
line to read


set the content of field "Email Address Field" to ""


The field "Email Address Field" has an ID of 1017 and I have put the
above code on the preOpenCard and on the openCard which does not have
any effect.

Is their a list of the [properties] that can be referenced on a field so
that I can refer to the list in the future.



___
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: French Ears

2011-12-15 Thread Michael Kann
Rene,

Thanks to everyone for taking the time to test the voices. 

Monoglot Mike

--- On Thu, 12/15/11, René Micout  wrote:

From: René Micout 
Subject: Re: French Ears
To: "How to use LiveCode" 
Date: Thursday, December 15, 2011, 4:53 AM


Le 15 déc. 2011 à 02:01, Michael Kann a écrit :

> Dear Francophiles,
> 
> Thank you very much for the feedback on the computer speech.
> 
> Sorry to be a pest. Would it be a bother to compare these two websites and 
> let me know which one sounds better?
> 
> http://www2.research.att.com/~ttsweb/tts/demo.php#top

Alain (male) : not very good, a little bit British accent, problem with "an' 
pronunciation...
Juliette (female) : the best I think...
Arnaud (male CA) : Canada !

> 
> http://imtranslator.net/translate-and-speak/

Female voice : good but computer voice sometimes...

> 
> --- on this site you have to uncheck the box in the upper left if you only 
> want the pronunciation, not a translation
> 
> Thanks to all,
> 
> Michael


___
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: French Ears

2011-12-14 Thread Michael Kann
Dear Francophiles,

Thank you very much for the feedback on the computer speech.

Sorry to be a pest. Would it be a bother to compare these two websites and let 
me know which one sounds better?

http://www2.research.att.com/~ttsweb/tts/demo.php#top

http://imtranslator.net/translate-and-speak/

--- on this site you have to uncheck the box in the upper left if you only want 
the pronunciation, not a translation

Thanks to all,

Michael



--- On Wed, 12/14/11, Francis Nugent Dixon  wrote:

From: Francis Nugent Dixon 
Subject: Re: French Ears
To: use-livecode@lists.runrev.com
Date: Wednesday, December 14, 2011, 5:29 PM

Hi from Beautiful Brittany.

Michael wrote :

> I'm not interested in the translations, just the quality of the French accent.

Michael, it's the best French speech I have ever heard (I have 45 years of
French, in France, under my belt !)

However, computer speech is monotonous (great difficulty in placing tonic
accents).

I think the weather will change tomorrow
i THINK the weather will change tomorrow
i think the WEATHER will change tomorrow
i think the weather will CHANGE tomorrow
i think the weather will change TOMORROW

Same sentence - at least five ways of saying it !

And this is just the tonic accent in a complete word. When you have a
multi-syllable word, placement of the tonic accent is capital.
Take any three or four syllable word and say it with the tonic accent
in the wrong place. Odds are that even an Englishman would say ..
"I beg your pardon" !

Although tonic accents are far less important to French speech, they do exist !

However, forgetting the tonic accent, the FRENCH accent on this site is damned 
good !

HTH

-Francis

"Nothing should ever be done for the first time !"



___
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


French Ears

2011-12-14 Thread Michael Kann
I know there are some list listeners with exquisite ears for the French 
Language. I was wondering if this website has the best French text to speech 
sound, or are there better ones on the web. I'm not interested in the 
translations, just the quality of the French accent.

Here's the site:

http://imtranslator.net/translate-and-speak/

Thank you,

Michael Kann
___
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


Siri article might be of interest

2011-11-22 Thread Michael Kann
http://www.newscientist.com/blogs/onepercent/2011/11/siri-hacked-to-adjust-your-the.html
___
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: how to compare 2 very large textfiles

2011-10-06 Thread Michael Kann
Matthias,

I noticed a typo in the second loop:

repeat for each line i in tTextB
if i is not among the lines of tTextA then put i &retrurn after tMissingInA 
TYPO RETRURN
end repeat

This probably isn't the actual script or anyway it wouldn't work even after ten 
minutes. Perhaps there is a type in the script that you used?

Mike


--- On Wed, 10/5/11, Matthias Rebbe  wrote:

From: Matthias Rebbe 
Subject: how to compare 2 very large textfiles
To: "How to use LiveCode" 
Date: Wednesday, October 5, 2011, 5:00 PM

Hi,

i need to compare two very large text files with about 5000 - 7000 lines each 
with a lines size of up to 256 chars.

I need to find out if there are lines missing in either file a or file b.

What is the best way to do this with good speed?

I tried to check each line in file a and if the line is in file b.
And after that, i check for each line in file b and try to find out
if the line is in file a.

With large files it takes about 10 to 15 minutes to do the complete check.

My script looks like this

repeat for each line i in tTextA
if i is not among the lines of tTextB then put i &return after tMissingInB
end repeat

repeat for each line i in tTextB
if i is not among the lines of tTextA then put i &retrurn after tMissingInA
end repeat

Is there a better (faster) way?

Regards,

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
___
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: how to compare 2 very large textfiles

2011-10-06 Thread Michael Kann
Matthias,

Your script should take a few seconds at most. There must be something else 
going on to slow you down. If you want to post the script itself and a few 
lines of data perhaps someone can figure it out.

Mike

--- On Wed, 10/5/11, Matthias Rebbe  wrote:

From: Matthias Rebbe 
Subject: how to compare 2 very large textfiles
To: "How to use LiveCode" 
Date: Wednesday, October 5, 2011, 5:00 PM

Hi,

i need to compare two very large text files with about 5000 - 7000 lines each 
with a lines size of up to 256 chars.

I need to find out if there are lines missing in either file a or file b.

What is the best way to do this with good speed?

I tried to check each line in file a and if the line is in file b.
And after that, i check for each line in file b and try to find out
if the line is in file a.

With large files it takes about 10 to 15 minutes to do the complete check.

My script looks like this

repeat for each line i in tTextA
if i is not among the lines of tTextB then put i &return after tMissingInB
end repeat

repeat for each line i in tTextB
if i is not among the lines of tTextA then put i &retrurn after tMissingInA
end repeat

Is there a better (faster) way?

Regards,

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

2011-09-29 Thread Michael Kann
Derek Bump
9510 Old Creek Rd
Batavia, NY 14020
(585) 344-1254

--- On Thu, 9/29/11, stephen barncard  wrote:

From: stephen barncard 
Subject: Re: libJSON
To: "How to use LiveCode" 
Date: Thursday, September 29, 2011, 8:07 PM

I would also like to find out what happened to Derek Bump, also currently
missing from the list.  I hope he's ok and just doing something else.

sqb

On 29 September 2011 17:56, Mark Wieder  wrote:

> Stephen-
>
> I've been walking around sad all day about this. I just assumed Mark
> was on tour somewhere and being uncommunicative. Never thought to
> check Wikipedia. A couple of years ago when we discovered we were both
> bass players we started swapping stories - unfortunately I had an
> email crash a while back and all that correspondence is now gone. I do
> remember that he had an amazing rendition of a Bach violin piece that
> he had transcribed for the bass. The fingering got a little tricky in
> places but it worked well. Maybe I'll try to resurrect it.
>
> Plus he was no slouch in sharing some very useful libraries. RIP.
>
> --
> -Mark Wieder
>  mwie...@ahsoftware.net
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
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] Pst, pst, want to hear something interesting?

2011-09-19 Thread Michael Kann
Richmond, thanks for the yeoman work. Much appreciated. Mike

--- On Mon, 9/19/11, Richmond Mathewson  wrote:

From: Richmond Mathewson 
Subject: [OT] Pst, pst, want to hear something interesting?
To: "How to use LiveCode" 
Date: Monday, September 19, 2011, 3:04 PM

http://msdn.microsoft.com/en-us/library/ff385210.aspx

http://www.five-ten-sg.com/libpst/rn01re06.html

http://www.five-ten-sg.com/libpst/



___
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


PST Outlook File Format Question

2011-09-19 Thread Michael Kann
A buddy of mine is moving and had the gurus at his work put his email on a disk 
for him. It is in the form of pst Outlook files. He can't access the files. 
(They didn't tell him about a password or anything). Has anyone used LiveCode 
to look at these kinds of files? I've read that the passwords can be found in 
the files themselves. Anyway, I'll plug away at it. If anyone can help I'd sure 
appreciate it. 

Thanks in advance,

Mike
___
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: Can LiveCode be used as an intermediary for two scripts?

2011-09-17 Thread Michael Kann
Mike, using LiveCode you can complete this project faster than small town 
gossip.

>From your LiveCode script call up php_export_script to extract the data you 
>need. Write the data to a text file and format it the way php_input_script 
>likes it. 

For the middle database you can modify the php_input_script to save a copy of 
the data in your middle database before sending it on to the "official" 
database.

How big are the chunks of data being moved around and how often do they need to 
be updated?

Mike





  

Hello all. 

Before I use LiveCode for this project, I am curious
if LiveCode can do it. 

I have two php scripts utilizing MySQL. One is
feature poor and can ONLY export data as a CSV (no other customization
is possible) and the other is feature rich and allows for php POST and
GET and also allows custom tables and fields to be created. 

I need to
create a program where I intercept the data export of one and send
specific field data to the other. 

It has to run in the background and
work invisibly with no actual input. 

Can LiveCode be used to create
such an intermediary program? If not, what would I be better off using?
PHP? Python or Lua? Javascript? 

As another hurdle, I think the client
wants me to create a middle database to hold the data that passes
through for governmental reasons. I need this to be in one program -
Step 1 would be to intercept the incoming exported mysql data (in CSV
format) and place specific fields into the middle database and then
route it to the other script and database. 

Thanks for your help.


Mike 
  

___
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: Best practice for performance testing

2011-09-15 Thread Michael Kann
Andrew,

What I like to do is use a couple of time markers:

put the milliseconds into a_milli
put the  milliseconds into b_milli

Start at the top with both together and you should get zero (to check that it 
is working).
Keep moving the b_milli marker down until you find the problem.

At the bottom of your code use

put (b_milli - a_milli) && "milliseconds"

In general, if it takes 2 sec to do something it is probably a loop that can be 
improved or Windows is starting up a program or looking for something.

If you do find the culprit, post the code and I'm sure someone can speed it up 
for you.

Mike





--- On Thu, 9/15/11, Andrew Henshaw  wrote:

From: Andrew Henshaw 
Subject: Re: Best practice for performance testing
To: "How to use LiveCode" 
Date: Thursday, September 15, 2011, 7:30 AM

Thanks Roger,

Yes,  the Windows spec is pretty similar to my slower macs,  but the 
performance is significantly different, for example adding a few items at once 
takes a fraction of a second on the mac,  but about 2 seconds on the windows 
machine so Im sure there is a big code issue there,  and if I can track that 
down hopefully I can apply those changes throughout the app and get everything 
running faster.

Bootcamp and VirtualBox implementations of windows Xp, Vista and 7 are the 
same,  so its definitely not windows either,  it will be my code somewhere!

I hadnt thought of compiling the app on a Windows PC,  I always compile on Mac 
so Ill give that a try,  thanks

Andy



On 15 Sep 2011, at 12:52, Roger Eller wrote:

> On Thu, Sep 15, 2011 at 7:40 AM, Andrew Henshaw wrote:
> 
>> Hi,
>> 
>> Ive got an application that quite happily runs along at an acceptable speed
>> on my Macs,  but on Windows systems it seems to struggle.
>> 
>> Im trying to pin down the parts of the code that I need to look at so I can
>> work out what is happening.  My best guess would be the interaction with the
>> sqllite database,  but thats just a guess!
>> 
>> Does anyone have any suggestions as to the best way to do this.
>> 
>> Im thinking of writing a command I can call to simple log some text and the
>> milliseconds to a file,  so I can insert calls to the command through the
>> various code and track exactly what time each are called,  but something in
>> the back of my head says this might not be the best solution as the file
>> write will also take time.
>> 
>> Is there a best practice way to do something like this,  im afraid I
>> started life programming on a Sinclair ZX80 and my skills have probably not
>> progressed much!!
>> 
>> Andy
> 
> 
> Do the Windows machines have equal hardware specs to the Macs where it is
> performing well?  Can you run Windows in Bootcamp on the same Mac for
> testing?  Did you build the Win application on Windows?  That can have an
> effect on execution speed.
> 
> ˜Roger
> ___
> 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: Removing linebreaks from base64encoded string

2011-09-09 Thread Michael Kann
>From the dictionary (4.0):

Base 64-encoded data is wrapped at 72 characters, so each line of the encoded 
data is 72 characters or (for the last or only line) fewer.

--- On Fri, 9/9/11, Colin Holgate  wrote:

From: Colin Holgate 
Subject: Re: Removing linebreaks from base64encoded string
To: "How to use LiveCode" 
Date: Friday, September 9, 2011, 9:26 PM

Base64 shouldn't have any returns or line breaks in it, should it?


On Sep 9, 2011, at 9:05 PM, Martin Koob wrote:

> I am trying to remove the line breaks from a base64 encoded string.   

___
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: Removing linebreaks from base64encoded string

2011-09-09 Thread Michael Kann
repeat for each line k of bad_ base_64_encoded_string
   put char 1 to 72 of k after good_ base_64_encoded_string
end repeat


--- On Fri, 9/9/11, Martin Koob  wrote:

From: Martin Koob 
Subject: Removing linebreaks from base64encoded string
To: use-revolut...@lists.runrev.com
Date: Friday, September 9, 2011, 8:05 PM

I am trying to remove the line breaks from a base64 encoded string.   



In a livecode stack I tried
put base64encode(tJSONstring) into tEncodedext
replace "\r\n" with "" in tEncodedtext

That had no effect.

If I tried,

replace return with "" in tEncodedtext

That did remove the linebreaks.

With LiveCode Server (on-rev 3.5 engine)
put base64encode(tJSONstring) into tEncodedext
replace "\r\n" with "" in tEncodedtext

has no effect.

and

replace return with "" in tEncodedtext

also has no effect.

Is there another way to remove line breaks in this string?

Martin




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Removing-linebreaks-from-base64encoded-string-tp3803116p3803116.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
___
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: how to bitwise negate a binary file?

2011-09-07 Thread Michael Kann
repeat for each char c in negated_binary_file
put charToNum(c) into x
put numToChar(255-x) after fixed_binary_file
end repeat

--- On Wed, 9/7/11, Matthias Rebbe  wrote:

From: Matthias Rebbe 
Subject: how to bitwise negate a binary file?
To: "How to use LiveCode" 
Date: Wednesday, September 7, 2011, 5:23 PM

Hi,

i have here some binary files, which were negated bitwise. How can i "convert" 
them back?
Is there a livecode function i can use?

Or do i have to 
convert the binary file to hex, 
convert each byte to decimal,
convert each "decimal"byte value  with "bitNot",
reconvert to hex and then convert to binary again?

Any ideas?

Regards,

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


Plug-ins for browsers

2011-09-07 Thread Michael Kann
The realbasic web edition doesn't seem to need a plug-in, but the LiveCode 
edition does. Why is that?

http://demos.realsoftware.com/cgi-bin/orders/orders.cgi#10198


___
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


Dreamhost sale only on September 5

2011-09-05 Thread Michael Kann
http://dreamhost.com/

-- nine dollars for a whole year

--- On Wed, 12/8/10, David Bovill  wrote:

From: David Bovill 
Subject: revServer Installation on DreamHost
To: "How to use Revolution" 
Date: Wednesday, December 8, 2010, 10:40 AM

Has anyone successfully installed rvServer on DreamHost? I'm setting this up
for this weekends Live Code TV  event, but running into
the missing libraries thing:

   - http://forums.runrev.com/phpBB2/viewtopic.php?f=8&t=6147
   - http://forums.runrev.com/phpBB2/viewtopic.php?f=20&t=5543

ldd revserver
>     linux-gate.so.1 =>  (0xe000)
>     libdl.so.2 => /lib32/libdl.so.2 (0xf76dd000)
>     libm.so.6 => /lib32/libm.so.6 (0xf76b9000)
>     libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf75cb000)
>     libpcre.so.0 => not found
>     libpng12.so.0 => /usr/lib32/libpng12.so.0 (0xf75a7000)
>     libjpeg.so.62 => /usr/lib32/libjpeg.so.62 (0xf7588000)
>     libcurl.so.4 => not found
>     libc.so.6 => /lib32/libc.so.6 (0xf7436000)
>     libz.so.1 => /usr/lib32/libz.so.1 (0xf7421000)
>     /lib/ld-linux.so.2 (0xf76f2000)
>     libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7413000)
>

Any suggestions - the more detailed the better so I can write this up for
the rest of us :)
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: OT: Is there any way for someone to see my MAC address over the internet?

2011-08-27 Thread Michael Kann
In a similar vein: http://www.modernizr.com/ 

The idea is to find out what the browser can do so you can tailor your webpage 
to match. It could probably be used to find unique voters as well.

Mike

--- On Fri, 8/26/11, Björnke von Gierke  wrote:

From: Björnke von Gierke 
Subject: Re: OT: Is there any way for someone to see my MAC address over the 
internet?
To: "How to use LiveCode" 
Date: Friday, August 26, 2011, 8:29 PM

Your friend is wrong (mostly). It's actually easy to identify browsers by data 
that is available free with each request:

cookies (or the information that cookies are blocked)
flash equivalent of cookies
html 5 local storage
IP (often regionally bound, and at least isp or IP owner can be known)
browser version
OS used
MAC address (at least up to your intranet router)
traceroute info
typical ping time / ping disabled
language settings
time zone

Java script also allow all kinds of information, for example:
types of browser plugins
parts of the history
screen size, window size
list of installed fonts 
other visited site

the list goes on and on


It is not trivial, but using and aggregating all available information, any 
site you visit can create a kind of fingerprint that uniquely identifies your 
computer out of millions. if the snooper would use an ad network, he can create 
targeted information, and aggregate several browsers/machines you use together.

See also here for more details: https://panopticlick.eff.org/
or the actual research paper: http://panopticlick.eff.org/browser-uniqueness.pdf

On 25 Aug 2011, at 23:27, Bob Sneidar wrote:

> I am chatting with a web guy that used to work for us. He is very talented. 
> He works for a company that did the recent Blizzard Cataclysm web site. He 
> says there is no way to do that from the internet without installing 
> something. 
> 
> Bob
> 
> 
> On Aug 25, 2011, at 1:41 PM, Michael D Mays wrote:
> 
>> Thanks to everyone for the information. I was at a users seminar for a 
>> company I am involved with which is using a web survey. The presenter said 
>> they had "proprietary technology" which could identify computers uniquely 
>> and insure that only one machine (because we all know everyone only has one 
>> connection to the web :)  participated in the survey. I am really very  
>> doubtful but if such were true I am very concerned.
>> 
>> Michael
>> ___
>> 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


-- 
Watch live presentations every Saturday:
http://livecode.tv

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
___
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: Any way to show progress while an ON-REV page is processing a script?

2011-08-06 Thread Michael Kann
Bruce,

It looks like the javascript librarians have produced a plethora of progress 
bars.

http://dev.sencha.com/deploy/ext-4.0.0/examples/simple-widgets/progress-bar.html

google:

js progress bar
jquery progress bar

Mike


--- On Sat, 8/6/11, Bruce Pokras  wrote:

From: Bruce Pokras 
Subject: Any way to show progress while an ON-REV page is processing a script?
To: "How to use LiveCode" 
Date: Saturday, August 6, 2011, 11:46 AM

I have a form that uses POST to get a list of patent numbers processed by a .lc 
or .irev page. Right now, the whole list has to be processed before the user 
sees that anything has happened. In my case, once all the patent numbers have 
been processed, the user will see a page of tables with information about each 
patent. In my revlet version of this process, it was easy to have a field 
display the progress of the processing with 1 of 20, 2 of 20, 3 of 20, etc. 
being displayed in a field as the processing of each patent took place. 

Is there any way to display a progress indicator while the .lc or .irev page is 
processing the patent numbers? I have tried a couple of things, such as having 
a separate "put" command for each patent, but nothing is displayed until all of 
the patents have been processed.

Regards,

Bruce Pokras
Blazing Dawn Software
___
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: Any way to show progress while an ON-REV page is processing a script?

2011-08-06 Thread Michael Kann
Bruce,

You could show them a few results and then have them click for more -- that is 
what google does. If you wanted to be fancy you could muster up some AJAX to go 
back and forth without having the user push any buttons.

Mike

--- On Sat, 8/6/11, Bruce Pokras  wrote:

From: Bruce Pokras 
Subject: Any way to show progress while an ON-REV page is processing a script?
To: "How to use LiveCode" 
Date: Saturday, August 6, 2011, 11:46 AM

I have a form that uses POST to get a list of patent numbers processed by a .lc 
or .irev page. Right now, the whole list has to be processed before the user 
sees that anything has happened. In my case, once all the patent numbers have 
been processed, the user will see a page of tables with information about each 
patent. In my revlet version of this process, it was easy to have a field 
display the progress of the processing with 1 of 20, 2 of 20, 3 of 20, etc. 
being displayed in a field as the processing of each patent took place. 

Is there any way to display a progress indicator while the .lc or .irev page is 
processing the patent numbers? I have tried a couple of things, such as having 
a separate "put" command for each patent, but nothing is displayed until all of 
the patents have been processed.

Regards,

Bruce Pokras
Blazing Dawn Software
___
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: Any way to show progress while an ON-REV page is processing a script?

2011-08-06 Thread Michael Kann
Bruce,

I'm working on something similar. When you write that you have a "list of 
patent numbers processed by a .lc or .irev page" do you mean that you are going 
out to fetch the patents each time, or will all the data be on your server? The 
reason I ask is if the data is on your server it might be better to attack the 
user delay in your code, rather than work on a progress bar.

For example, I'm presenting 993 titles of videos; all in a similar format, but 
the whole list is different each time. When I started out it took about 6 
seconds from button click to the list appearing. After setting up a poor man's 
index and retooling a few loops I've gotten the return trip down to about 50 
milliseconds -- good enough for government work.

Mike


--- On Sat, 8/6/11, Bruce Pokras  wrote:

From: Bruce Pokras 
Subject: Any way to show progress while an ON-REV page is processing a script?
To: "How to use LiveCode" 
Date: Saturday, August 6, 2011, 11:46 AM

I have a form that uses POST to get a list of patent numbers processed by a .lc 
or .irev page. Right now, the whole list has to be processed before the user 
sees that anything has happened. In my case, once all the patent numbers have 
been processed, the user will see a page of tables with information about each 
patent. In my revlet version of this process, it was easy to have a field 
display the progress of the processing with 1 of 20, 2 of 20, 3 of 20, etc. 
being displayed in a field as the processing of each patent took place. 

Is there any way to display a progress indicator while the .lc or .irev page is 
processing the patent numbers? I have tried a couple of things, such as having 
a separate "put" command for each patent, but nothing is displayed until all of 
the patents have been processed.

Regards,

Bruce Pokras
Blazing Dawn Software
___
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: [Server] create stack trouble

2011-08-05 Thread Michael Kann
Andrew,
I tested it with all the permissions on the file and the folder as their most 
lenient. It still didn't work. 
Mike

--- On Fri, 8/5/11, Andrew Kluthe  wrote:

From: Andrew Kluthe 
Subject: [Server] create stack trouble
To: use-livecode@lists.runrev.com
Date: Friday, August 5, 2011, 12:34 PM

Was just trying to test out some things on my on-rev account. This is a
simple little script to take a $_GET string, show me the defaultFolder, and
create a stack on disk named after that string.

No errors, but the stack isn't being created. I am using the new .lc
extension.




Insights?
___
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: What is the best/fastest way to extract strings of text?

2011-08-02 Thread Michael Kann



put numToChar(255) into m
set the itemDel to m  -- FORGOT THIS LINE
replace "<#B>" with m
replace "<#E>" with m
put zero into c
repeat for each item k in raw_input
   add 1 to c
   if c mod 2 is zero then
  put k & kr after h
   end if
end repeat
delete char -1 of h
put h into clean_output


--- On Tue, 8/2/11, Keith Clarke  wrote:

From: Keith Clarke 
Subject: Re: What is the best/fastest way to extract strings of text?
To: "How to use LiveCode" 
Date: Tuesday, August 2, 2011, 3:01 AM

The recipe I (learned here and) use with extracting specific HTML / XML 
elements is to get the specific target elements on their own line, remove the 
unwanted lines and then move the target string items in the remaining lines out 
into a separate variable - something like...

1. Get the target elements into their own line by prefixing the opening tag 
with return, using: replace "<#B>" with return & "<#B>" in theSource
2. Get the closing tag onto its own line by adding a return suffix, using: 
replace "<#E>" with "<#E>" & return in theSource
2. Remove the unwanted lines, (that lack the specific opening tag) using: 
filter theSource with "<#B>" 
3. Delimit the line into items at the '>' character, using: set the item 
delimiters to numtochar(62)
4. Iterate through the list to extract the string, using: 
    repeat for each line l in theSource
        put item 2 and return after theExtract
    end repeat
5. Clean-up the extract of any extra returns, using: filter theExtract without 
empty

If (my pre-coffee brain worked) theExtract should contain the tagged strings in 
theSource.

...hmmm, talking of coffee...
Best,
Keith..
  
On 2 Aug 2011, at 08:24, Keith (Gulf Breeze Ortho Lab) wrote:

> Hello,
> 
> I am still playing with LiveCode and am now exploring chunks...
> 
> My question is as follows. Suppose I have a variable with a lot of text. 
> Throughout the text I have various strings, separated by consistent tags, 
> that I need to extract.
> 
> For example, the following text is in the variable myVar:
> 
> The boy <#B>went to the store<#E>. He enjoyed his day out.
> 
> The woman loves <#B>shopping at the mall<#E>. So do I.
> 
> The girl loves <#E>eating at the restaurant<#E>. So does he.
> 
> I am looking for the most efficient way to extract each of the strings of 
> text between the <#B> and <#E> tags... I presume I will have to use a loop 
> and the matchChunk function? I have experimented but am having a problem 
> putting starting and ending positions into variables.
> 
> Is there a better way to accomplish the above?
> 
> Thanks!
> 
> - Boo
> ___
> 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: What is the best/fastest way to extract strings of text?

2011-08-02 Thread Michael Kann

put numToChar(255) into m
replace "<#B>" with m
replace "<#E>" with m
put zero into c
repeat for each item k in raw_input
   add 1 to c
   if c mod 2 is zero then
  put k & kr after h
   end if
end repeat
delete char -1 of h
put h into clean_output


--- On Tue, 8/2/11, Keith Clarke  wrote:

From: Keith Clarke 
Subject: Re: What is the best/fastest way to extract strings of text?
To: "How to use LiveCode" 
Date: Tuesday, August 2, 2011, 3:01 AM

The recipe I (learned here and) use with extracting specific HTML / XML 
elements is to get the specific target elements on their own line, remove the 
unwanted lines and then move the target string items in the remaining lines out 
into a separate variable - something like...

1. Get the target elements into their own line by prefixing the opening tag 
with return, using: replace "<#B>" with return & "<#B>" in theSource
2. Get the closing tag onto its own line by adding a return suffix, using: 
replace "<#E>" with "<#E>" & return in theSource
2. Remove the unwanted lines, (that lack the specific opening tag) using: 
filter theSource with "<#B>" 
3. Delimit the line into items at the '>' character, using: set the item 
delimiters to numtochar(62)
4. Iterate through the list to extract the string, using: 
    repeat for each line l in theSource
        put item 2 and return after theExtract
    end repeat
5. Clean-up the extract of any extra returns, using: filter theExtract without 
empty

If (my pre-coffee brain worked) theExtract should contain the tagged strings in 
theSource.

...hmmm, talking of coffee...
Best,
Keith..
  
On 2 Aug 2011, at 08:24, Keith (Gulf Breeze Ortho Lab) wrote:

> Hello,
> 
> I am still playing with LiveCode and am now exploring chunks...
> 
> My question is as follows. Suppose I have a variable with a lot of text. 
> Throughout the text I have various strings, separated by consistent tags, 
> that I need to extract.
> 
> For example, the following text is in the variable myVar:
> 
> The boy <#B>went to the store<#E>. He enjoyed his day out.
> 
> The woman loves <#B>shopping at the mall<#E>. So do I.
> 
> The girl loves <#E>eating at the restaurant<#E>. So does he.
> 
> I am looking for the most efficient way to extract each of the strings of 
> text between the <#B> and <#E> tags... I presume I will have to use a loop 
> and the matchChunk function? I have experimented but am having a problem 
> putting starting and ending positions into variables.
> 
> Is there a better way to accomplish the above?
> 
> Thanks!
> 
> - Boo
> ___
> 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: socket timeout on Windows 7

2011-08-01 Thread Michael Kann
Vista has Windows Defender. Perhaps Windows 7 does also and it is defending 
against something you want to do.

Mike

--- On Mon, 8/1/11, Nicolas Cueto  wrote:

From: Nicolas Cueto 
Subject: Re: socket timeout on Windows 7
To: "How to use LiveCode" 
Date: Monday, August 1, 2011, 8:25 PM

> Probably because it's 64 bit.

My install of Win7 is 32 bit.

--
Nicolas Cueto

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


www.ted.com/talks -- anyone watch them?

2011-08-01 Thread Michael Kann
I've put together a web page to make it easier to navigate the videos at 
www.ted.com/talks -- especially if your native language is not English. If 
anyone is interested I'll polish it up and let it loose.

Mike


___
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: How do I remove part of a path?

2011-08-01 Thread Michael Kann
Jim,
Now I get it. Good one-liner.
Mike

--- On Mon, 8/1/11, Jim Ault  wrote:

From: Jim Ault 
Subject: Re: How do I remove part of a path?
To: "How to use LiveCode" 
Date: Monday, August 1, 2011, 10:28 AM

 "itemToParse" is a variable name I created that contains the string, such as

"http://domain.com/subfolder/subfolder/page.html";

Sorry about the confusion.
Perhaps I should have used "tStringOfItemsToParse"



On Aug 1, 2011, at 8:09 AM, Michael Kann wrote:

> Jim,
> itemToParse must be a new gadget added after 4.0. I don't see it in my 
> dictionary. How does it know when to go back to the old itemDelimiter? Or do 
> you need a second line downstream?
> 

Jim Ault
Las Vegas



___
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: How do I remove part of a path?

2011-08-01 Thread Michael Kann
Jim,
itemToParse must be a new gadget added after 4.0. I don't see it in my 
dictionary. How does it know when to go back to the old itemDelimiter? Or do 
you need a second line downstream?

Learning from you guys all the time,
Mike

--- On Mon, 8/1/11, Jim Ault  wrote:

From: Jim Ault 
Subject: Re: How do I remove part of a path?
To: "How to use LiveCode" 
Date: Monday, August 1, 2011, 9:30 AM

If you are concered about the current itemDel setting 
then you could add one line (instead of 3) before the path operation

replace "/" with the itemDel in itemsToParse


> put the itemDel into old_delimiter
> set the itemDel to "/"
> -- gather some items
> set the itemDel to old_delimiter
>
> Mike

On Sun, Jul 31, 2011 at 7:51 PM, Michael Kann  wrote:

> Pete,
> One little improvement is needed:
> replace item 4 of  with empty in  is>
>
> When I change the itemDelimiter to something exotic I almost always forget
> to change it back then wonder why those items don't obey. If you are going
> to change the itemDelimiter you might try something like:
>
> put the itemDel into old_delimiter
> set the itemDel to "/"
> -- gather some items
> set the itemDel to old_delimiter
> Mike

> --- On Sun, 7/31/11, Pete  wrote:
>
> replace "/public.html" with empty in .  That's
> assuming
> it's always the same string you want to get rid of.  Alternatively:
> set the itemdelimiter to "/"
> replace item 4 of  with empty
> Pete>
>
> On Sun, Jul 31, 2011 at 6:58 PM, Admin  wrote:
> > Hello all,
> > Say I have the following path:
> >
> http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
> 
> > How do I get rid of just /public_html ?
___
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: How do I remove part of a path?

2011-07-31 Thread Michael Kann
Pete,

I checked to see if the itemDelimiter trick left behind a "/" and found that it 
does. 

http://www.travelandworkusa.com//userfiles/Felker_Mike/robot_trans_noshadow.png

-- notice the 2 forward slashes where there should be uno.

Mike


--- On Sun, 7/31/11, Pete  wrote:

From: Pete 
Subject: Re: How do I remove part of a path?
To: "How to use LiveCode" 
Date: Sunday, July 31, 2011, 9:36 PM

replace "/public.html" with empty in .  That's assuming
it's always the same string you want to get rid of.  Alternatively:

set the itemdelimiter to "/"
replace item 4 of  with empty

Pete
Molly's Revenge 




On Sun, Jul 31, 2011 at 6:58 PM, Admin  wrote:

>
>
> Hello all,
>
> Say I have the following path:
>
>
>
> http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
>
>
> How do I get rid of just /public_html ?
>
> Thanks.
>
> Mike
>
> ___
> 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: How do I remove part of a path?

2011-07-31 Thread Michael Kann
Pete,

One little improvement is needed:

replace item 4 of  with empty in 

When I change the itemDelimiter to something exotic I almost always forget to 
change it back then wonder why those items don't obey. If you are going to 
change the itemDelimiter you might try something like:

put the itemDel into old_delimiter
set the itemDel to "/"
-- gather some items
set the itemDel to old_delimiter

Mike


--- On Sun, 7/31/11, Pete  wrote:

From: Pete 
Subject: Re: How do I remove part of a path?
To: "How to use LiveCode" 
Date: Sunday, July 31, 2011, 9:36 PM

replace "/public.html" with empty in .  That's assuming
it's always the same string you want to get rid of.  Alternatively:

set the itemdelimiter to "/"
replace item 4 of  with empty

Pete
Molly's Revenge 




On Sun, Jul 31, 2011 at 6:58 PM, Admin  wrote:

>
>
> Hello all,
>
> Say I have the following path:
>
>
>
> http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
>
>
> How do I get rid of just /public_html ?
>
> Thanks.
>
> Mike
>
> ___
> 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: How do I remove part of a path?

2011-07-31 Thread Michael Kann
I'll take this one.

put" 
http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png";
 into k
replace "/public_html" with empty in k

-- put k back where you got it

Good luck. You might want to take a little break and come back refreshed.

Mike




--- On Sun, 7/31/11, Admin  wrote:

From: Admin 
Subject: Re: How do I remove part of a path?
To: "How to use LiveCode" 
Date: Sunday, July 31, 2011, 8:58 PM

  

Hello all, 

Say I have the following path:


http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png


How do I get rid of just /public_html ? 

Thanks. 

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


Blacklisted

2011-07-31 Thread Michael Kann
I sent an email request to supp...@runrev.com from my yahoo account and got the 
following failure notice:
-
Sorry, we were unable to deliver your message to the following address.

:
Remote host said: 550 5.7.1 Your IP 98.139.212.175 is blacklisted. Click 
delist.emailfiltering.com to delist [RCPT_TO]
-
Do you think this is legit or is it a scam to get you to click on the delist 
URL?
More importantly, did my email get through?
-
Here's the question I was going to ask. I've installed LiveCode 4.6.3 on both 
XP and Vista and can't get past the dialog box where it wants you to associate 
the file endings .rev and .livecode with the program. Anywhere I click when I 
get that dialog box makes the program disappear.

What I really want is to see the new dictionary so I can start playing around 
with the liveCode Server engine. Has anyone liberated the new dictionary so we 
can read it as a text file?

Any help is appreciated as always,

Mike


___
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


  1   2   >