ChartMaker and LiveCode 8

2015-11-17 Thread FlexibleLearning.com
Has anyone had any issues applying ChartMaker in LiveCode 8? Just wanting to
make sure it remains stable for everyone in these fast-changing times.

Hugh Senior
FLCo


___
use-livecode mailing list
use-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: Beyond POSIX time

2016-01-09 Thread FlexibleLearning.com
> I get the date you first put in. Tried several, all the way back to the
battle of
> Hastings. All good  The negative seconds do the math as well as ordinary
> ones.

If you got a Saturday for 14 October 1066, all good. Otherwise the algorithm
is not accounting for the 1582 or 1752 calendar changes.

> The thing went south when I tried the birth of Charlemangne. I suppose
thee
> digit dates are not well received.

Which date are you using? There are several suggested...

2 April 742AD was a Monday
2 April 747AD was a Sunday
2 April 748AD was a Tuesday

DatePicker for LiveCode www.flexiblelearning.com/datepicker

Hugh Senior
FLCo


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


Love, love, love the idea of a business plan tool kit in LiveCode with SLIDERS

2016-01-25 Thread FlexibleLearning.com
Mark Rauterkus  wrote

> I really love the idea of a set of sliders that can help to set a number
of units
> (widgets, costs, sales, expenses) and have them display numbers and
> projections in other line items.
> 
> For example,
> 
> If I have 200 kids in our water polo summer camp, we'll need 35 on staff.
> But if we have 2,000, we'll need 250 at a cost of $ and summer budget of
$.
> etc.

ChartMaker supports variables and there are open-source samplers (with
sliders) of what you describe included in the trial download from
www.FlexibleLearning.com/chartmaker

Best regards

Hugh Senior
FLCo


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


[ANN] Free update: ChartMaker 3.0 Build 67

2016-02-08 Thread FlexibleLearning.com
I am pleased to announce a free update for ChartMaker for LiveCode. This
release also includes improvements made in internal Build 66.

LiveCode 8: ChartMaker should be entirely LC8-compatible. If you experience
any problems, please report issues so they can be addressed.

Full release notes and the new release download are available here,
including a free 30-day trial (or use your existing key to update):

http://www.flexiblelearning.com/chartmaker/versioning/whatsnew.htm


Note that as a professional product, ChartMaker requires LiveCode
Commercial. However, specific circumstances will be considered for
developers who require unlocked maintenance access for their clients.


Version: 3.0
Build: 67
Release type: Free Update
Issued: 8 February 2016

What's New in this build?

This is a free maintenance release that addresses the following issues...

Improved
. CMsave2File now saves as PNG, GIF, JPG (or uncompressed bmp, pbm and paint
as PPM), based on the filename suffix supplied.
. Scatter charts: X-axis adjusted to display to nearest 5 when the number of
categories <50 (Build 66)


Hugh Senior
FLCo


___
use-livecode mailing list
use-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: Free BasicClock desktop clock for OSX

2016-02-15 Thread FlexibleLearning.com
Nice one, Howard. Hopefully your BasicClock will soon be available for other
platforms also.

1. Free BasicClock
You can see the features of BasicClock here: BasicClock Read Me.pdf
http://designeq.com/deq/software/Welcome%20to%20BasicClock%20V2.04.pdf 

and download it here: BasicClock V2.04.zip
http://designeq.com/deq/software/BasicClock%20V2.04.app.zip 


2. Free ClearView Clock with calendar
Previews and downloads for Windows, Mac OSX and Linux
http://www.flexiblelearning.com/freeclock/


Hugh Senior
FLCo


> Date: Sun, 14 Feb 2016 12:55:26 -0800
> From: Howard Bornstein 
> To: How to use LiveCode 
> Subject: Free BasicClock desktop clock for OSX
> 
> So many clocks today still employ the flip-clock or 7-segment LED display
> aesthetic that is at least 20 years old. Given that we now have high
resolution
> displays and very high-quality fonts available, I wanted to make a simple
clock
> that took advantage of these improvements as an alternative to the ?retro?
> clocks that are mostly available.
> 
> The clock itself is basic?just time, day, and date. It?s designed to sit
in the
> corner of your screen and float over everything else.
> 
> But you can modify the *look* of the clock in many ways, by using
different
> fonts and by modifying the clock and background colors. Other visual
options
> include adding a border, using rounded corners, drop shadows and inner
> shadows.
> 
> The clock is also infinitely resizable so you can make it any size you
need to fit
> in your work area.
> 
> Because there can be so many visual options, there is also a mechanism to
> save your favorites designs and call them up later.
> 
> You can see the features of BasicClock here: BasicClock Read Me.pdf
>  4.pdf>
> 
> and download it here: BasicClock V2.04.zip
> 
> 
> Note that you might have to ?allow? this clock to run in the Security &
Privacy
> control panel if you have Gatekeeper running on your Mac.
> 
> BasicClock is free and currently runs only under OS X.
> 
> Enjoy.
> 
> (BasicClock was inspired by the Clearview desktop clock by Hugh Senior.)
> --
> Regards,
> 
> Howard Bornstein
> ---
> www.designeq.com


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


Re: OT(ish): Selling software downloads - sales tax?

2016-03-19 Thread FlexibleLearning.com
The key word in the new rules for EU VAT is "automated". If your software or
a serial key is manually issued by email, the sale is not automated and not
within the scope of the regulations...

https://whitehall-admin.publishing.service.gov.uk/government/uploads/system/
uploads/attachment_data/file/415931/VAT_MOSS_Flow_chart_FSB_edit_V1_0.pdf

This is my understanding.

Hugh Senior

 
> I sell from the UK and went over to FastSpring due to the new VAT rules
for
> downloads.
> Works fine and no worries about VAT.
> You can select to show the applicable VAT charge up front or at added at
> checkout for the customer.
> Then all you need to do is declare Wholesale Sales from FastSpring as
> earnings.
> Of course there are fees per transaction but its worth it !
> I assume KAGI and others are similar.
> 
> Regards
> Camm


___
use-livecode mailing list
use-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: Installing metacard on linux - cmd line or?

2016-03-27 Thread FlexibleLearning.com
MC runs fine on Windows 10, all versions that I use from v4.5  to v7 (except
the MC properties palette under v7 can sometimes cause problems). Can't help
you with Linux

Hugh Senior (Old Guard)
FLCo

> Oddly enough I've just got MetaCard 2.5 running on Xubuntu 15.10 64 bit!
> 
> Mind you, having done that I'm packing it away and getting on with
> producing stuff for my school
> using LiveCode 7.1.
> 
> Richmond.
> 
> On 27.03.2016 02:21, Mark Talluto wrote:
> >> On Mar 26, 2016, at 12:37 PM, Richard Gaskin
>  wrote:
> >>
> >> If you're looking for older versions of the MetaCard engine, Mark
Talluto
> used to maintain an archive at his company's site, but I can't find the
URL for
> that now.  Perhaps he can chime in with that, but given how much OSes have
> changed since the MC engine was last updated I'd be surprised if it ran on
> any current version of Linux, Mac, or Windows.
> >
> > http://canelasoftware.com/mc/metacard23/index.html
> > http://canelasoftware.com/mc/metacard24/index.html
> > http://canelasoftware.com/mc/metacard25/index.html
> > http://canelasoftware.com/mc/metacard242/index.html
> > http://canelasoftware.com/mc/metacard243/index.html
> >
> >
> > Best regards,
> >
> > Mark Talluto
> > livecloud.io 
> > canelasoftware.com 


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


Re: Cubist's first bug report

2016-06-05 Thread FlexibleLearning.com
This double-evaluation bug has existed since MC v4.2 (the earliest engine I
have immediately to hand).

[snip]
on mouseUp
   put "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16" into myVar
   repeat 1000
  add zero to any item of myVar
   end repeat
   put  myVar
end mouseUp
[/snip]

Hugh Senior
FLCo



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


SelectedObjectChanged in LC8... Bug?

2016-06-14 Thread FlexibleLearning.com
When the "Browse" tool is selected in the UI, any selected objects are
deselected and a SelectedObjectChanged message used to be sent. This is no
longer the case in LC8.

I have also tried trapping for a NewTool message, but this is similarly
ignored.

Any insights, or is this a bug?

Hugh Senior
FLCo




___
use-livecode mailing list
use-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: SelectedObjectChanged in LC8... Bug?

2016-06-18 Thread FlexibleLearning.com
Now submitted as Bug #17876

Hugh Senior
FLCo


> Hi Hugh,
> 
> 
> FlexibleLearning.com wrote
> > When the "Browse" tool is selected in the UI, any selected objects are
> > deselected and a SelectedObjectChanged message used to be sent. This is
> no
> > longer the case in LC8.
> >
> > I have also tried trapping for a NewTool message, but this is similarly
> > ignored.
> >
> > Any insights, or is this a bug?
> >
> > Hugh Senior
> > FLCo
> 
> I see the same and I consider this a bug. When a selected object changes
it
> should trigger SelectedObjectChanged, no matter why it changed.
> 
> I see the same for the new subscription model, ideSelectedObjectChanged
> does
> not trigger when changing from edit to browse tool, but ideToolChanged
> does.
> 
> 
> put this into a card script and put 1 field on the card
> -
> on openCard
>subscribeCardToMessage
> end openCard
> 
> on subscribeCardToMessage
>ideSubscribe "ideSelectedObjectChanged"
>ideSubscribe "ideToolChanged"
> end subscribeCardToMessage
> 
> on ideToolChanged
>put "toolChanged" && the milliseconds into field 1
> end ideToolChanged
> 
> on ideSelectedObjectChanged
>put "selectedObjectchanged" && the milliseconds into field 1
> end ideSelectedObjectChanged
> -
> 
> Kind regards
> Bernd


___
use-livecode mailing list
use-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: Control? Object?

2016-06-19 Thread FlexibleLearning.com
To me the terms "control" and "object" are synonymous. When someone talks of
"controls" I immediately assume they come from a C+ background, whereas if
they refer to "objects" I feel more at home.  On the other hand, "the number
of controls" is standard syntax and "the number of objects" throws an error.

However, is a card or stack an "object"? The word "canvas" has started to
appear recently which I find a bit disconcerting!

Hugh Senior
FLCo

> I am currently teaching some children Livecode programming and ran into
> some difficulty
> on Friday when a child asked me why the menus were full of the word
> "Control"
> when I had been talking about "Objects".
> 
> Well?
> 
> How about changing every use of the word "Control" to "Object"?
> 
> Enhancement Request 17879
> 
> 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


[ANN] FieldFormatter for LC8

2016-06-24 Thread FlexibleLearning.com
A free update for the IDE extension "FieldFormatter" has been released.

The update includes a fix to accommodate a bug in the LC8 IDE so choosing
the Browse tool updates the palette as expected. Click the orange header
icon in your FieldFormatter palette to check for updates.

Full product details are here...
www.FlexibleLearning.com/fieldformatter


Hugh Senior
FLCo


___
use-livecode mailing list
use-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 detailed folders returning incorrect data

2016-07-02 Thread FlexibleLearning.com
As Paul Dupuis pointed out, SpecialFolderPath() also accepts numbers. These
are for Win32...

