Re: color picker in IOS

2012-01-10 Thread Monte Goulding
Hi Howard

I've written an external for iOS. It's a bonus when you buy mergZXing my iOS 
barcode reader external. See http://goulding.ws/merzxing

Cheers

Monte

On 11/01/2012, at 7:43 AM, Howard Bornstein wrote:

> How are people handling the need to present a color picker under IOS?
> AFAICT this option is not available through the IOS SDK.
> 
> -- 
> Regards,
> 
> Howard Bornstein
> ---
> www.designeq.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: MP3 Tag Editor

2012-01-10 Thread stephen barncard
Glad it worked out. I didn't check the stack I linked you to, I thought it
had specs on the stack, like libJson.


Who put Mark's ON-rev site back up? I thought it disappeared.Or is he
an on-rev pioneer with a forever plan?

yes I too was impressed with his strict adherence to specs in all his
stacks.

sqb

On 10 January 2012 20:06, Sivakatirswami  wrote:

> http://marksmith.on-rev.com/**revstuff/files/id3Lib.zip




-- 



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


[ANN] mergZXing - iOS Barcode Reader External

2012-01-10 Thread Monte Goulding
Hi All

Today I have released mergZXing my iOS Barcode Reader External for sale via my 
website http://goulding.ws/mergzxing for US$49.

The external will also be available on the LiveCode marketplace ASAP. 

mergZXing currently supports reading barcodes in these formats:

UPC-A and UPC-E
EAN-8 and EAN-13
Code 39
Code 128
QR Code
ITF
Data Matrix
As an added bonus I have also included mergAnswerColor which is a modal color 
picker external for iOS. 

--
Kind Regards,

Monte Goulding
M E R Goulding - Software Development Services
___
use-livecode mailing list
use-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: MP3 Tag Editor

2012-01-10 Thread Sivakatirswami

On Mon Jan 9 18:30:54 2012, stephen barncard wrote:


Swami,
yes, the late and recently mentioned Mark Smith made a well-documented
stack for that purpose. It's been tested by me and it also works on
Livecode server with no modifications.


http://revonline2.runrev.com/stack/80/id3lib-v1-0-2


Thanks Stephen!

see my little baby music site here;

dev.himalayanacademy.com/audio (revIgniter)

The Late Mark Smith? Hmm I missed his transition...
Hope he is well after stepping through The Big Door.
Or perhaps he will come back soon and be join the next generation of 
LiveCoders.


I got it... fantastic... and for those looking for documentation  I 
found this in the archives:


http://marksmith.on-rev.com/revstuff/files/

and the

id3Lib.zip  

contains documentation. I recall now I used his UUID functions years ago.

Looking at ID2.org  is an eye opener... some incredibly awesome options and it 
looks the Mark's
functions cover all frame options defined to date.

saving lyrics with the song could be a real plus.

Cheers

Sivakatirswami


___
use-livecode mailing list
use-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: MP3 Tag Editor

2012-01-10 Thread Web Admin Himalayan Academy

On Mon Jan  9 18:30:54 2012, stephen barncard wrote:

Swami,
yes, the late  and recently mentioned Mark Smith made a well-documented
stack for that purpose.   It's been tested by me and it also works on
Livecode server with no modifications.


http://revonline2.runrev.com/stack/80/id3lib-v1-0-2

The Late Mark Smith?  Hmm I missed his transition... Hope he is well 
after stepping through The Big Door.


futsoft.futilism.com/revolutionstuff.html  

is no longer available, i really don't see any documentation in the 
stack itself, though some careful study of the rather awesomely 
impressive list of functions might work... do you have the 
documentation? can you send it to me off line?


Sivakatirswami




___
use-livecode mailing list
use-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: standalone not quitting on Win7

2012-01-10 Thread Nicolas Cueto
Hi Mark,

> That script looks familiar :-)

Thought it might be yours. Knew it couldn't be mine -- somewhat over my head!

And you were right. Now, after I removed the database drivers from
Externals on my nonWin7 machine, the standalone won't close there
either. Will verify this on my Win7 once I get home from work.

