Re: Commands on server and lack of examples

2019-11-14 Thread Mark Wieder via use-livecode

On 11/14/19 5:47 PM, Richard Gaskin via use-livecode wrote:


Wow. Even worse than I'd thought.

LC Server is such a wonderful tool, I feel it could provide a great way 
to introduce other devs to chunk expressions and more.  But after that 
experience on a popular shared host that couldn't handle LC's resource 
usage, I began to feel dismayed by the prospects.


If we can't find a solution in the engine, at least we have a workaround 
with a custom font config file. But it's so many extra steps to set that 
up it rather kills the joy of LC's simplicity.




I forgot to mention libgraphite, which is loaded by default by libharfbuzz.

FWIW, the following 242 font files are checked (open file, read a few 
bytes from start of file, close file) on my linux system for each server 
transaction. This in spite of my executing a simple "hello world" script 
that uses NO fonts:


/etc/fonts/fonts.conf
/etc/fonts/conf.d
/etc/fonts/conf.d/10-hinting-slight.conf
/etc/fonts/conf.d/10-scale-bitmap-fonts.conf
/etc/fonts/conf.d/11-lcdfilter-default.conf
/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans-mono.conf
/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans.conf
/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-serif.conf
/etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf
/etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf
/etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf
/etc/fonts/conf.d/20-unhint-small-vera.conf
/etc/fonts/conf.d/30-metric-aliases.conf
/etc/fonts/conf.d/30-opensymbol.conf
/etc/fonts/conf.d/40-nonlatin.conf
/etc/fonts/conf.d/45-generic.conf
/etc/fonts/conf.d/45-latin.conf
/etc/fonts/conf.d/49-sansserif.conf
/etc/fonts/conf.d/50-user.conf
/home/mwieder/.config/fontconfig/conf.d
/home/mwieder/.config/fontconfig/fonts.conf
/home/mwieder/.config/font-manager/conf.d
/home/mwieder/.config/font-manager/directories.conf
/home/mwieder/.config/font-manager/local.conf
/home/mwieder/.config/font-manager/select.conf
/home/mwieder/.fonts.conf.d
/home/mwieder/.fonts.conf
/etc/fonts/conf.d/51-local.conf
/etc/fonts/local.conf
/etc/fonts/conf.d/57-dejavu-sans-mono.conf
/etc/fonts/conf.d/57-dejavu-sans.conf
/etc/fonts/conf.d/57-dejavu-serif.conf
/etc/fonts/conf.d/58-dejavu-lgc-sans-mono.conf
/etc/fonts/conf.d/58-dejavu-lgc-sans.conf
/etc/fonts/conf.d/58-dejavu-lgc-serif.conf
/etc/fonts/conf.d/59-lohit-devanagari.conf
/etc/fonts/conf.d/60-generic.conf
/etc/fonts/conf.d/60-latin.conf
/etc/fonts/conf.d/64-01-tlwg-kinnari.conf
/etc/fonts/conf.d/64-02-tlwg-norasi.conf
/etc/fonts/conf.d/64-10-tlwg-loma.conf
/etc/fonts/conf.d/64-11-tlwg-waree.conf
/etc/fonts/conf.d/64-13-tlwg-garuda.conf
/etc/fonts/conf.d/64-14-tlwg-umpush.conf
/etc/fonts/conf.d/64-15-laksaman.conf
/etc/fonts/conf.d/64-21-tlwg-typo.conf
/etc/fonts/conf.d/64-22-tlwg-typist.conf
/etc/fonts/conf.d/64-23-tlwg-mono.conf
/etc/fonts/conf.d/65-0-fonts-beng-extra.conf
/etc/fonts/conf.d/65-0-fonts-deva-extra.conf
/etc/fonts/conf.d/65-0-fonts-gubbi.conf
/etc/fonts/conf.d/65-0-fonts-gujr-extra.conf
/etc/fonts/conf.d/65-0-fonts-guru-extra.conf
/etc/fonts/conf.d/65-0-fonts-orya-extra.conf
/etc/fonts/conf.d/65-0-fonts-pagul.conf
/etc/fonts/conf.d/65-0-fonts-telu-extra.conf
/etc/fonts/conf.d/65-0-smc-meera.conf
/etc/fonts/conf.d/65-0-smc-rachana.conf
/etc/fonts/conf.d/65-droid-sans-fallback.conf
/etc/fonts/conf.d/65-fonts-persian.conf
/etc/fonts/conf.d/65-fonts-takao-pgothic.conf
/etc/fonts/conf.d/65-khmer.conf
/etc/fonts/conf.d/65-nonlatin.conf
/etc/fonts/conf.d/65-wqy-microhei.conf
/etc/fonts/conf.d/66-lohit-assamese.conf
/etc/fonts/conf.d/66-lohit-bengali.conf
/etc/fonts/conf.d/66-lohit-devanagari.conf
/etc/fonts/conf.d/66-lohit-gujarati.conf
/etc/fonts/conf.d/66-lohit-gurmukhi.conf
/etc/fonts/conf.d/66-lohit-kannada.conf
/etc/fonts/conf.d/66-lohit-odia.conf
/etc/fonts/conf.d/66-lohit-tamil-classical.conf
/etc/fonts/conf.d/66-lohit-tamil.conf
/etc/fonts/conf.d/66-lohit-telugu.conf
/etc/fonts/conf.d/67-fonts-smc-manjari.conf
/etc/fonts/conf.d/67-smc-anjalioldlipi.conf
/etc/fonts/conf.d/67-smc-chilanka.conf
/etc/fonts/conf.d/67-smc-dyuthi.conf
/etc/fonts/conf.d/67-smc-karumbi.conf
/etc/fonts/conf.d/67-smc-keraleeyam.conf
/etc/fonts/conf.d/67-smc-raghumalayalamsans.conf
/etc/fonts/conf.d/67-smc-suruma.conf
/etc/fonts/conf.d/67-smc-uroob.conf
/etc/fonts/conf.d/69-unifont.conf
/etc/fonts/conf.d/70-fonts-noto-cjk.conf
/etc/fonts/conf.d/70-no-bitmaps.conf
/etc/fonts/conf.d/80-delicious.conf
/etc/fonts/conf.d/89-tlwg-garuda-synthetic.conf
/etc/fonts/conf.d/89-tlwg-kinnari-synthetic.conf
/etc/fonts/conf.d/89-tlwg-laksaman-synthetic.conf
/etc/fonts/conf.d/89-tlwg-umpush-synthetic.conf
/etc/fonts/conf.d/90-fonts-nanum.conf
/etc/fonts/conf.d/90-synthetic.conf
/usr/share/fonts
/var/cache/fontconfig//3830d5c3ddfd5cd38a049b759396e72e-le64.cache-7
/usr/local/share/fonts
/var/cache/fontconfig//4c599c202bc5c08e2d34565a40eac3b2-le64.cache-7
/home/mwieder/.local/share/fonts
/var/cache/fontconfig//f34f8236e7353d7d85a1ce4a33e70966-le64.cache-7
/usr/share/fonts/X11

