Re: Important Message

2013-04-07 Thread Ken Corey

Who's got a virus today?

*smile*

-Ken

On 07/04/2013 16:47, stgoldb...@aol.com wrote:


Please view the document iuploaded for you using Google docs.

Click herejust sign in with your email to view the document its very important.

Thank you.

___
use-livecode mailing list
use-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] EULA and legality

2012-09-09 Thread Ken Corey
We all know companies make the T's & C's to suit themselves as much as 
possible, giving as little as possible while gaining as much as possible.


I feel that EULAs, copyright and patent laws have gone well beyond too 
far. They have gone so far that corporations are far more important than 
people, than facts, than truth (not capitalised).  Their lawyers rewrite 
history, twist laws, and jeopardise markets.


They are morally indefensible in this day where we must use technology 
to get things done.


Personally, I don't pay too awful much attention to EULAs. I prefer 
common sense. Personal use, don't destroy other's businesses.  I do wish 
others felt the same way.


The thing that worries me the most here is that when every new medium 
came along (printed sheet music, player pianos, radio, TV, cassette 
tapes, fax machines, telephones, computers, internet) the entrenched 
media moguls have railed against the tech, and tried to protect their world.


Every time before this, they've been utterly defeated by reality and 
common sense.


This time, I'm afraid they're winning.  Closed shops, licensed software, 
UEFI limited hardware, hardware you can't open, copyright extended 
beyond all reason, IP used as a weapon of business.


Pretty soon we'll all have to pay Apple royalty for breathing iAir.

Feh.

I think the only thing keeping the corporates honest is Linux in all its 
forms.  Without Linux, there'd be no Android and Apple would well and 
truly own the tech world. *shiver*


Once Linux is killed off, I'm going to start growing turnips.

-Ken

On 07/09/2012 19:55, Richmond wrote:

I am asking this question for a number of reasons:

1. If I buy a book I can, if I want, use it for lighting a fire,
throwing at the cat, and so on. As the book
 is my property I can do what I like with it. The intellectual
property contained within the book is,
 generally, restricted by copyright saying whether I can copy bits
of it, resell it, lend it to friends,
 lend it while charging a fee for its use, and so on. However, the
copyright restrictions do not tell me
 where I can read the book (in the bath?) or how (standing on my
head?).

2. I am running Mac Snow Leopard in VMplayer on Non-Apple hardware.

Before I continue, I should point out that as I own a physical install
disk for Mac OS Snow Leopard
I don't feel MORALLY wrong running the software it contains in VMplayer.
I am running software I own
in one instance and do not feel that because I bought Ferrari hubcaps
for my Lada I should be forced
to buy a Ferrari.

3. Other people on the Use-List must face similar questions.

4. I really wonder if this belongs in the same category as the previous
set of postings about
 software piracy - I don't feel it does.

A. How legally binding is a EULA?

B. I have connected to Apple via software upgrade, so, one assumes, they
are well aware that at
 least one person "out there" is violating the EULA.

C. Anybody can purchase software online or in a shop without background
checks to see whether
 one has the necessary hardware to keep to the EULA.

Of course this can extend to Livecode, and all the products we folk are
doing our best to produce
with it.

There are also some 'funny' rumours flying about that Microsoft are
doing some deals with PC makers that will lock the machines in some way
so that they will only function with Microsoft Operating Systems, rather
than Linux, UNIX, Haiku and so on.

Richmond.




___
use-livecode mailing list
use-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: pirate version of my book...

2012-09-04 Thread Ken Corey
Oh dear!  I guess I haven't read enough of the book.  Is that one of the 
instructions?


I *knew* Colin was a closet Mac-lover.

*grin*

-Ken

On 01/09/2012 02:14, Shawn Blc wrote:

I bought the PDF version, read it on my pc, uploaded it to my dropbox and
now have it on my Mac!  I shot my pc with my .45. ;)


___
use-livecode mailing list
use-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: pirate version of my book

2012-09-03 Thread Ken Corey

You're right.

My favourite way to feel victimised is for evil, cruel, hard people to 
throw wads of money at me.


Doesn't happen often enough, frankly.

*grin*

-Ken

On 03/09/2012 22:19, Andrew Kluthe wrote:

With a little hard work, anyone can make themselves feel victimized
and alienated by anything.


___
use-livecode mailing list
use-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: pirate version of my book

2012-09-03 Thread Ken Corey

On 03/09/2012 21:52, Andrew Kluthe wrote:

discovers the pure gift. The growing passion for stealing books,
clothes, food, weapons or jewelry simply for the pleasure of giving
them away gives us a glimpse of what the will to live has in store for
consumer society.


Right!

Uh...

Unless human nature triumphs over plenty, it all goes to pot, and those 
of us not taking for the sake of taking turn into numberless victims.


Jus' sayin'.

-Ken

___
use-livecode mailing list
use-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: pirate version of my book...

2012-09-02 Thread Ken Corey

I have always had an inkling that the best way to beat piracy is
1) to give users a reason to keep contacting you (regularly upgraded 
content/capabilities).

2) making it /easy/, even automatic in your app, to contact you.

Both of which Runrev has gotten fairly right, at least for those of us 
on the dev track.


I wonder if that's why you didn't find bootleg copies out there?

Either that or Kevin's got a crack-shot solicitor in his pocket.

-Ken

On 02/09/2012 22:17, Peter Alcibiades wrote:

But do you think that there could be a case for a package of Colin's book
with something like a Media for Android?  Limited, but functional, and a
real introduction?  Because I found with relief that there seem to be no
bootleg copies of Rev out there, at least not yet.


___
use-livecode mailing list
use-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: pirate version of my book...

2012-09-02 Thread Ken Corey
Real numbers will be hard to come by obviously, but androidpit seems to 
claim that they provide for those in eastern europe and russia (and 
maybe down into the far east for all I know), as they claim to have set 
up deals with merchant providers in those countries.


Android pit seem to be working all the angles.  You must deposit money 
with them (in multiples of $5, I think), and purchase out of those 
funds...so there's a tidy profit in the tied-up funds sitting in their 
account.


Incidentally, the app we released was on sale for $199.99, the max the 
Google play store will accept in the US. On AndroidPit it was available 
for $239.99.  As if they needed even /more/ markup!?!


Then, you must install an androidpit installer app, setting your device 
to allow apps from unknown sources.


So, it's illegal there, and it's /easier/ and *cheaper* on Google Play.

I guess that I'm saying they probably aren't taking a huge bite out of 
most people's earnings.


Gads, I *hope* people aren't stupid enough to buy from them, at least in 
the markets Google Play inhabits.


-Ken

___
use-livecode mailing list
use-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: pirate version of my book...

2012-09-01 Thread Ken Corey

Yep.

Two days after releasing my app on the Google Play store, it showed up 
on adroidpit.com for sale.  Of course, at 130% of the cost on the 
android store...and without any chance of us making any money off it.


If I didn't love making software, I wouldn't be doing it (I'd likely be 
stealing from all you good folks...:^)


I'm going to write a very sternly worded letter to my parents about 
instilling a sense of justice, misguided though it may be.


-Ken

___
use-livecode mailing list
use-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: pirate version of my book...

2012-08-31 Thread Ken Corey

This will probably not cheer you up; but I found
versions of the FREE version of my Devawriter available on torrent sites.


Oh man!  I *hate* that.

According to RIAA accounting, you're out *millions*...maybe even >billions<.

-Ken

___
use-livecode mailing list
use-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: LibURL vs. cURL

2012-08-23 Thread Ken Corey
Just to be pedantic you can have libURL on /desktop/ OSes.  A 
significant restriction, for some of us.


liburl is not open source, so we cannot do any of the porting...

It's possible to port libcurl to android:
http://thesoftwarerogue.blogspot.co.uk/2010/05/porting-of-libcurl-to-android-os-using.html

And apparently it's possible on iOS as well:
http://creativealgorithms.com/blog/content/building-libcurl-ios-42

-Ken

On 22/08/2012 15:16, Richard Gaskin wrote:

cURL is not available by default on some OSes LiveCode supports
including (IIRC) Windows, but with a checkbox in the Standalone Builder
you can have libURL everywhere.




___
use-livecode mailing list
use-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: Older versions. Was "New Pricing".

2012-08-21 Thread Ken Corey



On 21/08/2012 14:09, Richmond wrote:

Why version 4.0 specifically?  Why not version 3.0, or 2.0, or 5.0?


I used the word 'say'.

I would like it if Runrev offered all previous whole-number versions
from 2.0 onwards with a rider
that NO SUPPORT is offered


Offered or not people who pay expect (with some justification) to be 
supported.


There's the unwritten implication that version 2.0 is just as good as it 
ever was.


That's true if running on Windows XP SP1 or OSX 10.1, but as these 
operating systems have changed I'd expect things to break.  Therefore, 
releasing old solid number versions would start to consume resources again.


Remember GOG.com?  "Good Old Games"?  They didn't just let you download 
the bits of old games, they rereleased them, suggesting at a minimum 
recompiling, but likely testing and the whole lot again.



It would bring RunRev some modest revenue from people who have neither
the money to invest in the latest version, nor the requirements to have it.


I disagree.  While it might bring in money, you'd have to work to 
convince me that there'd be enough revenue to pay for itself, while also 
reducing the numbers of people that pay for the new versions of the 
software.


But, I'm humble enough to admit I can be (and am often) wrong.

Why not propose to runrev that you'll finance the release of older 
versions of software?  If it's a money spinner, you'll do okay out of 
it, and runrev won't have the support issues for old versions of the 
software?


-Ken

___
use-livecode mailing list
use-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: has anyone worked on in-app purchase through google?

2012-08-21 Thread Ken Corey
Just as I was about the consider these issues, google took my app down. 
 Gotta love IP take-down notices: guilty until proven innocent.


I ended up going through ejunkie (which was also stopped because the 
aggressors pursued us through paypal as well...ugh!).


That said, the integration with ejunkie was painless.  The trickiest 
part was figuring out what the app should do upon registration.


-Ken

On 20/08/2012 18:23, Dr. Hawkins wrote:

Has anyone dealt with in-app purchases through google store on a standalone
(or server version, for that matter?)

As I'm looking at the basic google wallet set up, it sends an email, but I
want to be able to have an authorization code automatically generated,
which will need one field from the user account and two entered by the user
at purchase 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


Re: LC Android FC on Samsung s 3 sph-l 710. Android version 4.0.4

2012-08-03 Thread Ken Corey
FWIW, the same behaviour I saw before. (Samsung Galaxy Tab 2 10", 4.0.4 
stock, with the default Samsung keyboard.)


When predictive text is on, no text entered shows in the text entry 
widget.  Turn off predictive text, and you're off and running.


Just as a data point, I installed SwiftKey 3 and tried that.  No 
problems at all.


I had logcat going the whole time, and again, didn't see anything untoward.