Thanks!

P.S. "Akemashite omedeto gozaimasu. Kotoshi mo yoroshiku onegaishimasu!"

[The Japanese New Year's greeting, which must be stated the very first
moment one happens to re-meet in January someone not only whom,
because of their kindness or service in the previous year, one feels
happily grateful towards, but also whom, in the months or even years
to come, one realizes may again be obliged upon for help.]
--
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


Re: standalone not quitting on Win7

2012-01-10 Thread Mark Schonewille
Hi Nicolas,

That script looks familiar :-) Do you do any error checking in your standalone? 
If, for example, you're not including database drivers, revOpenDatabases() will 
cause an error and your app will not quit. You need to adjust your script a 
little by removing the irrelevant parts.

--
Best regards,

Mark Schonewille

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

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!

On 11 jan 2012, at 03:04, Nicolas Cueto wrote:

> Hello,
> 
> A standalone can quit on pre-Win7 but not on Win7.
> 
> Here's the relevant scripts for the card and the stack:
> 
> on closeStackRequest
>   lock messages
>   -- MySql
>   put revOpenDatabases() into myDatabases
>   repeat for each item myBase in myDatabases
>  revCloseDatabase myBase
>   end repeat
>   -- stop using stacks
>   put the stacksInUse into myStacks
>   repeat for each line myStack in myStacks
>  stop using stack myStack
>   end repeat
>   -- stacks
>   put the openStacks into myStacks
>   put "message box,home,tool,Message Box,revTools,revMenubar" & comma
> & the short name of me into myDontClose
>   repeat for each line myStack in myStacks
>  if myStack is not among the items of myDontClose then close stack myStack
>   end repeat
>   -- messages
>   put the pendingmessages into myMsgs
>   repeat for each line myMsg in myMsgs
>  cancel item 1 of myMsg
>   end repeat
>   set the backdrop to none
>   unlock messages
>   if the environment is not "development" then
>  pass closeStackRequest
>   end if
> end closeStackRequest
> 
> on closeStack
>   quit
> end closeStack
> 
> 
> Any ideas?   Thanks.
> 
> --
> 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


standalone not quitting on Win7

2012-01-10 Thread Nicolas Cueto
Hello,

A standalone can quit on pre-Win7 but not on Win7.

Here's the relevant scripts for the card and the stack:

on closeStackRequest
   lock messages
   -- MySql
   put revOpenDatabases() into myDatabases
   repeat for each item myBase in myDatabases
  revCloseDatabase myBase
   end repeat
   -- stop using stacks
   put the stacksInUse into myStacks
   repeat for each line myStack in myStacks
  stop using stack myStack
   end repeat
   -- stacks
   put the openStacks into myStacks
   put "message box,home,tool,Message Box,revTools,revMenubar" & comma
& the short name of me into myDontClose
   repeat for each line myStack in myStacks
  if myStack is not among the items of myDontClose then close stack myStack
   end repeat
   -- messages
   put the pendingmessages into myMsgs
   repeat for each line myMsg in myMsgs
  cancel item 1 of myMsg
   end repeat
   set the backdrop to none
   unlock messages
   if the environment is not "development" then
  pass closeStackRequest
   end if
end closeStackRequest

on closeStack
   quit
end closeStack


Any ideas?   Thanks.

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


Re: OS X Lion

2012-01-10 Thread Kay C Lan
On Wed, Jan 11, 2012 at 3:43 AM, Pete  wrote:

> Pre-Lion, I would just click on the icon for my Home directory, then
> navigate to Library/Preferences in the Finder.  In Lion, I could not find a
> home directory icon to click on, nor could I find an icon representing the
> computer's hard drive, either on the desktop or in any Finder windows that
> I could see.
>
> To get the Home directory and/or the Hard Drive to appear in the sidebar
of the Finder window simply open the Finder's Preferences (not the System
Preferences) and select your Home folder and Hard Drive - I guess Apple now
thinks because people don't see these on the iPhone they don't want to see
them on their desktop.