resizeControl message for groups

2019-11-14 Thread Brian Milby via use-livecode
I'm thinking this may be a documentation bug, but wanted to check before
submitting.

I know that resizeControl is sent to a group when the size is updated by
script (for other controls, the message is only generated when manually
resized by dragging handles).  The documentation for the message doesn't
mention groups at all.  I was sure I read it somewhere but I can't find the
source now.  Does anyone know where this is documented?

... visit to Bugzilla ...

Ok, I see a couple of entries already.  The second one below seems to
identify the documentation bug by itself.  That one should be pretty easy
to address based on the comments already included there.

https://quality.livecode.com/show_bug.cgi?id=15339
https://quality.livecode.com/show_bug.cgi?id=17118

But I was sure that I read about it somewhere else...

Thanks,
Brian
___
use-livecode mailing list
use-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: Commands on server and lack of examples

2019-11-14 Thread Richard Gaskin via use-livecode

Mark Wieder wrote:


Having looked into this a bit previously, it's somewhat more involved
even than that. There a interlocking pieces among (at least) libskia,
libcairo, and libharfbuzz, all of which jostle each other to make sure
there is a complete list of fonts available in the native system. I
haven't yet seen a way to change this behavior without modifying the
third-party libraries themselves.


Are those libraries loaded from code, or from something in the make 
file?




I believe the problem Richard is referring to (RG: correct me if I'm
wrong about this) is that on startup the engine (and this includes the
server engine) queries the system for the various places where fonts
might be stored, then iterates through the list of locations and makes
a list of all the available fonts on the computer *and* the alternates
for the fonts it might need for display. I also see the libraries 
launched

again for every extension loaded by the system.


Wow. Even worse than I'd thought.

LC Server is such a wonderful tool, I feel it could provide a great way 
to introduce other devs to chunk expressions and more.  But after that 
experience on a popular shared host that couldn't handle LC's resource 
usage, I began to feel dismayed by the prospects.


If we can't find a solution in the engine, at least we have a workaround 
with a custom font config file. But it's so many extra steps to set that 
up it rather kills the joy of LC's simplicity.


--
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  
  Ambassador at FourthWorld.com
http://www.FourthWorld.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: New app update: four errors in plist

