From david.bovill at gmail.com Thu Jul 1 04:16:41 2021 From: david.bovill at gmail.com (David Bovill) Date: Thu, 1 Jul 2021 09:16:41 +0100 Subject: Levure Dataview: hiding rows In-Reply-To: <2fbb9ec3-3ca4-4f04-b01c-625114d7e0b2@Spark> References: <68DB6018-0C01-44DD-9805-C0853B6F8F12@prestodigital.net> <61B5D5E3-86F2-4147-97D6-FDCB971314F6@major-k.de> <0f1616fc-f758-4ee5-851c-22dc3deee760@Spark> <94be68c3-2f96-47ff-847a-cdf5df2f3e93@Spark> <47cb32fa-90d0-40cd-b4ec-77f2d8891417@Spark> <2fbb9ec3-3ca4-4f04-b01c-625114d7e0b2@Spark> Message-ID: I took a look at the code to try and work out if hiding rows is a thing / supported - but find only a private handler. Trevor what is the recommended technique fir providing views of a DataView with hidden rows? ?? ??Schedule a call with me On 24 Jun 2021, 12:46 +0100, David Bovill , wrote: > Im exploring how to hide a row in Levure Dataview. I can delete the row and reset the dvData - but that seems overkill. On GitHub there is a mention of HideRowControl? > > I?m running into the limits of the documentation for Dataview. Any ideas? > > ?? ??Schedule a call with me > On 22 Jun 2021, 05:08 +0100, David Bovill , wrote: > > Hah - hey thanks for that Sean. The recipe feels a bit like going to the government and filling in forms in triplicate to get your life back :) > > > > ?? ??Schedule a call with me > > On 22 Jun 2021, 03:15 +0100, Sean Cole (Pi) via use-livecode , wrote: > > > Hi David, > > > > > > iOS 'fir' / 'for' issue. > > > > > > I don't know if this already got answered elsewhere in the thread. There > > > are two easy fixes for this. > > > > > > 1. In Notes, type 'Fir always' then select the word 'Fir' and from the > > > pop-up menu select 'replace...' then replace with 'For'. Delete the line of > > > text and repeat nine times. > > > Now repeat this whole thing but use the phrase 'Once fir all'. If this > > > corrects to 'for' right away then it is already fixed. Otherwise, continue > > > using this phrase replacing 'fir' with 'for'. > > > > > > 2. If this still does not fix it, in > > > Settings>General>Keyboard>TextReplacement>, add 'fir' with the replacement > > > 'for'. > > > > > > (3. Or, go to Settings>General>Reset>ResetKeyboardDictionary, but that is > > > the last resort.) > > > > > > All the best > > > > > > Sean > > > > > > > > > On Mon, 21 Jun 2021 at 20:33, David Bovill via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > I?d like to add an image background to a Dataview, so that is scrolls > > > > alongside the rows. > > > > > > > > Any pointers? > > > > > > > > ? Schedule a call with me > > > > On 11 Jun 2021, 18:01 +0100, David Bovill , wrote: > > > > > So I got visual feedback from drag-and-drop using the Levure DataView > > > > following instructions at: > > > > > > > > > > ? https://github.com/trevordevore/levurehelper-dataview > > > > > > > > > > I add the following code to the DataView: > > > > > > quote_type > > > > > > on dragStart > > > > > > set the dvDragImageRow of me to item 1 of the dvHilitedRows of me > > > > > > set the dvTrackDragReorder[the dvHilitedRows of me] of me to true > > > > > > set the dragData["private"] to the dvHilitedRows of me # dragdata has > > > > to be set to something. > > > > > > end dragStart > > > > > > > > > > > > on ValidateRowDrop pDraggingInfoA, pProposedRow, pProposedDropOperation > > > > > > put "Dragging" && pProposedRow && pProposedDropOperation > > > > > > return true > > > > > > end ValidateRowDrop > > > > > > > > > > > > on AcceptRowDrop pDraggingInfoA, pRow, pDropOperation > > > > > > put "Dropped" && pRow && pDropOperation > > > > > > end AcceptRowDrop > > > > > > > > > > > But the ValidateRowDrop message does not get sent, also I don?t get any > > > > visual feedback with a "drop indicator" (the line that shows you where the > > > > drop will occur) - any idea? > > > > > > > > > > ? Schedule a call with me > > > > > On 11 Jun 2021, 16:03 +0100, David Bovill , > > > > wrote: > > > > > > Yeah sorry about the typo - sent from mobile. I meant Levure - as > > > > Trevor is the main man with the drag stuff and having differenr styles for > > > > rows is a must. > > > > > > > > > > > > NB on the typo front I have a distant memory that aeons ago when I > > > > first got an iPhone I said yes to the spelling ?fir?. Ever since then all > > > > my devices seem to love this word - anyone have an idea how to correct this > > > > auto typing flaw? > > > > > > > > > > > > ? Schedule a call with me > > > > > > On 11 Jun 2021, 15:05 +0100, Klaus major-k via use-livecode < > > > > use-livecode at lists.runrev.com>, wrote: > > > > > > > Hi David, > > > > > > > > > > > > > > > Am 11.06.2021 um 15:58 schrieb David Bovill via use-livecode < > > > > use-livecode at lists.runrev.com>: > > > > > > > > > > > > > > > > Is there a simple demo out there that shows how drag-reordering of > > > > rows in a dataview works? Is this feature experimental? Got a deadline fir > > > > Monday considering taking the plunge? > > > > > > > > > > > > > > Levite Dataview? 8-) > > > > > > > Sure you do not mean LC datagrid? > > > > > > > > > > > > > > > ? Schedule a call with me > > > > > > > > > > > > > > No. :-D > > > > > > > > > > > > > > > > > > > > > Best > > > > > > > > > > > > > > Klaus > > > > > > > -- > > > > > > > Klaus Major > > > > > > > https://www.major-k.de > > > > > > > https://www.major-k.de/bass > > > > > > > klaus at major-k.de > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > use-livecode mailing list > > > > > > > use-livecode at 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 at 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 at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Jul 1 11:10:32 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 1 Jul 2021 15:10:32 +0000 Subject: Levure Dataview: hiding rows In-Reply-To: References: <68DB6018-0C01-44DD-9805-C0853B6F8F12@prestodigital.net> <61B5D5E3-86F2-4147-97D6-FDCB971314F6@major-k.de> <0f1616fc-f758-4ee5-851c-22dc3deee760@Spark> <94be68c3-2f96-47ff-847a-cdf5df2f3e93@Spark> <47cb32fa-90d0-40cd-b4ec-77f2d8891417@Spark> <2fbb9ec3-3ca4-4f04-b01c-625114d7e0b2@Spark> Message-ID: Delete the row data?? Bob S > On Jul 1, 2021, at 01:16 , David Bovill via use-livecode wrote: > > I took a look at the code to try and work out if hiding rows is a thing / supported - but find only a private handler. > > Trevor what is the recommended technique fir providing views of a DataView with hidden rows? From dan at clearvisiontech.com Thu Jul 1 12:35:07 2021 From: dan at clearvisiontech.com (Dan Friedman) Date: Thu, 1 Jul 2021 16:35:07 +0000 Subject: Ask Command on Android Message-ID: Greetings! When I run the ask command on a iOS device, the dialog appears, the soft keyboard appears and you can begin typing. However, on a Android device, the dialog appears but the keyboard doesn't not immediately open. You have to tap into the text area of the ask dialog to open the keyboard so you can type. Is there a way to get the keyboard to appear immediately like it does on iOS? Thanks in advance, -Dan From david.bovill at gmail.com Thu Jul 1 13:05:24 2021 From: david.bovill at gmail.com (David Bovill) Date: Thu, 1 Jul 2021 18:05:24 +0100 Subject: Levure Dataview: hiding rows In-Reply-To: References: <68DB6018-0C01-44DD-9805-C0853B6F8F12@prestodigital.net> <61B5D5E3-86F2-4147-97D6-FDCB971314F6@major-k.de> <0f1616fc-f758-4ee5-851c-22dc3deee760@Spark> <94be68c3-2f96-47ff-847a-cdf5df2f3e93@Spark> <47cb32fa-90d0-40cd-b4ec-77f2d8891417@Spark> <2fbb9ec3-3ca4-4f04-b01c-625114d7e0b2@Spark> Message-ID: Thanks Bob - I?ll go ahead and do that. In the documentation for DataViews there is some mention of ?hiding? and ?HideRowControl???- so I wanted to check that there is not a better way. For now I?ll keep the original data and then set the dvData of what I need to different filtered arrays. ?? ??Schedule a call with me On 1 Jul 2021, 16:12 +0100, Bob Sneidar via use-livecode , wrote: > Delete the row data?? > > Bob S > > > > On Jul 1, 2021, at 01:16 , David Bovill via use-livecode wrote: > > > > I took a look at the code to try and work out if hiding rows is a thing / supported - but find only a private handler. > > > > Trevor what is the recommended technique for providing views of a DataView with hidden rows? > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dangmacguy at gmail.com Thu Jul 1 22:28:23 2021 From: dangmacguy at gmail.com (Bruce Pokras) Date: Thu, 1 Jul 2021 22:28:23 -0400 Subject: US Patent and Trademark Office tsNet error problem In-Reply-To: <145A90A4-A19A-48EB-A715-8F3DF67540A5@m-r-d.de> References: <145A90A4-A19A-48EB-A715-8F3DF67540A5@m-r-d.de> Message-ID: <9B777F8C-2878-41BA-B742-BD4260249A7F@gmail.com> Charles, Thanks very much for your input on my problem with a tsNet error that occurred when trying to get patent text information from the USPTO web site. I finally found a way around the issue by using libURLDownloadToFile. That, of course, is a more crude way to get what I want since my ultimate goal is text which I can edit or from which I can extract individual pieces of information like inventor names, patent issue date, etc. Since libURLDownloadToFile creates a file on disk, I then need to open the file and read the data into a a variable, and then delete the file (which is no longer needed) before I can get to my real work. It is extra steps, but at least no tsNet errors like ?put URL ____ into tVariableName? suddenly started giving me! Regards, Bruce > On May 20, 2021, at 7:37 PM, matthias rebbe via use-livecode wrote: > > Bruce, > > on the 19th of February this year Charles Warwick posted the following answer to a post (subject: SSL Error - question from Stack Overflow) which described a similar problem. > >>>> > This seems to be an issue which has come up a few times over the years with the curl library. > > It appears to be specific to when curl is compiled on OS X to use the Mac SSL library, rather than OpenSSL. > > I am guessing you are trying this on a Mac? > > I have tested a build of tsNet under OS X that uses OpenSSL instead, and the issue goes away. Unfortunately, building tsNet to use OpenSSL on Mac would mean that it no longer uses the OS X certificate store for verifying SSL certificates. > > Regards, > > Charles > <<< > > So maybe Charles can help, maybe with a custom build of tsNET. > > Regards, > Matthias > > > >> Am 21.05.2021 um 00:44 schrieb Bruce Pokras via use-livecode : >> >> Hello all, >> >> Getting a tsNet error, both from the IDE and a standalone. I have a patent searching and downloading app that had some link rot issues. Finally fixed everything. Seemed to be working fine for USPTO, European Patent Office and World Intellectual Property Office. I put off launching this new version (Patent Grabber 6.5) for a few weeks. I don?t understand what has happened in the meantime, but the US patent searching keeps returning a tsNet error in the ?result": >> >> tsneterr: (56) SSLRead() return error -9806 >> >> The URL was: >> >> https://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall >> >> which works fine when pasted in Safari or Chrome on my MacBook Pro Retina running High Sierra 10.13.6. >> >> I recently learned of the tsNet debugger that someone (Charles Warwick?) had so thoughtfully created, and tried it. Below are two runs that I made, and since I can?t make heads nor tails of them, I hope that someone on the list can understand what is going on (I also tried tsNetVerifySSLPeer, both true and false, but got the same tsNet error). Any help would be greatly appreciated. Thanks! >> >> Bruce Pokras >> >> #1: run with libURLsetSSLverification false >> >> Connection #7 to host patft.uspto.gov left intact >> Issue another request to this URL: 'https://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall' >> Trying 2610:20:5004:1604::82:443... >> Connected to patft.uspto.gov (2610:20:5004:1604::82) port 443 (#8) >> WARNING: disabling hostname validation also disables SNI. >> SSL re-using session ID >> TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 >> Server certificate: patft.uspto.gov >> Server certificate: Entrust Certification Authority - L1K >> Server certificate: Entrust Root Certification Authority - G2 >> GET /netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall HTTP/1.0 >> Host: patft.uspto.gov >> Accept: */* >> User-Agent: LiveCode (MacOS) >> >> 1621533850 >> Mark bundle as not supporting multiuse >> HTTP 1.0, assume close after body >> HTTP/1.0 200 Script results follow >> Server: NetAnswer Server 1.0 >> Content-Type: text/html >> >> SSLRead() return error -9806 >> Closing connection 8 >> >> #2: run with libURLsetSSLverification true >> >> 1621534995 >> 1621534996 >> _proxyForURL_proxyForURL end with none foundProxy for URL: >> Found bundle for host patft.uspto.gov: 0x7fa9a210bac0 [serially] >> Re-using existing connection! (#11) with host patft.uspto.gov >> Connected to patft.uspto.gov (2610:20:5004:1604::82) port 80 (#11) >> GET /netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall HTTP/1.0 >> Host: patft.uspto.gov >> Accept: */* >> User-Agent: LiveCode (MacOS) >> >> Mark bundle as not supporting multiuse >> HTTP 1.0, assume close after body >> HTTP/1.0 302 Found >> Location: https://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall >> Server: BigIP >> Connection: close >> Content-Length: 0 >> >> Closing connection 11 >> Issue another request to this URL: 'https://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall' >> Hostname patft.uspto.gov was found in DNS cache >> Trying 2610:20:5004:1604::82:443... >> Connected to patft.uspto.gov (2610:20:5004:1604::82) port 443 (#13) >> SSL re-using session ID >> TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 >> Server certificate: patft.uspto.gov >> Server certificate: Entrust Certification Authority - L1K >> Server certificate: Entrust Root Certification Authority - G2 >> GET /netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2Fsearch-adv.htm&r=0&p=1&f=S&l=50&Query=(pokras)&d=pall HTTP/1.0 >> Host: patft.uspto.gov >> Accept: */* >> User-Agent: LiveCode (MacOS) >> >> 1621534997 >> Mark bundle as not supporting multiuse >> HTTP 1.0, assume close after body >> HTTP/1.0 200 Script results follow >> Server: NetAnswer Server 1.0 >> Content-Type: text/html >> >> SSLRead() return error -9806 >> Closing connection 13 >> 1621534998 >> 1621534999 >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From panos.merakos at livecode.com Mon Jul 5 09:56:15 2021 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 5 Jul 2021 16:56:15 +0300 Subject: [ANN] Release 9.6.3 RC-1 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.3 RC-1. 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 RC-1 comes with more than 60 changes, 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_rc_1.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 -- From panos.merakos at livecode.com Mon Jul 5 11:57:20 2021 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 5 Jul 2021 18:57:20 +0300 Subject: [ANN] This Week in LiveCode 271 Message-ID: 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 #271 here: https://bit.ly/3qLsbEO 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 From tom at makeshyft.com Mon Jul 5 12:57:20 2021 From: tom at makeshyft.com (Tom Glod) Date: Mon, 5 Jul 2021 12:57:20 -0400 Subject: [ANN] Release 9.6.3 RC-1 In-Reply-To: References: Message-ID: Nice solid update. Thank you. Still can't update production version until the most recent problems are fixed (mobilepickdate and etc.) On Mon, Jul 5, 2021 at 9:57 AM panagiotis merakos via use-livecode < use-livecode at lists.runrev.com> wrote: > Dear list members, > > We are pleased to announce the release of LiveCode 9.6.3 RC-1. > > > 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 RC-1 comes with more than 60 changes, 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_rc_1.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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 From matthias_livecode_150811 at m-r-d.de Mon Jul 5 14:00:59 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 5 Jul 2021 20:00:59 +0200 Subject: [ANN] Release 9.6.3 RC-1 In-Reply-To: References: Message-ID: <656C9A50-E815-4BD2-BC3F-F0887D1754D5@m-r-d.de> Tom, at least mobilapickdate bug 23130 is fixed with 9.6.3 RC1 > Am 05.07.2021 um 18:57 schrieb Tom Glod via use-livecode : > > Nice solid update. Thank you. > Still can't update production version until the most recent problems are > fixed (mobilepickdate and etc.) > > > On Mon, Jul 5, 2021 at 9:57 AM panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Dear list members, >> >> We are pleased to announce the release of LiveCode 9.6.3 RC-1. >> >> >> 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 RC-1 comes with more than 60 changes, 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_rc_1.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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Tom Glod > Founder & Developer > MakeShyft R.D.A (www.makeshyft.com) > Mobile:647.562.9411 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Mon Jul 5 21:03:33 2021 From: tom at makeshyft.com (Tom Glod) Date: Mon, 5 Jul 2021 21:03:33 -0400 Subject: [ANN] Release 9.6.3 RC-1 In-Reply-To: <656C9A50-E815-4BD2-BC3F-F0887D1754D5@m-r-d.de> References: <656C9A50-E815-4BD2-BC3F-F0887D1754D5@m-r-d.de> Message-ID: oops...i didn't see that on the list. sorry. Thank you. On Mon, Jul 5, 2021 at 2:02 PM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Tom, > > at least mobilapickdate bug 23130 is fixed with 9.6.3 RC1 > > > > > Am 05.07.2021 um 18:57 schrieb Tom Glod via use-livecode < > use-livecode at lists.runrev.com>: > > > > Nice solid update. Thank you. > > Still can't update production version until the most recent problems are > > fixed (mobilepickdate and etc.) > > > > > > On Mon, Jul 5, 2021 at 9:57 AM panagiotis merakos via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> Dear list members, > >> > >> We are pleased to announce the release of LiveCode 9.6.3 RC-1. > >> > >> > >> 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 RC-1 comes with more than 60 changes, 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_rc_1.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 at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > > -- > > Tom Glod > > Founder & Developer > > MakeShyft R.D.A (www.makeshyft.com) > > Mobile:647.562.9411 > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 From curry at pair.com Tue Jul 6 08:46:21 2021 From: curry at pair.com (Curry Kenworthy) Date: Tue, 6 Jul 2021 08:46:21 -0400 Subject: [ANN] Release 9.6.3 RC-1 In-Reply-To: References: Message-ID: <0fdb2c57-dd83-26f1-57c3-a5b29135ee1d@pair.com> Panos: > LiveCode 9.6.3 RC-1 comes with more than 60 changes Thanks, I will aim to do some rc1 testing this week and next week. Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From bobsneidar at iotecdigital.com Tue Jul 6 19:06:07 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Jul 2021 23:06:07 +0000 Subject: Stuck on native database functions Message-ID: Hi all. I assemble an SQL statement that looks like this: insert into ObjectProperties (recordid,rect,controlname,owner,visible) VALUES (:1,:2,:3,:4,:5) I then execute this statement: revExecuteSQL tDBID, tInsertSQL, aRecordData I get records but with no data in them. I checked aRecordData and it has all 5 columns as keys and data in each of them. I am at a complete loss. I was sure this was working before, now it is not. Bob S From devin_asay at byu.edu Tue Jul 6 19:14:51 2021 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 6 Jul 2021 23:14:51 +0000 Subject: Stuck on native database functions In-Reply-To: References: Message-ID: <372CA6EB-8728-4A0E-A4B8-AFCCC9EF7C8E@byu.edu> Bob, A couple of things: You should either be passing variable names, not variable contents, so put your variable names in quotes. revExecuteSQL ?tDBID", ?tInsertSQL", ?tControlName?, etc OR you should be passing the name of an array variable, whose keys are numeric: revExecuteSQL ?aRecordData? Not tested, but I?m pretty sure if you sort these things it will start to work for you. - Devin > On Jul 6, 2021, at 5:06 PM, Bob Sneidar via use-livecode wrote: > > Hi all. > > I assemble an SQL statement that looks like this: > > insert into ObjectProperties (recordid,rect,controlname,owner,visible) VALUES (:1,:2,:3,:4,:5) > > I then execute this statement: > > revExecuteSQL tDBID, tInsertSQL, aRecordData > > I get records but with no data in them. I checked aRecordData and it has all 5 columns as keys and data in each of them. > > I am at a complete loss. I was sure this was working before, now it is not. > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Director Office of Digital Humanities Brigham Young University From bobsneidar at iotecdigital.com Tue Jul 6 19:26:31 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Jul 2021 23:26:31 +0000 Subject: Stuck on native database functions In-Reply-To: <372CA6EB-8728-4A0E-A4B8-AFCCC9EF7C8E@byu.edu> References: <372CA6EB-8728-4A0E-A4B8-AFCCC9EF7C8E@byu.edu> Message-ID: Well that won't work. How does it know I want to insert the data in aRecordData? Also I put quotes around the column names but got the same results. Bob S > On Jul 6, 2021, at 16:14 , Devin Asay via use-livecode wrote: > > revExecuteSQL ?aRecordData? > > Not tested, but I?m pretty sure if you sort these things it will start to work for you. > > - Devin From bobsneidar at iotecdigital.com Tue Jul 6 19:51:04 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 6 Jul 2021 23:51:04 +0000 Subject: Stuck on native database functions In-Reply-To: References: <372CA6EB-8728-4A0E-A4B8-AFCCC9EF7C8E@byu.edu> Message-ID: <33A3EEF9-375A-421D-BF21-A772B28E5A26@iotecdigital.com> So I checked out the lessons. I do not find anything there for using substitutions like :1, :2. I am getting records inserted but with empty data. Really frustrating. I could use literal data, which I tested, and which works, but my real data contains commas, and in the future may contain any number of special characters that I will have to escape. Not my idea of fun. I was hoping to do a "quickie" implementation but it seems I will have to run this through sqlYoga like everything else I do these days. Bob S > On Jul 6, 2021, at 16:26 , Bob Sneidar via use-livecode wrote: > > Well that won't work. How does it know I want to insert the data in aRecordData? Also I put quotes around the column names but got the same results. > > Bob S > > >> On Jul 6, 2021, at 16:14 , Devin Asay via use-livecode wrote: >> >> revExecuteSQL ?aRecordData? >> >> Not tested, but I?m pretty sure if you sort these things it will start to work for you. >> >> - Devin > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Tue Jul 6 21:09:57 2021 From: harrison at all-auctions.com (Rick Harrison) Date: Tue, 6 Jul 2021 21:09:57 -0400 Subject: Stuck on native database functions In-Reply-To: <33A3EEF9-375A-421D-BF21-A772B28E5A26@iotecdigital.com> References: <372CA6EB-8728-4A0E-A4B8-AFCCC9EF7C8E@byu.edu> <33A3EEF9-375A-421D-BF21-A772B28E5A26@iotecdigital.com> Message-ID: <615F491E-3CE2-47CE-8705-55D07DCD8843@all-auctions.com> Hi Bob, Some quick questions: 1. What version of LiveCode are you using? 2. Are you on Mac or Windows or Linux? 3. Are you using MySQL or PostgreSQL? Have you ever tried using the free version of Valentina Studio to help you with managing your databases? It?s quite nice! Let us know! Rick > On Jul 6, 2021, at 7:51 PM, Bob Sneidar via use-livecode wrote: > > So I checked out the lessons. I do not find anything there for using substitutions like :1, :2. I am getting records inserted but with empty data. Really frustrating. > > I could use literal data, which I tested, and which works, but my real data contains commas, and in the future may contain any number of special characters that I will have to escape. Not my idea of fun. > > I was hoping to do a "quickie" implementation but it seems I will have to run this through sqlYoga like everything else I do these days. > > Bob S > From lheaford at icloud.com Wed Jul 7 02:52:59 2021 From: lheaford at icloud.com (Terence Heaford) Date: Wed, 7 Jul 2021 07:52:59 +0100 Subject: Stuck on native database functions In-Reply-To: References: Message-ID: <7C60FF73-ACEF-4A9A-8AF5-24B3E688A588@icloud.com> Here?s an example I have been using, not sure whether it will help: function dbAddTransaction tAccountName,tValues put q(tAccountName) into tAccountName put q(tValues["uniqueID"]) into tUniqueID put q(tValues["date"]) into tDate put q(tValues["type"]) into tType put q(tValues["description"]) into tDescription put q(tValues["amount"]) into tAmount put q(tValues["balance"]) into tBalance put q(tValues["category"]) into tCategory put "uniqueID,date,type,description,amount,balance,category" into tFields put merge("[[tUniqueID]],[[tDate]],[[tType]],[[tDescription]],[[tAmount]],[[tBalance]],[[tCategory]]")into tValues put merge("INSERT INTO [[tAccountName]] ([[tFields]]) VALUES([[tValues]])") into tSQL revExecuteSQL dbGetID(), tSQL put the result into tErr return tErr end dbAddTransaction ------------------------- function dbEscapeSqlite tText replace "'" with "''" in tText return tText end dbEscapeSqlite ------------------- function q tText return "'" & dbEscapeSqlite(tText) & "'" end q ------------------- > On 7 Jul 2021, at 00:06, Bob Sneidar via use-livecode wrote: > > Hi all. > > I assemble an SQL statement that looks like this: > > insert into ObjectProperties (recordid,rect,controlname,owner,visible) VALUES (:1,:2,:3,:4,:5) > > I then execute this statement: > > revExecuteSQL tDBID, tInsertSQL, aRecordData > > I get records but with no data in them. I checked aRecordData and it has all 5 columns as keys and data in each of them. > > I am at a complete loss. I was sure this was working before, now it is not. > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lheaford at icloud.com Wed Jul 7 03:28:02 2021 From: lheaford at icloud.com (Terence Heaford) Date: Wed, 7 Jul 2021 08:28:02 +0100 Subject: Stuck on native database functions In-Reply-To: <7C60FF73-ACEF-4A9A-8AF5-24B3E688A588@icloud.com> References: <7C60FF73-ACEF-4A9A-8AF5-24B3E688A588@icloud.com> Message-ID: <2B46BE52-3986-4230-BF65-34A90007323A@icloud.com> I have now tried your method with the tValues array directly and by deconstructing the array as below and it does not work. I have a recollection of not being able to get this to work with an array which is why I did the way I did. All the best Terry put q(tAccountName) into tAccountName put q(tValues["uniqueID"]) into tUniqueID put q(tValues["date"]) into tDate put q(tValues["type"]) into tType put q(tValues["description"]) into tDescription put q(tValues["amount"]) into tAmount put q(tValues["balance"]) into tBalance put q(tValues["category"]) into tCategory put merge("[[tUniqueID]],[[tDate]],[[tType]],[[tDescription]],[[tAmount]],[[tBalance]],[[tCategory]]?) into tValues put ":1,:2,:3,:4,:5,:6,:7" into tPlaceHolders put merge("INSERT INTO [[tAccountName]] VALUES([[tPlaceHolders]])") into tSQL put tSQL & " " & tValues revExecuteSQL dbGetID(),tSQL,tValues > On 7 Jul 2021, at 07:52, Terence Heaford via use-livecode wrote: > > Here?s an example I have been using, not sure whether it will help: > > function dbAddTransaction tAccountName,tValues > > put q(tAccountName) into tAccountName > > put q(tValues["uniqueID"]) into tUniqueID > > put q(tValues["date"]) into tDate > > put q(tValues["type"]) into tType > > put q(tValues["description"]) into tDescription > > put q(tValues["amount"]) into tAmount > > put q(tValues["balance"]) into tBalance > > put q(tValues["category"]) into tCategory > > put "uniqueID,date,type,description,amount,balance,category" into tFields > > put merge("[[tUniqueID]],[[tDate]],[[tType]],[[tDescription]],[[tAmount]],[[tBalance]],[[tCategory]]")into tValues > > put merge("INSERT INTO [[tAccountName]] ([[tFields]]) VALUES([[tValues]])") into tSQL > > revExecuteSQL dbGetID(), tSQL > > put the result into tErr > > return tErr > > end dbAddTransaction > > ------------------------- > > function dbEscapeSqlite tText > > replace "'" with "''" in tText > > return tText > > end dbEscapeSqlite > > ------------------- > > function q tText > > return "'" & dbEscapeSqlite(tText) & "'" > > end q > > ------------------- > > > > >> On 7 Jul 2021, at 00:06, Bob Sneidar via use-livecode wrote: >> >> Hi all. >> >> I assemble an SQL statement that looks like this: >> >> insert into ObjectProperties (recordid,rect,controlname,owner,visible) VALUES (:1,:2,:3,:4,:5) >> >> I then execute this statement: >> >> revExecuteSQL tDBID, tInsertSQL, aRecordData >> >> I get records but with no data in them. I checked aRecordData and it has all 5 columns as keys and data in each of them. >> >> I am at a complete loss. I was sure this was working before, now it is not. >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lheaford at icloud.com Wed Jul 7 03:50:37 2021 From: lheaford at icloud.com (Terence Heaford) Date: Wed, 7 Jul 2021 08:50:37 +0100 Subject: Stuck on native database functions In-Reply-To: <2B46BE52-3986-4230-BF65-34A90007323A@icloud.com> References: <7C60FF73-ACEF-4A9A-8AF5-24B3E688A588@icloud.com> <2B46BE52-3986-4230-BF65-34A90007323A@icloud.com> Message-ID: Just tried this method revExecuteSQL myID, "insert into mytable values(:1,:2,:1)", "valueX",?valueY" It did not work put merge("[[quote]][[tUniqueID]][[quote]],[[quote]][[tDate]][[quote]],[[quote]][[tType]][[quote]],[[quote]][[tDescription]][[quote]],[[quote]][[tAmount]][[quote]],[[quote]][[tBalance]][[quote]],[[quote]][[tCategory]][[quote]]")into tValues put ":1,:2,:3,:4,:5,:6,:7" into tPlaceHolders put merge("INSERT INTO [[tAccountName]] VALUES([[tPlaceHolders]])") into tSQL put tSQL & " " & tValues revExecuteSQL dbGetID(),tSQL,tValues Not sure what to try next All the best Terry > On 7 Jul 2021, at 08:28, Terence Heaford wrote: > > I have now tried your method with the tValues array directly and by deconstructing the array as below and it does not work. I have a recollection of not being able to get this to work with an array which is why I did the way I did. > > > All the best > > Terry > > put q(tAccountName) into tAccountName > > put q(tValues["uniqueID"]) into tUniqueID > > put q(tValues["date"]) into tDate > > put q(tValues["type"]) into tType > > put q(tValues["description"]) into tDescription > > put q(tValues["amount"]) into tAmount > > put q(tValues["balance"]) into tBalance > > put q(tValues["category"]) into tCategory > > put merge("[[tUniqueID]],[[tDate]],[[tType]],[[tDescription]],[[tAmount]],[[tBalance]],[[tCategory]]?) into tValues > > > put ":1,:2,:3,:4,:5,:6,:7" into tPlaceHolders > > put merge("INSERT INTO [[tAccountName]] VALUES([[tPlaceHolders]])") into tSQL > > put tSQL & " " & tValues > > revExecuteSQL dbGetID(),tSQL,tValues > > > > > >> On 7 Jul 2021, at 07:52, Terence Heaford via use-livecode > wrote: >> >> Here?s an example I have been using, not sure whether it will help: >> >> function dbAddTransaction tAccountName,tValues >> >> put q(tAccountName) into tAccountName >> >> put q(tValues["uniqueID"]) into tUniqueID >> >> put q(tValues["date"]) into tDate >> >> put q(tValues["type"]) into tType >> >> put q(tValues["description"]) into tDescription >> >> put q(tValues["amount"]) into tAmount >> >> put q(tValues["balance"]) into tBalance >> >> put q(tValues["category"]) into tCategory >> >> put "uniqueID,date,type,description,amount,balance,category" into tFields >> >> put merge("[[tUniqueID]],[[tDate]],[[tType]],[[tDescription]],[[tAmount]],[[tBalance]],[[tCategory]]")into tValues >> >> put merge("INSERT INTO [[tAccountName]] ([[tFields]]) VALUES([[tValues]])") into tSQL >> >> revExecuteSQL dbGetID(), tSQL >> >> put the result into tErr >> >> return tErr >> >> end dbAddTransaction >> >> ------------------------- >> >> function dbEscapeSqlite tText >> >> replace "'" with "''" in tText >> >> return tText >> >> end dbEscapeSqlite >> >> ------------------- >> >> function q tText >> >> return "'" & dbEscapeSqlite(tText) & "'" >> >> end q >> >> ------------------- >> >> >> >> >>> On 7 Jul 2021, at 00:06, Bob Sneidar via use-livecode > wrote: >>> >>> Hi all. >>> >>> I assemble an SQL statement that looks like this: >>> >>> insert into ObjectProperties (recordid,rect,controlname,owner,visible) VALUES (:1,:2,:3,:4,:5) >>> >>> I then execute this statement: >>> >>> revExecuteSQL tDBID, tInsertSQL, aRecordData >>> >>> I get records but with no data in them. I checked aRecordData and it has all 5 columns as keys and data in each of them. >>> >>> I am at a complete loss. I was sure this was working before, now it is not. >>> >>> Bob S >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From lheaford at icloud.com Wed Jul 7 05:51:24 2021 From: lheaford at icloud.com (Terence Heaford) Date: Wed, 7 Jul 2021 10:51:24 +0100 Subject: Stuck on native database functions In-Reply-To: References: <7C60FF73-ACEF-4A9A-8AF5-24B3E688A588@icloud.com> <2B46BE52-3986-4230-BF65-34A90007323A@icloud.com> Message-ID: <9BF442FF-8DF2-4F9B-BA8D-CE6C8EFAEAAA@icloud.com> Out of interest and not sure if it is relevant but I have received this error: "table myTable has 8 columns but 7 values were supplied" Yes the table has 8 columns in total but the first column is recID integer primary key autoincrement Surely it should not give this error because I do not provide the value as this is autoincrement All the best Terry > On 7 Jul 2021, at 08:50, Terence Heaford via use-livecode wrote: > > Not sure what to try next From toolbook at kestner.de Wed Jul 7 06:02:23 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Wed, 7 Jul 2021 12:02:23 +0200 Subject: mySQL 8 Message-ID: <002401d77317$2f1471b0$8d3d5510$@kestner.de> Hello folks, I have a DB hosted on AWS and need to move it from mySQL 5.6 to 5.7 because of AWS restrictions. In this context I am doing tests and also tried to see what my programs (LiveCode > PHP > mySQL) say about mySQL 8. For this I imported a current 5.6 dump into a mySQL 5.7 and into a 8.0 test DB. With mySQL 5.7 everything looks so far well. With mySQL 8 all umlauts come back destroyed in DB queries in my LiveCode program. When I look into the DB with mySQL Workbench, the umlauts are ok with 5.7 as well as with 8.0. Only as soon as I get them into my LC program, they break. Is here anybody, who has read about changes of handling the charset or collations in mySQL databases with mySQL 8? And any idea, where I should try to look for a fix? DB-collations/charsets? PHP? LiveCode? We are writing year 2021! and this is the third break of existing functions handling umlauts within months after LC, macOS and now mySQL Thanks for any ideas Tiemo From marksmithhfx at gmail.com Wed Jul 7 06:29:46 2021 From: marksmithhfx at gmail.com (Mark Smith) Date: Wed, 7 Jul 2021 11:29:46 +0100 Subject: Stuck on native database functions In-Reply-To: References: Message-ID: <464B72B1-5E82-410B-B74A-66A6E917DDD1@gmail.com> Currently I have this working (Content of tSQL :) INSERT into TABLE1 ("complete", "todo", "itemDate", "category", "purgeDate", "dgOrder") values(:1, :2, :3, :4, :5, :6) revExecuteSQL gConnectID, tSQL, "ptheRowA[complete]", "ptheRowA[todo]", "ptheRowA[itemDate]", "ptheRowA[category]", "ptheRowA[purgeDate]", "ptheRowA[dgOrder]? I am not passing the entire array because there are some array elements that I am not saving. If I did want to save/insert the whole array then I would write something like: revExecuteSQL gConnectID, tSQL, ?ptheRowA? Hope that helps, Mark > On Jul 7, 2021, at 12:06 AM, Bob Sneidar via use-livecode wrote: > > Hi all. > > I assemble an SQL statement that looks like this: > > insert into ObjectProperties (recordid,rect,controlname,owner,visible) VALUES (:1,:2,:3,:4,:5) > > I then execute this statement: > > revExecuteSQL tDBID, tInsertSQL, aRecordData > > I get records but with no data in them. I checked aRecordData and it has all 5 columns as keys and data in each of them. > > I am at a complete loss. I was sure this was working before, now it is not. > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andrew at midwestcoastmedia.com Wed Jul 7 08:52:05 2021 From: andrew at midwestcoastmedia.com (Andrew at MidWest Coast Media) Date: Wed, 7 Jul 2021 08:52:05 -0400 Subject: Groups appear as buttons in Project Browser Message-ID: <3A2D91F3-2B73-4B46-97F0-EECEEF83AF1E@midwestcoastmedia.com> I have a stack that seems to have lost ?groups? on several cards (but not all of them). They are still part of the structure but not recognized in the Tree View of the Project Browser. Rather than expandable groups in the PB, they show up as buttons. I can hover over and the tooltip calls them groups, and I can open the PI which shows them as a group, but I can?t twirl down the group to see it?s contents. I can still right-click to edit the group (and subsequent child groups) like normal. This behavior displays across several machines and LC versions and the groups are properly recognized in Geoff Canyon?s revNavigator. My research led me to https://forums.livecode.com/viewtopic.php?t=27324 but selectGroupedControls wasn?t the problem and ungrouping/regrouping didn?t fix the issue (but DID cause some weird layering issues when regrouping). Has anyone else experienced something like this? I feel like I?m overlooking something simple. --Andrew Bell From lheaford at icloud.com Wed Jul 7 11:40:33 2021 From: lheaford at icloud.com (Terence Heaford) Date: Wed, 7 Jul 2021 16:40:33 +0100 Subject: Stuck on native database functions In-Reply-To: <464B72B1-5E82-410B-B74A-66A6E917DDD1@gmail.com> References: <464B72B1-5E82-410B-B74A-66A6E917DDD1@gmail.com> Message-ID: Mark, it certainly helps me. The routine I have working is put "uniqueID,date,type,description,amount,balance,category" into tFields put merge("INSERT INTO [[tAccountName]] ([[tFields]]) VALUES(:1,:2,:3,:4,:5,:6,:7)") into tSQL revExecuteSQL dbGetID(), tSQL, "tValues[uniqueID]", "tValues[date]", "tValues[type]", "tValues[description]", "tValues[amount]", "tValues[balance]","tValues[category]" put the result into tErr return tErr It resolves the error I was getting relating to autoincrement. Thanks Terry > On 7 Jul 2021, at 11:29, Mark Smith via use-livecode wrote: > > Currently I have this working > > (Content of tSQL :) > INSERT into TABLE1 ("complete", "todo", "itemDate", "category", "purgeDate", "dgOrder") values(:1, :2, :3, :4, :5, :6) > > > revExecuteSQL gConnectID, tSQL, "ptheRowA[complete]", "ptheRowA[todo]", "ptheRowA[itemDate]", "ptheRowA[category]", "ptheRowA[purgeDate]", "ptheRowA[dgOrder]? > > I am not passing the entire array because there are some array elements that I am not saving. If I did want to save/insert the whole array then I would write something like: > > revExecuteSQL gConnectID, tSQL, ?ptheRowA? > > Hope that helps, > Mark From lheaford at icloud.com Wed Jul 7 11:43:29 2021 From: lheaford at icloud.com (Terence Heaford) Date: Wed, 7 Jul 2021 16:43:29 +0100 Subject: Stuck on native database functions In-Reply-To: References: <464B72B1-5E82-410B-B74A-66A6E917DDD1@gmail.com> Message-ID: It also seems to do the escaping for you as it handled text containing commas in the description All the best Terry > On 7 Jul 2021, at 16:40, Terence Heaford via use-livecode wrote: > > The routine I have working is > > put "uniqueID,date,type,description,amount,balance,category" into tFields > > put merge("INSERT INTO [[tAccountName]] ([[tFields]]) VALUES(:1,:2,:3,:4,:5,:6,:7)") into tSQL > > revExecuteSQL dbGetID(), tSQL, "tValues[uniqueID]", "tValues[date]", "tValues[type]", "tValues[description]", "tValues[amount]", "tValues[balance]","tValues[category]" > > put the result into tErr > > return tErr > > > It resolves the error I was getting relating to autoincrement. From merakosp at gmail.com Wed Jul 7 11:45:59 2021 From: merakosp at gmail.com (panagiotis m) Date: Wed, 7 Jul 2021 18:45:59 +0300 Subject: Groups appear as buttons in Project Browser In-Reply-To: <3A2D91F3-2B73-4B46-97F0-EECEEF83AF1E@midwestcoastmedia.com> References: <3A2D91F3-2B73-4B46-97F0-EECEEF83AF1E@midwestcoastmedia.com> Message-ID: Hello Andrew, Could it be the case you have chosen to order controls by name, instead of layer? (Click on the cog icon at the top right of the Project Browser, then choose "Order Controls By" -> ... ) Kind regards, Panos -- On Wed, 7 Jul 2021 at 15:53, Andrew at MidWest Coast Media via use-livecode wrote: > I have a stack that seems to have lost ?groups? on several cards (but not > all of them). They are still part of the structure but not recognized in > the Tree View of the Project Browser. Rather than expandable groups in the > PB, they show up as buttons. I can hover over and the tooltip calls them > groups, and I can open the PI which shows them as a group, but I can?t > twirl down the group to see it?s contents. I can still right-click to edit > the group (and subsequent child groups) like normal. > > This behavior displays across several machines and LC versions and the > groups are properly recognized in Geoff Canyon?s revNavigator. My research > led me to https://forums.livecode.com/viewtopic.php?t=27324 < > https://forums.livecode.com/viewtopic.php?t=27324> but > selectGroupedControls wasn?t the problem and ungrouping/regrouping didn?t > fix the issue (but DID cause some weird layering issues when regrouping). > > Has anyone else experienced something like this? I feel like I?m > overlooking something simple. > > --Andrew Bell > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From andrew at midwestcoastmedia.com Wed Jul 7 12:50:42 2021 From: andrew at midwestcoastmedia.com (Andrew at MidWest Coast Media) Date: Wed, 7 Jul 2021 12:50:42 -0400 Subject: Groups appear as buttons in Project Browser In-Reply-To: References: Message-ID: <4C822440-53FA-4F22-A1BC-F06255A85C3D@midwestcoastmedia.com> Ordered by layer is active. Even dataGrid groups show up as buttons. Example @ https://www.dropbox.com/s/d9xbcstp1nwld8d/project_browser.png?dl=0 The ?input fields? on these 2 cards are both groups of controls in sub-groups, but appear as buttons on the viking card. --Andrew Bell > > Date: Wed, 7 Jul 2021 18:45:59 +0300 > From: panagiotis m > Subject: Re: Groups appear as buttons in Project Browser > > Hello Andrew, > > Could it be the case you have chosen to order controls by name, instead of > layer? > > (Click on the cog icon at the top right of the Project Browser, then choose > "Order Controls By" -> ... ) > > Kind regards, > Panos > -- > > On Wed, 7 Jul 2021 at 15:53, Andrew at MidWest Coast Media via use-livecode > wrote: > >> I have a stack that seems to have lost ?groups? on several cards (but not >> all of them). They are still part of the structure but not recognized in >> the Tree View of the Project Browser. Rather than expandable groups in the >> PB, they show up as buttons. I can hover over and the tooltip calls them >> groups, and I can open the PI which shows them as a group, but I can?t >> twirl down the group to see it?s contents. I can still right-click to edit >> the group (and subsequent child groups) like normal. >> >> This behavior displays across several machines and LC versions and the >> groups are properly recognized in Geoff Canyon?s revNavigator. My research >> led me to https://forums.livecode.com/viewtopic.php?t=27324 < >> https://forums.livecode.com/viewtopic.php?t=27324> but >> selectGroupedControls wasn?t the problem and ungrouping/regrouping didn?t >> fix the issue (but DID cause some weird layering issues when regrouping). >> >> Has anyone else experienced something like this? I feel like I?m >> overlooking something simple. >> >> --Andrew Bell >> _____________________ From marksmithhfx at gmail.com Wed Jul 7 12:52:20 2021 From: marksmithhfx at gmail.com (Mark Smith) Date: Wed, 7 Jul 2021 17:52:20 +0100 Subject: Stuck on native database functions In-Reply-To: References: <464B72B1-5E82-410B-B74A-66A6E917DDD1@gmail.com> Message-ID: <8F615AAD-86B2-43B7-BE34-51E95E15D50C@gmail.com> Yes, using the numeric placeholders will do that for you. > On Jul 7, 2021, at 4:43 PM, Terence Heaford via use-livecode wrote: > > It also seems to do the escaping for you as it handled text containing commas in the description From richmondmathewson at gmail.com Wed Jul 7 14:07:15 2021 From: richmondmathewson at gmail.com (Richmond) Date: Wed, 7 Jul 2021 21:07:15 +0300 Subject: That didn't hurt much . . . Message-ID: <6ded2979-0d89-c67d-0236-c012328f5737@gmail.com> No, not the dentist (although, mind you, I have visited the dentist 12 times in the last 3 months), but just lobbed a small donation to LiveCode Community from my PayPal account . . . Why don't you do that as well? From matthias_livecode_150811 at m-r-d.de Wed Jul 7 14:54:52 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 7 Jul 2021 20:54:52 +0200 Subject: mySQL 8 In-Reply-To: <002401d77317$2f1471b0$8d3d5510$@kestner.de> References: <002401d77317$2f1471b0$8d3d5510$@kestner.de> Message-ID: <780F3FA1-2C03-4C1A-9CF1-0C3D537EFFA5@m-r-d.de> Tiemo, if i remember right this should be solving your issue. Before you write to or read from the db execute the following command revExecuteSQL databaseID, "SET NAMES 'utf8'" After that try to fetch data. The retrieved data has then to be decoded with textDecode(tRetrievedData,?UTF8?) e.g. put textDecode(tRetrievedData,"UTF8") into fld "Name" Regards, Matthias > Am 07.07.2021 um 12:02 schrieb Tiemo via use-livecode : > > Hello folks, > > > > I have a DB hosted on AWS and need to move it from mySQL 5.6 to 5.7 because > of AWS restrictions. > > In this context I am doing tests and also tried to see what my programs > (LiveCode > PHP > mySQL) say about mySQL 8. > > For this I imported a current 5.6 dump into a mySQL 5.7 and into a 8.0 test > DB. > > > > With mySQL 5.7 everything looks so far well. > > With mySQL 8 all umlauts come back destroyed in DB queries in my LiveCode > program. > > > > When I look into the DB with mySQL Workbench, the umlauts are ok with 5.7 as > well as with 8.0. Only as soon as I get them into my LC program, they break. > > > > Is here anybody, who has read about changes of handling the charset or > collations in mySQL databases with mySQL 8? > > And any idea, where I should try to look for a fix? DB-collations/charsets? > PHP? LiveCode? > > > > We are writing year 2021! and this is the third break of existing functions > handling umlauts within months after LC, macOS and now mySQL > > > > Thanks for any ideas > > > > Tiemo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rolf.kocherhans at uzh.ch Thu Jul 8 02:07:38 2021 From: rolf.kocherhans at uzh.ch (Rolf Kocherhans) Date: Thu, 8 Jul 2021 08:07:38 +0200 Subject: HiDPI scaling on HTML5 works great ! Message-ID: Hello All For all doing HTML5 stuff, try the new 9.6.3 RC-1 Release, finally it can now do HiDPI scaling ! The stacks on webpages now look beautiful ! Thanks to all who made this happen ! Cheers Rolf From toolbook at kestner.de Thu Jul 8 08:45:49 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Thu, 8 Jul 2021 14:45:49 +0200 Subject: AW: mySQL 8 destroyes umlaute Message-ID: <005901d773f7$2f3fddb0$8dbf9910$@kestner.de> Thank you Matthias, because it is an existing db and years old LC programs in different versions out at the customers, I can't modify my old LC programs out there. I now have read that uft8 gets deprecated in mySQL 8 at some time, so that all new and migrated mySQL 8 databases gets by default uft8mb4 (4 byte chars), which LiveCode obviously doesn't like and can't display anymore the umlaute of my existing db. Perhaps everything would work with LC, when creating a new db and storing the data from the beginning in utf8mb4, but that?s not my use case. My live db has as the server character set "latin1" and as the db character set "utf8", which were both switched to utf8mb4 on mySQL 8. Now I am looking for a solution either in the PHPs, which are called from LC and connect to the db, or changing the db itself. Overwriting the charset in the PHP by: header ( 'Content-Type: text/html; Charset=latin1' ); doesn't affect the output to LiveCode at all, the umlaute stay corrupted. It seems that the settings of the db have priority. I have read that you can alter the charset of a database and/or tables (ALTER TABLE tablename CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;) . I am not good in handling databases, so I am not sure yet - if this changes just the default value for new db entries or if that changes also the existing db content - even if this would work, this wouldn't be a long lasting solution, because uft8 gets deprecated in future and I need again another solution. Anybody out here who is good in working with databases / mysql and has any idea how to repair this situation? Thanks Tiemo -----Urspr?ngliche Nachricht----- Von: use-livecode Im Auftrag von matthias rebbe via use-livecode Gesendet: Mittwoch, 7. Juli 2021 20:55 An: How to use LiveCode Cc: matthias_livecode_150811 at m-r-d.de Betreff: Re: mySQL 8 Tiemo, if i remember right this should be solving your issue. Before you write to or read from the db execute the following command revExecuteSQL databaseID, "SET NAMES 'utf8'" After that try to fetch data. The retrieved data has then to be decoded with textDecode(tRetrievedData,?UTF8?) e.g. put textDecode(tRetrievedData,"UTF8") into fld "Name" Regards, Matthias > Am 07.07.2021 um 12:02 schrieb Tiemo via use-livecode : > > Hello folks, > > > > I have a DB hosted on AWS and need to move it from mySQL 5.6 to 5.7 > because of AWS restrictions. > > In this context I am doing tests and also tried to see what my > programs (LiveCode > PHP > mySQL) say about mySQL 8. > > For this I imported a current 5.6 dump into a mySQL 5.7 and into a 8.0 > test DB. > > > > With mySQL 5.7 everything looks so far well. > > With mySQL 8 all umlauts come back destroyed in DB queries in my > LiveCode program. > > > > When I look into the DB with mySQL Workbench, the umlauts are ok with > 5.7 as well as with 8.0. Only as soon as I get them into my LC program, they break. > > > > Is here anybody, who has read about changes of handling the charset or > collations in mySQL databases with mySQL 8? > > And any idea, where I should try to look for a fix? DB-collations/charsets? > PHP? LiveCode? > > > > We are writing year 2021! and this is the third break of existing > functions handling umlauts within months after LC, macOS and now mySQL > > > > Thanks for any ideas > > > > Tiemo > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Thu Jul 8 11:52:18 2021 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 8 Jul 2021 11:52:18 -0400 Subject: mySQL 8 destroyes umlaute In-Reply-To: <005901d773f7$2f3fddb0$8dbf9910$@kestner.de> References: <005901d773f7$2f3fddb0$8dbf9910$@kestner.de> Message-ID: <434A0279-CDCE-4019-8F78-7C7B6011820E@all-auctions.com> Hi Tiemo, Could you use a substitution table as a work around patch? Rick > On Jul 8, 2021, at 8:45 AM, Tiemo via use-livecode wrote: > > Thank you Matthias, > > because it is an existing db and years old LC programs in different versions out at the customers, I can't modify my old LC programs out there. > > I now have read that uft8 gets deprecated in mySQL 8 at some time, so that all new and migrated mySQL 8 databases gets by default uft8mb4 (4 byte chars), which LiveCode obviously doesn't like and can't display anymore the umlaute of my existing db. Perhaps everything would work with LC, when creating a new db and storing the data from the beginning in utf8mb4, but that?s not my use case. My live db has as the server character set "latin1" and as the db character set "utf8", which were both switched to utf8mb4 on mySQL 8. > > Now I am looking for a solution either in the PHPs, which are called from LC and connect to the db, or changing the db itself. > Overwriting the charset in the PHP by: header ( 'Content-Type: text/html; Charset=latin1' ); doesn't affect the output to LiveCode at all, the umlaute stay corrupted. It seems that the settings of the db have priority. > > I have read that you can alter the charset of a database and/or tables (ALTER TABLE tablename CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;) . I am not good in handling databases, so I am not sure yet > - if this changes just the default value for new db entries or if that changes also the existing db content > - even if this would work, this wouldn't be a long lasting solution, because uft8 gets deprecated in future and I need again another solution. > > Anybody out here who is good in working with databases / mysql and has any idea how to repair this situation? > > Thanks > Tiemo From tom at makeshyft.com Fri Jul 9 00:16:01 2021 From: tom at makeshyft.com (Tom Glod) Date: Fri, 9 Jul 2021 00:16:01 -0400 Subject: HiDPI scaling on HTML5 works great ! In-Reply-To: References: Message-ID: Thats great news, thanks! On Thu, Jul 8, 2021 at 2:09 AM Rolf Kocherhans via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello All > > For all doing HTML5 stuff, try the new 9.6.3 RC-1 Release, > finally it can now do HiDPI scaling ! > > The stacks on webpages now look beautiful ! > > Thanks to all who made this happen ! > > Cheers > Rolf > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 From selander at tkf.att.ne.jp Fri Jul 9 02:31:43 2021 From: selander at tkf.att.ne.jp (Tim Selander) Date: Fri, 09 Jul 2021 15:31:43 +0900 Subject: Writing file to server with Livecode Server Message-ID: <60E7ED4F.40805@tkf.att.ne.jp> Hi, Several years back, I had a POST web form for our company where I saved responses to a .csv file on the same server and same folder as the .lc file. (All hosted on on-rev.com) That page is long gone, but I now need to do the same thing. But when I try to write the data to the csv file, I get a 405 Error. I suppose new security rules are behind this, but it's also very like I am simply making a coding mistake. Is it possible for an .lc script to write a text file to the same folder it resides in? Any help appreciated! Tim Selander Tokyo, Japan From selander at tkf.att.ne.jp Fri Jul 9 03:42:17 2021 From: selander at tkf.att.ne.jp (Tim Selander) Date: Fri, 09 Jul 2021 16:42:17 +0900 Subject: Writing file to server with Livecode Server In-Reply-To: <60E7ED4F.40805@tkf.att.ne.jp> References: <60E7ED4F.40805@tkf.att.ne.jp> Message-ID: <60E7FDD9.8060604@tkf.att.ne.jp> Of course, right after posting, new ideas come to mind. Using "put (variable) into URL (server file)" failed, but using the old Open file (server file) write (variable) to file (server file) close file (server file) still works fine. Sorry for the disturbance! Tim Selander Tokyo, Japan On 2021.07.09 15:31, Tim Selander via use-livecode wrote: > Hi, > > Several years back, I had a POST web form for our company where I > saved responses to a .csv file on the same server and same folder > as the .lc file. (All hosted on on-rev.com) > > That page is long gone, but I now need to do the same thing. But > when I try to write the data to the csv file, I get a 405 Error. > > I suppose new security rules are behind this, but it's also very > like I am simply making a coding mistake. Is it possible for an > .lc script to write a text file to the same folder it resides in? > > Any help appreciated! > > Tim Selander > Tokyo, Japan > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jeejeestudio at gmail.com Fri Jul 9 10:55:45 2021 From: jeejeestudio at gmail.com (JeeJeeStudio) Date: Fri, 9 Jul 2021 16:55:45 +0200 Subject: AW: mySQL 8 destroyes umlaute In-Reply-To: <005901d773f7$2f3fddb0$8dbf9910$@kestner.de> References: <005901d773f7$2f3fddb0$8dbf9910$@kestner.de> Message-ID: I always use UTF8MB4 for all. If you use phpmyadmin you can change everything on the spot. UTF8MB4 works great with LC, it's just you need to encode and decode correct in LC when you send or retrieve data. I always use PHP files as middleware. So LC sends to the PHP file, and the PHP file is then communicating with the DB. This way the communication is seen as local for the DB. Your app has then always access to the DB via the middleware, no matter where you are or what your IP address is. Also safer to use middleware instead of direct access when it's a program which needs access on different places. If it's just a local app on a local network, then you can safely use LC build in network capabilities. There is a howto on the database section on the forum on how to use that. You could even use it on a local XAMPP server. Op 8-7-2021 om 14:45 schreef Tiemo via use-livecode: > Thank you Matthias, > > because it is an existing db and years old LC programs in different versions out at the customers, I can't modify my old LC programs out there. > > I now have read that uft8 gets deprecated in mySQL 8 at some time, so that all new and migrated mySQL 8 databases gets by default uft8mb4 (4 byte chars), which LiveCode obviously doesn't like and can't display anymore the umlaute of my existing db. Perhaps everything would work with LC, when creating a new db and storing the data from the beginning in utf8mb4, but that?s not my use case. My live db has as the server character set "latin1" and as the db character set "utf8", which were both switched to utf8mb4 on mySQL 8. > > Now I am looking for a solution either in the PHPs, which are called from LC and connect to the db, or changing the db itself. > Overwriting the charset in the PHP by: header ( 'Content-Type: text/html; Charset=latin1' ); doesn't affect the output to LiveCode at all, the umlaute stay corrupted. It seems that the settings of the db have priority. > > I have read that you can alter the charset of a database and/or tables (ALTER TABLE tablename CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;) . I am not good in handling databases, so I am not sure yet > - if this changes just the default value for new db entries or if that changes also the existing db content > - even if this would work, this wouldn't be a long lasting solution, because uft8 gets deprecated in future and I need again another solution. > > Anybody out here who is good in working with databases / mysql and has any idea how to repair this situation? > > Thanks > Tiemo > > > > -----Urspr?ngliche Nachricht----- > Von: use-livecode Im Auftrag von matthias rebbe via use-livecode > Gesendet: Mittwoch, 7. Juli 2021 20:55 > An: How to use LiveCode > Cc: matthias_livecode_150811 at m-r-d.de > Betreff: Re: mySQL 8 > > Tiemo, > > if i remember right this should be solving your issue. > > Before you write to or read from the db execute the following command > > revExecuteSQL databaseID, "SET NAMES 'utf8'" > After that try to fetch data. > > The retrieved data has then to be decoded with > > textDecode(tRetrievedData,?UTF8?) > > e.g. > put textDecode(tRetrievedData,"UTF8") into fld "Name" > > > Regards, > > Matthias > >> Am 07.07.2021 um 12:02 schrieb Tiemo via use-livecode : >> >> Hello folks, >> >> >> >> I have a DB hosted on AWS and need to move it from mySQL 5.6 to 5.7 >> because of AWS restrictions. >> >> In this context I am doing tests and also tried to see what my >> programs (LiveCode > PHP > mySQL) say about mySQL 8. >> >> For this I imported a current 5.6 dump into a mySQL 5.7 and into a 8.0 >> test DB. >> >> >> >> With mySQL 5.7 everything looks so far well. >> >> With mySQL 8 all umlauts come back destroyed in DB queries in my >> LiveCode program. >> >> >> >> When I look into the DB with mySQL Workbench, the umlauts are ok with >> 5.7 as well as with 8.0. Only as soon as I get them into my LC program, they break. >> >> >> >> Is here anybody, who has read about changes of handling the charset or >> collations in mySQL databases with mySQL 8? >> >> And any idea, where I should try to look for a fix? DB-collations/charsets? >> PHP? LiveCode? >> >> >> >> We are writing year 2021! and this is the third break of existing >> functions handling umlauts within months after LC, macOS and now mySQL >> >> >> >> Thanks for any ideas >> >> >> >> Tiemo >> >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Jul 9 11:09:41 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Jul 2021 15:09:41 +0000 Subject: Stuck on native database functions In-Reply-To: <8F615AAD-86B2-43B7-BE34-51E95E15D50C@gmail.com> References: <464B72B1-5E82-410B-B74A-66A6E917DDD1@gmail.com> <8F615AAD-86B2-43B7-BE34-51E95E15D50C@gmail.com> Message-ID: Okay I found out what I did wrong. The array variable needs to be enclosed in quotes. I remember now some time in the past looking at that and saying, "Why are their quotes around the array variable? That won't work!" So I removed them and subsequently shot myself in the foot. For the record, having a parameter that can be either a string or an array, and then having to enclose the name of the array in quotes to keep the handler from confusing it as a string, strikes me as a really odd way to do things. But hey, it is what it is. Bob S > On Jul 7, 2021, at 09:52 , Mark Smith via use-livecode wrote: > > Yes, using the numeric placeholders will do that for you. > >> On Jul 7, 2021, at 4:43 PM, Terence Heaford via use-livecode wrote: >> >> It also seems to do the escaping for you as it handled text containing commas in the description > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthlearningsolutions.org Fri Jul 9 12:23:18 2021 From: prothero at earthlearningsolutions.org (ELS Prothero) Date: Fri, 9 Jul 2021 09:23:18 -0700 Subject: mySQL 8 destroyes umlaute In-Reply-To: References: Message-ID: Folks, I have posted a sample php file that I have used for a couple of years, that uses aes-256 encryption for database operations. Data is encrypted in Livecode and decrypted by the php script, which posts it to the mysql db. Perhaps it will be of interest and I welcome any feedback. https://earthlearningsolutions.org/google-static-maps-demo/ Best, Bill William Prothero https://earthlearningsolutions.org > On Jul 9, 2021, at 7:56 AM, JeeJeeStudio via use-livecode wrote: > > ?I always use UTF8MB4 for all. > > If you use phpmyadmin you can change everything on the spot. > > UTF8MB4 works great with LC, it's just you need to encode and decode correct in LC when you send or retrieve data. > > I always use PHP files as middleware. So LC sends to the PHP file, and the PHP file is then communicating with the DB. This way the communication is seen as local for the DB. > > Your app has then always access to the DB via the middleware, no matter where you are or what your IP address is. Also safer to use middleware instead of direct access when it's a program which needs access on different places. If it's just a local app on a local network, then you can safely use LC build in network capabilities. > > There is a howto on the database section on the forum on how to use that. You could even use it on a local XAMPP server. > > Op 8-7-2021 om 14:45 schreef Tiemo via use-livecode: >> Thank you Matthias, >> >> because it is an existing db and years old LC programs in different versions out at the customers, I can't modify my old LC programs out there. >> >> I now have read that uft8 gets deprecated in mySQL 8 at some time, so that all new and migrated mySQL 8 databases gets by default uft8mb4 (4 byte chars), which LiveCode obviously doesn't like and can't display anymore the umlaute of my existing db. Perhaps everything would work with LC, when creating a new db and storing the data from the beginning in utf8mb4, but that?s not my use case. My live db has as the server character set "latin1" and as the db character set "utf8", which were both switched to utf8mb4 on mySQL 8. >> >> Now I am looking for a solution either in the PHPs, which are called from LC and connect to the db, or changing the db itself. >> Overwriting the charset in the PHP by: header ( 'Content-Type: text/html; Charset=latin1' ); doesn't affect the output to LiveCode at all, the umlaute stay corrupted. It seems that the settings of the db have priority. >> >> I have read that you can alter the charset of a database and/or tables (ALTER TABLE tablename CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;) . I am not good in handling databases, so I am not sure yet >> - if this changes just the default value for new db entries or if that changes also the existing db content >> - even if this would work, this wouldn't be a long lasting solution, because uft8 gets deprecated in future and I need again another solution. >> >> Anybody out here who is good in working with databases / mysql and has any idea how to repair this situation? >> >> Thanks >> Tiemo >> >> >> >> -----Urspr?ngliche Nachricht----- >> Von: use-livecode Im Auftrag von matthias rebbe via use-livecode >> Gesendet: Mittwoch, 7. Juli 2021 20:55 >> An: How to use LiveCode >> Cc: matthias_livecode_150811 at m-r-d.de >> Betreff: Re: mySQL 8 >> >> Tiemo, >> >> if i remember right this should be solving your issue. >> >> Before you write to or read from the db execute the following command >> >> revExecuteSQL databaseID, "SET NAMES 'utf8'" >> After that try to fetch data. >> >> The retrieved data has then to be decoded with >> >> textDecode(tRetrievedData,?UTF8?) >> >> e.g. >> put textDecode(tRetrievedData,"UTF8") into fld "Name" >> >> >> Regards, >> >> Matthias >> >>>> Am 07.07.2021 um 12:02 schrieb Tiemo via use-livecode : >>> >>> Hello folks, >>> >>> >>> >>> I have a DB hosted on AWS and need to move it from mySQL 5.6 to 5.7 >>> because of AWS restrictions. >>> >>> In this context I am doing tests and also tried to see what my >>> programs (LiveCode > PHP > mySQL) say about mySQL 8. >>> >>> For this I imported a current 5.6 dump into a mySQL 5.7 and into a 8.0 >>> test DB. >>> >>> >>> >>> With mySQL 5.7 everything looks so far well. >>> >>> With mySQL 8 all umlauts come back destroyed in DB queries in my >>> LiveCode program. >>> >>> >>> >>> When I look into the DB with mySQL Workbench, the umlauts are ok with >>> 5.7 as well as with 8.0. Only as soon as I get them into my LC program, they break. >>> >>> >>> >>> Is here anybody, who has read about changes of handling the charset or >>> collations in mySQL databases with mySQL 8? >>> >>> And any idea, where I should try to look for a fix? DB-collations/charsets? >>> PHP? LiveCode? >>> >>> >>> >>> We are writing year 2021! and this is the third break of existing >>> functions handling umlauts within months after LC, macOS and now mySQL >>> >>> >>> >>> Thanks for any ideas >>> >>> >>> >>> Tiemo >>> >>> >>> >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Jul 9 15:15:51 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Jul 2021 19:15:51 +0000 Subject: Stuck on native database functions In-Reply-To: References: <464B72B1-5E82-410B-B74A-66A6E917DDD1@gmail.com> <8F615AAD-86B2-43B7-BE34-51E95E15D50C@gmail.com> Message-ID: <538FFA76-C916-4569-9819-B3186C0CD4FD@iotecdigital.com> Okay, so here's an updated version of my ArrayToSQLITE function. It takes an array, and as the name suggests, converts it to an sqLite database and returns the Database ID. Of note is that it now works with EMBEDDED ARRAYS! If it detects that a key is an array in the supplied array, it will create a BLOB column, otherwise it will create a VARCHAR column. (This is largely for syntax compatibility as sqLITE does not have data type constraints, but anything larger than 255 characters will need to be a BLOB [I think]. Then when building the insert statement, it will arrayEncode the value. I have not tested this yet, as I have no need of it, but if anyone wants to try, feel free and let me know if you find any issues. FUNCTION arrayToSQLite pArrayDataA, pDBFile, pDBName put the keys of pArrayDataA into tArrayKeys sort tArrayKeys numeric ascending IF pDBFile is empty THEN put ":memory:" into pDBFile IF pDBName is empty THEN put "arraydata" into pDBName TRY put revOpenDatabase("sqlite", pDBFile) into tDBID IF "Error" is in tDBID THEN throw tDBID return empty END IF put "drop table " & pDBName into tDropSQL revExecuteSQL tDBID, tDropSQL put the result into tResult CATCH tError answer tError IF the environment is "development" THEN exit to top ELSE quit END TRY -- create the table put "create table" && quote & pDBName & quote \ & cr into tCreateCommand put "(" & quote & "recordid" & quote && "NUMERIC PRIMARY KEY UNIQUE, " \ & cr AFTER tCreateCommand put the keys of pArrayDataA [1] into tRecordKeyList REPEAT for each line tRecordKey in tRecordKeyList if pArrayDataA [1] [tRecordKey] is an array then put "BLOB" into tColumnType else put VARCHAR into tColumnType end if put quote & tRecordKey & quote && tColumnType & "," && cr AFTER tCreateCommand END REPEAT delete char -3 to -1 of tCreateCommand put ")" AFTER tCreateCommand TRY revExecuteSQL tDBID, tCreateCommand put the result into tResult IF tResult is not 0 THEN breakpoint CATCH tError breakpoint END TRY put 1 into tRecordCounter put "recordid" & cr & tRecordKeyList into tColumns repeat with i = 1 to the number of lines of tColumns put ":" & i into item i of tColumnList end repeat put "(" & tColumnList & ")" into tColumnList -- insert data REPEAT for each line tKey in tArrayKeys put 1 into tColumnCounter put pArrayDataA [tKey] into tRecordDataA put tRecordCounter into tQueryDataA [1] REPEAT for each line tRecordKey in tRecordKeyList add 1 to tColumnCounter if tRecordDataA [tRecordKey] is an array then put arrayEncode(tRecordDataA [tRecordKey]) into tValue else put tRecordDataA [tRecordKey] into tValue end if put tValue into tQueryDataA [tColumnCounter] END REPEAT put "insert into" && pDBName && "VALUES" && tColumnList into tInsertSQL TRY revExecuteSQL tDBID, tInsertSQL, "tQueryDataA" put the result into tResult if the result is not a number then breakpoint CATCH tError breakpoint END TRY add 1 to tRecordCounter END REPEAT return tDBID END arrayToSQLite > On Jul 9, 2021, at 08:09 , Bob Sneidar via use-livecode wrote: > > Okay I found out what I did wrong. The array variable needs to be enclosed in quotes. I remember now some time in the past looking at that and saying, "Why are their quotes around the array variable? That won't work!" So I removed them and subsequently shot myself in the foot. > > For the record, having a parameter that can be either a string or an array, and then having to enclose the name of the array in quotes to keep the handler from confusing it as a string, strikes me as a really odd way to do things. But hey, it is what it is. > > Bob S From bobsneidar at iotecdigital.com Fri Jul 9 15:20:27 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Jul 2021 19:20:27 +0000 Subject: mySQL 8 destroyes umlaute In-Reply-To: <434A0279-CDCE-4019-8F78-7C7B6011820E@all-auctions.com> References: <005901d773f7$2f3fddb0$8dbf9910$@kestner.de> <434A0279-CDCE-4019-8F78-7C7B6011820E@all-auctions.com> Message-ID: <580FAB04-3978-4664-8FAD-2627A24FFD45@iotecdigital.com> I did something similar. I created a client-server library. The client encrypts using a unique method that only I know, and the server decrypts using the same method. This way you can have secure traffic without HAVING to go through a web server and all the hoopla that involves (for the uninitiate like myself) and only the server module accesses the database directly. Bob S > On Jul 8, 2021, at 08:52 , Rick Harrison via use-livecode wrote: > > Hi Tiemo, > > Could you use a substitution table as a work around patch? > > Rick > >> On Jul 8, 2021, at 8:45 AM, Tiemo via use-livecode wrote: >> >> Thank you Matthias, >> >> because it is an existing db and years old LC programs in different versions out at the customers, I can't modify my old LC programs out there. >> >> I now have read that uft8 gets deprecated in mySQL 8 at some time, so that all new and migrated mySQL 8 databases gets by default uft8mb4 (4 byte chars), which LiveCode obviously doesn't like and can't display anymore the umlaute of my existing db. Perhaps everything would work with LC, when creating a new db and storing the data from the beginning in utf8mb4, but that?s not my use case. My live db has as the server character set "latin1" and as the db character set "utf8", which were both switched to utf8mb4 on mySQL 8. >> >> Now I am looking for a solution either in the PHPs, which are called from LC and connect to the db, or changing the db itself. >> Overwriting the charset in the PHP by: header ( 'Content-Type: text/html; Charset=latin1' ); doesn't affect the output to LiveCode at all, the umlaute stay corrupted. It seems that the settings of the db have priority. >> >> I have read that you can alter the charset of a database and/or tables (ALTER TABLE tablename CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;) . I am not good in handling databases, so I am not sure yet >> - if this changes just the default value for new db entries or if that changes also the existing db content >> - even if this would work, this wouldn't be a long lasting solution, because uft8 gets deprecated in future and I need again another solution. >> >> Anybody out here who is good in working with databases / mysql and has any idea how to repair this situation? >> >> Thanks >> Tiemo > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Jul 9 17:03:32 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Jul 2021 21:03:32 +0000 Subject: MouseDoubleUp in a datagrid Message-ID: <7E996FF0-C281-459D-AEF8-D3BEF16C3A57@iotecdigital.com> Hi all. I want to handle mouseDoubleUp in a datagrid WITHOUT triggering SelectionChanged. What is happening now is that selectionChanged gets sent twice before mouseDoubleUp gets sent. Setting a delay in mouseDoubleUp or mouseUp won't work because selectionChanged gets sent BEFORE those messages. Any ideas? Bob S From bobsneidar at iotecdigital.com Fri Jul 9 18:04:49 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Jul 2021 22:04:49 +0000 Subject: How do I get the ID of a database? Message-ID: Hi all. I am getting more into MEMORY sqLite databases, and perusing the dictionary, I find no way to close a database or find the ID of a currently open database. I know I can store the ID somewhere, but I am finding that after troubleshooting and tracing my code I have a lot of database IDs open and I want to start with a clean slate. Apart from quitting Livecode, is there a way to do this? There is nothing under the Database Library category. Bob S From mkoob at rogers.com Fri Jul 9 19:16:55 2021 From: mkoob at rogers.com (Martin Koob) Date: Fri, 9 Jul 2021 19:16:55 -0400 Subject: MouseDoubleUp in a datagrid In-Reply-To: <7E996FF0-C281-459D-AEF8-D3BEF16C3A57@iotecdigital.com> References: <7E996FF0-C281-459D-AEF8-D3BEF16C3A57@iotecdigital.com> Message-ID: Hi I am interested in the answer to this too. I wonder if is this something that you could use a frontScript for? I haven?t really used frontScripts so I am not quite sure whether this would work. The idea I thought of is could you have a mouseDoubleUp handler in the front script and have a condition as shown in the following pseudocode if the target is your datagrid then call a handler that you wanted mouseDoubleUp handler to call, else pass mouseDoubleUp. end if I would think that since the frontScript gets the mouseDoubleUp first it would handle it there before the selectionChanged messages are handled in the Datagrid itself. Whats more if the target is the data grid and there is not a pass mouseDoubleUp command in the Lines of code after the if clause then mouseDoubleUp has been handled and that message will not make it to the DataGrid. Is that a correct understanding of how the two could be made to achieve there result that Bob Wants? Martin Koob > On Jul 9, 2021, at 5:03 PM, Bob Sneidar via use-livecode wrote: > > Hi all. > > I want to handle mouseDoubleUp in a datagrid WITHOUT triggering SelectionChanged. What is happening now is that selectionChanged gets sent twice before mouseDoubleUp gets sent. Setting a delay in mouseDoubleUp or mouseUp won't work because selectionChanged gets sent BEFORE those messages. > > Any ideas? > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Fri Jul 9 19:30:03 2021 From: harrison at all-auctions.com (Rick Harrison) Date: Fri, 9 Jul 2021 19:30:03 -0400 Subject: How do I get the ID of a database? In-Reply-To: References: Message-ID: <16408344-FD5F-47D9-A67D-89350F7832E1@all-auctions.com> Hi Bob, When you open the database with revOpenDatabase you assign the whole thing to yourDatabaseID. Look it up in the dictionary towards the end and you?ll find what I?m referring to. yourDatabaseID will be an integer and you will use that to refer to your database for other functions. Hope that helps! Rick > On Jul 9, 2021, at 6:04 PM, Bob Sneidar via use-livecode wrote: > > Hi all. > > I am getting more into MEMORY sqLite databases, and perusing the dictionary, I find no way to close a database or find the ID of a currently open database. > > I know I can store the ID somewhere, but I am finding that after troubleshooting and tracing my code I have a lot of database IDs open and I want to start with a clean slate. > > Apart from quitting Livecode, is there a way to do this? There is nothing under the Database Library category. > > Bob S From bobsneidar at iotecdigital.com Fri Jul 9 19:35:59 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 9 Jul 2021 23:35:59 +0000 Subject: How do I get the ID of a database? In-Reply-To: <16408344-FD5F-47D9-A67D-89350F7832E1@all-auctions.com> References: <16408344-FD5F-47D9-A67D-89350F7832E1@all-auctions.com> Message-ID: <49A87B65-9117-487A-84A8-091A7AE98A80@iotecdigital.com> Yeah thanks Rick, I know I can store the database id, I was hoping to simply call a function that could tell me what database name the ID belonged to, but apparently that is not a persistent thing. I stored it in a script local variable in the card that creates the database, then I have a custom property"memorydb" that returns that stored value when I need it. What I cannot do however is close a database even if I have it's ID. I can close CURSORS, but not databases. I don't guess it's all that important. Bob S > On Jul 9, 2021, at 16:30 , Rick Harrison via use-livecode wrote: > > Hi Bob, > > When you open the database with revOpenDatabase you assign the whole thing to yourDatabaseID. > > Look it up in the dictionary towards the end and you?ll find what I?m referring to. > > yourDatabaseID will be an integer and you will use that to refer to your database for other functions. > > Hope that helps! > > Rick From ahsoftware at sonic.net Fri Jul 9 19:48:09 2021 From: ahsoftware at sonic.net (Mark Wieder) Date: Fri, 9 Jul 2021 16:48:09 -0700 Subject: How do I get the ID of a database? In-Reply-To: <49A87B65-9117-487A-84A8-091A7AE98A80@iotecdigital.com> References: <16408344-FD5F-47D9-A67D-89350F7832E1@all-auctions.com> <49A87B65-9117-487A-84A8-091A7AE98A80@iotecdigital.com> Message-ID: <9ea7fe31-2467-673f-d0d0-bb2bccb513a2@sonic.net> On 7/9/21 4:35 PM, Bob Sneidar via use-livecode wrote: > Yeah thanks Rick, I know I can store the database id, I was hoping to simply call a function that could tell me what database name the ID belonged to, but apparently that is not a persistent thing. How would you reference the database to get its ID? That's a bit of circular reasoning. -- Mark Wieder ahsoftware at gmail.com From bobsneidar at iotecdigital.com Fri Jul 9 20:02:00 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Sat, 10 Jul 2021 00:02:00 +0000 Subject: How do I get the ID of a database? In-Reply-To: <9ea7fe31-2467-673f-d0d0-bb2bccb513a2@sonic.net> References: <16408344-FD5F-47D9-A67D-89350F7832E1@all-auctions.com> <49A87B65-9117-487A-84A8-091A7AE98A80@iotecdigital.com> <9ea7fe31-2467-673f-d0d0-bb2bccb513a2@sonic.net> Message-ID: <575EA118-5081-420A-9A11-4B2C1C14BCEC@iotecdigital.com> Something like put revdb_databaseNamed(":MEMORY:") into tDBID. But thinking about it more, it's kind of irrelevant. Opening a database isn't like loading the information into some variable. The cursor is the actual data that needs to have housekeeping done on it. Bob S > On Jul 9, 2021, at 16:48 , Mark Wieder via use-livecode wrote: > > How would you reference the database to get its ID? > That's a bit of circular reasoning. > > -- > Mark Wieder > ahsoftware at gmail.com From tom at makeshyft.com Fri Jul 9 22:30:21 2021 From: tom at makeshyft.com (Tom Glod) Date: Fri, 9 Jul 2021 22:30:21 -0400 Subject: How do I get the ID of a database? In-Reply-To: <575EA118-5081-420A-9A11-4B2C1C14BCEC@iotecdigital.com> References: <16408344-FD5F-47D9-A67D-89350F7832E1@all-auctions.com> <49A87B65-9117-487A-84A8-091A7AE98A80@iotecdigital.com> <9ea7fe31-2467-673f-d0d0-bb2bccb513a2@sonic.net> <575EA118-5081-420A-9A11-4B2C1C14BCEC@iotecdigital.com> Message-ID: Hey Bob.... I don't understand the problem. Why don't you just store the ID in a persistent place? i think you are over complicating something here. Why can't YOU give it the name that you need and wnat it to be and then store the ID with that name somewhere? Maybe I'm just misunderstanding the problem. On Fri, Jul 9, 2021 at 8:03 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Something like put revdb_databaseNamed(":MEMORY:") into tDBID. > > But thinking about it more, it's kind of irrelevant. Opening a database > isn't like loading the information into some variable. The cursor is the > actual data that needs to have housekeeping done on it. > > Bob S > > > > On Jul 9, 2021, at 16:48 , Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > How would you reference the database to get its ID? > > That's a bit of circular reasoning. > > > > -- > > Mark Wieder > > ahsoftware at gmail.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 From scott at elementarysoftware.com Sat Jul 10 00:59:44 2021 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Fri, 9 Jul 2021 21:59:44 -0700 Subject: MouseDoubleUp in a datagrid In-Reply-To: References: <7E996FF0-C281-459D-AEF8-D3BEF16C3A57@iotecdigital.com> Message-ID: Hello Bob, Using Martin?s idea I put this into a frontScript and it allowed the ?mouseDoubleUp? to get caught. (Make sure you are referencing the correct dataGrid? this script is specific to "DataGrid 1") on selectionChanged if ("DataGrid 1" is in the target) then wait 5 millisec with messages else pass selectionChanged end if end selectionChanged on mouseDoubleUp answer "mouseDoubleUp" end mouseDoubleUp -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email scott at elementarysoftware.com booth 1-360-734-4701 ------------------------------------------------------ > On Jul 9, 2021, at 4:16 PM, Martin Koob via use-livecode wrote: > > Hi > > I am interested in the answer to this too. I wonder if is this something that you could use a frontScript for? I haven?t really used frontScripts so I am not quite sure whether this would work. > The idea I thought of is could you have a mouseDoubleUp handler in the front script and have a condition as shown in the following pseudocode > > if the target is your datagrid then > call a handler that you wanted mouseDoubleUp handler to call, > else > pass mouseDoubleUp. > end if > > > I would think that since the frontScript gets the mouseDoubleUp first it would handle it there before the selectionChanged messages are handled in the Datagrid itself. Whats more if the target is the data grid and there is not a pass mouseDoubleUp command in the Lines of code after the if clause then mouseDoubleUp has been handled and that message will not make it to the DataGrid. Is that a correct understanding of how the two could be made to achieve there result that Bob Wants? > > Martin Koob > > >> On Jul 9, 2021, at 5:03 PM, Bob Sneidar via use-livecode wrote: >> >> Hi all. >> >> I want to handle mouseDoubleUp in a datagrid WITHOUT triggering SelectionChanged. What is happening now is that selectionChanged gets sent twice before mouseDoubleUp gets sent. Setting a delay in mouseDoubleUp or mouseUp won't work because selectionChanged gets sent BEFORE those messages. >> >> Any ideas? >> >> Bob S >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Mon Jul 12 08:49:27 2021 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 12 Jul 2021 13:49:27 +0100 Subject: [iOS] possible console bug Message-ID: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> Hi Friends, I?m writing here before I fill up a bug report because I don?t know if I?m doing things correctly. From what I remember, if we did a ?put? to stdout, it would appear in the system log on iOS Simulator. Is that still the case? I have an empty stack here with a button with the following script: on mouseUp put ?this doesn?t work.? put ?it still doesn?t work? end mouseUp When I run that stack on the iOS Simulator, and select the ?system log? menu item from the Simulator application, I can see a log of debug information but I can?t see any of my own ?put? messages. No matter how many times I click the button. Wasn?t that supposed to work? This is MacOS Big Sur in a Macbook Air M1 running LiveCode 9.6.3-rc-1 Om om Andre From andre at andregarzia.com Mon Jul 12 09:26:33 2021 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 12 Jul 2021 14:26:33 +0100 Subject: [iOS] possible console bug In-Reply-To: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> Message-ID: <4767B261-322F-456B-B68A-EB268E996BA5@andregarzia.com> Besides that original problem, I have another one which is that calls to ?do ? in widget ?browser?? are not working on iOS Simulator but work fine on the Desktop and Android. The code has no branching for each system, it is the exact same code in all platforms. There is no error, it simply doesn?t work as if it was not there. I?m finding all that very odd. > On 12 Jul 2021, at 13:49, Andre Garzia wrote: > > Hi Friends, > > I?m writing here before I fill up a bug report because I don?t know if I?m doing things correctly. > > From what I remember, if we did a ?put? to stdout, it would appear in the system log on iOS Simulator. Is that still the case? > > I have an empty stack here with a button with the following script: > > on mouseUp > put ?this doesn?t work.? > put ?it still doesn?t work? > end mouseUp > > When I run that stack on the iOS Simulator, and select the ?system log? menu item from the Simulator application, I can see a log of debug information but I can?t see any of my own ?put? messages. No matter how many times I click the button. > > Wasn?t that supposed to work? > > This is MacOS Big Sur in a Macbook Air M1 running LiveCode 9.6.3-rc-1 > > Om om > Andre From matthias_livecode_150811 at m-r-d.de Mon Jul 12 09:45:49 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 12 Jul 2021 15:45:49 +0200 Subject: [iOS] possible console bug In-Reply-To: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> Message-ID: <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> I tried here with LC9.6.2 under Catalina. It doesn't work either. > Am 12.07.2021 um 14:49 schrieb Andre Garzia via use-livecode : > > Hi Friends, > > I?m writing here before I fill up a bug report because I don?t know if I?m doing things correctly. > > From what I remember, if we did a ?put? to stdout, it would appear in the system log on iOS Simulator. Is that still the case? > > I have an empty stack here with a button with the following script: > > on mouseUp > put ?this doesn?t work.? > put ?it still doesn?t work? > end mouseUp > > When I run that stack on the iOS Simulator, and select the ?system log? menu item from the Simulator application, I can see a log of debug information but I can?t see any of my own ?put? messages. No matter how many times I click the button. > > Wasn?t that supposed to work? > > This is MacOS Big Sur in a Macbook Air M1 running LiveCode 9.6.3-rc-1 > > Om om > Andre > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Mon Jul 12 10:01:08 2021 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 12 Jul 2021 15:01:08 +0100 Subject: [iOS] possible console bug In-Reply-To: <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> Message-ID: but it is supposed to work, right? Did this changed in some version? > On 12 Jul 2021, at 14:45, matthias rebbe via use-livecode wrote: > > I tried here with LC9.6.2 under Catalina. It doesn't work either. > > >> Am 12.07.2021 um 14:49 schrieb Andre Garzia via use-livecode : >> >> Hi Friends, >> >> I?m writing here before I fill up a bug report because I don?t know if I?m doing things correctly. >> >> From what I remember, if we did a ?put? to stdout, it would appear in the system log on iOS Simulator. Is that still the case? >> >> I have an empty stack here with a button with the following script: >> >> on mouseUp >> put ?this doesn?t work.? >> put ?it still doesn?t work? >> end mouseUp >> >> When I run that stack on the iOS Simulator, and select the ?system log? menu item from the Simulator application, I can see a log of debug information but I can?t see any of my own ?put? messages. No matter how many times I click the button. >> >> Wasn?t that supposed to work? >> >> This is MacOS Big Sur in a Macbook Air M1 running LiveCode 9.6.3-rc-1 >> >> Om om >> Andre >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From phil at liverpool.ac.uk Mon Jul 12 10:04:15 2021 From: phil at liverpool.ac.uk (Jimmieson, Phil) Date: Mon, 12 Jul 2021 14:04:15 +0000 Subject: [iOS] possible console bug In-Reply-To: References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> Message-ID: I think it changed at some point and you?re now supposed to use write to stdout though I just tried that and couldn?t get it to produce any output in the console. On 12 Jul 2021, at 15:01, Andre Garzia via use-livecode > wrote: but it is supposed to work, right? Did this changed in some version? On 12 Jul 2021, at 14:45, matthias rebbe via use-livecode > wrote: I tried here with LC9.6.2 under Catalina. It doesn't work either. Am 12.07.2021 um 14:49 schrieb Andre Garzia via use-livecode >: Hi Friends, I?m writing here before I fill up a bug report because I don?t know if I?m doing things correctly. From what I remember, if we did a ?put? to stdout, it would appear in the system log on iOS Simulator. Is that still the case? I have an empty stack here with a button with the following script: on mouseUp put ?this doesn?t work.? put ?it still doesn?t work? end mouseUp When I run that stack on the iOS Simulator, and select the ?system log? menu item from the Simulator application, I can see a log of debug information but I can?t see any of my own ?put? messages. No matter how many times I click the button. Wasn?t that supposed to work? This is MacOS Big Sur in a Macbook Air M1 running LiveCode 9.6.3-rc-1 Om om Andre _______________________________________________ use-livecode mailing list use-livecode at 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 at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Mon Jul 12 10:14:28 2021 From: mark at livecode.com (Mark Waddingham) Date: Mon, 12 Jul 2021 15:14:28 +0100 Subject: [iOS] possible console bug In-Reply-To: References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> Message-ID: <64f37fb77dc4fafe7e6afa043591f0ed@livecode.com> On 2021-07-12 15:01, Andre Garzia via use-livecode wrote: > but it is supposed to work, right? Did this changed in some version? Apple stopped piping stdout/stderr to 'console' a few years ago I think - both on Desktop, and when looking at the device console for iOS. In version 9.0 though we changed the behavior of `put` without a target. e.g. put "foo" In the IDE this will output to the message box. In -ui mode, this will write to stderr. Otherwise (which will be the case on iOS / Android!) this will output to the system log - using NSLog on Desktop/iOS - using android.Log class on Android - using OutpuDebugString on Win32 - using syslog on Linux - using JS console on html5 Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From andre at andregarzia.com Mon Jul 12 10:37:31 2021 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 12 Jul 2021 15:37:31 +0100 Subject: [iOS] possible console bug In-Reply-To: <64f37fb77dc4fafe7e6afa043591f0ed@livecode.com> References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> <64f37fb77dc4fafe7e6afa043591f0ed@livecode.com> Message-ID: Mark, That?s the problem, I?m looking at the system log on the iOS Simulator and there is no output for put without a target. Om om A > On 12 Jul 2021, at 15:14, Mark Waddingham via use-livecode wrote: > > On 2021-07-12 15:01, Andre Garzia via use-livecode wrote: >> but it is supposed to work, right? Did this changed in some version? > > Apple stopped piping stdout/stderr to 'console' a few years ago I think - both on Desktop, and when looking at the device console for iOS. > > In version 9.0 though we changed the behavior of `put` without a target. e.g. > > put "foo" > > In the IDE this will output to the message box. > > In -ui mode, this will write to stderr. > > Otherwise (which will be the case on iOS / Android!) this will output to the system log > - using NSLog on Desktop/iOS > - using android.Log class on Android > - using OutpuDebugString on Win32 > - using syslog on Linux > - using JS console on html5 > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Mon Jul 12 10:54:37 2021 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 12 Jul 2021 15:54:37 +0100 Subject: [iOS] possible bug with javascriptHandlers on iOS Message-ID: I started a thread today about a possible bug with using ?put without a target? on iOS. That bug appeared while I was trying to debug a problem with a mobile app we?re developing. It is an odd bug, we have it working on macOS Desktop inside the IDE and on Android, but it fails on iOS. The problem is a simple single like handler that executes something alone the lines of: do ?liveCode.myapp_RecordScrollPosition(window.scrollY)? in widget ?browser? The handler is not named that of course but you get the idea. The ?myapp_RecordScrollPosition? is in the message path, and is added to the ?javascriptHandlers? property of the widget. The proof that the code is sound, is that it works on Android in a real device, and on desktop inside the IDE. I don?t understand why this code fails on iOS (both in the Simulator and on an iPhone 12 mini). Trying to debug this, I attempted to write to the console, so that I could see if the code is passing through the routines it should. I don?t have a business license, so I can use the remote debugger. I need to use old ?put without target? calls. And then, they don?t work either. I?ve already spent basically two days trying to debug why this fails. It fails silently. There is no error on LC side. I suspect it is something on the iOS WKWebView (or whatever is being used) side. Anyone successfully calling LC from a browser widget on 9.6.3-rc-1 on iOS ? Puzzled Regards Andre From mark at livecode.com Mon Jul 12 11:02:13 2021 From: mark at livecode.com (Mark Waddingham) Date: Mon, 12 Jul 2021 16:02:13 +0100 Subject: [iOS] possible console bug In-Reply-To: References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> <64f37fb77dc4fafe7e6afa043591f0ed@livecode.com> Message-ID: On 2021-07-12 15:37, Andre Garzia via use-livecode wrote: > Mark, > > That?s the problem, I?m looking at the system log on the iOS Simulator > and there is no output for put without a target. Heh sorry - I didn't actually read the code you posted in your original post :D I believe this should work - `put ...` just gets sent to `NSLog` which should emit to the relevant console. If you run the app on a real iOS device, do you see your log messages in the device log for it? Could it be Apple are now funneling simulator logs into a pane in Xcode - like they do for devices, rather than have them go to the macOS system log? Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From matthias_livecode_150811 at m-r-d.de Mon Jul 12 11:06:45 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 12 Jul 2021 17:06:45 +0200 Subject: [iOS] possible console bug In-Reply-To: References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> <64f37fb77dc4fafe7e6afa043591f0ed@livecode.com> Message-ID: The Simulator from Xcode 12.1 still shows the menu entry 'Show System Log..." under the Debug menu. That entry opens the "normal" system log. > Am 12.07.2021 um 17:02 schrieb Mark Waddingham via use-livecode : > > On 2021-07-12 15:37, Andre Garzia via use-livecode wrote: >> Mark, >> That?s the problem, I?m looking at the system log on the iOS Simulator >> and there is no output for put without a target. > > Heh sorry - I didn't actually read the code you posted in your original post :D > > I believe this should work - `put ...` just gets sent to `NSLog` which should emit to the relevant console. > > If you run the app on a real iOS device, do you see your log messages in the device log for it? Could it be Apple are now funneling simulator logs into a pane in Xcode - like they do for devices, rather than have them go to the macOS system log? > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Mon Jul 12 11:13:10 2021 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 12 Jul 2021 16:13:10 +0100 Subject: [iOS] possible console bug In-Reply-To: References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> <64f37fb77dc4fafe7e6afa043591f0ed@livecode.com> Message-ID: > On 12 Jul 2021, at 16:02, Mark Waddingham via use-livecode wrote: > > If you run the app on a real iOS device, do you see your log messages in the device log for it? Could it be Apple are now funneling simulator logs into a pane in Xcode - like they do for devices, rather than have them go to the macOS system log? Running the app on a real device doesn?t show the log either. The organiser window of XCode has a specific ?Open Console? button on the pane for the device you selected. It opens the console and it doesn?t contain the data I?m trying to output from LiveCode. You need to tell it to stream the console data from the phone, it delivers a ton of garbage. Filtering by process or by the string I?m sending ? which is a fixed string at this point since I?m just trying to get the console working ? yields no result whatsoever. From matthias_livecode_150811 at m-r-d.de Mon Jul 12 18:58:04 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 13 Jul 2021 00:58:04 +0200 Subject: [iOS] possible console bug In-Reply-To: References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> <64f37fb77dc4fafe7e6afa043591f0ed@livecode.com> Message-ID: Andre, tested now with LC 9.6.3 and Xcode 12.4, as i am still on Catalina. Took me some time to download Xcode. i tried here with 2 different physical devices (iPhone 7 iOS 14.4 and iPhone 12 iOS 14.6) and was able to see the output in the Console log pressing the 'open console' button in Xcode's 'Devices and Simulators' (shift CMD 2) I selected my device in that tool and pressed 'open console'. I had the 'Now' mode activated and filtered for my output. I could see the output. But i still do not see it when using the simulator. Regards, Matthias > Am 12.07.2021 um 17:13 schrieb Andre Garzia via use-livecode : > > > >> On 12 Jul 2021, at 16:02, Mark Waddingham via use-livecode wrote: >> >> If you run the app on a real iOS device, do you see your log messages in the device log for it? Could it be Apple are now funneling simulator logs into a pane in Xcode - like they do for devices, rather than have them go to the macOS system log? > > Running the app on a real device doesn?t show the log either. > > The organiser window of XCode has a specific ?Open Console? button on the pane for the device you selected. > > It opens the console and it doesn?t contain the data I?m trying to output from LiveCode. You need to tell it to stream the console data from the phone, it delivers a ton of garbage. Filtering by process or by the string I?m sending ? which is a fixed string at this point since I?m just trying to get the console working ? yields no result whatsoever. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Jul 12 19:22:01 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 12 Jul 2021 23:22:01 +0000 Subject: How do I get the ID of a database? In-Reply-To: References: <16408344-FD5F-47D9-A67D-89350F7832E1@all-auctions.com> <49A87B65-9117-487A-84A8-091A7AE98A80@iotecdigital.com> <9ea7fe31-2467-673f-d0d0-bb2bccb513a2@sonic.net> <575EA118-5081-420A-9A11-4B2C1C14BCEC@iotecdigital.com> Message-ID: <690F2690-CC63-4D61-BD47-4473C619D75D@iotecdigital.com> That's what I ended up doing. I am so used to using sqlYoga, so the standard API took a little getting used to. Bob S > On Jul 9, 2021, at 19:30 , Tom Glod via use-livecode wrote: > > Hey Bob.... I don't understand the problem. Why don't you just store the ID > in a persistent place? i think you are over complicating something here. > Why can't YOU give it the name that you need and wnat it to be and then > store the ID with that name somewhere? > > Maybe I'm just misunderstanding the problem. From livfoss at mac.com Tue Jul 13 06:00:05 2021 From: livfoss at mac.com (Graham Samuel) Date: Tue, 13 Jul 2021 11:00:05 +0100 Subject: LC User Guide in 9.6.3 rc1? Message-ID: <83A0CB2A-A5F7-42D7-9554-5D2198722107@mac.com> I normally rely I on the LC Dictionary to get information during development, but today after a long interval I thought I?d have a look at the User Guide. I tried to call it up from the?Help? menu bar in the Mac Indy version of 9.6.3 rc1 and got an apparently correctly formatted single blank page PDF. I tried another PDF reader with the same result. This doesn?t make sense as far as I can see. But then again the Guide isn?t available under ?Resources? on the LC web site. Maybe it?s disappeared altogether. Has anyone else noticed this? Have I missed the demise of the Guide? Graham From livfoss at mac.com Tue Jul 13 06:04:21 2021 From: livfoss at mac.com (Graham Samuel) Date: Tue, 13 Jul 2021 11:04:21 +0100 Subject: LC and the Apple Watch? Message-ID: <1165B113-7E58-45F8-BA8D-5D0D81BB0EF5@mac.com> I notice that iOS apps can interact with the Apple Watch, for example by providing snippets of information on the watch while the main data or display stays on the iOS app. Can LC help in this limited use of the Watch? I am not expecting to develop fully functional watch apps, but rather to access some iOS API for communication with WatchOS. Expecting the answer No, but you never know. Graham From merakosp at gmail.com Tue Jul 13 07:16:39 2021 From: merakosp at gmail.com (panagiotis m) Date: Tue, 13 Jul 2021 14:16:39 +0300 Subject: LC User Guide in 9.6.3 rc1? In-Reply-To: <83A0CB2A-A5F7-42D7-9554-5D2198722107@mac.com> References: <83A0CB2A-A5F7-42D7-9554-5D2198722107@mac.com> Message-ID: Hello Graham, Indeed, the User Guide pdf is empty. This is a regression bug. I have filed this report, in case you want to monitor it: https://quality.livecode.com/show_bug.cgi?id=23261 Thanks for spotting this. Kind regards, Panos -- On Tue, 13 Jul 2021 at 13:01, Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > I normally rely I on the LC Dictionary to get information during > development, but today after a long interval I thought I?d have a look at > the User Guide. I tried to call it up from the?Help? menu bar in the Mac > Indy version of 9.6.3 rc1 and got an apparently correctly formatted single > blank page PDF. I tried another PDF reader with the same result. This > doesn?t make sense as far as I can see. But then again the Guide isn?t > available under ?Resources? on the LC web site. Maybe it?s disappeared > altogether. > > Has anyone else noticed this? Have I missed the demise of the Guide? > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From livfoss at mac.com Tue Jul 13 08:40:15 2021 From: livfoss at mac.com (Graham Samuel) Date: Tue, 13 Jul 2021 13:40:15 +0100 Subject: LC User Guide in 9.6.3 rc1? In-Reply-To: References: <83A0CB2A-A5F7-42D7-9554-5D2198722107@mac.com> Message-ID: <724373CC-3470-424B-AC5D-AA538B89519E@mac.com> No problem Panos - but also, as far as I can see, on the LC web site there isn?t even a placeholder PDF for the Guide, and the links which are supposed to lead you there seem to be missing. If true this wouldn?t be confined to the Mac, would it? Graham > On 13 Jul 2021, at 12:16, panagiotis m via use-livecode wrote: > > Hello Graham, > > Indeed, the User Guide pdf is empty. This is a regression bug. I have filed > this report, in case you want to monitor it: > > https://quality.livecode.com/show_bug.cgi?id=23261 > > Thanks for spotting this. > > Kind regards, > Panos > -- > > On Tue, 13 Jul 2021 at 13:01, Graham Samuel via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I normally rely I on the LC Dictionary to get information during >> development, but today after a long interval I thought I?d have a look at >> the User Guide. I tried to call it up from the?Help? menu bar in the Mac >> Indy version of 9.6.3 rc1 and got an apparently correctly formatted single >> blank page PDF. I tried another PDF reader with the same result. This >> doesn?t make sense as far as I can see. But then again the Guide isn?t >> available under ?Resources? on the LC web site. Maybe it?s disappeared >> altogether. >> >> Has anyone else noticed this? Have I missed the demise of the Guide? >> >> Graham >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From roland.huettmann at gmail.com Tue Jul 13 11:12:23 2021 From: roland.huettmann at gmail.com (R.H.) Date: Tue, 13 Jul 2021 17:12:23 +0200 Subject: Stuck on native database functions Message-ID: @Bob Sneidar Hello Bob The documentation bug was resolved in the latest version: https://quality.livecode.com/show_bug.cgi?id=23074 It was also tricky for me until I found out how to quote variables and arrays that point to data when sending data to my mySQL database as the documentation was not quite up to the point. Hope you solved your problem. Roland From bobsneidar at iotecdigital.com Tue Jul 13 14:30:09 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 13 Jul 2021 18:30:09 +0000 Subject: Stuck on native database functions In-Reply-To: References: Message-ID: Thanks for the confirmation. On the bright side, I am not likely to forget that again. :-) Bob S > On Jul 13, 2021, at 08:12 , R.H. via use-livecode wrote: > > @Bob Sneidar > > Hello Bob > > The documentation bug was resolved in the latest version: > https://quality.livecode.com/show_bug.cgi?id=23074 > > It was also tricky for me until I found out how to quote variables and > arrays that point to data when sending data to my mySQL database as the > documentation was not quite up to the point. > > Hope you solved your problem. > > Roland > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Tue Jul 13 16:59:31 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 13 Jul 2021 22:59:31 +0200 Subject: How to scale the content of the Browser Widget Message-ID: Hi, i need to display jpeg images in the browser widget. The images are stored on a webserver and i have no control about the size of the images. What i can say is that the images are larger than the browser widget area. Is there a way to scale the images so they are fully visible in the browser widget? I do not want to temporarily store them on hard disk, resize them and then display. I need something like an "on the fly" scaling. I am wondering if this might be possible with Javascript? Unfortunately i am not very used Javascript. Does anyone know if this is possible? Regards, Matthias From rdimola at evergreeninfo.net Tue Jul 13 17:22:48 2021 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 13 Jul 2021 17:22:48 -0400 Subject: How to scale the content of the Browser Widget In-Reply-To: References: Message-ID: <007001d7782d$3e011a00$ba034e00$@net> One way... Create a local html template and replace an href place holder in the template to the url of the web server image. Then load the template page into the browser widget and let html do the resizing heavy lifting. This will not break cors. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of matthias rebbe via use-livecode Sent: Tuesday, July 13, 2021 5:00 PM To: How to use LiveCode Cc: matthias_livecode_150811 at m-r-d.de Subject: How to scale the content of the Browser Widget Hi, i need to display jpeg images in the browser widget. The images are stored on a webserver and i have no control about the size of the images. What i can say is that the images are larger than the browser widget area. Is there a way to scale the images so they are fully visible in the browser widget? I do not want to temporarily store them on hard disk, resize them and then display. I need something like an "on the fly" scaling. I am wondering if this might be possible with Javascript? Unfortunately i am not very used Javascript. Does anyone know if this is possible? Regards, Matthias _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From keith.clarke at me.com Wed Jul 14 02:27:37 2021 From: keith.clarke at me.com (Keith Clarke) Date: Wed, 14 Jul 2021 07:27:37 +0100 Subject: How to scale the content of the Browser Widget In-Reply-To: <007001d7782d$3e011a00$ba034e00$@net> References: <007001d7782d$3e011a00$ba034e00$@net> Message-ID: An idea extending Ralph's suggestion to use html, along with styling to do the heavy lifting rather than JavaScript. A div with a background image might do the trick...

Image title

...where: ... 'vh' is viewport height units (as percentage) and '2rem' leaves some space for the image title, (expressed as font size relative to that in the html root element). ...background provides for background images, and size as 'cover' fill the containing div (with some scaling in one dimension that affects aspect ratio) - so use 'contain' if you want the image to be as large as possible with its aspect ratio left intact. See help for this background shorthand styling examples and related information here https://www.w3schools.com/css/css_background_shorthand.asp HTH Keith > On 13 Jul 2021, at 22:24, Ralph DiMola via use-livecode wrote: > > ?One way... > Create a local html template and replace an href place holder in the > template to the url of the web server image. > Then load the template page into the browser widget and let html do the > resizing heavy lifting. This will not break cors. > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of matthias rebbe via use-livecode > Sent: Tuesday, July 13, 2021 5:00 PM > To: How to use LiveCode > Cc: matthias_livecode_150811 at m-r-d.de > Subject: How to scale the content of the Browser Widget > > Hi, > > i need to display jpeg images in the browser widget. The images are stored > on a webserver and i have no control about the size of the images. > What i can say is that the images are larger than the browser widget area. > Is there a way to scale the images so they are fully visible in the browser > widget? > I do not want to temporarily store them on hard disk, resize them and then > display. > I need something like an "on the fly" scaling. > I am wondering if this might be possible with Javascript? Unfortunately i am > not very used Javascript. > > Does anyone know if this is possible? > > Regards, > > Matthias > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From matthias_livecode_150811 at m-r-d.de Wed Jul 14 15:14:05 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 14 Jul 2021 21:14:05 +0200 Subject: How to scale the content of the Browser Widget In-Reply-To: References: <007001d7782d$3e011a00$ba034e00$@net> Message-ID: <901C177F-1ACB-4DCB-9AD4-0AD2911C55EA@m-r-d.de> @Ralph @Keith Thank you very much for your suggestions. I will try. Regards, Matthias > Am 14.07.2021 um 08:27 schrieb Keith Clarke via use-livecode : > > An idea extending Ralph's suggestion to use html, along with styling to do the heavy lifting rather than JavaScript. A div with a background image might do the trick... > >

Image title

>
> > ...where: > ... 'vh' is viewport height units (as percentage) and '2rem' leaves some space for the image title, (expressed as font size relative to that in the html root element). > > ...background provides for background images, and size as 'cover' fill the containing div (with some scaling in one dimension that affects aspect ratio) - so use 'contain' if you want the image to be as large as possible with its aspect ratio left intact. See help for this background shorthand styling examples and related information here https://www.w3schools.com/css/css_background_shorthand.asp > > HTH > Keith > >> On 13 Jul 2021, at 22:24, Ralph DiMola via use-livecode wrote: >> >> ?One way... >> Create a local html template and replace an href place holder in the >> template to the url of the web server image. >> Then load the template page into the browser widget and let html do the >> resizing heavy lifting. This will not break cors. >> >> Ralph DiMola >> IT Director >> Evergreen Information Services >> rdimola at evergreeninfo.net >> >> -----Original Message----- >> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf >> Of matthias rebbe via use-livecode >> Sent: Tuesday, July 13, 2021 5:00 PM >> To: How to use LiveCode >> Cc: matthias_livecode_150811 at m-r-d.de >> Subject: How to scale the content of the Browser Widget >> >> Hi, >> >> i need to display jpeg images in the browser widget. The images are stored >> on a webserver and i have no control about the size of the images. >> What i can say is that the images are larger than the browser widget area. >> Is there a way to scale the images so they are fully visible in the browser >> widget? >> I do not want to temporarily store them on hard disk, resize them and then >> display. >> I need something like an "on the fly" scaling. >> I am wondering if this might be possible with Javascript? Unfortunately i am >> not very used Javascript. >> >> Does anyone know if this is possible? >> >> Regards, >> >> Matthias >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Wed Jul 14 21:44:49 2021 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 15 Jul 2021 01:44:49 +0000 Subject: 9.6.3 (rc1) Cannot Simulator a Stack Message-ID: Development Test Target Brahmanathaswami (2) iPhone It?s blank (!) Simulator iPhone? 9.6.3 (rc1) ? BR From brahma at hindu.org Wed Jul 14 22:46:13 2021 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Thu, 15 Jul 2021 02:46:13 +0000 Subject: 9.6.3 (rc1) Cannot Simulator a Stack In-Reply-To: References: Message-ID: Scratch that. Installing Xcode 12.5, they did appear> On 7/14/21, 3:46 PM, "use-livecode" wrote: Development Test Target Brahmanathaswami (2) iPhone It?s blank (!) Simulator iPhone? 9.6.3 (rc1) ? BR From tom at makeshyft.com Thu Jul 15 17:31:28 2021 From: tom at makeshyft.com (Tom Glod) Date: Thu, 15 Jul 2021 17:31:28 -0400 Subject: LC and the Apple Watch? In-Reply-To: <1165B113-7E58-45F8-BA8D-5D0D81BB0EF5@mac.com> References: <1165B113-7E58-45F8-BA8D-5D0D81BB0EF5@mac.com> Message-ID: I don't know but maybe message support if you want to ensure a response. On Tue, Jul 13, 2021 at 6:05 AM Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > I notice that iOS apps can interact with the Apple Watch, for example by > providing snippets of information on the watch while the main data or > display stays on the iOS app. Can LC help in this limited use of the Watch? > I am not expecting to develop fully functional watch apps, but rather to > access some iOS API for communication with WatchOS. > > Expecting the answer No, but you never know. > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 From livfoss at mac.com Thu Jul 15 17:43:29 2021 From: livfoss at mac.com (Graham Samuel) Date: Thu, 15 Jul 2021 22:43:29 +0100 Subject: LC and the Apple Watch? In-Reply-To: <1165B113-7E58-45F8-BA8D-5D0D81BB0EF5@mac.com> References: <1165B113-7E58-45F8-BA8D-5D0D81BB0EF5@mac.com> Message-ID: <29EEE904-8DAD-4478-911A-CECC9C9395D7@mac.com> I?m refining my previous question: I see from a very sketchy read of Apple?s documentation that a notification sent to an iPhone will be automatically diverted to the phone?s user?s watch if the phone is locked. i still have no real understanding of this mechanism. Has anyone in the LC community looked into this? Just wondering Graham > On 13 Jul 2021, at 11:04, Graham Samuel via use-livecode wrote: > > I notice that iOS apps can interact with the Apple Watch, for example by providing snippets of information on the watch while the main data or display stays on the iOS app. Can LC help in this limited use of the Watch? I am not expecting to develop fully functional watch apps, but rather to access some iOS API for communication with WatchOS. > > Expecting the answer No, but you never know. > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jmac at consensustech.com Thu Jul 15 18:24:36 2021 From: jmac at consensustech.com (Jim At Consensus) Date: Thu, 15 Jul 2021 15:24:36 -0700 Subject: LC and the Apple Watch? In-Reply-To: <29EEE904-8DAD-4478-911A-CECC9C9395D7@mac.com> References: <29EEE904-8DAD-4478-911A-CECC9C9395D7@mac.com> Message-ID: We use simple notifications with our mindfulness app (ThanxBot). Would be easy enough to tweak that to convey real info but I think you?re limited to just the notification text unless you want to use something external. Jim Sent from Jim's iPhone XR Please excuse brevity, typos and errors > On Jul 15, 2021, at 2:45 PM, Graham Samuel via use-livecode wrote: > > ?I?m refining my previous question: I see from a very sketchy read of Apple?s documentation that a notification sent to an iPhone will be automatically diverted to the phone?s user?s watch if the phone is locked. i still have no real understanding of this mechanism. Has anyone in the LC community looked into this? > > Just wondering > > Graham > >> On 13 Jul 2021, at 11:04, Graham Samuel via use-livecode wrote: >> >> I notice that iOS apps can interact with the Apple Watch, for example by providing snippets of information on the watch while the main data or display stays on the iOS app. Can LC help in this limited use of the Watch? I am not expecting to develop fully functional watch apps, but rather to access some iOS API for communication with WatchOS. >> >> Expecting the answer No, but you never know. >> >> Graham >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Fri Jul 16 10:08:39 2021 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 16 Jul 2021 15:08:39 +0100 Subject: Sending email with TLS (via Outlook) from LC 6.7 based app... Message-ID: A very venerable app (original version perhaps 15 years ago) is still running on a client's Windows box, every night, processing data and emailing a report. The email is sent using Shao Sean's libSMTP library, which has performed faithfully for all these years. Unfortunately, the client's replacing their local smtp server with outlook365.com - which requires TLS authentication - which I don't believe libSMTP supports. The current version of the app is built in LiveCode 6.7.11. There is a huge amount of text to be processed, and - as you might imagine after this long development, with regular changes and additions - the processing is very complex. A few years ago I did look at rebuilding it in LC 8/9, but because of the changes to unicode handling there was a lot of perturbation in the data, and there wasn't time/budget to track all this down in order to get a reasonable new version. I still occasionally need to make tweaks to the processing, but I do that in my trusty LC 6.7.11. So now I've hit a problem. There still isn't budget for a major exercise to rebuild it in a modern version of LiveCode, so I can't just switch to using tsNet. Is it theoretically possibly to tweak libSMTP to work with TLS, or is there some basic limitation with LC 6.7 that would make that impossible? Are there any other libraries that work with TLS? Or (I'm not a Windows person) is there some simple way I could set up a local SMTP server on the Windows box that would accept the email from my LiveCode app and forward it to outlook365? Any suggestions or experience gratefully received. Ben From matthias_livecode_150811 at m-r-d.de Fri Jul 16 10:32:29 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Fri, 16 Jul 2021 16:32:29 +0200 Subject: Sending email with TLS (via Outlook) from LC 6.7 based app... In-Reply-To: References: Message-ID: You could send out the emails with the command line tool curl using LC's shell function. https://everything.curl.dev/usingcurl/smtp So instead of calling the libSMTP library you create the email according to RFC to have correct smtp headers and sent it using curl through the shell() function. That's the way how i did it at the time when tsNET was not yet released and i needed to send emails using TLS. As 6.7.1 does not contain any of the mime library, you need to create the the raw email manually. This lesson here https://lessons.livecode.com/m/4070/l/8184-sending-emails-from-livecode-server-scripts explains how to send emails from Livecode Server scripts. The Please have a look at the sections about 'Formatting Email Headers' and 'Adding Attachments'. That information should give you a clue how to create the data correctly. Regards, Matthias > Am 16.07.2021 um 16:08 schrieb Ben Rubinstein via use-livecode : > > > A very venerable app (original version perhaps 15 years ago) is still running on a client's Windows box, every night, processing data and emailing a report. > > The email is sent using Shao Sean's libSMTP library, which has performed faithfully for all these years. Unfortunately, the client's replacing their local smtp server with outlook365.com - which requires TLS authentication - which I don't believe libSMTP supports. > > The current version of the app is built in LiveCode 6.7.11. There is a huge amount of text to be processed, and - as you might imagine after this long development, with regular changes and additions - the processing is very complex. A few years ago I did look at rebuilding it in LC 8/9, but because of the changes to unicode handling there was a lot of perturbation in the data, and there wasn't time/budget to track all this down in order to get a reasonable new version. I still occasionally need to make tweaks to the processing, but I do that in my trusty LC 6.7.11. > > So now I've hit a problem. There still isn't budget for a major exercise to rebuild it in a modern version of LiveCode, so I can't just switch to using tsNet. > > Is it theoretically possibly to tweak libSMTP to work with TLS, or is there some basic limitation with LC 6.7 that would make that impossible? Are there any other libraries that work with TLS? Or (I'm not a Windows person) is there some simple way I could set up a local SMTP server on the Windows box that would accept the email from my LiveCode app and forward it to outlook365? > > Any suggestions or experience gratefully received. > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dougr at telus.net Fri Jul 16 10:41:39 2021 From: dougr at telus.net (Douglas A. Ruisaard) Date: Fri, 16 Jul 2021 07:41:39 -0700 Subject: Sending email with TLS (via Outlook) from LC 6.7 based app... In-Reply-To: References: Message-ID: <05ec01d77a50$b08927f0$119b77d0$@telus.net> I had a very similar problem recently (although I was *not* using LC for the email processing). I found a small but great *free* shareware app called "SwithMail" by "tbare" which solved the same issue of needing TLS support. It's reasonably small (550 Kb) yet has a rich feature set. I'd suggest you at least look into it as a possible solution. Douglas Ruisaard Trilogy Software (250) 573-3935 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Ben Rubinstein via use-livecode Sent: Friday, July 16, 2021 7:09 AM To: Use LiveCode Cc: Ben Rubinstein Subject: Sending email with TLS (via Outlook) from LC 6.7 based app... A very venerable app (original version perhaps 15 years ago) is still running on a client's Windows box, every night, processing data and emailing a report. The email is sent using Shao Sean's libSMTP library, which has performed faithfully for all these years. Unfortunately, the client's replacing their local smtp server with outlook365.com - which requires TLS authentication - which I don't believe libSMTP supports. The current version of the app is built in LiveCode 6.7.11. There is a huge amount of text to be processed, and - as you might imagine after this long development, with regular changes and additions - the processing is very complex. A few years ago I did look at rebuilding it in LC 8/9, but because of the changes to unicode handling there was a lot of perturbation in the data, and there wasn't time/budget to track all this down in order to get a reasonable new version. I still occasionally need to make tweaks to the processing, but I do that in my trusty LC 6.7.11. So now I've hit a problem. There still isn't budget for a major exercise to rebuild it in a modern version of LiveCode, so I can't just switch to using tsNet. Is it theoretically possibly to tweak libSMTP to work with TLS, or is there some basic limitation with LC 6.7 that would make that impossible? Are there any other libraries that work with TLS? Or (I'm not a Windows person) is there some simple way I could set up a local SMTP server on the Windows box that would accept the email from my LiveCode app and forward it to outlook365? Any suggestions or experience gratefully received. Ben _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From paul at researchware.com Fri Jul 16 11:06:48 2021 From: paul at researchware.com (Paul Dupuis) Date: Fri, 16 Jul 2021 11:06:48 -0400 Subject: Drag and drop within a list field Message-ID: <19921a19-f512-4d92-811b-d8185323d4a7@researchware.com> I have a scrolling list field that has contents like: name1 name2 nameA name3 name4 name5 nameB name6 name7 nameC name8 etc. the field has a custom property with the contents and a "type" for each name, so the data in the custom property look like: codename1 codename2 foldernameA codename3 codename4 codename5 foldernameB codename6 codename7 foldernameC codename8 etc. The type for each line can be either 'code' or 'folder'. I am trying to craft code for the field script that supports dragging a line that is a 'code' or 'folder' onto a line that is a 'folder'. You can not drag a 'code' or 'folder' onto a 'code' line. I have a dragStart, dragMove and dragEnd handlers, but something is off with my code with regard to autoscrolling the field. (the actual list of names is much longer than my example above). When dragging near the bottom of the field, I try to detect if I am within a textHeight of the bottom of the field (or top if scrolling up) and and scroll the field, but it is very jerky. The user must keep moving the mouse around slightly so that continual dragMove messages are sent and I have other problems with highlighting the destination line when you are over a 'folder' that you can drop on. Does anyone have some "best practice" code for this capability that they would be willing to share? I admit coding drag and drop operations in LC is one of the areas I am least familiar with. From benr_mc at cogapp.com Fri Jul 16 11:15:58 2021 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 16 Jul 2021 16:15:58 +0100 Subject: Sending email with TLS (via Outlook) from LC 6.7 based app... In-Reply-To: References: Message-ID: <3196bd12-0fb4-a008-b6fd-766ab06af437@cogapp.com> Aha! I didn't know that curl did SMTP. Thanks Matthias (and thanks Douglas, SwithMail looks like a good alternative). Ben On 16/07/2021 15:32, matthias rebbe via use-livecode wrote: > You could send out the emails with the command line tool curl using LC's shell function. > > https://everything.curl.dev/usingcurl/smtp > > So instead of calling the libSMTP library you create the email according to RFC to have correct smtp headers and sent it using curl through the shell() function. > That's the way how i did it at the time when tsNET was not yet released and i needed to send emails using TLS. > > As 6.7.1 does not contain any of the mime library, you need to create the the raw email manually. > > This lesson here > https://lessons.livecode.com/m/4070/l/8184-sending-emails-from-livecode-server-scripts > > explains how to send emails from Livecode Server scripts. The > Please have a look at the sections about 'Formatting Email Headers' and 'Adding Attachments'. That information should give you a clue how to create the data correctly. > > Regards, > > Matthias > > > > >> Am 16.07.2021 um 16:08 schrieb Ben Rubinstein via use-livecode : >> >> >> A very venerable app (original version perhaps 15 years ago) is still running on a client's Windows box, every night, processing data and emailing a report. >> >> The email is sent using Shao Sean's libSMTP library, which has performed faithfully for all these years. Unfortunately, the client's replacing their local smtp server with outlook365.com - which requires TLS authentication - which I don't believe libSMTP supports. >> >> The current version of the app is built in LiveCode 6.7.11. There is a huge amount of text to be processed, and - as you might imagine after this long development, with regular changes and additions - the processing is very complex. A few years ago I did look at rebuilding it in LC 8/9, but because of the changes to unicode handling there was a lot of perturbation in the data, and there wasn't time/budget to track all this down in order to get a reasonable new version. I still occasionally need to make tweaks to the processing, but I do that in my trusty LC 6.7.11. >> >> So now I've hit a problem. There still isn't budget for a major exercise to rebuild it in a modern version of LiveCode, so I can't just switch to using tsNet. >> >> Is it theoretically possibly to tweak libSMTP to work with TLS, or is there some basic limitation with LC 6.7 that would make that impossible? Are there any other libraries that work with TLS? Or (I'm not a Windows person) is there some simple way I could set up a local SMTP server on the Windows box that would accept the email from my LiveCode app and forward it to outlook365? >> >> Any suggestions or experience gratefully received. >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From devin_asay at byu.edu Fri Jul 16 11:48:16 2021 From: devin_asay at byu.edu (Devin Asay) Date: Fri, 16 Jul 2021 15:48:16 +0000 Subject: Drag and drop within a list field In-Reply-To: <19921a19-f512-4d92-811b-d8185323d4a7@researchware.com> References: <19921a19-f512-4d92-811b-d8185323d4a7@researchware.com> Message-ID: <7D591882-AEE3-4A5D-8F06-ABFB1571C10A@byu.edu> Hi Paul, Some years back Scott Rossi created a nifty little demo called GetInLine that shows how to do the interface part of drag-reordering. It?s in his archive at http://tactilemedia.com/blog/2018/05/12/blasts-from-the-past/. It might give you a good foundation, even if you don?t use the exact interface he created. I don?t think the data part of it should be too hard; just make sure you keep the visible list and the custom property synched the same. Or you could possibly use hidden text or metadata tags in you visible list to embed the type for each line. Hope this helps. - Devin > On Jul 16, 2021, at 9:06 AM, Paul Dupuis via use-livecode wrote: > > I have a scrolling list field that has contents like: > > name1 > name2 > nameA > name3 > name4 > name5 > nameB > name6 > name7 > nameC > name8 > etc. > > the field has a custom property with the contents and a "type" for each name, so the data in the custom property look like: > > codename1 > codename2 > foldernameA > codename3 > codename4 > codename5 > foldernameB > codename6 > codename7 > foldernameC > codename8 > etc. > > The type for each line can be either 'code' or 'folder'. I am trying to craft code for the field script that supports dragging a line that is a 'code' or 'folder' onto a line that is a 'folder'. You can not drag a 'code' or 'folder' onto a 'code' line. > > I have a dragStart, dragMove and dragEnd handlers, but something is off with my code with regard to autoscrolling the field. (the actual list of names is much longer than my example above). When dragging near the bottom of the field, I try to detect if I am within a textHeight of the bottom of the field (or top if scrolling up) and and scroll the field, but it is very jerky. The user must keep moving the mouse around slightly so that continual dragMove messages are sent and I have other problems with highlighting the destination line when you are over a 'folder' that you can drop on. > > Does anyone have some "best practice" code for this capability that they would be willing to share? I admit coding drag and drop operations in LC is one of the areas I am least familiar with. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Director Office of Digital Humanities Brigham Young University From bobsneidar at iotecdigital.com Fri Jul 16 11:55:41 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 16 Jul 2021 15:55:41 +0000 Subject: Sending email with TLS (via Outlook) from LC 6.7 based app... In-Reply-To: References: Message-ID: So, yes you can set any windows device to operate as an SMTP relay. Server versions have this capability built in. You enable it in the features section of Server manager. You can then configure the local side to be an open relay not requiring auth or encryption, and configure the public side to do all the auth and encryption. Alternatively, and depending on the Office365 receive connectors configuration, you *should* be able to use the endpoint connector. Assuming my mail domain is slylabs.com, my endpoint connector would be slylabs-com.mail.protection.outlook.com. That system is in place precicely because Microsoft recognizes there are devices and applications that cannot use encryption, or have not or cannot be updated to the TLS 1.2 standard. Bob S > On Jul 16, 2021, at 07:08 , Ben Rubinstein via use-livecode wrote: > > > A very venerable app (original version perhaps 15 years ago) is still running on a client's Windows box, every night, processing data and emailing a report. > > The email is sent using Shao Sean's libSMTP library, which has performed faithfully for all these years. Unfortunately, the client's replacing their local smtp server with outlook365.com - which requires TLS authentication - which I don't believe libSMTP supports. > > The current version of the app is built in LiveCode 6.7.11. There is a huge amount of text to be processed, and - as you might imagine after this long development, with regular changes and additions - the processing is very complex. A few years ago I did look at rebuilding it in LC 8/9, but because of the changes to unicode handling there was a lot of perturbation in the data, and there wasn't time/budget to track all this down in order to get a reasonable new version. I still occasionally need to make tweaks to the processing, but I do that in my trusty LC 6.7.11. > > So now I've hit a problem. There still isn't budget for a major exercise to rebuild it in a modern version of LiveCode, so I can't just switch to using tsNet. > > Is it theoretically possibly to tweak libSMTP to work with TLS, or is there some basic limitation with LC 6.7 that would make that impossible? Are there any other libraries that work with TLS? Or (I'm not a Windows person) is there some simple way I could set up a local SMTP server on the Windows box that would accept the email from my LiveCode app and forward it to outlook365? > > Any suggestions or experience gratefully received. > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Fri Jul 16 13:46:09 2021 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Fri, 16 Jul 2021 18:46:09 +0100 Subject: Sending email with TLS (via Outlook) from LC 6.7 based app... In-Reply-To: References: Message-ID: <49c09f55-0a24-0b8d-d96a-7b5d207f72a5@cogapp.com> Hi Bob, This is very interesting, thank you. Thanks all - I now have four routes to investigate! Ben On 16/07/2021 16:55, Bob Sneidar via use-livecode wrote: > So, yes you can set any windows device to operate as an SMTP relay. Server versions have this capability built in. You enable it in the features section of Server manager. You can then configure the local side to be an open relay not requiring auth or encryption, and configure the public side to do all the auth and encryption. > > Alternatively, and depending on the Office365 receive connectors configuration, you *should* be able to use the endpoint connector. Assuming my mail domain is slylabs.com, my endpoint connector would be slylabs-com.mail.protection.outlook.com. > > That system is in place precicely because Microsoft recognizes there are devices and applications that cannot use encryption, or have not or cannot be updated to the TLS 1.2 standard. > > Bob S > > >> On Jul 16, 2021, at 07:08 , Ben Rubinstein via use-livecode wrote: >> >> >> A very venerable app (original version perhaps 15 years ago) is still running on a client's Windows box, every night, processing data and emailing a report. >> >> The email is sent using Shao Sean's libSMTP library, which has performed faithfully for all these years. Unfortunately, the client's replacing their local smtp server with outlook365.com - which requires TLS authentication - which I don't believe libSMTP supports. >> >> The current version of the app is built in LiveCode 6.7.11. There is a huge amount of text to be processed, and - as you might imagine after this long development, with regular changes and additions - the processing is very complex. A few years ago I did look at rebuilding it in LC 8/9, but because of the changes to unicode handling there was a lot of perturbation in the data, and there wasn't time/budget to track all this down in order to get a reasonable new version. I still occasionally need to make tweaks to the processing, but I do that in my trusty LC 6.7.11. >> >> So now I've hit a problem. There still isn't budget for a major exercise to rebuild it in a modern version of LiveCode, so I can't just switch to using tsNet. >> >> Is it theoretically possibly to tweak libSMTP to work with TLS, or is there some basic limitation with LC 6.7 that would make that impossible? Are there any other libraries that work with TLS? Or (I'm not a Windows person) is there some simple way I could set up a local SMTP server on the Windows box that would accept the email from my LiveCode app and forward it to outlook365? >> >> Any suggestions or experience gratefully received. >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From curry at pair.com Fri Jul 16 15:01:55 2021 From: curry at pair.com (Curry Kenworthy) Date: Fri, 16 Jul 2021 15:01:55 -0400 Subject: Drag and drop within a list field In-Reply-To: <19921a19-f512-4d92-811b-d8185323d4a7@researchware.com> References: <19921a19-f512-4d92-811b-d8185323d4a7@researchware.com> Message-ID: Paul: > the data in the custom property look like: > codename1 That's backwards, try this: name1code And with a tab stop, you may not need a custom property! Fields can hold more content than what meets the eye. > foldernameA Do you really need "folder" and "code" spelled out? Redundant content will limit performance/list size. I would aim for either: nameAf name1c or: nameA1 name12 ... where 1 and 2 etc are unique IDs and match a data array. Way better than trying to mirror the content in a prop. > The user must keep moving the mouse around slightly > so that continual dragMove messages are sent Messages are messages, ditto for commands, "never the twain." Keep them separate, user a timer or an alternate message. Messages are handy - not holy. > coding drag and drop operations in LC > is one of the areas I am least familiar with. One of the most fun areas, really. Way back during college, I remember using (probably HC?) to whip up a class schedule drag-and-drop UI because I had transferred between U's and had to fit just the right things in one semester. The other students were doing this with pencil and paper. It was a smooth stack, light-years ahead of its time. My counselor was surprised at the classes I fit in. And since then, LC drag and drop just gets more fun! (Although, as I hinted one conference, we're moving beyond that stage pretty soon in the history of app dev.) Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From MikeKerner at roadrunner.com Mon Jul 19 10:27:58 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 19 Jul 2021 10:27:58 -0400 Subject: could not find a valid identity to use for the selected profile - again Message-ID: I am at a loss, this morning, to debug this, because it's not like i have not dealt with this issue repeatedly in the last ten years lc 9.6.0 xc 11.4 I removed my certs from the keychain and my profiles from the profiles folder i used xc to download the profiles checked the standalone application settings to make sure the correct profile is selected i also checked push settings to make sure that the certificate is current and that the settings are the same From merakosp at gmail.com Mon Jul 19 11:07:05 2021 From: merakosp at gmail.com (panagiotis m) Date: Mon, 19 Jul 2021 18:07:05 +0300 Subject: could not find a valid identity to use for the selected profile - again In-Reply-To: References: Message-ID: Hello Mike, In the KeyChain Access app, if you click in your certificate and you expand it, do you see a private key? If a private key is missing, then this is the culprit. Kind regards Panos -- On Mon, 19 Jul 2021 at 17:29, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > I am at a loss, this morning, to debug this, because it's not like i have > not dealt with this issue repeatedly in the last ten years > lc 9.6.0 > xc 11.4 > I removed my certs from the keychain and my profiles from the profiles > folder > i used xc to download the profiles > checked the standalone application settings to make sure the correct > profile is selected > i also checked push settings to make sure that the certificate is current > and that the settings are the same > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Mon Jul 19 11:24:15 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 19 Jul 2021 11:24:15 -0400 Subject: could not find a valid identity to use for the selected profile - again In-Reply-To: References: Message-ID: Let's make sure we're talking about the same thing, because this is going to come up, again, and someone is going to read this thread trying to figure it out. The provisioning profile for this app is platform ios, type development In keychain access, I pulled up "iphone developer", a cert I created today (and expires in a year) while trying to debug this issue. To create that, I used the developer portal - so I just uploaded a CSR and downloaded the cert. In that cert, there is no "private key" section that I can see. There is a "public key" section, and a variety of extensions, along with "fingerprints" at the bottom On Mon, Jul 19, 2021 at 11:08 AM panagiotis m via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello Mike, > > In the KeyChain Access app, if you click in your certificate and you expand > it, do you see a private key? If a private key is missing, then this is > the culprit. > > Kind regards > Panos > -- > > On Mon, 19 Jul 2021 at 17:29, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > I am at a loss, this morning, to debug this, because it's not like i have > > not dealt with this issue repeatedly in the last ten years > > lc 9.6.0 > > xc 11.4 > > I removed my certs from the keychain and my profiles from the profiles > > folder > > i used xc to download the profiles > > checked the standalone application settings to make sure the correct > > profile is selected > > i also checked push settings to make sure that the certificate is current > > and that the settings are the same > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From merakosp at gmail.com Mon Jul 19 11:59:01 2021 From: merakosp at gmail.com (panagiotis m) Date: Mon, 19 Jul 2021 18:59:01 +0300 Subject: could not find a valid identity to use for the selected profile - again In-Reply-To: References: Message-ID: Hello Mike, If you click on the certificate entry in the Keychain Access to expand it, you should see a private key entry, like in this screenshot (highlighted in green): https://www.dropbox.com/s/p71p5e5fbbnqu19/Screenshot%202021-07-19%20at%2018.48.31.png?dl=0 Do you see a private key? If yes, it might be worth downloading the latest Apple Worldwide Developer Relations Intermediate Certificate from here: https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer More details about this: https://developer.apple.com/support/expiration/ Cheers, Panos -- On Mon, 19 Jul 2021 at 18:26, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Let's make sure we're talking about the same thing, because this is going > to come up, again, and someone is going to read this thread trying to > figure it out. > The provisioning profile for this app is platform ios, type development > In keychain access, I pulled up "iphone developer", a cert I created today > (and expires in a year) while trying to debug this issue. To create that, I > used the developer portal - so I just uploaded a CSR and downloaded the > cert. > In that cert, there is no "private key" section that I can see. There is a > "public key" section, and a variety of extensions, along > with "fingerprints" at the bottom > > On Mon, Jul 19, 2021 at 11:08 AM panagiotis m via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hello Mike, > > > > In the KeyChain Access app, if you click in your certificate and you > expand > > it, do you see a private key? If a private key is missing, then this is > > the culprit. > > > > Kind regards > > Panos > > -- > > > > On Mon, 19 Jul 2021 at 17:29, Mike Kerner via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > I am at a loss, this morning, to debug this, because it's not like i > have > > > not dealt with this issue repeatedly in the last ten years > > > lc 9.6.0 > > > xc 11.4 > > > I removed my certs from the keychain and my profiles from the profiles > > > folder > > > i used xc to download the profiles > > > checked the standalone application settings to make sure the correct > > > profile is selected > > > i also checked push settings to make sure that the certificate is > current > > > and that the settings are the same > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at 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 at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From panos.merakos at livecode.com Mon Jul 19 12:16:27 2021 From: panos.merakos at livecode.com (panagiotis merakos) Date: Mon, 19 Jul 2021 19:16:27 +0300 Subject: [ANN] This Week in LiveCode 272 Message-ID: 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 #272 here: https://bit.ly/3kAIVxA 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 From MikeKerner at roadrunner.com Mon Jul 19 12:40:05 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 19 Jul 2021 12:40:05 -0400 Subject: could not find a valid identity to use for the selected profile - again In-Reply-To: References: Message-ID: I missed the step for clicking on "My Certificates" in the bottom left (Category) pane. Yes, I see a private key, there. Downloading the new AWDRIC fixed it - which is interesting, because double-clicking on that cert did not prompt me to install it in keychain access. On Mon, Jul 19, 2021 at 12:00 PM panagiotis m via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello Mike, > > If you click on the certificate entry in the Keychain Access to expand it, > you should see a private key entry, like in this screenshot (highlighted in > green): > > > https://www.dropbox.com/s/p71p5e5fbbnqu19/Screenshot%202021-07-19%20at%2018.48.31.png?dl=0 > > Do you see a private key? > > If yes, it might be worth downloading the latest Apple Worldwide Developer > Relations Intermediate Certificate from here: > https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer > > More details about this: https://developer.apple.com/support/expiration/ > > Cheers, > Panos > -- > > On Mon, 19 Jul 2021 at 18:26, Mike Kerner via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Let's make sure we're talking about the same thing, because this is going > > to come up, again, and someone is going to read this thread trying to > > figure it out. > > The provisioning profile for this app is platform ios, type development > > In keychain access, I pulled up "iphone developer", a cert I created > today > > (and expires in a year) while trying to debug this issue. To create > that, I > > used the developer portal - so I just uploaded a CSR and downloaded the > > cert. > > In that cert, there is no "private key" section that I can see. There is > a > > "public key" section, and a variety of extensions, along > > with "fingerprints" at the bottom > > > > On Mon, Jul 19, 2021 at 11:08 AM panagiotis m via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > Hello Mike, > > > > > > In the KeyChain Access app, if you click in your certificate and you > > expand > > > it, do you see a private key? If a private key is missing, then this > is > > > the culprit. > > > > > > Kind regards > > > Panos > > > -- > > > > > > On Mon, 19 Jul 2021 at 17:29, Mike Kerner via use-livecode < > > > use-livecode at lists.runrev.com> wrote: > > > > > > > I am at a loss, this morning, to debug this, because it's not like i > > have > > > > not dealt with this issue repeatedly in the last ten years > > > > lc 9.6.0 > > > > xc 11.4 > > > > I removed my certs from the keychain and my profiles from the > profiles > > > > folder > > > > i used xc to download the profiles > > > > checked the standalone application settings to make sure the correct > > > > profile is selected > > > > i also checked push settings to make sure that the certificate is > > current > > > > and that the settings are the same > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at 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 at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > -- > > On the first day, God created the heavens and the Earth > > On the second day, God created the oceans. > > On the third day, God put the animals on hold for a few hours, > > and did a little diving. > > And God said, "This is good." > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From paul at researchware.com Mon Jul 19 13:44:25 2021 From: paul at researchware.com (Paul Dupuis) Date: Mon, 19 Jul 2021 13:44:25 -0400 Subject: Double checking maximum vertical scroll Message-ID: <42be648c-8e83-1bcd-b804-ec5547c6b72b@researchware.com> In a list field, if you are scrolling a field by script control, the max vertical scroll to display the last line would be: put (the height of me - the topMargin of me - the bottomMargin of me) into tAdjustedHeight -- tope and bottom margins if the showBorder of me is true then put tAdjustedHeight - (the borderWidth of me * 2) into tAdjustedHeight -- top and bottom borders the formattedHeight of me - tAdjustedHeight into tMaxVerticalScroll -- essentially you have to take the formattedHeight minus the field height and subtract out the margins and borders (if there are borders shown) Is this correct? Am I missing anything? From paul at researchware.com Mon Jul 19 16:21:56 2021 From: paul at researchware.com (Paul Dupuis) Date: Mon, 19 Jul 2021 16:21:56 -0400 Subject: Drag and drop within a list field In-Reply-To: <7D591882-AEE3-4A5D-8F06-ABFB1571C10A@byu.edu> References: <19921a19-f512-4d92-811b-d8185323d4a7@researchware.com> <7D591882-AEE3-4A5D-8F06-ABFB1571C10A@byu.edu> Message-ID: <309d281f-5ca1-fea8-f030-d5b490d9c6a4@researchware.com> Devin, Thank you for the link below. I find it interesting that Scott did not use any of the "drag" messages for dragging a line within a field. He did use the rarely used "before mouseDown", "before mouseMove" and so one to capture various mouse messages related to drag actions and coded the drag and drop behavior there. One thing I have noted is that in LC 9.6.2 STABLE "dragMove" is only sent while the mouse is moving. "mouseMove" is similar. Scott used in his sample stack a "send in time" action to keep autoscrolling smooth if the drag action required the field to autoscroll. I would have hoped there was a better way to autoscroll a field during a drag operation within the field in LC, but apparently not. I guess I will need to adapt the "send xxx in 80ms" trick for smooth autoscrolling during a drag to my code. Thank you for the pointer to Scott's sample stack! On 7/16/2021 11:48 AM, Devin Asay via use-livecode wrote: > Hi Paul, > > Some years back Scott Rossi created a nifty little demo called GetInLine that shows how to do the interface part of drag-reordering. It?s in his archive at http://tactilemedia.com/blog/2018/05/12/blasts-from-the-past/. It might give you a good foundation, even if you don?t use the exact interface he created. > > I don?t think the data part of it should be too hard; just make sure you keep the visible list and the custom property synched the same. Or you could possibly use hidden text or metadata tags in you visible list to embed the type for each line. > > Hope this helps. > > - Devin > From curry at pair.com Mon Jul 19 18:35:37 2021 From: curry at pair.com (Curry Kenworthy) Date: Mon, 19 Jul 2021 18:35:37 -0400 Subject: Double checking maximum vertical scroll In-Reply-To: <42be648c-8e83-1bcd-b804-ec5547c6b72b@researchware.com> References: <42be648c-8e83-1bcd-b804-ec5547c6b72b@researchware.com> Message-ID: Paul: > In a list field, if you are scrolling a field by script control, > the max vertical scroll to display the last line > essentially you have to take the formattedHeight > minus the field height and subtract out the margins and borders Subtracting the topmargin is not needed (and gives the wrong value) because you want the last line. The formattedHeight covers that. So just subtract the bottomMargin and height if desired. (The topmargin would be more useful to display the FIRST line.) Additionally, LC fields don't scroll past their contents (unless the field in question has a large bottomMargin) so setting a scroll of 2^30 also works well in practice. For most cases, we don't have to calculate the max; LC does. Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From tom at makeshyft.com Mon Jul 19 21:36:13 2021 From: tom at makeshyft.com (Tom Glod) Date: Mon, 19 Jul 2021 21:36:13 -0400 Subject: Stacks Tab in Standalone Application Settings all grayed out. Message-ID: Hi Folks, I haven't been to the "Stacks" tab in Standalone Application Settings in a while ...... But I wanted to test the stack encryption today and noticed that entire tab is greyed out and disabled. It doesn't seem good. I hope my stack is ok. Everything seems to be working as expected. Does anyone have any idea? Thanks Tom From matthias_livecode_150811 at m-r-d.de Tue Jul 20 05:47:29 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Tue, 20 Jul 2021 11:47:29 +0200 Subject: Stacks Tab in Standalone Application Settings all grayed out. In-Reply-To: References: Message-ID: Hi Tom, are you, by any chance, using a Community edition of LC? This would explain, why the section is greyed out. The Community editions of LC do not support encryption. Regards, Matthias > Am 20.07.2021 um 03:36 schrieb Tom Glod via use-livecode : > > Hi Folks, > > I haven't been to the "Stacks" tab in Standalone Application Settings in a > while ...... > But I wanted to test the stack encryption today and noticed that entire tab > is greyed out and disabled. > > It doesn't seem good. > > I hope my stack is ok. Everything seems to be working as expected. > > Does anyone have any idea? > > Thanks > > Tom > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Tue Jul 20 09:57:42 2021 From: tom at makeshyft.com (Tom Glod) Date: Tue, 20 Jul 2021 09:57:42 -0400 Subject: Stacks Tab in Standalone Application Settings all grayed out. In-Reply-To: References: Message-ID: Hello Matthias, Nope, Indy 9.6.1 ... I saw someone else post this problem in the forum 3 years ago, and no answer :( I don't want to say the C word here ...so I won't. Still hoping there is a solution without a transplant procedure to a new stack/ Thank, Tom On Tue, Jul 20, 2021 at 5:48 AM matthias rebbe via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Tom, > > are you, by any chance, using a Community edition of LC? This would > explain, why the section is greyed out. The Community editions of LC do not > support encryption. > > Regards, > > Matthias > > > > Am 20.07.2021 um 03:36 schrieb Tom Glod via use-livecode < > use-livecode at lists.runrev.com>: > > > > Hi Folks, > > > > I haven't been to the "Stacks" tab in Standalone Application Settings in > a > > while ...... > > But I wanted to test the stack encryption today and noticed that entire > tab > > is greyed out and disabled. > > > > It doesn't seem good. > > > > I hope my stack is ok. Everything seems to be working as expected. > > > > Does anyone have any idea? > > > > Thanks > > > > Tom > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 From merakosp at gmail.com Tue Jul 20 10:09:45 2021 From: merakosp at gmail.com (panagiotis m) Date: Tue, 20 Jul 2021 17:09:45 +0300 Subject: Stacks Tab in Standalone Application Settings all grayed out. In-Reply-To: References: Message-ID: Hello Tom, This is probably a bug in the IDE. Uncheck any mobile platforms in the standalone settings, and you should be able to edit the Stacks tab. Then, you can re-check any mobile platforms again. Cheers, Panos -- On Tue, 20 Jul 2021 at 16:59, Tom Glod via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello Matthias, > > Nope, Indy 9.6.1 ... > I saw someone else post this problem in the forum 3 years ago, and no > answer :( > I don't want to say the C word here ...so I won't. > Still hoping there is a solution without a transplant procedure to a new > stack/ > > Thank, > > Tom > > > > On Tue, Jul 20, 2021 at 5:48 AM matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hi Tom, > > > > are you, by any chance, using a Community edition of LC? This would > > explain, why the section is greyed out. The Community editions of LC do > not > > support encryption. > > > > Regards, > > > > Matthias > > > > > > > Am 20.07.2021 um 03:36 schrieb Tom Glod via use-livecode < > > use-livecode at lists.runrev.com>: > > > > > > Hi Folks, > > > > > > I haven't been to the "Stacks" tab in Standalone Application Settings > in > > a > > > while ...... > > > But I wanted to test the stack encryption today and noticed that entire > > tab > > > is greyed out and disabled. > > > > > > It doesn't seem good. > > > > > > I hope my stack is ok. Everything seems to be working as expected. > > > > > > Does anyone have any idea? > > > > > > Thanks > > > > > > Tom > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at 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 at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > -- > Tom Glod > Founder & Developer > MakeShyft R.D.A (www.makeshyft.com) > Mobile:647.562.9411 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From tom at makeshyft.com Tue Jul 20 10:20:44 2021 From: tom at makeshyft.com (Tom Glod) Date: Tue, 20 Jul 2021 10:20:44 -0400 Subject: Stacks Tab in Standalone Application Settings all grayed out. In-Reply-To: References: Message-ID: Hello Panos, Thank you, that worked. Phew! I was in the shower just now planning how I would transplant one stack to another stack via script :D Glad I don't have to do that. Thanks again, Tom On Tue, Jul 20, 2021 at 10:11 AM panagiotis m via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello Tom, > > This is probably a bug in the IDE. Uncheck any mobile platforms in the > standalone settings, and you should be able to edit the Stacks tab. Then, > you can re-check any mobile platforms again. > > Cheers, > Panos > -- > > On Tue, 20 Jul 2021 at 16:59, Tom Glod via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Hello Matthias, > > > > Nope, Indy 9.6.1 ... > > I saw someone else post this problem in the forum 3 years ago, and no > > answer :( > > I don't want to say the C word here ...so I won't. > > Still hoping there is a solution without a transplant procedure to a new > > stack/ > > > > Thank, > > > > Tom > > > > > > > > On Tue, Jul 20, 2021 at 5:48 AM matthias rebbe via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > > > Hi Tom, > > > > > > are you, by any chance, using a Community edition of LC? This would > > > explain, why the section is greyed out. The Community editions of LC do > > not > > > support encryption. > > > > > > Regards, > > > > > > Matthias > > > > > > > > > > Am 20.07.2021 um 03:36 schrieb Tom Glod via use-livecode < > > > use-livecode at lists.runrev.com>: > > > > > > > > Hi Folks, > > > > > > > > I haven't been to the "Stacks" tab in Standalone Application Settings > > in > > > a > > > > while ...... > > > > But I wanted to test the stack encryption today and noticed that > entire > > > tab > > > > is greyed out and disabled. > > > > > > > > It doesn't seem good. > > > > > > > > I hope my stack is ok. Everything seems to be working as expected. > > > > > > > > Does anyone have any idea? > > > > > > > > Thanks > > > > > > > > Tom > > > > _______________________________________________ > > > > use-livecode mailing list > > > > use-livecode at 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 at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > -- > > Tom Glod > > Founder & Developer > > MakeShyft R.D.A (www.makeshyft.com) > > Mobile:647.562.9411 > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 From andrew at midwestcoastmedia.com Tue Jul 20 12:19:43 2021 From: andrew at midwestcoastmedia.com (Andrew at MidWest Coast Media) Date: Tue, 20 Jul 2021 12:19:43 -0400 Subject: Double checking maximum vertical scroll In-Reply-To: References: Message-ID: <5BB0F512-36B0-4363-A6D0-2A97E5A29BD4@midwestcoastmedia.com> What device and fullscreenmode are you using while running into this? Possibly related to: https://quality.livecode.com/show_bug.cgi?id=21456 -- Andrew Bell > Subject: Double checking maximum vertical scroll > Message-ID: <42be648c-8e83-1bcd-b804-ec5547c6b72b at researchware.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > In a list field, if you are scrolling a field by script control, the max > vertical scroll to display the last line would be: > > put (the height of me - the topMargin of me - the bottomMargin of me) > into tAdjustedHeight -- tope and bottom margins > if the showBorder of me is true then put tAdjustedHeight - (the > borderWidth of me * 2) into tAdjustedHeight -- top and bottom borders > the formattedHeight of me - tAdjustedHeight into tMaxVerticalScroll > > -- essentially you have to take the formattedHeight minus the field > height and subtract out the margins and borders (if there are borders shown) > > Is this correct? Am I missing anything? > > From paul at researchware.com Tue Jul 20 12:50:55 2021 From: paul at researchware.com (Paul Dupuis) Date: Tue, 20 Jul 2021 12:50:55 -0400 Subject: Double checking maximum vertical scroll In-Reply-To: <5BB0F512-36B0-4363-A6D0-2A97E5A29BD4@midwestcoastmedia.com> References: <5BB0F512-36B0-4363-A6D0-2A97E5A29BD4@midwestcoastmedia.com> Message-ID: I should have said: Desktop - macOS and Windows On 7/20/2021 12:19 PM, Andrew at MidWest Coast Media via use-livecode wrote: > What device and fullscreenmode are you using while running into this? > Possibly related to: https://quality.livecode.com/show_bug.cgi?id=21456 > > -- Andrew Bell > >> Subject: Double checking maximum vertical scroll >> Message-ID: <42be648c-8e83-1bcd-b804-ec5547c6b72b at researchware.com> >> Content-Type: text/plain; charset=utf-8; format=flowed >> >> In a list field, if you are scrolling a field by script control, the max >> vertical scroll to display the last line would be: >> >> put (the height of me - the topMargin of me - the bottomMargin of me) >> into tAdjustedHeight -- tope and bottom margins >> if the showBorder of me is true then put tAdjustedHeight - (the >> borderWidth of me * 2) into tAdjustedHeight -- top and bottom borders >> the formattedHeight of me - tAdjustedHeight into tMaxVerticalScroll >> >> -- essentially you have to take the formattedHeight minus the field >> height and subtract out the margins and borders (if there are borders shown) >> >> Is this correct? Am I missing anything? >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From curry at pair.com Tue Jul 20 13:40:24 2021 From: curry at pair.com (Curry Kenworthy) Date: Tue, 20 Jul 2021 13:40:24 -0400 Subject: Double checking maximum vertical scroll In-Reply-To: References: Message-ID: Don't subtract the topmargin; that's the problem. (BTW, LC already limits the max scroll for us. Usually we don't need to calculate it. But if you do, the topmargin is your issue.) Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ From benr_mc at cogapp.com Wed Jul 21 12:43:44 2021 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 21 Jul 2021 17:43:44 +0100 Subject: access scroll of browser widget Message-ID: <64483b9e-23e4-b992-ecb0-ffc4b08ab50d@cogapp.com> The browser widget has properties hScrollbar and vScrollbar - but doesn't appear to have properties hScroll or vScroll. Is there any way to get and set the scroll (FWIW I'm only interested in the vertical) of a browser widget? TIA, Ben From rdimola at evergreeninfo.net Wed Jul 21 13:24:14 2021 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Wed, 21 Jul 2021 13:24:14 -0400 Subject: access scroll of browser widget In-Reply-To: <64483b9e-23e4-b992-ecb0-ffc4b08ab50d@cogapp.com> References: <64483b9e-23e4-b992-ecb0-ffc4b08ab50d@cogapp.com> Message-ID: <003501d77e55$3cf35960$b6da0c20$@net> Ben, Setting the x/y scroll is easy: do "window.scrollTo(0,500);" in widget "nameOfBrowserWidget" See https://www.w3schools.com/jsref/met_win_scrollto.asp I don't know how to get the current scroll position on random pages. If you have control of the html then you can set the javascriptHandlers in LC and have a callback to LC from a JavaScript handler in the html to interrogate the current scroll position. Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Ben Rubinstein via use-livecode Sent: Wednesday, July 21, 2021 12:44 PM To: Use LiveCode Cc: Ben Rubinstein Subject: access scroll of browser widget The browser widget has properties hScrollbar and vScrollbar - but doesn't appear to have properties hScroll or vScroll. Is there any way to get and set the scroll (FWIW I'm only interested in the vertical) of a browser widget? TIA, Ben _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Thu Jul 22 03:52:30 2021 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 22 Jul 2021 08:52:30 +0100 Subject: How to deploy app from Mac to Linux (with Browser widget) ? Message-ID: I've made a little utility that's been working for me on Mac (actually I've just been running it in the IDE). I wanted to share it with a colleague who uses Linux, so I selected Mac, Windows, Linux in the standalone settings, selected "auto-detect" for inclusions, built it. Tested the standalone Mac app on my computer, works fine. Zipped up the Linux64 package, sent my colleague the zip. She said "something froze and i cannot close it". Two questions: - do I need to do something special to package up the Linux app before sending it? Does my colleague need to do something special to install/run it? She's using "5.4.0-80-generic #90-Ubuntu". - this uses the browser widget. I've seen something on the list about will we ever get CEF browser on Linux - but the widget was listed as for linux in the Standalone Builder, and indeed a folder "CEF" is the bulk of the "Externals" folder that the Standalone Builder created. So I'm guessing that was an historical problem. Please enlighten me! TIA, Ben From benr at cogapp.com Thu Jul 22 03:53:31 2021 From: benr at cogapp.com (Ben Rubinstein) Date: Thu, 22 Jul 2021 08:53:31 +0100 Subject: access scroll of browser widget In-Reply-To: <003501d77e55$3cf35960$b6da0c20$@net> References: <64483b9e-23e4-b992-ecb0-ffc4b08ab50d@cogapp.com> <003501d77e55$3cf35960$b6da0c20$@net> Message-ID: <83b36eec-cd98-07b7-41d2-1875d30c13bd@cogapp.com> Thanks Ralph - this is without any access to the html or javascript - generic browser that the user might point anywhere. Thank you, Ben On 21/07/2021 18:24, Ralph DiMola via use-livecode wrote: > Ben, > > Setting the x/y scroll is easy: > do "window.scrollTo(0,500);" in widget "nameOfBrowserWidget" > See https://www.w3schools.com/jsref/met_win_scrollto.asp > > I don't know how to get the current scroll position on random pages. If you > have control of the html then you can set the javascriptHandlers in LC and > have a callback to LC from a JavaScript handler in the html to interrogate > the current scroll position. > > > Ralph DiMola > IT Director > Evergreen Information Services > rdimola at evergreeninfo.net > > -----Original Message----- > From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf > Of Ben Rubinstein via use-livecode > Sent: Wednesday, July 21, 2021 12:44 PM > To: Use LiveCode > Cc: Ben Rubinstein > Subject: access scroll of browser widget > > > The browser widget has properties hScrollbar and vScrollbar - but doesn't > appear to have properties hScroll or vScroll. > > Is there any way to get and set the scroll (FWIW I'm only interested in the > vertical) of a browser widget? > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Thu Jul 22 10:48:20 2021 From: merakosp at gmail.com (panagiotis m) Date: Thu, 22 Jul 2021 17:48:20 +0300 Subject: How to deploy app from Mac to Linux (with Browser widget) ? In-Reply-To: References: Message-ID: Hello Ben, Unfortunately the browser widget is still broken on most Linux distros. You might be able to work this around in your app by using "launch url .." if the platform is Linux, to use the default browser instead of the browser widget. Kind regards, Panos -- On Thu, 22 Jul 2021 at 10:53, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > > I've made a little utility that's been working for me on Mac (actually > I've > just been running it in the IDE). I wanted to share it with a colleague > who > uses Linux, so I selected Mac, Windows, Linux in the standalone settings, > selected "auto-detect" for inclusions, built it. > > Tested the standalone Mac app on my computer, works fine. > > Zipped up the Linux64 package, sent my colleague the zip. She said > "something > froze and i cannot close it". > > Two questions: > > - do I need to do something special to package up the Linux app before > sending > it? Does my colleague need to do something special to install/run it? > She's > using "5.4.0-80-generic #90-Ubuntu". > > - this uses the browser widget. I've seen something on the list about will > we > ever get CEF browser on Linux - but the widget was listed as for linux in > the > Standalone Builder, and indeed a folder "CEF" is the bulk of the > "Externals" > folder that the Standalone Builder created. So I'm guessing that was an > historical problem. > > Please enlighten me! > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From panos.merakos at livecode.com Fri Jul 23 09:21:36 2021 From: panos.merakos at livecode.com (panagiotis merakos) Date: Fri, 23 Jul 2021 16:21:36 +0300 Subject: [ANN] Release 9.6.3 RC-2 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.3 RC-2. 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 RC-2 comes with 3 regression fixes: - Fix some images rendering as black in recent macOS versions - Fix User Guide being empty - Fix Android build error when 'Allow Http Connections' is checked 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_rc_2.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 -- Panagiotis Merakos LiveCode Software Developer Everyone Can Create Apps From lists at mangomultimedia.com Fri Jul 23 14:52:23 2021 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 23 Jul 2021 13:52:23 -0500 Subject: [ANN] Release 9.6.3 RC-2 In-Reply-To: References: Message-ID: On Fri, Jul 23, 2021 at 8:23 AM panagiotis merakos via use-livecode < use-livecode at lists.runrev.com> wrote: > > - Fix some images rendering as black in recent macOS versions I can confirm that this issue is fixed on macOS Big Sur. Thanks! -- Trevor DeVore ScreenSteps www.screensteps.com From merakosp at gmail.com Fri Jul 23 15:18:10 2021 From: merakosp at gmail.com (panagiotis m) Date: Fri, 23 Jul 2021 22:18:10 +0300 Subject: [ANN] Release 9.6.3 RC-2 In-Reply-To: References: Message-ID: Thanks for the update Trevor On Fri, 23 Jul 2021, 21:53 Trevor DeVore via use-livecode, < use-livecode at lists.runrev.com> wrote: > On Fri, Jul 23, 2021 at 8:23 AM panagiotis merakos via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > > - Fix some images rendering as black in recent macOS versions > > > I can confirm that this issue is fixed on macOS Big Sur. Thanks! > > -- > Trevor DeVore > ScreenSteps > www.screensteps.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Fri Jul 23 15:33:29 2021 From: richmondmathewson at gmail.com (Richmond) Date: Fri, 23 Jul 2021 22:33:29 +0300 Subject: [ANN] Release 9.6.3 RC-2 In-Reply-To: References: Message-ID: This is wonderful: thanks to LiveCode central for sorting out a real "Howler"! Richmond. On 23.07.21 22:18, panagiotis m via use-livecode wrote: > Thanks for the update Trevor > > On Fri, 23 Jul 2021, 21:53 Trevor DeVore via use-livecode, < > use-livecode at lists.runrev.com> wrote: > >> On Fri, Jul 23, 2021 at 8:23 AM panagiotis merakos via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> - Fix some images rendering as black in recent macOS versions >> >> I can confirm that this issue is fixed on macOS Big Sur. Thanks! >> >> -- >> Trevor DeVore >> ScreenSteps >> www.screensteps.com >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Sat Jul 24 12:57:50 2021 From: klaus at major-k.de (Klaus major-k) Date: Sat, 24 Jul 2021 18:57:50 +0200 Subject: First LC engine in 64bit? Message-ID: <9B1AB84A-3D53-4046-A06A-52A2F0322EB9@major-k.de> Hi friends, the subject says it all, anyone happen to know the answer? Thanks in advance! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From klaus at major-k.de Sat Jul 24 13:06:08 2021 From: klaus at major-k.de (Klaus major-k) Date: Sat, 24 Jul 2021 19:06:08 +0200 Subject: First LC engine in 64bit? In-Reply-To: <9B1AB84A-3D53-4046-A06A-52A2F0322EB9@major-k.de> References: <9B1AB84A-3D53-4046-A06A-52A2F0322EB9@major-k.de> Message-ID: <62725BE1-ECF8-4E90-A625-DCCF397A0947@major-k.de> Hi all, > Am 24.07.2021 um 18:57 schrieb Klaus major-k via use-livecode : > > Hi friends, > > the subject says it all, anyone happen to know the answer? > Thanks in advance! > > > Best > > Klaus of course I mean the Mac version of LC. -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From jeejeestudio at gmail.com Sat Jul 24 16:50:15 2021 From: jeejeestudio at gmail.com (JeeJeeStudio) Date: Sat, 24 Jul 2021 22:50:15 +0200 Subject: First LC engine in 64bit? In-Reply-To: <62725BE1-ECF8-4E90-A625-DCCF397A0947@major-k.de> References: <9B1AB84A-3D53-4046-A06A-52A2F0322EB9@major-k.de> <62725BE1-ECF8-4E90-A625-DCCF397A0947@major-k.de> Message-ID: <5fabcb96-a6e3-305d-61a4-cae0fd348ad6@gmail.com> Hallo mein freund, according the downloads page 9.5.0. Groetjes! Jerry (Sphere) Op 24-7-2021 om 19:06 schreef Klaus major-k via use-livecode: > Hi all, > >> Am 24.07.2021 um 18:57 schrieb Klaus major-k via use-livecode : >> >> Hi friends, >> >> the subject says it all, anyone happen to know the answer? >> Thanks in advance! >> >> >> Best >> >> Klaus > of course I mean the Mac version of LC. > > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at elementarysoftware.com Sat Jul 24 19:51:50 2021 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Sat, 24 Jul 2021 16:51:50 -0700 Subject: First LC engine in 64bit? In-Reply-To: <5fabcb96-a6e3-305d-61a4-cae0fd348ad6@gmail.com> References: <9B1AB84A-3D53-4046-A06A-52A2F0322EB9@major-k.de> <62725BE1-ECF8-4E90-A625-DCCF397A0947@major-k.de> <5fabcb96-a6e3-305d-61a4-cae0fd348ad6@gmail.com> Message-ID: <068A92E5-CBB3-4A80-8A45-787BEC0ED0BF@elementarysoftware.com> LiveCode 8.0 allowed building a 64 bit standalone (with some audio recording and video capture limits) > On Jul 24, 2021, at 1:50 PM, JeeJeeStudio via use-livecode wrote: > > Hallo mein freund, > > > according the downloads page 9.5.0. > > > Groetjes! > > Jerry (Sphere) > > > Op 24-7-2021 om 19:06 schreef Klaus major-k via use-livecode: >> Hi all, >> >>> Am 24.07.2021 um 18:57 schrieb Klaus major-k via use-livecode : >>> >>> Hi friends, >>> >>> the subject says it all, anyone happen to know the answer? >>> Thanks in advance! >>> >>> >>> Best >>> >>> Klaus >> of course I mean the Mac version of LC. >> >> >> -- >> Klaus Major >> https://www.major-k.de >> https://www.major-k.de/bass >> klaus at major-k.de >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bdrunrev at gmail.com Sun Jul 25 03:35:23 2021 From: bdrunrev at gmail.com (Bernard Devlin) Date: Sun, 25 Jul 2021 08:35:23 +0100 Subject: httpd library Message-ID: Hi all Over on the forum someone has run into what appear to be limitations of LC's included httpd library. I remember over the years seeing that various people implemented something like this (Andre comes to mind). The forum user wants to be able to run a LC app on a mobile device within a LAN and have others POST binary data to the LC app via HTTP. Rather then tell him "you can build your own" I thought I'd ask if anyone knew the whereabouts of any of the other httpd implementations. Regards Bernard From harrison at all-auctions.com Sun Jul 25 11:41:19 2021 From: harrison at all-auctions.com (Rick Harrison) Date: Sun, 25 Jul 2021 11:41:19 -0400 Subject: httpd library In-Reply-To: References: Message-ID: Hi Bernard, The user should set up an LC Web Server with a database connected to it. The LC Apps should all then send information to the LC Server, and the Server will send information back to the LC Apps. I think any other way is going to be a huge waste of time and energy. Good luck, Rick > On Jul 25, 2021, at 3:35 AM, Bernard Devlin via use-livecode wrote: > > Hi all > > Over on the forum someone has run into what appear to be limitations of > LC's included httpd library. > > I remember over the years seeing that various people implemented something > like this (Andre comes to mind). The forum user wants to be able to run a > LC app on a mobile device within a LAN and have others POST binary data to > the LC app via HTTP. > > Rather then tell him "you can build your own" I thought I'd ask if anyone > knew the whereabouts of any of the other httpd implementations. > > Regards > > Bernard From klaus at major-k.de Sun Jul 25 12:11:54 2021 From: klaus at major-k.de (Klaus major-k) Date: Sun, 25 Jul 2021 18:11:54 +0200 Subject: First LC engine in 64bit? In-Reply-To: <5fabcb96-a6e3-305d-61a4-cae0fd348ad6@gmail.com> References: <9B1AB84A-3D53-4046-A06A-52A2F0322EB9@major-k.de> <62725BE1-ECF8-4E90-A625-DCCF397A0947@major-k.de> <5fabcb96-a6e3-305d-61a4-cae0fd348ad6@gmail.com> Message-ID: <59014A8A-AB9A-4603-9DA1-2DB12288646C@major-k.de> Dag Jerry, > Am 24.07.2021 um 22:50 schrieb JeeJeeStudio via use-livecode : > > Hallo mein freund, > > according the downloads page 9.5.0. ah, thanks. I had thought it should be an earlier version, go figure. :-) > Groetjes! > > Jerry (Sphere) Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bdrunrev at gmail.com Sun Jul 25 13:50:29 2021 From: bdrunrev at gmail.com (Bernard Devlin) Date: Sun, 25 Jul 2021 18:50:29 +0100 Subject: httpd library In-Reply-To: References: Message-ID: Hi Rick Normally I'd agree with you (ever since Andre piped-up as a young man saying he was building a webserver in Livecode, I've thought "just use one of the many available webservers..") However this user wants this running on a mobile device. So he either gives up that idea or he starts going down the path of httpd.mc or Andre's webserver. I was just trying to save him all the work that other's have done before. Regards, Bernard On Sun, Jul 25, 2021 at 4:42 PM Rick Harrison via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Bernard, > > The user should set up an LC Web Server with a database connected to it. > > The LC Apps should all then send information to the LC Server, and the > Server > will send information back to the LC Apps. > > I think any other way is going to be a huge waste of time and energy. > > Good luck, > > Rick > > > From matthias_livecode_150811 at m-r-d.de Sun Jul 25 14:17:16 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Sun, 25 Jul 2021 20:17:16 +0200 Subject: httpd library In-Reply-To: References: Message-ID: <8F66B5EC-01DD-4A91-9A9D-35E952B23B65@m-r-d.de> Maybe the user wants to allow connections rom desktop computers to the mobile App to upload data to the mobile app. The idea itself to do the data exchange with a webserver running on the mobile app is not bad. Another solution would be mergFTPD, but that external is only available for iOS. > Am 25.07.2021 um 17:41 schrieb Rick Harrison via use-livecode : > > Hi Bernard, > > The user should set up an LC Web Server with a database connected to it. > > The LC Apps should all then send information to the LC Server, and the Server > will send information back to the LC Apps. > > I think any other way is going to be a huge waste of time and energy. > > Good luck, > > Rick > > > > >> On Jul 25, 2021, at 3:35 AM, Bernard Devlin via use-livecode wrote: >> >> Hi all >> >> Over on the forum someone has run into what appear to be limitations of >> LC's included httpd library. >> >> I remember over the years seeing that various people implemented something >> like this (Andre comes to mind). The forum user wants to be able to run a >> LC app on a mobile device within a LAN and have others POST binary data to >> the LC app via HTTP. >> >> Rather then tell him "you can build your own" I thought I'd ask if anyone >> knew the whereabouts of any of the other httpd implementations. >> >> Regards >> >> Bernard > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee.nethery at elloco.com Sun Jul 25 14:24:27 2021 From: kee.nethery at elloco.com (Kee Nethery) Date: Sun, 25 Jul 2021 11:24:27 -0700 Subject: httpd library In-Reply-To: References: Message-ID: <5974D72C-376A-4AF9-A911-8A609A9B601C@elloco.com> I?ve got a copy of that stack if you still need it. Kee Nethery > On Jul 25, 2021, at 10:51 AM, Bernard Devlin via use-livecode wrote: > > ?Hi Rick > > Normally I'd agree with you (ever since Andre piped-up as a young man > saying he was building a webserver in Livecode, I've thought "just use one > of the many available webservers..") > > However this user wants this running on a mobile device. So he either > gives up that idea or he starts going down the path of httpd.mc or Andre's > webserver. > > I was just trying to save him all the work that other's have done before. > > Regards, Bernard > >> On Sun, Jul 25, 2021 at 4:42 PM Rick Harrison via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >> Hi Bernard, >> >> The user should set up an LC Web Server with a database connected to it. >> >> The LC Apps should all then send information to the LC Server, and the >> Server >> will send information back to the LC Apps. >> >> I think any other way is going to be a huge waste of time and energy. >> >> Good luck, >> >> Rick >> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Sun Jul 25 17:30:26 2021 From: andre at andregarzia.com (Andre Garzia) Date: Sun, 25 Jul 2021 22:30:26 +0100 Subject: httpd library In-Reply-To: References: Message-ID: <059925D9-F9C4-42ED-BD28-753EF02C6367@andregarzia.com> I love when you folks call me a young man :-) I?ve been 41 for a while now and no one asks for my ID when I buy a beer anymore. Well, back on topic, is there something wrong with the HTTPD library that LiveCode ships right now? It should serve for the purposes your friend wants. I?m going to test it here to see if works (because I?m curious) and get back to this list with results. Best A > On 25 Jul 2021, at 18:50, Bernard Devlin via use-livecode wrote: > > Hi Rick > > Normally I'd agree with you (ever since Andre piped-up as a young man > saying he was building a webserver in Livecode, I've thought "just use one > of the many available webservers..") > > However this user wants this running on a mobile device. So he either > gives up that idea or he starts going down the path of httpd.mc or Andre's > webserver. > > I was just trying to save him all the work that other's have done before. > > Regards, Bernard > > On Sun, Jul 25, 2021 at 4:42 PM Rick Harrison via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Bernard, >> >> The user should set up an LC Web Server with a database connected to it. >> >> The LC Apps should all then send information to the LC Server, and the >> Server >> will send information back to the LC Apps. >> >> I think any other way is going to be a huge waste of time and energy. >> >> Good luck, >> >> Rick >> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Sun Jul 25 18:18:41 2021 From: andre at andregarzia.com (Andre Garzia) Date: Sun, 25 Jul 2021 23:18:41 +0100 Subject: httpd library In-Reply-To: <059925D9-F9C4-42ED-BD28-753EF02C6367@andregarzia.com> References: <059925D9-F9C4-42ED-BD28-753EF02C6367@andregarzia.com> Message-ID: <9447241E-7436-4B57-B91F-6DD5AF39CAE6@andregarzia.com> Just an update, the httpd library works on mobile. The httpd library I?m mentioning here is the one bundled with LiveCode. I think Malte built it, it is very similar to the one I built in the past but I am sure it is a bit smarter. I?ve created a demo stack at: https://andregarzia.com/files/mobile-web-server-test.livecode.gz that I tested on Android (on a real device) and on the iPhone Simulator on my macOS, both worked. Apparently there is a bug in the 9.6.3-rc-2. If you set ?allow http connections? on Android, it fails to build the app. I had to go to the custom properties editor to delete that prop manually because I couldn?t edit it on the standalone application settings after first trying to use it. Hope this helps Bernard. > On 25 Jul 2021, at 22:30, Andre Garzia wrote: > > I love when you folks call me a young man :-) I?ve been 41 for a while now and no one asks for my ID when I buy a beer anymore. > > Well, back on topic, is there something wrong with the HTTPD library that LiveCode ships right now? It should serve for the purposes your friend wants. > > I?m going to test it here to see if works (because I?m curious) and get back to this list with results. > > Best > A > >> On 25 Jul 2021, at 18:50, Bernard Devlin via use-livecode wrote: >> >> Hi Rick >> >> Normally I'd agree with you (ever since Andre piped-up as a young man >> saying he was building a webserver in Livecode, I've thought "just use one >> of the many available webservers..") >> >> However this user wants this running on a mobile device. So he either >> gives up that idea or he starts going down the path of httpd.mc or Andre's >> webserver. >> >> I was just trying to save him all the work that other's have done before. >> >> Regards, Bernard >> >> On Sun, Jul 25, 2021 at 4:42 PM Rick Harrison via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi Bernard, >>> >>> The user should set up an LC Web Server with a database connected to it. >>> >>> The LC Apps should all then send information to the LC Server, and the >>> Server >>> will send information back to the LC Apps. >>> >>> I think any other way is going to be a huge waste of time and energy. >>> >>> Good luck, >>> >>> Rick >>> >>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > From matthias_livecode_150811 at m-r-d.de Sun Jul 25 18:26:45 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Mon, 26 Jul 2021 00:26:45 +0200 Subject: httpd library In-Reply-To: <9447241E-7436-4B57-B91F-6DD5AF39CAE6@andregarzia.com> References: <059925D9-F9C4-42ED-BD28-753EF02C6367@andregarzia.com> <9447241E-7436-4B57-B91F-6DD5AF39CAE6@andregarzia.com> Message-ID: <8DA77541-793B-40C3-9312-E055722B6EDE@m-r-d.de> Andre, the original poster in the forum https://forums.livecode.com/viewtopic.php?f=11&p=207421&sid=20e6800951126812dc379fe4ebe7b7cd#p207421 wants to allow to upload a csv file from a client computer to the web server on the mobile app using a html form. And that is not working. Regards, Matthias > Am 26.07.2021 um 00:18 schrieb Andre Garzia via use-livecode : > > Just an update, the httpd library works on mobile. The httpd library I?m mentioning here is the one bundled with LiveCode. I think Malte built it, it is very similar to the one I built in the past but I am sure it is a bit smarter. > > I?ve created a demo stack at: https://andregarzia.com/files/mobile-web-server-test.livecode.gz that I tested on Android (on a real device) and on the iPhone Simulator on my macOS, both worked. > > Apparently there is a bug in the 9.6.3-rc-2. If you set ?allow http connections? on Android, it fails to build the app. I had to go to the custom properties editor to delete that prop manually because I couldn?t edit it on the standalone application settings after first trying to use it. > > Hope this helps Bernard. > >> On 25 Jul 2021, at 22:30, Andre Garzia wrote: >> >> I love when you folks call me a young man :-) I?ve been 41 for a while now and no one asks for my ID when I buy a beer anymore. >> >> Well, back on topic, is there something wrong with the HTTPD library that LiveCode ships right now? It should serve for the purposes your friend wants. >> >> I?m going to test it here to see if works (because I?m curious) and get back to this list with results. >> >> Best >> A >> >>> On 25 Jul 2021, at 18:50, Bernard Devlin via use-livecode wrote: >>> >>> Hi Rick >>> >>> Normally I'd agree with you (ever since Andre piped-up as a young man >>> saying he was building a webserver in Livecode, I've thought "just use one >>> of the many available webservers..") >>> >>> However this user wants this running on a mobile device. So he either >>> gives up that idea or he starts going down the path of httpd.mc or Andre's >>> webserver. >>> >>> I was just trying to save him all the work that other's have done before. >>> >>> Regards, Bernard >>> >>> On Sun, Jul 25, 2021 at 4:42 PM Rick Harrison via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> Hi Bernard, >>>> >>>> The user should set up an LC Web Server with a database connected to it. >>>> >>>> The LC Apps should all then send information to the LC Server, and the >>>> Server >>>> will send information back to the LC Apps. >>>> >>>> I think any other way is going to be a huge waste of time and energy. >>>> >>>> Good luck, >>>> >>>> Rick >>>> >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Sun Jul 25 18:35:28 2021 From: andre at andregarzia.com (Andre Garzia) Date: Sun, 25 Jul 2021 23:35:28 +0100 Subject: httpd library In-Reply-To: <8DA77541-793B-40C3-9312-E055722B6EDE@m-r-d.de> References: <059925D9-F9C4-42ED-BD28-753EF02C6367@andregarzia.com> <9447241E-7436-4B57-B91F-6DD5AF39CAE6@andregarzia.com> <8DA77541-793B-40C3-9312-E055722B6EDE@m-r-d.de> Message-ID: <77F1BEDC-485A-4D60-B716-473081E2FCA5@andregarzia.com> Oh, I see? I thought the problem was getting it to work. Let me post there instead. > On 25 Jul 2021, at 23:26, matthias rebbe via use-livecode wrote: > > Andre, > > the original poster in the forum > https://forums.livecode.com/viewtopic.php?f=11&p=207421&sid=20e6800951126812dc379fe4ebe7b7cd#p207421 > > wants to allow to upload a csv file from a client computer to the web server on the mobile app using a html form. > And that is not working. > > Regards, > Matthias > > > > >> Am 26.07.2021 um 00:18 schrieb Andre Garzia via use-livecode >: >> >> Just an update, the httpd library works on mobile. The httpd library I?m mentioning here is the one bundled with LiveCode. I think Malte built it, it is very similar to the one I built in the past but I am sure it is a bit smarter. >> >> I?ve created a demo stack at: https://andregarzia.com/files/mobile-web-server-test.livecode.gz > that I tested on Android (on a real device) and on the iPhone Simulator on my macOS, both worked. >> >> Apparently there is a bug in the 9.6.3-rc-2. If you set ?allow http connections? on Android, it fails to build the app. I had to go to the custom properties editor to delete that prop manually because I couldn?t edit it on the standalone application settings after first trying to use it. >> >> Hope this helps Bernard. >> >>> On 25 Jul 2021, at 22:30, Andre Garzia wrote: >>> >>> I love when you folks call me a young man :-) I?ve been 41 for a while now and no one asks for my ID when I buy a beer anymore. >>> >>> Well, back on topic, is there something wrong with the HTTPD library that LiveCode ships right now? It should serve for the purposes your friend wants. >>> >>> I?m going to test it here to see if works (because I?m curious) and get back to this list with results. >>> >>> Best >>> A >>> >>>> On 25 Jul 2021, at 18:50, Bernard Devlin via use-livecode wrote: >>>> >>>> Hi Rick >>>> >>>> Normally I'd agree with you (ever since Andre piped-up as a young man >>>> saying he was building a webserver in Livecode, I've thought "just use one >>>> of the many available webservers..") >>>> >>>> However this user wants this running on a mobile device. So he either >>>> gives up that idea or he starts going down the path of httpd.mc or Andre's >>>> webserver. >>>> >>>> I was just trying to save him all the work that other's have done before. >>>> >>>> Regards, Bernard >>>> >>>> On Sun, Jul 25, 2021 at 4:42 PM Rick Harrison via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>>> Hi Bernard, >>>>> >>>>> The user should set up an LC Web Server with a database connected to it. >>>>> >>>>> The LC Apps should all then send information to the LC Server, and the >>>>> Server >>>>> will send information back to the LC Apps. >>>>> >>>>> I think any other way is going to be a huge waste of time and energy. >>>>> >>>>> Good luck, >>>>> >>>>> Rick >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bdrunrev at gmail.com Sun Jul 25 19:08:01 2021 From: bdrunrev at gmail.com (Bernard Devlin) Date: Mon, 26 Jul 2021 00:08:01 +0100 Subject: httpd library In-Reply-To: <059925D9-F9C4-42ED-BD28-753EF02C6367@andregarzia.com> References: <059925D9-F9C4-42ED-BD28-753EF02C6367@andregarzia.com> Message-ID: Hi Andre It was probably 15 years ago when you said "I want to build a http daemon in Revolution". You were a young man :) BTW I've started using your dblibrary recently. If I pay for a license, will you get the money? Can you provide a link for where to make the payment? Regards, Bernard > > From brahma at hindu.org Sun Jul 25 22:25:26 2021 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 26 Jul 2021 02:25:26 +0000 Subject: OT: What Is Wrong at play.google.com/Android Apps? Message-ID: What is wrong with: (My developers ID is, for this email, has been blocked out) https://play.google.com/console/u/0/developers/#############/app-list#AppListPlace ? I will be logged into Google as: Himalayan Academy I should see four apps: SivaSiva Spiritual Workout Hinduism Today Gurudeva but we are getting "We're experiencing longer than usual review times" and I don't see anything at all? Is the URL correct? Brahmanathaswami From andre at andregarzia.com Mon Jul 26 06:59:22 2021 From: andre at andregarzia.com (Andre Garzia) Date: Mon, 26 Jul 2021 11:59:22 +0100 Subject: httpd library In-Reply-To: References: <059925D9-F9C4-42ED-BD28-753EF02C6367@andregarzia.com> Message-ID: <2C7A194E-1FE9-4A40-9682-9B017747B2C7@andregarzia.com> Bernard, Thanks for the kind words my friend. :-) I can barely believe it has been 15 years already, it feels like yesterday. Don?t worry about the database library, I?m just going to relicense it as MIT which will make it free to use for all use cases. I?m no longer providing support or selling software, I want to focus on books. So, if you?d like to support me, you can grab a book at: https://andregarzia.com/books.html If you don?t want a book, but want to send some money anyway, you can ?buy me a coffee? at: https://ko-fi.com/andregarzia Warm regards Andre > On 26 Jul 2021, at 00:08, Bernard Devlin via use-livecode wrote: > > Hi Andre > > It was probably 15 years ago when you said "I want to build a http daemon > in Revolution". > > You were a young man :) > > BTW I've started using your dblibrary recently. If I pay for a license, > will you get the money? Can you provide a link for where to make the > payment? > > Regards, Bernard > > >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Mon Jul 26 08:11:35 2021 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Mon, 26 Jul 2021 12:11:35 +0000 Subject: OT: What Is Wrong at play.google.com/Android Apps? In-Reply-To: References: Message-ID: It on Firefox! Google Chrome lets me in? problem solved? On 7/25/21, 4:26 PM, "use-livecode" wrote: What is wrong with: (My developers ID is, for this email, has been blocked out) https://play.google.com/console/u/0/developers/#############/app-list#AppListPlace ? I will be logged into Google as: Himalayan Academy I should see four apps: SivaSiva Spiritual Workout Hinduism Today Gurudeva but we are getting "We're experiencing longer than usual review times" and I don't see anything at all? Is the URL correct? Brahmanathaswami _______________________________________________ From toolbook at kestner.de Mon Jul 26 09:13:05 2021 From: toolbook at kestner.de (toolbook at kestner.de) Date: Mon, 26 Jul 2021 15:13:05 +0200 Subject: Off topic: mySQL collations Message-ID: <007b01d7821f$f9929810$ecb7c830$@kestner.de> Hello, I am testing to migrate a mySQL database from 5.7 to 8. I am using PHP code between my LiveCode program and the db. This PHP code is pretty old and was actually written by somebody else. Since mySQL 8 deprecated some charactersets and collations, the following query in my PHP is not anymore allowed with mySQL 8 because of the deprecated collation: $query = "(SELECT * FROM lizenzen WHERE seriennr COLLATE latin1_general_ci ='$serial' COLLATE latin1_general_ci LIMIT 1) UNION (SELECT * FROM lizenz2 WHERE seriennr ='$serial' LIMIT 1)"; I now can change the collation, but my question is, do you see any reason for the collation statement in this select statement at all? The content of the column "seriennr" is unique and doesn't contains any accented or other special chars and there is just one record selected in one of the two tables with the requested seriennr. I am not good in mySQL, but I don't see any use of the collation. Couldn't I just delete the two collation statements for the same result or do they have a function I don't see? Thanks Tiemo From MikeKerner at roadrunner.com Mon Jul 26 10:27:08 2021 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 26 Jul 2021 10:27:08 -0400 Subject: what is the point of aps.cer? Message-ID: in the new APNS regime, you have to create an aps.cer file, but it does not seem like it is ever used in APNS. You use your .k8 file to do the work, and i don't see the aps.cer file being bundled or otherwise accessed, afterwards. you don't compile your app with it, either. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From e.beugelaar at me.com Mon Jul 26 10:55:05 2021 From: e.beugelaar at me.com (Erik Beugelaar) Date: Mon, 26 Jul 2021 16:55:05 +0200 Subject: httpd library In-Reply-To: <2C7A194E-1FE9-4A40-9682-9B017747B2C7@andregarzia.com> References: <059925D9-F9C4-42ED-BD28-753EF02C6367@andregarzia.com> <2C7A194E-1FE9-4A40-9682-9B017747B2C7@andregarzia.com> Message-ID: <004401d7822e$39d0f120$ad72d360$@me.com> Happy to see there are more talented programmers who are not greedy... Thumbs up to you. Erik -----Original Message----- From: use-livecode On Behalf Of Andre Garzia via use-livecode Sent: maandag 26 juli 2021 12:59 To: How to use LiveCode Cc: Andre Garzia Subject: Re: httpd library Bernard, Thanks for the kind words my friend. :-) I can barely believe it has been 15 years already, it feels like yesterday. Don?t worry about the database library, I?m just going to relicense it as MIT which will make it free to use for all use cases. I?m no longer providing support or selling software, I want to focus on books. So, if you?d like to support me, you can grab a book at: https://andregarzia.com/books.html If you don?t want a book, but want to send some money anyway, you can ?buy me a coffee? at: https://ko-fi.com/andregarzia Warm regards Andre > On 26 Jul 2021, at 00:08, Bernard Devlin via use-livecode wrote: > > Hi Andre > > It was probably 15 years ago when you said "I want to build a http > daemon in Revolution". > > You were a young man :) > > BTW I've started using your dblibrary recently. If I pay for a > license, will you get the money? Can you provide a link for where to > make the payment? > > Regards, Bernard > > >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Jul 26 11:18:59 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 26 Jul 2021 15:18:59 +0000 Subject: httpd library In-Reply-To: <059925D9-F9C4-42ED-BD28-753EF02C6367@andregarzia.com> References: <059925D9-F9C4-42ED-BD28-753EF02C6367@andregarzia.com> Message-ID: <68EBDFA3-9089-4336-8FD2-9D9F58DA749D@iotecdigital.com> Just hang out at American airports. I'm 65 and they ask ME for ID. :-) Bob S > On Jul 25, 2021, at 14:30 , Andre Garzia via use-livecode wrote: > > I love when you folks call me a young man :-) I?ve been 41 for a while now and no one asks for my ID when I buy a beer anymore. From skiplondon at gmail.com Mon Jul 26 14:26:00 2021 From: skiplondon at gmail.com (Skip Kimpel) Date: Mon, 26 Jul 2021 14:26:00 -0400 Subject: Looking to hire API (SOAP) expert (work for hire) Message-ID: I have a project on my plate that needs some assistance with an API integration. Need some help kicking it off and getting everything connected... from there on out, I can make the "calls" but need the initial assistance. Anybody interested in taking this on? Obviously I will pay you for your work. You can contact me directly at skip at magicgate.com. Best regards, SKIP KIMPEL From dochawk at gmail.com Mon Jul 26 15:57:01 2021 From: dochawk at gmail.com (doc hawk) Date: Mon, 26 Jul 2021 12:57:01 -0700 Subject: httpd library In-Reply-To: <059925D9-F9C4-42ED-BD28-753EF02C6367@andregarzia.com> References: <059925D9-F9C4-42ED-BD28-753EF02C6367@andregarzia.com> Message-ID: Andre added, > I love when you folks call me a young man :-) I?ve been 41 for a while now and no one asks for my ID when I buy a beer anymore. That?s why I hang around the knights of columbus?it?s the only place I get called ?young man? any more . . . :) From tom at makeshyft.com Mon Jul 26 16:42:35 2021 From: tom at makeshyft.com (Tom Glod) Date: Mon, 26 Jul 2021 16:42:35 -0400 Subject: httpd library In-Reply-To: References: <059925D9-F9C4-42ED-BD28-753EF02C6367@andregarzia.com> Message-ID: I just got a haircut, was hoping someone would call me a young man ..... but it didn't happen. Next goes the beard. lolz On Mon, Jul 26, 2021 at 3:58 PM doc hawk via use-livecode < use-livecode at lists.runrev.com> wrote: > > Andre added, > > > > I love when you folks call me a young man :-) I?ve been 41 for a while > now and no one asks for my ID when I buy a beer anymore. > > That?s why I hang around the knights of columbus?it?s the only place I get > called ?young man? any more . . . > > :) > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 From skiplondon at gmail.com Mon Jul 26 16:44:14 2021 From: skiplondon at gmail.com (Skip Kimpel) Date: Mon, 26 Jul 2021 16:44:14 -0400 Subject: Also looking for MSSQL integration person Message-ID: I have MSSQL data flowing into my project but two data input fields are coming through as "?" instead of the actual text. WIlling to pay someone to help me figure this out. Please contact me directly at skip at magicgate.com Thank you! SKIP From paul at researchware.com Mon Jul 26 16:59:52 2021 From: paul at researchware.com (Paul Dupuis) Date: Mon, 26 Jul 2021 16:59:52 -0400 Subject: Also looking for MSSQL integration person In-Reply-To: References: Message-ID: <7ac0fbb6-752b-1dbd-26e6-383757690300@researchware.com> I can't help you figure it out, but text coming through as questions marks is almost always and text encoding issue. For example, if the text is stored in the mySQL database as UTF8, then after fetching it in LiveCode nd before placing it in a field, you need to textDecode(,"UTF8") (see the textDecode dictionary entry) If you are going the other way, text entered into a LiveCode field needs to be textEncode(,"UTF") before storing in the database. You need to either look up what encoding you table(s) are using or set the encoding of the table(s) in the database to what you want and then perform the appropriate textEncode or textDecode operations in LC On 7/26/2021 4:44 PM, Skip Kimpel via use-livecode wrote: > I have MSSQL data flowing into my project but two data input fields are > coming through as "?" instead of the actual text. > > WIlling to pay someone to help me figure this out. > > Please contact me directly at skip at magicgate.com > > > Thank you! > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Mon Jul 26 17:25:23 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 26 Jul 2021 21:25:23 +0000 Subject: Also looking for MSSQL integration person In-Reply-To: <7ac0fbb6-752b-1dbd-26e6-383757690300@researchware.com> References: <7ac0fbb6-752b-1dbd-26e6-383757690300@researchware.com> Message-ID: <4BD5A56C-CF6E-4BB1-8CB2-93831CD835BF@iotecdigital.com> If it helps, I use InnoDB and my encoding is utf8_general_ci. That's probably not good for unicode though. I don't localize my app, it's just for use here at work. Bob S > On Jul 26, 2021, at 13:59 , Paul Dupuis via use-livecode wrote: > > I can't help you figure it out, but text coming through as questions marks is almost always and text encoding issue. > > For example, if the text is stored in the mySQL database as UTF8, then after fetching it in LiveCode nd before placing it in a field, you need to textDecode(,"UTF8") (see the textDecode dictionary entry) > > If you are going the other way, text entered into a LiveCode field needs to be textEncode(,"UTF") before storing in the database. > > You need to either look up what encoding you table(s) are using or set the encoding of the table(s) in the database to what you want and then perform the appropriate textEncode or textDecode operations in LC > > > > On 7/26/2021 4:44 PM, Skip Kimpel via use-livecode wrote: >> I have MSSQL data flowing into my project but two data input fields are >> coming through as "?" instead of the actual text. >> >> WIlling to pay someone to help me figure this out. >> >> Please contact me directly at skip at magicgate.com >> >> >> Thank you! >> >> SKIP >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From skiplondon at gmail.com Mon Jul 26 18:54:31 2021 From: skiplondon at gmail.com (Skip Kimpel) Date: Mon, 26 Jul 2021 18:54:31 -0400 Subject: Also looking for MSSQL integration person In-Reply-To: <7ac0fbb6-752b-1dbd-26e6-383757690300@researchware.com> References: <7ac0fbb6-752b-1dbd-26e6-383757690300@researchware.com> Message-ID: I think it is how I have everything setup.... something is getting lost in translation. Keep in mind it is only two fields I am getting the "?" results back instead of the text contained inside. The MSSQL data types of those two fields are: nvarchar(max). Interestingly enough, I have other nvarchar fields coming through just fine but the difference is the "(max)" piece. It is a Azure SQL server and because I have not been able to figure out how to do a direct connection to it, I am using an ODBC connector with 32/64-bit ODBC Driver 13 for SQL server. Does this help at all? I went through all the encoding types but they all failed using the textEncode.... when I say fail, I mean not the desired result. Maybe I hone in on the "max" piece of that code?? SKIP On Mon, Jul 26, 2021 at 5:01 PM Paul Dupuis via use-livecode < use-livecode at lists.runrev.com> wrote: > I can't help you figure it out, but text coming through as questions > marks is almost always and text encoding issue. > > For example, if the text is stored in the mySQL database as UTF8, then > after fetching it in LiveCode nd before placing it in a field, you need > to textDecode(,"UTF8") (see the textDecode > dictionary entry) > > If you are going the other way, text entered into a LiveCode field needs > to be textEncode(,"UTF") before storing in the database. > > You need to either look up what encoding you table(s) are using or set > the encoding of the table(s) in the database to what you want and then > perform the appropriate textEncode or textDecode operations in LC > > > > On 7/26/2021 4:44 PM, Skip Kimpel via use-livecode wrote: > > I have MSSQL data flowing into my project but two data input fields are > > coming through as "?" instead of the actual text. > > > > WIlling to pay someone to help me figure this out. > > > > Please contact me directly at skip at magicgate.com > > > > > > Thank you! > > > > SKIP > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From skiplondon at gmail.com Mon Jul 26 18:57:24 2021 From: skiplondon at gmail.com (Skip Kimpel) Date: Mon, 26 Jul 2021 18:57:24 -0400 Subject: Also looking for MSSQL integration person In-Reply-To: References: <7ac0fbb6-752b-1dbd-26e6-383757690300@researchware.com> Message-ID: Actually, just looked and another field that is nchar(10) is also receiving the "?" result so it has nothing to do with the "max" parameter. SKIP On Mon, Jul 26, 2021 at 6:54 PM Skip Kimpel wrote: > I think it is how I have everything setup.... something is getting lost in > translation. Keep in mind it is only two fields I am getting the "?" > results back instead of the text contained inside. The MSSQL data types of > those two fields are: nvarchar(max). Interestingly enough, I have other > nvarchar fields coming through just fine but the difference is the "(max)" > piece. > > It is a Azure SQL server and because I have not been able to figure out > how to do a direct connection to it, I am using an ODBC connector with > 32/64-bit ODBC Driver 13 for SQL server. > > Does this help at all? I went through all the encoding types but they all > failed using the textEncode.... when I say fail, I mean not the desired > result. > > Maybe I hone in on the "max" piece of that code?? > > > SKIP > > On Mon, Jul 26, 2021 at 5:01 PM Paul Dupuis via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I can't help you figure it out, but text coming through as questions >> marks is almost always and text encoding issue. >> >> For example, if the text is stored in the mySQL database as UTF8, then >> after fetching it in LiveCode nd before placing it in a field, you need >> to textDecode(,"UTF8") (see the textDecode >> dictionary entry) >> >> If you are going the other way, text entered into a LiveCode field needs >> to be textEncode(,"UTF") before storing in the database. >> >> You need to either look up what encoding you table(s) are using or set >> the encoding of the table(s) in the database to what you want and then >> perform the appropriate textEncode or textDecode operations in LC >> >> >> >> On 7/26/2021 4:44 PM, Skip Kimpel via use-livecode wrote: >> > I have MSSQL data flowing into my project but two data input fields are >> > coming through as "?" instead of the actual text. >> > >> > WIlling to pay someone to help me figure this out. >> > >> > Please contact me directly at skip at magicgate.com >> > >> > >> > Thank you! >> > >> > SKIP >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From bobsneidar at iotecdigital.com Mon Jul 26 19:12:46 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 26 Jul 2021 23:12:46 +0000 Subject: Also looking for MSSQL integration person In-Reply-To: References: <7ac0fbb6-752b-1dbd-26e6-383757690300@researchware.com> Message-ID: MAX is the argument for maximum VARCHAR size. SQL Server NVARCHAR data type is used to store variable-length, Unicode string data. MSSQL has a try_cast snf cast function. Try using that to have the SQL server convert the data into VARCHAR and see what you get. Bob S > On Jul 26, 2021, at 15:54 , Skip Kimpel via use-livecode wrote: > > I think it is how I have everything setup.... something is getting lost in > translation. Keep in mind it is only two fields I am getting the "?" > results back instead of the text contained inside. The MSSQL data types of > those two fields are: nvarchar(max). Interestingly enough, I have other > nvarchar fields coming through just fine but the difference is the "(max)" > piece. > > It is a Azure SQL server and because I have not been able to figure out how > to do a direct connection to it, I am using an ODBC connector with > 32/64-bit ODBC Driver 13 for SQL server. > > Does this help at all? I went through all the encoding types but they all > failed using the textEncode.... when I say fail, I mean not the desired > result. > > Maybe I hone in on the "max" piece of that code?? > > > SKIP From bobsneidar at iotecdigital.com Mon Jul 26 19:28:03 2021 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 26 Jul 2021 23:28:03 +0000 Subject: Also looking for MSSQL integration person In-Reply-To: References: <7ac0fbb6-752b-1dbd-26e6-383757690300@researchware.com> Message-ID: > MSSQL has a try_cast snf cast function. That should read MSSQL has a try_cast AND cast function. Bob S From skiplondon at gmail.com Mon Jul 26 20:44:03 2021 From: skiplondon at gmail.com (Skip Kimpel) Date: Mon, 26 Jul 2021 20:44:03 -0400 Subject: Also looking for MSSQL integration person In-Reply-To: References: <7ac0fbb6-752b-1dbd-26e6-383757690300@researchware.com> Message-ID: try_cast worked!!! I converted those fields, using that technique, into a varchar and BAM! Thank you, Bob! SKIP On Mon, Jul 26, 2021 at 7:29 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > > MSSQL has a try_cast snf cast function. > > That should read MSSQL has a try_cast AND cast function. > > Bob S > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From panos.merakos at livecode.com Tue Jul 27 07:19:45 2021 From: panos.merakos at livecode.com (panagiotis merakos) Date: Tue, 27 Jul 2021 14:19:45 +0300 Subject: [ANN] Release 9.6.3 RC-3 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 9.6.3 RC-3. 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 RC-3 comes with 1 regression fix: - Fix Android build error when 'Allow Http Connections' is checked 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_rc_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.12.6: Xcode 9.2 - LiveCode builds iOS apps using the iOS 11.2 SDK - 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 -- From benr_mc at cogapp.com Tue Jul 27 09:38:49 2021 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 27 Jul 2021 14:38:49 +0100 Subject: Select an object in browse mode sending mouseup Message-ID: <1e418f69-fd37-15d6-8895-23b1577a4aa8@cogapp.com> Is anyone else seeing this problem? I launch LiveCode, choose the pointer tool (double-check because of problems, active tool is definitely the pointer). Click on a button, with the intention of editing the script. The button is selected - dotted line, handles - but it is also sent a 'mouseup' message and it starts executing. I can edit the script - but when I save changes, there's a flash before it says "no errors" and sets the traffic light to green. After several times round this loop, I've discovered the flash is the IDE saying "can't set script while it is executing". So it keeps throwing away my changes - though I can't see this until I next open the script editor and find my changes are gone. This is compounded by some mystery in which LC continues to think the script is running when I don't think it is. This may be related to the fact that the script I'm working on makes a bunch of HTTP requests, so there might be some dodgy threading going on - but I'm not convinced. Once I'm in this situation, I'm not sure that I can get out of it, short of copying the text of my script out, quitting and re-launching LiveCode. And then sneaking up on my button to select it without clicking it! I have found the definitive way to find out whether changes have been saved, without just closing and discovering that they haven't: if I introduce a syntax error in the script, then press apply, then the "can't set script while it is executing" message stays around. Is this just me? I've just started working with this version (LC 9.6.2 Community Plus) so it may be some unfortunate interaction with some bits of my ancient environment. TIA, Ben From jacque at hyperactivesw.com Tue Jul 27 12:19:48 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 27 Jul 2021 11:19:48 -0500 Subject: Select an object in browse mode sending mouseup In-Reply-To: <1e418f69-fd37-15d6-8895-23b1577a4aa8@cogapp.com> References: <1e418f69-fd37-15d6-8895-23b1577a4aa8@cogapp.com> Message-ID: <17ae8c3dca0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I haven't seen that exact problem but I have seen times where the tool palette show the edit tool but acts like the browse tool. When that happens I toggle it a couple of times and it resolves itself. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 27, 2021 8:41:11 AM Ben Rubinstein via use-livecode wrote: > Is anyone else seeing this problem? I launch LiveCode, choose the pointer tool > (double-check because of problems, active tool is definitely the pointer). > > Click on a button, with the intention of editing the script. The button is > selected - dotted line, handles - but it is also sent a 'mouseup' message and > it starts executing. > > I can edit the script - but when I save changes, there's a flash before it > says "no errors" and sets the traffic light to green. After several times > round this loop, I've discovered the flash is the IDE saying "can't set script > while it is executing". So it keeps throwing away my changes - though I can't > see this until I next open the script editor and find my changes are gone. > > This is compounded by some mystery in which LC continues to think the script > is running when I don't think it is. This may be related to the fact that the > script I'm working on makes a bunch of HTTP requests, so there might be some > dodgy threading going on - but I'm not convinced. > > Once I'm in this situation, I'm not sure that I can get out of it, short of > copying the text of my script out, quitting and re-launching LiveCode. And > then sneaking up on my button to select it without clicking it! > > I have found the definitive way to find out whether changes have been saved, > without just closing and discovering that they haven't: if I introduce a > syntax error in the script, then press apply, then the "can't set script while > it is executing" message stays around. > > Is this just me? I've just started working with this version (LC 9.6.2 > Community Plus) so it may be some unfortunate interaction with some bits of my > ancient environment. > > TIA, > > Ben > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From tom at makeshyft.com Tue Jul 27 16:16:09 2021 From: tom at makeshyft.com (Tom Glod) Date: Tue, 27 Jul 2021 16:16:09 -0400 Subject: Select an object in browse mode sending mouseup In-Reply-To: <17ae8c3dca0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1e418f69-fd37-15d6-8895-23b1577a4aa8@cogapp.com> <17ae8c3dca0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: If I recall correctly, this was a long-ish topic a few months back. its worth looking back on, I *think* they got somewhere. On Tue, Jul 27, 2021 at 12:21 PM J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > I haven't seen that exact problem but I have seen times where the tool > palette show the edit tool but acts like the browse tool. When that > happens > I toggle it a couple of times and it resolves itself. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 27, 2021 8:41:11 AM Ben Rubinstein via use-livecode > wrote: > > > Is anyone else seeing this problem? I launch LiveCode, choose the > pointer tool > > (double-check because of problems, active tool is definitely the > pointer). > > > > Click on a button, with the intention of editing the script. The button > is > > selected - dotted line, handles - but it is also sent a 'mouseup' > message and > > it starts executing. > > > > I can edit the script - but when I save changes, there's a flash before > it > > says "no errors" and sets the traffic light to green. After several times > > round this loop, I've discovered the flash is the IDE saying "can't set > script > > while it is executing". So it keeps throwing away my changes - though I > can't > > see this until I next open the script editor and find my changes are > gone. > > > > This is compounded by some mystery in which LC continues to think the > script > > is running when I don't think it is. This may be related to the fact > that the > > script I'm working on makes a bunch of HTTP requests, so there might be > some > > dodgy threading going on - but I'm not convinced. > > > > Once I'm in this situation, I'm not sure that I can get out of it, short > of > > copying the text of my script out, quitting and re-launching LiveCode. > And > > then sneaking up on my button to select it without clicking it! > > > > I have found the definitive way to find out whether changes have been > saved, > > without just closing and discovering that they haven't: if I introduce a > > syntax error in the script, then press apply, then the "can't set script > while > > it is executing" message stays around. > > > > Is this just me? I've just started working with this version (LC 9.6.2 > > Community Plus) so it may be some unfortunate interaction with some bits > of my > > ancient environment. > > > > TIA, > > > > Ben > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 From andre at andregarzia.com Wed Jul 28 09:03:02 2021 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 28 Jul 2021 14:03:02 +0100 Subject: [iOS] possible console bug In-Reply-To: References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> <64f37fb77dc4fafe7e6afa043591f0ed@livecode.com> Message-ID: I?m just bumping this thread because I haven?t been able to see any log information when using the Simulator. Can more people confirm this? Is this a bug, and if so who owns that bug LC or Apple? It becomes really hard to debug a mobile application when you can?t see logs on the Simulator. I made a recipe stack here, but I want to be sure before I fill a bug report. Best A > On 12 Jul 2021, at 23:58, matthias rebbe via use-livecode wrote: > > Andre, > > tested now with LC 9.6.3 and Xcode 12.4, as i am still on Catalina. Took me some time to download Xcode. > > i tried here with 2 different physical devices (iPhone 7 iOS 14.4 and iPhone 12 iOS 14.6) and was able to see the output in the Console log pressing the 'open console' button in Xcode's 'Devices and Simulators' (shift CMD 2) > > I selected my device in that tool and pressed 'open console'. I had the 'Now' mode activated and filtered for my output. I could see the output. > > But i still do not see it when using the simulator. > > Regards, > Matthias > > > >> Am 12.07.2021 um 17:13 schrieb Andre Garzia via use-livecode : >> >> >> >>> On 12 Jul 2021, at 16:02, Mark Waddingham via use-livecode wrote: >>> >>> If you run the app on a real iOS device, do you see your log messages in the device log for it? Could it be Apple are now funneling simulator logs into a pane in Xcode - like they do for devices, rather than have them go to the macOS system log? >> >> Running the app on a real device doesn?t show the log either. >> >> The organiser window of XCode has a specific ?Open Console? button on the pane for the device you selected. >> >> It opens the console and it doesn?t contain the data I?m trying to output from LiveCode. You need to tell it to stream the console data from the phone, it delivers a ton of garbage. Filtering by process or by the string I?m sending ? which is a fixed string at this point since I?m just trying to get the console working ? yields no result whatsoever. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From david.bovill at gmail.com Wed Jul 28 09:11:31 2021 From: david.bovill at gmail.com (David Bovill) Date: Wed, 28 Jul 2021 14:11:31 +0100 Subject: Livecode Electron-style App In-Reply-To: <1e418f69-fd37-15d6-8895-23b1577a4aa8@cogapp.com> References: <1e418f69-fd37-15d6-8895-23b1577a4aa8@cogapp.com> Message-ID: I?m researching for an article on Livecode and javascript for electron-style applications. Would really love some examples to work from, especially around: ? Bidirectional javascript communication ? Custom url schema for browser integration I have a few examples gleaned from the forum and this list, but ti would be great to see a good example of interacting with a useful javascript library in the browser - any examples out there? Also I?m digging up how we might provide some form of link in the browser that opens a Livecode app - I remember doing this many years ago, but about to re-engage :) ?? ??Schedule a call with me From merakosp at gmail.com Wed Jul 28 09:19:38 2021 From: merakosp at gmail.com (panagiotis m) Date: Wed, 28 Jul 2021 16:19:38 +0300 Subject: [iOS] possible console bug In-Reply-To: References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> <64f37fb77dc4fafe7e6afa043591f0ed@livecode.com> Message-ID: Hello Andre, It works as expected for me. MacOS Mojave Xcode 11.3 iOS 13.3 Simulator In the simulator go to Debug -> Open System Log This opens the Console app In the Console window, in the left hand side, you should see the name of the simulator (e.g. "iPhone 8"). Click on it. There will be a lot of logs, so I suggest to filter the output by the standalone name (e.g. type the standalone name, as it appears in the General tab of the S/B in the top right Search box of the Console window) I have a button that does "put the milliseconds && "===================" and I can see the expected output in the console logs every time I press the button in the simulator. Cheers, Panos -- On Wed, 28 Jul 2021 at 16:04, Andre Garzia via use-livecode < use-livecode at lists.runrev.com> wrote: > I?m just bumping this thread because I haven?t been able to see any log > information when using the Simulator. > > Can more people confirm this? Is this a bug, and if so who owns that bug > LC or Apple? > > It becomes really hard to debug a mobile application when you can?t see > logs on the Simulator. > > I made a recipe stack here, but I want to be sure before I fill a bug > report. > > Best > A > > > On 12 Jul 2021, at 23:58, matthias rebbe via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Andre, > > > > tested now with LC 9.6.3 and Xcode 12.4, as i am still on Catalina. > Took me some time to download Xcode. > > > > i tried here with 2 different physical devices (iPhone 7 iOS 14.4 and > iPhone 12 iOS 14.6) and was able to see the output in the Console log > pressing the 'open console' button in Xcode's 'Devices and Simulators' > (shift CMD 2) > > > > I selected my device in that tool and pressed 'open console'. I had the > 'Now' mode activated and filtered for my output. I could see the output. > > > > But i still do not see it when using the simulator. > > > > Regards, > > Matthias > > > > > > > >> Am 12.07.2021 um 17:13 schrieb Andre Garzia via use-livecode < > use-livecode at lists.runrev.com>: > >> > >> > >> > >>> On 12 Jul 2021, at 16:02, Mark Waddingham via use-livecode < > use-livecode at lists.runrev.com> wrote: > >>> > >>> If you run the app on a real iOS device, do you see your log messages > in the device log for it? Could it be Apple are now funneling simulator > logs into a pane in Xcode - like they do for devices, rather than have them > go to the macOS system log? > >> > >> Running the app on a real device doesn?t show the log either. > >> > >> The organiser window of XCode has a specific ?Open Console? button on > the pane for the device you selected. > >> > >> It opens the console and it doesn?t contain the data I?m trying to > output from LiveCode. You need to tell it to stream the console data from > the phone, it delivers a ton of garbage. Filtering by process or by the > string I?m sending ? which is a fixed string at this point since I?m just > trying to get the console working ? yields no result whatsoever. > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From andre at andregarzia.com Wed Jul 28 09:38:20 2021 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 28 Jul 2021 14:38:20 +0100 Subject: [iOS] possible console bug In-Reply-To: References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> <64f37fb77dc4fafe7e6afa043591f0ed@livecode.com> Message-ID: Hi Panos, Hope all is well with you my friend, thanks a lot for the speedy reply. I think things might have changed in Big Sur because I see a different console app. Mine doesn?t have a way to switch to this ?iPhone 8? label. Below is a screenshot from my console app: https://andregarzia.com/files/console-window.png The ?system.log? being shown is definitely the iPhone 8 Simulator one, not only because of the content but also because option-clicking the file on top shows the path to it and it is coming from inside the CoreSimulator folder. Still, I don?t see any output from LiveCode standalone in it. Best A > On 28 Jul 2021, at 14:19, panagiotis m via use-livecode wrote: > > Hello Andre, > > It works as expected for me. > > MacOS Mojave > Xcode 11.3 > iOS 13.3 Simulator > > In the simulator go to Debug -> Open System Log > This opens the Console app > In the Console window, in the left hand side, you should see the name of > the simulator (e.g. "iPhone 8"). Click on it. > There will be a lot of logs, so I suggest to filter the output by the > standalone name (e.g. type the standalone name, as it appears in the > General tab of the S/B in the top right Search box of the Console window) > > I have a button that does "put the milliseconds && "===================" > and I can see the expected output in the console logs every time I press > the button in the simulator. > > Cheers, > Panos > -- > > On Wed, 28 Jul 2021 at 16:04, Andre Garzia via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I?m just bumping this thread because I haven?t been able to see any log >> information when using the Simulator. >> >> Can more people confirm this? Is this a bug, and if so who owns that bug >> LC or Apple? >> >> It becomes really hard to debug a mobile application when you can?t see >> logs on the Simulator. >> >> I made a recipe stack here, but I want to be sure before I fill a bug >> report. >> >> Best >> A >> >>> On 12 Jul 2021, at 23:58, matthias rebbe via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Andre, >>> >>> tested now with LC 9.6.3 and Xcode 12.4, as i am still on Catalina. >> Took me some time to download Xcode. >>> >>> i tried here with 2 different physical devices (iPhone 7 iOS 14.4 and >> iPhone 12 iOS 14.6) and was able to see the output in the Console log >> pressing the 'open console' button in Xcode's 'Devices and Simulators' >> (shift CMD 2) >>> >>> I selected my device in that tool and pressed 'open console'. I had the >> 'Now' mode activated and filtered for my output. I could see the output. >>> >>> But i still do not see it when using the simulator. >>> >>> Regards, >>> Matthias >>> >>> >>> >>>> Am 12.07.2021 um 17:13 schrieb Andre Garzia via use-livecode < >> use-livecode at lists.runrev.com>: >>>> >>>> >>>> >>>>> On 12 Jul 2021, at 16:02, Mark Waddingham via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> If you run the app on a real iOS device, do you see your log messages >> in the device log for it? Could it be Apple are now funneling simulator >> logs into a pane in Xcode - like they do for devices, rather than have them >> go to the macOS system log? >>>> >>>> Running the app on a real device doesn?t show the log either. >>>> >>>> The organiser window of XCode has a specific ?Open Console? button on >> the pane for the device you selected. >>>> >>>> It opens the console and it doesn?t contain the data I?m trying to >> output from LiveCode. You need to tell it to stream the console data from >> the phone, it delivers a ton of garbage. Filtering by process or by the >> string I?m sending ? which is a fixed string at this point since I?m just >> trying to get the console working ? yields no result whatsoever. >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From merakosp at gmail.com Wed Jul 28 09:57:12 2021 From: merakosp at gmail.com (panagiotis m) Date: Wed, 28 Jul 2021 16:57:12 +0300 Subject: [iOS] possible console bug In-Reply-To: References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> <64f37fb77dc4fafe7e6afa043591f0ed@livecode.com> Message-ID: Hello Andre, I am good, thanks for asking. I hope you are well too :) I just tested on Big Sur. I had to do an extra step: When you see the "system.log" window, the one where there is no option to choose "iPhone 8" at the left, force quit the Console app. Then reopen the Console app directly, i.e. not through the Simulator, just go to /Applicatons/Utilities/Console and open it. At this point you should see a different Console window, where choosing "iPhone 8" at the left should be possible. Again, filter by the standalone name because there is a lot of noise. Hope this helps. Kind regards, Panos -- On Wed, 28 Jul 2021 at 16:39, Andre Garzia via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Panos, > > Hope all is well with you my friend, thanks a lot for the speedy reply. > > I think things might have changed in Big Sur because I see a different > console app. Mine doesn?t have a way to switch to this ?iPhone 8? label. > Below is a screenshot from my console app: > > https://andregarzia.com/files/console-window.png < > https://andregarzia.com/files/console-window.png> > > The ?system.log? being shown is definitely the iPhone 8 Simulator one, not > only because of the content but also because option-clicking the file on > top shows the path to it and it is coming from inside the CoreSimulator > folder. > > Still, I don?t see any output from LiveCode standalone in it. > > Best > A > > > > On 28 Jul 2021, at 14:19, panagiotis m via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hello Andre, > > > > It works as expected for me. > > > > MacOS Mojave > > Xcode 11.3 > > iOS 13.3 Simulator > > > > In the simulator go to Debug -> Open System Log > > This opens the Console app > > In the Console window, in the left hand side, you should see the name of > > the simulator (e.g. "iPhone 8"). Click on it. > > There will be a lot of logs, so I suggest to filter the output by the > > standalone name (e.g. type the standalone name, as it appears in the > > General tab of the S/B in the top right Search box of the Console window) > > > > I have a button that does "put the milliseconds && "===================" > > and I can see the expected output in the console logs every time I press > > the button in the simulator. > > > > Cheers, > > Panos > > -- > > > > On Wed, 28 Jul 2021 at 16:04, Andre Garzia via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> I?m just bumping this thread because I haven?t been able to see any log > >> information when using the Simulator. > >> > >> Can more people confirm this? Is this a bug, and if so who owns that bug > >> LC or Apple? > >> > >> It becomes really hard to debug a mobile application when you can?t see > >> logs on the Simulator. > >> > >> I made a recipe stack here, but I want to be sure before I fill a bug > >> report. > >> > >> Best > >> A > >> > >>> On 12 Jul 2021, at 23:58, matthias rebbe via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>> > >>> Andre, > >>> > >>> tested now with LC 9.6.3 and Xcode 12.4, as i am still on Catalina. > >> Took me some time to download Xcode. > >>> > >>> i tried here with 2 different physical devices (iPhone 7 iOS 14.4 and > >> iPhone 12 iOS 14.6) and was able to see the output in the Console log > >> pressing the 'open console' button in Xcode's 'Devices and Simulators' > >> (shift CMD 2) > >>> > >>> I selected my device in that tool and pressed 'open console'. I had the > >> 'Now' mode activated and filtered for my output. I could see the output. > >>> > >>> But i still do not see it when using the simulator. > >>> > >>> Regards, > >>> Matthias > >>> > >>> > >>> > >>>> Am 12.07.2021 um 17:13 schrieb Andre Garzia via use-livecode < > >> use-livecode at lists.runrev.com>: > >>>> > >>>> > >>>> > >>>>> On 12 Jul 2021, at 16:02, Mark Waddingham via use-livecode < > >> use-livecode at lists.runrev.com> wrote: > >>>>> > >>>>> If you run the app on a real iOS device, do you see your log messages > >> in the device log for it? Could it be Apple are now funneling simulator > >> logs into a pane in Xcode - like they do for devices, rather than have > them > >> go to the macOS system log? > >>>> > >>>> Running the app on a real device doesn?t show the log either. > >>>> > >>>> The organiser window of XCode has a specific ?Open Console? button on > >> the pane for the device you selected. > >>>> > >>>> It opens the console and it doesn?t contain the data I?m trying to > >> output from LiveCode. You need to tell it to stream the console data > from > >> the phone, it delivers a ton of garbage. Filtering by process or by the > >> string I?m sending ? which is a fixed string at this point since I?m > just > >> trying to get the console working ? yields no result whatsoever. > >>>> _______________________________________________ > >>>> use-livecode mailing list > >>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From merakosp at gmail.com Wed Jul 28 10:00:47 2021 From: merakosp at gmail.com (panagiotis m) Date: Wed, 28 Jul 2021 17:00:47 +0300 Subject: [iOS] possible console bug In-Reply-To: References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> <64f37fb77dc4fafe7e6afa043591f0ed@livecode.com> Message-ID: In fact a neater way to do that, instead of force-quitting Console app and reopening it, is to click on the system.log window to give the focus to the Console app, and then in Console's top menubar click Window-> Console This will open the Console window where it is possible to choose the connected device or the running simulator. Cheers, Panos -- On Wed, 28 Jul 2021 at 16:57, panagiotis m wrote: > Hello Andre, > > I am good, thanks for asking. I hope you are well too :) > > I just tested on Big Sur. I had to do an extra step: > > When you see the "system.log" window, the one where there is no option to > choose "iPhone 8" at the left, force quit the Console app. Then reopen the > Console app directly, i.e. not through the Simulator, just go to > /Applicatons/Utilities/Console and open it. > > At this point you should see a different Console window, where choosing > "iPhone 8" at the left should be possible. Again, filter by the standalone > name because there is a lot of noise. > > Hope this helps. > > Kind regards, > Panos > -- > > On Wed, 28 Jul 2021 at 16:39, Andre Garzia via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Panos, >> >> Hope all is well with you my friend, thanks a lot for the speedy reply. >> >> I think things might have changed in Big Sur because I see a different >> console app. Mine doesn?t have a way to switch to this ?iPhone 8? label. >> Below is a screenshot from my console app: >> >> https://andregarzia.com/files/console-window.png < >> https://andregarzia.com/files/console-window.png> >> >> The ?system.log? being shown is definitely the iPhone 8 Simulator one, >> not only because of the content but also because option-clicking the file >> on top shows the path to it and it is coming from inside the CoreSimulator >> folder. >> >> Still, I don?t see any output from LiveCode standalone in it. >> >> Best >> A >> >> >> > On 28 Jul 2021, at 14:19, panagiotis m via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> > >> > Hello Andre, >> > >> > It works as expected for me. >> > >> > MacOS Mojave >> > Xcode 11.3 >> > iOS 13.3 Simulator >> > >> > In the simulator go to Debug -> Open System Log >> > This opens the Console app >> > In the Console window, in the left hand side, you should see the name of >> > the simulator (e.g. "iPhone 8"). Click on it. >> > There will be a lot of logs, so I suggest to filter the output by the >> > standalone name (e.g. type the standalone name, as it appears in the >> > General tab of the S/B in the top right Search box of the Console >> window) >> > >> > I have a button that does "put the milliseconds && "===================" >> > and I can see the expected output in the console logs every time I press >> > the button in the simulator. >> > >> > Cheers, >> > Panos >> > -- >> > >> > On Wed, 28 Jul 2021 at 16:04, Andre Garzia via use-livecode < >> > use-livecode at lists.runrev.com> wrote: >> > >> >> I?m just bumping this thread because I haven?t been able to see any log >> >> information when using the Simulator. >> >> >> >> Can more people confirm this? Is this a bug, and if so who owns that >> bug >> >> LC or Apple? >> >> >> >> It becomes really hard to debug a mobile application when you can?t see >> >> logs on the Simulator. >> >> >> >> I made a recipe stack here, but I want to be sure before I fill a bug >> >> report. >> >> >> >> Best >> >> A >> >> >> >>> On 12 Jul 2021, at 23:58, matthias rebbe via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >>> >> >>> Andre, >> >>> >> >>> tested now with LC 9.6.3 and Xcode 12.4, as i am still on Catalina. >> >> Took me some time to download Xcode. >> >>> >> >>> i tried here with 2 different physical devices (iPhone 7 iOS 14.4 and >> >> iPhone 12 iOS 14.6) and was able to see the output in the Console log >> >> pressing the 'open console' button in Xcode's 'Devices and Simulators' >> >> (shift CMD 2) >> >>> >> >>> I selected my device in that tool and pressed 'open console'. I had >> the >> >> 'Now' mode activated and filtered for my output. I could see the >> output. >> >>> >> >>> But i still do not see it when using the simulator. >> >>> >> >>> Regards, >> >>> Matthias >> >>> >> >>> >> >>> >> >>>> Am 12.07.2021 um 17:13 schrieb Andre Garzia via use-livecode < >> >> use-livecode at lists.runrev.com>: >> >>>> >> >>>> >> >>>> >> >>>>> On 12 Jul 2021, at 16:02, Mark Waddingham via use-livecode < >> >> use-livecode at lists.runrev.com> wrote: >> >>>>> >> >>>>> If you run the app on a real iOS device, do you see your log >> messages >> >> in the device log for it? Could it be Apple are now funneling simulator >> >> logs into a pane in Xcode - like they do for devices, rather than have >> them >> >> go to the macOS system log? >> >>>> >> >>>> Running the app on a real device doesn?t show the log either. >> >>>> >> >>>> The organiser window of XCode has a specific ?Open Console? button on >> >> the pane for the device you selected. >> >>>> >> >>>> It opens the console and it doesn?t contain the data I?m trying to >> >> output from LiveCode. You need to tell it to stream the console data >> from >> >> the phone, it delivers a ton of garbage. Filtering by process or by the >> >> string I?m sending ? which is a fixed string at this point since I?m >> just >> >> trying to get the console working ? yields no result whatsoever. >> >>>> _______________________________________________ >> >>>> use-livecode mailing list >> >>>> use-livecode at 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 at 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 at 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 at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > From matthias_livecode_150811 at m-r-d.de Wed Jul 28 12:19:46 2021 From: matthias_livecode_150811 at m-r-d.de (matthias_livecode_150811 at m-r-d.de) Date: Wed, 28 Jul 2021 18:19:46 +0200 Subject: [iOS] possible console bug In-Reply-To: References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> <64f37fb77dc4fafe7e6afa043591f0ed@livecode.com> Message-ID: I tested here with Big Sur/LC9.6.3 RC2 and Simulator. I can confirm that doing it like Panos described will show the put output. But you have to press the "Start" icon at the top in Console app before the put output is captured by the Console app. So if you did the output in the app before you pressed the "start" button, that previous output is not listed in the console. Only 'put outputs' which where done after pressing start are listed in the log. Regards Matthias > Am 28.07.2021 um 15:57 schrieb panagiotis m via use-livecode : > > Hello Andre, > > I am good, thanks for asking. I hope you are well too :) > > I just tested on Big Sur. I had to do an extra step: > > When you see the "system.log" window, the one where there is no option to > choose "iPhone 8" at the left, force quit the Console app. Then reopen the > Console app directly, i.e. not through the Simulator, just go to > /Applicatons/Utilities/Console and open it. > > At this point you should see a different Console window, where choosing > "iPhone 8" at the left should be possible. Again, filter by the standalone > name because there is a lot of noise. > > Hope this helps. > > Kind regards, > Panos > -- > > On Wed, 28 Jul 2021 at 16:39, Andre Garzia via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi Panos, >> >> Hope all is well with you my friend, thanks a lot for the speedy reply. >> >> I think things might have changed in Big Sur because I see a different >> console app. Mine doesn?t have a way to switch to this ?iPhone 8? label. >> Below is a screenshot from my console app: >> >> https://andregarzia.com/files/console-window.png < >> https://andregarzia.com/files/console-window.png> >> >> The ?system.log? being shown is definitely the iPhone 8 Simulator one, not >> only because of the content but also because option-clicking the file on >> top shows the path to it and it is coming from inside the CoreSimulator >> folder. >> >> Still, I don?t see any output from LiveCode standalone in it. >> >> Best >> A >> >> >>> On 28 Jul 2021, at 14:19, panagiotis m via use-livecode < >> use-livecode at lists.runrev.com> wrote: >>> >>> Hello Andre, >>> >>> It works as expected for me. >>> >>> MacOS Mojave >>> Xcode 11.3 >>> iOS 13.3 Simulator >>> >>> In the simulator go to Debug -> Open System Log >>> This opens the Console app >>> In the Console window, in the left hand side, you should see the name of >>> the simulator (e.g. "iPhone 8"). Click on it. >>> There will be a lot of logs, so I suggest to filter the output by the >>> standalone name (e.g. type the standalone name, as it appears in the >>> General tab of the S/B in the top right Search box of the Console window) >>> >>> I have a button that does "put the milliseconds && "===================" >>> and I can see the expected output in the console logs every time I press >>> the button in the simulator. >>> >>> Cheers, >>> Panos >>> -- >>> >>> On Wed, 28 Jul 2021 at 16:04, Andre Garzia via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>> >>>> I?m just bumping this thread because I haven?t been able to see any log >>>> information when using the Simulator. >>>> >>>> Can more people confirm this? Is this a bug, and if so who owns that bug >>>> LC or Apple? >>>> >>>> It becomes really hard to debug a mobile application when you can?t see >>>> logs on the Simulator. >>>> >>>> I made a recipe stack here, but I want to be sure before I fill a bug >>>> report. >>>> >>>> Best >>>> A >>>> >>>>> On 12 Jul 2021, at 23:58, matthias rebbe via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Andre, >>>>> >>>>> tested now with LC 9.6.3 and Xcode 12.4, as i am still on Catalina. >>>> Took me some time to download Xcode. >>>>> >>>>> i tried here with 2 different physical devices (iPhone 7 iOS 14.4 and >>>> iPhone 12 iOS 14.6) and was able to see the output in the Console log >>>> pressing the 'open console' button in Xcode's 'Devices and Simulators' >>>> (shift CMD 2) >>>>> >>>>> I selected my device in that tool and pressed 'open console'. I had the >>>> 'Now' mode activated and filtered for my output. I could see the output. >>>>> >>>>> But i still do not see it when using the simulator. >>>>> >>>>> Regards, >>>>> Matthias >>>>> >>>>> >>>>> >>>>>> Am 12.07.2021 um 17:13 schrieb Andre Garzia via use-livecode < >>>> use-livecode at lists.runrev.com>: >>>>>> >>>>>> >>>>>> >>>>>>> On 12 Jul 2021, at 16:02, Mark Waddingham via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>>>>> >>>>>>> If you run the app on a real iOS device, do you see your log messages >>>> in the device log for it? Could it be Apple are now funneling simulator >>>> logs into a pane in Xcode - like they do for devices, rather than have >> them >>>> go to the macOS system log? >>>>>> >>>>>> Running the app on a real device doesn?t show the log either. >>>>>> >>>>>> The organiser window of XCode has a specific ?Open Console? button on >>>> the pane for the device you selected. >>>>>> >>>>>> It opens the console and it doesn?t contain the data I?m trying to >>>> output from LiveCode. You need to tell it to stream the console data >> from >>>> the phone, it delivers a ton of garbage. Filtering by process or by the >>>> string I?m sending ? which is a fixed string at this point since I?m >> just >>>> trying to get the console working ? yields no result whatsoever. >>>>>> _______________________________________________ >>>>>> use-livecode mailing list >>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Wed Jul 28 13:13:06 2021 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 28 Jul 2021 18:13:06 +0100 Subject: Select an object in browse mode sending mouseup In-Reply-To: <17ae8c3dca0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <1e418f69-fd37-15d6-8895-23b1577a4aa8@cogapp.com> <17ae8c3dca0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <1c5655be-b961-191f-406b-84bd38678d7e@cogapp.com> Hi Jacque Yes I've seen that, enough that when launching LC I usually reflectively toggle comand-9/command-0 a few times. But this isn't that. After the first few times I've toggled off and on, I've selected from the Tools menu, I've clicked on a field (with no script) first to prove that I've got the pointer tool... and still I get this problem. thanks for responding though. Ben On 27/07/2021 17:19, J. Landman Gay via use-livecode wrote: > I haven't seen that exact problem but I have seen times where the tool palette > show the edit tool but acts like the browse tool. When that happens I toggle > it a couple of times and it resolves itself. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 27, 2021 8:41:11 AM Ben Rubinstein via use-livecode > wrote: > >> Is anyone else seeing this problem? I launch LiveCode, choose the pointer tool >> (double-check because of problems, active tool is definitely the pointer). >> >> Click on a button, with the intention of editing the script. The button is >> selected - dotted line, handles - but it is also sent a 'mouseup' message and >> it starts executing. >> >> I can edit the script - but when I save changes, there's a flash before it >> says "no errors" and sets the traffic light to green. After several times >> round this loop, I've discovered the flash is the IDE saying "can't set script >> while it is executing". So it keeps throwing away my changes - though I can't >> see this until I next open the script editor and find my changes are gone. >> >> This is compounded by some mystery in which LC continues to think the script >> is running when I don't think it is. This may be related to the fact that the >> script I'm working on makes a bunch of HTTP requests, so there might be some >> dodgy threading going on - but I'm not convinced. >> >> Once I'm in this situation, I'm not sure that I can get out of it, short of >> copying the text of my script out, quitting and re-launching LiveCode. And >> then sneaking up on my button to select it without clicking it! >> >> I have found the definitive way to find out whether changes have been saved, >> without just closing and discovering that they haven't: if I introduce a >> syntax error in the script, then press apply, then the "can't set script while >> it is executing" message stays around. >> >> Is this just me? I've just started working with this version (LC 9.6.2 >> Community Plus) so it may be some unfortunate interaction with some bits of my >> ancient environment. >> >> TIA, >> >> Ben >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr_mc at cogapp.com Wed Jul 28 13:14:07 2021 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 28 Jul 2021 18:14:07 +0100 Subject: Select an object in browse mode sending mouseup In-Reply-To: References: <1e418f69-fd37-15d6-8895-23b1577a4aa8@cogapp.com> <17ae8c3dca0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <64370a8f-6d43-09d8-80b3-54a74d07f341@cogapp.com> Hi Tom, I've crawled the list but not found it - can you remember anyone involved in the thread or any keywords? Many thanks, Ben On 27/07/2021 21:16, Tom Glod via use-livecode wrote: > If I recall correctly, this was a long-ish topic a few months back. its > worth looking back on, I *think* they got somewhere. > > On Tue, Jul 27, 2021 at 12:21 PM J. Landman Gay via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I haven't seen that exact problem but I have seen times where the tool >> palette show the edit tool but acts like the browse tool. When that >> happens >> I toggle it a couple of times and it resolves itself. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> On July 27, 2021 8:41:11 AM Ben Rubinstein via use-livecode >> wrote: >> >>> Is anyone else seeing this problem? I launch LiveCode, choose the >> pointer tool >>> (double-check because of problems, active tool is definitely the >> pointer). >>> >>> Click on a button, with the intention of editing the script. The button >> is >>> selected - dotted line, handles - but it is also sent a 'mouseup' >> message and >>> it starts executing. >>> >>> I can edit the script - but when I save changes, there's a flash before >> it >>> says "no errors" and sets the traffic light to green. After several times >>> round this loop, I've discovered the flash is the IDE saying "can't set >> script >>> while it is executing". So it keeps throwing away my changes - though I >> can't >>> see this until I next open the script editor and find my changes are >> gone. >>> >>> This is compounded by some mystery in which LC continues to think the >> script >>> is running when I don't think it is. This may be related to the fact >> that the >>> script I'm working on makes a bunch of HTTP requests, so there might be >> some >>> dodgy threading going on - but I'm not convinced. >>> >>> Once I'm in this situation, I'm not sure that I can get out of it, short >> of >>> copying the text of my script out, quitting and re-launching LiveCode. >> And >>> then sneaking up on my button to select it without clicking it! >>> >>> I have found the definitive way to find out whether changes have been >> saved, >>> without just closing and discovering that they haven't: if I introduce a >>> syntax error in the script, then press apply, then the "can't set script >> while >>> it is executing" message stays around. >>> >>> Is this just me? I've just started working with this version (LC 9.6.2 >>> Community Plus) so it may be some unfortunate interaction with some bits >> of my >>> ancient environment. >>> >>> TIA, >>> >>> Ben >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at 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 at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From klaus at major-k.de Wed Jul 28 13:18:34 2021 From: klaus at major-k.de (Klaus major-k) Date: Wed, 28 Jul 2021 19:18:34 +0200 Subject: Select an object in browse mode sending mouseup In-Reply-To: <64370a8f-6d43-09d8-80b3-54a74d07f341@cogapp.com> References: <1e418f69-fd37-15d6-8895-23b1577a4aa8@cogapp.com> <17ae8c3dca0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <64370a8f-6d43-09d8-80b3-54a74d07f341@cogapp.com> Message-ID: <45804FAB-E319-4C3E-8A17-726E14BEEBF1@major-k.de> Hi Ben, > Am 28.07.2021 um 19:14 schrieb Ben Rubinstein via use-livecode : > > Hi Tom, > > I've crawled the list but not found it - can you remember anyone involved in the thread or any keywords? that was my thread where I asked if executing MOUSEENTER is correct with POINTER tool selected. So look for "pointer tool" and "mouseenter" > Many thanks, > > Ben Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From marksmithhfx at gmail.com Wed Jul 28 16:07:25 2021 From: marksmithhfx at gmail.com (Mark Smith) Date: Wed, 28 Jul 2021 21:07:25 +0100 Subject: [iOS] possible console bug In-Reply-To: References: <17F2EA35-AEEE-426A-B29E-CDB97B62DB21@andregarzia.com> <9E7A8F3D-7795-4E2B-A733-D52FE0117387@m-r-d.de> <64f37fb77dc4fafe7e6afa043591f0ed@livecode.com> Message-ID: Tested with Catalina / LC9.6.2 / Simulator. Works as Panos described although with this setup I did not see a Start button, and I never clicked on anything. I did see the ?put? messages from my app go to the Console. PS filter as Panos suggests works great to filter just the messages from your app. Mark > On Jul 28, 2021, at 5:19 PM, matthias rebbe via use-livecode wrote: > > I tested here with Big Sur/LC9.6.3 RC2 and Simulator. > > I can confirm that doing it like Panos described will show the put output. > > But you have to press the "Start" icon at the top in Console app before the put output is captured by the Console app. > So if you did the output in the app before you pressed the "start" button, that previous output is not listed in the console. Only 'put outputs' which where done after pressing start are listed in the log. > > > Regards > Matthias > > >> Am 28.07.2021 um 15:57 schrieb panagiotis m via use-livecode : >> >> Hello Andre, >> >> I am good, thanks for asking. I hope you are well too :) >> >> I just tested on Big Sur. I had to do an extra step: >> >> When you see the "system.log" window, the one where there is no option to >> choose "iPhone 8" at the left, force quit the Console app. Then reopen the >> Console app directly, i.e. not through the Simulator, just go to >> /Applicatons/Utilities/Console and open it. >> >> At this point you should see a different Console window, where choosing >> "iPhone 8" at the left should be possible. Again, filter by the standalone >> name because there is a lot of noise. >> >> Hope this helps. >> >> Kind regards, >> Panos >> -- >> >> On Wed, 28 Jul 2021 at 16:39, Andre Garzia via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> Hi Panos, >>> >>> Hope all is well with you my friend, thanks a lot for the speedy reply. >>> >>> I think things might have changed in Big Sur because I see a different >>> console app. Mine doesn?t have a way to switch to this ?iPhone 8? label. >>> Below is a screenshot from my console app: >>> >>> https://andregarzia.com/files/console-window.png < >>> https://andregarzia.com/files/console-window.png> >>> >>> The ?system.log? being shown is definitely the iPhone 8 Simulator one, not >>> only because of the content but also because option-clicking the file on >>> top shows the path to it and it is coming from inside the CoreSimulator >>> folder. >>> >>> Still, I don?t see any output from LiveCode standalone in it. >>> >>> Best >>> A >>> >>> >>>> On 28 Jul 2021, at 14:19, panagiotis m via use-livecode < >>> use-livecode at lists.runrev.com> wrote: >>>> >>>> Hello Andre, >>>> >>>> It works as expected for me. >>>> >>>> MacOS Mojave >>>> Xcode 11.3 >>>> iOS 13.3 Simulator >>>> >>>> In the simulator go to Debug -> Open System Log >>>> This opens the Console app >>>> In the Console window, in the left hand side, you should see the name of >>>> the simulator (e.g. "iPhone 8"). Click on it. >>>> There will be a lot of logs, so I suggest to filter the output by the >>>> standalone name (e.g. type the standalone name, as it appears in the >>>> General tab of the S/B in the top right Search box of the Console window) >>>> >>>> I have a button that does "put the milliseconds && "===================" >>>> and I can see the expected output in the console logs every time I press >>>> the button in the simulator. >>>> >>>> Cheers, >>>> Panos >>>> -- >>>> >>>> On Wed, 28 Jul 2021 at 16:04, Andre Garzia via use-livecode < >>>> use-livecode at lists.runrev.com> wrote: >>>> >>>>> I?m just bumping this thread because I haven?t been able to see any log >>>>> information when using the Simulator. >>>>> >>>>> Can more people confirm this? Is this a bug, and if so who owns that bug >>>>> LC or Apple? >>>>> >>>>> It becomes really hard to debug a mobile application when you can?t see >>>>> logs on the Simulator. >>>>> >>>>> I made a recipe stack here, but I want to be sure before I fill a bug >>>>> report. >>>>> >>>>> Best >>>>> A >>>>> >>>>>> On 12 Jul 2021, at 23:58, matthias rebbe via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Andre, >>>>>> >>>>>> tested now with LC 9.6.3 and Xcode 12.4, as i am still on Catalina. >>>>> Took me some time to download Xcode. >>>>>> >>>>>> i tried here with 2 different physical devices (iPhone 7 iOS 14.4 and >>>>> iPhone 12 iOS 14.6) and was able to see the output in the Console log >>>>> pressing the 'open console' button in Xcode's 'Devices and Simulators' >>>>> (shift CMD 2) >>>>>> >>>>>> I selected my device in that tool and pressed 'open console'. I had the >>>>> 'Now' mode activated and filtered for my output. I could see the output. >>>>>> >>>>>> But i still do not see it when using the simulator. >>>>>> >>>>>> Regards, >>>>>> Matthias >>>>>> >>>>>> >>>>>> >>>>>>> Am 12.07.2021 um 17:13 schrieb Andre Garzia via use-livecode < >>>>> use-livecode at lists.runrev.com>: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> On 12 Jul 2021, at 16:02, Mark Waddingham via use-livecode < >>>>> use-livecode at lists.runrev.com> wrote: >>>>>>>> >>>>>>>> If you run the app on a real iOS device, do you see your log messages >>>>> in the device log for it? Could it be Apple are now funneling simulator >>>>> logs into a pane in Xcode - like they do for devices, rather than have >>> them >>>>> go to the macOS system log? >>>>>>> >>>>>>> Running the app on a real device doesn?t show the log either. >>>>>>> >>>>>>> The organiser window of XCode has a specific ?Open Console? button on >>>>> the pane for the device you selected. >>>>>>> >>>>>>> It opens the console and it doesn?t contain the data I?m trying to >>>>> output from LiveCode. You need to tell it to stream the console data >>> from >>>>> the phone, it delivers a ton of garbage. Filtering by process or by the >>>>> string I?m sending ? which is a fixed string at this point since I?m >>> just >>>>> trying to get the console working ? yields no result whatsoever. >>>>>>> _______________________________________________ >>>>>>> use-livecode mailing list >>>>>>> use-livecode at 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 at 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 at 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 at 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 at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From benr at cogapp.com Wed Jul 28 17:34:06 2021 From: benr at cogapp.com (Ben Rubinstein) Date: Wed, 28 Jul 2021 22:34:06 +0100 Subject: Jim Lambert is not crazy! (Re: Select an object in browse mode sending mouseup) In-Reply-To: <45804FAB-E319-4C3E-8A17-726E14BEEBF1@major-k.de> References: <1e418f69-fd37-15d6-8895-23b1577a4aa8@cogapp.com> <17ae8c3dca0.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <64370a8f-6d43-09d8-80b3-54a74d07f341@cogapp.com> <45804FAB-E319-4C3E-8A17-726E14BEEBF1@major-k.de> Message-ID: <68b2441c-e71c-fbb2-be9c-3959becc8cfb@cogapp.com> Thanks Jim for reassuring me that *I'm* not crazy, and Tom and Klaus for pointing me to the thread. On 30/03/2021 00:46, Jim Lambert via use-livecode wrote: > Nevermind. Those scripts are not firing when using the pointer tool. > I'm crazy!!! On 30/03/2021 21:10, Jim Lambert via use-livecode wrote: > Actually I'm not entirely crazy. Like Jim I've encountered this problem occasionally; but my new problem was that it was completely consistent. I've found the source of my problem (at least my new one): a mergDeploy stack that was in the ~/Documents/Livecode/Plugins. This is a very cool utility that was very useful some years ago when I was doing a lot more iOS development; but I'd long forgotten I had it. It has not as far as I know caused me problems before, but it seems to be consistent now. I no longer need it, so (phew). Thanks for all the pointers. Ben On 28/07/2021 18:18, Klaus major-k via use-livecode wrote: > Hi Ben, > >> Am 28.07.2021 um 19:14 schrieb Ben Rubinstein via use-livecode : >> >> Hi Tom, >> >> I've crawled the list but not found it - can you remember anyone involved in the thread or any keywords? > > that was my thread where I asked if executing MOUSEENTER is correct with POINTER tool selected. > So look for "pointer tool" and "mouseenter" > >> Many thanks, >> >> Ben > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From skiplondon at gmail.com Thu Jul 29 08:42:54 2021 From: skiplondon at gmail.com (Skip Kimpel) Date: Thu, 29 Jul 2021 08:42:54 -0400 Subject: Most streamlined method to get data Message-ID: I have a variable that contains: ,Name,,,Quantity,,,,,Total,,,Percent ,Dine In,,,189,,,,,"$4,812.71",,,57.96% ,Take Out,,,72,,,,,"$1,676.43",,,20.19% ,3rd Party,,,54,,,,,"$1,779.35",,,21.43% ,Bakery,,,3,,,,,$34.83,,,0.42% ,Total,,,318,,,,,"$8,303.32",,, What is the best way to get 8303.32 from that last line. Obviously, the complexity is the commas and getting rid of the dollar sign as well. I know I am going to kick myself when somebody answers.... I am blank this morning. (NEED MORE COFFEE!!!!!) SKIP From craig at starfirelighting.com Thu Jul 29 08:53:19 2021 From: craig at starfirelighting.com (Craig Newman) Date: Thu, 29 Jul 2021 08:53:19 -0400 Subject: Most streamlined method to get data In-Reply-To: References: Message-ID: Hi. I s the value you want always in the last line? If so, that dollar sign is always in a place that can be referenced: set the itemDel to ?$? put the last item of the last line of yourCommaInfestedData into eureka replace quote with empty in eureka Craig > On Jul 29, 2021, at 8:42 AM, Skip Kimpel via use-livecode wrote: > > I have a variable that contains: > > ,Name,,,Quantity,,,,,Total,,,Percent > > ,Dine In,,,189,,,,,"$4,812.71",,,57.96% > > ,Take Out,,,72,,,,,"$1,676.43",,,20.19% > > ,3rd Party,,,54,,,,,"$1,779.35",,,21.43% > > ,Bakery,,,3,,,,,$34.83,,,0.42% > > ,Total,,,318,,,,,"$8,303.32",,, > > > What is the best way to get 8303.32 from that last line. Obviously, the > complexity is the commas and getting rid of the dollar sign as well. > > > I know I am going to kick myself when somebody answers.... I am blank this > morning. (NEED MORE COFFEE!!!!!) > > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Thu Jul 29 08:54:22 2021 From: craig at starfirelighting.com (Craig Newman) Date: Thu, 29 Jul 2021 08:54:22 -0400 Subject: Most streamlined method to get data In-Reply-To: References: Message-ID: Looking at this again, two seconds later, you may also want to; replace comma with empty in eureka Craig > On Jul 29, 2021, at 8:42 AM, Skip Kimpel via use-livecode wrote: > > I have a variable that contains: > > ,Name,,,Quantity,,,,,Total,,,Percent > > ,Dine In,,,189,,,,,"$4,812.71",,,57.96% > > ,Take Out,,,72,,,,,"$1,676.43",,,20.19% > > ,3rd Party,,,54,,,,,"$1,779.35",,,21.43% > > ,Bakery,,,3,,,,,$34.83,,,0.42% > > ,Total,,,318,,,,,"$8,303.32",,, > > > What is the best way to get 8303.32 from that last line. Obviously, the > complexity is the commas and getting rid of the dollar sign as well. > > > I know I am going to kick myself when somebody answers.... I am blank this > morning. (NEED MORE COFFEE!!!!!) > > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From craig at starfirelighting.com Thu Jul 29 08:56:01 2021 From: craig at starfirelighting.com (Craig Newman) Date: Thu, 29 Jul 2021 08:56:01 -0400 Subject: Most streamlined method to get data In-Reply-To: References: Message-ID: <188AAF6A-65C3-4DDF-B719-C75D2AC8574C@starfirelighting.com> Ugh. I really do not like the format of the use-list. Anyway, don?t just replace comma with empty. Do it to the trailing commas only. This can be done in several ways. Craig > On Jul 29, 2021, at 8:42 AM, Skip Kimpel via use-livecode wrote: > > I have a variable that contains: > > ,Name,,,Quantity,,,,,Total,,,Percent > > ,Dine In,,,189,,,,,"$4,812.71",,,57.96% > > ,Take Out,,,72,,,,,"$1,676.43",,,20.19% > > ,3rd Party,,,54,,,,,"$1,779.35",,,21.43% > > ,Bakery,,,3,,,,,$34.83,,,0.42% > > ,Total,,,318,,,,,"$8,303.32",,, > > > What is the best way to get 8303.32 from that last line. Obviously, the > complexity is the commas and getting rid of the dollar sign as well. > > > I know I am going to kick myself when somebody answers.... I am blank this > morning. (NEED MORE COFFEE!!!!!) > > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ckelly5430 at gmail.com Thu Jul 29 09:10:27 2021 From: ckelly5430 at gmail.com (Colin Kelly) Date: Thu, 29 Jul 2021 13:10:27 +0000 Subject: Most streamlined method to get data In-Reply-To: <188AAF6A-65C3-4DDF-B719-C75D2AC8574C@starfirelighting.com> References: , <188AAF6A-65C3-4DDF-B719-C75D2AC8574C@starfirelighting.com> Message-ID: Put the last trueword of yourVariable That should do what you need ? Col. From: use-livecode on behalf of Craig Newman via use-livecode Date: Thursday, 29 July 2021 at 13:56 To: How to use LiveCode Cc: Craig Newman Subject: Re: Most streamlined method to get data Ugh. I really do not like the format of the use-list. Anyway, don?t just replace comma with empty. Do it to the trailing commas only. This can be done in several ways. Craig > On Jul 29, 2021, at 8:42 AM, Skip Kimpel via use-livecode wrote: > > I have a variable that contains: > > ,Name,,,Quantity,,,,,Total,,,Percent > > ,Dine In,,,189,,,,,"$4,812.71",,,57.96% > > ,Take Out,,,72,,,,,"$1,676.43",,,20.19% > > ,3rd Party,,,54,,,,,"$1,779.35",,,21.43% > > ,Bakery,,,3,,,,,$34.83,,,0.42% > > ,Total,,,318,,,,,"$8,303.32",,, > > > What is the best way to get 8303.32 from that last line. Obviously, the > complexity is the commas and getting rid of the dollar sign as well. > > > I know I am going to kick myself when somebody answers.... I am blank this > morning. (NEED MORE COFFEE!!!!!) > > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From harrison at all-auctions.com Thu Jul 29 10:22:07 2021 From: harrison at all-auctions.com (Rick Harrison) Date: Thu, 29 Jul 2021 10:22:07 -0400 Subject: Most streamlined method to get data In-Reply-To: References: <188AAF6A-65C3-4DDF-B719-C75D2AC8574C@starfirelighting.com> Message-ID: <8289C822-2590-4F70-B9C5-0228A19FC84C@all-auctions.com> Nice solution Colin! Rick > On Jul 29, 2021, at 9:10 AM, Colin Kelly via use-livecode wrote: > > Put the last trueword of yourVariable From craig at starfirelighting.com Thu Jul 29 11:40:13 2021 From: craig at starfirelighting.com (Craig Newman) Date: Thu, 29 Jul 2021 11:40:13 -0400 Subject: Most streamlined method to get data In-Reply-To: <8289C822-2590-4F70-B9C5-0228A19FC84C@all-auctions.com> References: <188AAF6A-65C3-4DDF-B719-C75D2AC8574C@starfirelighting.com> <8289C822-2590-4F70-B9C5-0228A19FC84C@all-auctions.com> Message-ID: "Nice solution Colin!? Agreed. Have to get down with these fancy new gadgets. Craig > On Jul 29, 2021, at 10:22 AM, Rick Harrison via use-livecode wrote: > > Nice solution Colin! From benr_mc at cogapp.com Thu Jul 29 12:24:17 2021 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 29 Jul 2021 17:24:17 +0100 Subject: Most streamlined method to get data In-Reply-To: References: Message-ID: <2de2afd3-87d4-8de0-9a20-252a40745637@cogapp.com> As grepophile, I'd go for some variation on get matchText(last line of myVar, \ ",+Total,.*\"\$(\d*,?\d+\.\d\d)\",+", \ myTotal) obviously details depend on what variations you expect within the data. Note that there's a nasty aspect of LC parsing: in order to have quotation marks inside your string (the pattern) you have to precede them with a backslash. So the pattern is really: ,+Total,.*"\$(\d*,?\d+\.\d\d)",+ but to represent it as a string in the script, you have to escape the internal quotes ",+Total,.*\"\$(\d*,?\d+\.\d\d)\",+" But the version of the parser that deals with colouring and indentation in the script editor doesn't know about this, so it colours it funny, and indents the next line in the script wrong; and in some circumstances gives you a spurious syntax error (you can get round that by just adding a blank line). So much so that the single line of code I quoted above works. But when I tried to make it neater: put ",+Total,.*\"\$(\d*,?\d+\.\d\d)x\",+" into kPattern -- blank line get matchText(myVar, kPattern, myTotal) It doesn't work: kPattern is actually an empty string. I don't know why. So the parser allows \" inside a string within a function call, but misinterprets it in a variable assignment. When I do this sort of thing now I often use format to make it neater - with a continuation backslash for the second line, which fixes the indentation problem). But there's a gotcha: put format(",+Total,.*\"\\$(\\d*,?\\d+\\.\\d\\d)\",+" \ ) into kPattern get matchText(last line of fld "data", kPattern, tFine) The basic string parsing interprets \" as quote (except when it doesn't); but doesn't attempt to interpret the rest of the slashes. But when a string is entered as a parameter to format, format interprets slash as a general escape character (so that, e.g. "\t" can be transformed to tab). So when we actually need a slash in the string, in order to represent grep items like "\d", we have to use two slashes before the string gets to format. All this makes it harder to read the grep pattern. And grep patterns are often hard enough to read already. But I love them. Ben On 29/07/2021 13:42, Skip Kimpel via use-livecode wrote: > I have a variable that contains: > > ,Name,,,Quantity,,,,,Total,,,Percent > > ,Dine In,,,189,,,,,"$4,812.71",,,57.96% > > ,Take Out,,,72,,,,,"$1,676.43",,,20.19% > > ,3rd Party,,,54,,,,,"$1,779.35",,,21.43% > > ,Bakery,,,3,,,,,$34.83,,,0.42% > > ,Total,,,318,,,,,"$8,303.32",,, > > > What is the best way to get 8303.32 from that last line. Obviously, the > complexity is the commas and getting rid of the dollar sign as well. > > > I know I am going to kick myself when somebody answers.... I am blank this > morning. (NEED MORE COFFEE!!!!!) > > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ahsoftware at sonic.net Thu Jul 29 13:40:02 2021 From: ahsoftware at sonic.net (Mark Wieder) Date: Thu, 29 Jul 2021 10:40:02 -0700 Subject: Most streamlined method to get data In-Reply-To: <2de2afd3-87d4-8de0-9a20-252a40745637@cogapp.com> References: <2de2afd3-87d4-8de0-9a20-252a40745637@cogapp.com> Message-ID: <1d316ad7-e5ca-297a-ea4b-11cb6c32dec3@sonic.net> 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 ahsoftware at gmail.com From Info at dicod.com Thu Jul 29 13:42:55 2021 From: Info at dicod.com (Jean-Jacques Wagner) Date: Thu, 29 Jul 2021 19:42:55 +0200 Subject: Most streamlined method to get data Message-ID: <00268886-98FD-4A29-B724-590CB2538A68@dicod.com> Hi put replacetext(varlist,quote,numtochar(29)) into varlist2 set the itemdelimiter to numtochar(29) go each second item numtochar(29) to extract the komma or do whatever wirth it which does not interfer with other char the comma to another char put replacetext (valist2,numtochar(29),quote) into varlist set the itemdelimiter to komma ..continue to work instead of 29 use 28, 30 or 31 , rsp one of them which you are not using within your list. replacetext is very fast Jean-Jacques Wagner From jiml at netrin.com Thu Jul 29 15:06:19 2021 From: jiml at netrin.com (Jim Lambert) Date: Thu, 29 Jul 2021 12:06:19 -0700 Subject: Jim Lambert is not crazy! In-Reply-To: References: Message-ID: <4A8E1842-E3C5-40AD-8019-E46A3ED1B330@netrin.com> ?? Jim Lambert From phil at pdslabs.net Fri Jul 30 00:16:43 2021 From: phil at pdslabs.net (Phil Davis) Date: Thu, 29 Jul 2021 21:16:43 -0700 Subject: how to include Apple's SF Pro font in an iOS app? Message-ID: <8af37587-43ab-a7c8-233e-fc6b5a92fe96@pdslabs.net> Functionally speaking, I understand how to include it, but... will Apple let me release the app with that font included? I don't speak their brand of legalese very well. I can see the list of fonts that reside on my iPad and the SF fonts are not there. (I'm running iOS 14.6. ) But Apple makes it sound like they're ready for use. So I don't know what I'm supposed to do if I want to use the font in my app. Do you have experience with this issue? I could use some guidance. Many thanks - Phil Davis -- Phil Davis 503-307-4363 From jacque at hyperactivesw.com Fri Jul 30 01:55:42 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 30 Jul 2021 00:55:42 -0500 Subject: how to include Apple's SF Pro font in an iOS app? In-Reply-To: <8af37587-43ab-a7c8-233e-fc6b5a92fe96@pdslabs.net> References: <8af37587-43ab-a7c8-233e-fc6b5a92fe96@pdslabs.net> Message-ID: <17af5fb8f30.2749.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I don't know why it wouldn't be allowed. Apple provides the fonts on their developer site and says you can download and use them: https://developer.apple.com/fonts/ Fonts are often named one thing but listed differently in the font files. This post mentions it's named "SFUI-Regular" on iOS 13: https://developer.apple.com/forums/thread/126548 If that's the case then you probably do have the font on the iPad and assigning LC's "system" font will automatically use it. In fat, that seems to be the preferred method according to that post. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 29, 2021 11:19:06 PM Phil Davis via use-livecode wrote: > Functionally speaking, I understand how to include it, but... will Apple > let me release the app with that font included? I don't speak their > brand of legalese very well. > > I can see the list of fonts that reside on my iPad and the SF fonts are > not there. (I'm running iOS 14.6. ) But Apple makes it sound like > they're ready for use. So I don't know what I'm supposed to do if I want > to use the font in my app. > > Do you have experience with this issue? I could use some guidance. > > Many thanks - > Phil Davis > > -- > Phil Davis > 503-307-4363 > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From phil at pdslabs.net Fri Jul 30 02:13:29 2021 From: phil at pdslabs.net (Phil Davis) Date: Thu, 29 Jul 2021 23:13:29 -0700 Subject: how to include Apple's SF Pro font in an iOS app? In-Reply-To: <17af5fb8f30.2749.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <8af37587-43ab-a7c8-233e-fc6b5a92fe96@pdslabs.net> <17af5fb8f30.2749.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <9bb5a406-fb51-9de3-c3f9-362bb5b65ece@pdslabs.net> Thanks Jacque! I'll try '(System)' out and see what happens. Phil On 7/29/21 10:55 PM, J. Landman Gay via use-livecode wrote: > I don't know why it wouldn't be allowed. Apple provides the fonts on > their developer site and says you can download and use them: > https://developer.apple.com/fonts/ > Fonts are often named one thing but listed differently in the font > files. This post mentions it's named "SFUI-Regular" on iOS 13: > https://developer.apple.com/forums/thread/126548 > > If that's the case then you probably do have the font on the iPad and > assigning LC's "system" font will automatically use it. In fat, that > seems to be the preferred method according to that post. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > On July 29, 2021 11:19:06 PM Phil Davis via use-livecode > wrote: > >> Functionally speaking, I understand how to include it, but... will Apple >> let me release the app with that font included? I don't speak their >> brand of legalese very well. >> >> I can see the list of fonts that reside on my iPad and the SF fonts are >> not there. (I'm running iOS 14.6. ) But Apple makes it sound like >> they're ready for use. So I don't know what I'm supposed to do if I want >> to use the font in my app. >> >> Do you have experience with this issue? I could use some guidance. >> >> Many thanks - >> Phil Davis >> >> -- >> Phil Davis >> 503-307-4363 >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Phil Davis 503-307-4363 From panos.merakos at livecode.com Fri Jul 30 09:44:52 2021 From: panos.merakos at livecode.com (panagiotis merakos) Date: Fri, 30 Jul 2021 16:44:52 +0300 Subject: [ANN] Release 9.6.3 Message-ID: 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 -- From marksmithhfx at gmail.com Fri Jul 30 09:47:40 2021 From: marksmithhfx at gmail.com (Mark Smith) Date: Fri, 30 Jul 2021 14:47:40 +0100 Subject: Most streamlined method to get data In-Reply-To: References: <188AAF6A-65C3-4DDF-B719-C75D2AC8574C@starfirelighting.com> Message-ID: <5A61F842-96D6-4A96-87E6-57CB6AC2F668@gmail.com> That was brilliant. Relatedly, why does ? the last word? not return $8,303.32 since it is delimited by quotes (and the dictionary says, "A word is delimited <> by one or more spaces, tabs, or returns, or enclosed by double quotes <>." <>, and is there a list of ?unicode word breaks? lying around somewhere? Thanks... Mark > On Jul 29, 2021, at 2:10 PM, Colin Kelly via use-livecode wrote: > > Put the last trueword of yourVariable > > That should do what you need ? > > Col. > > From: use-livecode on behalf of Craig Newman via use-livecode > Date: Thursday, 29 July 2021 at 13:56 > To: How to use LiveCode > Cc: Craig Newman > Subject: Re: Most streamlined method to get data > Ugh. I really do not like the format of the use-list. > > Anyway, don?t just replace comma with empty. Do it to the trailing commas only. This can be done in several ways. > > Craig > >> On Jul 29, 2021, at 8:42 AM, Skip Kimpel via use-livecode wrote: >> >> I have a variable that contains: >> >> ,Name,,,Quantity,,,,,Total,,,Percent >> >> ,Dine In,,,189,,,,,"$4,812.71",,,57.96% >> >> ,Take Out,,,72,,,,,"$1,676.43",,,20.19% >> >> ,3rd Party,,,54,,,,,"$1,779.35",,,21.43% >> >> ,Bakery,,,3,,,,,$34.83,,,0.42% >> >> ,Total,,,318,,,,,"$8,303.32",,, >> >> >> What is the best way to get 8303.32 from that last line. Obviously, the >> complexity is the commas and getting rid of the dollar sign as well. >> >> >> I know I am going to kick myself when somebody answers.... I am blank this >> morning. (NEED MORE COFFEE!!!!!) >> >> >> SKIP >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at 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 at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Jul 30 12:51:01 2021 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 30 Jul 2021 11:51:01 -0500 Subject: Most streamlined method to get data In-Reply-To: <5A61F842-96D6-4A96-87E6-57CB6AC2F668@gmail.com> References: <188AAF6A-65C3-4DDF-B719-C75D2AC8574C@starfirelighting.com> <5A61F842-96D6-4A96-87E6-57CB6AC2F668@gmail.com> Message-ID: <17af8538508.27a5.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Trueword reads text as we do, ignoring most punctuation. LC's word definition does not do that except for instances of white space and words within quotes. Since there are no spaces in the last line of the example, the whole line is a word. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 30, 2021 8:49:45 AM Mark Smith via use-livecode wrote: > That was brilliant. Relatedly, why does ? the last word? not return > $8,303.32 since it is delimited by quotes (and the dictionary says, "A word > is delimited <> by one or more spaces, tabs, or returns, or enclosed by > double quotes <>." <>, and is there a list of ?unicode word breaks? lying > around somewhere