Re: M1 Mac mini for LC: First Impressions

2021-08-02 Thread Keith Martin via use-livecode
> On 1 Aug 2021, at 21:28, Curry Kenworthy via use-livecode 
>  wrote:
> 
> M1 Chip with LC: Snappy but not amazing.
> In fact, my i5 budget Windows laptop
> was faster on the only task I've timed.

Very good to see this thoughtful list of your reactions and feelings. It will 
be fascinating to see how performance improves with a native Apple silicon 
build of LC, whenever that happens. In one sense it’s pretty damn impressive 
that things feel ‘just snappy’ in emulation, so for me it’s only mildly 
disappointing that it seems slower than your budget Win laptop and rather 
promising for the future. :-O 

k
___
use-livecode mailing list
use-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: Most streamlined method to get data

2021-08-02 Thread Skip Kimpel via use-livecode
This is why you have to love this group.. never knew that the code
csvToText existed.   It worked like a charm!!!

Thank you so much everybody for your help with this puzzle!

SKIP

On Sun, Aug 1, 2021 at 7:39 PM Alex Tweedly via use-livecode <
use-livecode@lists.runrev.com> wrote:

> It looks like all the "thousand dollar+" amounts are quoted - i.e. it's
> an example of a regular CSV file - ugly but predictable.
>
> Did you try the CSVToTab converter ?
>
>
> https://github.com/macMikey/csvToText
> 
>
> Alex.
>
> On 01/08/2021 20:39, Skip Kimpel via use-livecode wrote:
> > So to give you a full sense of the ugliness of the CSV I am working with,
> > here it is:  (trying to add certain columns but because some columns have
> > multiple "thousand dollar+ amounts, it throws doing an item count.  Need
> to
> > get rid of all dollar signs (easy) and all the commas that are part of a
> > thousand+ dollar amount)
> > ---
> >
> >
> > ,3rd Party,Bakery,Bar,Catering,Delivery,Dine In,Drive Thru,Take
> > Out,,Vending,Total,
> >
> > 8:00 AM,$0.00,$0.00,$0.00,$0.00,$0.00,$0.00,$0.00,$406.43,,$0.00,$406.43,
> >
> > 9:00 AM,$0.00,$0.00,$0.00,$0.00,$0.00,$0.00,$0.00,$0.00,,$0.00,$0.00,
> >
> > 10:00
> AM,$40.74,$0.00,$0.00,$0.00,$0.00,$52.41,$0.00,$200.69,,$0.00,$293.84,
> >
> > 11:00
> >
> AM,$538.14,$3.29,$0.00,$0.00,$0.00,$581.30,$0.00,$165.93,,$0.00,"$1,288.66",
> >
> > 12:00
> >
> PM,$184.11,$3.29,$0.00,$0.00,$0.00,$745.68,$0.00,$274.36,,$0.00,"$1,207.44",
> >
> > 1:00
> > PM,$89.06,$12.87,$0.00,$0.00,$0.00,$741.65,$0.00,$132.26,,$0.00,$975.84,
> >
> > 2:00
> > PM,$216.86,$12.47,$0.00,$0.00,$0.00,$604.86,$0.00,$90.32,,$0.00,$924.51,
> >
> > 3:00
> PM,$160.69,$0.00,$0.00,$0.00,$0.00,$404.66,$0.00,$37.86,,$0.00,$603.21,
> >
> > 4:00
> > PM,$68.31,$33.71,$0.00,$0.00,$0.00,$349.46,$0.00,$323.34,,$0.00,$774.82,
> >
> > 5:00
> >
> PM,$286.31,$0.00,$0.00,$0.00,$0.00,$625.92,$0.00,$253.94,,$0.00,"$1,166.17",
> >
> > 6:00
> >
> PM,$500.66,$36.11,$0.00,$0.00,$0.00,$790.25,$0.00,$609.95,,$0.00,"$1,936.97",
> >
> > 7:00
> >
> PM,$224.81,$26.95,$0.00,$0.00,$0.00,"$1,038.03",$0.00,$137.17,,$0.00,"$1,426.96",
> >
> > 8:00 PM,$0.00,$0.00,$0.00,$0.00,$0.00,$55.46,$0.00,$7.10,,$0.00,$62.56,
> >
> > 9:00 PM,$0.00,$0.00,$0.00,$0.00,$0.00,$2.75,$0.00,$0.00,,$0.00,$2.75,
> >
> > 10:00 PM,$0.00,$0.00,$0.00,$0.00,$0.00,$0.00,$0.00,$0.00,,$0.00,$0.00,
> >
> >
> Total,"$2,309.69",$128.69,$0.00,$0.00,$0.00,"$5,992.43",$0.00,"$2,639.35",,$0.00,"$11,070.16",
> >
> > Page 1 of 1
> >
> > On Thu, Jul 29, 2021 at 1:41 PM Mark Wieder via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> On 7/29/21 9:24 AM, Ben Rubinstein via use-livecode wrote:
> >>> As grepophile, I'd go for some variation on
> >> While I heartily approve of Ben's use of grep, here's another approach
> >> using an array. Note that is somewhat specific to your data set, and
> >> from the looks of the data my guess is that you're heading down the path
> >> of csv madness.
> >>
> >> on mouseUp pMouseBtnNo
> >>  local tVar, tHeader, tCount, tOriginal
> >>
> >>  put field 1 into tVar
> >>  put line 1 of tVar into tHeader
> >>  delete line 1 of tVar
> >>  split tVar by cr
> >>
> >>  repeat for each key tKey in tVar
> >> # transform "$8,303.32" into "$8303.32"
> >> repeat for each trueword tTrueWord in tVar[tKey]
> >>put tTrueWord into tOriginal
> >>replace comma with empty in tTrueWord
> >>replace tOriginal with tTrueWord in tVar[tKey]
> >> end repeat
> >> # now we can deal with commas as itemDelimiters
> >> put 1 into tCount
> >> repeat for each item tWord in tVar[tKey]
> >>put tWord into tVar[tKey][tCount]
> >>add 1 to tCount
> >> end repeat
> >>  end repeat # for each key tKey in tVar
> >>
> >>  # now pick out the desired total
> >>  local tTotal, tOffset
> >>  put itemoffset("Total", tHeader) into tOffset
> >>  put tVar[5][tOffset] into tTotal
> >>  breakpoint
> >> end mouseUp
> >>
> >> --
> >>Mark Wieder
> >>ahsoftw...@gmail.com
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-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: M1 Mac mini for LC: First Impressions