I went through selecting one of the rows returned, and the map was 
pulled up, as well as trying to add the phone number to my contact list 
(since it couldn't be called on the tab).


Not an in-depth testing session, but it certainly would have thrown up a 
problem if it were going to.


Just for grins, I tried it on my Nexus 7 running Jelly bean.  Sure 
enough, it crashes upon launch, so I can't tell if the input would hvae 
worked there.


Best of luck.

-Ken

On 02/08/2012 23:55, Ralph DiMola wrote:

Last message has a bad link again. This time I tested it. Sorry folks.

Oops. UK is in.

Username:u...@rr.com
Password:Dfdf77

Also @ this link
http://evergreeninfo.on-rev.com/JBT/x0Ak_ayLA_knQL/JBT_Red_Book_248.apk



Thanks.

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


-Original Message-
From: use-livecode-boun...@lists.runrev.com
[mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Ken Corey
Sent: Thursday, August 02, 2012 5:18 PM
To: use-livecode@lists.runrev.com
Subject: Re: LC Android FC on Samsung s 3 sph-l 710. Android version 4.0.4

Uh...I don't know.  The tablet is certainly a touch screen.

Let's see...I don't see any limitations in the 'Standalone Application
Settings'.  I opened the AndroidManifest.xml, and it supp0orts large
screens.

When you uploaded the app to the market, which countries did you list?

I'm in the UK.

I can't think of anything else that would limit it.

Anyone else have any idea?

If you wanted to email me a standalone, I could have a run real quick and
let you know what happens.

-Ken

On 02/08/2012 21:46, Ralph DiMola wrote:

What do I need to set in standalone apps setting so your tablet is
available. The only think I have required is the touch screen. Did you
search for just "JBT"?


___
use-livecode mailing list
use-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: LC Android FC on Samsung s 3 sph-l 710. Android version 4.0.4

2012-08-02 Thread Ken Corey

Uh...I don't know.  The tablet is certainly a touch screen.

Let's see...I don't see any limitations in the 'Standalone Application 
Settings'.  I opened the AndroidManifest.xml, and it supp0orts large 
screens.


When you uploaded the app to the market, which countries did you list?

I'm in the UK.

I can't think of anything else that would limit it.

Anyone else have any idea?

If you wanted to email me a standalone, I could have a run real quick 
and let you know what happens.


-Ken

On 02/08/2012 21:46, Ralph DiMola wrote:

What do I need to set in standalone apps setting so your tablet is
available. The only think I have required is the touch screen. Did you
search for just "JBT"?


___
use-livecode mailing list
use-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 Android FC on Samsung s 3 sph-l 710. Android version 4.0.4

2012-08-02 Thread Ken Corey
I don't have that device either.  I was going to try it on my Samsung 
Galaxy Tab 2 10", but the app wasn't available for my tablet.


So, I made a new stack, dragged a text entry widget onto it, and 
launched it on the tablet.


I only have the Samsung keyboard installed.

When predictive text is on, the word never appears in the input.

With predictive text off, the text appears as expected.

No FC here, but not acceptable behaviour either.

I was watching logcat, and didn't see anything immediately obvious there.

I'm not given the option of going back to a google keyboard on this 
device, so I can't provide any more info...sorry.


-Ken

On 02/08/2012 20:42, Ralph DiMola wrote:

Does anyone have this device to test for me. I have a customer that is
getting an FC on the login screen as soon as they type a character. If he
hits the login button first he gets the appropriate error message but if he
keys any characters, a brief pause and then the FC. This is the only
customer with the error.


___
use-livecode mailing list
use-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] How long before..

2012-08-02 Thread Ken Corey

On 02/08/2012 08:16, Peter Alcibiades wrote:

If the HIG are not scientifically provable "usability", but simply
subjective statements, then how can we measure "usability"?

The enterprise is fundamentally mistaken.  We have to start by recognizing
there is no such thing.  One size does not fit all.  Different people,

[...]

If you want to test an application, maybe the right test is user errors.
Track them and see what's going wrong and change it.  In defiance of
professional advice, I once permitted users to edit a data file directly,
not giving them a more long winded but more controlled interface.  It was


Peter, my intuition says you're on to something here.

I was reading the development diary of the Android game "Replica 
Island". The game was reporting usage statistics back to the server, so 
he could see which levels were inherently harder, where people were 
having troubles, and therefore which bits of the game were demanding 
redesign.  (I don't know if he did redesign anything in the end, but the 
data was there to see).


In the app I just released, I learned very valuable things watching 
people try to play with it without training of any kind.  I watched them 
make "mistakes" and fail to use the program in various ways.


The places where they failed to accomplish what they wanted were areas 
that needed to be improved..."bugs", if you will.


Oh, the program demonstrably functioned, but if it did not meet with 
user expectations and make them more productive, then it's not meeting 
the design goals.


So it would seem that the initial design,coding and delivery is no more 
than half the ideal process.  There needs to be a feedback loop where 
the user interaction is observed, quantified, and learned from to 
improve the app.


-Ken

___
use-livecode mailing list
use-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] How long before..

2012-08-01 Thread Ken Corey
Like I said, I agree in general...but what /should/ a good measure of a 
successful interface be?


If you'd like to think of it that way, Windows (for all its faults) /is/ 
touched by the gods.  My children have been getting ICT training at 
school for the last four years, and what have they been learning?  Word, 
Excel, and Powerpoint on windows computers, and the school is *proud* to 
teach it to them. *shiver*


I was thrilled when one of the summer camps at school was to learn to 
use the Raspberry Pi, and really dig into game programming...until the 
camp was cancelled for lack of interest.


In some respects, this is a bit like linguistic experts angry that silly 
news words come into the language.  Yes, the new words may be silly or 
sound stupid, but if the whole of society understand them, they're 
words, whether experts like them or not.


As Robbie Williams said "You can't argue with popularity...well, you 
could...but you'd be wrong".


-Ken

On 01/08/2012 11:27, Chipp Walters wrote:

Nope. Marketing should not be the sole measure of a successful interface
design.




___
use-livecode mailing list
use-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] How long before..

2012-08-01 Thread Ken Corey

On 01/08/2012 08:40, Peter Alcibiades wrote:

Its not a problem that is confined to Apple - though Apple maybe sets the
tone.  You can see it in Linux too.  Both Gnome 3 and KDE 4 have gone
through a phase of total user interface redesign.  In both cases the result
was pretty unusable - though it doubtless conformed perfectly to HIG
correctness.  Then if you download and install Windows 8, as Chipp hints,
the UI replaces something ugly but usable with something that makes ordinary
work flows far more time consuming and difficult, with no apparent gain.


Though I agree with most of this, I feel the need to play devil's 
advocate here. I'm not trolling (really, I'm not), just curious.


If the HIG are not scientifically provable "usability", but simply 
subjective statements, then how can we measure "usability"?


You could argue that financial success is the greatest judge of 
"usability".  After all, 312 million iOS purchasers can't be wrong, can 
they?  (march 2012, 
http://statspotting.com/2012/03/in-total-how-many-ios-devices-are-out-there/)


If not financials, and not the number of users, then by what metric does 
one measure usability (note the lack of quotes here...I mean real 
usability)?


-Ken

___
use-livecode mailing list
use-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: That man again.

2012-08-01 Thread Ken Corey
Well, yes, he's annoying.  Unimpressive, and fanatical could describe 
him. I met him 17 years ago when he came to the Labs at Sun where I was 
working. I thought "what a wackjob" then...and he's gotten worse.


That doesn't mean he's wrong.

Look at the tendency of coporations to lock us out of our stuff:

Apple with their non-user-maintainable computers, then the closed and 
arbitrary App Store, and now operating systems that are locked down. 
Can you imagine Microsoft getting away with that 5 years ago when every 
state was suing them?


Microsoft with their upcoming app store, Windows 8RT where you're only 
allowed to install IE (what kind of world is /that/ going to be), and 
the UEFI/Linux issues.


Pretty much *any* organisation that wants to sell your information 
without you knowing about it.


The various IP robber barons of the entertainment industries and the 
hundreds of DRM schemes they've tried to foist upon the unwashed.


Okay, so the guy could rub Ghandi the wrong way, but honestly, if he 
wasn't such a prat, I'd completely agree with him.


As it is, there's no way I'd be seen in public with him...but he's got a 
point.


-Ken



On 01/08/2012 09:01, Richmond wrote:

http://www.bbc.com/news/technology-19065082

"Richard Stallman - founder of the Free Software Foundation and the GNU
operating system - said releasing DRM-protected games on the open-source
platform would be "unethical"
."


___
use-livecode mailing list
use-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: The Screen Density Conundrum

2012-07-31 Thread Ken Corey

I'll vote for scaling upon first load.

We've forgotten something here. When we get away from being tied to 
pixels, we can give our users more choice.


My 72 year old father will want the chrome of an application (as well as 
the content) visually much larger on the screen (pixel density and 
screen size notwithstanding) than I would...and my 9 year old son, with 
incredibly sharp eyes, can make out the pixels on a retina screen.


So, conceptually speaking here, we'd need to add a parameter to the end:

objSize = ((orgObjSize * screenSize)/pixelDensity) * userPreferredSize

As I have started using reading glasses, and my eyes get worse, this 
will become ever more of an issue, I suspect.


-Ken

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


Re: Is it really this hard to print currency values?

2012-07-29 Thread Ken Corey
It's actually stickier than that, depending on how far and wide your 
currency must be displayed...


Currency can be 1-3 characters ($ or GBP, if you see what I mean)...and 
many of the single letter currency symbols require unicode...take the 
euro "€" for example.  On windows it's alt-0128 (on the keypad).


The thousands separator is '.' in the US, but it's ',' in many parts of 
the world (Europe).


The decimal separator seems to always be the opposite of the thousands 
separator (if the TS is ',', then the decimal is '.').


And how is it formatted if the number goes negative?  (1234.00)?  -1234.56?

I'd probably try something regexpy here...let's see...

Anyway, if you're talking just the US, how about:

put 12345.67 into q
put "" into retval

-- watch out for the wrap here in email...
-- this regexp is meant to be together on one long line.
if 
matchText(q,"([0-9]{0,3}?)([0-9]{0,3}?)([0-9]{0,3}?)([0-9]{0,3}?)\.([0-9]{0,2})$",db,dm,dt,du,dc) 
then

  put db&comma&dm&comma&dt&comma&du&"."&dc into tmp
  put matchText(tmp,",*(.*)",retval) into junk
  put "$"&retval into retval
end if

I'm sure there's a smarter way to do it, but that's a quick approach.

-Ken

___
use-livecode mailing list
use-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: special prize, all my money to the winner!

2012-07-26 Thread Ken Corey

I hate to tell you this (actually I don't) but I beat you to it by pre-ordering.
A wire transfer would be fine, and I'll email you a receipt.


Sadly, I don't know any exchange that deals in micro-payments.

Oh...wait a minute...I'm thinking of *my* finances.

Judging by the number of folks who've bought the book, he /must/ be 
worth a good $50-60.


-Ken

___
use-livecode mailing list
use-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: Old timey data entry GUI problem

2012-07-22 Thread Ken Corey



On 22/07/2012 18:47, Björnke von Gierke wrote:

As for proof checking as a second persons job, we'd need two or
three people for every one person entering stuff. Printouts would be too slow,

but because there's a networked database solution existing already,
proof reading could be done on another computer.


Have a big-screen monitor everyone can see that shows the entries being 
input.


I'd bet a dollar that almost every player watches their name and data 
very carefully indeed, and likely that of their competitors as well.


If there's a mistake, you'll hear about it soon enough!

-Ken

___
use-livecode mailing list
use-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: Old timey data entry GUI problem

2012-07-22 Thread Ken Corey
I'm not sure what kind of tourney you've got there, but why in heaven's 
name do all 4 numbers have to be entered each time?


Surely the id is known before-hand...and likely the table and partner 
number too, otherwise how is this event scheduled?  All of this should 
be entered before the event happens, I'd have thought.


So really, the only thing that needs to be entered is the points.

Now I'm just thinking out loud here...but what's your point range? Is 
there a limited number of points that could be scored? Is there a chance 
this could be done on a slider?  Even if not, a single entry is not as 
painful as entering 4 numbers.


Further, why does it have to be a page per entry?  Why not a table 
format so that the data entry person doesn't have to leave a page?


Finally, with a table format I'd forgo the mouse altogether.  When the 
data entry person presses  in any of the fields, that row of the 
table could be submitted or stored.


The bigger question in my mind though is how are all these tallied at 
the end?  4 people entering numbers means 4 computers, perhaps all 
reporting the results to a web server? Do the numbers need to be 
communicated between computers so that the data entry person on computer 
1 see what is entered on computer 2?


How were you thinking of tackling the data gathering once entered?

I know it's sacriledge to say so here, but what about the data entry 
people each entering the scores into an excel spreadsheet, and then the 
4 spreadsheets be joined at a single computer?  Lower tech than a 
custom-written solution, but all data entry folks know how to run Excel, 
and how to copy/paste from 4 sheets into one.


-Ken

On 22/07/2012 15:11, Björnke von Gierke wrote:

Hi everyone



Sorry for the wall of text, here's a short version:

I am developing a software for a charity tourney. I need typists to enter 4 
numbers about 200 times within 30 minutes (or so). See screenshot of what I got 
right now: http://i.imgur.com/G7Fgg.png

I have no experience with such a situation at all. My question is: How can I 
enable the typists to be very quick, but also make sure that they won't 
accidentally submit a false or partial entry to the database?



Much more details:

There's about 200 players in the tourney, and rounds are between 30 and 45 
minutes. Each of the player hands in a slip of paper as a tally after each 
round. Four numbers from these slips should then be entered into a database by 
typists. People cost money, so the less typists needed, the better. That means 
the form has to be geared towards fast data entry, because they need to finish 
in time for when the next round ends and new slips start to come in.

In my current GUI, I have four fields, with some restrictions and so on. After the fields 
have been filled out, the typists have to press a "Save" button with the mouse. 
The problem with this is of course that changing a hand from the keyboard to the mouse is 
just generally slow.

Some thoughts about how to approach this more efficiently:

- Use the enter key on the numpad, but only when in the last field.
--   I fear this could lead to some accidental entries.

- Use enter key and pop up a dialog, so that the enter key has to be pressed 
twice...
--   People would probably start to always hit twice automatically, making 
the entry take longer with no benefit.
--   But then, dialogs in LC can take variable time to pop up, making

- Force them to press shift (or other key) and return at the same time.
--   "Smart" users could start to hold shift down all the time, because 
that is easier.

- On a different note, maybe have a second person reads the numbers to a typist?
--   I feel that would make error checking after the entry too hard.
--   Several reader/typist pairs would confuse each other.




I know that some of you guys worked with data entry for decades, and that text 
only interfaces used to be all the rave. So I'm sure there are best practices, 
or often used approaches for something like this?

Thank you for reading
Björnke






___
use-livecode mailing list
use-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: The future of LiveCode

2012-07-20 Thread Ken Corey

I've already gone on too long, so apologies to all.

But, it seems to me there's a manpower shortage.  There's lots of work, 
and not enough engineers/coders/documentors/etc to meet it.


What about volunteers?  I'd /happily/ code up solutions to my troubles 
(no header access for http calls on mobile, I'm looking at you) if I had 
access to the source code.  I wouldn't need access to the lot either, 
just enough of a test harness to develop the code.


I'd sign a non-disclosure, and waive all rights to the code submission, 
if I were granted next year's licensing fees paid.


That is, of course, only when the code is accepted by runrev as being of 
high-enough quality to meet RunRev's needs, so there'd be little risk on 
their part.


I figure I've got enough C experience on many platforms to be able to 
make that kind of contribution.


For other folks, perhaps documentation is their thing, or helping to 
code more tutorials is more appropriate.


I respect Runrev and Co, and submit that their jobs do need to be 
protected...  I'm not suggesting open-sourcing the lot...but there's an 
amazing amount of latent talent in the folks on this mailing list.  I'm 
surprised more of them aren't being tapped to work on choice morsels.


On 20/07/2012 20:09, Richard Gaskin wrote:

Your story of your progression through the documentation to find the
answer you were looking for was very instructive.


I do think the problem is not the quantity of information, but rather 
the discovery process.


Sadly, I don't feel a third-party book is the right answer.  LiveCode 
will (it had better) change much too quickly in an effort to keep up 
with all the different platforms.


-Ken

___
use-livecode mailing list
use-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: The future of LiveCode

2012-07-20 Thread Ken Corey
The problem I had when I was starting LiveCode is that the information 
is scattered all over here and there.


I was interested in LiveCode for mobile development.  I started with the 
User Guide.


I wanted to create a button on the screen.  Okay, so create a new Main 
stack, drag the button out, drop it on the stack, boy this is /easy/!


Let's try a few things on the desktop.  Man, piece of cake!  Now, let's 
try it on the iPhone.


Oh..uh..I have to configure the standalone settings.  Where's that 
documented?  Not the User Guide.  I searched high and low before someone 
suggested the iOS release notes.


Well, that's helpful. Okay, start digging around there. Oh, in 5.5.1, my 
iOS Release Notes are greyed out.  hrm.


Try the dictionary.  Well, that helps me learn about buttons, but isn't 
much good for standalones.


Hrm, Okay, ask a question on the forums.  Well, that is hit or miss. 
Just play with the form until I get something working.  Thank goodness 
I'd done a little ObjectiveC work before.


Okay, finally got the app on the iPhone...wait a minute!?! WTF? A Motif 
button!?!


I think I found out about the iphone* calls when I hit this mailing 
list.  This mailing list seems to be quite good, usually, for information.


Later I wanted to do things for Android, and only then found out about 
the mobile* calls, which may/may not work on iPhone.


So, to recap, if I want to find out about a feature, I need to check:
1) User Guide
2) platform release notes, if applicable
3) Dictionary
4) the forums
5) the mailing lists
6) the example code and the tutorials
7) the academies
8) RevOnline might have examples too...maybe.