2019-11-14 Thread J. Landman Gay via use-livecode
Is the location key included in the plist if you don't select location 
services in standalone settings? (I haven't built for iOS in a long time.)


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 14, 2019 3:05:17 PM Ralph DiMola via use-livecode 
 wrote:



ITMS-90339: from iOS 12(or 13?) an app automatically does NOT exit on
suspend. You need this key for legacy OS versions. You will not be rejected
for this(yet).
ITMS-90078: will also not get you rejected. This is caused by some library
binding issue that Mark explained a while back.
ITMS-90191: Also a warning. This is for Beta testing. You can enable the
beta entitlement when generating a provisioning profile.
ITMS-90683: This is the one that will get you rejected. For example if you
use location services you will have to hack the IDE to change the text of
the location request text. This can be a pain because you have to do it
every time the IDE is started. What I do:
1) In the message box ==> "put the script of "revSaveAsIosStandalone" into
url ("File://somePath/someFilename")
2) Edit the text file(See QCC 22150)

After that every time you want to submit to the app store do this in the
message box ==> set the script of "revSaveAsIosStandalone" to url
("File://somePath/someFilename")

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 William de Smet via use-livecode
Sent: Thursday, November 14, 2019 2:00 PM
To: How to use LiveCode
Cc: William de Smet
Subject: New app update: four errors in plist

Hi there,

Today I uploaded an update for one of my apps to the App Store.
Now I have four errors coming back from Apple.
Still need to edit the info.plist but it'd easy to make a mistake with this.
When will this be fixed?

-
Got this notification back:
ITMS-90339: Deprecated Info.plist Key - The Info.plist contains a key
'UIApplicationExitsOnSuspend' in bundle shutthebox [shutthebox.app] that
will soon be unsupported. Remove the key, rebuild your app and resubmit.

ITMS-90078: Missing Push Notification Entitlement - Your app appears to
register with the Apple Push Notification service, but the app signature's
entitlements do not include the "aps-environment" entitlement. If your app
uses the Apple Push Notification service, make sure your App ID is enabled
for Push Notification in the Provisioning Portal, and resubmit after signing
your app with a Distribution provisioning profile that includes the
"aps-environment" entitlement. Xcode does not automatically copy the
aps-environment entitlement from provisioning profiles at build time. This
behavior is intentional. To use this entitlement, either enable Push
Notifications in the project editor's Capabilities pane, or manually add the
entitlement to your entitlements file. For more information, see
https://developer.apple.com/library/content/documentation/NetworkingInternet
/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_r
ef/doc/uid/TP40008194-CH6-SW1
.

ITMS-90191: Missing beta entitlement - Your app does not include the
beta-reports-active entitlement. If you intend to distribute this build via
TestFlight for beta testing, please re-build this app with an App Store
Distribution provisioning profile. Do not use ad-hoc profiles.

ITMS-90683: Missing Purpose String in Info.plist - Your app's code
references one or more APIs that access sensitive user data. The app's
Info.plist file should contain a NSLocationAlwaysUsageDescription key with a
user-facing purpose string explaining clearly and completely why your app
needs the data. Starting Spring 2019, all apps submitted to the App Store
that access user data are required to include a purpose string. If you're
using external libraries or SDKs, they may reference APIs that require a
purpose string. While your app might not use these APIs, a purpose string is
still required. You can contact the developer of the library or SDK and
request they release a version of their code that doesn't contain the APIs.
Learn more (
https://developer.apple.com/documentation/uikit/core_app/protecting_the_user
_s_privacy
).
-

Greetings,

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

Re: Decoding "quoted-printable" -- Help needed -- Reopened - Solved 2nd

2019-11-14 Thread R.H. via use-livecode
I am very sorry that I am overstressing this list. I keep on answering my
own questions.

The function needs to address bytes. I found this looking at some similar
C# code:

# Code snippet from C#
# Source:
https://stackoverflow.com/questions/32083334/consecutive-control-characters-in-quoted-printable-not-decoding-correctly
---
string sHex = input;
sHex = sHex.Substring(i + 1, 2);
int hex = Convert.ToInt32(sHex, 16);
byte b = Convert.ToByte(hex);
output.Add(b);
i += 3;
---

I oversaw that the value must be a byte value. Anyway, that is all new to
me.
So, the correct and tested converting to and from "quoted-printable" with
encoded UTF8 in LiveCode >7 is:

---
local tChar
local tItem
local tCodedChar
local tCodePoint
local tEncoded
local tDecoded

set the itemdelimiter to "="

// ENCODE EXAMPLE
put "€" into tChar
put textEncode ( tChar , "UTF-8" ) into tCodedChar
repeat for each codePoint tCodePoint in tCodedChar
  put "="& baseConvert ( byteToNum ( tCodePoint ) , 10 , 16 ) after
tEncoded
end repeat
put tEncoded into msg --->  "=E2=82=AC" - the quoted-printable UFT-8
encoding of the Euro symbol "€"