2021-08-02 Thread Curry Kenworthy via use-livecode



Keith:

> Very good to see this thoughtful list
> of your reactions and feelings.

Glad you liked it!
I'll do a follow-up in a few weeks.

Yes, "feelings" are wonderful ...
Especially the kind measured
to the nearest millisecond.
Those are my kind.

LiveCode felt that my M1 Mac
was  ms slower than my i5 PC,
on the same task/code/data.

(A hard fact, not an impression.)

> rather promising for the future. :-O

I certainly hope so! The flip side is:
a bit less promising for the present,
but I had very modest expectations.

Quite glad it worked at all! No glitches.
That in itself was cause for great joy.
(Huge smile on my face that day.)

> It will be fascinating to see how
> performance improves with a native
> Apple silicon build of LC

Yep, native code would help.
Roughly equal, I'd say in the meantime,
for the two chips in question;
yet the i5 wins in the current setup.

(Easy to guess which machine is still my primary.)

Just as importantly, this was only 1 test
so it's not a comprehensive comparison.
But a good test nonetheless.

It will be interesting as they develop.
Look lively, may the best chip win! ;)

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.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


decompressing gzip data server side

2021-08-02 Thread jbv via use-livecode

Hi list,

I need to post data from an LC standalone to a remote server.

For years, using LC as cgi engine, I have compressed and encoded
the data in base 64 like this :
  put base64encode(compress(myData)) into myVar

and then I run the opposite command server side :
  put decompress(base64decode(myData)) into myVar