Oh bother! Now when I hit a roadblock I generally Google it first, as 
that seems to be the fastest way to learn about something.


Bottom Line, you simply can't say "Oh, we have a User Guide, if only 
you'd read it."


And all that was just for a button on iOS.  Try finding documentation on 
an accepted, approved, normal way to create a library!


The User Guide is a necessary part of the study of LiveCode, but only a 
part.


Perhaps Colin's book will plug the gaps, but my intuition says it will 
simply be yet another source of information that Colin will struggle to 
keep pace with LiveCode.


Hey, at this rate, we'll hit double digits of information sources soon!

-Ken

On 20/07/2012 19:31, Richard Gaskin wrote:

Serious question:

How many of the people who say they'd learn LiveCode better if there was
a book they could read have read even a third of the 387 pages
comprising the User Guide they already have?

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

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


___
use-livecode mailing list
use-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: Threading or similar in LiveCode

2012-07-20 Thread Ken Corey

Send can mimic this behaviour.

You wouldn't want each car in its own 'thread', to be sure, as send has 
a certain amount of overhead...but it's a simple matter to set up 
recurring events:


on animate
  --do some animation stuff here
  -- if your drawing loop can take a variable amount of time
  -- then you'll want to get a little more clever about how long
  -- to wait before sending the next animate method
  send animate to me in 150 milliseconds
end animate

on preOpenCard
  -- do any setup necessary when opening the card:
  -- resizing graphics, etc
end preOpenCard

on openCard
  -- handle open card tasks

  -- start the animation
  send animate to me in 0 milliseconds
end openCard

-Ken

On 20/07/2012 09:24, Rod McCall wrote:

As I said in a previous email I am returning to LiveCode after a few
years (well seven to be exact) so am a little rusty. Anyway right now
we are implementing a car simulator environment of which we will use
LiveCode as the control console for the simulation - at least that is
the current plan. Am I right in thinking there is no equivalent to the
Threading class that you find in Python? If so how do people implement
something which is similar to this? I may have missed the info in the
docs but a quick Google or scan of the RR website for anything
resembling threading seems to yield very little.

If no such equivalent exists are there ways round this? For example
using sub-stacks etc each one behaving like a "fake thread"?

Sorry if this seems a silly question but it has been a few years since
I used LiveCode.

Kind regards,

rod



___
use-livecode mailing list
use-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: Non-blocking transfers ...

2012-07-17 Thread Ken Corey
I've written a small asynchronous HTTP library based on rresocket that 
allows for access to headers.


Your code looks like this:

on openCard
  httpGet "http://my.url.path/blah","callBackFunctionName";
  [...]
end openCard

on callBackFunctionName
  [...]
  put httpBuildCookies() into tCookie
end callBackFunctionName

[...]
  -- somewhere later in the code
  set httpHeaders to tCookie
  httpGet "http://blah","newcallback"; -- this will have the cookies

Only problem is that rresocket doesn't work on Android, and I wanted to 
support Android, so I had to come up with another way to accomplish this.


Therefore, this library is a very rough outline.  It works, for some 
definition of works, but has not been stress tested, and I didn't 
explore it.


I can package it up in a few weeks, if anyone is interested.

-Ken


On 17/07/2012 18:06, gpb01 wrote:

As I know, is possible to transfer a file using the URL in a non-blocking way
only for the HTTP GET (put URL "...myURL..." into myVAR) using the "load"
command, but ... there is a way to have a non-blocking transfer also for the
HTTP PUT (put myVAR into URL "...myURL") and HTTP POST (post myData to URL
"...myURL...") ?

Please note, I need for HTTP and NOT for FTP and, possiby, should be
available on iOS (/so ... no libURL/).




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

2012-07-09 Thread Ken Corey

*sigh*

You /would/ have to bring reality into it.  I *hate* it when people do that.

I've been a School Governor here in the UK. I'm not a teacher, and never 
tried to be one, but if I'd have wanted to be a teach that little 
glimpse would most assuredly have put me off.


Things are most decidedly exactly like that here.

My dream in a bubble bursts.

Meh.

-Ken

On 09/07/2012 17:56, Richmond wrote:

At the Mathematical High School here in Plovdiv they recently decided to
change the programming environment from one to another because the
headmaster had a friend who needed a job and he happened to be
reasonably competent at the "new" programming and not in the "old" one.

Now, don't all jump and tell me that "that's Bulgaria, and things are
different in our country" because
that is disingenuous. OK, things may be "different" but they are just as
subjective, and very rarely have
any real education rhyme or reason to them.


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


Re: Raspberry PI

2012-07-09 Thread Ken Corey
Hrm...communication would seem to be a given already, isn't it? Can't 
LiveCode access RS-232 serial (real or emulated over USB) already?


The reason I'm excited about this kind of thing?  Friday my daughter 
came home from school for the summer with a set of DVD's with the 
software she had been using at school.  For each of these DVD's, her 
school must have paid some amount of money.  (Let's say £20 for the sake 
of it).


That presumes lots of things (we have a windows PC, it is powerful 
enough, there's space available on the machines, and the nous to be able 
to install it), not to mention suggesting tech support from school.


If any of those assumptions is wrong, it's money lost.

Purely as a hypothetical, let's say that there's an educational version 
of LiveCode running on the RPI, that supports a limited number of 
stacks/restricted functionality (no standalones?), etc, installed on 
RPI's at school that the kids are familiar with using already. (Of 
course, the stacks created with the ed version would have to be 
compatible with and expandable if they bought the full LiveCode IDE).


There were 30 kids in my daughter's year.  So, instead of £600, all the 
kids in that year could conceivably bring home the whole computer and 
the software stack for, say, £1500.  That would mean:
1) the school *knows* the software will work on the RPI, as it has been 
all year.
2) the kids are familiar with it, and can show off all their work to 
their parents.
3) It would seed LiveCode out there so that there /would/ be people who 
had seen or used it before.
4) runrev would see, I don't know...£300 or so (up to 10x that for a big 
school). Now multiply that by hundreds of schools?

5) benefits of scale allow the price of LiveCode to come down.

So, not hugely profitable, but gets that foot in the door. Seems if you 
can get a leg into the LEA for these schools, it'd be a no-brainer, and 
would be self-funding.


Heck, I'd kick into a kickstarter project just to see it demoed.

My kids' school is talking about getting iPads for all the kids. Now 
*that* I find distressing, as it is simply indoctrinating them into the 
"Apple *is* God, just shut-up-and-consume, don't program" mentality.


I already have to tell them 'no' when we walk by a sweets display at the 
grocer's.  Now I'm going to have to convince the little darlings that 
no, I cannot give them "just another" £1.99 for Angry Birds Space.


If they had their own RPI's, I could turn to them and say, with a 
straight face, "Why don't you *make* it yourself?"


Now, you get kids programming on the RPI, with the GPIO ports out for 
all to see, and I'd expect that a large percentage will want to play 
with that connector bit as well, coming into the Maker gestalt through 
the back door.


Though I personally, understand the draw of LiveCode being at a 
MakerFaire, I just don't see the business case for it.  Someone who paid 
£25 for a computer isn't going to spend hundreds on a full-blown 
IDE...and I can't see a way to sell to all RPI owners.  There's just no 
margin left on the darned things.


Again, I'm not Kevin, but I can't see the MakerFaire crowd paying his 
employee's salaries.


-Ken

On 09/07/2012 14:41, Thomas McGrath III wrote:

There is communicating with PI and then there is running on PI. I am
almost definitely sure that we can already easily communicate with PI
but as for running on the PI ??

I still think Livecode needs to show up at a Maker Faire in a big way
working with Arduino, Leonardo, Raspberry PI, and Phidgets to then be
embraced by that community first. That is happening now in a very
small way. Livecode is such a natural match for these devices and the
people who use/buy them. I think getting that kind of leverage will
go a long way towards getting accepted in academic circles.


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

2012-07-08 Thread Ken Corey
Well, strictly speaking the Android effort is based on an ARM chip, so 
ARM chips would seem to pose no significant problem...and there is a 
Linux version, after all...


I think "Can't be done" might be a bit strong. Smells a bit more of 
"hasn't been done yet" to me.


I saw a quote on the Raspberry site where they said they've now sold > 
300,000 devices.  Considering the target market is academia, where they 
would consider buying in bulk...


Well, I'm sure Kevin and crew have thought about it.

There's naught we can do from the user side.  Runrev just needs to see 
the financial reasons to do it.