// DECODE EXAMPLE
put "=E2=82=AC" into tEncoded
delete char 1 of tEncoded
repeat for each item tItem in tEncoded
  put numToByte ( BaseConvert ( tItem , 16 , 10 ) ) after tDecoded
end repeat
put textDecode ( tDecoded , "UTF-8" ) into msg --> the Euro symbol "€"
---

Thanks to all.

Given a bit of time, I will post a solution for UTF8 quoted-printable
encoded E-Mail blocks of text in the Forum.

Roland


---

Am Do., 14. Nov. 2019 um 20:41 Uhr schrieb R.H. :
>
> Oh, sorry, I was too quick declaring a solution.
>
> Even though the code of the function works fine, the result also converts
back, but the "quoted-printable" or "UTF-8" code expects that each
codepoint is encoded in Hex with just two ASCII letters representing a
codepoint.
>
> For example, for the Euro symbol "€" we have three codepoints.
> The function below converts to "=E2=201A=AC" while it must be "=E2=82=AC".
> The "=" sign is just a delimiter in quoted-printable.
>
> Now, I do not know what is wrong in my thinking as I am not getting quite
the same results.
> (The result is ok for other symbols such as 'ü'.)
>
> EXAMPLE:
>
> put "€" into tChar
>// First encode to UTF-8:
> put textEncode(tChar,"UTF-8") into tCodedChar
>// Repeat for each codepoint in the UTF-8 char
> repeat for each codePoint tCodePoint in tCodedChar
>// Encode each codepoint to its integer expression and convert to
Hex value:
>   put "="& BaseConvert ( codePointToNum (tCodePoint) , 10 , 16 )
after tEncoded
> end repeat
> put tEncoded into field "Show Codepoints" -- Expected ASCII representing
Hex numbers
> -- Result: "=E2=201A=AC" -- Instead of "=E2=82=AC" , but valid and
working.
>
> The actual "correct" UTF-8 result can be tested here:
http://www.endmemo.com/unicode/unicodeconverter.php
>
> What am I missing?
>
> Thanks a lot
> Roland
___
use-livecode mailing list
use-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: Commands on server and lack of examples

2019-11-14 Thread Mark Wieder via use-livecode

On 11/14/19 10:36 AM, Brian Milby via use-livecode wrote:

Although the concept of the change is simple, the implementation is not 
trivial.  It may not be that hard for a Mark, but it does look a little 
involved to me.  The code that does the font stuff isn’t easy to just cut out 
since so much later depends on those structures being populated.  It may be 
possible to stub it out where a single static font is loaded, but I’m talking 
way above my head at this point.


(different Mark here, but...)

Having looked into this a bit previously, it's somewhat more involved 
even than that. There a interlocking pieces among (at least) libskia, 
libcairo, and libharfbuzz, all of which jostle each other to make sure 
there is a complete list of fonts available in the native system. I 
haven't yet seen a way to change this behavior without modifying the 
third-party libraries themselves.


I believe the problem Richard is referring to (RG: correct me if I'm 
wrong about this) is that on startup the engine (and this includes the 
server engine) queries the system for the various places where fonts 
might be stored, then iterates through the list of locations and makes a 
list of all the available fonts on the computer *and* the alternates for 
the fonts it might need for display. I also see the libraries launched 
again for every extension loaded by the system.


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


RE: New app update: four errors in plist

2019-11-14 Thread Ralph DiMola via use-livecode
ITMS-90339: from iOS 12(or 13?) an app automatically does NOT exit on
suspend. You need this key for legacy OS versions. You will not be rejected
for this(yet).
ITMS-90078: will also not get you rejected. This is caused by some library
binding issue that Mark explained a while back.
ITMS-90191: Also a warning. This is for Beta testing. You can enable the
beta entitlement when generating a provisioning profile.
ITMS-90683: This is the one that will get you rejected. For example if you
use location services you will have to hack the IDE to change the text of
the location request text. This can be a pain because you have to do it
every time the IDE is started. What I do:
1) In the message box ==> "put the script of "revSaveAsIosStandalone" into
url ("File://somePath/someFilename")
2) Edit the text file(See QCC 22150)

After that every time you want to submit to the app store do this in the
message box ==> set the script of "revSaveAsIosStandalone" to url
("File://somePath/someFilename")

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 William de Smet via use-livecode
Sent: Thursday, November 14, 2019 2:00 PM
To: How to use LiveCode
Cc: William de Smet
Subject: New app update: four errors in plist

Hi there,

Today I uploaded an update for one of my apps to the App Store.
Now I have four errors coming back from Apple.
Still need to edit the info.plist but it'd easy to make a mistake with this.
When will this be fixed?

-
Got this notification back:
ITMS-90339: Deprecated Info.plist Key - The Info.plist contains a key
'UIApplicationExitsOnSuspend' in bundle shutthebox [shutthebox.app] that
will soon be unsupported. Remove the key, rebuild your app and resubmit.

