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
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 bernd.niggem...@uni-wh.de wrote...
here a version of modifiedTableField that makes use of the new LC7 RC1
feature of text
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 paulhibb...@mac.com
Crashed here too. So I opened the Activity Monitor, launched LC again,
opened the stack and activated the
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
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
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
This takes 2ms to remove 4 columns from a 100x100 data table...
on mouseUp
--| Syntax: deleteColumns data,cols
--| 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
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.
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
memory.
-- Alex.
On 30/08/2014 08:45, FlexibleLearning.com wrote:
Peter Haworth p...@lcsql.com 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
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 p...@lcsql.com wrote
There's another situation where I use repeat
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
Peter Haworth p...@lcsql.com 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 data
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
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
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
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
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
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
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
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
Kay C Lan wrote:
On Wed, Aug 6, 2014 at 5:16 AM, Alex Tweedly a...@tweedly.net 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
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
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
Have a look at FieldFormatter. It does just this sort of thing...
www.flexibleLearning.com/fieldformatter
Hugh Senior
FLCo
Gerry Orkin gerry.or...@gmail.com 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)
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...
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 Btest/B,HTML
An unterminated lockMesages is also needed to avoid another Save in the
closeStack message...
on closeStackRequest
lock messages
save this stack
put millisecs()
pass closeStackRequest
end closeStackRequest
Hugh Senior
FLCo
-- Original message
The IDE has a default check to determine
Let me get this straight... You not only have a clandestine app running
invisible to the User, but you also want to invisibly collect (presumably
User) data and then email the data without the User knowing?
Frankly I am not surprised you are finding it hard to get a Mac to
cooperate. Sounds like
On Mon, 24 Mar 2014 14:56:26 -0700 (PDT) Dave Kilroy
d...@applicationinsight.com wrote:
[snip]
-
Some are born coders, some achieve coding, and some have coding thrust upon
them. - William Shakespeare Hugh Senior
--
This still makes me smile every time I see it :)
Hugh Senior
FLCo
Whilst working in the garden I called to my wife What time is it? to which
she yelled... Lunch will be ready when I'm ready!
Marriage, huh?
:-)
Hugh Senior
FLCo
-Original Message- From: Bob Sneidar
bobsnei...@iotecdigital.com
To: How to use LiveCode use-livecode@lists.runrev.com
LiveCode 6 compatibility
The Scripters Scrapbook v6 for all Mac OSX standalone options has been
updated to bring it in line with the Windows options...
www.FlexibleLearning.com/ssbk
And yes, there is a special upgrade price of £29 (about $47 or 35 EUR) for
existing v5 users from
www.FlexibleLearning.com/fieldformatter
FieldFormatter: Separating data from display
Reminder...
For a limited time, grab FieldFormatter at a special price. This deal ends
at midnight on Saturday!
FieldFormatter is both Community and Commercial compatible, it comes with
- An integrated IDE
www.FlexibleLearning.com/fieldformatter
For a limited time, grab FieldFormatter at a special price.
Community and Commercial compatible, it comes with
- An integrated IDE palette
- 28 new properties
- Full documentation with examples
- Playground stack to investigate and change
LiveCode, and the Art of Zen Programming.
Hugh Senior
FLCo
On Mon, Jan 27, 2014 at 3:50 PM, Mark Wieder mwie...@ahsoftware.net wrote:
That way you don't have to be concerned about the id pool, as nothing is
being created or destroyed.
___
Mark is not alone. I did not take up the listing offer either.
Hugh Senior
The Flexible Learning Company
. The Scripter's Scrapbook: www.FlexibleLearning.com/ssbk.htm
. ChartMaker: FlexibleLearning.com/chartmaker
. DatePicker: FlexibleLearning.com/datepicker
. FieldFormatter
I did consider starting a Forum thread titled 'LiveCode Consultants', but
[1] it would be equally difficult to locate, [2] it would probably get
spammed, and [3] it would most likely be removed by mother!
But it was a thought, albeit an unworthy one.
Hugh Senior
FLCo
Mark Wieder wrote:
Hugh-
Has been done:
'asDHMS' displays seconds as [days] : [hours] : minutes : seconds up to 6
decimal places if required. The additional spaces are to differentiate it
from a DateTime display such as 12:26.
Webpage preview has been updated...
http://www.FlexibleLearning.com/fieldformatter
And a
Some are born coders, some achieve coding, and some have coding thrust upon
them.
:)
Hugh Senior
FLCo
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
Setting the cursor to busy eats cycles and adds a time-overhead.
Personal preference is to simply 'set the cursor to watch' for any actity
lasting up to a few seconds, or a progress bar updated every nth iteration
(such as n mod 100 =0) for longer routines. For indeterminate activity
length, I
on that is supposed to take time. (I see the watch
cursor all the time when I run windows stuff).
Brevity and errors in this email probably the result of being sent by a
mobile device.
On Oct 9, 2013, at 2:50 AM, FlexibleLearning.com
ad...@flexiblelearning.com wrote:
Setting the cursor to busy
No release date is available at the moment, Tom.
There is an on-going discussion about structural implementation at the
moment (frontscript vs. behavior), and a few additional functionalities have
been proposed that are being investigated.
Best regards,
Hugh Senior
FLCo
Tom Bodine wrote:
the comma for thousands. That should also be a properties
item in LiveCode just like the numeric settings.
Thank you
Vaughn Clement
On Thu, Oct 3, 2013 at 5:07 AM, FlexibleLearning.com
ad...@flexiblelearning.com wrote:
A new field formatting palette and frontscript library is nearing
A new field formatting palette and frontscript library is nearing
completion. The properties palette, syntax and integration are all in place
and working.
- What is its purpose?
In short it separates data from display. Field contents can, for example, be
displayed as currency (or any other
I needed to convert decimals to E notation and as it took me a while, I
thought it might be useful to others.
If you have a shorter alternative or find any glitches, please post!
on mouseUp
put fld in into tNum
put fld NumberFormat into tNumberFormat --| to specify output precision.
Normally
Thank you, Monte, but the numberFormat of the output is somewhat
non-standard...
put format(%E,0.01234) -- 1.234000E-006
Can this syntax include alternative numberformats?
For example:
'0.00' -- 1.23E-06
'0.###' -- 1.234E-06
'00.' -- 01.2340E-06
Just asking as my %E
My bad...
LC6.1 provides cross-platform support for the Euro symbol and also handles
the htmlText 'euro;' entity.
If using an earlier engine, I think we are still stuffed however.
Hugh Senior
FLCo
-Original Message-
From: FlexibleLearning.com [mailto:ad...@flexiblelearning.com]
Sent
Has ANYONE solved how to maintain the euro symbol in a cross-platform stack?
numtochar (Win 128|Mac 219) is platform-specific, and htmltext curren; is
Mac-only.
Hugh Senior
FLCo
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit
Thank you for the various suggestions but as I indicated, this is to
MAINTAIN (e.g. a label field) the symbol display not insert/edit it. There
does not appear to be a cross-platform display specification that guarantees
the Euro symbol on all platforms for the same field contents.
Hugh Senior
Vaughn Clement wrote:
I proposed yesterday to add a Cloud app My Codebook Pro v12 to be
available for free to any LC user/s. Here this kind of script can be
offered and amended by other developers to allow all users to benefit from
the code. So far I have not heard any conversation pro or
stephen... please stop using Jacqie's time-travel stack and looking at me
10+ years ago when I started with this language.
It most disconcerting!
:)
Hugh Senior
FLCo
stephen barncard wrote:
You WILL struggle. and have to look a lot of things up and ask questions.
You will get frustrated. But
Hi Geoff,
Me too :( and yes, 'split/combine' with 'for each' are useful!
Ony processing 10-20Mb here, but parsing into arrays I run out of memory. I
am maxed out for XP (4Gb). Will have to upgrade to Win7 to access more, I
fear, and/or re-write to chunk the data. I didn't realise they were going
Possibly field referencing issues... Do you have the correct defaultStack?
Try checking the result:
put field Price * field Quantity into fld Total
answer the defaultStack CR the result
Hugh Senior
FLCo
Vaughn Clement wrote:
Hi Geoff
It made sense to test on a new blank stack and it worked
I also have a kickstarter fullfilment for mergeExt iOS that I cannot use.
If you are a new customer for Monte and need it, let me know OFF-LIST within
the next 24 hours with subject MergeEXT offer.
First come, first served.
Hugh Senior
FLCo
News:
ChartMaker 3.0 update at
Geoff,
Is 'put something BEFORE myVariable' quicker? That way, the engine doesn't
have to track to the end each time.
Just an idea.
Hugh Senior
FLCo
From: Geoff Canyon wrote:
For fifteen years now I've been telling people over and over, Sure, you
can speed that up dramatically by using
Version: 3.0
Build: 61
Release type: Maintenance
What's New in this build?
This is a free maintenance release that addresses the following issues...
Fixed
. Non-numeric data items should be evaluated as null values. This was broken
in Build 60 and is now restored.
Download the current
On 09/07/2013 11:23 PM, stephen barncard wrote:
snip
Safari 6.1 shows us what's in our Mavericks future: More controlling and
more UI changes that annoy.
snip
Richmond replied:
Windows, Apple, and even the Ubuntu people are doing this.
I believe that IF people voted with their feet and
I just tried put the libURLSetSSLVerification on Windows and got a compile
error.
Without a dictionary entry, however, I am only guessing that it would return
True/False.
Meanwhile, access to data supplied by an https url seems unavailable when
using Mac OS X.
Bugger.
Hugh Senior
FLCo
On
I am using the IDE and getting a certificate error on Mac OS with a get url
https://etc;. Doesn't happen on Windows, although both the same version
5.5.
Any insights?
Hugh Senior
FLCo
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please
I am trying to establish the User's public IP address. The Scripter's
Scrapbook has several methods, all of which return the same result and all
of which seem to return a local IP address (e.g. put the hostnametoaddress
of the hostname into myIP). I am getting 192.168.2.2 (local) instead of the
Mark/Matthias/Devin
Thank you for all your insights and suggestions. The public IP address is
only needed on first-launch for a best-guess geographic location.
Thereafter, the User's own text is used. Using query.us/iptest.php is
probably the most appropriate at this time and seems to do exactly
Richmond,
The stackFileVersion changed in v6, so trying to open it in 4.5 would report
a corruption.
Is this what may have happened?
Hugh Senior
FLCo
Richmond wrote:
Today, for the first time, I opened the script of a stack I was working
on yesterday
and found the script had been corrupted
ChartMaker v3.0 build 60 ~ Free Maintenance Release
Version: 3.0
Build: 60
Release type: Maintenance
What's New in this build?
This is a maintenance release that addresses the following display issues...
Fixed
. Legend labels are no longer truncated
. A named new window no longer ends in a
I've copied this tidbit to the Scripter's Scrapbook.
www.ssbk.co.uk
Hugh Senior
FLCo
-- Original message
Hi All,
After reading this thread, I just keep wondering
if this particular tidbit was published before.
(and where?)
This thread is a useful reminder (at least for me)
that I don't
I wish that the demo of the scripted library came with a whole bunch of
useful snippets for Livecode programmers.
Brevity and errors in this email probably the result of being sent by a
mobile device.
On May 5, 2013, at 3:07 AM, FlexibleLearning.com
ad...@flexiblelearning.com wrote:
I've copied
Seems I was wrong, even using jpegs.
Bugger.
So... If anyone DOES know how to, do please tell.
Hugh Senior
FLCo
-Original Message-
From: FlexibleLearning.com [mailto:ad...@flexiblelearning.com]
Sent: 19 March 2013 17:38
To: use-livecode@lists.runrev.com
Subject: Hi-Res imaging
I have found that printing an image at high resolution is not
straightforward in LiveCode. 'Squishing' a large version down to say 50%
dimensions ought to increase the pixel density, but although the kb size is
large the pixel denisty stays at 72dpi. Something to do with how the engine
renders
Just turned 9:35 pm here in the UK and the Kickstarter thermometer stands at
101% or ?353,859.
Oops, now ?353,984. So now I have to wait for ?354,000... Yeah! At 9:40pm.
This is doing absolutely no good at all to my blood pressure.
Hugh Senior
FLCo
One last thing that is driving me crazy is that import snapshot
never works for me in Windows. It works in the livecode IDE, but
in standalones, the snapshot is always of the desktop/wallpaper,
not of the stack.
put 234,83,500,166 into zRect
put the windowId of stack mainStack
I have tab-delimited list and am trying to filter lines.
Q1. How do we include a TAB character in the expression? Using filter with
*\tsomeText fails.
Q2. How do we specify a maximum numeric value? Using filter with *[18]
fails.
Have tried reading up on Bourne Shell but am totally confused!
Thanks for the insights. Much appreciated.
The list to filter is not enormous, but the 'for each' option would also
handle any numeric evaluations, so both solutions will be valuable.
Hugh Senior
FLCo
Klaus wrote:
Am 04.02.2013 um 18:04 schrieb FlexibleLearning.com:
I have tab-delimited
Thank you Klaus:
You are not allowed to write to the ENGINE folder -
(specialfolderpath(engine)!
Instead download to (any subfolder) of - specialfolderpath(documents)
--
Klaus Major
And thank you Chris:
My guess is you'd be fine with a stack file full of images, so long as it
doesn't contain
Is it allowed to download a stackfile of images for an iPad app?
I'd like the User to be able to download paid-for sets of artwork for use by
an app. What is the appropriate way to accomplish this? I think I know that
Apple does not permit an app to download executable code, but a stackfile of
Does this not work...
on mouseUp
set the useUnicode to true
put last char of fld INNPUT into fld OUTPUT
end mouseUp
Best regards,
Hugh Senior
FLCo
Richmond wrote:
on mouseUp
set the useUnicode to true
---not entirely sure whetjer that line is necessary--
copy the last char of
On 12/17/12 10:46 AM, Andre Garzia wrote:
the function is called elapsed and you can use it to figure out if a
certain amount of time passed between two timestamps.
Jacquie wrote...
I'd like a function that returns years, months, and days elapsed. I
wrote a quick one that gets the number
A free maintenance release for ChartMaker version 3 has been released.
You can update from within the software by clicking 'Check for updates...',
or see what's new and download from this page...
http://www.flexiblelearning.com/chartmaker/versioning/whatsnew.htm
It addresses the following
Was your machine asleep at midnight Nov 1? If so, I suspect that it can only
do the check when in an 'active' state. The date below the clock is checked
every second whereas the calendar is only checked at midnight (assuming the
computer is not asleep). A more frequent calendar check is needed,
No plans to make this any more than a KISS Clock ('Keep It Sweet and
Simple'). The thought in my mind has been 'There is no software that cannot
be made unusable by improvements'.
:)
But thank you for your kind comments!
www.FlexibleLearning.com/freeclock
Hugh Senior
FLCo
Hi Hugh,
Now adjusted to automatically roll over at midnight (v2.0.1)...
www.FlexibleLearning.com/freeclock
Thank you for finding this.
With best regards,
Hugh Senior
FLCo
FlexibleLearning admin at FlexibleLearning.com on October 28, 2012 at
4:04 AM -0700 wrote:
As requested, the 'Clearview' Clock
When I close a stack, the LC IDE insists on asking if I want to save it even
when unnecessary (auto-save is built in).
I have tried these to no avail...
on closeStack
lock messages
on suspendStack
lock messages
on closeStackRequest
lock messages
Anything else? The culprit looks like an
If your copy of the DigitalClock is not being restored to the state you left
it between sessions, you can get the new one that does...
Download v1.5 at www.FlexibleLearning.com/freeclock
Available for Windows, Macs and Linuxes - 100% free - 100% recycled
electrons.
Hugh Senior
FLCo
The home
All good stuff.
The clock's settings file was not being updated on re-boot. It seems LC is
not given the chance to write to file on closeStack when the system is
shutting down and quits the app automatically. This is now fixed and an
update has been uploaded if it affects you. The Linux build
location.
I love Clockview!
On Sat, Oct 6, 2012 at 6:38 AM, FlexibleLearning ad...@flexiblelearning.com
wrote:
As requested by the community:
- Linux build is available
- Multiple monitors are now supported
- Location is restored on re-launch
- 'About' is now a systemWindow so should
4, 2012, at 1:12 PM, FlexibleLearning.com wrote:
A freebie for the LiveCode community...
www.FlexibleLearning.com/freeclock
I suspect I am not alone when squinting to see the time on my
screens. I also don't need the weather, barometric pressure, a
count-down alarm, moon phase
-44cf-9cb4-f8ac505c7...@twft.com
Content-Type: text/plain; charset=us-ascii
Problems. Now none of the controls work, and I cannot move the
window. System just beeps when I try.
On Oct 5, 2012, at 9:38 AM, FlexibleLearning.com wrote:
Thank you for the kind comments.
New: Added
A freebie for the LiveCode community...
www.FlexibleLearning.com/freeclock
I suspect I am not alone when squinting to see the time on my screens. I
also don't need the weather, barometric pressure, a count-down alarm, moon
phase or the time in Timbuktoo. This 'clearview' clock is millisecond
Using the LiveCode IDE, is it possible to keep a stack open after closing
the LiveCode menubar? Using the MC IDE, I am used to this behavior and would
like to retain it!
Hugh Senior
FLCo
___
use-livecode mailing list
use-livecode@lists.runrev.com
Add me to the club of non-members.
:)
Hugh Senior
FLCo
On 9/30/12 8:57 PM, Jeff Reynolds wrote:
Jacquiline,
so glad to hear you are one of the unsocial out there, makes me feel in
good company!
Hey, we could start an online club...
:)
jeff
On Sep 30, 2012, at 6:14 PM,
101 - 188 of 188 matches
Mail list logo