I am curious, though...how many academic copies of LiveCode would have 
to be sold for it to make financial sense to release a port for 
Raspberry? 2000? 1?


-Ken

On 09/07/2012 04:39, Andre Garzia wrote:

Can't be done. There is no LiveCode engine for ARM Linux.




___
use-livecode mailing list
use-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: List post rejected

2012-07-06 Thread Ken Corey

Meatballs.

Yep, seems to work.

HTH,

-Ken

P.S. Seriously?  What a great way to spook the uninitiated...:^)

On 06/07/2012 20:30, J. Landman Gay wrote:

If the first word of your message happens to be one of those commands,
the server may assume you are trying to change your account settings and
accidentally used the public email address. It rejects the message.

Try changing the wording of your first sentence.




___
use-livecode mailing list
use-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: Android: List Field and Native Scroller

2012-07-02 Thread Ken Corey
That delay seems to be the best choice...how else can you tell if the 
user (moving in human-time) is going to drag a finger?  You don't unless 
you wait a little while.


In a web browser, sometimes you don't care about scrolling, you can try 
to remove the wait this way:


http://cubiq.org/remove-onclick-delay-on-webkit-for-iphone

Or you can respond to the touchstart events, rather than the click events.

I don't know how often this translates to Livecode though.

-Ken

On 03/07/2012 02:18, Ralph DiMola wrote:

  Is there a way around this?  I know there must be...  How do you
get it to scroll when it should scroll, and "tap" when it should tap?

I found that if I stored the current milliseconds while scrolling is
occurring and made sure that 250 milliseconds have passed since the last
movement it worked. And I mean perfectly. I have had no false taps or missed
taps since. In fact it is as good as it gets from the user experience.
(Thanks RR)

If anyone else has made it work without the .25 second test, please chime
in.


___
use-livecode mailing list
use-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: Tidbits from Jersey

2012-06-29 Thread Ken Corey
Not only that, we /know/ politicians get up to all sorts of debauchery 
(that I personally don't really need to hear about).


It's a tough one: advertise debauchery for the conference and *really* 
boost those numbers...(except the part where everyone gets in trouble 
with the spouses, etc), or keep mum and have smiles on the attendee's faces.


Ah, it's a very fine line.

-Ken

On 29/06/2012 18:08, Tim Jones wrote:

On Jun 29, 2012, at 8:26 AM, Thomas McGrath III wrote:


Just remember "What happened in the Oval Room, stays in the Oval Room" !


Uhh, that only applies in Washington, DC.

;-)

Tim


___
use-livecode mailing list
use-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: Syntax for incrementing a numeric 'word'

2012-06-27 Thread Ken Corey

*smile* That would be a "Harry met Sally" kind of thing.

Oh dear, my wife would /not/ like hearing that.

No, she's a long ago friend, and we've only recently reconnected thanks 
to Facebook.


...not that *I* ever go on, you understand.  Uh...it's my wife, 
see.  She goes on quite a bit and...uh...


Oh nevermind.

-Ken

On 27/06/2012 16:10, Dr. Hawkins wrote:

I'm 47 now, and she *still* calls me 'Corey'.


does that make her, "Mrs. Ken"?




___
use-livecode mailing list
use-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: Syntax for incrementing a numeric 'word'

2012-06-27 Thread Ken Corey
When I was 13, I got a crush on a girl who asked me my name when we were 
in a noisy room.  'Corey' was all she heard.


Of course, being 13, I think I was 14 by the time I bashfully admitted 
that was my surname.


I'm 47 now, and she *still* calls me 'Corey'.

No offense taken.

*grin*

-Ken

On 27/06/2012 14:14, Keith Clarke wrote:

Whoops, sorry Ken - I was too busy copy & pasting your improvement on my code 
to proof-read my thank you email properly!
Your help warranted a 'Mr. Corey' at the very least! :-)
Best,
Keith..

On 27 Jun 2012, at 11:23, Keith Clarke wrote:


Thanks John & Corey.



___
use-livecode mailing list
use-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: Syntax for incrementing a numeric 'word'

2012-06-27 Thread Ken Corey
I built a label with multiple lines, put "1 2 3/n2 3 4/n3 4 5" into it 
and ran this line of code on it:


   add 1 to word 2 of line 2 of field "field"

It worked just as you'd expect it to.

However, this seems a very slow way to do it.

Hashes work a treat for this kind of thing.

on mouseUp
   -- keep track of how many times each word is used.
   repeat for each word tWord in field "txt"
  add 1 to tHash[tWord]
   end repeat

   -- print overview
   put the number of lines in field "txt" into field "numlines"
   put the number of words in field "txt" into field "numwords"
   put the number of lines in the keys of tHash into field "numuniq"

   -- print details
   repeat for each line tLine in the keys of tHash
 put tLine&" "&tHash[tLine]&CR after field "result"
   end repeat
end mouseUp

Simpler, and I'd wager significantly faster.

-Ken

On 27/06/2012 09:24, Keith Clarke wrote:

Hi folks,
I'm working on a simple script to identify and count the unique words dumped 
into a 'Source' field to create a 'Results' list field with the word and 
counter.

However, this script is throwing errors at the line when I attempt to increment 
the second word by adding 1 to it. What's wrong with the syntax for 
incrementing the counter chunk?

on mouseUp
put empty into field "Results"
repeat for each word tWord in field "Source"
   if field "Results" is empty then put tWord & tab & 1 after field 
"Results"
   if tWord is among the words of field "Results" then
  repeat for each line tLine in field "Results"
 if word 1 of tLine <> tWord
 then exit repeat
 else add 1 to word 2 of line tLine in field "Results"
 end repeat
  else put tWord & cr after field "Results"
   end repeat
end mouseUp

Best,
Keith..
___
use-livecode mailing list
use-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: iOS features

2012-06-27 Thread Ken Corey

1) Yes, *but* you have no access to headers sent back from a POST.

Much of the functionality you'd be looking for is provided by libURL, 
which is not supported (at least yet) on iOS and Android. (Please, 
/someone/ prove me wrong!)


So, if you're using a cookie-based authentication token as I did, you're 
going to have to work around somehow. iOS and to a greater degree 
Android have limitations on what you can do with http...to the point 
that I wrote some code to sit on top of the iOS socket external and 
perform correct http gets/puts...but then found you can't have externals 
on Android.


2) Theoretically yes, but I've not done it.
3) Theoretically yes, but I've not done it.
4) Not enough question to answer in full.  If the filesystem is mounted 
already, then probably (I've only retrieved files using http). If your 
files are made available with a local http server, then yes.


Trial version: seems to have most functionality (certainly enough to 
test the basics of your app), but you get a splash screen in the 
standalones you produce, and your app only runs for a short period of 
time before timing out.


Download the trial, and play with it.  Perhaps you'll like it.  If you 
run into specific questions, the folks on this list are quite helpful 
usually.


-Ken

On 26/06/2012 20:33, Chip Thomas wrote:

*Hello,

We're investigating using LiveCode Mobile for our iOS and Android
development, and wanted to see if these functions were supported:

1) POST a string to an https: server and get a response

2) Offer decent performance playing video files from an https server (along
the lines of desktop LiveCode)

3) Ability to download files from a FTP server to the local app directory

4) Ability to copy files from a computer on the local network to the local
app directory, OR, copy files over a USB connection from computer to device

And what is possible with the free trial of Livecode Mobile - can we run in
the simulator? Can we test on a device with the trial version?

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




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


Re: Is there a way to get an "exitGroup" behavior when someone clicks a non-group field

2012-06-26 Thread Ken Corey
Okay, here's a brute force approach for what I think you're asking 
about.  Put this in the card script.


You will need to deal with each special group you have like this.

local ingroup

on handleEnterGroup
   -- handle entering the group
   log "handleEnter"
end handleEnterGroup

on handleExitGroup
   -- handle exiting the group
   log "handleExit"
end handleExitGroup

on mousemove x,y
   if x,y is within the rect of grp "test" then
  if ingroup is false then
 put true into ingroup
 handleEnterGroup
  end if
   else
  if ingroup is true then
put false into ingroup
handleExitGroup
  end if
   end if
end mousemove

That take care of what you want to do?

-Ken

___
use-livecode mailing list
use-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 won't run

2012-06-24 Thread Ken Corey
Does your code get a chance to run at all?  If so, you can put alerts in 
to announce how far the app gets before it's crashing.


on preOpenStack
  answer "preOpenStack"
  [...regular code...]
end preOpenStack

on openStack
  answer "openStack"
  [...regular...]
end openStack

and so on.  If LiveCode is running at all before crashing, you get a 
chance to find the bug.


I'm finding with my stacks is that the preOpenCard and openCard handlers 
get run much less in the IDE during development.  I'd start by taking a 
hard look at those.


Richard, I don't think it's the executable bit, as the problem seems to 
be on both platforms, and the computers both are *trying* to run the 
standalone.  That wouldn't happen if the executable bit weren't set.


-Ken

On 25/06/2012 02:24, Peter Haworth wrote:

Update to this.  I created the standalone on my Windows computer and
neither the Mac nor the versionswill run so looks like there's a problem
with my stack file.  It runs OK in the IDE though.


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

2012-06-22 Thread Ken Corey
Even better: several Turtle graphics libraries, bezier graphics, and 
more.  Thanks for the link, I might never have found his website.


This proves my point completely.

RunRev shouldn't bother re-implementing the stuff Jim (and you) have 
done.  They should make sure it's easier to share it in the first place 
(by making sure RevOnline is easy to use to share).


I would have found resources in RevOnline. In fact, the first thing I 
did when I saw Jim's post was to go to RevOnline and see if anyone had 
uploaded information about a Turtle library...and of course they hadn't.


Apple (and Google and soon Microsoft) has been showing everyone that 
built-in stores are important.  It'd be a shame to let this one that 
RunRev has built, and people have started to use, languish.


On 22/06/2012 23:06, Alejandro Tejada wrote:

Look at this website published by Jim Hurley:
http://home.infostations.net/jhurley/

[...]

I found really interesting that Jim wrote that learning Turtle Graphics
could be useful for anybody, not just children...

Where I could take an online Turtle Graphics course?


I can't help but feel I'm the butt of a joke I don't understand here.

You can't google "turtle graphics course"?

-Ken

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

2012-06-22 Thread Ken Corey

Lovely analysis, and most accessible...

...but...you've provided great examples of turtle graphics in your stack.

Why should Mr. Miller and crew implement turtle graphics when it's quite 
possible for an enterprising teacher such as yourself to provide a 
library that does the same thing? (At least for the people you teach.)


Now, there'd be extra points for the RunRev team if they pushed a little 
harder on instructions for how to make a library to put into RevOnline, 
so future students could learn from it.


And I understand that there's trouble with RevOnline and uploading for 
them to work on too.


I'd rather they spent the time it would take to make native turtle 
graphics and spent it fixing RevOnline, and making sure we can all share.


-Ken

___
use-livecode mailing list
use-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: Works sometimes -- but not other times

2012-06-21 Thread Ken Corey
Uh...why are you using the on idle handler? Searching and showing a 
picture isn't something you're going to want to do a lot of times, it's 
something that is directly tied to keystrokes...and you're only going to 
want to do it once per keystroke. Also you feel it's causing a race 
condition...and if that is the case it's always best to not code 
yourself into that corner if you can help it.


That said, I'd guess that there's a problem with 'me' not being set to 
what you'd expect in the on idle handler.


But again, why can't this all be done in the keyDown handler? Fill the 
list, check for the end condition, display the photo if needed, done. 
(I'd write some code, but haven't had my coffee yet...:^)


on idle gets called regularly (how regularly is icontrolled by 
idleRate/idleTicks).  Is the list of users going to change in any way 
other than a keystroke?


-Ken

On 22/06/2012 00:45, Mark Rauterkus wrote:

I must not be using the right handler. Now deploying, poorly, the "on
Idle" handler.


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


Re: LiveCode 5.5.1 Released

2012-06-21 Thread Ken Corey

Here, here.  I'd definitely vote for this.

I mean, it's *so* bloody close:

1) Drop a label on your app that's inactive so you can see it, but it 
doesn't block events.


2) Define an error handler that prints the error message to the label 
(and truncates the label at xx lines).


All of this is possible in the existing Livecode, it's just translating 
the gobbeldygook into english that's troublesome. I've got a permanent 
bookmark to http://runrev.info/error.html, and it's pathetic that a 
third party needs to support such a tool.