ITMS-90078: Missing Push Notification Entitlement - Your app appears to
register with the Apple Push Notification service, but the app signature's
entitlements do not include the "aps-environment" entitlement. If your app
uses the Apple Push Notification service, make sure your App ID is enabled
for Push Notification in the Provisioning Portal, and resubmit after signing
your app with a Distribution provisioning profile that includes the
"aps-environment" entitlement. Xcode does not automatically copy the
aps-environment entitlement from provisioning profiles at build time. This
behavior is intentional. To use this entitlement, either enable Push
Notifications in the project editor's Capabilities pane, or manually add the
entitlement to your entitlements file. For more information, see
https://developer.apple.com/library/content/documentation/NetworkingInternet
/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_r
ef/doc/uid/TP40008194-CH6-SW1
.

ITMS-90191: Missing beta entitlement - Your app does not include the
beta-reports-active entitlement. If you intend to distribute this build via
TestFlight for beta testing, please re-build this app with an App Store
Distribution provisioning profile. Do not use ad-hoc profiles.

ITMS-90683: Missing Purpose String in Info.plist - Your app's code
references one or more APIs that access sensitive user data. The app's
Info.plist file should contain a NSLocationAlwaysUsageDescription key with a
user-facing purpose string explaining clearly and completely why your app
needs the data. Starting Spring 2019, all apps submitted to the App Store
that access user data are required to include a purpose string. If you're
using external libraries or SDKs, they may reference APIs that require a
purpose string. While your app might not use these APIs, a purpose string is
still required. You can contact the developer of the library or SDK and
request they release a version of their code that doesn't contain the APIs.
Learn more (
https://developer.apple.com/documentation/uikit/core_app/protecting_the_user
_s_privacy
).
-

Greetings,

William
___
use-livecode mailing list
use-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: Decoding "quoted-printable" -- Help needed -- Reopened

2019-11-14 Thread R.H. via use-livecode
Oh, sorry, I was too quick declaring a solution.

Even though the code of the function works fine, the result also converts
back, but the "quoted-printable" or "UTF-8" code expects that each
codepoint is encoded in Hex with just two ASCII letters representing a
codepoint.

For example, for the Euro symbol "€" we have three codepoints.
The function below converts to "=E2=201A=AC" while it must be "=E2=82=AC".
The "=" sign is just a delimiter in quoted-printable.

Now, I do not know what is wrong in my thinking as I am not getting quite
the same results.
(The result is ok for other symbols such as 'ü'.)

EXAMPLE:

put "€" into tChar
   // First encode to UTF-8:
put textEncode(tChar,"UTF-8") into tCodedChar
   // Repeat for each codepoint in the UTF-8 char
repeat for each codePoint tCodePoint in tCodedChar
   // Encode each codepoint to its integer expression and convert to
Hex value:
  put "="& BaseConvert ( codePointToNum (tCodePoint) , 10 , 16 ) after
tEncoded
end repeat
put tEncoded into field "Show Codepoints" -- Expected ASCII representing
Hex numbers
-- Result: "=E2=201A=AC" -- Instead of "=E2=82=AC" , but valid and working.

The actual "correct" UTF-8 result can be tested here:
http://www.endmemo.com/unicode/unicodeconverter.php

What am I missing?

Thanks a lot
Roland
___
use-livecode mailing list
use-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: Commands on server and lack of examples

2019-11-14 Thread Richard Gaskin via use-livecode

Thanks for looking into this, Brian.

My understanding of the team's approval of this IF addition is that 
anyone adding "-f" to their call invoking a faceless LC engine assumes 
responsibility if that breaks anything else they try to invoke later.


Down the road, the team would like to use "lazy font initialization", 
described in that bug report in Peter Brett's comments.


This addition of a command line flag is merely a stop-gap, a way to 
allow LC's natural efficiencies at so many tasks needed for CGI work to 
run unimpeded by the mostly-unused overhead of loading fonts.


Given the potential for LC, with its glorious chunk expressions, to one 
day rival Ruby and Python for CGI tasks, I hate to see adoption 
inhibited by needless resource consumption.


--
 Richard Gaskin
 Fourth World Systems



Brian Milby wrote:


Although the concept of the change is simple, the implementation is not 
trivial.  It may not be that hard for a Mark, but it does look a little 
involved to me.  The code that does the font stuff isn’t easy to just cut out 
since so much later depends on those structures being populated.  It may be 
possible to stub it out where a single static font is loaded, but I’m talking 
way above my head at this point.

Thanks,
Brian
On Nov 14, 2019, 1:18 PM -0500, JJS via use-livecode , wrote:

Thanks, that was an interesting read.

Unfortunately i have zero C++ skills


Regards,

Jerry