Now I need to post from an LC app to a php script.
According to the LC dict, "compress" uses gzip, so I tried the 2
following php commands :
  $data = $_POST['a'];
  $a = gzdecode(base64_decode($data));
  $a = gzuncompress(base64_decode($data));

But in both cases it returns an empty string. The problem is with
the decompressing step, for the base64 encoded data is received by
the server and decoded without error.

Could someone be kind enough to tell me what I am missing ?

Thanks in advance.
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


[ANN] This Week in LiveCode 273

2021-08-02 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #273 here: https://bit.ly/3jbr6CZ

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to your e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.


-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps 
___
use-livecode mailing list
use-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: M1 Mac mini for LC: First Impressions

2021-08-02 Thread Ralph DiMola via use-livecode
Curry,

Thanks for the benchmark/compatibility report. I just updated my early 2015
15" MacBook to Catalina. It's an unsupported upgrade(using dosdude's
patcher). It works but is dog slow. There will be no going to Big Sur so I
have to make a decision on what Mac to get. I don't need a laptop so a Mac
mini is definitely a lower cost option for me.

Keep us updated...
Thanks!

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

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Curry Kenworthy via use-livecode
Sent: Sunday, August 01, 2021 4:28 PM
To: use-livecode@lists.runrev.com
Cc: Curry Kenworthy
Subject: M1 Mac mini for LC: First Impressions


I'm finally getting a chance to post this, after setting up a brand new Mac
mini recently to replace my old 2012 Mac mini.
It's all about LC work, of course

Origin: Made in Malaysia.
If you need a Mac Not-Made-in-China,
and can't afford Mac Pro, this is it!
(Ethically sourcing my hardware now.)

Hardware Design: Compact but roomy.
Ports are sufficient and easy to access.
Allows the standard PC peripherals:
good options, ergonomics, and reliability.

Packaging Design: Ergonomically Retarded.
Perfectly flush square shrinkwrapped box, sans grips, sans gaps, sans common
sense.
Careful not to drop your new investment!

Hardware Setup: Smooth and painless.
Accepted my old USB and HDMI connections.
Had me press 2 keys to identify keyboard.

System Software Setup: Not bad; about 15 minutes.
Wifi on first try. Set up without an Apple account!
Disabled most privacy/performance concerns easily, so running fairly
optimized and safe from Day One.

Big Sur System Software Design: We'll see.
I've been a critic of Apple's hypocrisy
(violating their own previous HIG principles) so I'll save that for Second
Impressions.
Hoping their UI has improved a bit finally.

Livecode: Big download! (LC is always chubby on Mac.) Licensed on first try.
First run installed Rosetta, which went smoothly, and is seamless so far.

M1 Chip with LC: Snappy but not amazing.
In fact, my i5 budget Windows laptop
was faster on the only task I've timed.
(Factoring in Rosetta, probably similar.) But I already had modest
expectations.
No additional glitches so far versus Intel.

Overall: Solid "budget-ish" machine for LC Mac dev.
Happy to be running Apple's latest HW/SW for a change; it will have a good
impact on addons and client projects.
(Including new WordLib and WordReport updates.)

I'll post again on M1 and Big Sur with LC after more use.
Hope this is helpful for anyone in the same boat I was. :)

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/

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


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


Re: M1 Mac mini for LC: First Impressions

2021-08-02 Thread Curry Kenworthy via use-livecode



Ralph:

> I have to make a decision on what Mac to get.
> I don't need a laptop so a Mac mini
> is definitely a lower cost option for me.

I say go for it; no regrets here.
My purpose is LC dev/test machine,
and it will fit that role perfectly.

I already had that old Mac mini,
and the new one accepted the same cords.
Same screen, keyboard, mouse. Quick swap.

I'll still be primarily on the PC laptop,
but the new Mac makes testing a breeze,
and good Mac-specific dev when needed.

Not swooning, but I do really like it. :)
Made in Malaysia - pretty cool.

(I used to play badminton with some Malaysians.
They taught me a badass spike to dominate it.
Before that, no idea people could spike in badminton!)

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.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: [ANN] Release 9.6.3