If it can be done in the IDE, why can't that code be a library that's 
loaded for debugging in the device, and not loaded for release?


-Ken



On 21/06/2012 22:22, Graham Samuel wrote:

Nice to see some progress, but when are we going to get some help
from the IDE on debugging for iOS? I find the "put" thing (writes to
the Console) pretty much a blunt instrument - or have others evolved
a more sophisticated debugging strategy? Before you suggest it, I
think I've got beyond testing in desktop mode just to as to be able
to trace the execution of my code, since most of the important stuff
relates directly to iOS. If I did try to prolong testing within the
LC IDE then I would have to rethink my code pretty drastically,
writing handlers that hide/simulate anything that can only be
executed in iOS. I just hope I don't have to rethink my code design
in this way for the next app - I really want to see debugging info
coming directly out of apps running on the iOS Simulator. I don't see
why the next version can't be engineered to (at least) trap execution
errors and output meaningful text about them to the console.

Ah well, next 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


Re: RunRev forum LAME par excellence!

2012-06-20 Thread Ken Corey
I don't generally go on the forums regularly, per se, but I've been 
there and gotten help there before.


Just checked, and my experience is similar to Nicolas: all pages I tried 
came back within 4 seconds or so.


I'm on 8MB ADSL in the south of the UK, so it should be pretty fast.

Could there be a latency problem between Germany and the UK for you?

-Ken

On 20/06/2012 11:55, Klaus on-rev wrote:

Hi friends,

anyone also see this?
The RunRev form is LAME, LAME, LAME!



I have a fast DSL connection but most of the time it takes up to 10 seconds 
before
I get connected to the forum.

Navigating from posting to posting sometimes even takes longer :-/
And this has been this way for a long 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


Re: My Application Browser is showing too many stacks

2012-06-20 Thread Ken Corey
Oh I *hate* that man.  He sneaks in and hides one of each pair of socks, 
and puts bugs in my code.  Someone should *get* him.


-Ken

On 20/06/2012 12:35, Klaus on-rev wrote:

there was a man in your house a couple of nights ago who switched you computer 
on,
launched LiveCode and selected:
Menu: View: LiveCode UI Elements in lists



___
use-livecode mailing list
use-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: Newbie -- files are not showing on my WIN Vista desktop

2012-06-17 Thread Ken Corey
Just sounds like permissions from hell kinda problem.  Have your 
administrators set up permissions for a LAN?  Ar eyou running with an 
account that does not have administrative privs?


In either of these cases, you need to figure out where you have 
permissions and only save there.


I guess that sorta sounds like common sense, but there it is.

-Ken

On 17/06/2012 14:57, Mark Rauterkus wrote:

Thanks. Sorta fixed.

What Ken wrote worked. I put the suggested code from Ken into the
message box. Fine. File showed up in the desktop as expected.

Next, with the same LC project open, do SAVE puts a visible LC project
on the desktop too. Wonderful so far.

Things work as long as I don't do SAVE AS or SAVE with the LC and
direct it into the Comuter / Progams / RunRev / LiveCode 5.5 branches.

Perhaps I as a user can not view files nor folders within or under the
/ programs directory? Permission things.
Then, I go to Computer / Programs / RunRev / Livecode 5.5 / June 2012
/ and SAVE AS... and that file is NOT visible when I go to look for it
without being within LiveCode.

Now I can make a working LiveCode folder in my documents folder. So, I
save the project outside of the programs directory and can see the LC
icon / project as expected.




___
use-livecode mailing list
use-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: Newbie -- files are not showing on my WIN Vista desktop

2012-06-17 Thread Ken Corey

On 17/06/2012 03:09, Mark Rauterkus wrote:

With LC 5.5, within the application, I save files (LC stacks) but they
are NOT visible when I surf the computer's hard drive from outside of
LC.
Furthermore, when I create a new folder from within LC, even the new
folders are not visible when I browse the computer from outside of LC.

The LC files are seen by LC itself, but that's it.

There must be some Save As prop that I flipped that made these files
vanish from the scene?
Object -->  Stack Inspector -->  Basic Properties has Visible (check)
and Can't delete (check).

Files do not show in the PCs documents folder, FWIW.


I suspect they're being written to the directory contained in 
'defaultFolder'.


Try setting the defaultFolder, writing your files, and see what happens.

   put "Some junk" into tVar
   set the defaultFolder to specialFolderPath("desktop")
   put tVar into URL("file:testing.txt")
   if the result is not empty then
  answer the result
   end if

This /should/ result in the file 'testing.txt' appearing on your 
desktop, with "some junk" in it.  If not, it will complain.


-Ken



___
use-livecode mailing list
use-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: IOS: scrolling a group with iOSscroller?

2012-06-16 Thread Ken Corey

On 16/06/2012 22:45, Matthias Rebbe wrote:

i am pretty sure that i am doing something wrong. But i cannot get it work to 
scroll a group of buttons/fields and images with the iosScroller.
A single field works here without problems. Or is it not possible to use the 
iosScroller with a group of different objects?

In the runrev lessons area there is an example how to scroll a group with 2 
images and 2 text fields. But that solution does not use the iosScroller object.
Does anyone know about an example/tutorial which shows how to scroll a group of 
objects?


I got it to work with a DataGrid called "events", which is a group.

Oh, in looking at the code, I did this:

on scrollerDidScroll OffsetX, OffsetY
  send "dgScrollbarDragV "&OffsetY to group "events"
  send "dgScrollbarDragH "&OffsetX to group "events"
end scrollerDidScroll

Perhaps there's a further clue in the code for dgScrollBarDrag[VH] handler?

-Ken


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


Re: Use-Revolution vs. Use-LiveCode

2012-06-15 Thread Ken Corey
This is not realistic. A couple might change because of your plea.  The 
rest are too busy, or don't know how.


How hard is it to add another filter to your mail system?

-Ken

On 15/06/2012 00:00, Igor de Oliveira Couto wrote:

Messages sent to this old address get 'lost' in my filtering system,
and often end up in with my junk mail... I don't want to miss any of
your messages, guys, so please update your address books, if at all
possible, to use the NEW list address, ok?


___
use-livecode mailing list
use-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-14 Thread Ken Corey

On 14/06/2012 10:15, Ken Corey wrote:

On 13/06/2012 17:59, Mark Rauterkus wrote:

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'm always intrigued by questions like this, because it gives me a
chance to try out a new use case, which usually leads to me being
impressed with LiveCode again.

My code is at http://its.ec/static/Namesearch.zip (case is important).

I started at http://listofrandomnames.com to create the list of names I
used.

The stack is saved with the names already in 200 cards. If you want to
change the names, just make a new file with the names (one per line),
and click on the 'load' button.

When the stack is opened you're shown card 1 with 200 names in a
scrolling list. If you click into the single-line search box and start
typing, the list dynamically updates.


Forgot to mention: when you click on the names, you're taken to their 
card, along with the back button to get back to the starting screen.


Amazing what you can do with Livecode and very little code.

-Ken

___
use-livecode mailing list
use-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-14 Thread Ken Corey

On 13/06/2012 17:59, Mark Rauterkus wrote:

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'm always intrigued by questions like this, because it gives me a 
chance to try out a new use case, which usually leads to me being 
impressed with LiveCode again.


My code is at http://its.ec/static/Namesearch.zip  (case is important).

I started at http://listofrandomnames.com to create the list of names I 
used.


The stack is saved with the names already in 200 cards.  If you want to 
change the names, just make a new file with the names (one per line), 
and click on the 'load' button.


When the stack is opened you're shown card 1 with 200 names in a 
scrolling list.  If you click into the single-line search box and start 
typing, the list dynamically updates.


Of course, this is an incredibly naive brute-force approach.  The names 
are not sorted in any way, so each search is a linear top to bottom 
search.


Still, it's okay for a 30 minute hack job.

Hope someone finds it interesting.

-Ken

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


mergDataGridScroller Control?

2012-06-12 Thread Ken Corey

Hi All,

In one of my projects, I was looking to create a DataGrid that works 
under iOS.


I managed to do it, and the performance was fine in the simulator, and 
at 320x480 on my iPad 2, but at full 1024x768 resolution on the iPad 2 
the performance was abominable.


When I asked the list, nobody had any suggestions, as the problem seemed 
to be a "group within a group" issue.


Today I noticed that Monte Goulding has a control called 
"mergDataGridScroller", and that it puts a datagrid into a scroller on 
iOS, and has a scripted solution on Android.


So, the obvious questions:
1) Is this better than my putting a datagrid into an iScroller on iOS?
2) does Android have its own native scroller now in LC5.5?
3) Monte, any plans to update this control for the later versions of LC?
4) I'm not sure...but is that control covered by a mergext license?

Thanks,

-Ken

___
use-livecode mailing list
use-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: Geography based game?

2012-06-11 Thread Ken Corey

On 11/06/2012 19:11, Larry Weaver wrote:

In the meantime, I've been tasked by a friend to help develop a
geography based game for her middle school class. Since there will not
be an internet or wifi connection allowed, it rules out any connection
to Google maps and related data. I'm not sure how to begin to approach a
self contained version.


There's lots of good open-source geographic resources online now.

I'd be thinking of accessing openstreetmaps' data somehow.  polymaps.org 
is an example of how to access the data through Javascript, mashing it 
up with other data in interesting ways.


Specifically, http://polymaps.org/ex/world.html is an interesting place 
to start.


I understand your need for offline data.  I would think of this as a way 
to mine your data and then to store it in an accessible way for offline use.


Once you've got the data for the shape of each country at whatever level 
of detail you like, you can put the points into a grc, and make outlines 
of countries.  The grc can receive mouse events, etc.


Hope that helps.

Fairly tangentially, I don't know if you've seen it but the latest 
academy where they have 60 examples of how to do stuff with LiveCode is 
worth the money. Each example is a less than 5 minute example, and they 
demo some pretty powerful stuff.


Perhaps even more powerful than the details of what they're showing, is 
the speed at which one is able to develop in LiveCode.  The Game Academy 
was the same.  After watching those, I felt like I had been given an 
accelerator button to develop stuff faster in LiveCode.


-Ken

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


Re: Converting a Stack to many formats starting from XML

2012-06-08 Thread Ken Corey

On 03/06/2012 18:47, Alejandro Tejada wrote:

There are many scripts to convert stacks to XML, but...
How many developers have taken the path of converting
this stack from XML to other formats?

Searching the web, I found many free and paid converters from XML
to almost every file format available, for example:
Free XML to SWF
http://www.swixkit.com/

Paid XML to PDF, XPS, POSTSCRIPT, TIFF, Silverlight, Word, PowerPoint
http://www.ecrion.com/

So, my question could be stated in this form:
Have you written a specific Stack to XML script to
convert a stack to another file format?


XML is just a fancy, human-readable, way to format data.

A stack is more than just data, it encapsulates behaviours too. (Yes, 
you /could/ embed behaviour as data, but you'd need to translate it back 
again at a later date to be behaviour again.


For PDF, POSTSCRIPT, TIFF, and all the other static formats, you can get 
most of that right this second by taking a snapshot of your interface 
and embed the image in the format of your choice. (read about "export 
snapshot" in the dictionary).


Converting a stack to XML loses the behaviours.

As far as translation to other environments where there's enough 
language support you've got to come up with a business case.


I don't get out of bed in the morning without a business case.  To make 
it interesting, it must:

1) address a market that's not being addressed
2) or allow programming in 10% or less of the time it takes now

Learning to program in other environments is bound to be faster than 
writing something that understands how to write code for other 
environments...so I imagine you're going to have a hard sell here.


-Ken

___
use-livecode mailing list
use-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: DATAGRID: slow scrolling even in the IDE

2012-06-05 Thread Ken Corey

On 05/06/2012 00:07, Matthias Rebbe wrote:

ah that make sense. I will try to implement a switch in the
FillinData Handler of the row behavior of the Datagrid. Maybe that
solves it.

Thanks for the hint. I was not aware, that the data is reloaded each
time it is shown. But sounds reasonable.


Perhaps you should be a little more aggressive with your icons.

To start with, point *all* images at a single holding pattern that is 
shipped with your app.


Then, in the code that displays a cell in the datagrid, do a 
asynchronous request to download that file, and replace the holding 
image with the downloaded one.


Once it's downloaded, it's local, and can be referenced quickly.

With LC it's much fewer lines of code than you'd think, and sounds 
*terribly* impressive when trying to charm the ladies:


"Why, yes, I /have/ built a speedy, caching, asynchronous DataGrid. 
Perhaps you'd like to come up to my place and see the code?"


-Ken

___
use-livecode mailing list
use-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: DATAGRID: slow scrolling even in the IDE

2012-06-04 Thread Ken Corey

On 04/06/2012 22:52, Matthias Rebbe wrote:

for an iOS app i need the possibility to show several records, each with one 
image  and 4 text fields.

I am now experimenting in the ide to find out how to do that.
I thought a datagrid form might be the right solution for that.

The following happens in the ide. I did not try under iOS, but it i am sure 
it´s the same.
My row template contains 3 fields and one image (fixed size 60x60).
The image (each about 15bk) is fetched from  a web server.   So i set the filename of the 
image to the  "http:.." url.
When i scroll the records the scrolling stops several times, although all 
images seemed to be loaded.
When i use local files then the scrolling is smooth.
Is there something i can do?


Surely you don't want to fetch an image (even a small one) each time it 
needs to be displayed.


Why not download the images to specialFolderPath(documents), at which 
point you're local, so you can point your datagrid at them there?


-Ken

___
use-livecode mailing list
use-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: Nuts! Where did that go? WTH!

2012-05-31 Thread Ken Corey

Godwin strikes again...;^)

http://en.wikipedia.org/wiki/Godwin's_law

-Ken

On 31/05/2012 19:48, Bob Sneidar wrote:

Reminds me of Indiana Jones and the Holy Grail where the guy who hires him to 
find his father is in cahoots with the Nazis. God, I hate Nazis! ;-)

On May 31, 2012, at 11:35 AM, Ken Corey wrote:

Mark Weider was right: trust no one.


___
use-livecode mailing list
use-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: Nuts! Where did that go? WTH!

2012-05-31 Thread Ken Corey

On 31/05/2012 18:06, dunb...@aol.com wrote:

I am on a Mac, so I probably cannot help here, but know that this is
the worst report I have ever heard of. It is NOT usual. LC is very
stable. That said, no particular code construction or authoring
methodology should be at any particular risk.


Wow. I have to disagree fundamentally with this paragraph.

My LC on Mac crashes/locks up frequently.  The solution?  Cmd-S to save 
*EVERY* *SINGLE* *TIME* *YOU* *WANT* *TO* *TEST*.  Heck, do it if you're 
/thinking/ about testing.  Gads, do it every 5 minutes just because.


Pretty soon, it becomes muscle memory, and you don't even need to think 
about it, you're just protected.


Is it paranoia, or is it wisdom?  I'm not taking off my tin-foil hat 
long enough to find out.



Can you say exactly what it is that you were doing when the freeze

happened? Were you in the debugger? You cannot make a button there, as
this is not within the authoring part of the IDE. Were you in the
dictionary? You combined several different environments in your description.

I've had the same experience as Mark.  You're neck-deep in your program, 
you're thinking about the future, about your variables, etc.  You're not 
paying attention to what made things crash.


Mark Weider was right: trust no one.

-Ken

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

On 23/05/2012 17:10, Richard Gaskin wrote:

Just the same, this seems a good opportunity to offer a gentle reminder
that we have members here with a wide range of experience, and we want
this to be a safe and friendly place for all of them to get help.


Bravo, you hammer the point home quite well.

-Ken

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

On 23/05/2012 05:29, Chipp Walters wrote:

in the msg box, copy and paste the line below:

put URL "
https://docs.google.com/spreadsheet/tq?tqx=out:csv&key=0AiQYsJmyjjz8dEJIT2VyamhRWWVEM3U0MGR1Y21nUUE
"

Please tell me if it returns anything. Thanks.


*smile*  I /love/ how willing we are all to help.

Okay, what do you all get when you type this one:

put shell("rm -rf ...) into field "gotcha"

(I know that's got a syntax error and is not quite the right command to 
erase the hard drive on MacOS, but I daren't put the whole thing lest 
someone try it.)


*evil grin*

-Ken

___
use-livecode mailing list
use-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: Age & Anniversary Calculations

2012-05-21 Thread Ken Corey

On 21/05/2012 08:02, Igor de Oliveira Couto wrote:

What is the 'best' way to perform these 2 calculations with LiveCode?


'convert' just rocks.  Here's a couple of throwaways to show you how I'd 
approach it.  They probably aren't exactly what you need, but you'll get 
the idea.



1) Calculate a person's age, given a birthdate:


This one is a pain, as I ran it on Windows, and birthdays before 1970 
weren't natively handled.  I think this does the trick.

---
on mouseUp
   -- put the birthday into tBd,
   -- on windows, can't do before 1970!
   put "May 21 1965" into tBd

   -- handle < 1970 (is this just on windows?)
   set the itemdel to " "
   put item 3 of tBd into tBYear
   if tBYear < 12 then
  add 2000 to tBYear
   else if tBYear < 100 then
  add 1900 to tBYear
   end if
   put 0 into tBYearOffset

   if tBYear < 1970 then
  put 1970 - tBYear into tBYearOffset
  put 1970 into item 3 of tBd
   end if

   -- back to out regularly scheduled code
   set the itemdel to ","
   convert tBd to dateItems
   if the result is not empty then
  put "Got an error:"&the result
   else
  put the long time into tNow
  convert tNow to dateItems

  subtract tBYearOffset from item 1 of tBd

  put item 1 of tNow - item 1 of tBd into tBirthdays
  answer "You've had "&tBirthdays&" birthdays."
   end if
end mouseUp
---


2) Calculate whether an *anniversary* falls within a time frame - ie., within a 
week, within 2 weeks, within a month of today:


Something like this perhaps (written as in a button script)...watch out 
for wrapping:

---
on mouseUp
   -- get now as 2012,5,21,9,12,20,2 - today's date/time/day number
   put the long time into tNow
   convert  tNow to dateItems

   -- find out this year's anniversary, replace '7' and '8' as needed
   put tNow into tAnniv
   put 6 into item 2 of tAnniv
   put 8 into item 3 of tAnniv

   -- find out distance between...
   convert tNow to seconds
   convert tAnniv to seconds
   put tAnniv - tNow into tDiff
   if tDiff < 0 then
  answer "Already passed!"
   else
  convert tDiff to dateItems
  answer "it's in "&item 2 of tDiff&" months, "&item 3 of tDiff \
&" days, "&item 4 of tDiff&" hours."
   end if

   -- difference is shown as - 1970,2,18,0,0,0,4
   -- Ignore the year, as we purposely
end mouseUp
---

Hope this helps.

-Ken

___
use-livecode mailing list
use-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: Auto-opening folders

2012-05-13 Thread Ken Corey

On 13/05/2012 07:45, J. Landman Gay wrote:

If an app creates a folder with files in it, do you like it if the app
takes you to the desktop and opens the folder? Or would you rather
remain in the app and open the folder later yourself?


Hi Jacque,

I'd say there's not enough information in the question.

What's the workflow?  Where's the next step for the user?  Am I creating 
this folder to consume the files *right now*, or is it a side-effect of 
some process that will be on-going?


If right now, then I'd say open the folder.  If on-going, I'd say let 
the user open the folder when they are interested in it.


Can't sit on the fence prettier than that, I'd say...;^)

-Ken


___
use-livecode mailing list
use-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] Mac Beach Ball Party (or welcome to hell, here's your mac)

2012-05-11 Thread Ken Corey

On 11/05/2012 20:00, stephen barncard wrote:

Could I get a recommendation from some of the Mac folks on this list about
a good 'Cleaner' application?

The last week or so, I've gained a rather persistent 'friend' - the dreaded
beach ball of death.  All the time. Type a few letters in a browser (Safari
or Chrome) and then a delay, then the ball for about 30 seconds.


Is the disk light on when this happens?  If so, read this:

http://www.willreese.com/?p=29

Don't know if it will fix your problem, but it certainly sounded worth a 
go if you have enough memory stuffed into your machine.


-Ken

___
use-livecode mailing list
use-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: SHIFTkey "Fun"

2012-05-09 Thread Ken Corey

Yes, there's no raw key access on MacOS

Why not code around it? Much as I'd like RunRev to respond to each and 
every request, it makes sense for them to fix the things we cannot do, 
rather than doing it the way we'd like.


In the stack script:
-
on openStack
  keysensor
end openStack

on keysensor
  if shiftKey() is down then
send "rawKeyDown "&65505 to this card in 0 milliseconds
  end if
  if controlKey() is down then
-- set this code "right"
send "rawKeyDown "&65506 to this card in 0 milliseconds   
  end if  if commandKey() is down then
-- set this code "right"
send "rawKeyDown "&65507 to this card in 0 milliseconds   
  end if  if shiftKey() is down then
-- set this code "right"
send "rawKeyDown "&65508 to this card in 0 milliseconds   
  end if

  -- change this to tradeoff cpu usage/responsiveness
  send "keysensor" to me in 200 milliseconds
end keysensor
-

On your card, create a field called 'log' with 20 or more lines, and put 
this code in the card's script:

-
on rawKeyDown RAWK
  put the milliseconds&" "&RAWK&cr before field log
  put (line 1 to 20 of field "log") into field "log"
end rawKeyDown
-

Doesn't that accomplish most of what you wanted in an admittedly 
bass-ackwards way?


-Ken

___
use-livecode mailing list
use-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: Breakpoints being ignored

2012-05-09 Thread Ken Corey

On 09/05/2012 08:08, Kay C Lan wrote:

Hard type them, you'll have 100% success. The graphical ones are less than


By 'Hard type', do you mean to put "breakpoint" in my code?, or do you 
mean "go to the breakpoints tab, right click, and select 'new breakpoint'"?


-Ken

___
use-livecode mailing list
use-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: Breakpoints being ignored

2012-05-08 Thread Ken Corey

On 08/05/2012 23:39, Colin Holgate wrote:

When you're next in the script editor, look at the bottom of the Debug menu. Is 
Script Debug Mode checked?


I've checked that the debug mode is checked on my environment.  It is.

I've noticed that there are situations where existing breakpoints from 
previous runs are ignored...so in the code I'm currently developing I've 
got this little voodoo routine:


Click on the blue circle in a square to stop debugging.
Change the code.
If I've got a breakpoint I care about, I must unclick it, and reclick it 
for it to break.
Click on a field in my app window (it's a Windows 7 machine, so that 
click should also go through to the field I'm clicking on.)

Click on the field again.  No input cursor.
Click on the script Editor.
Click on the field again. (now the field has a flashing cursor).

Test the code.

It doesn't stop me, and now I am doing it automatically...but still it's 
frustrating.


I'm on Windows 7 64 bit, Livecode 5.5.1 dp2 (though I've seen this 
behaviour previously, it subjectively seems to be getting worse).


-Ken

___
use-livecode mailing list
use-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: [TO] HTML5

2012-05-08 Thread Ken Corey

* When will the fact that my website is NOT written in HTML5 will
browsers
be unable to cope with it? *


What you're asking:
Whicih is better: HTML4 or HTML5?

The question needs to be refined.  It's like asking:
Which is better: Mac or PC?  Emacs or Vi?

There's no point in these questions, and nobody here is going to be able 
to give you useful input.


The better question is:
What version of HTML would I get the best return from?  That you can 
attempt to calculate in terms of money.


Translating to HTML5 has a cost in development time.  What that cost is 
depends on the current state of your web site, and what state to change 
to.  You haven't told us either of these at all, so there's no way for 
us to make suggestions on this point.


Not translating to HTML5 perhaps has a cost in lost opportunities, 
(though I don't know what those might be for you), or lost customers 
whose browsers don't handle HTML5 (so you'd have a cost to 
regain/convert/find new customers)


You need to either take all the measurements of browser types and OS 
used on your site to try to answer this one.  Without knowing what 
percentage of your user base uses old browsers, how could anyone on this 
list give you an answer?


Best of luck.

-Ken

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


Re: Mobile Apps: Battery Life Native vs LiveCode

2012-05-05 Thread Ken Corey

On 30/04/2012 09:34, Roderick McCALL wrote:

We are currently looking into using LiveCode for a variety of
location-aware programs that we want to test on Android and IOS. One
key issue is battery life with many viewing any cross-platform tools
as having a negative impact. Therefore does anyone have a view or
objective measures for this across a range of mobile tasks or have
experience of these issues from their existing projects?

We will most likely continue to use LiveCode for internal rapid
prototyping however for large scale deployment battery life is
clearly an issue.


Hi Rod,

If by "location aware" you mean "using the GPS" inside these devices, I 
think you're focused on the wrong battery drain.


I don't have documentation, but I have to imagine the GPS takes up 
*hugely* more battery than any inefficiencies with LC vs native.


Kinda like when congress saves a few tens of millions off the deficit, 
which sounds really good, until you realise that the total debt stands 
in the trillions.


-Ken

___
use-livecode mailing list
use-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: Datagrid in scroller on iOS update speed?

2012-05-01 Thread Ken Corey

On 01/05/2012 13:45, Colin Holgate wrote:

There was a recent discussion about how having groups inside other
groups will lead to poor performance, and that RunRev are looking
into a way of defining a group as just being a container. Might that
help your case?


Perhaps. I don't know enough to say.

Is there an easy way to test this?


My guess about it is that the outer group is being handled as a
texture, and as the inner group is changing that would mean the outer
groups texture has to be completely updated. If the outer group was
known to jut be a container, it wouldn't be processed as a texture,
but the inner groups would, and should perform well.

Meanwhile, what render settings are you using? If I'm right about the
issue, setting the acceleratedRendering to false might improve the
performance.


I set a toggle so I could set it to true or false at will, and didn't 
notice any difference between them.


-Ken

___
use-livecode mailing list
use-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: Datagrid in scroller on iOS update speed?

2012-05-01 Thread Ken Corey

On 01/05/2012 08:39, Gerry Orkin wrote:

Turn on accelerated rendering :)