specialFolderPath (2) : Programs
specialFolderPath (5) : Documents
specialFolderPath (6) : Favorites
specialFolderPath (7) : startup
specialFolderPath (8) : Recent
specialFolderPath (9) : SendTo
specialFolderPath (11) : Start Menu
specialFolderPath (13) : Music
specialFolderPath (14) : Videos
specialFolderPath (16) : Desktop
specialFolderPath (19) : Network Shortcuts
specialFolderPath (20) : Fonts
specialFolderPath (21) : Templates
specialFolderPath (22) : Start Menu
specialFolderPath (23) : Programs
specialFolderPath (24) : StartUp
specialFolderPath (25) : Desktop
specialFolderPath (26) : Roaming
specialFolderPath (27) : Printer Shortcuts
specialFolderPath (28) : Local
specialFolderPath (29) : startup
specialFolderPath (30) : StartUp
specialFolderPath (31) : Favorites
specialFolderPath (32) : INetCache
specialFolderPath (33) : INetCookies
specialFolderPath (34) : History
specialFolderPath (35) : ProgramData
specialFolderPath (36) : Windows
specialFolderPath (37) : System32
specialFolderPath (38) : Program Files (x86)
specialFolderPath (39) : Pictures
specialFolderPath (40) : [UserName]
specialFolderPath (41) : SysWOW64
specialFolderPath (42) : Program Files (x86)
specialFolderPath (43) : Common Files
specialFolderPath (44) : Common Files
specialFolderPath (45) : Templates
specialFolderPath (46) : Documents
specialFolderPath (47) : Administrative Tools
specialFolderPath (48) : Administrative Tools
specialFolderPath (53) : Music
specialFolderPath (54) : Pictures
specialFolderPath (55) : Videos
specialFolderPath (56) : Resources
specialFolderPath (59) : Burn

Hugh Senior
FLCo


___
use-livecode mailing list
use-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: Learning LCB: what's the reading list?

2016-07-03 Thread FlexibleLearning.com
David Bovill  wrote:

> What would you add to a reading list - preferably available online to give
> people the required background knowledge for being able to build things
> with LCB? I'm especially interested in learning how to wrap the
> functionality of existing libraries - so what should we read / learn
before
> we get to see the fruits of the Infinite Livecode campaign?

Apart from "look at the scripts of existing widgets", please!

+1

Hugh Senior
FLCo


___
use-livecode mailing list
use-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: screen capture from LC as video?

2016-07-11 Thread FlexibleLearning.com
On Win32, try Microsoft Expression. The free version does all you describe.

Hugh Senior
FLCo


> Message: 4
> Date: Mon, 11 Jul 2016 02:45:36 +
> From: Terry Judd 
> To: How to use LiveCode 
> Subject: screen capture from LC as video?
> Message-ID: 
> Content-Type: text/plain; charset="Windows-1252"
> 
> LC has some really nice export features allowing you to save the screen,
bits
> of it or specific objects to images or PDF. What I?d really like to do
however is
> to export LC ?presentations? direct to video, so that I can switch from
> delivering personalised but static PDFs (assessment/feedback reports) to
> personalised, and hopefully more engaging, videos. I?m investigating
> scripting PowerPoint and/or Keynote in conjunction with LC to populate and
> export from custom templates to achieve what I?m looking for but I?d much
> rather be working entirely in LC
> 
> I know that video export from LC isn?t currently possible, and is unlikely
to be
> on the LC team's development radar, but is this the sort of thing that
could
> potentially be implemented as an external by someone with the right
skills?
> 
> Terry?


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


Re: screen capture from LC as video?

2016-07-11 Thread FlexibleLearning.com
Hi Terry

Video screen capture is Expression Encoder
(https://www.microsoft.com/en-gb/download/details.aspx?id=18974).

Best regards

Hugh Senior
FLCo

> Thanks Hugh - I?m not much of a Windows user but I?ll check it out. Which
> version of Expression (design or web) should I be looking at?
> 
> Regards,
> 
> Terry...
> 
> On 12/07/2016 1:29 am, "use-livecode on behalf of FlexibleLearning.com"
>  ad...@flexiblelearning.com> wrote:
> 
> >On Win32, try Microsoft Expression. The free version does all you
> >describe.
> >
> >Hugh Senior
> >FLCo


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


[ANN] DatePicker for LiveCode LC8 update

2016-07-22 Thread FlexibleLearning.com
DatePicker for LiveCode

A free update has been released that is LC8 compatible. You can download
Build 33 from...

www.FlexibleLearning.com/datepicker


and see the What's New page here...

www.flexiblelearning.com/datepicker/versioning/whatsnew.htm


Note that DatePicker is not compatible with the free Community editions of
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: looking for an alternative to KAGI, because KAGI ceased operations

2016-08-02 Thread FlexibleLearning.com
EU VAT is only due on AUTOMATED transactions. Communicating by email and
attachments does NOT constitute "Digital Services"...

https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/41
5931/VAT_MOSS_Flow_chart_FSB_edit_V1_0.pdf

If your product requires a key (i.e. they are buying a key to the software)
and you take the time to send your customer a personal email with the key,
my understanding is this is a MANUAL transaction and so falls outside the
scope of the legislation. If the key is issued automatically, then it does
fall in the scope of the legislation.

This is my understanding of this mess. I am not a lawyer and you should make
up your own mind whether you are affected or not.

Hugh Senior
FLCo

Matthias Rebbe wrote:
 
> I know, Paypal is easy. I used it before 01.01.2015. But after that date
the EU
> changed the rules how VAT has to be handled for digital products when sold
> within the EU.
> So the VAT declarations for every EU country i have to do every month is
the
> problem. Using PayPal i am the seller of the product and therefore i am
> responsible for the VAT declarations.
> 
> Every month / 3 months i have to declare how much VAT i have received
> from the customers for each of the EU countries i sold my software to.
> That means, even if i just sell only one license to a customer in France
for
> example, i have to do same amount of paper work as if i have sold  20
> licenses to 20 different customers in France.
> If i sell 5 licenses to 5 different EU countries, i have to do 5
declarations.
> And if i do not sell for example to a french customer one month, i still
have
> to do the declaration for France. In this case with the information that i
did
> not receive ?french? VAT that month.
> 
> You can imagine how much work that is.
> 
> I think i will give Fastspring or Avangate a try. Let?s see who of them
answers
> my email questions faster? ;)
> 
> 
> Matthias


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


Quartam Reports

2016-08-12 Thread FlexibleLearning.com
Is Jan Schenkel still doing Quartam Reports?

Hugh Senior
FLCo


___
use-livecode mailing list
use-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: vCard/vCal Parsing?

2016-09-10 Thread FlexibleLearning.com
Peter Reid  wrote:
> Has anyone got a library for parsing vCard and vCal files?  I found some
forum
> chat from 2006 about a library called vObjectPackage developed by Andre
> Garzia but the links to this are dead.  Does anyone know whether this is
still
> available or whether there are alternatives?
> 
> Thanks
> 
> Peter
> --
> Peter Reid
> Loughborough, UK

Hi Peter

VCard is a pig. I have a set of handlers that do an import and export for
VCard3.0 if you want them. You will have to edit app-specific object
references, but they are pretty obvious.

I cannot help you with vCal.

If interested, perhaps contact me off-list.

Best regards

Hugh Senior
FLCo


___
use-livecode mailing list
use-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 : showing a row by auto scrolling

2014-11-13 Thread FlexibleLearning.com
I would do this manually by setting the vScroll based on (LineNumber *
effective textHeight) - (6 *effective LineHeight)...

on setScroll pLineNumber
put the effective textHeight of fld 1 into tLineHeight
set the hilitedLines of fld "Family" to pLineNumber
set the scroll of fld 1 to (pLineNumber * tLineHeight) - (6 *
tLineHeight)
end setScroll

Hugh Senior
FLCo



Glen Bojsza wrote:

I guess the title is hard to describe what I am trying to do.

Assume a user makes a selection by selecting a choice in a drop down list.

Based on the selection the associated line in the datagrid is located.

But the datagrid has 100+ lines and only shows 12 lines at a time unless
scrolled and the associated line (in this example it is line number 37).

I would like the datagrid to show line number 37 in the visible rows at row
6... in other words it looks like the datagrid was scrolled down to line 37
(keeping the order of the rows the same).

The datagrid doesn't have to visibly scroll just show the selected row (37)
at the position of the 6th row in the visible table with the rows on either
side of it.

I understand if you have questions about this question :-)

regards,

Glen


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


Re: hair-pulling frustration

2014-11-13 Thread FlexibleLearning.com
If this were a realistic option, Edinburgh would have permanent testing
staff. The language, syntax and interaction permutations are simply too vast
for any automated testing whether by machine or human. As Richard G says,
ensure your own software is robust with each new version and log any issues.
The cumulative effect covers as much as is feasible.

If you find a problem, log it don't hog it.

Hugh Senior
FLCo


--
I agree. I have always felt that RunRev should occasionally hire one or two
people for beta-testing. They could test new releases before they are
labelled pre-release. This would cost only a little money and safe hundreds,
if not thousands of people lots of frustrations.

--
Best regards,

Mark Schonewille


___
use-livecode mailing list
use-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 are variables passed from functions?

2014-11-16 Thread FlexibleLearning.com
Agreed... Leave the existing behaviour alone.

It is not a bug but an undocumented feature. And yes, it will break at least
one of my products if changed!

This issue has already been discussed some time ago. It was determined to
leave the behaviour unchanged for both flexibility and backwards
compatibility.

If you don't want this behaviour, ensure you return values at each step.
Simples.

Hugh Senior
FLCo



Assuming that this has been the behaviour of Metacard, Revolution, Livecode
(and possibly Hypercard) for 22 years (or more), it is perhaps best just
accepted as a fait accompli.  If no-one has noticed this "aberrant"
behaviour in those 2 (or more decades), then fixing it now might well lead
to problems.  IMO better for Runrev to just state emphatically that this is
how things work in Livecode.

Bernard



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


[REQ] ControlManager for LiveCode

2014-11-20 Thread FlexibleLearning.com
ControlManager for LiveCode

A Community Compatible IDE enhancement is slated for release in December.

For a sneak preview (Windows screenshots, but cross-platform)

www.flexiblelearning.com/controlmanager 


Testers are requested
- for nit-picking in order to maintain high standards. If interested, do
please contact me off-list.


Thank you,

Hugh Senior
FLCo


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


fieldtrip (was re: Can standalones give users...)

2014-11-22 Thread FlexibleLearning.com
Interesting. I was one of the up-front crowd-funding contributors to this,
but then heard no more about it. I had assumed the project had gone belly
up.

Curry...

Is it ready for prime time now? How do we get our copy?

Hugh Senior
FLCo


> Tom,
> 
> i do not know if this is possible.
> 
> But there is a RTF Editor library from Curry Kenworthy. It?s not exact
what
> your are looking for, but it is very useful if you want to give the user
some
> text formatting functions.
> 
> I am using it in several of my products.
> 
> Unfortunately i cannot provide you a link where you can purchase it.
> I have just the link to the old Preorder page:
> http://www.curryk.com/fieldtrip-preorder.html
> 
> Maybe you contact Curry directly to ask if you can buy it.
> 
> Regards,
> 
> Matthias


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


Button is behavior

2014-11-27 Thread FlexibleLearning.com
Is there a way to identify whether a button is used as a behavior?

e.g. the isBehavior of btn 1

Just asking.

Hugh Senior
FLCo


___
use-livecode mailing list
use-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: Button is behavior

2014-11-27 Thread FlexibleLearning.com
Thought as much, Mike. Only wondered if I had missed some new keyword among
all the enhancements recently made by the mothereship.


As the years advance I find I miss more than I used to, and what don't miss
I forget!

Hugh Senior
FLCo


Mike Bonner  wrote:

Was curious and tried it. 4000 controls, took 107 milliseconds to index, on
my system.  It picked up datagrid behaviors too.

local sObehaveListA
on mouseUp
   put the milliseconds into tStart
   put empty into sObehaveListA
   repeat with i = 1 to (the number of controls of this stack)
  if the behavior of control i is not empty then
 put the name of control i & cr after sObehaveListA[(the behavior
of control i)]
  end if
   end repeat
   put the milliseconds - tStart & cr
put the keys of sObehaveListA after msg
end mouseUp


___
use-livecode mailing list
use-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: Button is behavior

2014-11-28 Thread FlexibleLearning.com
It's a supplementary idea for the upcoming Control Manager utility to show
not only the style but the function of a button.

More generally, behaviours are a bit like icons, although locating a
behaviour source is easier than locating an image source!

Hugh Senior
FLCo