2021-08-02 Thread Sannyasin Brahmanathaswami via use-livecode
Aloha Panagiotis

But you cannot release an Android App which is more the 100MB!

See this screen shot

http://wiki.hindu.org/screenshots/You-Cannot-Release-Android-Over-100MB.png

What are we going to do?


Svasti Astu – Be Well
Brahmanathaswami

Get SivaSiva.app – It free!
https://www.himalayanacademy.com/view/sivasiva



On 7/30/21, 3:46 AM, "use-livecode"  
wrote:


Dear list members,

We are pleased to announce the release of LiveCode 9.6.3 STABLE.


Getting the Release
===
You can get the release at https://downloads.livecode.com/livecode/ or via
the automatic updater.


Release Contents

LiveCode 9.6.3 STABLE comes with more than 60 changes, compared to the
previous stable version (9.6.2), including:

New Features
  - HiDPI scaling support to HTML5 engine
  - Support for building with Xcode 12.4 (Catalina) and Xcode 12.5 (Big
Sur), using the iOS 14.4 and 14.5 SDK respectively
  - New tsNet and mergExt builds, built against the iOS 14.4 and 14.5 SDKs
  - Support for App Tracking transparency on iOS
  - Ability to detect the device model an iOS app is running on
  - CameraControl: Include dual and triple camera capture devices when
listing 'videoDevices' on iOS
  - Updated SQLite to version 3.34.0

Bug Fixes:
  - A couple of crashes are fixed
  - Several memory leaks are addressed
  - Several dictionary fixes and documentation improvements


For the full list of all fixes, updates and enhancements please see the
release notes:
http://downloads.livecode.com/livecode/9_6_3/LiveCodeNotes-9_6_3.pdf


Known issues

- The Browser widget's native layer is not shown in some Linux distros with
Cinnamon window manager.
- The use of the Browser widget is not supported on Ubuntu 18.04 64 bit LTS
yet.


Required Software
=
To build iOS apps with LiveCode you must have the appropriate versions of
Xcode as follows:

  - macOS 10.13.4: Xcode 10.1 - LiveCode builds iOS apps using the iOS 12.1
SDK
  - macOS 10.14.4: Xcode 11.3.x - LiveCode builds iOS apps using the iOS
13.2 SDK
  - macOS 10.15.4: Xcode 12.4.x - LiveCode builds iOS apps using the iOS
14.4 SDK
  - macOS 11.x.  : Xcode 12.5.x - LiveCode builds iOS apps using the iOS
14.5 SDK

There is a full list of working LiveCode/macOS/Xcode combinations here:
https://livecode.com/docs/9-5-0/faq/faq/

Note: Whilst we endeavour to release updated versions of LiveCode
supporting the latest Xcode/iOS SDKs as quickly as possible; we strongly
recommend disabling automatic update of Xcode or downloading the specific
version of Xcode required directly from the Apple developer portal and
installing it separately.

Important: From the start of April 2021, Apple is only accepting apps built
using iOS14.x SDKs. This means that, if you wish to submit apps to the
AppStore you will have to be running at least macOS 10.15 in order to be
able to install the necessary version of Xcode.


Feedback

Please report any bugs encountered on our quality center at
http://quality.livecode.com/

We have a forum available for discussing LiveCode Builder at
http://forums.livecode.com/viewforum.php?f=93


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


Annoying double parens, brackets and quotes

2021-08-02 Thread Roger Guay via use-livecode
Could someone please tell me how to turn off the double parens, brackets and 
quotes in the script editor? IOW when I type ( , I don’t want ( ).

Thanks very much!!

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


Re: Annoying double parens, brackets and quotes

2021-08-02 Thread Mark Wieder via use-livecode

On 8/2/21 8:13 PM, Roger Guay via use-livecode wrote:

Could someone please tell me how to turn off the double parens, brackets and 
quotes in the script editor? IOW when I type ( , I don’t want ( ).


In the Edit menu of the script editor, select Options.
Then uncheck Bracket Completion.

--
 Mark Wieder
 ahsoftw...@gmail.com

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