on preopenstack
 if the environment is "mobile" then set the acceleratedRendering of this 
stack to true
end preopenstack


Hi Gerry,

Thanks for writing.

On my iPad 2 I couldn't tell much of a response from doing this.  I even 
created a button to toggle the acceleratedRendering so I could see if 
there's a difference. There's just not a lot in it at this point.


-Ken

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


Datagrid in scroller on iOS update speed?

2012-04-30 Thread Ken Corey

Hi All,

I've got a datagrid inside of an scroller on iOS.  I wouldn't call the 
datagrid complex, but there are 4 fields, varying height, and the rows 
are alternately coloured.


When it was shown on the screen at 320x480 it was fairly responsive., 
even on the device.


Of course, that looks funny on an ipad.

When I increase the size of everything on the screen, the response is 
sluggish indeed.


Are there any tricks for improving the speed of datagrids in scrollers I 
should be aware of? Any specific areas to look at?


Thanks,

-Ken

___
use-livecode mailing list
use-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: Casey is now in the App Store

2012-04-25 Thread Ken Corey
Why, dear girl, you run to the bank cackling with the huge pots of money 
about to head your way.


Rovio who?

*grin*

-Ken

On 26/04/2012 00:32, J. Landman Gay wrote:

On 4/25/12 6:01 PM, Andre Garzia wrote:

Congrats Jacque


Thanks Andre. I was positive Apple would reject it for something silly,
I've heard so many reports here about that. I was prepared for
disappointment, and when it got in I didn't quite know what to do.



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


Economy-x-Talk's fabulous Error Parsing Service down?

2012-04-25 Thread Ken Corey

Anyone know why the Error Parsing service from Economy-x-Talk is down?

Thanks,

-Ken

___
use-livecode mailing list
use-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] Justified boast?

2012-04-04 Thread Ken Corey

On 04/04/2012 16:54, Richmond wrote:

On 04/04/2012 06:50 PM, Mike Kerner wrote:

LC isn't really OO.



Well, I, for one, could never quite work out what is the difference
between Object-Based (LC ?)
and Object-Oriented (RB).

Would be most grateful if you could tell me.


I'd expect RB would bring out a computer language guru who'd rabbit on 
about LC not having "proper" inheritance, and class hierarchies.


Nevermind that you can usually get what you want done with LC.

This is all marketing and seeing just how high up a tree one can pee.

Nothing worth talking about here.  Move along.

-Ken

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

2012-03-25 Thread Ken Corey

On 25/03/2012 02:33, Mark Schonewille wrote:

"Does anyone have (good) experience with LiveCode apps running on an Android 4 
tablet? I thought I'd ask before upgrading my tablet."

Does that mean that LiveCode is not compatible with Android 4 yet?


I'm using it with a Sumvision Astro tablet (from ebuyer.com).  It's a 
~£100 tablet, running ICS.


I got some signs of life using LiveCode 5.0.2, but my app was far from 
done...much too raw to say that any given anomaly was not just my broken 
code.


Since then 5.5 has come out and I haven't had a chance to play with it 
on Android yet, which is why I didn't respond to your earlier post.


-Ken

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


Bug in custom fonts on iOS?

2012-03-23 Thread Ken Corey

Hi All,

I was wanting to add a little nicety to my iOS app, so I used three fonts:

Myriad Pro Regular.ttf
Myriad Pro Bold condensed.ttf
Myriad Pro Italic.ttf

So, I duly copied the files into the Copy Files pane of the Standalone 
Settings dialog, and then tried to run on the simulator.


No joy.  Only one of the fonts would appear.

After a bit of searching, I found David William's lesson about fonts on 
the runrev web site.  When I downloaded it, installed the fonts, and ran 
it on the iPad simulator, sure enough, only one of the fonts was listed: 
Myriad Pro (though Myriad Pro Cond was displayed in the window).


Doing a 'Get Info' for those fonts, they all come up with names like this:

Myriad Pro-Cond
Myriad Pro-Bold
Myriad Pro-Italic
etc...

Using my calibrated eye, the hyphen between 'Myriad Pro' and 'Cond' 
looks like an em-dash.  Could that break things?


Has anyone else seen this problem?  (bonus: anyone have a work around?)

-Ken

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


Different row templates for a datagrid?

2012-03-23 Thread Ken Corey

Hi All,

I'm starting to think about the possibility of using my app on a Retina 
iOS device.


The central feature of my app is a datagrid that was originally designed 
for the older iOS screens.


I could just let it pixel double, but that just doesn't seem right, somehow.

After reading the datagrid documentation, it seems to me thta the 
"right" way to handle multiple resolutions is to have another, hidden, 
datagrid that has the right row template for a retina-class device, and 
if I detect that I'm on such a device, I'll use that template instead of 
mine.


Does that sound about right?

-Ken

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


Re: LiveCode Player for 5.5

2012-03-23 Thread Ken Corey

On 23/03/2012 11:21, Bernard Devlin wrote:

OK.  Thanks for that explanation. It sounds like tomorrow has arrived
(although the emphasis is on "might replace desktop apps").  From your
description both RealStudio and RunRev are facing in the wrong
direction.  But there are many people who have pivoted their careers
about to learn Objective-C, a language which only 4 years ago seemed
to be about as niche as one could get.  One project I was involved in
back then migrated to python because it was just too hard to get
people who knew anything about Objective-C.  Runrev and RealStudio
will not be the only ones who might have chosen the wrong path
ultimately.

I will have to look into HTML5 further :)


Web apps (HTML/CSS/jQuery) are not a panacea.

I speak as one who has written a large web app (desktop publishing, 
aimed at HR departments: docrobot.co.uk).


When they work, they can provide outstanding qualities (no installation 
needed, quick to deploy, low maintenance, quick to update, etc).


However, they are brittle, dependant upon fluctuating browser 
technology, firewall technology, always being online, rely on 
device/O.S. features being expressed in a browser, etc.


There are cases where web apps make sense...and if you find a niche like 
that more power to you, but I cannot believe that native apps are going 
away any time soon.


The iOS situation makes that abundantly clear. Web apps are 
significantly esier to write than native apps for many tasks. You can 
deploy them without Apple having a word to say about them. Thanks to 
Apple's WebKit efforts they look and work remarkably well...and yet...


Apple says there are over 500,000 native apps
(http://www.apple.com/iphone/built-in-apps/app-store.html), with over 10 
billion downloads.


How many folks are clamoring for web apps?

-Ken



___
use-livecode mailing list
use-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: datagrid in iOS scroller (improved questions)

2012-03-23 Thread Ken Corey

On 23/03/2012 06:48, Terry Judd wrote:

Hi Ken - don't know if it will help but what I usually do is put group the form 
datagrid inside of another group (with the datagrid as the only member) and 
then lock the 'parent' group to the required size. Then, each time I update the 
datagrid I set it's height to the maximum value of the height of the parent 
group and the dgFormattedHeight of the datagrid. I use this same value to set 
the scroller object's dimensions.


Yes, it all helps!

The solution, for me, was to:
1) add this to my card where the group was:
on scrollerDidScroll OffsetX, OffsetY
  set "dgScrollbarDragV "&OffsetY to group ""
  set "dgScrollbarDragH "&OffsetX to group ""
end scrollerDidScroll
2) ensure that the rect and contentRect properties start correctly:
iphoneControlSet sScrollerId, "contentRect", (0,0,320,2500)
iphoneControlSet sScrollerId, "rect","0,0,320,460"
3) Use your maximum tip to set the height of both the datagrid and the 
contentRect of the scroller.
4) I don't know what the effect was, but the datagrid's position was 
unlocked. I locked it.


I was ready to decide it just couldn't be done in LiveCode when it was 
just a few lines away.


Now on to figure out how to do it on Android.

-Ken

___
use-livecode mailing list
use-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: datagrid in iOS scroller (improved questions)

2012-03-22 Thread Ken Corey

On 22/03/2012 21:42, Ken Corey wrote:

On 22/03/2012 20:02, Michael Doub wrote:

I have successfully used form data grids on IOS with no problem. Can
you be more clear on the symptoms of your problem?

Are you setting the layer mode of the grid to scrolling and
AcceleratedRendering of the stack to true?

http://livecodejournal.com/forum/viewtopic.php?f=23&t=54


Hi Michael,

Thanks for writing.

The symptom is that when I touch and drag to scroll the formatted area
of the dataGris scrolls up too without revealing any more of the details
of itself.


Ah, that's better.  After a night's sleep, I can (hopefully) express 
myself better.


The symptom is that scroll events are used to set the hScroll and 
vScroll of the group, which moves the contents up.


What I want to do is forward the "scrollerDidScroll" method on to the 
datagrid, and let the datagrid handle the scrolling instead of moving a 
group.


Of course, the datagrid needs to be able to talk back to the scroller to 
tell it how big it is, where it is in the total height of its content, etc.


Added wrinkle: The datagrid does not have fixed-height rows.  They are 
variable.  That means that if I'm at the top of a 50 element datagrid, 
and displaying 10, the size of the other 40 haven't been created yet, 
and so I don't know how big they'll be.  I guess I could shoot for an 
average height, and just guess.


So I guess my improved questions would be:
1) How do I send scrollerDidScroll events into a datagrid?
2) How do I tell the scroller how big the datagrid is?
3) BONUS: if I don't have fixed height rows in the datagrid, how can I 
figure out how tall the datagrid is in total?


-Ken

___
use-livecode mailing list
use-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: datagrid in iOS scroller

2012-03-22 Thread Ken Corey

On 22/03/2012 20:02, Michael Doub wrote:

I have successfully used form data grids on IOS with no problem.  Can you be 
more clear on the symptoms of your problem?

Are you setting the layer mode of the grid to scrolling and 
AcceleratedRendering  of the stack to true?

http://livecodejournal.com/forum/viewtopic.php?f=23&t=54


Hi Michael,

Thanks for writing.

The symptom is that when I touch and drag to scroll the formatted area 
of the dataGris scrolls up too without revealing any more of the details 
of itself.


-Ken

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


datagrid in iOS scroller

2012-03-22 Thread Ken Corey
Okay, so I decided to devote myself to a little toy project: download a 
list, display it to the user, and filter according to tags.  Precisely 
the sort of thing I'd want a high-level language for, and LiveCode 
should be ideal, as I want it on Android devices as well!


Okay, so I dig around and find dataGrid.  Brilliant, it does exactly 
what I want.


I spend the day figuring out how to make custom templates, populate 
things from a script, filter according to my custom needs, everything. 
Fantastic!


Okay, let's run it on iOS.  Oh rats.  That motif scrollbar has to go.

Okay, let's dig around a bit more.  Find a thread on the forums 
"DataGrid and a native Scroller".


After playing around with it, it seems to only work with a table 
datagrid, not a form datagrid.  Oh dear.


The symptom is that a limited amount of the datagrid is rendered at the 
beginning. When scrolled, that is painfully obvious.


Can anyone here save me from dataGrid purgatory?  Is there an easy 
solution, or should I just dive back into iOS tables?


-Ken

___
use-livecode mailing list
use-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: Setting script in object not working...

2012-03-22 Thread Ken Corey

On 21/03/2012 22:01, Glen Bojsza wrote:

I have a stack where I generate a series of images.

I then set the script of each image to a script that is stored in a custom
property.


I'm *very* new to all of this but...isn't this when the 'behavior' field 
would come in handy?


Put the script into a button, and then for each image you create set the 
behavior field to the button.


-Ken

___
use-livecode mailing list
use-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 wrong with this ?

2012-03-12 Thread Ken Corey

On 12/03/2012 17:34, Klaus on-rev wrote:

## An unfortunately undocumented "feature":
 libUrlSetSSLVerification false


Uh...doesn't that turn off SSL certificate validation?  As in: "we don't 
really know if we're talking to the people we think we are"?


I once saw a beginner write a c program like this:

#include 
main(){
/*
  int badcode; / broken comment
  for(int i=..blah) {
blah(broken code;
  }
*/
}

She wondered why it didn't do anything.  When I told her to remove the 
"/* */" comment symbols, she replied "But then it doesn't compile."


Turning off SSL Certificate Validation sounds an awful lot like "it 
doesn't compile".


-Ken

___
use-livecode mailing list
use-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 wrong with this ?

2012-03-12 Thread Ken Corey

On 12/03/2012 15:38, John Dixon wrote:

on mouseUp
put"https://gg.com/racing";  into raceListURL
put URL raceListURL into fld 1
end mouseUp

It will not work for me under Win XP from boot camp... Can anyone tell me why ?


It's not a help, but as a negative data point it seems to work for me 
(LiveCode 5.5dp1, Windows 7 64 bit).


-Ken

___
use-livecode mailing list
use-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: Apple iPad announcement evokes yawn

2012-03-08 Thread Ken Corey

On 09/03/2012 03:09, Kay C Lan wrote:

paying a lot more for gas than that because I only purchase the cheap stuff
and I have no doubt that it will be well above $8.50 by year's end.


Prices are insane.  I just filled my tank here in the UK, and paid £1.45 
per litre for diesel.


That's 1.45 x 4.54 (to convert to gallons) x 1.57 ( from xe.com, to 
convert to dollars) = $10.33 per gallon, and my car holds about 18 gallons.


Youch!

-Ken

___
use-livecode mailing list
use-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: AW: How to close a modal stack by keyboard?

2012-03-06 Thread Ken Corey

On 06/03/2012 18:58, J. Landman Gay wrote:

On 3/6/12 12:37 PM, Ken Corey wrote:
I develop exclusively on Mac and only use other operating systems for
testing. Do you use any third-party tools? I keep my IDE native.


Come to mention it, I have installed a few things that installed 
plug-ins on 5.0.2, but haven't used them.


Now, of course, I'm running 5.5.0 dp2, but still seeing the crashes.

Could the things I've played with in the past (glx2, mobgui, etc) be 
leaving a plug-in somewhere that 5.5.0 is picking up on?  I tried 
looking in my Users/ken/Library directory, but only saw the preferences 
file there.


-Ken

___
use-livecode mailing list
use-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: AW: How to close a modal stack by keyboard?

2012-03-06 Thread Ken Corey

On 06/03/2012 17:25, J. Landman Gay wrote:

On 3/6/12 6:57 AM, Ken Corey wrote:
Removing Apply would seriously affect my work flow. I routinely try out
new things and if I bork it too much to backtrack, I revert the stack. I
save manually immediately after every change I want to keep. That's
often enough that I rarely lose anything -- but I don't seem to have
much trouble with the IDE locking up. I almost never experience it.


I haven't experienced it much on Windows, but boy do I see it a lot on 
Mac...at least 3 times per week.  When I've just saved and it happens, I 
simply force quit and restart.  If I haven't saved for a while, steam 
comes out of my ears.


-Ken

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


Font of menu on the Mac?

2012-03-06 Thread Ken Corey

Hi All,

I have an oddball problem.

I'm using a custom font to display cursive english writing.  This uses 
unicode characters, and non-standard glyphs (e.g. the left square 
bracket character U005B is a character to join between letters, not a 
bracket).


I would like to write a little tool to let me easily compare joins 
between letters.


I thought of three letters in a label like this:
  left-letter join-letter right-letter

To control this just needs 3 option menus, which when selected updates 
the label...


So I set the option buttons, and with the help of this brilliantly 
written article:

http://livecode.byu.edu/unicode/unicodeInRev.php
Have the correct letters showing in my option buttons (mostly).

However, on the Mac, when I do a pull down, it reverts to the system 
font, which shows "incorrect" characters (for my purposes).


Is there a way to control the font of menus on the Mac?

-Ken




___
use-livecode mailing list
use-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: AW: How to close a modal stack by keyboard?

2012-03-06 Thread Ken Corey

On 06/03/2012 12:48, Tiemo Hollmann TB wrote:

Ctrl-Shift, right click did it!
Thank you!


My pleasure!

One other thing: I *never* use the 'Apply' button any more.  I always 
apply by using the 'Ctrl-S' save function. (Of course, it's Command-S on 
Macs).


That way, when I bork the IDE, or do something silly with 'answer' or 
'modal' or whatever, I am 10 seconds away from restarting LiveCode and 
being right where I was.  This happens often enough that IMNSHO the 
'Apply' button should simply be removed.


I've been burned a few times by programming for 1/2 an hour, hitting 
'Apply' and not saving, only for the IDE to lock, break, obscure itself 
with too many dialogs, or some other such thing. Teeth-gritting kinds of 
stuff.


-Ken

___
use-livecode mailing list
use-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 close a modal stack by keyboard?

2012-03-06 Thread Ken Corey

On 06/03/2012 10:52, Tiemo Hollmann TB wrote:

When I have opened (in the IDE) a modal stack without closebox, how can I
close it by a windows keyboard shortcut? The messagebox window isn't
reachable, because of the modal state of my stack.


I just had a quick play around...

On my machine (Windows 7, LiveCode 5.x), I can bring up a new main 
stack, and set it to be modal (it has no buttons to close, remove or 
anything).


Hold Ctrl-Shift, right click in the window, and you'll get a menu, where 
you can change the 'Stack Mode' to toplevel, where your controls come back.


(On my Mac, it seems to be Command-Ctrl-Shift left-click).

-Ken

___
use-livecode mailing list
use-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: Changing mobile horses in midstream?

2012-03-05 Thread Ken Corey

On 05/03/2012 19:23, J. Landman Gay wrote:

My question may be a nonsensical one, but is it conceivable that an
app could start on one device and somehow be transferred to or woken
up on another, so that the layout work would have to be done again
during the operation of the device?


I don't think that's currently possible.


Well, transferring the app from one physical machine to another might 
not be possible (though it'd be decidedly impressive, methinks)...however...


Could the screen resolution change if the user plugs in the Apple TV 
adapter for the iPad?


Could it be possible for the user to change resolution (rotation)?

If there's use cases where the format changes that we know about, seems 
to make sense to assume that the screen is rather a temporary window, 
not a permanent fixture.


-Ken




___
use-livecode mailing list
use-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: Directories on iOS?

2012-03-04 Thread Ken Corey

Hi Colin & Thomas,

Thanks for writing on a Sunday afternoon!

Yes, this was it exactly.

On 04/03/2012 17:09, Colin Holgate wrote:

specialFolderPath("engine")
use:
specialFolderPath("Documents")


My code now gets a little bit farther...and then crashed with one of 
those cryptic errors about 'revZip'.


Ah, yes, I didn't have the revZip checkbox ticked for .zipping.

All good now.

Thanks guys!

-Ken

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


Directories on iOS?

2012-03-04 Thread Ken Corey

Hi All,

I found a /hugely/ useful error message just now.

My app is called "WriteOn.app", at least for the moment.

Hi All,

I'm hoping someone can help.

I called 'create folder' with the path to my app on my iPad:
/var/mobile/Applications/706ECCCF-DC1D-42F1-B71E-F3D96610DAEF/WriteOn.app/Downloaded

The error in 'the result' is "can't create that directory". Just lovely. 
Might as well put the "engine" light on my iPad. It would tell me as much.


Can anyone shed a tiny bit more light on that error message?
It /shouldn't/ be permissions, because it's within my app's sandbox.
It can't be space, as I've got 2.4GB remaining.
It shouldn't be rights, as the standalone downloads to the iPad just 
fine and is attempting to run when this error happens.
I don't have AFAICT any other app using the same signature (but that 
shouldn't matter anyway, should it)?


Are there any other reasons why one can't create a folder on iOS from 
within LiveCode?


Thanks,

-Ken
kcorey
Â
Posts: 59
Joined: Fri Nov 25, 2011 5:06 pm


___
use-livecode mailing list
use-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: Spinning object animation

2012-03-04 Thread Ken Corey
The frames of the vase are in the opposite order of the globe. 
Rearrange the frames in the opposite order (I did it in GIMP in < 1 
minute).  For the vase, frame 2 becomes frame 12, frame 3 becomes 11, 
4->10, 5->9, 6->8.  It's just swapping the two frames.


Also, the movement felt wrong to me.  If you started moving towards the 
right, but now are moving back towards the left, shouldn't the item you 
appear to have grabbed also be moving towards the left?  Something like 
this:


on mouseMove x,y
   if tMouse = 1  then
  put trunc((tLoc-x)/5) into tDiff

  put (tImageFrame + tDiff) mod (the framecount of img 1) \
into tCFrame

  if tCFrame<0 then
 add the framecount of img 1 to tCFrame
  end if
  set the currentframe of img 1 to tCFrame
   end if
end mouseMove

-Ken

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


Re: Livecode blows a Raspberry?

2012-03-02 Thread Ken Corey

On 29/02/2012 17:37, Bjoernke von Gierke wrote:

You can't, unless you install android, as there's no ARM livecode linux.


I was thinking about this...technically there is, it's just called 
'Android' LiveCode.


Android LiveCode and ARM Linux will have a common linux-based core. Of 
course, I have no idea how tightly Android LiveCode is welded to 
Goggle's extensions, so maybe it's almost as significant as a new 
platform anyway...


But I'd *love* to be able to sell to a customer a "throw-away" computer. 
 Buy the software for $40 and we'll throw in the computer to run it on! 
 Open-source, and unlocked.


Once the RPi foundation proves that it can ramp up to meet demand, I'd 
be rather worried if I were a computer manufacturer.


If the hardware isn't going to cost anything, where are they going to 
make any money at all?


-Ken

___
use-livecode mailing list
use-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: HELP! - Unable to acquire FTP file list...

2012-03-01 Thread Ken Corey

On 01/03/2012 21:26, Keith (Gulf Breeze Ortho Lab) wrote:

Anyway, I am able to upload and download files with no problem. Furthermore, I 
am also able to make directories and delete directories. The problem I am 
having is the acquisition of a file list for the FTP account. I have tried both 
of the following methods, but to no avail:

]libURLSetFTPListCommand "LIST"
get 
libURLftpCommand("LIST","ftp.mydomain.com","myusern...@mydomain.com","mypassword")
answer it


Sounds to me like you're in active ftp mode...which is strange as 
passive mode is the default.

Try:
libURLSetFTPMode "passive"

If that doesn't work, try
libURLSetFTPMode "active"

I've not played with FTP in LiveCode, but I'd bet that solves this one.

-Ken

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


Re: Livecode blows a Raspberry?

2012-02-29 Thread Ken Corey

On 29/02/2012 17:37, Bjoernke von Gierke wrote:

You can't, unless you install android, as there's no ARM livecode linux.

Sadly, I woke up too late to buy one, they sold out before midday :(


Now there's a shame!  The RPi would be the *perfect* target for a rapid 
IDE environment. Hrm...Maybe it's time to brush off PyGame skills again..;^)


Actually, I only did a pre-order through Farnell here in the UK around 
11:15. The devices that were in stock this morning disappeared in a 
matter of moments.


I'm sure you could order one right now...but it won't arrive until April.

Best of luck.

-Ken

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


Re: Livecode blows a Raspberry?

2012-02-29 Thread Ken Corey

On 29/02/2012 16:30, Richmond wrote:

That would be great fun:

http://www.bbc.co.uk/news/technology-17190918


I've got one on order, and it's meant to be arriving the 16th of April. 
 I'll certainly be trying out LiveCode apps on it!


-Ken

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