Mike Bonner wrote

> Mind if I ask why you need this? Always interested in the hows and whys of
others, 
> which often gives me new ideas I may not have otherwise had.


___
use-livecode mailing list
use-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: Button is behavior

2014-11-29 Thread FlexibleLearning.com
'Resolve image' is useful to know.

However, the indexing solution to identify buttons used as behaviors is fine
as far as it goes, but it will inevitable omit any behaviour buttons if any
'calling' objects are not currently loaded. As you say, behaviors can be set
and changed dynamically, but then so can the icon property. On the other
hand, I am coming to the conclusion that an 'isBehavior' property is
essentially meaningless because a behaviour only means 'insert into message
passing hierarchy'. There is no property to identify whether an object
contains a frontscript or backscript, and the same would thus be true of a
behaviour script. Until actually applied, it is not a behaviour anyway.

My apologies for wasting everyone's time.

Hugh Senior
FLCo


Richard Gaskin wrote:

Hugh Senior wrote:
> It's a supplementary idea for the upcoming Control Manager utility to 
> show not only the style but the function of a button.
>
> More generally, behaviours are a bit like icons, although locating a 
> behaviour source is easier than locating an image source!

That got much easier a few builds ago with the "resolve image" command -
from its Dictionary entry:

 This command resolves a short id or name of an image as would
 be used  for an icon and sets it to the long ID of the image
 according to the documented rules for resolving icons.

For behaviors, anything the IDE were to provide would have to use a
brute-force on-the-fly algorithm very similar to the one Mike provided,
since behaviors can be set and changed dynamically at any 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


[ANN] ControlManager for LiveCode

2014-12-01 Thread FlexibleLearning.com
ControlManager for LiveCode is now available, with full details here...

www.flexibleLearning.com/controlmanager

It is "LiveCode-Community compatible" and has been tested from v5.5.4
(minimum required), through v6 to v7.

What it aims to provide...

- It is designed to be simple to use and provide responsive, easy-view
access to your project structure, properties and geometry including access
to any hidden and off-screen objects.

- It includes useful additional features such as layout grid display, image
manipulation options, and property tips along with direct look-up access to
LiveCode's Dictionary resource when you want more information.

- It starts working as soon as you select an editing tool, stops when you
browse or close the palette, and really just looks after itself in between.


My public thanks to all the testers and their positive feedback. I hope you
will find it a useful and informative addition to your development tools.


Hugh Senior
FLCo






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


[ANN] ControlManager for LiveCode

2014-12-02 Thread FlexibleLearning.com
Thank you, Tom!

Hugh Senior
FLCo
 
> Congratulations, Hugh. This looks like it will be a great productivity
boost
> to my work. I'm in.
> -- Tom Bodine


___
use-livecode mailing list
use-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] ControlManager for LiveCode

2014-12-02 Thread FlexibleLearning.com
It's a bit awkward providing a demo or trial version as ControlManager is a
Community-compatible product.

A video can certainly be done, once I find a replacement screen grabber.
Windows trashed my last one so I do not have the technology at the moment.

Hugh Senior
FLCo
www.flexiblelearning.com/controlmanager



> Hi Hugh,
>
> Do you have any plans to provide a demo or trial version? If not, some
videos showing the product in action would be helpful.  Thanks!
>
>
> Best regards,
>
> Mark Talluto
> livecloud.io
> canelasoftware.com


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


RE: How to open a second window w/o disturbing calling stack

2014-12-03 Thread FlexibleLearning.com
Lock messages
Go cd 1 of stack "mySubStack" as palette
Unlock messages

Or have I misunderstood?

Hugh Senior
FLCo


> Folks:
> I want to open a second window in my app. The window in the calling stack
is
> the first card of a substack named ?myCallingSubstack?.  I want to go to
the
> first card of a substack named ?mySubstack?. When I do
> 
> go to stack ?mySubstack?, the new windows sits behind the calling
> ?myCallingSubstack?, but ?myCallingSubstack? also reverts to the last card
> showing in the main stack.
> 
> I want the stack ?mySubstack? to appear in front in a normal window, and I
> want the ?myCallingSubstack? to stay as it is.
> 
> What?s the best way to do this? Docs and lessons don?t seem to address
> this.
> 
> Regards,
> Bill
> 
> William A. Prothero
> http://es.earthednet.org/


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


[ANN] ControlManager for LiveCode, in-store now

2014-12-05 Thread FlexibleLearning.com
ControlManager for Livecode is now available in-store...

https://livecode.com/store/marketplace/controlManager-1-0-0

as well as direct from www.flexibleLearning.com/controlmanager


Thank you for all the positive feedback.


And ControlManager is improving all the time. Just added...

. Embedded media
. 'Celestial overview' improvements

I hope you will find it a useful addition to your development toolbox.


Hugh Senior
FLCo


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


[ANN] ControlManager for LiveCode, in-store now

2014-12-06 Thread FlexibleLearning.com
Hi Sean,

Thank you, Sean.

Suppressing messages in the IDE simply anaesthetises the palette. Which is
what one would expect since it is message-driven.

Feel free to write to me off-list if you have any problems, though.

Hugh Senior
FLCo



Sean Cole wrote...

Me to :) Well done Hugh.

(Turning off messages tends to break it - Close it down first before
inhibiting messages)

Sean Cole
*Pi Digital Productions Ltd*


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


[ANN] ControlManager video

2014-12-22 Thread FlexibleLearning.com
As requested, a short introductory video of ControlManager in action...

http://youtu.be/QtrhtSXCsfk

Further details and purchasing options at...
www.FlexibleLearning.com/controlmanager
or https://livecode.com/store/marketplace/controlManager-1-0-0


Hugh Senior
FLCo


___
use-livecode mailing list
use-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] ControlManager video

2014-12-23 Thread FlexibleLearning.com
Thank you, Gerry!

Build 63 has just been sent to all purchasers as a free update. If any
purchasers have not received it, do please let me know.

Video at http://youtu.be/QtrhtSXCsfk
Further details and purchasing options at
www.FlexibleLearning.com/controlmanager 
or https://livecode.com/store/marketplace/controlManager-1-0-0 


Hugh Senior
FLCo

> This product comes with awesome support - Hugh spend an hour and a half
> with me on Skype trying to find a solution to a bug, and lots more time on
> the problem after that conversation.
> 
> Highly recommended!
> 
> Gerry



___
use-livecode mailing list
use-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: 7.0.1 community stable

2014-12-23 Thread FlexibleLearning.com
Hi Mike

Don't know if related, but I got similar errors for 6.7.3rc3 after an
automatic  Win7 system update (something about invalid permissions).
Re-started the computer then tried again successfully.

Alternatively, Edinburgh inadvertently packed 7.0.1 as 64-bit exe in a
32-bit installer.

Best regards,

Hugh Senior
FLCo
 
> Hey, i'm getting an error "(the path to the installer executable.exe) is
> not a valid win32 application.  Is anyone else having trouble getting it
to
> install?
> 
> I'm on win7 home premium, 64 bit.


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


[ANN] Free: Google-style typing filter for LiveCode

2014-12-23 Thread FlexibleLearning.com
Over the years, people keep asking about how to implement 'display as you
type' widget thang.

So as a Christmas gift to you all, TypingFilter for LiveCode is fast,
flexible and FREE. The download with example implementation and screenshots
are available here...

www.FlexibleLearning.com/typingfilter


Enjoy!


Hugh Senior
FLCo


___
use-livecode mailing list
use-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] Free: Google-style typing filter for LiveCode

2014-12-24 Thread FlexibleLearning.com
Richard

TypingFilter for LiveCode is free as in "no charge, gratis, for nothing, a
gift, a present, complimentary"...

www.FlexibleLearning.com/typingfilter 

Hugh Senior
FLCo

On Tue, Dec 23, 2014 at 5:36 AM, FlexibleLearning.com
 wrote:

> So as a Christmas gift to you all, TypingFilter for LiveCode is fast,
> flexible and FREE. The download with example implementation and
screenshots
> are available here...
>

Wow.  THank you for releasing that.

But which kind of "Free" :)   Public Domain, BSD license, gpl, other?

-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462


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


[OT] Re-factoring

2014-12-29 Thread FlexibleLearning.com
Passing this on...

http://www.infoq.com/articles/natural-course-refactoring

Okay, the example is not LC but the principles apply. Something to aspire
to, anyway!

Hugh Senior
FLCo


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


[ANN] Free: Google-style typing filter for LiveCode

2014-12-30 Thread FlexibleLearning.com
Thank you, Bob.

www.FlexibleLearning.com/typingfilter

Hugh Senior
FLCo


On Mon, 29 Dec 2014 23:39:29 +, Bob Sneidar
 wrote:

I was having the same epiphany. I did this with a local mySQL database a
little while back and it worked a peach. I had a little delay timer going so
that if the user typed another character within a certain time frame the
counter would reset. Once the user stopped typing for a small length of
time, *then* the query would trigger.

What I didn't do was the look and feel part. THAT I need to incorporate.
Very cool.

Bob S


On Dec 24, 2014, at 13:47 , Peter Haworth
mailto:p...@lcsql.com>> wrote:

Thanks Hugh, very nice.

I couldn't resist trying this using an SQLite database instead of the
preloaded data.  I created a database with one table named Places with one
column named Data that holds the preloaded data, then imported the
preloaded data into it.

The script changes were pretty minimal, just open the database at startup,
then instead of the filter command:

put revDataFromQuery(,,gDBID,"SELECT Data FROM Places WHERE Data LIKE :1
ORDER BY Data","tSearch")

tSearch is the variable that holds the search string with "%" signs either
after or before/after depending on the wildcard setting.

The query takes an average of around 15 msecs vs the filter command taking
perhaps 2msecs but neither time is noticeable to a user.



Pete


___
use-livecode mailing list
use-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: Project Browser vs App Browser (was "script scope variables inexplicably becoming unset")

2015-01-05 Thread FlexibleLearning.com
Like Bill, I faced the same issue with ControlManager. I also decided to
release it as Community Compatible so it works on all versions of LiveCode
and included a video...

www.FlexibleLearning.com/controlmanager

www.youtube.com/watch?v=QtrhtSXCsfk

I think most folks are only interested in whether it actually works, whether
it suits their workflow, and whether it does what they need.

Hugh Senior
FLCo


> On Sat, Jan 3, 2015 at 10:40 PM, Bill Vlahos  wrote:
> 
> > I faced this same dilemma with lcTaskList.
> >
> > I had many great people on this list encourage me to not sweat my coding
> > insecurities. It is what it is and if it works no one cares.
> > You are correct in that there is no way to protect your code if it is
> > unlocked.
> > You either release a feature reduced version as the trial where the
> > ?missing? code is removed (not just commented - removed)
> > You make it shareware/honor system
> > You eliminate the trial version entirely and sell the unprotected
version.
> > People buy it or not based on screen shots, demonstrations videos,
and/or
> > reputation
> > With lcTaskList I chose #3: eliminate the trial version completely and
> > only sell a version that is unprotected so it works on all versions of
> > LiveCode.
> >
> > Bill Vlahos


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


[ATT] Derek Henderson, South Africa

2015-01-08 Thread FlexibleLearning.com
Derek,

I have tried twice to reply to your email. Each one has bounced back with
"Recipient address rejected: User unknown in local recipient table".

I am assuming you want to use flcDatePicker without the supplied
flcDatePicker Utility stack...

You can "start using stack flcDatePicker" if the stackfile is visible to the
engine. You may need to set the defaultFolder first. This has nothing to do
with flcDatePicker... it is how the Livecode engine works.

One way is to place the flcDatePicker file in the same folder as your own
work, like this:

Put the defaultFolder into tDefDir
Set the itemDel to "/"
Set the defaultFolder to item 1 to -2 of the effective filename of this
stack
Start using stack "flcDatePicker"
Set the defaultFolder to tDefDir


I hope this helps.

Hugh Senior
FLCo
www.FlexibleLearning.com/datepicker


___
use-livecode mailing list
use-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: Fields Have Labels

2015-01-13 Thread FlexibleLearning.com
TitleWidth (LabelWidth) already exists for buttons... would including the
property for field objects be useful?

Hugh Senior
FLCo


___
use-livecode mailing list
use-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: Fields Have Labels

2015-01-13 Thread FlexibleLearning.com
Hi Bill,

You should contact Pete Haworth if you have problems with lcstackbrowser...
mine is ControlBrowser. Similar, but very different!

With best regards,

Hugh Senior
FLCo


Original message:

Hugh,
Just a "heads up" re your lcstackbrowser app. I found that it interferes
with some of my code. Also, I got a message that it was trying to open one
of your handlers and couldn't because code was protected. I do a lot of
creating of fields, lines, and graphic elements. I'm trying to finish a
project, so don't have time to mess with it, so I had to remove it, as my
app behaved oddly.  So, just wondering if your handlers might have names
that interfere with mine.

Best,
Bill


___
use-livecode mailing list
use-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] I'm going to go live in a cave