Op 13-11-2019 om 22:16 schreef Richard Gaskin via use-livecode:
> JJS wrote:
> > Op 12-11-2019 om 19:34 schreef Brian Milby via use-livecode:
> > > Unless you are doing a HTML5 app (entire stack resides in a web
> > > page), none of the GUI stuff applies.  The LC code is pretty much
> > > a replacement for PHP code, so the GUI piece would be the same
> > > (whatever HTML/JS frameworks you choose).
> >
> > So actually the Dictionary needs some updates of stuff that is not an
> > error but also doing nothing when used on server.
>
> GUI elements can be useful in LC Server for creating custom screen
> shots, which can be exported and that file data returned to the client
> for display in a browser or an LC app.
>
> That's the good news.
>
> That bad news is that 100% of all LC Server use is slower than it
> needs to be because it's initializing fonts for the 0.001% of CGIs
> using custom graphics export with specified fonts.
>
> I've discussed the situation with several people at LC Ltd, and while
> they're not in a position to put a solution in place right now they
> are quite open to accepting a pull request for it, which should be a
> relatively simple matter for anyone with C++ skills.
>
> I've outlined the problem and the proposed solution in detail here:
>
> http://lists.runrev.com/pipermail/use-livecode/2019-March/253723.html
>


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


New app update: four errors in plist

2019-11-14 Thread William de Smet via use-livecode
Hi there,

Today I uploaded an update for one of my apps to the App Store.
Now I have four errors coming back from Apple.
Still need to edit the info.plist but it'd easy to make a mistake with this.
When will this be fixed?

-
Got this notification back:
ITMS-90339: Deprecated Info.plist Key - The Info.plist contains a key
'UIApplicationExitsOnSuspend' in bundle shutthebox [shutthebox.app] that
will soon be unsupported. Remove the key, rebuild your app and resubmit.

ITMS-90078: Missing Push Notification Entitlement - Your app appears to
register with the Apple Push Notification service, but the app signature's
entitlements do not include the "aps-environment" entitlement. If your app
uses the Apple Push Notification service, make sure your App ID is enabled
for Push Notification in the Provisioning Portal, and resubmit after
signing your app with a Distribution provisioning profile that includes the
"aps-environment" entitlement. Xcode does not automatically copy the
aps-environment entitlement from provisioning profiles at build time. This
behavior is intentional. To use this entitlement, either enable Push
Notifications in the project editor's Capabilities pane, or manually add
the entitlement to your entitlements file. For more information, see
https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1
.

ITMS-90191: Missing beta entitlement - Your app does not include the
beta-reports-active entitlement. If you intend to distribute this build via
TestFlight for beta testing, please re-build this app with an App Store
Distribution provisioning profile. Do not use ad-hoc profiles.

ITMS-90683: Missing Purpose String in Info.plist - Your app's code
references one or more APIs that access sensitive user data. The app's
Info.plist file should contain a NSLocationAlwaysUsageDescription key with
a user-facing purpose string explaining clearly and completely why your app
needs the data. Starting Spring 2019, all apps submitted to the App Store
that access user data are required to include a purpose string. If you're
using external libraries or SDKs, they may reference APIs that require a
purpose string. While your app might not use these APIs, a purpose string
is still required. You can contact the developer of the library or SDK and
request they release a version of their code that doesn't contain the APIs.
Learn more (
https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy
).
-

Greetings,

William
___
use-livecode mailing list
use-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: Y coordinate for a line of text

2019-11-14 Thread hh via use-livecode
> I’m needing to know the coordinate (Y is the tricky one) for a line of text...

the selectedLoc
if you need the rectangle use additionally measureText or measureUnicodeText
___
use-livecode mailing list
use-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: Commands on server and lack of examples

2019-11-14 Thread Brian Milby via use-livecode
Although the concept of the change is simple, the implementation is not 
trivial.  It may not be that hard for a Mark, but it does look a little 
involved to me.  The code that does the font stuff isn’t easy to just cut out 
since so much later depends on those structures being populated.  It may be 
possible to stub it out where a single static font is loaded, but I’m talking 
way above my head at this point.