Bizarrely, once you've got your HD in the sidebar you can navigate to your
/Library folder and /System/Library folder but Apple still keeps the
~/Library folder hidden.

To permanently reveal the ~/Library folder, in Terminal:

chflags nohidden ~/Library

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


Stack to read offline the LiveCode Forum

2012-01-10 Thread Mark Stuart
Alejandro wrote:
>>
Does exists a LiveCode stack to read offline
all the LiveCode forum postings?
<<

Alejandro, if you go to this link, I mentioned that I had an application
that reads the mail list.
Currently, it doesn't have the offline feature, but if folk are
interested in that, I would add it.

http://lists.runrev.com/pipermail/use-livecode/2011-September/162079.htm
l

If you can't download the application, let me know and I'll email it
directly to you.

Regards,
Mark Stuart

___
use-livecode mailing list
use-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: Lunching an LiveCode iOS app from another app

2012-01-10 Thread Todd Geist
Thanks Ken,

On Tue, Jan 10, 2012 at 12:59 PM, Ken Ray  wrote:

>
> On Jan 10, 2012, at 10:02 AM, Todd Geist wrote:
>
> > Hello,
> >
> > I need a way to Launch a LiveCode app on IOS from another app.  This is
> > often done with a custom URL scheme.  Is there a way to get a Live Code
> app
> > to use a custom url scheme?
>
> There is on the desktop, but I don't know about iOS… on the desktop you'd
> add a custom URL protocol to the info.plist file of the standalone by
> adding this inside the first  tag (I'm using a fictitious "MyApp"
> application here):
>
>CFBundleURLTypes
>
>
>CFBundleURLName
>MyApp URL
>CFBundleURLSchemes
>
>myapp
>
>LSIsAppleDefaultForScheme
>
>
>
>
> This would cause the MyApp application to launch whenever the url
> "myapp://" was executed. Not sure if this works on iOS, but perhaps you
> could try it?
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: k...@sonsothunder.com
> Web Site: http://www.sonsothunder.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
>



-- 
Todd Geist


(805) 419-9382
___
use-livecode mailing list
use-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: OS X Lion

2012-01-10 Thread Pete
Thanks Mark and Marty!
Pete

On Tue, Jan 10, 2012 at 11:54 AM, Mark Schonewille <
m.schonewi...@economy-x-talk.com> wrote:

> Pete,
>
> Press shift-command-G and enter /Library/Preferences or
> ~/Library/Preferences, press enter and you'll see the preferences folder.
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> Become our partner in sales http://qery.us/1bq Start selling Color
> Converter today. 20% commission!
>
> On 10 jan 2012, at 20:43, Pete wrote:
>
> > A while back there was a discussion on the changes in access privileges
> to
> > some directories in Lion, I believe mainly to do the system Library
> > directory.
> >
> > Yesterday, I went through the process of installing an LC app on Lion for
> > the first time, and also experiencing Lion for the first time.  I don't
> > need to access the system Library directory but I do need to put a
> > Preferences file in the user's Library/Preferences folder which I assume
> is
> > still the place for preferences files to go.
> >
> > Pre-Lion, I would just click on the icon for my Home directory, then
> > navigate to Library/Preferences in the Finder.  In Lion, I could not
> find a
> > home directory icon to click on, nor could I find an icon representing
> the
> > computer's hard drive, either on the desktop or in any Finder windows
> that
> > I could see.
> >
> > I should say I do not have a real installation process for this app, it's
> > something I put together quickly for a friend, so I was simply copying
> > files from a CD to his computer.  We didn't have much time to do the
> > install so I wasn't able to poke around Lion to see if there is a way
> for a
> > user (a System Admin user of course) to get to the Library/Preferences
> > folder.
> >
> > Hopefully someone can give me some guidance on this.  I'm also left to
> > wonder if my application will be able to access the preferences file even
> > if I manage to put it into /Library/Preferences.
> >
> > Thanks,
> >
> > --
> > 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
>
>


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


Re: Lunching an LiveCode iOS app from another app

2012-01-10 Thread Ken Ray

On Jan 10, 2012, at 10:02 AM, Todd Geist wrote:

> Hello,
> 
> I need a way to Launch a LiveCode app on IOS from another app.  This is
> often done with a custom URL scheme.  Is there a way to get a Live Code app
> to use a custom url scheme?

There is on the desktop, but I don't know about iOS… on the desktop you'd add a 
custom URL protocol to the info.plist file of the standalone by adding this 
inside the first  tag (I'm using a fictitious "MyApp" application here):

CFBundleURLTypes


CFBundleURLName
MyApp URL
CFBundleURLSchemes

myapp

LSIsAppleDefaultForScheme




This would cause the MyApp application to launch whenever the url "myapp://" 
was executed. Not sure if this works on iOS, but perhaps you could try it?

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.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


color picker in IOS

2012-01-10 Thread Howard Bornstein
How are people handling the need to present a color picker under IOS?
AFAICT this option is not available through the IOS SDK.

-- 
Regards,

Howard Bornstein
---
www.designeq.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: Find nearest color in an RGB list

2012-01-10 Thread Michael Doub
This works like a charm!   

Thanks,
   Mike



On 2012-01-10, at 3:03 PM, Nonsanity wrote:

> Both look like good suggestions for getting the closest color a human would
> think is a "match", but both involve converting Livecode's native RGB to
> another format. I may be wrong, but I don't think those conversions are
> available built-in. I'm sure functions have been written to do this many
> times, but it's not trivial to do from scratch. If you can get one, then
> the following code will still work - It'll just work better. (Replace the
> r, g, b variable names with the appropriate letters for clarity.)
> 
> Depending on your use case, you may not need to be that human-accurate, in
> which case you can do the same calculation in RGB space. The square root
> calculation in your two solutions is a way to get the distance between any
> two points in three dimensional space. All three color formats have three
> values, so they can all be pictured as a cube of space with colors as
> points within that space. Your starting color is in there too, and you just
> have to check the distance from it to all the other color points, and
> return the shortest.
> 
> I'm typing this in a mail program, so it is untested...
> 
> function Distance3D( x1, y1, z1, x2, y2, z2 )
>return sqrt( (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) + (z1-z2)*(z1-z2) )
> end Distance3D
> 
> function GetClosestColor( r, g, b )
>put 9 into ClosestDist
>put r &"," g &","& b into ClosestColor
>repeat for each line c of gColorList
>get Distance3D( r, g, b, item 1 of c, item 2 of c, item 3 of c )
>if it < ClosestDist then
>put it into ClosestDist
>put c into ClosestColor
>end if
>end repeat
>return ClosestColor
> end GetClosestColor
> 
> 
> You'd have your colors in gColorList like this:
>32,32,128
>255,255,255
>0,0,0
>128,128,256
>(etc)
> 
> 
> ~ Chris Innanen
> ~ Nonsanity
> 
> 
> 
> On Tue, Jan 10, 2012 at 1:13 PM, Michael Doub  wrote:
> 
>> I have a list of RGB colors that represent different color samples.   I
>> need to create a function that will return the closest perceived RGB entry
>> in the list when supplied a single RGB value.  Is anyone aware of a library
>> or some sample code that would help with this task?
>> 
>> From searching I found the follow two suggestions for solving this
>> problem.  Neither are not intuitively obvious to the casual
>> observer...namely me. ;-)
>> 
>> 
>> 1) "Convert RGB to  CIE Lab color space, then compute the distance in that
>> space ( deltaE = sqrt(deltaL^2 + deltaA^2 + deltaB^2).  Colors with the
>> lowest deltaE are the most perceptually similar to each other."
>> 
>> 2) "Convert to RGB to HSL and consider an HSL color value a vector and
>> define a weighted modulus function for the vector like this:
>> modulus = sqrt(a*H1*H1 + b*S1*S1 + c*L1*L1);  where a,b,c are weights you
>> should decide based on your visual definition of what creates a bigger
>> difference in perceived color - a 1% change in Hue or a 1% change in
>> Saturation.  I would suggest you use a = b = 0.5 and c = 1 Finally, find
>> out the range your modulus would take and define similar colors to be those
>> which have their moduli very close to each other (say 5%)"
>> 
>> Regards,
>>  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: Find nearest color in an RGB list

2012-01-10 Thread Nonsanity
Both look like good suggestions for getting the closest color a human would
think is a "match", but both involve converting Livecode's native RGB to
another format. I may be wrong, but I don't think those conversions are
available built-in. I'm sure functions have been written to do this many
times, but it's not trivial to do from scratch. If you can get one, then
the following code will still work - It'll just work better. (Replace the
r, g, b variable names with the appropriate letters for clarity.)

Depending on your use case, you may not need to be that human-accurate, in
which case you can do the same calculation in RGB space. The square root
calculation in your two solutions is a way to get the distance between any
two points in three dimensional space. All three color formats have three
values, so they can all be pictured as a cube of space with colors as
points within that space. Your starting color is in there too, and you just
have to check the distance from it to all the other color points, and
return the shortest.

I'm typing this in a mail program, so it is untested...

function Distance3D( x1, y1, z1, x2, y2, z2 )
return sqrt( (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) + (z1-z2)*(z1-z2) )
end Distance3D

function GetClosestColor( r, g, b )
put 9 into ClosestDist
put r &"," g &","& b into ClosestColor
repeat for each line c of gColorList
get Distance3D( r, g, b, item 1 of c, item 2 of c, item 3 of c )
if it < ClosestDist then
put it into ClosestDist
put c into ClosestColor
end if
end repeat
return ClosestColor
end GetClosestColor


You'd have your colors in gColorList like this:
32,32,128
255,255,255
0,0,0
128,128,256
(etc)


 ~ Chris Innanen
 ~ Nonsanity



On Tue, Jan 10, 2012 at 1:13 PM, Michael Doub  wrote:

> I have a list of RGB colors that represent different color samples.   I
> need to create a function that will return the closest perceived RGB entry
> in the list when supplied a single RGB value.  Is anyone aware of a library
> or some sample code that would help with this task?
>
> From searching I found the follow two suggestions for solving this
> problem.  Neither are not intuitively obvious to the casual
> observer...namely me. ;-)
>
>
> 1) "Convert RGB to  CIE Lab color space, then compute the distance in that
> space ( deltaE = sqrt(deltaL^2 + deltaA^2 + deltaB^2).  Colors with the
> lowest deltaE are the most perceptually similar to each other."
>
> 2) "Convert to RGB to HSL and consider an HSL color value a vector and
> define a weighted modulus function for the vector like this:
> modulus = sqrt(a*H1*H1 + b*S1*S1 + c*L1*L1);  where a,b,c are weights you
> should decide based on your visual definition of what creates a bigger
> difference in perceived color - a 1% change in Hue or a 1% change in
> Saturation.  I would suggest you use a = b = 0.5 and c = 1 Finally, find
> out the range your modulus would take and define similar colors to be those
> which have their moduli very close to each other (say 5%)"
>
> Regards,
>   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


Re: OS X Lion

2012-01-10 Thread Mark Schonewille
Pete,

Press shift-command-G and enter /Library/Preferences or ~/Library/Preferences, 
press enter and you'll see the preferences folder.

--
Best regards,

Mark Schonewille

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

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!

On 10 jan 2012, at 20:43, Pete wrote:

> A while back there was a discussion on the changes in access privileges to
> some directories in Lion, I believe mainly to do the system Library
> directory.
> 
> Yesterday, I went through the process of installing an LC app on Lion for
> the first time, and also experiencing Lion for the first time.  I don't
> need to access the system Library directory but I do need to put a
> Preferences file in the user's Library/Preferences folder which I assume is
> still the place for preferences files to go.
> 
> Pre-Lion, I would just click on the icon for my Home directory, then
> navigate to Library/Preferences in the Finder.  In Lion, I could not find a
> home directory icon to click on, nor could I find an icon representing the
> computer's hard drive, either on the desktop or in any Finder windows that
> I could see.
> 
> I should say I do not have a real installation process for this app, it's
> something I put together quickly for a friend, so I was simply copying
> files from a CD to his computer.  We didn't have much time to do the
> install so I wasn't able to poke around Lion to see if there is a way for a
> user (a System Admin user of course) to get to the Library/Preferences
> folder.
> 
> Hopefully someone can give me some guidance on this.  I'm also left to
> wonder if my application will be able to access the preferences file even
> if I manage to put it into /Library/Preferences.
> 
> Thanks,
> 
> -- 
> 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


Re: OS X Lion

2012-01-10 Thread Marty Knapp
Pete -  Use the "Go" menu in the Finder, while holding down the option 
key - that makes it show in the menu.


Marty

A while back there was a discussion on the changes in access privileges to
some directories in Lion, I believe mainly to do the system Library
directory.

Yesterday, I went through the process of installing an LC app on Lion for
the first time, and also experiencing Lion for the first time.  I don't
need to access the system Library directory but I do need to put a
Preferences file in the user's Library/Preferences folder which I assume is
still the place for preferences files to go.

Pre-Lion, I would just click on the icon for my Home directory, then
navigate to Library/Preferences in the Finder.  In Lion, I could not find a
home directory icon to click on, nor could I find an icon representing the
computer's hard drive, either on the desktop or in any Finder windows that
I could see.

I should say I do not have a real installation process for this app, it's
something I put together quickly for a friend, so I was simply copying
files from a CD to his computer.  We didn't have much time to do the
install so I wasn't able to poke around Lion to see if there is a way for a
user (a System Admin user of course) to get to the Library/Preferences
folder.

Hopefully someone can give me some guidance on this.  I'm also left to
wonder if my application will be able to access the preferences file even
if I manage to put it into /Library/Preferences.

Thanks,




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


OS X Lion

2012-01-10 Thread Pete
A while back there was a discussion on the changes in access privileges to
some directories in Lion, I believe mainly to do the system Library
directory.

Yesterday, I went through the process of installing an LC app on Lion for
the first time, and also experiencing Lion for the first time.  I don't
need to access the system Library directory but I do need to put a
Preferences file in the user's Library/Preferences folder which I assume is
still the place for preferences files to go.

Pre-Lion, I would just click on the icon for my Home directory, then
navigate to Library/Preferences in the Finder.  In Lion, I could not find a
home directory icon to click on, nor could I find an icon representing the
computer's hard drive, either on the desktop or in any Finder windows that
I could see.

I should say I do not have a real installation process for this app, it's
something I put together quickly for a friend, so I was simply copying
files from a CD to his computer.  We didn't have much time to do the
install so I wasn't able to poke around Lion to see if there is a way for a
user (a System Admin user of course) to get to the Library/Preferences
folder.

Hopefully someone can give me some guidance on this.  I'm also left to
wonder if my application will be able to access the preferences file even
if I manage to put it into /Library/Preferences.

Thanks,

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


Re: Sorting Advice

2012-01-10 Thread Pete
Hi Marty,
I'm not too familiar with the sort command but it sounds like you could use
the each keyword and write a custom function to return the concatenated
values of items 1 and 2 (zero padding item 2 so you could sort works on
text), thus sorting in 1 pass.   I have no idea whether it would be any
quicker than two passes.
Pete

On Tue, Jan 10, 2012 at 9:10 AM, Marty Knapp  wrote:

> OK, so I'm good. Just though I might be missing something. Thanks Stephen.
>
> Marty
>
>> I think one has to make multiple passes - the doc say for "sort
>> container":
>>
>> *The sort container command is a stable sort. This means that if the
>> sortKey for two items or lines is the same, sorting does not change their
>> order, so you can do two successive sorts to create subcategories within
>> the major sort categories.*
>> *
>> *
>> * Tip: To create a custom sort order, use the eachkeyword to pass each
>> line
>> or item to a custom function. The valuereturned by the function is used as
>> the sort key for that line or item. Note that it is not currently possible
>> to debug custom sort functions, and doing so could make the IDE unstable.
>> It is recommended to use logging messages instead.*
>>
>>
>> On 9 January 2012 20:33, Marty Knapp  wrote:
>>
>>  I have a list that I'm currently sorting as follows:
>>>
>>> --item 2 may be a word or a number
>>> --item 1 is a date
>>>
>>> sort the lines of myList by item 2 of each --sort any words
>>> alphabetically
>>> sort the lines of myList numeric by item 2 of each --sort the numbers
>>> (any
>>> words go to the top of the list in the order provided in the first step)
>>> sort the lines of myList dateTime by item 1 of each --sort by date
>>>
>>> While this gives me what I need, is there a faster way to do this?
>>>
>>> Thanks,
>>> Marty
>>>
>>
> __**_
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode
>
>


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


Find nearest color in an RGB list

2012-01-10 Thread Michael Doub
I have a list of RGB colors that represent different color samples.   I need to 
create a function that will return the closest perceived RGB entry in the list 
when supplied a single RGB value.  Is anyone aware of a library or some sample 
code that would help with this task?

>From searching I found the follow two suggestions for solving this problem.  
>Neither are not intuitively obvious to the casual observer...namely me. ;-)


1) "Convert RGB to  CIE Lab color space, then compute the distance in that 
space ( deltaE = sqrt(deltaL^2 + deltaA^2 + deltaB^2).  Colors with the lowest 
deltaE are the most perceptually similar to each other."

2) "Convert to RGB to HSL and consider an HSL color value a vector and define a 
weighted modulus function for the vector like this:
modulus = sqrt(a*H1*H1 + b*S1*S1 + c*L1*L1);  where a,b,c are weights you 
should decide based on your visual definition of what creates a bigger 
difference in perceived color - a 1% change in Hue or a 1% change in 
Saturation.  I would suggest you use a = b = 0.5 and c = 1 Finally, find out 
the range your modulus would take and define similar colors to be those which 
have their moduli very close to each other (say 5%)"

Regards,
   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: Rev Online--User samples broken?

2012-01-10 Thread J. Landman Gay

On 1/10/12 11:10 AM, Jim Hurley wrote:

Is Rev Online broken? It doesn't seem to be accepting user contributions.

Also, the Browse feature recognizes ".rev" but not ".livecode"


I've been effectively locked out for quite a while now. It won't even 
recognize my password any more, and resetting it didn't work. I have a 
bug report, which has been confirmed, but it doesn't specifically 
address user contributions.


Anyone else having issues may want to add comments:


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

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


Re: Rev Online--User samples broken?

2012-01-10 Thread Devin Asay
I can confirm that Rev Online is down here, too. So are the user comments in 
the Dictionary in the IDE. IIRC they are on the same server. I've sent a note 
to support asking about it.

Devin


On Jan 10, 2012, at 10:16 AM, René Micout wrote:

> Hello,
> I writed that 9th december 2011 and the response :
> 
> "
> Dear René Micout,
> Thank you for writing to the help desk for LiveCode.
> This is an autoresponse. Your message has been received and assigned a ticket 
> number. 
> You should normally expect a response within 2 working days. During 
> exceptionally busy periods it may take a little longer.
> In the meantime, you might want to check the LiveCode Lessons area in case 
> your issue is addressed there:
> http://lessons.runrev.com
> Please do not reply to this email.
> Warm Regards
> The RunRev Robot
> 
> You wrote:
> 
>> Good evening,
>> I have some difficulties to upload a stack on RevOnline...
>> Can you look if there is some problem with it ?
>> Thank you
>> René MicoutEmail has been scanned for viruses by Altman Technologies' email 
>> management
>> service - www.altman.co.uk/emailsystems
> "
> 
> Nothing for now > [Ticket#2011120810003644] 
> 
> Le 10 janv. 2012 à 18:10, Jim Hurley a écrit :
> 
>> Is Rev Online broken? It doesn't seem to be accepting user contributions.
>> 
>> Also, the Browse feature recognizes ".rev" but not ".livecode" 

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




___
use-livecode mailing list
use-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: Rev Online--User samples broken?

2012-01-10 Thread René Micout
Hello,
I writed that 9th december 2011 and the response :

"
Dear René Micout,
Thank you for writing to the help desk for LiveCode.
This is an autoresponse. Your message has been received and assigned a ticket 
number. 
You should normally expect a response within 2 working days. During 
exceptionally busy periods it may take a little longer.
In the meantime, you might want to check the LiveCode Lessons area in case your 
issue is addressed there:
http://lessons.runrev.com
Please do not reply to this email.
Warm Regards
The RunRev Robot

You wrote:

> Good evening,
> I have some difficulties to upload a stack on RevOnline...
> Can you look if there is some problem with it ?
> Thank you
> René MicoutEmail has been scanned for viruses by Altman Technologies' email 
> management
> service - www.altman.co.uk/emailsystems
"

Nothing for now > [Ticket#2011120810003644] 

Le 10 janv. 2012 à 18:10, Jim Hurley a écrit :

> Is Rev Online broken? It doesn't seem to be accepting user contributions.
> 
> Also, the Browse feature recognizes ".rev" but not ".livecode" 
> 
> Jim Hurley 
> 
> ___
> use-livecode mailing list
> use-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


Rev Online--User samples broken?

2012-01-10 Thread Jim Hurley
Is Rev Online broken? It doesn't seem to be accepting user contributions.

Also, the Browse feature recognizes ".rev" but not ".livecode" 

Jim Hurley 

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

2012-01-10 Thread Marty Knapp

OK, so I'm good. Just though I might be missing something. Thanks Stephen.

Marty

I think one has to make multiple passes - the doc say for "sort container":

*The sort container command is a stable sort. This means that if the
sortKey for two items or lines is the same, sorting does not change their
order, so you can do two successive sorts to create subcategories within
the major sort categories.*
*
*
* Tip: To create a custom sort order, use the eachkeyword to pass each line
or item to a custom function. The valuereturned by the function is used as
the sort key for that line or item. Note that it is not currently possible
to debug custom sort functions, and doing so could make the IDE unstable.
It is recommended to use logging messages instead.*


On 9 January 2012 20:33, Marty Knapp  wrote:


I have a list that I'm currently sorting as follows:

--item 2 may be a word or a number
--item 1 is a date

sort the lines of myList by item 2 of each --sort any words alphabetically
sort the lines of myList numeric by item 2 of each --sort the numbers (any
words go to the top of the list in the order provided in the first step)
sort the lines of myList dateTime by item 1 of each --sort by date

While this gives me what I need, is there a faster way to do this?

Thanks,
Marty


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


Re: [Bug 9604] Various issues regarding compatibility between LC system date formats and OS X date preferences

2012-01-10 Thread Pete
Thanks Ken.  I responded to Michael on the qcc but probably not strongly
enough.  I didn't know a bug could be re-opned but I will do so.
Pete

On Mon, Jan 9, 2012 at 11:13 PM, Ken Ray  wrote:

>
> On Jan 5, 2012, at 2:41 PM, Pete wrote:
>
> > There was a discussion recently on preventing SQL injections in LC.
>  Here's
> > an email I got from the support center on a bug/enhancement concerning
> this.
>
> I've responded to this, Pete… Michael's comment is a bit misguided since
> the documentation even states that the format of the system date is based
> on the Date/Time control panel…
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: k...@sonsothunder.com
> Web Site: http://www.sonsothunder.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
>
>


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


Re: LC database locking commands

2012-01-10 Thread Bob Sneidar
I think you send it as a query. Odd that it is missing though...

Bob


On Jan 9, 2012, at 6:17 PM, Pete wrote:

> I see a revDatabaseCommit and a revDatabaseRollback command for databases
> but I don't see one that issues a BEGIN command.  Not a big deal since I
> can issue one with revExecuteSQL but am I missing something or does LC not
> provide such a command?
> 
> -- 
> 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


Lunching an LiveCode iOS app from another app

2012-01-10 Thread Todd Geist
Hello,

I need a way to Launch a LiveCode app on IOS from another app.  This is
often done with a custom URL scheme.  Is there a way to get a Live Code app
to use a custom url scheme?

Thanks

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