2015-01-14 Thread FlexibleLearning.com
A good keyboard is like a good piano. I still use my original Gateway
keyboard, c1995 vintage (remember them?). Never found a better one and still
works as good as new. I did clean it once when I could no longer read some
of the keys but it's back filthy again. Time for the next 10-year spring
clean, methinks where did I put those cotton swabs?

Hugh Senior
FLCo

Jacque wrote:

Actually I do. I never could get used to low profile keyboards so I'm still
using an ancient wired one. All the paint has worn off the keys on the left
side (the S went first) and the punctuation on the right is mostly gone.
It's filthy because I'm afraid if I clean it there will be nothing left. And
besides, it has a keypad.


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


[ANN] ControlManager build 70 released

2015-01-29 Thread FlexibleLearning.com
I am delighted to announce that an updated version of ControlManager is now
available. You can find out more at

www.FlexibleLearning.com/controlmanager (includes video)

and at

livecode.com/store/marketplace/controlManager-1-0-0  (now with lots of
5-star ratings... Thanks!)

All registered users should have received a free update. If you didn't,
please let me know.


Meanwhile, this is what has been included in the latest build...

New in Build 70
. Filter: A filter has been added to the Control Browser tab. Options
include 'All matches' and 'Prefix matches only'.
. Global Properties: More than 120 global properties are now included. Click
the new green 'G' icon.
. Object Properties: An additional 37 additional object properties are
included. There are now 320 object properties available, including
IconGravity (6.7+) and CenterRect (6.7+)
. Added 'Architecture' and 'Externals' as property groupings
. Library stacks are now listed in the Celestial Overview
. Options menu: Short or long object forms can now be chosen (e.g. "btn" or
"button", "grp" or "group")
. Options menu: Vertical scrollbars may now be omitted from the Control and
Properties browsers for less clutter or if you prefer to use the mousewheel
. Unused backgrounds: A warning icon with action access is now displayed if
there are unused (i.e. unplaced) stack backgrounds

Improvements in Build 70
. Control Browser: Celestial overview now supports stack collapse/expand
with shift-click to collapse/expand all
. Property Browser: Shift-click property disclosures to collapse/expand all
. Disclosure memory: List disclosure states are now retained (unless
filtering is active) until the list content is updated
. Window height: Maximum window height increased to maximum allowed
. Inline behavior icons now reflect password protection
. Read-only Properties text is now always selectable so it can be copied if
required with Cmd/Ctrl.C

Changes in Control Browser behaviour in Build 70
A visual 'cheat sheet' is now supplied with the package for reference
. Double-clicking no longer displays the Properties Browser
. Double-clicking on a listed group now navigates to edit the group
. Double-clicking a listed card now navigates to the card controls
. Clicking the object icon edits the script
. Clicking the behavior icon edits the behaviour script
. Clicking the visibility bullet icons shows/hides the object

Bugfixes in Build 70
. Control Browser: Celestial overview: Both stack and card selection changes
are now reflected in the palette
. Control Browser: Celestial overview: Double-clicking embedded media no
longer throws an error
. Deeply indented list items no longer over-truncate
. Stacks deleted by the IDE's Project Browser no longer result in a
ControlManager error
. Properties: 'Copy list' now works for properties displayed by type



With best regards,

Hugh Senior
FLCo


___
use-livecode mailing list
use-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 detect that user closed window

2015-02-05 Thread FlexibleLearning.com
The IDE can be easily suppressed with...

on closeStackRequest
   lock messages
save this stack
pass closeStackRequest
end closeStackRequest

Hugh Senior
FLCo


> Bob Sneidar wrote:
> 
> > Nope. You would think it does, but I have this in the stack script:
> >
> > on closeStackRequest
> >save this stack
> >pass closeStackRequest
> > end closeStackRequest
> >
> > I still get the save dialog when I close it.


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


[ANN] Free update: ChartMaker 3.0 Build 63

2015-02-16 Thread FlexibleLearning.com
I am pleased to announce a free update for ChartMaker that is LC6.7 and LC7
compatible.

Full release notes and the new release download are available here,
including a free 30-day trial (or use your existing key to update):
http://www.flexiblelearning.com/chartmaker/versioning/whatsnew.htm 

The download is also available from
http://livecode.com/store/marketplace/chartmaker/ 

Note that as a professional product, ChartMaker requires LiveCode
Commercial. However, specific circumstances will be considered for
developers who require unlocked maintenance access for their clients.


Version: 3.0
Build: 63
Release type: Update
Issued: 16 Feb 2015

ChartMaker now requires LiveCode 5.5 or later. Earlier versions are not
supported.

What's New in this build?

This is a free maintenance release that addresses the following issues...

NEW
. General LC7 compatibility

. Photos and images (png, gif or jpeg) can now be used as backgrounds in
line, scatter, bar and column charts, either embedded or by reference. See
'GridImagePath', 'GridImageEmbed' and 'GridImageBlend' in the documentation.

. Line and Scatter chart x-axis labels can now be placed either above or
below the chart. See 'XLabelPosition' in the documentation.


FIXED
. Title display fixed for LC7 (was truncating the field)

. Utility: Now correctly names chart windows when a duplicate stack file
name exists

. Scatter charts: Decimal Precision ("DP=") is now applied as
expected to data labels


IMPROVED
. Legend display fixed for LC7 (only displayed 'aim lines' are now listed)

. Rotated text improved for LC7 (now set to 6x size before resizing instead
of 4x)

. Utility: Due to engine performance in LC6.7 and LC7, animation when
expanding sections has been suppressed.


ADJUSTED
. Decimal Precision ("DP=") now applies to axis labels as well as
data labels.

. ChartSize minimum plot size was 100x100. It is now 50x50.  Defaults remain
as 300x300 for Mobile, and 600x400 for Desktop.

. ChartSize maximum plot was was automatically limited to the monitor.This
limitation has been removed.


ENGINE FIXES AFFECTING CHARTMAKER 
Issues in LC6.6 have been addressed in LC6.7 and LC7. The previous latest
compatible version was LC6.5.1

. Missing data items now handled correctly (split by column omited empty
lines)

. PDF printing (failed with zero byte files)

. Utility: Combobox issues (empty label recognition)

. Utility: Popup menus (failed to update)


Hugh Senior
FLCo


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


ChartMaker update

2015-02-17 Thread FlexibleLearning.com
There was an error in the update issued yesterday afternoon. A replacement
was issued yesterday evening (UK time).

If you were quick off the mark yesterday, do please check you actually have
the most recent version! Open the Utility and click the "Check for Updates"
button, top right corner.

My apologies if you are inconvenienced.

Best regards,

Hugh Senior
FLCo


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


ChartMaker Build 64

2015-02-17 Thread FlexibleLearning.com
Something very wrong happened to the Build 63 uploads yesterday. All the
fixes failed to stick... twice!

Build 64 has just been uploaded which should now work as expected. If you
have any problems, do please let me know.

This is truly embarrassing.

Hugh Senior
FLCo


Yesterday I wrote...
There was an error in the update issued yesterday afternoon. A replacement
was issued yesterday evening (UK time).

If you were quick off the mark yesterday, do please check you actually have
the most recent version! Open the Utility and click the "Check for Updates"
button, top right corner.

My apologies if you are inconvenienced.

Best regards,

Hugh Senior
FLCo


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


[RANT] Really annoying posts

2015-02-23 Thread FlexibleLearning.com

We are, I know, a forgiving lot and my apologies if this offends, but please
don't waste everyone's time asking about something that you can frankly do
yourself. It says more about your attitude to others than anything else.

Bad: "Can I reference a png file?"
Means: I'm too lazy to try it, so just tell me.
Good: "I tried to reference a png file but it is not being displayed. Why?"

Bad: "Can I use a variable to store an array?"
Means: I've not read the manual or looked anything up, and it's easier if I
get you to do it.
Good: "Why can I not see an array I put in a variable?"

Bad: "Is the measureWidth the same as the formattedWidth?"
Means: I can't be bothered to do a simple comparison.
Good: "Why is the measureWidth default value not the same as the
formattedWidth?"

I appreciate that many on this list do not speak English as a first
language, but don't ask others to do your thinking for you.


Hugh Senior
FLCo 


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


Fast-tracking LiveCode for beginners

2015-03-12 Thread FlexibleLearning.com
I am looking for a means to fast-track a client into the world of LiveCode
programming.

Am considering Devin's "LiveCode University" course, and delivering it
myself over a concentrated one week period for him in person.

Any comments or other suggestions?

Hugh Senior
FLCo


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


[JOB] SetupBuilder

2015-03-23 Thread FlexibleLearning.com
If anyone has experience of setupBuilder installer software or similar,
please contact me off-list... I have an on-going job for you!

Best regards

Hugh Senior
FLCo


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


Finding the source of a icon's image

2015-03-27 Thread FlexibleLearning.com
Can someone please remind me what the magic word is to locate the image
source for icon/hilitedIcon etc? Have scoured the dictionary to no avail.

e.g.  get the imageSource of the icon of btn 1 --> img id 1003 of cd 1 of
stack "artwork"

Hugh Senior
FLCo


___
use-livecode mailing list
use-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: Summer (Winter) Time Fun

2015-04-01 Thread FlexibleLearning.com
I was going to post a link to EXACTLY the same video clip!

There are simply some things that defy any reasonable solution, but a 3am
check-point on the change-over day is perhaps the least painful... or you
allow a 1-day grace period on any date.

Hugh Senior
FLCo


Peter wrote...

If you have 10 minutes to spare, check out the video at
https://youtu.be/-5wpm-gesOY on the topic of dealing with time zones and
various other time related anomalies It's quite funny!

It does mention that there is open source code to deal with this but doesn't
say where it can be found.

Pete
lcSQL Software 


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


[ANN] Free update: ChartMaker 3.0 Build 65

2015-04-08 Thread FlexibleLearning.com
I am pleased to announce a free update for ChartMaker that is LC6.7 and LC7
compatible.

Full release notes and the new release download are available here,
including a free 30-day trial (or use your existing key to update):

http://www.flexiblelearning.com/chartmaker/versioning/whatsnew.htm 


Note that as a professional product, ChartMaker requires LiveCode
Commercial. However, specific circumstances will be considered for
developers who require unlocked maintenance access for their clients.


Version: 3.0
Build: 65
Release type: Update
Issued: 8 April 2015

ChartMaker now requires LiveCode 5.5 or later. Earlier versions are not
supported.

What's New in this build?

This is a free maintenance release that addresses the following issues...

NEW
. General LC7 compatibility

FIXED
. Line charts did not reset "formatForPrinting" to false. Fixed.

. Incorrect multiple series labelling. Fixed

. XFormat now correctly displays on CMupdateChart

. Utility: Category Display: Wizard: Popup Tip... Now closes as expected


Hugh Senior
FLCo


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


Cyclomatic complexity

2015-06-07 Thread FlexibleLearning.com
Hi Richard,

I would be deeply interested in your stack!

We have an inherited stack here that is to undergo refactoring in the near
future and a basic 'complexity metric' would be incredibly useful.

Please ping me off-list.

Best regards,

Hugh Senior
FLCo



Richard wrote:

 For many years a lot of new work I was doing started with inheriting 
code bases written by others, so it became useful to have a tool that 
could give me an overview of some aspects of the code base by performing 
static analysis of the scripts.

Here's that thrown-together result:


Going forward, as time permits I'll be expanding that to include a much 
more useful presentation with more info, but this primitive early form 
is noteworthy here if only because it uses very old and sloppy 
techniques that I know can be made much faster.

And that sloppy version takes about 1 second to run on the 13 KLOC code 
base shown.

For the info it provides, well worth the onerous wait. :)

I see many good static code base analysis tools for other languages, and 
there's no reason we can't have lots of them for LC too.

I haven't seen a language with a built-in function for finding orphaned 
handlers across a code base, but Terence if you can point me to one I'll 
see if I can include that in this LC PM toolkit.

--
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web


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

2015-06-30 Thread FlexibleLearning.com
You don't have to log in to view to the 3rd party "Extensions" pages, but
only the briefest of information is displayed. All the screenshots,
write-ups and star ratings have failed to be transferred to the new-look
website as promised.

All most disappointing.

Hugh Senior
FLCo

 
> On Mon, Jun 29, 2015 at 11:09 AM Magicgate Software - Skip Kimpel <
> s...@magicgate.com> wrote:
> 
> > You can find it under "Extensions" if you are going through the top
> > navigation and "3rd Party" once logged in and navigating from the left
> menu
> > bar.
> >
> > SKIP KIMPEL
> >
> > On Mon, Jun 29, 2015 at 1:33 PM, Peter Haworth  wrote:
> >
> > > Did the Livecode store go away?  I mean the part where 3rd party
> > developers
> > > can list their products for sale?  Can't find it anywhere on the
Livecode
> > > web site.


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


RE: Best way to check if a Field is a label?

2015-07-08 Thread FlexibleLearning.com
Hi Peter

As you will have gathered, there is no "label" property as such, simply a
field with pre-defined attributes including lockText. It depends what you
are trying to do and why you need to identify them, but if you need to
regularly test the easiest way may be to manually specify a customProperty
for each label field so that...

If the cLabelStyle of the target = true then [etc]

Best regards

Hugh Senior
FLCo



> -Original Message-
> At the moment I?m checking the lockText property to distinguish a Label
> Field. Is there a better or more reliable way?
> 
> Regards
> 
> Peter


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


ChartMaker and Drawing a Graphic Segment

2015-07-28 Thread FlexibleLearning.com
ChartMaker details and direct purchase are available here...

www.flexiblelearning.com/chartmaker


> On Mon, Jul 27, 2015 at 2:08 PM, Peter Haworth  wrote:
>
>> Wondering if you know about ChartMaker, available at the Livecode store
>> for $79.  Might save you a lot of grief for a fairly small outlay.


___
use-livecode mailing list
use-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: Compare numeric strings with leading zeros

2015-09-03 Thread FlexibleLearning.com
I would simply force a string comparison...

   return num1 & space=num2 & space

Hugh Senior
FLCo


> From: "Ralph DiMola" 
> 
> Feeling pretty clueless here but...
> 
> I need ("5" = "005") to be false. This is for password validation.
> 
> Ralph DiMola


___
use-livecode mailing list
use-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: Compare numeric strings with leading zeros

2015-09-03 Thread FlexibleLearning.com
Or even just EMPTY converts to a string...

   return num1 & ""=num2 & ""

Hugh Senior
FLCo


> From: "Ralph DiMola" 
> 
> Feeling pretty clueless here but...
> 
> I need ("5" = "005") to be false. This is for password validation.
> 
> Ralph DiMola


___
use-livecode mailing list
use-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 for the rest of us

2015-09-19 Thread FlexibleLearning.com
 > On 9/19/15, 1:59, R.H. wrote:

> > Why not there is a field that can easily be set to display
> > international date and time formats and automatically would default to
> > local standards without having to script a lot and redoing the same
> > work over and over again? Why not a field can be defined to represent
> > whatever data it should provide and automatically check user input?

FieldFormatter does this and is available from
www.flexiblelearning.com/fieldformatter

Hugh Senior
FLCo


___
use-livecode mailing list
use-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: Why there is a difference between the gps timestamp and "the seconds"?

2015-10-24 Thread FlexibleLearning.com
Looks like a 1 hour offset, plus a bit of lag.

Hugh Senior
FLCo

> Hello,
> 
> With mobilecurrentlocation() we can get the timestamp : "the time at which
> the measurement was taken, in seconds since 1970."
> if the same time i get "the seconds" ("The seconds function returns the
total
> number of seconds since midnight, January 1, 1970 GMT.), I do not get back
> the same value, even if the coordinate change and seem to be good) :
> 
> timestamp : 1445675392
> the seconds : 1445679061
> 
> This is not always the same offset, but it's always "big".
> 
> It is normal ?
> 
> 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


[OT] For Mark Laffoon: Scripter's Scrapbook

2014-05-06 Thread FlexibleLearning.com
Mark

Your gmail account is bouncing my emails to you. 

Since a Scrapbook link requires some text or an in-line image, you could try
using the API and ssBkSetEntryData (#17 in the API webpage) to set the
required link as htmlText...

Example:
ssBkSetEntryData "MyEntry","Code","This is a test","HTML"

LiveCode's htmlText has recently changed a bit, so the exact format may need
some trial and error!

Hugh Senior
FLCo

> Message:  I have been banging away at the API, and have not found a 
> way to include a link to another entry when setting an entries data. 
> Any way I can do this?



___
use-livecode mailing list
use-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: Shout out to Hugh Senior

2014-06-12 Thread FlexibleLearning.com
Thank you for the heads-up, Simon.

Something strange going on with the LC website server. It is insisting on an
https prefix for the download link, which is why a spurious certificate
error is displayed.

The correct download link should be...
http://www.flexiblelearning.com/chartmaker/downloads/ChartMaker_LC.zip

It seems I am unable to correct the link, and have notified Heather.

Thanks again

Best regards

Hugh Senior
FLCo



-- Original message

Hi Hugh,
The link from the LiveCode store to your Chartmaker demo is off
Current
https://www.flexiblelearning.com/chartmaker/downloads/ChartMaker_LC.zip
Actual link on your site
http://www.flexiblelearning.com/chartmaker/downloads/ChartMaker.zip

Not sure if you want to wait for runRev to fix it.

Simon




___
use-livecode mailing list
use-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: Milliseconds -> minutes and seconds

2014-06-28 Thread FlexibleLearning.com
Have a look at FieldFormatter. It does just this sort of thing...

www.flexibleLearning.com/fieldformatter

Hugh Senior
FLCo



Gerry Orkin  wrote

Hi all

I'm playing an .mp3 file in iOS and saving the elapsed playing time (in
milliseconds as reported by the native player) into an sqlite database as it
plays. That's working fine.

I'm now struggling to convert those milliseconds into a MM:SS format for
real time display. Anyone done that?

Cheers

Gerry



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


[ANN] Free update: ChartMaker 3.0 Build 62

2014-07-23 Thread FlexibleLearning.com
Version: 3.0
Build: 62
Release type: Maintenance
Issued: 23 July 2014

What's New in this build?

This is a free maintenance release that addresses the following issues...

Fixed
. Trend and Aim lines now display correctly when XGridAlign is false
. Utility: Spurious data pasting when mousewheel is used fixed for LC5.5+
. Utility: Cell alignment fixed for LC5.5+
. Utility: Column adjuster fixed for LC5.5+

Download the current release here for a free 30-day trial or use your
existing key to update:
http://www.flexiblelearning.com/chartmaker/versioning/whatsnew.htm 

or from http://livecode.com/store/marketplace/chartmaker/ 


Note that as a professional product, ChartMaker requires LiveCode
Commercial. However, specific circumstances will be considered for
developers who require maintenance access for their clients.

Hugh Senior
FLCo



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


answer files with dot notation

2014-07-30 Thread FlexibleLearning.com
This works:
set the defaultFolder to "./"
answer files "Select a file..."

Using in-line syntax, this does not work:
answer files "Select a file..." with "./"

Is this a bug?

Hugh Senior
FLCo



___
use-livecode mailing list
use-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: "read...until " -- buffer size

2014-08-05 Thread FlexibleLearning.com
Kay C Lan wrote:

> On Wed, Aug 6, 2014 at 5:16 AM, Alex Tweedly  wrote:
> 
> > LC is supposed to be an easy to use language/system
> >
> > "report of a bug due to unacceptable performance", and it
> > should just say something like "Make this work at acceptable speed
> > so it can be used" :-).
> 
> I tend to agree with Alex on this one, but if the route cause is
> buffer size, and it's discovered that it's currently optimised for the
> 400KB Floppies of the HyperCard days then I'd suggest the solution is
> not to manually set the buffer size but to have LC find the optimum
> for you.
> 
> With the current variety of disk sizes, proportion of disk empty, rpm
> and even if it's mechanical or SSD, what ever you discover to be the
> optimum on your machine is unlikely to be the optimum on Richmond's
> heroic G3 tray loading iMac running 10.3. I'd even suggest taht
> whatever you find is the optimum today, may not be the optimum in a
> year. I've bench tested many HDs and there seems to be quite a variety
> of factors that determine the file size that achieves the fastest
> read/write times, and quite a variety in those file sizes, so I'm sure
> whether it's buffer size, something else, or a combinateion, the same
> would be true for 'read from file'.
> 
> Wouldn't it be better if you could, in an openStack or similar:
> 
> get maxReadSpeed()
> --runs a suite of tests to determine the settings that achieves
> maximum read from file speed.
> --then sets these as defaults which will be used by read (and other?)
> functions
> --only needs to run once
> --automatically reset to pre-LC settings when you Quit LC
> 
> And from then on use the standard read functions.
> 
> So a bug report to fix the current speed, then if it's found that
> speed improvements can be had by adjusting system/LC internal
> settings, an enhancement request for an LC function that would
> determine and set these as default. This would ensure whether you're
> running a nearly full 250GB 5400rpm HD or a basically empty 750GB SSD,
> ' read from file tMyFile until CR' will work faster than anything you
> can mangle using multiple lines of LC code.

Nice one, Kay... One step further: Why not automatically "maxReadSpeed()" as
part of the LC's  startup routine? Richard gets his buffer size, Alex gets
his simplicity, and you can have the kudos :)

Hugh Senior
FLCo



___
use-livecode mailing list
use-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: Execution of a "long" script

2014-08-11 Thread FlexibleLearning.com
> Hi list
> I'm about to launch a script on LC 6.5.2 on Mac to process a large xml
file,
> and the execution will take several hours at least.
> I am wondering : if I use other apps like a browser or a mailer after
> starting
> the script, or if I return to the Finder or navigate through various apps
in
> the dock, what happens to my script ? Is it slowed down or even stalled
while
> I use other apps, does it still run as a background task, or... ?
> 
> Thanks
> jbv

The OS handles multi-tasking based on the process priority. I would
therefore expect the script to run more slowly if other memory-intensive
activities take place.

Hugh Senior
FLCo



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


Who says LiveCode ain't English!

2014-08-18 Thread FlexibleLearning.com
For fun, writing a story using LiveCode syntax without a compile error...

on mouseUp
  go to shop
  if shop is not open then return home
  get groceries, coffee and milk
  go back home
  put groceries into fridge
end mouseUp

How long can we make it?

Hugh Senior
FLCo



___
use-livecode mailing list
use-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: Sunset, sunrise, twilight calculations in LC?

2014-08-23 Thread FlexibleLearning.com
Yes. I have done this. It is not a trivial exercise. It requires a lot of
complex solar geometry calculations as well as Julian calcs.

Go to http://www.esrl.noaa.gov/gmd/grad/solcalc, pick the "Solar
Calculator", extract the javascript in the web page, then translate it to LC
for use in your own work.

You may be some time... I was! :)

Hugh Senior
FLCo


> Hi List People,
> Does anyone know of an LC version of sunrise/sunset and twilight
> calculations?
> I found a couple of web based APIs, but I'd like it to work offline.
> I found this: http://en.wikipedia.org/wiki/Sunrise_equation ... but it's
going
> to take me a while to translate that into LC, which is why I'm asking.
> - Charles
> 
> --
> Charles E. Buchwald
> CEO/Director General
> Museografica Digital
> http://digital.museografica.com
> 
> Mac OSX 10.9.4, LC 6.6.2 Commercial
> 
> LC Developer Tools: http://buchwald.ca/developer-tools/
> 
> Email Notice: http://wp.me/P3aT4d-33



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


Solar Clock (was Re: Sunset, sunrise, twilight calculations in LC?)

2014-08-23 Thread FlexibleLearning.com
> I found this link. It might be easier to convert this code to LC.
> http://williams.best.vwh.net/sunrise_sunset_algorithm.htm
> Bill
> 
> William Prothero
> http://es.earthednet.org

These algorithms have now been superceded by the NOAA algorithms
http://www.esrl.noaa.gov/gmd/grad/solcalc. There are links to Solar
Calculation Resources at the bottom of the page.

Having already ported NOAA to LiveCode, I have uploaded some more
information on the stack and a screenshot here...

www.FlexibleLearning.com/solarclock 

If interested in purchase, let me know. It took a lot of work!
Alternatively, do the conversion yourself using the data sheets and web
pages available.

Hugh Senior
FLCo



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

2014-08-27 Thread FlexibleLearning.com
Bob Sneidar wrote...

Not to throw a wrench in the works, but wasn't there some discussion in the
past about different versions of Julian dates? Which one is the more widely
accepted? I suppose the question could be formed, which one does Microsoft
use for Excel? :-)



Hi Bob

There is only one Julian Date system, but there are 2 methods of calculating
the corresponding date. Either method is good for dates after the switch to
the Gregorian calendar (1752 or 1582 with many exceptions). The difference
between the two depends on whether you want the proleptic-Gregorian (which
incorrectly assumes a continuation of the modern Gregorian calendar before
this year), or the Julian calendar method for early dates. Of course, you
also need the appropriate corresponding algorithm to convert the Julian Day
Number back to a date.

(Note that the 'Julian Calendar' and 'Julian Day Numbers' are not related in
any way... damn stupid naming system that has caused and continues to cause
no end of confusion.)

The 2 different methods explain why there are 2 different dates quoted for
Julian Day Number 0, as there are 2 different assumptions. 

The most common conversion algorithms are proleptic-Gregorian which is fine
unless you need historical accuracy... 14 October 1066 was actually a
Saturday, but most people quote a Tuesday because they use the 'wrong'
algorithm. They also end up with dates that would not have existed due to
the change in leap year calculations.

One final point... All conversion algorithms (to/from the proleptic/Julian
system) assume the first day of the year to be 1 January. Not the case. For
the English-speaking world, the year actually started on Lady Day 15 March
until 1752 (which became 6 April, hence the tax year date), and hence the
oft-used notation such as "1 Jan 1765/1766" to avoid confusion. Google "Lady
Day date" to see what I mean.

Finding a pair of 'true-Julian calendar' algorithms, however, is actually
quite hard and it took me a long time.

All the above is of academic interest if you work with 'modern' dates only.
Both ChartMaker and FieldFormatter, however, do the job properly and will
give the correct date and day of the week for both 'modern' and 'historical'
dates.

Excel uses proleptic-Gregorian, since you asked.

Hugh Senior
FLCo



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


Delete columns... How?

2014-08-29 Thread FlexibleLearning.com
Related problem to 'join columns': How to delete a column of data?

This fails...

on mouseUp
  get fld 1
  split it by column
  delete local it[2]
  combine it by column
  put it into fld 2
end mouseUp

It seems that 'combine by column' requires the same number of array keys as
the original data set.

Hugh Senior
FLCo



___
use-livecode mailing list
use-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: Delete columns... How?

2014-08-29 Thread FlexibleLearning.com
Not had a chance to confirm your findings below, Alex, but if so then your
assessment is most likely correct.

Well found, that man!

When (if) I get some time, I'm thinking a generic method would be useful to
delete arbitrary columns from a data set.

Meanwhile, I have submitted an enhancement request (along with a Combine by
Column bug in LC7DP10, #13297).

Hugh Senior
FLCo

Alex Tweedly  wrote...

> Because (I imagine)  "combine ... column" requires that the keys be
> consecutive numbers.
> 
> This does work (deleting column 2, just for testing, and omitting the
> safety check that there are at least 3 columns :-)
> 
> on mouseUp
> set the columndelimiter to comma
> get fld 1
> put it into tVar
> split tVar by column
> put the number of lines in the keys of tVar into N
> repeat with i = 3 to N
>put tVar[i] into tVar[i-1]
> end repeat
> delete local tVar[N]
> --  delete local tVar[2]
> combine tvar by column
> put tvar after msg
> end mouseUp
> 
> -- Alex.
> 
> On 29/08/2014 10:33, FlexibleLearning.com wrote:
> > Related problem to 'join columns': How to delete a column of data?
> >
> > This fails...
> >
> > on mouseUp
> >get fld 1
> >split it by column
> >delete local it[2]
> >combine it by column
> >put it into fld 2
> > end mouseUp
> >
> > It seems that 'combine by column' requires the same number of array keys
> as
> > the original data set.
> >
> > Hugh Senior
> > FLCo
> >
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
subscription
> preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> 
> --
> 
> Message: 26
> Date: Fri, 29 Aug 2014 20:21:28 +0300
> From: Richmond 
> To: "USE >> How to use LiveCode" 
> Subject: Simulcast
> Message-ID: <5400b698.2090...@gmail.com>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> Can anyone tell what "direct to video" means?
> 
> In the Simulcast e-mail there are 2 links to the 2 tracks [i.e. 4 links];
> the second and the fourth marked as "direct to video".
> 
> I wonder how those differ from the offerings at the first and third links?
> 
> Richmond.
> 
> 
> 
> --
> 
> Subject: Digest Footer
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> --
> 
> End of use-livecode Digest, Vol 131, Issue 52
> *



___
use-livecode mailing list
use-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: which is faster for searching?

2014-08-30 Thread FlexibleLearning.com
Peter Haworth  wrote

> There's another situation where I use repeat with even though it's a
little
> slower than repeat for and I also alter the contents of the data I'm
> repeating through without any problems.
>
> repeat with x=the number of lines in tVar down to to 1
>if  then
>   delete line x of tVar
>end if
> end repeat

This is an insightful observation. Nice one, Pete!

My stock method (and presumably the method you allude to above) is...

repeat for each line L in tVar
add 1 to x
if  then put "" into line x of tVar
end repeat
filter tVar without empty

Both methods operate on a single data set and avoid putting the output into
a second variable which, for large datasets, involve an unnecessary memory
overhead..

Hugh Senior
FLCo



___
use-livecode mailing list
use-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: binFile and windows

2014-08-30 Thread FlexibleLearning.com
Am unsure exactly what you are trying to do here, Eric. You are putting an
image file into a variable, then writing a stack image to that file. Does
the image file exist in the first place? If you are trying to write a stack
image to a disk file then something like this...

   create folder lFolderPath & "/img"
   put lFolderPath & "/img/gruppo.png" into lImage
   put img "gruppo" of cd "stampa" of stack "stampaObiettivi" into URL
lImage
 
   put lFolderPath & "/img/utente.png" into lImage
   put img "utente" of cd "stampa" of stack "stampaObiettivi" into URL
lImage

Try tracing your script and see where it fails on Windows.

Hugh Senior
FLCo



Eric Sciolli  wrote
 
> Hello
> I would save some images from a stack to the hard disk using binfile:
> 
> ask file "Save image as:"
> 
>   put it into lFolderPath
> 
>   create folder lFolderPath & "/img"
>   put "binFile:/" & lFolderPath & "/img/gruppo.png" into lImage
>   put img "gruppo" of cd "stampa" of stack "stampaObiettivi" into URL
> lImage
> 
>   put "binFile:/" & lFolderPath & "/img/utente.png" into lImage
>   put img "utente" of cd "stampa" of stack "stampaObiettivi" into URL
> lImage
> 
> On macosx it works perfectly: it creates a folder "img" and put the 2
images
> on it; on windows it only creates the folder "img" but no images are
created.
> Someone can help me?
> 
> Thanks to all
> 
> Eric



___
use-livecode mailing list
use-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: which is faster for searching?

2014-08-31 Thread FlexibleLearning.com
Hi Alex

Am struggling to follow your comments and conclusions. Are you saying it
would be more memory efficient to store the output in a second variable...

repeat for each line L in tVar
if  then
  put L &cr after stdout
end if
end repeat
if last char of stdout=cr then delete last char of stdout
return stdout

If there are no matching lines (worst case), then this would require a 100%
memory overhead.

I am obviously mis-reading you.

Hugh Senior
FLCo


From: Alex Tweedly 
To: use-livecode@lists.runrev.com
Subject: Re: which is faster for searching?

Two comments 

1. The two methods below produce different results - the latter one 
removes lines that were empty in the original input data, the other 
doesn't (unless that happens to match "data condition on line x").

2. In the case of large (or huge) datasets, Hugh's concern about 
avoiding memory overhead may be valid - but those cases are exactly the 
ones where you most need to be concerned about efficiency.

If, for example, the input data consists of 10,000,000 lines and perhaps 
each line was 100 chars, then we have 1Gb of data. Let's say we retain 
50% of the lines (say every alternate one) - then the "repeat for each" 
method adds 1/2 Gb of virtual memory, and requires copying only 1/2Gb of 
data during this operation.

However, although both the methods below don't add the virtual memory 
requirement, they copy a LOT of data - each time we delete (or empty) a 
line, that causes all the subsequent data to be copied 'in place', so it 
will require (approx) 2,500,000 Gb of data copying (5M * 1/2Gb average 
remaining data size). So we copy 2.5Pb of data - that's going to cost us 
a whole lot more time than any paging needed for 1/2Gb of extra virtual 
memory.

-- Alex.


On 30/08/2014 08:45, FlexibleLearning.com wrote:
> Peter Haworth  wrote
>
>> There's another situation where I use repeat with even though it's a
little
>> slower than repeat for and I also alter the contents of the data I'm
>> repeating through without any problems.
>>
>> repeat with x=the number of lines in tVar down to to 1
>> if  then
>>delete line x of tVar
>> end if
>> end repeat

> This is an insightful observation. Nice one, Pete!
>
> My stock method (and presumably the method you allude to above) is...
>
> repeat for each line L in tVar
>  add 1 to x
>  if  then put "" into line x of tVar
> end repeat
> filter tVar without empty
>
> Both methods operate on a single data set and avoid putting the output
into
> a second variable which, for large datasets, involve an unnecessary memory
> overhead..
>
> Hugh Senior
> FLCo



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


Speed testing: Fastest search method

2014-08-31 Thread FlexibleLearning.com
Some benchtesting...

Setup:
LC7DP10, Windows 7

Source data:
10,000 lines of random data
100 chars per line
3,346 empty lines

Task:
Strip lines where a given condition is met.

Results:
Method 1
Operating on a single variable, 'repeat with' + delete line
25.586 secs

Method 2
Operating on a single variable, 'repeat for each' + filter with empty
7.755 secs

Method 3
Using a second variable for output, 'repeat for each' + second variable
0.136 secs

Conclusions:
If memory is an issue, then Method 2 is best
If memory is not an issue, then Method 3 is best

Scripts applied:
#1:
on mouseUp
   set the cursor to watch
   put the long seconds into tStart
   put fld "Data" into tVar
   repeat with x=the number of lines in tVar down to 1
  if line x of tVar="" then
 delete line x of tVar
  end if
   end repeat
   put tVar into fld "output"
   put the long seconds - tStart into fld "timer1"
end mouseUp

#2:
on mouseUp
   set the cursor to watch
   put the long seconds into tStart
   put fld "data" into tVar
   repeat for each line L in tVar
  add 1 to x
  if L="" then
 put "" into line x of tVar 
  end if
   end repeat
   put tVar into fld "output"
   put the long seconds - tStart into fld "timer2"
end mouseUp

#3:
on mouseUp
   set the cursor to watch
   put fld "Data" into tVar
   put the long seconds into tStart
   repeat for each line L in tVar
  if L<>"" then
 put L &cr after stdout
  end if
   end repeat
   if last char of stdout=cr then delete last char of stdout
   put stdout into fld "output"
   put the long seconds - tStart into fld "timer3"
end mouseUp


> On 30/08/2014 08:45, FlexibleLearning.com wrote:
> > Peter Haworth  wrote
> >
> >> There's another situation where I use repeat with even though it's a
little
> >> slower than repeat for and I also alter the contents of the data I'm
> >> repeating through without any problems.
> >>
> >> repeat with x=the number of lines in tVar down to to 1
> >> if  then
> >>delete line x of tVar
> >> end if
> >> end repeat


> > This is an insightful observation. Nice one, Pete!
> >
> > My stock method (and presumably the method you allude to above) is...
> >
> > repeat for each line L in tVar
> >  add 1 to x
> >  if  then put "" into line x of tVar
> > end repeat
> > filter tVar without empty
> >
> > Both methods operate on a single data set and avoid putting the output
> > into a second variable which, for large datasets, involve an unnecessary
> > memory overhead..
> >
> > Hugh Senior
> > FLCo



___
use-livecode mailing list
use-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: Speed testing: Fastest search method

2014-08-31 Thread FlexibleLearning.com
>From David Epstein

Q1. Not that I know of.
Q2. Of course it does, but the same condition is in place in all three
tests. And the data has to come from somewhere.
Q2. This 'repeat for each' rule refers to not modifying whatever 'each'
refers to. In this case, 'each' is a line and the number of lines in
unchanged so I am not changing the internal line pointers set up by the
engine at the start.

> 3 questions:
> 
> 1. Is there a good way to determine ahead of time whether memory is an
> issue? When I start the handler I can find out how big tVar is, but how do
I
> find out how much memory is available?
> 
> 2. Does this step in all 3 handlers --
> put fld "Data" into tVar
> -- itself use up memory? If fld "Data" is occupying a gigabyte of RAM,
does
> writing it to tVar use another gigabyte?
> 
> 3. Method #2 appears to me to violate the rule against modifying the
variable
> to which you are applying "repeat for each":
> #2:
> on mouseUp
> set the cursor to watch
> put the long seconds into tStart
> put fld "data" into tVar
> repeat for each line L in tVar
> add 1 to x
> if L="" then
> put "" into line x of tVar -- RIGHT HERE, WE'RE MODIFYING tVar!
> end if
> end repeat
> put tVar into fld "output"
> put the long seconds - tStart into fld "timer2"
> end mouseUp
> 
> Have I misunderstood that rule?
> 
> Many thanks.
> 
> David Epstein



From: Mike Bonner

Correct. My typo by omission.

> Method 2 doesn't have the filter, I am guessing the lack is a typo?  



From: Peter Haworth

1. Speed difference: 'for each' does not require the engine to repeatedly
(and increasingly) count from the start of the list each time, hence the
time saving.
2. Using a tCount variable: It would make no difference in performance, only
in terms of script explanation if necessary.

> I would expect method 1 to take longer but that's a huge difference. I
> wonder if this would speed it up:
> 
> Put the number of lines in tVar into tCount
> Repeat with x=tCount down to 1
> 
> Pete
 


From: jbv
This is a non-issue. If we wanted to remove blank lines, we would not use
any repeat structure but use 'filter tData without empty' instead. The
'empty lines condition' in the 3 tests is only a testing convenience that
stands for any conditional test.

> Have you tried the following method (condition is "line empty")  :
> on mouseUp
>set the cursor to watch
>put the long seconds into tStart
>put fld "Data" into tVar
>repeat while tVar contains (return & return)
>   replace (return & return) with return in tVar
>end repeat
>put tVar into fld "output"
>put the long seconds - tStart into fld "timer1"
> end mouseUp
> 
> jbv



___
use-livecode mailing list
use-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: Speed testing: Fastest search method

2014-09-01 Thread FlexibleLearning.com
hasMemory may indeed be of some use, but I have had problems with it in the
past. Besides, as has been pointed out, anything that is likely to drain all
memory should probably be served from a database anyway.

heapSpace is for HC/SC compatibility and does not map on all (if any)
platforms.

 From: j...@souslelogo.com

> Could the function hasMemory(bytes) be of some help ?
>
> Or perhaps heapSpace() on Mac OS systems ?
>
> jbv



___
use-livecode mailing list
use-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: Speed testing: Fastest search method

2014-09-01 Thread FlexibleLearning.com
Hi Alex

Agreed. And your #4 is a nice solution.

Hugh Senior
FLCo



From: Alex Tweedly 

Hugh,

The condition you've chosen for deciding whether to delete the line is 
whether or not the line is empty.
So in method 2, replacing those lines by "" has no effect on the data.

That is, I think, an inadequate benchmark. The primary cost you would 
encounter in the real case with method 2 is the data copying caused by 
emptying the line (i.e. all subsequent content in the variable has to be 
copied down into place). So at the very least it gives very optimistic 
times for method 2.

I tried the same code (more or less - added the "filter" for method 2 to 
get the same results) on a data set which contains real lines of data to 
be deleted.

I also added  method4, which tries to get the best of both worlds. It 
restricts the additional memory usage (by building up a second variable, 
but removing sections of the input variable at the same time), and also 
does relatively few deletions (and hence few data copies).

(full script included below)

LC7DP10, MacOSX 10.8.5 Macbook Pro

Source data:
   10,000 lines of 100 chars, alternating between two values (non-random 
so it would be completely repeatable)
   5000 lines begin with char "a", other 5000 being with "b"

Condition for deletion
   First char of the line is "a"
(hence 5000 lines are deleted

Method 1:
  not timed - was taking too long :-)

Method 2:
   11.51 secs

Method 3:
   0.04 secs

Method 4:
0.09 secs

Changing the conditional test so that no lines are deleted, the times 
are all < 0.1 seconds


Conclusion:
   if memory is not an issue, method 3 is best
   if memory is an issue, method 4 is best

-- Alex.


on mouseUp
local t1, t2, t3, t4
--   put method1() into t1
put method2() into t2
put method3() into t3
put method4() into t4

put the number of lines in t1 && the number of lines in t2 && the 
number of lines in t3  && the number of lines in t4 after fld 1
end mouseup

function make_data
local L, L1, t
put "a" into L
put "b" into item 100 of L
put "b" into L1
put "a" into item 100 of L1
repeat 5000 times
   put L & CR & L1 & CR after t
end repeat
return t
end make_data

function method1
local tVar, tStart
set the cursor to watch
put make_data() into tVar
put the long seconds into tStart
repeat with x=the number of lines in tVar down to 1
   if char 1 of line x of tVar="a" then
  delete line x of tVar
   end if
end repeat
put the long seconds - tStart & CR after fld 1
return tVar
end method1

function method2
local tVar, L, tStart, x
set the cursor to watch
put make_data() into tVar
put the long seconds into tStart
repeat for each line L in tVar
   add 1 to x
   --  put x && L &CR after msg
   if char 1 of L="a" then
  put "" into line x of tVar
   end if
end repeat
filter tVar without empty
put the long seconds - tStart & CR after fld 1
return tVar
end  method2

function method3
local tVar, tStart, L, tdout
set the cursor to watch
put make_data() into tVar
put the long seconds into tStart
repeat for each line L in tVar
   if char 1 of L<>"a" then
  put L &cr after tdout
   end if
end repeat
if last char of tdout=cr then delete last char of tdout
put the long seconds - tStart & CR after fld 1
return tdout
end method3

function method4
constant K = 1000 -- probably should be a bigger number

local tVar, tStart, L, tdout, x
set the cursor to watch
put make_data() into tVar
put the long seconds into tStart

repeat forever
   if the number of lines in tVar = 0 then exit repeat
   put 0 into x
   repeat for each line L in tVar
  if char 1 of L<>"a" then
 put L &cr after tdout
  end if
  add 1 to x
  if x >= K then exit repeat
   end repeat
   delete line 1 to K of tVar
end repeat
if last char of tdout=cr then delete last char of tdout
put the long seconds - tStart & CR after fld 1
return tdout
end method4




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


How To: Delete columns of data

2014-09-02 Thread FlexibleLearning.com
This takes 2ms to remove 4 columns from a 100x100 data table...

on mouseUp
  --| Syntax: deleteColumns ,
  --| data: Specifies the data to parse
  --| cols: A comma separated list of columns to be removed
  deleteColumns fld "Input","5,10,15,20"
  -- Specify what to do with 'the result'...
  put the result into fld "Output"
end mouseUp

-- A single variable approach
on deleteColumns pData,pColsToDelete
  split pData by column
  put item 2 of extents(pData) into tMax
  repeat with n=1 to tMax
if n is NOT among the items of pColsToDelete then
  add 1 to x
  put pData[n] into pData[x]
end if
  end repeat
  repeat with n=x+1 to tMax
delete local pData[n]
  end repeat
  combine pData by column
  return pData
end deleteColumns


An enhancement request has been submitted to allow non-sequential keys to be
combined. Meanwhile, this does it.

Hugh Senior
FLCo



___
use-livecode mailing list
use-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: Delete columns of data

2014-09-05 Thread FlexibleLearning.com
Hi John

The routine lets you specify any number of columns to delete. You do not
have to use it on each column. If you have 11 columns, simply specify which
ones you do not want. If you have comma-separated data, you need to specify
the columnDelimiter. This includes that option...

on mouseUp
  --| Syntax: deleteColumns ,[,]
  --| data: Specifies the data to parse.
  --| cols: A comma separated list of columns to be removed for example
"2,5,7".
  --| delim: Optional column separator for example "," or "|". If
unspecified, defaults to TAB.
  deleteColumns fld "Input","1,3,5"
  -- Specify what to do with 'the result'...
  put the result into fld "Output"
end mouseUp

on deleteColumns pData,pColsToDelete,pDelim
  try
set the columnDelimiter to pDelim
  end try
  split pData by column
  put item 2 of extents(pData) into tMax
  repeat with n=1 to tMax
if n is NOT among the items of pColsToDelete then
  add 1 to x
  put pData[n] into pData[x]
end if
  end repeat
  repeat with n=x+1 to tMax
delete local pData[n]
  end repeat
  combine pData by column
  return pData
end deleteColumns


Or have I misunderstood the problem you face?

Best regards

Hugh Senior
FLCo

From: JB 

> That is fast but here are a few problems I
> am having.
> 
> It looks to me like you can only delete one
> column and then you use it again to delete
> another column.
> 
> I am getting a list of the detailed files which
> is a comma separated list of 11 items and I
> only want to end up with 4 columns.  When
> I use it again it looks like I need to calculate
> the column I deleted to know which columns
> I still need to delete.  Not major issue.  The
> bigger problem is this scenario.  I deleted a
> bunch of columns from a list of a little over
> 30,000 files and it worked but then I use the
> open to select another folder of files and it
> only had around 305 files but for some reason
> it appears the memory is not cleared because
> the cursor spins and won?t take me to the other
> folder.  I use Force Quit and it list Revolution as
> not responding.  It does not look like this is code
> limited to newer versions of LiveCode so I don?t
> understand why Revolution would quit responding.
> 
> John Balgenorth



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


How To: Manage columns of data (was Re: How To: Delete columns of data)

2014-09-06 Thread FlexibleLearning.com
Peter:  Thank you for adding column ranges.
Mike: Thank you for the column extraction handler.

I believe this summarises our efforts to date. It includes column ranges and
the ability to either delete or extract columns of data from a table. I
accept that optimisation has been compromised in favour of code brevity when
extracting columns, but the time overhead is negligible. 

function manageColumns pData,pCols,pAction,pDelim
  -- Purpose: To delete or extract specified columns from a table
  -- Syntax: manageColumns ,,[,]
  -- data: Specifies the data to parse
  -- cols: A comma separated list of columns or column ranges to be
removed or extracted
  -- for example "2,5,7"
  -- or a column range: "3-5"
  -- or a combination "2,4-5,7,9-11,"
  -- action: Either "delete" or "extract"
  -- delim: Optional column separator for example "," or "|"
  -- if unspecified, defaults to TAB
  -- By: Hugh Senior, based on handlers by Michael Doub, based on a handler
by Peter M. Brigham, based on a handler by Hugh Senior, Use-LC list
  
  if pCols ="" then return pData
  if pDelim <>"" then set the columnDelimiter to pDelim
  repeat for each item tCol in pCols
if "-" is in tCol then
  set the itemDel to "-"
  repeat with i = item 1 of tCol to item -1 of tCol
put i & comma after pColsExpanded
  end repeat
  set the itemDel to comma
else
  put tCol & comma after pColsExpanded
end if
  end repeat
  put char 1 to -2 of pColsExpanded into pCols
  split pData by column
  put item 2 of extents(pData) into tMax
  repeat with n=1 to tMax
if pAction="delete" then get (n is NOT among the items of pCols)
else get (n is among the items of pCols)
if it then
  add 1 to x
  put pData[n] into pData[x]
end if
  end repeat
  repeat with n=x+1 to tMax
delete local pData[n]
  end repeat
  combine pData by column
  return pData
end manageColumns



Hugh Senior
FLCo



___
use-livecode mailing list
use-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: Making data plots

2014-09-08 Thread FlexibleLearning.com
Or use ChartMaker...

www.flexibleLearning.com/chartmaker


Hugh Senior
FLCo

 
William Prothero wrote:

> Folks:
> I?ve been working on an app that plots various kinds of data. For some of
the
> data, where I need a line plot, I create lines, boxes, labels, etc, and
after they
> are displayed, I take a snapshot of the graphic and then delete the
objects
> that I used to create the plot. So far, as a beginning live coder, I?ve
just
> stored the names of the graphic elements of the plot in an array, then
> deleted them using the array entries. But, it seems, as the plots are
getting
> more complex, that it might be easier or more efficient to put the objects
for
> a single plot into a group, then I can delete the entire group in one
operation.
> 
> The dictionary has some entries on creating groups, but I can?t find
anything
> about adding a single object to a group. I want to do this so that each
time an
> element of the plot is created, it is added to the group. That way, I
don?t
> have to keep track of the objects myself. Is there a tutorial where I can
find
> this information?
> 
> Also, I am assuming that if I delete a group, all of the objects in it are
also
> deleted.
> 
> Best,
> Bill
> 
> William A. Prothero, Ph.D.
> University of California, Santa Barbara Dept. of Earth Sciences (Emeritus)
> Santa Barbara, CA. 93105
> http://es.earthednet.org/



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


Garbage collection in 7.0 (was Re: WindowShape)

2014-09-13 Thread FlexibleLearning.com
Could be related to Bug #13126 and inadequate garbage collection in DP8. The
issue has been confirmed but not yet resolved. 

Hugh Senior
FLCo


From: Paul Hibbert 

Crashed here too. So I opened the Activity Monitor, launched LC again,
opened the stack and activated the animation, then watched the memory usage
just grow and grow until it stopped at 3.39GB, then eventually it crashed.

Paul



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


[ANN] modified Table Field 0_2_9

2014-09-17 Thread FlexibleLearning.com
Link does not work here... I see the text of your stack displayed in my
browser.

Maybe you can upload a zip file, so it downloads as expected?

Hugh Senior
FLCo


BNig  wrote...

here a version of modifiedTableField that makes use of the new LC7 RC1
feature of text aligning columnar data. You can now right align a column.

Columns can be hidden.

Works with 6.13 up, best with 6.6.2. Obviously columnar text alignment needs
LC7.


http://www.berndniggemann.on-rev.com/modTableField/modTableField_0_2_9New.li
vecode

watch for linebreaks in url

Kind regards
Bernd



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


ImageData restore problems

2014-09-20 Thread FlexibleLearning.com
I have an embedded image, size 120Kb, and want to toggle between a
non-compacted (120Kb) and a compacted (30Kb) thumbnail version...

1. I thumbnail the original image (data is still 120Kb as expected).
2. I store the TEXT of the resized image.
3. I compact the image by setting the imageData of the image to the
imagedata of the image. The size reduces to 30Kb as expected.
4. I restore the saved binary data.
Result: A blank image

1. I thumbnail the original image (data is still 120Kb as expected).
2. I store the IMAGEDATA of the resized image.
3. I compact the image by setting the imageData of the image to the
imagedata of the image. The size reduces to 30Kb as expected.
4. I restore the saved ImageData.
Result: 30kb, not 120Kb

Question:
What must I store in Step 2 above in order to re-instate the 120Kb data in
the thumbnail?

Baffled and a tad frustrated.

Hugh Senior
FLCo


___
use-livecode mailing list
use-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: ImageData restore problems

2014-09-22 Thread FlexibleLearning.com
Having wrestled with this for a long time, I post a solution for future
reference...


Situation
I have a large embedded image. I want to thumbnail it/rotate it/mess with
it, but be able to restore the original without loss of any original data.
How do we do this?


Solution
We need to save the original image's rect, text and imageData (alphaData and
maskData optional) perhaps most conveniently saved in a customPropertySet of
the image itself:

-- tObj: The long id of the image.
-- ImgBackup: The customPropertySet name.
-- savedImageRect, savedImageText,savedAlphaData, savedMaskData and
savedImageData: The array key names.

if the ImgBackup["savedImageData"] of tObj ="" then
   --| Save an original
   set the ImgBackup["savedImageRect"] of tObj to the rect of tObj
   set the ImgBackup["savedImageText"] of tObj to the text of tObj
   set the ImgBackup["savedAlphaData"] of tObj to the alphaData of tObj
   set the ImgBackup["savedMaskData"] of tObj to the maskData of tObj
   set the ImgBackup["savedImageData"] of tObj to the imageData of tObj
end if

To restore to the original state, first lock the image then restore the
rect, text, [alphaData and maskData] and imageData... Note that the order
things are done is important:

--| Restore the original
put the lockLoc of tObj into tLL
set the lockLoc of tObj to true
set the rect of tObj to the ImgBackup["savedImageRect"] of tObj
set the text of tObj to the ImgBackup["savedImageText"] of tObj
set the alphadata of tObj to the ImgBackup["savedAlphaData"] of tObj
set the maskdata of tObj to the ImgBackup["savedMaskData"] of tObj
set the imagedata of tObj to the ImgBackup["savedImageData"] of tObj
set the lockLoc of tObj to tLL

To optimise the image at any time and reduce the Kb needed, compact the
imageData and delete the backup. This is permanent and cannot be undone:

--| Optimise the image to its current display
set the imageData of tObj to the imageData of tObj
put the custompropertysets of tObj into tCPS
filter tCPS without "ImgBackup"
set the custompropertysets of tObj to tCPS



"Things are always easier with hindsight"

Hugh Senior
FLCo



___
use-livecode mailing list
use-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: Text fields with rounded corners

2014-10-05 Thread FlexibleLearning.com
roundRect graphic instead of a field border.

2p

Hugh Senior
FLCo


From: Richmond 
Subject: Text fields with rounded corners

?

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


RE: Teaching LiveCode to Children

2014-10-07 Thread FlexibleLearning.com
+1 vote

Good luck!

Hugh Senior
FLCo


-- Original message
From: Terica Lynn Swangin 

Good Afternoon,

I emailed Heather about this and she suggested that I post this request to
you. 

My name is Terica Lynn Swangin and I am emailing to ask for your help. My
business, PediNatural, is in the running to receive a $150K grant from the
Chase Small Business Mission Main Street competiton. If we are fortunate
enough to win, one of the projects we hope to develop and fund is a pilot
program that will teach LiveCode to local underprivileged inner-city middle
school children as an after school enrichment program. To be eligible for
round 2 of the grant process we need at least 250 people to vote for us. I
would really appreciate it if you could please show your support and vote.
We only have 11 days left to qualify.

To cast your vote, simply click the 'Vote Now' Facebook button on our
Mission Main Street Grant profile page. Here is the link to our voting page.
https://www.missionmainstreetgrants.com/business/detail/63345



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


Re: Getting a list of object properties

2014-10-09 Thread FlexibleLearning.com
William Prothero  wrote

> If I do:
> put the properties of scrollbar "axisEntry"
> I don't get anything in the message box. LC7.0 rC2, Mavericks.
> 
> Bill


The dictionary entry for Properties does need revising, but it is correct
insofar as you get an array not a list. I think this does what you want...

put the properties of scrollbar "axisEntry" into myArray
put keys(myArray)

Hugh Senior
FLCo


___
use-livecode mailing list
use-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: binaryDecode in LC 7.0(rc2) and EXIFLib

2014-10-17 Thread FlexibleLearning.com
Jacques

LC v7 should be backwards compatible. I suggest you submit this in a bug
report, especially if you can identify the specific function(s)/keyword(s)
used by formatsList where different data is returned in order to help the
team locate the issue. I suspect it will be something to do with how Unicode
is now handled.

Best regards,

Hugh Senior
FLCo


> --
> 
> To the people using Alex Tweedly's EXIFLib:
> For the others, EXIFLib is a very useful library extracting the EXIF data
(if any)
> of .jpg pictures. I'm really indebted to Alex for it and I'm using it for
years
> now. It can be found here:
> http://tweedly.org/showpage.lc?page=EXIFLib
> This library works fine with the 6.n versions of LiveCode, up to 6.6.4 but
with
> 7.0(RC2) LiveCode quits unexpectedly. I found that the culprits were lines
> 194-195 of the stack's script:
> 
> put "x" & lexifBaseOffset+tOffset-1 & "a" & count into t
> put binaryDecode(t, lexifData, tJunk, tValues) into tJ
> 
> with my data, t was "x146a11". Something changed in the intepretation of
> the formatsList between 6 and 7. Luckily, replacing the two lines by:
> 
> put lexifBaseOffset+tOffset-1 into ttx
> put "a" & ttx+count into t
> put binaryDecode(t,lexifData,tValues) into tJ
> delete char 1 to ttx of tJ
> 
> works perfectly!
> 
> But I would be interested to know what exactly changed, and why a list of
> formats is no more accepted but a simple format is, before posting a bug
> report...
> 
> Jacques


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


Hierarchical menu issue

2014-10-17 Thread FlexibleLearning.com
It seems we cannot apply more than one checkmark flag in a hierarchical
menu...

!rA

Apples

Arena

!cAlbatros

Amazon


I'm sure we used to be able to do this... a bullet mark at level 1 along
with a tick mark at level 2. Or was that HyperCard/SuperCard only?

Am I misremembering, or is it a bug?

(Suddenly feeling very old)

Hugh Senior
FLCo


___
use-livecode mailing list
use-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: Sort cards doesn't work in 7.0

2014-10-26 Thread FlexibleLearning.com
As I tell my own clients:

"Don't worry about backups... be paranoid!"

Hugh Senior
FLCo


 >...and my backup negligence is forever cured.

You're one of the lucky ones.  Most of us don't get religious about 
backups until after we lose critical data.


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