Thanks,
Brian
On Nov 14, 2019, 1:18 PM -0500, JJS via use-livecode 
, wrote:
> Thanks, that was an interesting read.
>
> Unfortunately i have zero C++ skills
>
>
> Regards,
>
> Jerry
>
> Op 13-11-2019 om 22:16 schreef Richard Gaskin via use-livecode:
> > JJS wrote:
> > > Op 12-11-2019 om 19:34 schreef Brian Milby via use-livecode:
> > > > Unless you are doing a HTML5 app (entire stack resides in a web
> > > > page), none of the GUI stuff applies.  The LC code is pretty much
> > > > a replacement for PHP code, so the GUI piece would be the same
> > > > (whatever HTML/JS frameworks you choose).
> > >
> > > So actually the Dictionary needs some updates of stuff that is not an
> > > error but also doing nothing when used on server.
> >
> > GUI elements can be useful in LC Server for creating custom screen
> > shots, which can be exported and that file data returned to the client
> > for display in a browser or an LC app.
> >
> > That's the good news.
> >
> > That bad news is that 100% of all LC Server use is slower than it
> > needs to be because it's initializing fonts for the 0.001% of CGIs
> > using custom graphics export with specified fonts.
> >
> > I've discussed the situation with several people at LC Ltd, and while
> > they're not in a position to put a solution in place right now they
> > are quite open to accepting a pull request for it, which should be a
> > relatively simple matter for anyone with C++ skills.
> >
> > I've outlined the problem and the proposed solution in detail here:
> >
> > http://lists.runrev.com/pipermail/use-livecode/2019-March/253723.html
> >
> >
>
> ___
> use-livecode mailing list
> use-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: Push notification to all user

2019-11-14 Thread Riko Abadi via use-livecode
Thanks JJ,

I got the logic. now i try to apply it in livecode.

Pada tanggal Jum, 15 Nov 2019 pukul 01.24 JJS via use-livecode <
use-livecode@lists.runrev.com> menulis:

> Hi,
>
>
> that lesson is major out of date.
>
> You need to use FCM and you can put multiple tokens behind each other in
> a JSON like string.
>
> Or you can send to all tokens one by one, like reading stored tokens
> from your DB via a repeat loop.
>
>
> Op 14-11-2019 om 18:54 schreef Riko Abadi via use-livecode:
> > Hello,
> >
> > can i send notifications to all users of our application?
> > in this tutorial,
> >
> http://lessons.livecode.com/m/4069/l/59312-how-do-i-use-push-notifications-with-android
> > only sent to certain devices.
> > I want to send notifications to all users of my application.
> > is that possible? if yes, how to do it?
> >
> >
> > Thank you,
> >
> > Riko
> > ___
> > use-livecode mailing list
> > use-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: Push notification to all user

2019-11-14 Thread JJS via use-livecode

Hi,


that lesson is major out of date.

You need to use FCM and you can put multiple tokens behind each other in 
a JSON like string.


Or you can send to all tokens one by one, like reading stored tokens 
from your DB via a repeat loop.



Op 14-11-2019 om 18:54 schreef Riko Abadi via use-livecode:

Hello,

can i send notifications to all users of our application?
in this tutorial,
http://lessons.livecode.com/m/4069/l/59312-how-do-i-use-push-notifications-with-android
only sent to certain devices.
I want to send notifications to all users of my application.
is that possible? if yes, how to do it?


Thank you,

Riko
___
use-livecode mailing list
use-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: Commands on server and lack of examples

2019-11-14 Thread JJS via use-livecode

Thanks, that was an interesting read.

Unfortunately i have zero C++ skills


Regards,

Jerry

Op 13-11-2019 om 22:16 schreef Richard Gaskin via use-livecode:

JJS wrote:
> Op 12-11-2019 om 19:34 schreef Brian Milby via use-livecode:
>> Unless you are doing a HTML5 app (entire stack resides in a web
>> page), none of the GUI stuff applies.  The LC code is pretty much
>> a replacement for PHP code, so the GUI piece would be the same
>> (whatever HTML/JS frameworks you choose).
>
> So actually the Dictionary needs some updates of stuff that is not an
> error but also doing nothing when used on server.

GUI elements can be useful in LC Server for creating custom screen 
shots, which can be exported and that file data returned to the client 
for display in a browser or an LC app.


That's the good news.

That bad news is that 100% of all LC Server use is slower than it 
needs to be because it's initializing fonts for the 0.001% of CGIs 
using custom graphics export with specified fonts.


I've discussed the situation with several people at LC Ltd, and while 
they're not in a position to put a solution in place right now they 
are quite open to accepting a pull request for it, which should be a 
relatively simple matter for anyone with C++ skills.


I've outlined the problem and the proposed solution in detail here:

http://lists.runrev.com/pipermail/use-livecode/2019-March/253723.html




___
use-livecode mailing list
use-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: unable to locate the play service dependency base version 9.4.0

2019-11-14 Thread JJS via use-livecode

Thanks Panos,

someone on the forum had the same issues.


regards,

Jerry

Op 14-11-2019 om 09:28 schreef panagiotis merakos via use-livecode:

Hello Todd,

You need to install some extra libraries using the SDK Manager. These
libraries are usually installed by default, but if not, you have to do it
manually.

So the required dependency is the "Google Repository" package (in the
"Extras" folder), and NOT the "Google Play services" package as one would
have thought.

See https://ibb.co/Br0Hnx0

Hope this helps.
Panos
--


On Thu, 14 Nov 2019 at 00:25, Todd Fabacher via use-livecode <
use-livecode@lists.runrev.com> wrote:


In 9.5 stable I have added the Android barcode widget. With that and a
button just to test it. But when I try and compile I get an error
message:

unable to locate the play service dependency base version 9.4.0

Am I missing something?  - Any help would be appreciated. I am under
the gun and I  need to get barcode working on Android.

--Todd

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


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


Push notification to all user

2019-11-14 Thread Riko Abadi via use-livecode
Hello,

can i send notifications to all users of our application?
in this tutorial,
http://lessons.livecode.com/m/4069/l/59312-how-do-i-use-push-notifications-with-android
only sent to certain devices.
I want to send notifications to all users of my application.
is that possible? if yes, how to do it?


Thank you,

Riko
___
use-livecode mailing list
use-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: Y coordinate for a line of text

2019-11-14 Thread dunbarx--- via use-livecode
I misStated this completely. The point being that no property of the field 
itself should be a factor at all, not its loc or rect, for example. Only the Y 
value of the selectedLine is pertinent.
Glad you have what you need, but I still do not see the value of the 
selectedLoc. This depends on the loc of the field, and otherwise has no 
relationship to the field itself, that is, the Y coordinate within that field.
Craig


-Original Message-
From: Mark Wieder via use-livecode 
To: dunbarx--- via use-livecode 
Cc: Mark Wieder 
Sent: Wed, Nov 13, 2019 11:20 am
Subject: Re: Y coordinate for a line of text

On 11/13/19 8:11 AM, dunbarx--- via use-livecode wrote:
> The selectedLoc will give the loc in window coordinates, not the "local" Y 
> coordinate within the field of interest, which is what I thought you wanted. 
> I cannot imagine what value that would have, since it depends on where the 
> stack window is currently placed.

localLoc()

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


Decoding "quoted-printable" -- Help needed -- Solved

2019-11-14 Thread R.H. via use-livecode
For those interested:

With the help of a privately received message hinting at a solution used
prior to LC7 I was able to construct the required functions for LC 7 and
above.

I must say that I am not really aware of all the many functions LiveCode
presents, I did not even know about baseConvert() before doing a lot of
research. I guess, each of us must go through all the commands and
functions LC provides and study them. It is difficult to find when not
knowing how and what to search for. Also, I had to try to understand what
codepoints are.

Here I am not using the actual quoted-printable format of codepoints in Hex
presentation each with a equal sign "=" as a prefix. That is easy to
retrieve or construct using LiveCode chunk expressions. Instead I am using
comma delimited items.

// The encoding priot to LC7 according to Mark (still works even today)
-- put unidecode(uniencode("e","english"),"UTF8") into x
-- put chartonum(char 1 of x) && chartonum(char 2 of x) into y

// Encoding and decoding UTF-8 for quoted-printable chars (as they may
appear in certain e-mail parts)
set the itemdelimiter to ","
put "€" into tChar -- Using the Euro symbol which is encoded with 3
codepoints (there can be up to 4 for quoted-printable).

// Encode a UTF-8 character to a quoted-printable ASCII encoding
put textEncode( tChar ,"UTF-8") into tCodedChar
repeat for each codePoint tCodePoint in tCodedChar
   put BaseConvert ( codePointToNum (tCodePoint) , 10 , 16 ) &"," after
tEncoded
end repeat
delete last char of tEncoded
put tEncoded  into msg -- just for testing

// Decode a quoted-printable ASCII string to UTF-8
put empty into tDecoded
repeat for each item tItem in tEncoded
   put numToCodePoint ( BaseConvert ( tItem , 16, 10 ) ) after tDecoded
end repeat
put textDecode (tDecoded , "UTF-8") after msg -- just for testing

// Result in message box
-- E2,201A,AC -- In actual quoted-printable that would be: "=E2=201A=AC"
and our items must be converted accordingly
-- €

Roland
___
use-livecode mailing list
use-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: unable to locate the play service dependency base version 9.4.0

2019-11-14 Thread panagiotis merakos via use-livecode
Hello Todd,

You need to install some extra libraries using the SDK Manager. These
libraries are usually installed by default, but if not, you have to do it
manually.

So the required dependency is the "Google Repository" package (in the
"Extras" folder), and NOT the "Google Play services" package as one would
have thought.

See https://ibb.co/Br0Hnx0

Hope this helps.
Panos
--


On Thu, 14 Nov 2019 at 00:25, Todd Fabacher via use-livecode <
use-livecode@lists.runrev.com> wrote:

> In 9.5 stable I have added the Android barcode widget. With that and a
> button just to test it. But when I try and compile I get an error
> message:
>
> unable to locate the play service dependency base version 9.4.0
>
> Am I missing something?  - Any help would be appreciated. I am under
> the gun and I  need to get barcode working on Android.
>
> --Todd
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode