From mark at livecode.com Tue Dec 3 03:06:13 2024 From: mark at livecode.com (Mark Waddingham) Date: Tue, 03 Dec 2024 08:06:13 +0000 Subject: Problems with (ask and answer) dialogs with LC 10 on Windows 11 In-Reply-To: <2D0BD881-D3D6-4355-ACF5-2B14B2FCF398@major-k.de> References: <2D0BD881-D3D6-4355-ACF5-2B14B2FCF398@major-k.de> Message-ID: On 2024-11-29 12:53, Klaus major-k via use-livecode wrote: > Hi friends, > > a friend of mine has recently upgraded to Windows 11 and now has this > problem: > All (ask and answer) dialogs appear in the background and not in front > as exspected. > > Clicking in any IDE window will cause this "block (?)" beep, and he > must use ALT-Tab > until the dialog finally comes to front. And then it takes several > clicks until he can enter > text into the input field (Ask dialog). > > Anyone seen this and/or is this a known problem on Windows (11) with LC > 10? Not that we are aware of :) The code for handling ask/answer dialogs on windows hasn't changed - they are 'just' modal stacks wrapped in engine syntax so if they were generally broken on Windows 11 with LC10, I think we would have heard by now (I do windows development in Windows 11, and haven't see this issue for example). Could ask your friend to see if he sees the same issue with 9.6.13 - that will help narrow down the possible causes. Of course, there could be Windows 11 system settings which are affecting things - or indeed third party software. Any information your friend could provide there might help. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From mark at livecode.com Tue Dec 3 03:10:30 2024 From: mark at livecode.com (Mark Waddingham) Date: Tue, 03 Dec 2024 08:10:30 +0000 Subject: macOS Sequoia (v15) and popup menu bugs? In-Reply-To: <4d7fb922-c073-4d72-b15d-94616f1a9577@researchware.com> References: <4d7fb922-c073-4d72-b15d-94616f1a9577@researchware.com> Message-ID: On 2024-11-30 16:16, Paul Dupuis via use-livecode wrote: > We have a confirmed report of a customer experience a repeatable hard > crash of out application on macOS Sequoia (15.1.1) when trying to > invoke a right-click context menu. We implement context menus by a > Frontscript that looks at mouseDown, and, if it is a mouseDown with the > right modifiers for a context menu, handler it or passes mouseDown. If > it handles it, it modified a button called "popup" to contain the > correct context menu items based on what was clicked on and the > invokes: popup btn "popup" of stack "cm" > > Our app is built under LC 9.6.13. I searched the Livecode Quality > Center (bugzilla) for any bugs related to Sequoia, but found nothing. > It works on macOS Sonoma without any crash. We do not currently have a > Sequoia system to test on. > > Has anyone experienced a crash with a popup menu on Sequoia? Any > insights? Could you submit a bug report with a stack which replicates the initial contents and then modification of the popup menu and then does popup? We can then look into it - given that we haven't had any other reports of this, I suspect it is something in the structure / modification of the popup menu which is causing a problem (I realize you can't test this is context, but it would give us some insight into making a recipe). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From klaus at major-k.de Tue Dec 3 11:03:53 2024 From: klaus at major-k.de (Klaus major-k) Date: Tue, 3 Dec 2024 17:03:53 +0100 Subject: Problems with (ask and answer) dialogs with LC 10 on Windows 11 In-Reply-To: References: <2D0BD881-D3D6-4355-ACF5-2B14B2FCF398@major-k.de> Message-ID: Hi Mark, > Am 03.12.2024 um 09:06 schrieb Mark Waddingham via use-livecode : > > On 2024-11-29 12:53, Klaus major-k via use-livecode wrote: >> Hi friends, >> a friend of mine has recently upgraded to Windows 11 and now has this problem: >> All (ask and answer) dialogs appear in the background and not in front as exspected. >> Clicking in any IDE window will cause this "block (?)" beep, and he must use ALT-Tab >> until the dialog finally comes to front. And then it takes several clicks until he can enter >> text into the input field (Ask dialog). >> Anyone seen this and/or is this a known problem on Windows (11) with LC 10? > Not that we are aware of :) > The code for handling ask/answer dialogs on windows hasn't changed - they are 'just' modal stacks wrapped in engine syntax so if they were generally broken on Windows 11 with LC10, I think we would have heard by now (I do windows development in Windows 11, and haven't see this issue for example). > Could ask your friend to see if he sees the same issue with 9.6.13 - that will help narrow down the possible causes. > Of course, there could be Windows 11 system settings which are affecting things - or indeed third party software. Any information your friend could provide there might help. > > Warmest Regards, > > Mark. thank you, I will ask him! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From benr_mc at cogapp.com Wed Dec 4 12:21:56 2024 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 4 Dec 2024 17:21:56 +0000 Subject: Configuring tooltips on Chart widget Message-ID: Has anyone been able to configure tooltips on the Chart widget? My immediate requirement is a scatter plot, ideally with two different colours of markers, and with a custom tooltip on each marker. If I try to edit the 'data labels' in the chart property inspector, my edits are immediately undone. If I set the data points using the 'tsvData' property of the widget, and then set labels using the 'dataLabels' property, the scales of the widget are reset (so horizontal axis runs from 0 to 1.0, where before setting dataLabels, it ran 0 to 3,000). All the markers disappear (even if I deliberately add a datapoint within this range). If I use the chartJsonData property, and include "options" as well as "datasets" in the JSON I submit, setting it has no effect. (Whereas removing that section from the JSON, setting the chartJsonData property does have an effect.) If I use the chartJsonData property to set points including "x", "y" and "label" attributes for each, the data is accepted and the points appear in the expected place. But the tooltip on each point is the x and y values, e.g. "(30, 50)". If I then use the chartOptionsData property I can modify scales, gridlines etc. But if I include a "plugins" attribute defining a "tooltip" callback in the JSON (definition copied from the interweb) then setting it has no visible effect (possibly an error is thrown somewhere). But, from then on when switching from tool mode to browser mode, the revErrorDisplay window pops open with a report of the form: LCB Error array key does not exist Object BensChartWidget LCB File chartlc.lcb LCB Line 1873 Unfortunately, I can't locate a "chartlc.lcb" file in the package. I'm a bit stumped. Is there a way to set a custom label for each point on a scatter chart using this widget? TIA, Ben From paul at researchware.com Wed Dec 4 12:34:55 2024 From: paul at researchware.com (Paul Dupuis) Date: Wed, 4 Dec 2024 12:34:55 -0500 Subject: macOS Sequoia (v15) and popup menu bugs? In-Reply-To: References: <4d7fb922-c073-4d72-b15d-94616f1a9577@researchware.com> Message-ID: <40848ca7-690f-48d1-808e-5d827fb672ff@researchware.com> On 12/3/2024 3:10 AM, Mark Waddingham via use-livecode wrote: > On 2024-11-30 16:16, Paul Dupuis via use-livecode wrote: >> We have a confirmed report of a customer experience a repeatable hard >> crash of out application on macOS Sequoia (15.1.1) when trying to >> invoke a right-click context menu. We implement context menus by a >> Frontscript that looks at mouseDown, and, if it is a mouseDown with >> the right modifiers for a context menu, handler it or passes >> mouseDown. If it handles it, it modified a button called "popup" to >> contain the correct context menu items based on what was clicked on >> and the invokes: popup btn "popup" of stack "cm" >> >> Our app is built under LC 9.6.13. I searched the Livecode Quality >> Center (bugzilla) for any bugs related to Sequoia, but found nothing. >> It works on macOS Sonoma without any crash. We do not currently have >> a Sequoia system to test on. >> >> Has anyone experienced a crash with a popup menu on Sequoia? Any >> insights? > > Could you submit a bug report with a stack which replicates the > initial contents and then modification of the popup menu and then does > popup? > > We can then look into it - given that we haven't had any other reports > of this, I suspect it is something in the structure / modification of > the popup menu which is causing a problem (I realize you can't test > this is context, but it would give us some insight into making a recipe). > > Warmest Regards, > > Mark. > Thank you Mark, We'll do this, but it may be a while. We need to build a Sequoia VM on our Sonoma system (we can't afford to buy another Apple hardware for this). That may take a while since building VM is not a regular occurrence in our lives and we forget all the little tweaks needed for macOS VirtualBox VMs. Once that is done, we will be able to try to reproduce the issue, and if we can, trace it with the debugger. That should allow us to pin point what is causing the crash and create a demo stack with just that code. From andreas.bergendal at gmail.com Wed Dec 4 14:53:04 2024 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Wed, 4 Dec 2024 20:53:04 +0100 Subject: Your scripts as a flowchart In-Reply-To: References: <49103ECE-97F3-4305-A3B4-01A0E377E158@gmail.com> <18a9f0eaa08.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <023C9AEA-7B3A-455E-B6DC-18164BBF04B5@gmail.com> <5357224F-1A01-4F2E-804A-014467118930@gmail.com> <45122269-0cd1-47ff-9dac-bb5c003ca1c4@speedbump.io> Message-ID: <77037BF2-95D3-40E8-92C7-3DDCF1F33E6A@gmail.com> Since the list is not very busy these days, I don’t feel too spammy posting a minor update announcement again. :) The WIS_ScriptDependencies v1.2.1 release fixes a bug so that PNGs/SVGs of flowcharts can always be produced. Setting the httpHeaders to "Content-Type: text/plain" fixed it. Download link: https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest /Andreas > 22 nov. 2024 kl. 20:27 skrev Andreas Bergendal : > > A new WIS_ScriptDependencies update: > > v1.2.0 (22 Nov 2024) > > Finally, in the most recent versions of LiveCode, the browser widget on Windows is upgraded and can run Mermaid code! > > - Enhancement: Flowcharts can now be displayed in the browser widget also on Windows, when using LC versions 9.6.13 (rc and stable), 10.0.0 (rc and stable) and all 10.0.1+ versions as well as the latest LC Create native in classic mode. > - Enhancement: Added a settings pane for which handler types to include/exclude. The setting is global, not per project. Default is to include all handler types. > - Enhancement: Implemented code formatting/colouring in the code display field > - Fixed bug: Some flowchart nodes (handler names) were not correctly styled > > Download link: > https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest > > > And an updated example of how a very simple code base can look like when visualised with this tool: > https://wheninspace.com/browseranimation/WIS_ScriptDependencies_example.png > > Imagine how your code would look - if you haven’t tried it yet! ;-) > > /Andreas From bobsneidar at iotecdigital.com Wed Dec 4 15:41:10 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 4 Dec 2024 20:41:10 +0000 Subject: Your scripts as a flowchart In-Reply-To: <77037BF2-95D3-40E8-92C7-3DDCF1F33E6A@gmail.com> References: <49103ECE-97F3-4305-A3B4-01A0E377E158@gmail.com> <18a9f0eaa08.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <023C9AEA-7B3A-455E-B6DC-18164BBF04B5@gmail.com> <5357224F-1A01-4F2E-804A-014467118930@gmail.com> <45122269-0cd1-47ff-9dac-bb5c003ca1c4@speedbump.io> <77037BF2-95D3-40E8-92C7-3DDCF1F33E6A@gmail.com> Message-ID: <69B08BA2-C219-4E0F-AEFC-9A3160246D1E@iotecdigital.com> I get Syntax Error in Text when attempting a flow chart. It’s a large project. Bob S > On Dec 4, 2024, at 11:53 AM, Andreas Bergendal via use-livecode wrote: > > Since the list is not very busy these days, I don’t feel too spammy posting a minor update announcement again. :) > > The WIS_ScriptDependencies v1.2.1 release fixes a bug so that PNGs/SVGs of flowcharts can always be produced. > Setting the httpHeaders to "Content-Type: text/plain" fixed it. > > Download link: > https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest > > /Andreas > >> 22 nov. 2024 kl. 20:27 skrev Andreas Bergendal : >> >> A new WIS_ScriptDependencies update: >> >> v1.2.0 (22 Nov 2024) >> >> Finally, in the most recent versions of LiveCode, the browser widget on Windows is upgraded and can run Mermaid code! >> >> - Enhancement: Flowcharts can now be displayed in the browser widget also on Windows, when using LC versions 9.6.13 (rc and stable), 10.0.0 (rc and stable) and all 10.0.1+ versions as well as the latest LC Create native in classic mode. >> - Enhancement: Added a settings pane for which handler types to include/exclude. The setting is global, not per project. Default is to include all handler types. >> - Enhancement: Implemented code formatting/colouring in the code display field >> - Fixed bug: Some flowchart nodes (handler names) were not correctly styled >> >> Download link: >> https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest >> >> >> And an updated example of how a very simple code base can look like when visualised with this tool: >> https://wheninspace.com/browseranimation/WIS_ScriptDependencies_example.png >> >> Imagine how your code would look - if you haven’t tried it yet! ;-) >> >> /Andreas > > _______________________________________________ > 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 andreas.bergendal at gmail.com Wed Dec 4 15:52:11 2024 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Wed, 4 Dec 2024 21:52:11 +0100 Subject: Your scripts as a flowchart In-Reply-To: <69B08BA2-C219-4E0F-AEFC-9A3160246D1E@iotecdigital.com> References: <49103ECE-97F3-4305-A3B4-01A0E377E158@gmail.com> <18a9f0eaa08.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <023C9AEA-7B3A-455E-B6DC-18164BBF04B5@gmail.com> <5357224F-1A01-4F2E-804A-014467118930@gmail.com> <45122269-0cd1-47ff-9dac-bb5c003ca1c4@speedbump.io> <77037BF2-95D3-40E8-92C7-3DDCF1F33E6A@gmail.com> <69B08BA2-C219-4E0F-AEFC-9A3160246D1E@iotecdigital.com> Message-ID: Oh crap - yes, I see what you mean! I thought the latest Mermaid version had that sorted out, but apparently not. In the flowchart settings (the cogwheel next to the Create flowchart button), change the Mermaid version to 10.5.1. That fixes it. I will make that the default version again, updating the stack now without a creating new release (gosh, 4 people already downloaded it!). Thanks for that quick feedback, Bob! > 4 dec. 2024 kl. 21:41 skrev Bob Sneidar via use-livecode : > > I get Syntax Error in Text when attempting a flow chart. It’s a large project. > > Bob S > > >> On Dec 4, 2024, at 11:53 AM, Andreas Bergendal via use-livecode wrote: >> >> Since the list is not very busy these days, I don’t feel too spammy posting a minor update announcement again. :) >> >> The WIS_ScriptDependencies v1.2.1 release fixes a bug so that PNGs/SVGs of flowcharts can always be produced. >> Setting the httpHeaders to "Content-Type: text/plain" fixed it. >> >> Download link: >> https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest >> >> /Andreas >> >>> 22 nov. 2024 kl. 20:27 skrev Andreas Bergendal : >>> >>> A new WIS_ScriptDependencies update: >>> >>> v1.2.0 (22 Nov 2024) >>> >>> Finally, in the most recent versions of LiveCode, the browser widget on Windows is upgraded and can run Mermaid code! >>> >>> - Enhancement: Flowcharts can now be displayed in the browser widget also on Windows, when using LC versions 9.6.13 (rc and stable), 10.0.0 (rc and stable) and all 10.0.1+ versions as well as the latest LC Create native in classic mode. >>> - Enhancement: Added a settings pane for which handler types to include/exclude. The setting is global, not per project. Default is to include all handler types. >>> - Enhancement: Implemented code formatting/colouring in the code display field >>> - Fixed bug: Some flowchart nodes (handler names) were not correctly styled >>> >>> Download link: >>> https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest >>> >>> >>> And an updated example of how a very simple code base can look like when visualised with this tool: >>> https://wheninspace.com/browseranimation/WIS_ScriptDependencies_example.png >>> >>> Imagine how your code would look - if you haven’t tried it yet! ;-) >>> >>> /Andreas >> >> _______________________________________________ >> 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 Thu Dec 5 02:06:36 2024 From: mark at livecode.com (Mark Waddingham) Date: Thu, 05 Dec 2024 07:06:36 +0000 Subject: macOS Sequoia (v15) and popup menu bugs? In-Reply-To: <40848ca7-690f-48d1-808e-5d827fb672ff@researchware.com> References: <4d7fb922-c073-4d72-b15d-94616f1a9577@researchware.com> <40848ca7-690f-48d1-808e-5d827fb672ff@researchware.com> Message-ID: <583ff1bc39a02aa064e12b393ee458f8@livecode.com> On 2024-12-04 17:34, Paul Dupuis via use-livecode wrote: >> Could you submit a bug report with a stack which replicates the >> initial contents and then modification of the popup menu and then does >> popup? >> >> We can then look into it - given that we haven't had any other reports >> of this, I suspect it is something in the structure / modification of >> the popup menu which is causing a problem (I realize you can't test >> this is context, but it would give us some insight into making a >> recipe). > We'll do this, but it may be a while. We need to build a Sequoia VM on > our Sonoma system (we can't afford to buy another Apple hardware for > this). That may take a while since building VM is not a regular > occurrence in our lives and we forget all the little tweaks needed for > macOS VirtualBox VMs. Once that is done, we will be able to try to > reproduce the issue, and if we can, trace it with the debugger. That > should allow us to pin point what is causing the crash and create a > demo stack with just that code. I should have been more clear - I wasn't suggesting you need to test and reproduce on sequoia first - we just need a stack with a button which has the initial contents of the popup context menu in it, then on mouseDown it rewrites it to the new version (i.e. emulating what is happening). We can then see if that crashes and if so we have a recipe without you having to setup Sequoia - if it doesn't then more work will be needed to establish a recipe. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From panos.merakos at livecode.com Thu Dec 5 10:19:55 2024 From: panos.merakos at livecode.com (panagiotis merakos) Date: Thu, 5 Dec 2024 17:19:55 +0200 Subject: [[ ANN ]] Release LiveCode 10.0.1 RC-3 Message-ID: Dear list members, We are pleased to announce the release of LiveCode 10.0.1 RC-3. LiveCode 10.0.1 RC-3 comes with 2 bugfixes: - Apps submitted to the iOS app store will no longer have problems with missing privacy manifests - When building for iOS, the standalone builder will now search the new (Xcode 16+) location for provisioning profiles You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From htorrado at networkdreams.net Fri Dec 6 18:54:55 2024 From: htorrado at networkdreams.net (Heriberto Torrado) Date: Fri, 6 Dec 2024 18:54:55 -0500 Subject: LiveCode Server 9.6.3 Linux Compatibility Layer Library Dependencies for NetBSD Message-ID: <8d73d350-90e7-4c13-a19d-99aef3970c6b@networkdreams.net> Dear Livecode lovers, I've been messing around these days with the possibility of installing Livecode Server 9.6.3 (Community Edition) on NetBSD (just because I like NetBSD) using the Linux compatibility layer on NetBSD. Well, I've managed to find out the list of libraries that the Livecode Server executable depends on, so this list might be of interest when trying to find out which libraries you guys need on Linux / BSD to run Livecode Server. Shared library: [libdl.so.2] Shared library: [libpthread.so.0] Shared library: [libexpat.so.1] Shared library: [libfreetype.so.6] Shared library: [libfontconfig.so.1] Shared library: [librt.so.1] Shared library: [libstdc++.so.6] Shared library: [libm.so.6] Shared library: [libgcc_s.so.1] Shared library: [libc.so.6] Shared library: [ld-linux-x86-64.so.2] Best, Heriberto Torrado From curry at pair.com Sat Dec 7 15:10:23 2024 From: curry at pair.com (Curry Kenworthy) Date: Sat, 7 Dec 2024 15:10:23 -0500 Subject: LiveCode Server 9.6.3 Linux Compatibility Layer Library Dependencies for NetBSD In-Reply-To: <8d73d350-90e7-4c13-a19d-99aef3970c6b@networkdreams.net> References: <8d73d350-90e7-4c13-a19d-99aef3970c6b@networkdreams.net> Message-ID: <8ae886f6-5584-4f59-a659-5bd1ddebb201@pair.com> Heriberto: > libraries you guys need on Linux / BSD to run Livecode Server. Thanks for the resource - and for your comments a while back! Livecode Community Edition is a vital dev tool option. Best wishes, Curry Kenworthy Radically Innovative Christian LiveCode Development "PASSION for Elegant, Efficient Code!" https://livecodeconsulting.com/ From admin at flexiblelearning.com Sun Dec 8 04:01:09 2024 From: admin at flexiblelearning.com (Hugh Senior) Date: Sun, 8 Dec 2024 09:01:09 -0000 Subject: Window layering screwed In-Reply-To: References: Message-ID: <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> After years of working as expected, now any stack opened as modal is mis-layered behind the calling window. As the blocking modal window is hidden and not accessible to dismiss, the only way to regain control seems to be cmd.M to show the message box (dunno why). Anyone else got this problem? Is it the result of a recent Windows update that has somehow screwed up window layering? LC 9.6.12 Win11 Hugh Senior From paul at researchware.com Sun Dec 8 11:18:09 2024 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 Dec 2024 11:18:09 -0500 Subject: Window layering screwed In-Reply-To: <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> References: <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> Message-ID: I am running Windows 11 with the latest updates on an HP Pavilion laptop with a i7 processor and 16GB of RAM. I have no window layering issues under LC9.6.13, LC 10.0.0, or LC 10.0.1rc3. On 12/8/2024 4:01 AM, Hugh Senior via use-livecode wrote: > After years of working as expected, now any stack opened as modal is > mis-layered behind the calling window. As the blocking modal window is > hidden and not accessible to dismiss, the only way to regain control seems > to be cmd.M to show the message box (dunno why). > > Anyone else got this problem? Is it the result of a recent Windows update > that has somehow screwed up window layering? > > LC 9.6.12 > Win11 > > Hugh Senior > > > _______________________________________________ > 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 martyknappster at gmail.com Sun Dec 8 11:59:03 2024 From: martyknappster at gmail.com (Marty Knapp) Date: Sun, 8 Dec 2024 08:59:03 -0800 Subject: Window layering screwed In-Reply-To: References: <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> Message-ID: <5643A1E8-0C8F-4AC8-B16D-2677855439C2@gmail.com> Check to see if raiseWindows is set to true - if so try it set to false. --- Marty Knapp > On Dec 8, 2024, at 8:18 AM, Paul Dupuis via use-livecode wrote: > > I am running Windows 11 with the latest updates on an HP Pavilion laptop with a i7 processor and 16GB of RAM. I have no window layering issues under LC9.6.13, LC 10.0.0, or LC 10.0.1rc3. > > > On 12/8/2024 4:01 AM, Hugh Senior via use-livecode wrote: >> After years of working as expected, now any stack opened as modal is >> mis-layered behind the calling window. As the blocking modal window is >> hidden and not accessible to dismiss, the only way to regain control seems >> to be cmd.M to show the message box (dunno why). >> >> Anyone else got this problem? Is it the result of a recent Windows update >> that has somehow screwed up window layering? >> >> LC 9.6.12 >> Win11 >> >> Hugh Senior From curry at pair.com Sun Dec 8 16:18:29 2024 From: curry at pair.com (Curry Kenworthy) Date: Sun, 8 Dec 2024 16:18:29 -0500 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> References: <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> Message-ID: Hugh: > After years of working as expected, now any stack opened as modal > is mis-layered behind the calling window. Yes, I have seen that a couple of times - You need a recipe! Context makes all the difference. Glad to see you here. Klaus: > Windows 11 ... (ask and answer) dialogs appear in the background ... > he must use ALT-Tab until the dialog finally comes to front. Yes, I have seen that a couple of times - You need a recipe! It's easier to use the Taskbar, back to the calling window. Best wishes, Curry Kenworthy Radically Innovative Christian LiveCode Development "PASSION for Elegant, Efficient Code!" https://livecodeconsulting.com/ From admin at flexiblelearning.com Tue Dec 10 01:40:55 2024 From: admin at flexiblelearning.com (Hugh Senior) Date: Tue, 10 Dec 2024 06:40:55 -0000 Subject: Window layering screwed In-Reply-To: References: Message-ID: <001001db4ace$782dafa0$68890ee0$@flexiblelearning.com> Yo Marty, RaiseWindows is the culprit. Good catch. I recall window layering being a PITA in the engine many years ago. Looks like the recent Windows update has thrown a spanner back in the works. Hugh Senior >Marty Knapp wrote > >Check to see if raiseWindows is set to true - if so try it set to false. > On 12/8/2024 4:01 AM, Hugh Senior via use-livecode wrote: >> After years of working as expected, now any stack opened as modal is >> mis-layered behind the calling window. As the blocking modal window >> is hidden and not accessible to dismiss, the only way to regain >> control seems to be cmd.M to show the message box (dunno why). >> >> Anyone else got this problem? Is it the result of a recent Windows >> update that has somehow screwed up window layering? >> >> LC 9.6.12 >> Win11 >> >> Hugh Senior From admin at flexiblelearning.com Tue Dec 10 01:45:51 2024 From: admin at flexiblelearning.com (Hugh Senior) Date: Tue, 10 Dec 2024 06:45:51 -0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: References: Message-ID: <001101db4acf$27e3fc60$77abf520$@flexiblelearning.com> Curry: Recipe is engine bug with RaiseWindows. Set to false to regain correct layering, with thanks to Marty. Now just lurking on the lists! Hugh Senior -----Original Message----- Date: Sun, 8 Dec 2024 16:18:29 -0500 From: Curry Kenworthy To: use-livecode at lists.runrev.com Subject: Re: Window layering screwed / Problems with (ask and answer) dialogs Hugh: > After years of working as expected, now any stack opened as modal > is mis-layered behind the calling window. Yes, I have seen that a couple of times - You need a recipe! Context makes all the difference. Glad to see you here. From ambassador at fourthworld.com Tue Dec 10 20:34:52 2024 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 11 Dec 2024 01:34:52 +0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs Message-ID: <21f61ceb7268ee577868d8363bb316c90019d44c@fourthworld.com> Hugh Senior wrote: > Recipe is engine bug with RaiseWindows. Set to false to regain correct > layering, with thanks to Marty. > > Now just lurking on the lists! Before you go, did you file a bug report on that? -- Richard Gaskin FourthWorld.com From admin at flexiblelearning.com Wed Dec 11 13:13:47 2024 From: admin at flexiblelearning.com (Hugh Senior) Date: Wed, 11 Dec 2024 18:13:47 -0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: References: Message-ID: <001901db4bf8$6d225220$4766f660$@flexiblelearning.com> Hi Richard No, I haven't reported it. Not sure I still have access to Bugzilla now. Can you do the honours, please? RaiseWindows LC 9.6.12 Windows When RaiseWindows is set to true, expect modal windows to float. They don't. They appear behind the parent window, inaccessible and undismissable. Hugh >Richard Gaskin wrote: >Before you go, did you file a bug report on that? >>Hugh Senior wrote: >> >> Recipe is engine bug with RaiseWindows. Set to false to regain correct >> layering, with thanks to Marty. >> >> Now just lurking on the lists! From paul at researchware.com Wed Dec 11 15:59:34 2024 From: paul at researchware.com (Paul Dupuis) Date: Wed, 11 Dec 2024 15:59:34 -0500 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: <001901db4bf8$6d225220$4766f660$@flexiblelearning.com> References: <001901db4bf8$6d225220$4766f660$@flexiblelearning.com> Message-ID: FYI I just created a test stack with a check box (on mouseUp set the raiseWindows to the hilite of me end mouseUp) and a button (on mouseUp answer "Answer Dialog" end mouseUp) and tried it under LC 9.6.12 and 9.6.13 in the IDE on Windows 11 (latest version/updates) on an HP Pavilion (i7, 16GB RAM) and the Answer dialog remained on top regardless of the raiseWindows setting in both version of LC. I think any recipe for an error must be a bit more than just whether raiseWindows is true or not. On 12/11/2024 1:13 PM, Hugh Senior via use-livecode wrote: > Hi Richard > > No, I haven't reported it. Not sure I still have access to Bugzilla now. > Can you do the honours, please? > > RaiseWindows > LC 9.6.12 > Windows > When RaiseWindows is set to true, expect modal windows to float. They don't. > They appear behind the parent window, inaccessible and undismissable. > > Hugh > >> Richard Gaskin wrote: >> Before you go, did you file a bug report on that? >>> Hugh Senior wrote: >>> >>> Recipe is engine bug with RaiseWindows. Set to false to regain correct >>> layering, with thanks to Marty. >>> >>> Now just lurking on the lists! > > _______________________________________________ > 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 ambassador at fourthworld.com Wed Dec 11 17:46:11 2024 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 11 Dec 2024 22:46:11 +0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs Message-ID: <0c546adba95c1802268c812efb1548d65855dae0@fourthworld.com> I haven't seen the issue myself. If it's not important to you I'm just as happy to get on with my day. Richard Gaskin FourthWorld.com Hugh Senior wrote: > Hi Richard > > No, I haven't reported it. Not sure I still have access to Bugzilla now. > Can you do the honours, please? > > RaiseWindows > LC 9.6.12 > Windows > When RaiseWindows is set to true, expect modal windows to float. They > don't. > They appear behind the parent window, inaccessible and undismissable. > > Hugh > > Richard Gaskin wrote: >> Before you go, did you file a bug report on that? >> >> Hugh Senior wrote: >>> >>> Recipe is engine bug with RaiseWindows. Set to false to regain correct >>> layering, with thanks to Marty. >>> >>> Now just lurking on the lists! From bobsneidar at iotecdigital.com Wed Dec 11 18:52:37 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Dec 2024 23:52:37 +0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: <0c546adba95c1802268c812efb1548d65855dae0@fourthworld.com> References: <0c546adba95c1802268c812efb1548d65855dae0@fourthworld.com> Message-ID: <02000CC6-9ADA-4D15-B5AD-6B1B227CBA54@iotecdigital.com> :-) > On Dec 11, 2024, at 2:46 PM, Richard Gaskin via use-livecode wrote: > > I haven't seen the issue myself. If it's not important to you I'm just as happy to get on with my day. > > Richard Gaskin > FourthWorld.com > > > Hugh Senior wrote: > >> Hi Richard >> >> No, I haven't reported it. Not sure I still have access to Bugzilla now. >> Can you do the honours, please? >> >> RaiseWindows >> LC 9.6.12 >> Windows >> When RaiseWindows is set to true, expect modal windows to float. They >> don't. >> They appear behind the parent window, inaccessible and undismissable. >> >> Hugh >> >> Richard Gaskin wrote: >>> Before you go, did you file a bug report on that? >>> >>> Hugh Senior wrote: >>>> >>>> Recipe is engine bug with RaiseWindows. Set to false to regain correct >>>> layering, with thanks to Marty. >>>> >>>> Now just lurking on the lists! > > _______________________________________________ > 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 Dec 12 13:59:48 2024 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 12 Dec 2024 18:59:48 +0000 Subject: 10.0.1rc3, building to iOS: Compulsory 18.1, strange splash screen Message-ID: It's been a long time since I tried to build an iOS app, I thought I'd try to get it all working again. Inspired by Panos' release notes, I downloaded 10.0.1 (rc 3), so at least I wouldn't get the dreaded "Selected Xcode must have..." message. I checked the handy table at https://livecode.com/resources/support/ask-a-question/ and confirmed that at least LC 10.0.0 (not 10.0.1) would work with Xcode 13.2 (which is what I had) on MacOS 13.4+ (I'm running 14.7) for iOS 15.2. I also read again the lesson at https://lessons.livecode.com/m/4069/l/565715-how-do-i-become-an-ios-developer, which confirmed that LC 10.0.1 would work with any Xcode from 12.4 on. After a few false starts, I decided to explicitly launch Xcode and check it was all running. Sneaky Apple! It automatically updated itself to 16.1! However, it still shows that it has the 15.2 simulator, and indeed I can launch the simulator. However when I re-launch LC 10.0.1rc3, create a new stack with a single control on it, set the standalone settings build for iOS, iPod and iPhone, 15.0 or later; set the Test Target to iPhone Simulator 15.2, and click Test, the result is this message: Unable to build app for simulation: failed to create launch screen: /* com.apple.ibtool.errors */ /var/folders/y7/gddpm8ys0892ztpvq78knn2m0000gq/T/Temporaryltems/tmp.93209.5TVqiHma/trashme.app/LaunchScreen.storyboard: error: iOS 18.1 Platform Not Installed. I really don't want to build for iOS 18 - I only want to build an app for my own phone, which doesn't support 18.1 - but at this stage would be happy if I could just get to the next stage. So I installed iOS 18.0 Simulator from the Xcode Settings>Components window. Same result. Finally I went to Apple's dev site, and downloaded the 18.1 Simulator and installed it from the command line. Success! And it successfully built an app that launched on the 15.2 simulator; and (after another couple of days, trawling through Panos' helpful responses on various forum postings etc) also on my phone running iOS 17. So the first issue is why the 18.1 iOS Simulator is required, in order to build for any other iOS version. However, there is a remaining oddity; when the app launches, on the simulator or my real device, the splash screen is a cropped image of the dialog bearing the above message: https://www.dropbox.com/scl/fi/de06nj2fkxay6nsgb97qp/Screenshot-2024-12-12-at-18.38.03.png?rlkey=d70pjfg7msik4e5f9dsgl89zm&dl=0 How curious. At some point I thought, well what happens if I actually take the trouble to assign a splash screen? So I looked at the Standalone Settings, and it turned out that there was a file assigned for the Launch image, and in fact it was a screenshot I'd made of that dialog, while I was working through the issue. Mystery solved I thought, perhaps at some point I carelessly assigned that and had forgotten about it by the time I finally got a working build. So I deleted it. Same result! Then I replaced it with another image. Now when I launch the app, it first shows the picture of the error dialog, then the newly selected launch image. If I delete the launch image, it just has the error dialog as splash screen. Replace with a different image, I get the two-stage splash as before; first the image of the error dialog, then my chosen image. (All this persists through quitting and relaunching LC, btw.) Has anyone else seen something like this? Ben From merakosp at gmail.com Fri Dec 13 02:37:37 2024 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 13 Dec 2024 09:37:37 +0200 Subject: 10.0.1rc3, building to iOS: Compulsory 18.1, strange splash screen In-Reply-To: References: Message-ID: Hello Ben, Ok, so what you see RE Xcode happens because: - As of LC 10.0.1 RC-2, it is no longer required to have a specific version of Xcode / iOS SDK installed. LiveCode uses the one that is returned if you run this command in the Terminal: xcode-select -p - As of Xcode 15, the simulator runtimes come as a separate download - and one is required to download them if they want to use the simulator. So, if your existing Xcode 13.2 had not auto-updated to Xcode 16.1, LC would have picked this instead, and you would not be required to download any additional runtimes, since the simulator runtimes for this version were already bundled into the original download. Does that make sense? RE the splash screen issue, it seems that somehow the old splashscreen has made it into the standalone settings. I guess this does not happen with a brand new stack, is that correct? You can have a look at the custom properties of the "problematic" stack, and check the custom property set "cRevStandaloneSettings". If you find there any property related to splash screens, that its value is the path to the screenshot you see, delete it manually. Hope this helps. Kind regards, Panos -- On Thu, 12 Dec 2024 at 21:00, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > It's been a long time since I tried to build an iOS app, I thought I'd try > to > get it all working again. Inspired by Panos' release notes, I downloaded > 10.0.1 (rc 3), so at least I wouldn't get the dreaded "Selected Xcode must > have..." message. > > I checked the handy table at > https://livecode.com/resources/support/ask-a-question/ and confirmed that > at > least LC 10.0.0 (not 10.0.1) would work with Xcode 13.2 (which is what I > had) > on MacOS 13.4+ (I'm running 14.7) for iOS 15.2. I also read again the > lesson > at > > https://lessons.livecode.com/m/4069/l/565715-how-do-i-become-an-ios-developer, > > which confirmed that LC 10.0.1 would work with any Xcode from 12.4 on. > > After a few false starts, I decided to explicitly launch Xcode and check > it > was all running. Sneaky Apple! It automatically updated itself to 16.1! > > However, it still shows that it has the 15.2 simulator, and indeed I can > launch the simulator. > > However when I re-launch LC 10.0.1rc3, create a new stack with a single > control on it, set the standalone settings build for iOS, iPod and iPhone, > 15.0 or later; set the Test Target to iPhone Simulator 15.2, and click > Test, > the result is this message: > > Unable to build app for simulation: failed to create launch > screen: /* > com.apple.ibtool.errors */ > > /var/folders/y7/gddpm8ys0892ztpvq78knn2m0000gq/T/Temporaryltems/tmp.93209.5TVqiHma/ > trashme.app/LaunchScreen.storyboard: > error: iOS 18.1 Platform Not Installed. > > I really don't want to build for iOS 18 - I only want to build an app for > my > own phone, which doesn't support 18.1 - but at this stage would be happy > if I > could just get to the next stage. So I installed iOS 18.0 Simulator from > the > Xcode Settings>Components window. > > Same result. > > Finally I went to Apple's dev site, and downloaded the 18.1 Simulator and > installed it from the command line. > > Success! And it successfully built an app that launched on the 15.2 > simulator; > and (after another couple of days, trawling through Panos' helpful > responses > on various forum postings etc) also on my phone running iOS 17. > > So the first issue is why the 18.1 iOS Simulator is required, in order to > build for any other iOS version. > > However, there is a remaining oddity; when the app launches, on the > simulator > or my real device, the splash screen is a cropped image of the dialog > bearing > the above message: > > https://www.dropbox.com/scl/fi/de06nj2fkxay6nsgb97qp/Screenshot-2024-12-12-at-18.38.03.png?rlkey=d70pjfg7msik4e5f9dsgl89zm&dl=0 > > How curious. At some point I thought, well what happens if I actually take > the > trouble to assign a splash screen? So I looked at the Standalone Settings, > and > it turned out that there was a file assigned for the Launch image, and in > fact > it was a screenshot I'd made of that dialog, while I was working through > the > issue. > > Mystery solved I thought, perhaps at some point I carelessly assigned that > and > had forgotten about it by the time I finally got a working build. So I > deleted > it. Same result! Then I replaced it with another image. > > Now when I launch the app, it first shows the picture of the error dialog, > then the newly selected launch image. If I delete the launch image, it > just > has the error dialog as splash screen. Replace with a different image, I > get > the two-stage splash as before; first the image of the error dialog, then > my > chosen image. (All this persists through quitting and relaunching LC, btw.) > > Has anyone else seen something like this? > > 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 at cogapp.com Fri Dec 13 06:43:59 2024 From: benr at cogapp.com (Ben Rubinstein) Date: Fri, 13 Dec 2024 11:43:59 +0000 Subject: 10.0.1rc3, building to iOS: Compulsory 18.1, strange splash screen In-Reply-To: References: Message-ID: Hi Panos, Thanks for replying. Re the version of Xcode, I think I was giving too much detail, and this part is probably not relevant. I started working with 13.2, and only launched it (and caused it to auto-update) after encountering problems - but it probably made no difference to the problems (it was days ago, I can't recall exactly the sequence) so you're right if I hadn't had those issues I'd probably still be using Xcode 13.2 and it would probably be fine. However, I think the mystery here (at least to me) is why I was unable to build, for iOS 15.2, until I had installed the iOS 18.1 simulator. (The splash screen thing remains a mystery, but I think it will never be solved - and I can't reproduce it. The only property with an image was to the correct image I wanted. Somehow there is a method to make an animated sequence of splash screens!) best regards, Ben On 13/12/2024 07:37, panagiotis merakos via use-livecode wrote: > Hello Ben, > > Ok, so what you see RE Xcode happens because: > > - As of LC 10.0.1 RC-2, it is no longer required to have a specific version > of Xcode / iOS SDK installed. LiveCode uses the one that is returned if you > run this command in the Terminal: xcode-select -p > > - As of Xcode 15, the simulator runtimes come as a separate download - and > one is required to download them if they want to use the simulator. > > So, if your existing Xcode 13.2 had not auto-updated to Xcode 16.1, LC > would have picked this instead, and you would not be required to download > any additional runtimes, since the simulator runtimes for this version were > already bundled into the original download. > > Does that make sense? > > RE the splash screen issue, it seems that somehow the old splashscreen has > made it into the standalone settings. I guess this does not happen with a > brand new stack, is that correct? You can have a look at the custom > properties of the "problematic" stack, and check the custom property set > "cRevStandaloneSettings". If you find there any property related to splash > screens, that its value is the path to the screenshot you see, delete it > manually. > > Hope this helps. > > Kind regards, > Panos > -- > > On Thu, 12 Dec 2024 at 21:00, Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> It's been a long time since I tried to build an iOS app, I thought I'd try >> to >> get it all working again. Inspired by Panos' release notes, I downloaded >> 10.0.1 (rc 3), so at least I wouldn't get the dreaded "Selected Xcode must >> have..." message. >> >> I checked the handy table at >> https://livecode.com/resources/support/ask-a-question/ and confirmed that >> at >> least LC 10.0.0 (not 10.0.1) would work with Xcode 13.2 (which is what I >> had) >> on MacOS 13.4+ (I'm running 14.7) for iOS 15.2. I also read again the >> lesson >> at >> >> https://lessons.livecode.com/m/4069/l/565715-how-do-i-become-an-ios-developer, >> >> which confirmed that LC 10.0.1 would work with any Xcode from 12.4 on. >> >> After a few false starts, I decided to explicitly launch Xcode and check >> it >> was all running. Sneaky Apple! It automatically updated itself to 16.1! >> >> However, it still shows that it has the 15.2 simulator, and indeed I can >> launch the simulator. >> >> However when I re-launch LC 10.0.1rc3, create a new stack with a single >> control on it, set the standalone settings build for iOS, iPod and iPhone, >> 15.0 or later; set the Test Target to iPhone Simulator 15.2, and click >> Test, >> the result is this message: >> >> Unable to build app for simulation: failed to create launch >> screen: /* >> com.apple.ibtool.errors */ >> >> /var/folders/y7/gddpm8ys0892ztpvq78knn2m0000gq/T/Temporaryltems/tmp.93209.5TVqiHma/ >> trashme.app/LaunchScreen.storyboard: >> error: iOS 18.1 Platform Not Installed. >> >> I really don't want to build for iOS 18 - I only want to build an app for >> my >> own phone, which doesn't support 18.1 - but at this stage would be happy >> if I >> could just get to the next stage. So I installed iOS 18.0 Simulator from >> the >> Xcode Settings>Components window. >> >> Same result. >> >> Finally I went to Apple's dev site, and downloaded the 18.1 Simulator and >> installed it from the command line. >> >> Success! And it successfully built an app that launched on the 15.2 >> simulator; >> and (after another couple of days, trawling through Panos' helpful >> responses >> on various forum postings etc) also on my phone running iOS 17. >> >> So the first issue is why the 18.1 iOS Simulator is required, in order to >> build for any other iOS version. >> >> However, there is a remaining oddity; when the app launches, on the >> simulator >> or my real device, the splash screen is a cropped image of the dialog >> bearing >> the above message: >> >> https://www.dropbox.com/scl/fi/de06nj2fkxay6nsgb97qp/Screenshot-2024-12-12-at-18.38.03.png?rlkey=d70pjfg7msik4e5f9dsgl89zm&dl=0 >> >> How curious. At some point I thought, well what happens if I actually take >> the >> trouble to assign a splash screen? So I looked at the Standalone Settings, >> and >> it turned out that there was a file assigned for the Launch image, and in >> fact >> it was a screenshot I'd made of that dialog, while I was working through >> the >> issue. >> >> Mystery solved I thought, perhaps at some point I carelessly assigned that >> and >> had forgotten about it by the time I finally got a working build. So I >> deleted >> it. Same result! Then I replaced it with another image. >> >> Now when I launch the app, it first shows the picture of the error dialog, >> then the newly selected launch image. If I delete the launch image, it >> just >> has the error dialog as splash screen. Replace with a different image, I >> get >> the two-stage splash as before; first the image of the error dialog, then >> my >> chosen image. (All this persists through quitting and relaunching LC, btw.) >> >> Has anyone else seen something like this? >> >> 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 Bernd.Niggemann at uni-wh.de Sat Dec 14 15:12:50 2024 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Sat, 14 Dec 2024 20:12:50 +0000 Subject: [Ann] An accordion widget Message-ID: Hi all, I posted an accordion widget on the forum Accordion for LC forums.livecode.com [X] Those things that when clicking on a tile open a text, clicking on the next tile closes previously open tile and opens the next tile. One sees those e.g for frequently asked questions etc on the web. I was trying to do this Livecode. It also works in a "wasm" (web) standalone. Kind regards Bernd From bogdanoff at me.com Sat Dec 14 15:42:46 2024 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sat, 14 Dec 2024 12:42:46 -0800 Subject: [Ann] An accordion widget In-Reply-To: References: Message-ID: This is great! Thank you Bernd! > On Dec 14, 2024, at 12:12 PM, Niggemann, Bernd via use-livecode wrote: > > Hi all, > > I posted an accordion widget on the forum > > > Accordion for LC > forums.livecode.com > [X] > > > Those things that when clicking on a tile open a text, clicking on the next tile closes previously open tile and opens the next tile. > One sees those e.g for frequently asked questions etc on the web. > > I was trying to do this Livecode. It also works in a "wasm" (web) standalone. > > Kind regards > Bernd > _______________________________________________ > 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 marksmithhfx at gmail.com Sat Dec 14 18:02:36 2024 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 14 Dec 2024 23:02:36 +0000 Subject: [Ann] An accordion widget In-Reply-To: References: Message-ID: Beautiful! A brilliant piece of work. Thanks for sharing Bernd. Mark > On 14 Dec 2024, at 8:12 PM, Niggemann, Bernd via use-livecode wrote: > > Hi all, > > I posted an accordion widget on the forum > > > Accordion for LC > forums.livecode.com > [X] > > > Those things that when clicking on a tile open a text, clicking on the next tile closes previously open tile and opens the next tile. > One sees those e.g for frequently asked questions etc on the web. > > I was trying to do this Livecode. It also works in a "wasm" (web) standalone. > > Kind regards > Bernd > _______________________________________________ > 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 Bernd.Niggemann at uni-wh.de Sun Dec 15 12:36:12 2024 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Sun, 15 Dec 2024 17:36:12 +0000 Subject: [Ann] An accordion widget Message-ID: Peter, Mark Thank you for testing bnAccordion. I am glad you liked it. Kind regards Bernd From klaus at major-k.de Mon Dec 16 05:13:43 2024 From: klaus at major-k.de (Klaus major-k) Date: Mon, 16 Dec 2024 11:13:43 +0100 Subject: Problems with (ask and answer) dialogs with LC 10 on Windows 11 In-Reply-To: References: <2D0BD881-D3D6-4355-ACF5-2B14B2FCF398@major-k.de> Message-ID: <9744FF92-AEB2-40E7-ABD7-8D492ECBE1C9@major-k.de> Hi Mark and all, > Am 03.12.2024 um 09:06 schrieb Mark Waddingham via use-livecode : > On 2024-11-29 12:53, Klaus major-k via use-livecode wrote: >> Hi friends, >> a friend of mine has recently upgraded to Windows 11 and now has this problem: >> All (ask and answer) dialogs appear in the background and not in front as exspected. >> Clicking in any IDE window will cause this "block (?)" beep, and he must use ALT-Tab >> until the dialog finally comes to front. And then it takes several clicks until he can enter >> text into the input field (Ask dialog). >> Anyone seen this and/or is this a known problem on Windows (11) with LC 10? > Not that we are aware of :) > The code for handling ask/answer dialogs on windows hasn't changed - they are 'just' modal stacks wrapped in engine syntax so if they were generally broken on Windows 11 with LC10, I think we would have heard by now (I do windows development in Windows 11, and haven't see this issue for example). > Could ask your friend to see if he sees the same issue with 9.6.13 - that will help narrow down the possible causes. > Of course, there could be Windows 11 system settings which are affecting things - or indeed third party software. Any information your friend could provide there might help. > Warmest Regards, > > Mark. OK, "raisewindows" was not the problem, it turned out that he had activated the BACKDROP (don't ask 8-) and after switching it OFF, windows layering worked as advertized! Go figure. :-) Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Mon Dec 16 11:28:37 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Dec 2024 16:28:37 +0000 Subject: [Ann] An accordion widget In-Reply-To: References: Message-ID: <81FF88B7-DF16-4CF8-822D-21F5C15E31FD@iotecdigital.com> Good stuff! Bob S > On Dec 14, 2024, at 12:12 PM, Niggemann, Bernd via use-livecode wrote: > > Hi all, > > I posted an accordion widget on the forum > > > Accordion for LC > forums.livecode.com > [X] > > > Those things that when clicking on a tile open a text, clicking on the next tile closes previously open tile and opens the next tile. > One sees those e.g for frequently asked questions etc on the web. > > I was trying to do this Livecode. It also works in a "wasm" (web) standalone. > > Kind regards > Bernd From tom at makeshyft.com Mon Dec 16 22:40:54 2024 From: tom at makeshyft.com (Tom Glod) Date: Mon, 16 Dec 2024 22:40:54 -0500 Subject: [Ann] An accordion widget In-Reply-To: References: Message-ID: Nice! Thank you, what license is this under? On Sat, Dec 14, 2024 at 6:03 PM Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > Beautiful! A brilliant piece of work. Thanks for sharing Bernd. > > Mark > > > > On 14 Dec 2024, at 8:12 PM, Niggemann, Bernd via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi all, > > > > I posted an accordion widget on the forum > > > > > > Accordion for LC< > https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > forums.livecode.com< > https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > [X] < > https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > > > > > Those things that when clicking on a tile open a text, clicking on the > next tile closes previously open tile and opens the next tile. > > One sees those e.g for frequently asked questions etc on the web. > > > > I was trying to do this Livecode. It also works in a "wasm" (web) > standalone. > > > > Kind regards > > Bernd > > _______________________________________________ > > 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 Bernd.Niggemann at uni-wh.de Tue Dec 17 12:21:28 2024 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Tue, 17 Dec 2024 17:21:28 +0000 Subject: [Ann] An accordion widget Message-ID: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> Tom Glod via use-livecode Mon, 16 Dec 2024 19:43:03 -0800 Nice! Thank you, what license is this under? Hi Tom, do whatever you want license. (DWYWL) Kind regards Bernd From irog at mac.com Tue Dec 17 15:16:44 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 12:16:44 -0800 Subject: How to Return the Exponent In-Reply-To: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> Message-ID: Hi folks, Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? Thanks, Roger From harrison at all-auctions.com Tue Dec 17 15:59:36 2024 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Tue, 17 Dec 2024 15:59:36 -0500 Subject: How to Return the Exponent In-Reply-To: References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> Message-ID: <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> Hi Roger, Chat GPT gave me an interesting answer to this question. You should try that, then be a little more verbose about what exactly you are trying to do here. Even Chat GPT seemed a little confused by your question. Of course that’s pretty normal for Chat GPT! I at least understand you mean the easier way to do this with LiveCode. When I asked Chat GPT that question it came back with: command findX N, Y -- Calculate log of N and Y put log(N) into logN put log(Y) into logY -- Check if logN is zero to avoid division by zero error if logN = 0 then answer "Logarithm of N is zero, cannot compute x” exit to top end if -- Calculate x using the formula x = log(Y) / log(N) put logY / logN into x -- Return or display the result answer "The value of x is: " & x end findX Explanation: — Example: where N = 1234 and Y = 10 findX 1234, 10 I hope that helps. If it doesn’t, blame Chat GPT! Rick > On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode wrote: > > Hi folks, > > Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? > > > Thanks, > > Roger > _______________________________________________ > 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 irog at mac.com Tue Dec 17 21:20:04 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 18:20:04 -0800 Subject: How to Return the Exponent In-Reply-To: <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> Message-ID: Hi Rick, Sorry to confuse you and ChatGPT. In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . Something like this does not work: Set Itemdelimeter to “^” put char 4 of word 2 of ((1234…)^(1/x)) …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer Thanks, Roger > On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode wrote: > > Hi Roger, > > Chat GPT gave me an interesting answer to this question. > You should try that, then be a little more verbose about > what exactly you are trying to do here. Even Chat GPT > seemed a little confused by your question. Of course > that’s pretty normal for Chat GPT! > > I at least understand you mean the easier way to do this > with LiveCode. When I asked Chat GPT that question > it came back with: > > command findX N, Y > > -- Calculate log of N and Y > put log(N) into logN > put log(Y) into logY > -- Check if logN is zero to avoid division by zero error > if logN = 0 then > answer "Logarithm of N is zero, cannot compute x” > exit to top > end if > > -- Calculate x using the formula x = log(Y) / log(N) > put logY / logN into x > -- Return or display the result > answer "The value of x is: " & x > > end findX > > Explanation: > > — Example: where N = 1234 and Y = 10 findX 1234, 10 > > I hope that helps. If it doesn’t, blame Chat GPT! > > Rick > >> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode wrote: >> >> Hi folks, >> >> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >> >> >> Thanks, >> >> Roger >> _______________________________________________ >> 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 irog at mac.com Tue Dec 17 21:20:04 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 18:20:04 -0800 Subject: How to Return the Exponent In-Reply-To: <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> Message-ID: Hi Rick, Sorry to confuse you and ChatGPT. In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . Something like this does not work: Set Itemdelimeter to “^” put char 4 of word 2 of ((1234…)^(1/x)) …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer Thanks, Roger > On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode wrote: > > Hi Roger, > > Chat GPT gave me an interesting answer to this question. > You should try that, then be a little more verbose about > what exactly you are trying to do here. Even Chat GPT > seemed a little confused by your question. Of course > that’s pretty normal for Chat GPT! > > I at least understand you mean the easier way to do this > with LiveCode. When I asked Chat GPT that question > it came back with: > > command findX N, Y > > -- Calculate log of N and Y > put log(N) into logN > put log(Y) into logY > -- Check if logN is zero to avoid division by zero error > if logN = 0 then > answer "Logarithm of N is zero, cannot compute x” > exit to top > end if > > -- Calculate x using the formula x = log(Y) / log(N) > put logY / logN into x > -- Return or display the result > answer "The value of x is: " & x > > end findX > > Explanation: > > — Example: where N = 1234 and Y = 10 findX 1234, 10 > > I hope that helps. If it doesn’t, blame Chat GPT! > > Rick > >> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode wrote: >> >> Hi folks, >> >> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >> >> >> Thanks, >> >> Roger >> _______________________________________________ >> 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 scott at elementarysoftware.com Tue Dec 17 21:37:16 2024 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Tue, 17 Dec 2024 18:37:16 -0800 Subject: How to Return the Exponent In-Reply-To: References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> Message-ID: Itemdelimeter should be —> itemdelimiter but perhaps that is a typo > On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode wrote: > > Hi Rick, > > Sorry to confuse you and ChatGPT. > > In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . > > Something like this does not work: > > Set Itemdelimeter to “^” > put char 4 of word 2 of ((1234…)^(1/x)) > > …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer > > Thanks, > > Roger > >> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode wrote: >> >> Hi Roger, >> >> Chat GPT gave me an interesting answer to this question. >> You should try that, then be a little more verbose about >> what exactly you are trying to do here. Even Chat GPT >> seemed a little confused by your question. Of course >> that’s pretty normal for Chat GPT! >> >> I at least understand you mean the easier way to do this >> with LiveCode. When I asked Chat GPT that question >> it came back with: >> >> command findX N, Y >> >> -- Calculate log of N and Y >> put log(N) into logN >> put log(Y) into logY >> -- Check if logN is zero to avoid division by zero error >> if logN = 0 then >> answer "Logarithm of N is zero, cannot compute x” >> exit to top >> end if >> >> -- Calculate x using the formula x = log(Y) / log(N) >> put logY / logN into x >> -- Return or display the result >> answer "The value of x is: " & x >> >> end findX >> >> Explanation: >> >> — Example: where N = 1234 and Y = 10 findX 1234, 10 >> >> I hope that helps. If it doesn’t, blame Chat GPT! >> >> Rick >> >>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode wrote: >>> >>> Hi folks, >>> >>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>> >>> >>> Thanks, >>> >>> Roger >>> _______________________________________________ >>> 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 scott at elementarysoftware.com Tue Dec 17 21:40:00 2024 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Tue, 17 Dec 2024 18:40:00 -0800 Subject: How to Return the Exponent In-Reply-To: References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> Message-ID: <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> does this work? set itemDel to "^" put char 4 of item 2 of "((1234…)^(1/x))" > On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode wrote: > > Hi Rick, > > Sorry to confuse you and ChatGPT. > > In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . > > Something like this does not work: > > Set Itemdelimeter to “^” > put char 4 of word 2 of ((1234…)^(1/x)) > > …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer > > Thanks, > > Roger > >> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode wrote: >> >> Hi Roger, >> >> Chat GPT gave me an interesting answer to this question. >> You should try that, then be a little more verbose about >> what exactly you are trying to do here. Even Chat GPT >> seemed a little confused by your question. Of course >> that’s pretty normal for Chat GPT! >> >> I at least understand you mean the easier way to do this >> with LiveCode. When I asked Chat GPT that question >> it came back with: >> >> command findX N, Y >> >> -- Calculate log of N and Y >> put log(N) into logN >> put log(Y) into logY >> -- Check if logN is zero to avoid division by zero error >> if logN = 0 then >> answer "Logarithm of N is zero, cannot compute x” >> exit to top >> end if >> >> -- Calculate x using the formula x = log(Y) / log(N) >> put logY / logN into x >> -- Return or display the result >> answer "The value of x is: " & x >> >> end findX >> >> Explanation: >> >> — Example: where N = 1234 and Y = 10 findX 1234, 10 >> >> I hope that helps. If it doesn’t, blame Chat GPT! >> >> Rick >> >>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode wrote: >>> >>> Hi folks, >>> >>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>> >>> >>> Thanks, >>> >>> Roger >>> _______________________________________________ >>> 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 irog at mac.com Tue Dec 17 21:54:59 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 18:54:59 -0800 Subject: How to Return the Exponent In-Reply-To: <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> Message-ID: Thanks for correcting my spelling, Scott. It does work! What’s strange, though is that the script editor indicated green for itemdelimeter . . . I think. I must be going blind! Thanks, Roger > On Dec 17, 2024, at 6:40 PM, scott--- via use-livecode wrote: > > does this work? > > set itemDel to "^" > put char 4 of item 2 of "((1234…)^(1/x))" > >> On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode wrote: >> >> Hi Rick, >> >> Sorry to confuse you and ChatGPT. >> >> In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . >> >> Something like this does not work: >> >> Set Itemdelimeter to “^” >> put char 4 of word 2 of ((1234…)^(1/x)) >> >> …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer >> >> Thanks, >> >> Roger >> >>> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode wrote: >>> >>> Hi Roger, >>> >>> Chat GPT gave me an interesting answer to this question. >>> You should try that, then be a little more verbose about >>> what exactly you are trying to do here. Even Chat GPT >>> seemed a little confused by your question. Of course >>> that’s pretty normal for Chat GPT! >>> >>> I at least understand you mean the easier way to do this >>> with LiveCode. When I asked Chat GPT that question >>> it came back with: >>> >>> command findX N, Y >>> >>> -- Calculate log of N and Y >>> put log(N) into logN >>> put log(Y) into logY >>> -- Check if logN is zero to avoid division by zero error >>> if logN = 0 then >>> answer "Logarithm of N is zero, cannot compute x” >>> exit to top >>> end if >>> >>> -- Calculate x using the formula x = log(Y) / log(N) >>> put logY / logN into x >>> -- Return or display the result >>> answer "The value of x is: " & x >>> >>> end findX >>> >>> Explanation: >>> >>> — Example: where N = 1234 and Y = 10 findX 1234, 10 >>> >>> I hope that helps. If it doesn’t, blame Chat GPT! >>> >>> Rick >>> >>>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode wrote: >>>> >>>> Hi folks, >>>> >>>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>>> >>>> >>>> Thanks, >>>> >>>> Roger >>>> _______________________________________________ >>>> 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 irog at mac.com Tue Dec 17 22:07:24 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 19:07:24 -0800 Subject: How to Return the Exponent In-Reply-To: References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> Message-ID: <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> Oops. I take it back. It does not work. set the itemDel to “^" put char 3 of word 2 of "((1234…)^1/x)” returns blank Bummer! > On Dec 17, 2024, at 6:54 PM, Roger Guay via use-livecode wrote: > > Thanks for correcting my spelling, Scott. It does work! What’s strange, though is that the script editor indicated green for itemdelimeter . . . I think. I must be going blind! > > Thanks, > > Roger > > >> On Dec 17, 2024, at 6:40 PM, scott--- via use-livecode wrote: >> >> does this work? >> >> set itemDel to "^" >> put char 4 of item 2 of "((1234…)^(1/x))" >> >>> On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode wrote: >>> >>> Hi Rick, >>> >>> Sorry to confuse you and ChatGPT. >>> >>> In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . >>> >>> Something like this does not work: >>> >>> Set Itemdelimeter to “^” >>> put char 4 of word 2 of ((1234…)^(1/x)) >>> >>> …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer >>> >>> Thanks, >>> >>> Roger >>> >>>> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode wrote: >>>> >>>> Hi Roger, >>>> >>>> Chat GPT gave me an interesting answer to this question. >>>> You should try that, then be a little more verbose about >>>> what exactly you are trying to do here. Even Chat GPT >>>> seemed a little confused by your question. Of course >>>> that’s pretty normal for Chat GPT! >>>> >>>> I at least understand you mean the easier way to do this >>>> with LiveCode. When I asked Chat GPT that question >>>> it came back with: >>>> >>>> command findX N, Y >>>> >>>> -- Calculate log of N and Y >>>> put log(N) into logN >>>> put log(Y) into logY >>>> -- Check if logN is zero to avoid division by zero error >>>> if logN = 0 then >>>> answer "Logarithm of N is zero, cannot compute x” >>>> exit to top >>>> end if >>>> >>>> -- Calculate x using the formula x = log(Y) / log(N) >>>> put logY / logN into x >>>> -- Return or display the result >>>> answer "The value of x is: " & x >>>> >>>> end findX >>>> >>>> Explanation: >>>> >>>> — Example: where N = 1234 and Y = 10 findX 1234, 10 >>>> >>>> I hope that helps. If it doesn’t, blame Chat GPT! >>>> >>>> Rick >>>> >>>>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode wrote: >>>>> >>>>> Hi folks, >>>>> >>>>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>>>> >>>>> >>>>> Thanks, >>>>> >>>>> Roger >>>>> _______________________________________________ >>>>> 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 Bernd.Niggemann at uni-wh.de Wed Dec 18 03:59:02 2024 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Wed, 18 Dec 2024 08:59:02 +0000 Subject: How to Return the Exponent Message-ID: <4F318EB1-5E02-4817-8AF3-44F3C80A98BD@uni-wh.de> Hi Roger, This does work: Please note the quotes, in your mail it was curly quotes that do not work apart from asking for "word" instead of "token". on mouseUp set the itemDel to "^" put token 3 of item 2 of "((1234…)^1/x)" into field 1 set the itemDelimiter to "/" put cr & token 1 of item 2 of "((1234…)^1/15)" after field 1 end mouseUp Kind regards Bernd >Roger wrote: >Oops. I take it back. It does not work. > set the itemDel to “^" > put char 3 of word 2 of "((1234…)^1/x)” >returns blank From scott at elementarysoftware.com Wed Dec 18 05:02:40 2024 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Wed, 18 Dec 2024 02:02:40 -0800 Subject: How to Return the Exponent In-Reply-To: <4F318EB1-5E02-4817-8AF3-44F3C80A98BD@uni-wh.de> References: <4F318EB1-5E02-4817-8AF3-44F3C80A98BD@uni-wh.de> Message-ID: Roger, I don’t believe that setting the itemDel will change how WORDs break. It will allow you to find ITEM 2: ^1/x) I was getting char 3 of item 2 and that would work as long as x was a single digit (which you implied originally) but Bernd’s solution is more robust (as usual!) because it will find an x that contains 1 or more digits. That is a better solution than using “char” > On Dec 18, 2024, at 12:59 AM, Niggemann, Bernd via use-livecode wrote: > > Hi Roger, > > This does work: > > Please note the quotes, in your mail it was curly quotes that do not work apart from asking for "word" instead of "token". > > on mouseUp > set the itemDel to "^" > put token 3 of item 2 of "((1234…)^1/x)" into field 1 > > set the itemDelimiter to "/" > put cr & token 1 of item 2 of "((1234…)^1/15)" after field 1 > end mouseUp > > Kind regards > Bernd > >> Roger wrote: > >> Oops. I take it back. It does not work. >> set the itemDel to “^" >> put char 3 of word 2 of "((1234…)^1/x)” >> returns blank > _______________________________________________ > 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 irog at mac.com Wed Dec 18 11:16:13 2024 From: irog at mac.com (Roger Guay) Date: Wed, 18 Dec 2024 08:16:13 -0800 Subject: How to Return the Exponent In-Reply-To: References: <4F318EB1-5E02-4817-8AF3-44F3C80A98BD@uni-wh.de> Message-ID: Thanks to Bernd, Scott and Rick for helping me out. I have never run into token before and learned so much from Bernd’s use of it here. I invariably learn valuable lessons from this list. . . ChatGPT, not so much. Cheers, Roger > On Dec 18, 2024, at 2:02 AM, scott--- via use-livecode wrote: > > Roger, I don’t believe that setting the itemDel will change how WORDs break. It will allow you to find ITEM 2: > > ^1/x) > > I was getting char 3 of item 2 and that would work as long as x was a single digit (which you implied originally) but Bernd’s solution is more robust (as usual!) because it will find an x that contains 1 or more digits. > > That is a better solution than using “char” > >> On Dec 18, 2024, at 12:59 AM, Niggemann, Bernd via use-livecode wrote: >> >> Hi Roger, >> >> This does work: >> >> Please note the quotes, in your mail it was curly quotes that do not work apart from asking for "word" instead of "token". >> >> on mouseUp >> set the itemDel to "^" >> put token 3 of item 2 of "((1234…)^1/x)" into field 1 >> >> set the itemDelimiter to "/" >> put cr & token 1 of item 2 of "((1234…)^1/15)" after field 1 >> end mouseUp >> >> Kind regards >> Bernd >> >>> Roger wrote: >> >>> Oops. I take it back. It does not work. >>> set the itemDel to “^" >>> put char 3 of word 2 of "((1234…)^1/x)” >>> returns blank >> _______________________________________________ >> 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 Wed Dec 18 11:16:50 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Dec 2024 16:16:50 +0000 Subject: How to Return the Exponent In-Reply-To: <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> Message-ID: <62A0AD32-73B1-40A5-8A3A-02E68EE613D5@iotecdigital.com> ITEM 2 not WORD 2. Bob S > On Dec 17, 2024, at 7:07 PM, Roger Guay via use-livecode wrote: > > Oops. I take it back. It does not work. > > set the itemDel to “^" > put char 3 of word 2 of "((1234…)^1/x)” > > returns blank > > Bummer! > >> On Dec 17, 2024, at 6:54 PM, Roger Guay via use-livecode wrote: >> >> Thanks for correcting my spelling, Scott. It does work! What’s strange, though is that the script editor indicated green for itemdelimeter . . . I think. I must be going blind! >> >> Thanks, >> >> Roger >> >> >>> On Dec 17, 2024, at 6:40 PM, scott--- via use-livecode wrote: >>> >>> does this work? >>> >>> set itemDel to "^" >>> put char 4 of item 2 of "((1234…)^(1/x))" >>> >>>> On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode wrote: >>>> >>>> Hi Rick, >>>> >>>> Sorry to confuse you and ChatGPT. >>>> >>>> In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . >>>> >>>> Something like this does not work: >>>> >>>> Set Itemdelimeter to “^” >>>> put char 4 of word 2 of ((1234…)^(1/x)) >>>> >>>> …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer >>>> >>>> Thanks, >>>> >>>> Roger >>>> >>>>> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode wrote: >>>>> >>>>> Hi Roger, >>>>> >>>>> Chat GPT gave me an interesting answer to this question. >>>>> You should try that, then be a little more verbose about >>>>> what exactly you are trying to do here. Even Chat GPT >>>>> seemed a little confused by your question. Of course >>>>> that’s pretty normal for Chat GPT! >>>>> >>>>> I at least understand you mean the easier way to do this >>>>> with LiveCode. When I asked Chat GPT that question >>>>> it came back with: >>>>> >>>>> command findX N, Y >>>>> >>>>> -- Calculate log of N and Y >>>>> put log(N) into logN >>>>> put log(Y) into logY >>>>> -- Check if logN is zero to avoid division by zero error >>>>> if logN = 0 then >>>>> answer "Logarithm of N is zero, cannot compute x” >>>>> exit to top >>>>> end if >>>>> >>>>> -- Calculate x using the formula x = log(Y) / log(N) >>>>> put logY / logN into x >>>>> -- Return or display the result >>>>> answer "The value of x is: " & x >>>>> >>>>> end findX >>>>> >>>>> Explanation: >>>>> >>>>> — Example: where N = 1234 and Y = 10 findX 1234, 10 >>>>> >>>>> I hope that helps. If it doesn’t, blame Chat GPT! >>>>> >>>>> Rick >>>>> >>>>>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode wrote: >>>>>> >>>>>> Hi folks, >>>>>> >>>>>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>>>>> >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Roger >>>>>> _______________________________________________ >>>>>> 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 irog at mac.com Wed Dec 18 11:31:33 2024 From: irog at mac.com (Roger Guay) Date: Wed, 18 Dec 2024 08:31:33 -0800 Subject: How to Return the Exponent In-Reply-To: <62A0AD32-73B1-40A5-8A3A-02E68EE613D5@iotecdigital.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> <62A0AD32-73B1-40A5-8A3A-02E68EE613D5@iotecdigital.com> Message-ID: <94330DF8-A9F1-4ACB-9A3F-5DDE9E3BACC1@mac.com> Thanks, Bob. That works. My bad Roger > On Dec 18, 2024, at 8:16 AM, Bob Sneidar via use-livecode wrote: > > ITEM 2 not WORD 2. > > Bob S > > >> On Dec 17, 2024, at 7:07 PM, Roger Guay via use-livecode wrote: >> >> Oops. I take it back. It does not work. >> >> set the itemDel to “^" >> put char 3 of word 2 of "((1234…)^1/x)” >> >> returns blank >> >> Bummer! >> >>> On Dec 17, 2024, at 6:54 PM, Roger Guay via use-livecode wrote: >>> >>> Thanks for correcting my spelling, Scott. It does work! What’s strange, though is that the script editor indicated green for itemdelimeter . . . I think. I must be going blind! >>> >>> Thanks, >>> >>> Roger >>> >>> >>>> On Dec 17, 2024, at 6:40 PM, scott--- via use-livecode wrote: >>>> >>>> does this work? >>>> >>>> set itemDel to "^" >>>> put char 4 of item 2 of "((1234…)^(1/x))" >>>> >>>>> On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode wrote: >>>>> >>>>> Hi Rick, >>>>> >>>>> Sorry to confuse you and ChatGPT. >>>>> >>>>> In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . >>>>> >>>>> Something like this does not work: >>>>> >>>>> Set Itemdelimeter to “^” >>>>> put char 4 of word 2 of ((1234…)^(1/x)) >>>>> >>>>> …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer >>>>> >>>>> Thanks, >>>>> >>>>> Roger >>>>> >>>>>> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode wrote: >>>>>> >>>>>> Hi Roger, >>>>>> >>>>>> Chat GPT gave me an interesting answer to this question. >>>>>> You should try that, then be a little more verbose about >>>>>> what exactly you are trying to do here. Even Chat GPT >>>>>> seemed a little confused by your question. Of course >>>>>> that’s pretty normal for Chat GPT! >>>>>> >>>>>> I at least understand you mean the easier way to do this >>>>>> with LiveCode. When I asked Chat GPT that question >>>>>> it came back with: >>>>>> >>>>>> command findX N, Y >>>>>> >>>>>> -- Calculate log of N and Y >>>>>> put log(N) into logN >>>>>> put log(Y) into logY >>>>>> -- Check if logN is zero to avoid division by zero error >>>>>> if logN = 0 then >>>>>> answer "Logarithm of N is zero, cannot compute x” >>>>>> exit to top >>>>>> end if >>>>>> >>>>>> -- Calculate x using the formula x = log(Y) / log(N) >>>>>> put logY / logN into x >>>>>> -- Return or display the result >>>>>> answer "The value of x is: " & x >>>>>> >>>>>> end findX >>>>>> >>>>>> Explanation: >>>>>> >>>>>> — Example: where N = 1234 and Y = 10 findX 1234, 10 >>>>>> >>>>>> I hope that helps. If it doesn’t, blame Chat GPT! >>>>>> >>>>>> Rick >>>>>> >>>>>>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode wrote: >>>>>>> >>>>>>> Hi folks, >>>>>>> >>>>>>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>>>>>> >>>>>>> >>>>>>> Thanks, >>>>>>> >>>>>>> Roger >>>>>>> _______________________________________________ >>>>>>> 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 rolf.kocherhans at gmail.com Thu Dec 19 06:58:01 2024 From: rolf.kocherhans at gmail.com (Rolf Kocherhans) Date: Thu, 19 Dec 2024 12:58:01 +0100 Subject: [Question] Looking for "Mini Bitmap Editor" Stack Message-ID: Hi everyone, I’m on the lookout for an old stack called "Mini Bitmap Editor", created by Malte Brill. It used to be available on revOnline, but I haven’t been able to track it down. You can find a bit of context about it here: https://lists.runrev.com/pipermail/use-livecode/2005-October/068142.html If anyone happens to have a copy of this stack in their collection, I’d be so grateful if you could share it with me (off-list, if possible). Thanks so much in advance! Warm regards, Rolf From dick.kriesel at mail.com Thu Dec 19 13:41:52 2024 From: dick.kriesel at mail.com (Dick Kriesel) Date: Thu, 19 Dec 2024 10:41:52 -0800 Subject: How to Return the Exponent In-Reply-To: <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> Message-ID: > On Dec 17, 2024, at 7:07 PM, Roger Guay via use-livecode wrote: > > Oops. I take it back. It does not work. > > set the itemDel to “^" > put char 3 of word 2 of "((1234…)^1/x)” > > returns blank > > Bummer! Hi, Roger. word 2 of "((1234…)^1/x)" is empty because the word delimiter is space. Try "item 2" instead. — Dick From irog at mac.com Thu Dec 19 15:01:33 2024 From: irog at mac.com (Roger Guay) Date: Thu, 19 Dec 2024 12:01:33 -0800 Subject: How to Return the Exponent In-Reply-To: References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> Message-ID: Thank you, Dick. Item 2 does indeed work and makes total sense Roger > On Dec 19, 2024, at 10:41 AM, Dick Kriesel via use-livecode wrote: > > > >> On Dec 17, 2024, at 7:07 PM, Roger Guay via use-livecode wrote: >> >> Oops. I take it back. It does not work. >> >> set the itemDel to “^" >> put char 3 of word 2 of "((1234…)^1/x)” >> >> returns blank >> >> Bummer! > > Hi, Roger. > > word 2 of "((1234…)^1/x)" is empty because the word delimiter is space. Try "item 2" instead. > > — Dick > _______________________________________________ > 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 ali.lloyd at livecode.com Fri Dec 20 12:17:31 2024 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Fri, 20 Dec 2024 17:17:31 +0000 Subject: [OT] Puzzle Hunt Message-ID: Some time ago I wrote a puzzle hunt for no particular reason other than to amuse myself - it has a couple of bits that are explicitly LiveCode related but mostly it should be solvable without LiveCode knowledge. Since I've titled it LiveCode Puzzle Hunt 2024 I thought I'd better 'release' it now - https://alilloyd.livecodehosting.com/puzzlehunt/home.html For those that don't know what a puzzle hunt is, it's a bunch of puzzles which lead to answers that are a word or phrase, and (in this case) there is a metapuzzle that 'unlocks' at some point which ties together the answers to all the other puzzles to give a final answer to the hunt. Per Wikipedia, "Puzzlehunt puzzles are usually not accompanied by direct instructions for how to solve them; figuring out the necessary approach is part of the puzzle." If solved correctly, it should always be clear that the answer you have is *the* answer to the puzzle. If anyone fancies trying to have a go, I recommend teaming up - especially if you've never done puzzlehunt-style puzzles before. Equally if you're just interested feel free to sign up and put as much effort in as you want. If there is any point at all to me having done this (which there isn't) then it's for people to have fun solving it. On that note, there will probably be a hint system at some point but in the meantime feel free to message me if you're stuck and want a hint. Also you can just see the puzzles here (https://alilloyd.livecodehosting.com/puzzlehunt/puzzindex.html) if you don't want to sign up. I hope the festive period treats you all well! From dvglasgow at gmail.com Sat Dec 21 05:43:05 2024 From: dvglasgow at gmail.com (David Glasgow) Date: Sat, 21 Dec 2024 10:43:05 +0000 Subject: Webby URL search and scrape question Message-ID: I am alsmost a complete novice with respect to HTML and web stuff, but suddenly find myself needing to change that. I have read around web scraping but most stuff is much more ambitious than what I want to do, focusses on python and assumes slightly (?)shady business goals - like scraping data from your competitors' websites. My goal is pure research...and of course I would love to do it in Livecode I want to work through a list of (pseudo) random URLs, harvest the page title and any keywords, and aggregate the results in a field/table. So I don't want the URLs to be found on the basis of content or top level domain at all. Metaphorically, dipping into the WWW bran tub allowing all domain suffixes, pulling out a random page, checking it has english content, check it has keywords, extract the page title, extract any keywords, save them to a table indexed by URL and then move on to the next lucky dip. The specifics I would appreciate advice on are 1/ how to sample as close to a random sample of URLs as possible. There are websites that purport to take you to a random www page, but I couldn't work out how they pull that off - or indeed how random the destination really is. They also want to do it only one by one, whereas I want to do it a few thousand times on the bounce, ideally without visiting any page in the browsing sense. 2/ how might I check the URL a) is in english and b) contains keywords 3/ is it possible to extract the title and keywords from a URL using Livecode 'remotely' or do I need to use a browser to visit? Thanks in advance for any advice or thoughts Cheers David G -- David Glasgow Consultant Forensic & Clinical Psychologist Honorary Professor, Nottingham Trent University Sexual Offences, Crime and Misconduct Research Unit Carlton Glasgow Partnership Director, Child & Family Training, York From andreas.bergendal at gmail.com Sat Dec 21 07:11:13 2024 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 21 Dec 2024 13:11:13 +0100 Subject: Webby URL search and scrape question In-Reply-To: References: Message-ID: <59143415-AF1A-41E2-8C54-302C992E9659@gmail.com> Hi David, I don’t know how to obtain thousands of random urls in a useful way, but I can contribute some ideas on how to process a url once you have it. With LiveCode, you won’t have to actually ’visit' the web site as in seeing it rendered in a browser, but you need to load the content, which may be slow enough, depending on the website. To get started testing, I would do something like put URL tURL into tHTMLcontent put char 1 to 9999 of tHTMLcontent into tHTMLcontent to as soon as possible cut down the memory burden. Then it would be easy to parse out the and <html lang=”..."> tags to find title and language - although neither are mandatory, so you’d need alternative ways if those tags are not present. Keywords are harder to determine, as they can appear (or not) in many different ways. These days, I would simply hook the stack up to an AI api and let that analyse the content, which could work for language categorisation as well. To scale up and automate the analysis of thousands of urls, using ’put URL’ would be too slow though, as it’s a blocking command. You’d have to set up parallel ’load URL’s and have the results processed dynamically as they trickle in, and error handle those that for some reason don’t load. Sounds like a fun project! :) /Andreas > 21 dec. 2024 kl. 11:43 skrev David Glasgow via use-livecode <use-livecode at lists.runrev.com>: > > I am alsmost a complete novice with respect to HTML and web stuff, but > suddenly find myself needing to change that. I have read around web > scraping but most stuff is much more ambitious than what I want to do, > focusses on python and assumes slightly (?)shady business goals - like > scraping data from your competitors' websites. My goal is pure > research...and of course I would love to do it in Livecode > > I want to work through a list of (pseudo) random URLs, harvest the page > title and any keywords, and aggregate the results in a field/table. So I > don't want the URLs to be found on the basis of content or top level domain > at all. Metaphorically, dipping into the WWW bran tub allowing all domain > suffixes, pulling out a random page, checking it has english content, > check it has keywords, extract the page title, extract any keywords, save > them to a table indexed by URL and then move on to the next lucky dip. > > The specifics I would appreciate advice on are > > 1/ how to sample as close to a random sample of URLs as possible. There > are websites that purport to take you to a random www page, but I > couldn't work out how they pull that off - or indeed how random > the destination really is. They also want to do it only one by one, > whereas I want to do it a few thousand times on the bounce, ideally without > visiting any page in the browsing sense. > > 2/ how might I check the URL a) is in english and b) contains keywords > > 3/ is it possible to extract the title and keywords from a URL using > Livecode 'remotely' or do I need to use a browser to visit? > > Thanks in advance for any advice or thoughts > > Cheers > > David G From rolf.kocherhans at gmail.com Sat Dec 21 08:34:12 2024 From: rolf.kocherhans at gmail.com (Rolf Kocherhans) Date: Sat, 21 Dec 2024 14:34:12 +0100 Subject: [Ann] macOS Style ColorPicker designed for the Web Message-ID: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> Hello everyone, I’ve created a ColorPicker designed specifically for the web, perfect for scenarios where a native ColorPicker isn’t available. You can find more information in the Forum here: https://forums.livecode.com/viewtopic.php?f=120&t=39500 If you’d like to try it out, simply click the link below. The app is hosted on GitHub Pages, so it works right out of the box. Live URL: https://rolfkocherhans.github.io/ColorPicker/ Enjoy exploring it! Cheers, Rolf From tom at makeshyft.com Sat Dec 21 16:12:05 2024 From: tom at makeshyft.com (Tom Glod) Date: Sat, 21 Dec 2024 16:12:05 -0500 Subject: [Ann] macOS Style ColorPicker designed for the Web In-Reply-To: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> References: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> Message-ID: <CAPzQJLJPoATTHSu2tmHFbq0MEDSeRf8ZrFbEfWsG5auryodqsQ@mail.gmail.com> nice job! On Sat, Dec 21, 2024 at 8:35 AM Rolf Kocherhans via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello everyone, > > I’ve created a ColorPicker designed specifically for the web, perfect for > scenarios where a native ColorPicker isn’t available. > > You can find more information in the Forum here: > https://forums.livecode.com/viewtopic.php?f=120&t=39500 > > If you’d like to try it out, simply click the link below. The app is > hosted on GitHub Pages, so it works right out of the box. > > Live URL: https://rolfkocherhans.github.io/ColorPicker/ > > Enjoy exploring it! > > 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 > From harrison at all-auctions.com Sun Dec 22 00:14:58 2024 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Sun, 22 Dec 2024 00:14:58 -0500 Subject: [Ann] macOS Style ColorPicker designed for the Web In-Reply-To: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> References: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> Message-ID: <26378745-19F8-4742-89B9-94FED0A724CC@all-auctions.com> Hi Rolf, This is nice, but I was hoping it would show the hexadecimal safe web color values too. Is there a way you could implement that? Rick > On Dec 21, 2024, at 8:34 AM, Rolf Kocherhans via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hello everyone, > > I’ve created a ColorPicker designed specifically for the web, perfect for scenarios where a native ColorPicker isn’t available. > > You can find more information in the Forum here: https://forums.livecode.com/viewtopic.php?f=120&t=39500 > > If you’d like to try it out, simply click the link below. The app is hosted on GitHub Pages, so it works right out of the box. > > Live URL: https://rolfkocherhans.github.io/ColorPicker/ > > Enjoy exploring it! > > 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 From curry at pair.com Wed Dec 25 17:23:14 2024 From: curry at pair.com (Curry Kenworthy) Date: Wed, 25 Dec 2024 17:23:14 -0500 Subject: Merry Christmas and Happy Holidays Message-ID: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> More properly - Merry 'Christ's Mass' and Happy Holy-days! More news after recuperating a bit.... Best wishes, Curry Kenworthy Radically Innovative Christian LiveCode Development "PASSION for Elegant, Efficient Code!" https://livecodeconsulting.com/ From tom at makeshyft.com Thu Dec 26 01:55:38 2024 From: tom at makeshyft.com (Tom Glod) Date: Thu, 26 Dec 2024 01:55:38 -0500 Subject: Merry Christmas and Happy Holidays In-Reply-To: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> Message-ID: <CAPzQJLLMCVJeu-gfKdOtH_8ZMfvSTnaFYXcQbdcf4H95XNNpVQ@mail.gmail.com> Same to you and yours Curry. Merry Christmas everyone! On Wed, Dec 25, 2024 at 5:24 PM Curry Kenworthy via use-livecode < use-livecode at lists.runrev.com> wrote: > More properly - Merry 'Christ's Mass' and Happy Holy-days! > > More news after recuperating a bit.... > > Best wishes, > > Curry Kenworthy > > Radically Innovative Christian LiveCode Development > "PASSION for Elegant, Efficient Code!" > https://livecodeconsulting.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 jbv at souslelogo.com Mon Dec 30 11:13:04 2024 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 30 Dec 2024 11:13:04 -0500 Subject: Problem with the shell command with a local server In-Reply-To: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> Message-ID: <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> Hi list, Long story short : I am using LM Studio as a local server to send requests to an LLM model. I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. The request looks like that : curl http://127.0.0.1:1234/v1/embeddings \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' The response is a json file with a list of vectors. When I execute the command in Terminal, everything works fine. But when I use "put shell(tcurl) into myjson" in a LC script, I get the same result, except for a line that is inserted in the middle of the json and looks like that : ... 0.01324639841914177, 0.085932932794094 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- --:--:-- 913k 09, -0.020998964086174965, ... instead of ... 0.01324639841914177, 0.08593293279409409, -0.020998964086174965, ... Because of that I can't parse the json and I get an error with JsonImport. What am I doing wrong ? How can I fix it ? Thank you in advance jbv From jbv at souslelogo.com Mon Dec 30 11:19:01 2024 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 30 Dec 2024 11:19:01 -0500 Subject: Problem with the shell command on a local server Message-ID: <36e79996b8a97d25cce30227072943a9@souslelogo.com> Hi list, Long story short : I am using LM Studio as a local server to send requests to an LLM model. I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. The request looks like that : curl http://127.0.0.1:1234/v1/embeddings \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' The response is a json file with a list of vectors. When I execute the command in Terminal, everything works fine. But when I use "put shell(tcurl) into myjson" in a LC script, I get the same result, except for a line that is inserted in the middle of the json and looks like that : ... 0.01324639841914177, 0.085932932794094 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- --:--:-- 913k 09, -0.020998964086174965, ... instead of ... 0.01324639841914177, 0.08593293279409409, -0.020998964086174965, ... Because of that I can't parse the json and I get an error with JsonImport. What am I doing wrong ? How can I fix it ? Thank you in advance jbv From bobsneidar at iotecdigital.com Mon Dec 30 12:09:43 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Dec 2024 17:09:43 +0000 Subject: Problem with the shell command with a local server In-Reply-To: <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> Message-ID: <5137292C-C833-483B-9089-71597B6116D6@iotecdigital.com> It looks like a continuation of the second line actually. Bob S > On Dec 30, 2024, at 8:13 AM, jbv via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi list, > > Long story short : I am using LM Studio as a local server to send requests to an LLM model. > I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. > > The request looks like that : > curl http://127.0.0.1:1234/v1/embeddings \ > -H "Content-Type: application/json" \ > -d '{ > "model": "text-embedding-granite-embedding-278m-multilingual", > "input": "some text" > }' > > The response is a json file with a list of vectors. > When I execute the command in Terminal, everything works fine. > But when I use "put shell(tcurl) into myjson" in a LC script, > I get the same result, except for a line that is inserted in the > middle of the json and looks like that : > ... > 0.01324639841914177, > 0.085932932794094 > 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- --:--:-- 913k > 09, > -0.020998964086174965, > ... > > instead of > ... > 0.01324639841914177, > 0.08593293279409409, > -0.020998964086174965, > ... > > Because of that I can't parse the json and I get an error with JsonImport. > > What am I doing wrong ? > How can I fix it ? > > Thank you in advance > jbv > > _______________________________________________ > 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 Dec 30 12:11:25 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Dec 2024 17:11:25 +0000 Subject: Problem with the shell command with a local server In-Reply-To: <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> Message-ID: <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> If you are parsing in LC, you can get the first word of each line. Now if the text returned actually contains a line break in the second line that is producing the erroneous third line, you may have to test the range of each line. Bob S > On Dec 30, 2024, at 8:13 AM, jbv via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi list, > > Long story short : I am using LM Studio as a local server to send requests to an LLM model. > I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. > > The request looks like that : > curl http://127.0.0.1:1234/v1/embeddings \ > -H "Content-Type: application/json" \ > -d '{ > "model": "text-embedding-granite-embedding-278m-multilingual", > "input": "some text" > }' > > The response is a json file with a list of vectors. > When I execute the command in Terminal, everything works fine. > But when I use "put shell(tcurl) into myjson" in a LC script, > I get the same result, except for a line that is inserted in the > middle of the json and looks like that : > ... > 0.01324639841914177, > 0.085932932794094 > 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- --:--:-- 913k > 09, > -0.020998964086174965, > ... > > instead of > ... > 0.01324639841914177, > 0.08593293279409409, > -0.020998964086174965, > ... > > Because of that I can't parse the json and I get an error with JsonImport. > > What am I doing wrong ? > How can I fix it ? > > Thank you in advance > jbv > > _______________________________________________ > 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 jbv at souslelogo.com Mon Dec 30 12:40:26 2024 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 30 Dec 2024 12:40:26 -0500 Subject: Problem with the shell command with a local server In-Reply-To: <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> Message-ID: <4c379911f95d428f841677debefea198@souslelogo.com> Actually it's not so simple, as the line is randomly corrupted and almost doesn't look twice the same. I already tried to clean up the json before using JsonImport, but it's almost impossible to use a general rule. I would prefer to find a way to prevent this to happen, since it doesn't happen in Terminal. So it looks like something specific to the shell command in LC. For the record, I have tried with different models in LM Studio and the problem is the same. However, I am using the same technique with the OpenAI API and I don't have the problem. So I suspect there is something specific happening when using the shell command with a local server. Le 2024-12-30 12:11, Bob Sneidar via use-livecode a crit : > If you are parsing in LC, you can get the first word of each line. Now > if the text returned actually contains a line break in the second line > that is producing the erroneous third line, you may have to test the > range of each line. > > Bob S > >> On Dec 30, 2024, at 8:13 AM, jbv via use-livecode >> <use-livecode at lists.runrev.com> wrote: >> >> Hi list, >> >> Long story short : I am using LM Studio as a local server to send >> requests to an LLM model. >> I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. >> >> The request looks like that : >> curl http://127.0.0.1:1234/v1/embeddings \ >> -H "Content-Type: application/json" \ >> -d '{ >> "model": "text-embedding-granite-embedding-278m-multilingual", >> "input": "some text" >> }' >> >> The response is a json file with a list of vectors. >> When I execute the command in Terminal, everything works fine. >> But when I use "put shell(tcurl) into myjson" in a LC script, >> I get the same result, except for a line that is inserted in the >> middle of the json and looks like that : >> ... >> 0.01324639841914177, >> 0.085932932794094 >> 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- >> --:--:-- 913k >> 09, >> -0.020998964086174965, >> ... >> >> instead of >> ... >> 0.01324639841914177, >> 0.08593293279409409, >> -0.020998964086174965, >> ... >> >> Because of that I can't parse the json and I get an error with >> JsonImport. >> >> What am I doing wrong ? >> How can I fix it ? >> >> Thank you in advance >> jbv >> >> _______________________________________________ >> 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 Dec 30 13:10:51 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Dec 2024 18:10:51 +0000 Subject: Problem with the shell command with a local server In-Reply-To: <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> Message-ID: <9D646428-D251-4B06-A8C0-25CB8EE32BD1@iotecdigital.com> Have you tried getting rid of the line breaks between the curly brackets? Bob S On Dec 30, 2024, at 9:11 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote: -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' From jbv at souslelogo.com Mon Dec 30 13:41:33 2024 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 30 Dec 2024 13:41:33 -0500 Subject: Problem with the shell command with a local server In-Reply-To: <fea096fc-4261-4d1b-b0bc-3aa18e4be3b8@ahsoftware.net> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> <fea096fc-4261-4d1b-b0bc-3aa18e4be3b8@ahsoftware.net> Message-ID: <2c2bb11bfbaf5ebea8ed52dbb99bc885@souslelogo.com> Thank you Mark, the following modification did the trick : curl http://127.0.0.1:1234/v1/embeddings \ -s \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' Le 2024-12-30 13:06, Mark Wieder a crit : > On 12/30/24 08:13, jbv via use-livecode wrote: > >> Because of that I can't parse the json and I get an error with >> JsonImport. >> >> What am I doing wrong ? >> How can I fix it ? > > A couple of curl commandline options to try: > > 1. use the --silent option with curl > 2. send the json output to a file and parse that: > curl <other options here> -o filename From bobsneidar at iotecdigital.com Tue Dec 31 16:45:37 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 31 Dec 2024 21:45:37 +0000 Subject: Problem with the shell command with a local server In-Reply-To: <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> Message-ID: <45FA705C-1A72-4C27-89F4-71C7BB2E7D40@iotecdigital.com> Have you tried getting rid of the line breaks between the curly brackets? Bob S On Dec 30, 2024, at 9:11 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote: -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' From paul at livecode.org Tue Dec 31 18:31:42 2024 From: paul at livecode.org (Paul - Livecode) Date: Tue, 31 Dec 2024 15:31:42 -0800 Subject: Help with Linux app built with LC on Mac Message-ID: <BB79235D-9D97-4071-A619-9757F6C722D4@livecode.org> Hi everyone, I’ve been a long-time list member, but never really felt the need to ask for advice until now. I’ve just built a small app using LC 9.6.13 and built standalones for Mac, Windows, and Linux, which I may look at distributing once all testing is done. I’m using a MacBook Pro M2 for development, and I have Parallels for testing. The Mac and Windows versions appear to be working fine, but when I try to launch the Linux standalone in Ubuntu via Parallels, it won’t even launch. When I double-click the app icon, there is no response. The same is true if I right-click and choose “Run”. I checked the app and folder permissions, and they appear to be OK. The app is on the Linux partition, and I have tried both the standard and x64 versions. I’ve never used Linux before, apart from on RPi, so I’m not sure if there is something that I am missing or doing wrong. Any ideas or advice would be gratefully received. Thank you, and wishing you all a wonderful New Year. Paul From mark at livecode.com Tue Dec 3 03:06:13 2024 From: mark at livecode.com (Mark Waddingham) Date: Tue, 03 Dec 2024 08:06:13 +0000 Subject: Problems with (ask and answer) dialogs with LC 10 on Windows 11 In-Reply-To: <2D0BD881-D3D6-4355-ACF5-2B14B2FCF398@major-k.de> References: <2D0BD881-D3D6-4355-ACF5-2B14B2FCF398@major-k.de> Message-ID: <fe5c43ded543a9f917b55eb3839f5fb5@livecode.com> On 2024-11-29 12:53, Klaus major-k via use-livecode wrote: > Hi friends, > > a friend of mine has recently upgraded to Windows 11 and now has this > problem: > All (ask and answer) dialogs appear in the background and not in front > as exspected. > > Clicking in any IDE window will cause this "block (?)" beep, and he > must use ALT-Tab > until the dialog finally comes to front. And then it takes several > clicks until he can enter > text into the input field (Ask dialog). > > Anyone seen this and/or is this a known problem on Windows (11) with LC > 10? Not that we are aware of :) The code for handling ask/answer dialogs on windows hasn't changed - they are 'just' modal stacks wrapped in engine syntax so if they were generally broken on Windows 11 with LC10, I think we would have heard by now (I do windows development in Windows 11, and haven't see this issue for example). Could ask your friend to see if he sees the same issue with 9.6.13 - that will help narrow down the possible causes. Of course, there could be Windows 11 system settings which are affecting things - or indeed third party software. Any information your friend could provide there might help. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From mark at livecode.com Tue Dec 3 03:10:30 2024 From: mark at livecode.com (Mark Waddingham) Date: Tue, 03 Dec 2024 08:10:30 +0000 Subject: macOS Sequoia (v15) and popup menu bugs? In-Reply-To: <4d7fb922-c073-4d72-b15d-94616f1a9577@researchware.com> References: <4d7fb922-c073-4d72-b15d-94616f1a9577@researchware.com> Message-ID: <ed3eefc8c46275ad4d11706d00ae2737@livecode.com> On 2024-11-30 16:16, Paul Dupuis via use-livecode wrote: > We have a confirmed report of a customer experience a repeatable hard > crash of out application on macOS Sequoia (15.1.1) when trying to > invoke a right-click context menu. We implement context menus by a > Frontscript that looks at mouseDown, and, if it is a mouseDown with the > right modifiers for a context menu, handler it or passes mouseDown. If > it handles it, it modified a button called "popup" to contain the > correct context menu items based on what was clicked on and the > invokes: popup btn "popup" of stack "cm" > > Our app is built under LC 9.6.13. I searched the Livecode Quality > Center (bugzilla) for any bugs related to Sequoia, but found nothing. > It works on macOS Sonoma without any crash. We do not currently have a > Sequoia system to test on. > > Has anyone experienced a crash with a popup menu on Sequoia? Any > insights? Could you submit a bug report with a stack which replicates the initial contents and then modification of the popup menu and then does popup? We can then look into it - given that we haven't had any other reports of this, I suspect it is something in the structure / modification of the popup menu which is causing a problem (I realize you can't test this is context, but it would give us some insight into making a recipe). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From klaus at major-k.de Tue Dec 3 11:03:53 2024 From: klaus at major-k.de (Klaus major-k) Date: Tue, 3 Dec 2024 17:03:53 +0100 Subject: Problems with (ask and answer) dialogs with LC 10 on Windows 11 In-Reply-To: <fe5c43ded543a9f917b55eb3839f5fb5@livecode.com> References: <2D0BD881-D3D6-4355-ACF5-2B14B2FCF398@major-k.de> <fe5c43ded543a9f917b55eb3839f5fb5@livecode.com> Message-ID: <A969A0B0-346B-4DCA-8675-DF0F8DE18B0A@major-k.de> Hi Mark, > Am 03.12.2024 um 09:06 schrieb Mark Waddingham via use-livecode <use-livecode at lists.runrev.com>: > > On 2024-11-29 12:53, Klaus major-k via use-livecode wrote: >> Hi friends, >> a friend of mine has recently upgraded to Windows 11 and now has this problem: >> All (ask and answer) dialogs appear in the background and not in front as exspected. >> Clicking in any IDE window will cause this "block (?)" beep, and he must use ALT-Tab >> until the dialog finally comes to front. And then it takes several clicks until he can enter >> text into the input field (Ask dialog). >> Anyone seen this and/or is this a known problem on Windows (11) with LC 10? > Not that we are aware of :) > The code for handling ask/answer dialogs on windows hasn't changed - they are 'just' modal stacks wrapped in engine syntax so if they were generally broken on Windows 11 with LC10, I think we would have heard by now (I do windows development in Windows 11, and haven't see this issue for example). > Could ask your friend to see if he sees the same issue with 9.6.13 - that will help narrow down the possible causes. > Of course, there could be Windows 11 system settings which are affecting things - or indeed third party software. Any information your friend could provide there might help. > > Warmest Regards, > > Mark. thank you, I will ask him! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From benr_mc at cogapp.com Wed Dec 4 12:21:56 2024 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 4 Dec 2024 17:21:56 +0000 Subject: Configuring tooltips on Chart widget Message-ID: <ef36cf89-0c44-4f86-bb07-cc961ff3799e@cogapp.com> Has anyone been able to configure tooltips on the Chart widget? My immediate requirement is a scatter plot, ideally with two different colours of markers, and with a custom tooltip on each marker. If I try to edit the 'data labels' in the chart property inspector, my edits are immediately undone. If I set the data points using the 'tsvData' property of the widget, and then set labels using the 'dataLabels' property, the scales of the widget are reset (so horizontal axis runs from 0 to 1.0, where before setting dataLabels, it ran 0 to 3,000). All the markers disappear (even if I deliberately add a datapoint within this range). If I use the chartJsonData property, and include "options" as well as "datasets" in the JSON I submit, setting it has no effect. (Whereas removing that section from the JSON, setting the chartJsonData property does have an effect.) If I use the chartJsonData property to set points including "x", "y" and "label" attributes for each, the data is accepted and the points appear in the expected place. But the tooltip on each point is the x and y values, e.g. "(30, 50)". If I then use the chartOptionsData property I can modify scales, gridlines etc. But if I include a "plugins" attribute defining a "tooltip" callback in the JSON (definition copied from the interweb) then setting it has no visible effect (possibly an error is thrown somewhere). But, from then on when switching from tool mode to browser mode, the revErrorDisplay window pops open with a report of the form: LCB Error array key does not exist Object BensChartWidget LCB File chartlc.lcb LCB Line 1873 Unfortunately, I can't locate a "chartlc.lcb" file in the package. I'm a bit stumped. Is there a way to set a custom label for each point on a scatter chart using this widget? TIA, Ben From paul at researchware.com Wed Dec 4 12:34:55 2024 From: paul at researchware.com (Paul Dupuis) Date: Wed, 4 Dec 2024 12:34:55 -0500 Subject: macOS Sequoia (v15) and popup menu bugs? In-Reply-To: <ed3eefc8c46275ad4d11706d00ae2737@livecode.com> References: <4d7fb922-c073-4d72-b15d-94616f1a9577@researchware.com> <ed3eefc8c46275ad4d11706d00ae2737@livecode.com> Message-ID: <40848ca7-690f-48d1-808e-5d827fb672ff@researchware.com> On 12/3/2024 3:10 AM, Mark Waddingham via use-livecode wrote: > On 2024-11-30 16:16, Paul Dupuis via use-livecode wrote: >> We have a confirmed report of a customer experience a repeatable hard >> crash of out application on macOS Sequoia (15.1.1) when trying to >> invoke a right-click context menu. We implement context menus by a >> Frontscript that looks at mouseDown, and, if it is a mouseDown with >> the right modifiers for a context menu, handler it or passes >> mouseDown. If it handles it, it modified a button called "popup" to >> contain the correct context menu items based on what was clicked on >> and the invokes: popup btn "popup" of stack "cm" >> >> Our app is built under LC 9.6.13. I searched the Livecode Quality >> Center (bugzilla) for any bugs related to Sequoia, but found nothing. >> It works on macOS Sonoma without any crash. We do not currently have >> a Sequoia system to test on. >> >> Has anyone experienced a crash with a popup menu on Sequoia? Any >> insights? > > Could you submit a bug report with a stack which replicates the > initial contents and then modification of the popup menu and then does > popup? > > We can then look into it - given that we haven't had any other reports > of this, I suspect it is something in the structure / modification of > the popup menu which is causing a problem (I realize you can't test > this is context, but it would give us some insight into making a recipe). > > Warmest Regards, > > Mark. > Thank you Mark, We'll do this, but it may be a while. We need to build a Sequoia VM on our Sonoma system (we can't afford to buy another Apple hardware for this). That may take a while since building VM is not a regular occurrence in our lives and we forget all the little tweaks needed for macOS VirtualBox VMs. Once that is done, we will be able to try to reproduce the issue, and if we can, trace it with the debugger. That should allow us to pin point what is causing the crash and create a demo stack with just that code. From andreas.bergendal at gmail.com Wed Dec 4 14:53:04 2024 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Wed, 4 Dec 2024 20:53:04 +0100 Subject: Your scripts as a flowchart In-Reply-To: <A8E6EB90-D569-4807-9EB4-92F6035A95FC@gmail.com> References: <49103ECE-97F3-4305-A3B4-01A0E377E158@gmail.com> <CAKCLKtpqQXm8OwOuhb=2QSTzd+zqFF5fWiWpH0WZ6uxtVuxYRQ@mail.gmail.com> <18a9f0eaa08.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <CAKCLKtofwpfMt7L05z5CbCqA=xeEa3YM3bbodwdv0ZWK3bYBEw@mail.gmail.com> <023C9AEA-7B3A-455E-B6DC-18164BBF04B5@gmail.com> <CAKCLKtrOSD0O3kvs43Q_mJno4Dkf3e4Rv-JigjunPZJJP_s2pQ@mail.gmail.com> <CAKCLKtr7_H9=htuGpOJiM_qOKKHONVimCYFLj2GRsN65jifqWg@mail.gmail.com> <5357224F-1A01-4F2E-804A-014467118930@gmail.com> <45122269-0cd1-47ff-9dac-bb5c003ca1c4@speedbump.io> <C24EEA90-E5E2-4FB8-B0EF-C30DD601FB37@gmail.com> <e2432ecf-2c08-4e3c-a4e0-8337b8541f54@speedbump.io> <A9BBAB28-D426-4613-A45A-C6C8A8E8AD86@gmail.com> <A8E6EB90-D569-4807-9EB4-92F6035A95FC@gmail.com> Message-ID: <77037BF2-95D3-40E8-92C7-3DDCF1F33E6A@gmail.com> Since the list is not very busy these days, I don’t feel too spammy posting a minor update announcement again. :) The WIS_ScriptDependencies v1.2.1 release fixes a bug so that PNGs/SVGs of flowcharts can always be produced. Setting the httpHeaders to "Content-Type: text/plain" fixed it. Download link: https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest /Andreas > 22 nov. 2024 kl. 20:27 skrev Andreas Bergendal <andreas.bergendal at gmail.com>: > > A new WIS_ScriptDependencies update: > > v1.2.0 (22 Nov 2024) > > Finally, in the most recent versions of LiveCode, the browser widget on Windows is upgraded and can run Mermaid code! > > - Enhancement: Flowcharts can now be displayed in the browser widget also on Windows, when using LC versions 9.6.13 (rc and stable), 10.0.0 (rc and stable) and all 10.0.1+ versions as well as the latest LC Create native in classic mode. > - Enhancement: Added a settings pane for which handler types to include/exclude. The setting is global, not per project. Default is to include all handler types. > - Enhancement: Implemented code formatting/colouring in the code display field > - Fixed bug: Some flowchart nodes (handler names) were not correctly styled > > Download link: > https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest > > > And an updated example of how a very simple code base can look like when visualised with this tool: > https://wheninspace.com/browseranimation/WIS_ScriptDependencies_example.png > > Imagine how your code would look - if you haven’t tried it yet! ;-) > > /Andreas From bobsneidar at iotecdigital.com Wed Dec 4 15:41:10 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 4 Dec 2024 20:41:10 +0000 Subject: Your scripts as a flowchart In-Reply-To: <77037BF2-95D3-40E8-92C7-3DDCF1F33E6A@gmail.com> References: <49103ECE-97F3-4305-A3B4-01A0E377E158@gmail.com> <CAKCLKtpqQXm8OwOuhb=2QSTzd+zqFF5fWiWpH0WZ6uxtVuxYRQ@mail.gmail.com> <18a9f0eaa08.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <CAKCLKtofwpfMt7L05z5CbCqA=xeEa3YM3bbodwdv0ZWK3bYBEw@mail.gmail.com> <023C9AEA-7B3A-455E-B6DC-18164BBF04B5@gmail.com> <CAKCLKtrOSD0O3kvs43Q_mJno4Dkf3e4Rv-JigjunPZJJP_s2pQ@mail.gmail.com> <CAKCLKtr7_H9=htuGpOJiM_qOKKHONVimCYFLj2GRsN65jifqWg@mail.gmail.com> <5357224F-1A01-4F2E-804A-014467118930@gmail.com> <45122269-0cd1-47ff-9dac-bb5c003ca1c4@speedbump.io> <C24EEA90-E5E2-4FB8-B0EF-C30DD601FB37@gmail.com> <e2432ecf-2c08-4e3c-a4e0-8337b8541f54@speedbump.io> <A9BBAB28-D426-4613-A45A-C6C8A8E8AD86@gmail.com> <A8E6EB90-D569-4807-9EB4-92F6035A95FC@gmail.com> <77037BF2-95D3-40E8-92C7-3DDCF1F33E6A@gmail.com> Message-ID: <69B08BA2-C219-4E0F-AEFC-9A3160246D1E@iotecdigital.com> I get Syntax Error in Text when attempting a flow chart. It’s a large project. Bob S > On Dec 4, 2024, at 11:53 AM, Andreas Bergendal via use-livecode <use-livecode at lists.runrev.com> wrote: > > Since the list is not very busy these days, I don’t feel too spammy posting a minor update announcement again. :) > > The WIS_ScriptDependencies v1.2.1 release fixes a bug so that PNGs/SVGs of flowcharts can always be produced. > Setting the httpHeaders to "Content-Type: text/plain" fixed it. > > Download link: > https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest > > /Andreas > >> 22 nov. 2024 kl. 20:27 skrev Andreas Bergendal <andreas.bergendal at gmail.com>: >> >> A new WIS_ScriptDependencies update: >> >> v1.2.0 (22 Nov 2024) >> >> Finally, in the most recent versions of LiveCode, the browser widget on Windows is upgraded and can run Mermaid code! >> >> - Enhancement: Flowcharts can now be displayed in the browser widget also on Windows, when using LC versions 9.6.13 (rc and stable), 10.0.0 (rc and stable) and all 10.0.1+ versions as well as the latest LC Create native in classic mode. >> - Enhancement: Added a settings pane for which handler types to include/exclude. The setting is global, not per project. Default is to include all handler types. >> - Enhancement: Implemented code formatting/colouring in the code display field >> - Fixed bug: Some flowchart nodes (handler names) were not correctly styled >> >> Download link: >> https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest >> >> >> And an updated example of how a very simple code base can look like when visualised with this tool: >> https://wheninspace.com/browseranimation/WIS_ScriptDependencies_example.png >> >> Imagine how your code would look - if you haven’t tried it yet! ;-) >> >> /Andreas > > _______________________________________________ > 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 andreas.bergendal at gmail.com Wed Dec 4 15:52:11 2024 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Wed, 4 Dec 2024 21:52:11 +0100 Subject: Your scripts as a flowchart In-Reply-To: <69B08BA2-C219-4E0F-AEFC-9A3160246D1E@iotecdigital.com> References: <49103ECE-97F3-4305-A3B4-01A0E377E158@gmail.com> <CAKCLKtpqQXm8OwOuhb=2QSTzd+zqFF5fWiWpH0WZ6uxtVuxYRQ@mail.gmail.com> <18a9f0eaa08.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <CAKCLKtofwpfMt7L05z5CbCqA=xeEa3YM3bbodwdv0ZWK3bYBEw@mail.gmail.com> <023C9AEA-7B3A-455E-B6DC-18164BBF04B5@gmail.com> <CAKCLKtrOSD0O3kvs43Q_mJno4Dkf3e4Rv-JigjunPZJJP_s2pQ@mail.gmail.com> <CAKCLKtr7_H9=htuGpOJiM_qOKKHONVimCYFLj2GRsN65jifqWg@mail.gmail.com> <5357224F-1A01-4F2E-804A-014467118930@gmail.com> <45122269-0cd1-47ff-9dac-bb5c003ca1c4@speedbump.io> <C24EEA90-E5E2-4FB8-B0EF-C30DD601FB37@gmail.com> <e2432ecf-2c08-4e3c-a4e0-8337b8541f54@speedbump.io> <A9BBAB28-D426-4613-A45A-C6C8A8E8AD86@gmail.com> <A8E6EB90-D569-4807-9EB4-92F6035A95FC@gmail.com> <77037BF2-95D3-40E8-92C7-3DDCF1F33E6A@gmail.com> <69B08BA2-C219-4E0F-AEFC-9A3160246D1E@iotecdigital.com> Message-ID: <B1FE7C66-A6F1-4F31-8BC6-194DF40C958A@gmail.com> Oh crap - yes, I see what you mean! I thought the latest Mermaid version had that sorted out, but apparently not. In the flowchart settings (the cogwheel next to the Create flowchart button), change the Mermaid version to 10.5.1. That fixes it. I will make that the default version again, updating the stack now without a creating new release (gosh, 4 people already downloaded it!). Thanks for that quick feedback, Bob! > 4 dec. 2024 kl. 21:41 skrev Bob Sneidar via use-livecode <use-livecode at lists.runrev.com>: > > I get Syntax Error in Text when attempting a flow chart. It’s a large project. > > Bob S > > >> On Dec 4, 2024, at 11:53 AM, Andreas Bergendal via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Since the list is not very busy these days, I don’t feel too spammy posting a minor update announcement again. :) >> >> The WIS_ScriptDependencies v1.2.1 release fixes a bug so that PNGs/SVGs of flowcharts can always be produced. >> Setting the httpHeaders to "Content-Type: text/plain" fixed it. >> >> Download link: >> https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest >> >> /Andreas >> >>> 22 nov. 2024 kl. 20:27 skrev Andreas Bergendal <andreas.bergendal at gmail.com>: >>> >>> A new WIS_ScriptDependencies update: >>> >>> v1.2.0 (22 Nov 2024) >>> >>> Finally, in the most recent versions of LiveCode, the browser widget on Windows is upgraded and can run Mermaid code! >>> >>> - Enhancement: Flowcharts can now be displayed in the browser widget also on Windows, when using LC versions 9.6.13 (rc and stable), 10.0.0 (rc and stable) and all 10.0.1+ versions as well as the latest LC Create native in classic mode. >>> - Enhancement: Added a settings pane for which handler types to include/exclude. The setting is global, not per project. Default is to include all handler types. >>> - Enhancement: Implemented code formatting/colouring in the code display field >>> - Fixed bug: Some flowchart nodes (handler names) were not correctly styled >>> >>> Download link: >>> https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest >>> >>> >>> And an updated example of how a very simple code base can look like when visualised with this tool: >>> https://wheninspace.com/browseranimation/WIS_ScriptDependencies_example.png >>> >>> Imagine how your code would look - if you haven’t tried it yet! ;-) >>> >>> /Andreas >> >> _______________________________________________ >> 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 Thu Dec 5 02:06:36 2024 From: mark at livecode.com (Mark Waddingham) Date: Thu, 05 Dec 2024 07:06:36 +0000 Subject: macOS Sequoia (v15) and popup menu bugs? In-Reply-To: <40848ca7-690f-48d1-808e-5d827fb672ff@researchware.com> References: <4d7fb922-c073-4d72-b15d-94616f1a9577@researchware.com> <ed3eefc8c46275ad4d11706d00ae2737@livecode.com> <40848ca7-690f-48d1-808e-5d827fb672ff@researchware.com> Message-ID: <583ff1bc39a02aa064e12b393ee458f8@livecode.com> On 2024-12-04 17:34, Paul Dupuis via use-livecode wrote: >> Could you submit a bug report with a stack which replicates the >> initial contents and then modification of the popup menu and then does >> popup? >> >> We can then look into it - given that we haven't had any other reports >> of this, I suspect it is something in the structure / modification of >> the popup menu which is causing a problem (I realize you can't test >> this is context, but it would give us some insight into making a >> recipe). > We'll do this, but it may be a while. We need to build a Sequoia VM on > our Sonoma system (we can't afford to buy another Apple hardware for > this). That may take a while since building VM is not a regular > occurrence in our lives and we forget all the little tweaks needed for > macOS VirtualBox VMs. Once that is done, we will be able to try to > reproduce the issue, and if we can, trace it with the debugger. That > should allow us to pin point what is causing the crash and create a > demo stack with just that code. I should have been more clear - I wasn't suggesting you need to test and reproduce on sequoia first - we just need a stack with a button which has the initial contents of the popup context menu in it, then on mouseDown it rewrites it to the new version (i.e. emulating what is happening). We can then see if that crashes and if so we have a recipe without you having to setup Sequoia - if it doesn't then more work will be needed to establish a recipe. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From panos.merakos at livecode.com Thu Dec 5 10:19:55 2024 From: panos.merakos at livecode.com (panagiotis merakos) Date: Thu, 5 Dec 2024 17:19:55 +0200 Subject: [[ ANN ]] Release LiveCode 10.0.1 RC-3 Message-ID: <CA+JfEq80y+5c5yDyPt_k=7rsi07DqTTFhF0fUqhajGo-wnnOvw@mail.gmail.com> Dear list members, We are pleased to announce the release of LiveCode 10.0.1 RC-3. LiveCode 10.0.1 RC-3 comes with 2 bugfixes: - Apps submitted to the iOS app store will no longer have problems with missing privacy manifests - When building for iOS, the standalone builder will now search the new (Xcode 16+) location for provisioning profiles You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From htorrado at networkdreams.net Fri Dec 6 18:54:55 2024 From: htorrado at networkdreams.net (Heriberto Torrado) Date: Fri, 6 Dec 2024 18:54:55 -0500 Subject: LiveCode Server 9.6.3 Linux Compatibility Layer Library Dependencies for NetBSD Message-ID: <8d73d350-90e7-4c13-a19d-99aef3970c6b@networkdreams.net> Dear Livecode lovers, I've been messing around these days with the possibility of installing Livecode Server 9.6.3 (Community Edition) on NetBSD (just because I like NetBSD) using the Linux compatibility layer on NetBSD. Well, I've managed to find out the list of libraries that the Livecode Server executable depends on, so this list might be of interest when trying to find out which libraries you guys need on Linux / BSD to run Livecode Server. Shared library: [libdl.so.2] Shared library: [libpthread.so.0] Shared library: [libexpat.so.1] Shared library: [libfreetype.so.6] Shared library: [libfontconfig.so.1] Shared library: [librt.so.1] Shared library: [libstdc++.so.6] Shared library: [libm.so.6] Shared library: [libgcc_s.so.1] Shared library: [libc.so.6] Shared library: [ld-linux-x86-64.so.2] Best, Heriberto Torrado From curry at pair.com Sat Dec 7 15:10:23 2024 From: curry at pair.com (Curry Kenworthy) Date: Sat, 7 Dec 2024 15:10:23 -0500 Subject: LiveCode Server 9.6.3 Linux Compatibility Layer Library Dependencies for NetBSD In-Reply-To: <8d73d350-90e7-4c13-a19d-99aef3970c6b@networkdreams.net> References: <8d73d350-90e7-4c13-a19d-99aef3970c6b@networkdreams.net> Message-ID: <8ae886f6-5584-4f59-a659-5bd1ddebb201@pair.com> Heriberto: > libraries you guys need on Linux / BSD to run Livecode Server. Thanks for the resource - and for your comments a while back! Livecode Community Edition is a vital dev tool option. Best wishes, Curry Kenworthy Radically Innovative Christian LiveCode Development "PASSION for Elegant, Efficient Code!" https://livecodeconsulting.com/ From admin at flexiblelearning.com Sun Dec 8 04:01:09 2024 From: admin at flexiblelearning.com (Hugh Senior) Date: Sun, 8 Dec 2024 09:01:09 -0000 Subject: Window layering screwed In-Reply-To: <mailman.1.1733590802.1255673.use-livecode@lists.runrev.com> References: <mailman.1.1733590802.1255673.use-livecode@lists.runrev.com> Message-ID: <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> After years of working as expected, now any stack opened as modal is mis-layered behind the calling window. As the blocking modal window is hidden and not accessible to dismiss, the only way to regain control seems to be cmd.M to show the message box (dunno why). Anyone else got this problem? Is it the result of a recent Windows update that has somehow screwed up window layering? LC 9.6.12 Win11 Hugh Senior From paul at researchware.com Sun Dec 8 11:18:09 2024 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 Dec 2024 11:18:09 -0500 Subject: Window layering screwed In-Reply-To: <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> References: <mailman.1.1733590802.1255673.use-livecode@lists.runrev.com> <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> Message-ID: <a7ca6792-2181-45b4-b06c-4f9fc031d76f@researchware.com> I am running Windows 11 with the latest updates on an HP Pavilion laptop with a i7 processor and 16GB of RAM. I have no window layering issues under LC9.6.13, LC 10.0.0, or LC 10.0.1rc3. On 12/8/2024 4:01 AM, Hugh Senior via use-livecode wrote: > After years of working as expected, now any stack opened as modal is > mis-layered behind the calling window. As the blocking modal window is > hidden and not accessible to dismiss, the only way to regain control seems > to be cmd.M to show the message box (dunno why). > > Anyone else got this problem? Is it the result of a recent Windows update > that has somehow screwed up window layering? > > LC 9.6.12 > Win11 > > Hugh Senior > > > _______________________________________________ > 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 martyknappster at gmail.com Sun Dec 8 11:59:03 2024 From: martyknappster at gmail.com (Marty Knapp) Date: Sun, 8 Dec 2024 08:59:03 -0800 Subject: Window layering screwed In-Reply-To: <a7ca6792-2181-45b4-b06c-4f9fc031d76f@researchware.com> References: <mailman.1.1733590802.1255673.use-livecode@lists.runrev.com> <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> <a7ca6792-2181-45b4-b06c-4f9fc031d76f@researchware.com> Message-ID: <5643A1E8-0C8F-4AC8-B16D-2677855439C2@gmail.com> Check to see if raiseWindows is set to true - if so try it set to false. --- Marty Knapp > On Dec 8, 2024, at 8:18 AM, Paul Dupuis via use-livecode <use-livecode at lists.runrev.com> wrote: > > I am running Windows 11 with the latest updates on an HP Pavilion laptop with a i7 processor and 16GB of RAM. I have no window layering issues under LC9.6.13, LC 10.0.0, or LC 10.0.1rc3. > > > On 12/8/2024 4:01 AM, Hugh Senior via use-livecode wrote: >> After years of working as expected, now any stack opened as modal is >> mis-layered behind the calling window. As the blocking modal window is >> hidden and not accessible to dismiss, the only way to regain control seems >> to be cmd.M to show the message box (dunno why). >> >> Anyone else got this problem? Is it the result of a recent Windows update >> that has somehow screwed up window layering? >> >> LC 9.6.12 >> Win11 >> >> Hugh Senior From curry at pair.com Sun Dec 8 16:18:29 2024 From: curry at pair.com (Curry Kenworthy) Date: Sun, 8 Dec 2024 16:18:29 -0500 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> References: <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> Message-ID: <af1de25e-3c14-42fd-8da1-fb92df690b56@pair.com> Hugh: > After years of working as expected, now any stack opened as modal > is mis-layered behind the calling window. Yes, I have seen that a couple of times - You need a recipe! Context makes all the difference. Glad to see you here. Klaus: > Windows 11 ... (ask and answer) dialogs appear in the background ... > he must use ALT-Tab until the dialog finally comes to front. Yes, I have seen that a couple of times - You need a recipe! It's easier to use the Taskbar, back to the calling window. Best wishes, Curry Kenworthy Radically Innovative Christian LiveCode Development "PASSION for Elegant, Efficient Code!" https://livecodeconsulting.com/ From admin at flexiblelearning.com Tue Dec 10 01:40:55 2024 From: admin at flexiblelearning.com (Hugh Senior) Date: Tue, 10 Dec 2024 06:40:55 -0000 Subject: Window layering screwed In-Reply-To: <mailman.1.1733677201.2117759.use-livecode@lists.runrev.com> References: <mailman.1.1733677201.2117759.use-livecode@lists.runrev.com> Message-ID: <001001db4ace$782dafa0$68890ee0$@flexiblelearning.com> Yo Marty, RaiseWindows is the culprit. Good catch. I recall window layering being a PITA in the engine many years ago. Looks like the recent Windows update has thrown a spanner back in the works. Hugh Senior >Marty Knapp wrote > >Check to see if raiseWindows is set to true - if so try it set to false. > On 12/8/2024 4:01 AM, Hugh Senior via use-livecode wrote: >> After years of working as expected, now any stack opened as modal is >> mis-layered behind the calling window. As the blocking modal window >> is hidden and not accessible to dismiss, the only way to regain >> control seems to be cmd.M to show the message box (dunno why). >> >> Anyone else got this problem? Is it the result of a recent Windows >> update that has somehow screwed up window layering? >> >> LC 9.6.12 >> Win11 >> >> Hugh Senior From admin at flexiblelearning.com Tue Dec 10 01:45:51 2024 From: admin at flexiblelearning.com (Hugh Senior) Date: Tue, 10 Dec 2024 06:45:51 -0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: <mailman.1.1733763601.3109176.use-livecode@lists.runrev.com> References: <mailman.1.1733763601.3109176.use-livecode@lists.runrev.com> Message-ID: <001101db4acf$27e3fc60$77abf520$@flexiblelearning.com> Curry: Recipe is engine bug with RaiseWindows. Set to false to regain correct layering, with thanks to Marty. Now just lurking on the lists! Hugh Senior -----Original Message----- Date: Sun, 8 Dec 2024 16:18:29 -0500 From: Curry Kenworthy <curry at pair.com> To: use-livecode at lists.runrev.com Subject: Re: Window layering screwed / Problems with (ask and answer) dialogs Hugh: > After years of working as expected, now any stack opened as modal > is mis-layered behind the calling window. Yes, I have seen that a couple of times - You need a recipe! Context makes all the difference. Glad to see you here. From ambassador at fourthworld.com Tue Dec 10 20:34:52 2024 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 11 Dec 2024 01:34:52 +0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs Message-ID: <21f61ceb7268ee577868d8363bb316c90019d44c@fourthworld.com> Hugh Senior wrote: > Recipe is engine bug with RaiseWindows. Set to false to regain correct > layering, with thanks to Marty. > > Now just lurking on the lists! Before you go, did you file a bug report on that? -- Richard Gaskin FourthWorld.com From admin at flexiblelearning.com Wed Dec 11 13:13:47 2024 From: admin at flexiblelearning.com (Hugh Senior) Date: Wed, 11 Dec 2024 18:13:47 -0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: <mailman.1.1733936401.855935.use-livecode@lists.runrev.com> References: <mailman.1.1733936401.855935.use-livecode@lists.runrev.com> Message-ID: <001901db4bf8$6d225220$4766f660$@flexiblelearning.com> Hi Richard No, I haven't reported it. Not sure I still have access to Bugzilla now. Can you do the honours, please? RaiseWindows LC 9.6.12 Windows When RaiseWindows is set to true, expect modal windows to float. They don't. They appear behind the parent window, inaccessible and undismissable. Hugh >Richard Gaskin <ambassador at fourthworld.com> wrote: >Before you go, did you file a bug report on that? >>Hugh Senior wrote: >> >> Recipe is engine bug with RaiseWindows. Set to false to regain correct >> layering, with thanks to Marty. >> >> Now just lurking on the lists! From paul at researchware.com Wed Dec 11 15:59:34 2024 From: paul at researchware.com (Paul Dupuis) Date: Wed, 11 Dec 2024 15:59:34 -0500 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: <001901db4bf8$6d225220$4766f660$@flexiblelearning.com> References: <mailman.1.1733936401.855935.use-livecode@lists.runrev.com> <001901db4bf8$6d225220$4766f660$@flexiblelearning.com> Message-ID: <b038166c-4504-4067-a7b9-0f16b67159ac@researchware.com> FYI I just created a test stack with a check box (on mouseUp set the raiseWindows to the hilite of me end mouseUp) and a button (on mouseUp answer "Answer Dialog" end mouseUp) and tried it under LC 9.6.12 and 9.6.13 in the IDE on Windows 11 (latest version/updates) on an HP Pavilion (i7, 16GB RAM) and the Answer dialog remained on top regardless of the raiseWindows setting in both version of LC. I think any recipe for an error must be a bit more than just whether raiseWindows is true or not. On 12/11/2024 1:13 PM, Hugh Senior via use-livecode wrote: > Hi Richard > > No, I haven't reported it. Not sure I still have access to Bugzilla now. > Can you do the honours, please? > > RaiseWindows > LC 9.6.12 > Windows > When RaiseWindows is set to true, expect modal windows to float. They don't. > They appear behind the parent window, inaccessible and undismissable. > > Hugh > >> Richard Gaskin <ambassador at fourthworld.com> wrote: >> Before you go, did you file a bug report on that? >>> Hugh Senior wrote: >>> >>> Recipe is engine bug with RaiseWindows. Set to false to regain correct >>> layering, with thanks to Marty. >>> >>> Now just lurking on the lists! > > _______________________________________________ > 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 ambassador at fourthworld.com Wed Dec 11 17:46:11 2024 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 11 Dec 2024 22:46:11 +0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs Message-ID: <0c546adba95c1802268c812efb1548d65855dae0@fourthworld.com> I haven't seen the issue myself. If it's not important to you I'm just as happy to get on with my day. Richard Gaskin FourthWorld.com Hugh Senior wrote: > Hi Richard > > No, I haven't reported it. Not sure I still have access to Bugzilla now. > Can you do the honours, please? > > RaiseWindows > LC 9.6.12 > Windows > When RaiseWindows is set to true, expect modal windows to float. They > don't. > They appear behind the parent window, inaccessible and undismissable. > > Hugh > > Richard Gaskin <ambassador at fourthworld.com> wrote: >> Before you go, did you file a bug report on that? >> >> Hugh Senior wrote: >>> >>> Recipe is engine bug with RaiseWindows. Set to false to regain correct >>> layering, with thanks to Marty. >>> >>> Now just lurking on the lists! From bobsneidar at iotecdigital.com Wed Dec 11 18:52:37 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Dec 2024 23:52:37 +0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: <0c546adba95c1802268c812efb1548d65855dae0@fourthworld.com> References: <0c546adba95c1802268c812efb1548d65855dae0@fourthworld.com> Message-ID: <02000CC6-9ADA-4D15-B5AD-6B1B227CBA54@iotecdigital.com> :-) > On Dec 11, 2024, at 2:46 PM, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote: > > I haven't seen the issue myself. If it's not important to you I'm just as happy to get on with my day. > > Richard Gaskin > FourthWorld.com > > > Hugh Senior wrote: > >> Hi Richard >> >> No, I haven't reported it. Not sure I still have access to Bugzilla now. >> Can you do the honours, please? >> >> RaiseWindows >> LC 9.6.12 >> Windows >> When RaiseWindows is set to true, expect modal windows to float. They >> don't. >> They appear behind the parent window, inaccessible and undismissable. >> >> Hugh >> >> Richard Gaskin <ambassador at fourthworld.com> wrote: >>> Before you go, did you file a bug report on that? >>> >>> Hugh Senior wrote: >>>> >>>> Recipe is engine bug with RaiseWindows. Set to false to regain correct >>>> layering, with thanks to Marty. >>>> >>>> Now just lurking on the lists! > > _______________________________________________ > 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 Dec 12 13:59:48 2024 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 12 Dec 2024 18:59:48 +0000 Subject: 10.0.1rc3, building to iOS: Compulsory 18.1, strange splash screen Message-ID: <a29bdec9-8ec7-44a2-9f11-268a989ec0ff@cogapp.com> It's been a long time since I tried to build an iOS app, I thought I'd try to get it all working again. Inspired by Panos' release notes, I downloaded 10.0.1 (rc 3), so at least I wouldn't get the dreaded "Selected Xcode must have..." message. I checked the handy table at https://livecode.com/resources/support/ask-a-question/ and confirmed that at least LC 10.0.0 (not 10.0.1) would work with Xcode 13.2 (which is what I had) on MacOS 13.4+ (I'm running 14.7) for iOS 15.2. I also read again the lesson at https://lessons.livecode.com/m/4069/l/565715-how-do-i-become-an-ios-developer, which confirmed that LC 10.0.1 would work with any Xcode from 12.4 on. After a few false starts, I decided to explicitly launch Xcode and check it was all running. Sneaky Apple! It automatically updated itself to 16.1! However, it still shows that it has the 15.2 simulator, and indeed I can launch the simulator. However when I re-launch LC 10.0.1rc3, create a new stack with a single control on it, set the standalone settings build for iOS, iPod and iPhone, 15.0 or later; set the Test Target to iPhone Simulator 15.2, and click Test, the result is this message: Unable to build app for simulation: failed to create launch screen: /* com.apple.ibtool.errors */ /var/folders/y7/gddpm8ys0892ztpvq78knn2m0000gq/T/Temporaryltems/tmp.93209.5TVqiHma/trashme.app/LaunchScreen.storyboard: error: iOS 18.1 Platform Not Installed. I really don't want to build for iOS 18 - I only want to build an app for my own phone, which doesn't support 18.1 - but at this stage would be happy if I could just get to the next stage. So I installed iOS 18.0 Simulator from the Xcode Settings>Components window. Same result. Finally I went to Apple's dev site, and downloaded the 18.1 Simulator and installed it from the command line. Success! And it successfully built an app that launched on the 15.2 simulator; and (after another couple of days, trawling through Panos' helpful responses on various forum postings etc) also on my phone running iOS 17. So the first issue is why the 18.1 iOS Simulator is required, in order to build for any other iOS version. However, there is a remaining oddity; when the app launches, on the simulator or my real device, the splash screen is a cropped image of the dialog bearing the above message: https://www.dropbox.com/scl/fi/de06nj2fkxay6nsgb97qp/Screenshot-2024-12-12-at-18.38.03.png?rlkey=d70pjfg7msik4e5f9dsgl89zm&dl=0 How curious. At some point I thought, well what happens if I actually take the trouble to assign a splash screen? So I looked at the Standalone Settings, and it turned out that there was a file assigned for the Launch image, and in fact it was a screenshot I'd made of that dialog, while I was working through the issue. Mystery solved I thought, perhaps at some point I carelessly assigned that and had forgotten about it by the time I finally got a working build. So I deleted it. Same result! Then I replaced it with another image. Now when I launch the app, it first shows the picture of the error dialog, then the newly selected launch image. If I delete the launch image, it just has the error dialog as splash screen. Replace with a different image, I get the two-stage splash as before; first the image of the error dialog, then my chosen image. (All this persists through quitting and relaunching LC, btw.) Has anyone else seen something like this? Ben From merakosp at gmail.com Fri Dec 13 02:37:37 2024 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 13 Dec 2024 09:37:37 +0200 Subject: 10.0.1rc3, building to iOS: Compulsory 18.1, strange splash screen In-Reply-To: <a29bdec9-8ec7-44a2-9f11-268a989ec0ff@cogapp.com> References: <a29bdec9-8ec7-44a2-9f11-268a989ec0ff@cogapp.com> Message-ID: <CA+JfEq_5QAoc+1uqJrEamXp2=kpp3XW_rScbynLp+GLodCr_bA@mail.gmail.com> Hello Ben, Ok, so what you see RE Xcode happens because: - As of LC 10.0.1 RC-2, it is no longer required to have a specific version of Xcode / iOS SDK installed. LiveCode uses the one that is returned if you run this command in the Terminal: xcode-select -p - As of Xcode 15, the simulator runtimes come as a separate download - and one is required to download them if they want to use the simulator. So, if your existing Xcode 13.2 had not auto-updated to Xcode 16.1, LC would have picked this instead, and you would not be required to download any additional runtimes, since the simulator runtimes for this version were already bundled into the original download. Does that make sense? RE the splash screen issue, it seems that somehow the old splashscreen has made it into the standalone settings. I guess this does not happen with a brand new stack, is that correct? You can have a look at the custom properties of the "problematic" stack, and check the custom property set "cRevStandaloneSettings". If you find there any property related to splash screens, that its value is the path to the screenshot you see, delete it manually. Hope this helps. Kind regards, Panos -- On Thu, 12 Dec 2024 at 21:00, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > It's been a long time since I tried to build an iOS app, I thought I'd try > to > get it all working again. Inspired by Panos' release notes, I downloaded > 10.0.1 (rc 3), so at least I wouldn't get the dreaded "Selected Xcode must > have..." message. > > I checked the handy table at > https://livecode.com/resources/support/ask-a-question/ and confirmed that > at > least LC 10.0.0 (not 10.0.1) would work with Xcode 13.2 (which is what I > had) > on MacOS 13.4+ (I'm running 14.7) for iOS 15.2. I also read again the > lesson > at > > https://lessons.livecode.com/m/4069/l/565715-how-do-i-become-an-ios-developer, > > which confirmed that LC 10.0.1 would work with any Xcode from 12.4 on. > > After a few false starts, I decided to explicitly launch Xcode and check > it > was all running. Sneaky Apple! It automatically updated itself to 16.1! > > However, it still shows that it has the 15.2 simulator, and indeed I can > launch the simulator. > > However when I re-launch LC 10.0.1rc3, create a new stack with a single > control on it, set the standalone settings build for iOS, iPod and iPhone, > 15.0 or later; set the Test Target to iPhone Simulator 15.2, and click > Test, > the result is this message: > > Unable to build app for simulation: failed to create launch > screen: /* > com.apple.ibtool.errors */ > > /var/folders/y7/gddpm8ys0892ztpvq78knn2m0000gq/T/Temporaryltems/tmp.93209.5TVqiHma/ > trashme.app/LaunchScreen.storyboard: > error: iOS 18.1 Platform Not Installed. > > I really don't want to build for iOS 18 - I only want to build an app for > my > own phone, which doesn't support 18.1 - but at this stage would be happy > if I > could just get to the next stage. So I installed iOS 18.0 Simulator from > the > Xcode Settings>Components window. > > Same result. > > Finally I went to Apple's dev site, and downloaded the 18.1 Simulator and > installed it from the command line. > > Success! And it successfully built an app that launched on the 15.2 > simulator; > and (after another couple of days, trawling through Panos' helpful > responses > on various forum postings etc) also on my phone running iOS 17. > > So the first issue is why the 18.1 iOS Simulator is required, in order to > build for any other iOS version. > > However, there is a remaining oddity; when the app launches, on the > simulator > or my real device, the splash screen is a cropped image of the dialog > bearing > the above message: > > https://www.dropbox.com/scl/fi/de06nj2fkxay6nsgb97qp/Screenshot-2024-12-12-at-18.38.03.png?rlkey=d70pjfg7msik4e5f9dsgl89zm&dl=0 > > How curious. At some point I thought, well what happens if I actually take > the > trouble to assign a splash screen? So I looked at the Standalone Settings, > and > it turned out that there was a file assigned for the Launch image, and in > fact > it was a screenshot I'd made of that dialog, while I was working through > the > issue. > > Mystery solved I thought, perhaps at some point I carelessly assigned that > and > had forgotten about it by the time I finally got a working build. So I > deleted > it. Same result! Then I replaced it with another image. > > Now when I launch the app, it first shows the picture of the error dialog, > then the newly selected launch image. If I delete the launch image, it > just > has the error dialog as splash screen. Replace with a different image, I > get > the two-stage splash as before; first the image of the error dialog, then > my > chosen image. (All this persists through quitting and relaunching LC, btw.) > > Has anyone else seen something like this? > > 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 at cogapp.com Fri Dec 13 06:43:59 2024 From: benr at cogapp.com (Ben Rubinstein) Date: Fri, 13 Dec 2024 11:43:59 +0000 Subject: 10.0.1rc3, building to iOS: Compulsory 18.1, strange splash screen In-Reply-To: <CA+JfEq_5QAoc+1uqJrEamXp2=kpp3XW_rScbynLp+GLodCr_bA@mail.gmail.com> References: <a29bdec9-8ec7-44a2-9f11-268a989ec0ff@cogapp.com> <CA+JfEq_5QAoc+1uqJrEamXp2=kpp3XW_rScbynLp+GLodCr_bA@mail.gmail.com> Message-ID: <d761a7bb-2b14-4346-8d34-26641bf1cbba@cogapp.com> Hi Panos, Thanks for replying. Re the version of Xcode, I think I was giving too much detail, and this part is probably not relevant. I started working with 13.2, and only launched it (and caused it to auto-update) after encountering problems - but it probably made no difference to the problems (it was days ago, I can't recall exactly the sequence) so you're right if I hadn't had those issues I'd probably still be using Xcode 13.2 and it would probably be fine. However, I think the mystery here (at least to me) is why I was unable to build, for iOS 15.2, until I had installed the iOS 18.1 simulator. (The splash screen thing remains a mystery, but I think it will never be solved - and I can't reproduce it. The only property with an image was to the correct image I wanted. Somehow there is a method to make an animated sequence of splash screens!) best regards, Ben On 13/12/2024 07:37, panagiotis merakos via use-livecode wrote: > Hello Ben, > > Ok, so what you see RE Xcode happens because: > > - As of LC 10.0.1 RC-2, it is no longer required to have a specific version > of Xcode / iOS SDK installed. LiveCode uses the one that is returned if you > run this command in the Terminal: xcode-select -p > > - As of Xcode 15, the simulator runtimes come as a separate download - and > one is required to download them if they want to use the simulator. > > So, if your existing Xcode 13.2 had not auto-updated to Xcode 16.1, LC > would have picked this instead, and you would not be required to download > any additional runtimes, since the simulator runtimes for this version were > already bundled into the original download. > > Does that make sense? > > RE the splash screen issue, it seems that somehow the old splashscreen has > made it into the standalone settings. I guess this does not happen with a > brand new stack, is that correct? You can have a look at the custom > properties of the "problematic" stack, and check the custom property set > "cRevStandaloneSettings". If you find there any property related to splash > screens, that its value is the path to the screenshot you see, delete it > manually. > > Hope this helps. > > Kind regards, > Panos > -- > > On Thu, 12 Dec 2024 at 21:00, Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> It's been a long time since I tried to build an iOS app, I thought I'd try >> to >> get it all working again. Inspired by Panos' release notes, I downloaded >> 10.0.1 (rc 3), so at least I wouldn't get the dreaded "Selected Xcode must >> have..." message. >> >> I checked the handy table at >> https://livecode.com/resources/support/ask-a-question/ and confirmed that >> at >> least LC 10.0.0 (not 10.0.1) would work with Xcode 13.2 (which is what I >> had) >> on MacOS 13.4+ (I'm running 14.7) for iOS 15.2. I also read again the >> lesson >> at >> >> https://lessons.livecode.com/m/4069/l/565715-how-do-i-become-an-ios-developer, >> >> which confirmed that LC 10.0.1 would work with any Xcode from 12.4 on. >> >> After a few false starts, I decided to explicitly launch Xcode and check >> it >> was all running. Sneaky Apple! It automatically updated itself to 16.1! >> >> However, it still shows that it has the 15.2 simulator, and indeed I can >> launch the simulator. >> >> However when I re-launch LC 10.0.1rc3, create a new stack with a single >> control on it, set the standalone settings build for iOS, iPod and iPhone, >> 15.0 or later; set the Test Target to iPhone Simulator 15.2, and click >> Test, >> the result is this message: >> >> Unable to build app for simulation: failed to create launch >> screen: /* >> com.apple.ibtool.errors */ >> >> /var/folders/y7/gddpm8ys0892ztpvq78knn2m0000gq/T/Temporaryltems/tmp.93209.5TVqiHma/ >> trashme.app/LaunchScreen.storyboard: >> error: iOS 18.1 Platform Not Installed. >> >> I really don't want to build for iOS 18 - I only want to build an app for >> my >> own phone, which doesn't support 18.1 - but at this stage would be happy >> if I >> could just get to the next stage. So I installed iOS 18.0 Simulator from >> the >> Xcode Settings>Components window. >> >> Same result. >> >> Finally I went to Apple's dev site, and downloaded the 18.1 Simulator and >> installed it from the command line. >> >> Success! And it successfully built an app that launched on the 15.2 >> simulator; >> and (after another couple of days, trawling through Panos' helpful >> responses >> on various forum postings etc) also on my phone running iOS 17. >> >> So the first issue is why the 18.1 iOS Simulator is required, in order to >> build for any other iOS version. >> >> However, there is a remaining oddity; when the app launches, on the >> simulator >> or my real device, the splash screen is a cropped image of the dialog >> bearing >> the above message: >> >> https://www.dropbox.com/scl/fi/de06nj2fkxay6nsgb97qp/Screenshot-2024-12-12-at-18.38.03.png?rlkey=d70pjfg7msik4e5f9dsgl89zm&dl=0 >> >> How curious. At some point I thought, well what happens if I actually take >> the >> trouble to assign a splash screen? So I looked at the Standalone Settings, >> and >> it turned out that there was a file assigned for the Launch image, and in >> fact >> it was a screenshot I'd made of that dialog, while I was working through >> the >> issue. >> >> Mystery solved I thought, perhaps at some point I carelessly assigned that >> and >> had forgotten about it by the time I finally got a working build. So I >> deleted >> it. Same result! Then I replaced it with another image. >> >> Now when I launch the app, it first shows the picture of the error dialog, >> then the newly selected launch image. If I delete the launch image, it >> just >> has the error dialog as splash screen. Replace with a different image, I >> get >> the two-stage splash as before; first the image of the error dialog, then >> my >> chosen image. (All this persists through quitting and relaunching LC, btw.) >> >> Has anyone else seen something like this? >> >> 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 Bernd.Niggemann at uni-wh.de Sat Dec 14 15:12:50 2024 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Sat, 14 Dec 2024 20:12:50 +0000 Subject: [Ann] An accordion widget Message-ID: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> Hi all, I posted an accordion widget on the forum <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> Accordion for LC<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> forums.livecode.com<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> [X] <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> Those things that when clicking on a tile open a text, clicking on the next tile closes previously open tile and opens the next tile. One sees those e.g for frequently asked questions etc on the web. I was trying to do this Livecode. It also works in a "wasm" (web) standalone. Kind regards Bernd From bogdanoff at me.com Sat Dec 14 15:42:46 2024 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sat, 14 Dec 2024 12:42:46 -0800 Subject: [Ann] An accordion widget In-Reply-To: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> References: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> Message-ID: <C11E4D14-C856-4E30-A188-5A4EB977430B@me.com> This is great! Thank you Bernd! > On Dec 14, 2024, at 12:12 PM, Niggemann, Bernd via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi all, > > I posted an accordion widget on the forum > > <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > Accordion for LC<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > forums.livecode.com<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > [X] <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > > Those things that when clicking on a tile open a text, clicking on the next tile closes previously open tile and opens the next tile. > One sees those e.g for frequently asked questions etc on the web. > > I was trying to do this Livecode. It also works in a "wasm" (web) standalone. > > Kind regards > Bernd > _______________________________________________ > 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 marksmithhfx at gmail.com Sat Dec 14 18:02:36 2024 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 14 Dec 2024 23:02:36 +0000 Subject: [Ann] An accordion widget In-Reply-To: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> References: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> Message-ID: <B7CCA57B-4A11-472F-AD98-9EDE7684E945@gmail.com> Beautiful! A brilliant piece of work. Thanks for sharing Bernd. Mark > On 14 Dec 2024, at 8:12 PM, Niggemann, Bernd via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi all, > > I posted an accordion widget on the forum > > <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > Accordion for LC<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > forums.livecode.com<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > [X] <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > > Those things that when clicking on a tile open a text, clicking on the next tile closes previously open tile and opens the next tile. > One sees those e.g for frequently asked questions etc on the web. > > I was trying to do this Livecode. It also works in a "wasm" (web) standalone. > > Kind regards > Bernd > _______________________________________________ > 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 Bernd.Niggemann at uni-wh.de Sun Dec 15 12:36:12 2024 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Sun, 15 Dec 2024 17:36:12 +0000 Subject: [Ann] An accordion widget Message-ID: <D5904021-FF2E-44F3-BEA0-1A7FA9A1E892@uni-wh.de> Peter, Mark Thank you for testing bnAccordion. I am glad you liked it. Kind regards Bernd From klaus at major-k.de Mon Dec 16 05:13:43 2024 From: klaus at major-k.de (Klaus major-k) Date: Mon, 16 Dec 2024 11:13:43 +0100 Subject: Problems with (ask and answer) dialogs with LC 10 on Windows 11 In-Reply-To: <fe5c43ded543a9f917b55eb3839f5fb5@livecode.com> References: <2D0BD881-D3D6-4355-ACF5-2B14B2FCF398@major-k.de> <fe5c43ded543a9f917b55eb3839f5fb5@livecode.com> Message-ID: <9744FF92-AEB2-40E7-ABD7-8D492ECBE1C9@major-k.de> Hi Mark and all, > Am 03.12.2024 um 09:06 schrieb Mark Waddingham via use-livecode <use-livecode at lists.runrev.com>: > On 2024-11-29 12:53, Klaus major-k via use-livecode wrote: >> Hi friends, >> a friend of mine has recently upgraded to Windows 11 and now has this problem: >> All (ask and answer) dialogs appear in the background and not in front as exspected. >> Clicking in any IDE window will cause this "block (?)" beep, and he must use ALT-Tab >> until the dialog finally comes to front. And then it takes several clicks until he can enter >> text into the input field (Ask dialog). >> Anyone seen this and/or is this a known problem on Windows (11) with LC 10? > Not that we are aware of :) > The code for handling ask/answer dialogs on windows hasn't changed - they are 'just' modal stacks wrapped in engine syntax so if they were generally broken on Windows 11 with LC10, I think we would have heard by now (I do windows development in Windows 11, and haven't see this issue for example). > Could ask your friend to see if he sees the same issue with 9.6.13 - that will help narrow down the possible causes. > Of course, there could be Windows 11 system settings which are affecting things - or indeed third party software. Any information your friend could provide there might help. > Warmest Regards, > > Mark. OK, "raisewindows" was not the problem, it turned out that he had activated the BACKDROP (don't ask 8-) and after switching it OFF, windows layering worked as advertized! Go figure. :-) Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Mon Dec 16 11:28:37 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Dec 2024 16:28:37 +0000 Subject: [Ann] An accordion widget In-Reply-To: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> References: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> Message-ID: <81FF88B7-DF16-4CF8-822D-21F5C15E31FD@iotecdigital.com> Good stuff! Bob S > On Dec 14, 2024, at 12:12 PM, Niggemann, Bernd via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi all, > > I posted an accordion widget on the forum > > <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > Accordion for LC<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > forums.livecode.com<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > [X] <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > > Those things that when clicking on a tile open a text, clicking on the next tile closes previously open tile and opens the next tile. > One sees those e.g for frequently asked questions etc on the web. > > I was trying to do this Livecode. It also works in a "wasm" (web) standalone. > > Kind regards > Bernd From tom at makeshyft.com Mon Dec 16 22:40:54 2024 From: tom at makeshyft.com (Tom Glod) Date: Mon, 16 Dec 2024 22:40:54 -0500 Subject: [Ann] An accordion widget In-Reply-To: <B7CCA57B-4A11-472F-AD98-9EDE7684E945@gmail.com> References: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> <B7CCA57B-4A11-472F-AD98-9EDE7684E945@gmail.com> Message-ID: <CAPzQJLLuKyFnf_n6_RK5tKMycxh=QjiK8gEg2aVcfAahnSY88Q@mail.gmail.com> Nice! Thank you, what license is this under? On Sat, Dec 14, 2024 at 6:03 PM Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > Beautiful! A brilliant piece of work. Thanks for sharing Bernd. > > Mark > > > > On 14 Dec 2024, at 8:12 PM, Niggemann, Bernd via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi all, > > > > I posted an accordion widget on the forum > > > > <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > Accordion for LC< > https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > forums.livecode.com< > https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > [X] < > https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > > > > > Those things that when clicking on a tile open a text, clicking on the > next tile closes previously open tile and opens the next tile. > > One sees those e.g for frequently asked questions etc on the web. > > > > I was trying to do this Livecode. It also works in a "wasm" (web) > standalone. > > > > Kind regards > > Bernd > > _______________________________________________ > > 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 Bernd.Niggemann at uni-wh.de Tue Dec 17 12:21:28 2024 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Tue, 17 Dec 2024 17:21:28 +0000 Subject: [Ann] An accordion widget Message-ID: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> Tom Glod via use-livecode<https://www.mail-archive.com/search?l=use-livecode at lists.runrev.com&q=from:%22Tom+Glod+via+use%5C-livecode%22> Mon, 16 Dec 2024 19:43:03 -0800<https://www.mail-archive.com/search?l=use-livecode at lists.runrev.com&q=date:20241216> Nice! Thank you, what license is this under? Hi Tom, do whatever you want license. (DWYWL) Kind regards Bernd From irog at mac.com Tue Dec 17 15:16:44 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 12:16:44 -0800 Subject: How to Return the Exponent In-Reply-To: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> Message-ID: <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> Hi folks, Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? Thanks, Roger From harrison at all-auctions.com Tue Dec 17 15:59:36 2024 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Tue, 17 Dec 2024 15:59:36 -0500 Subject: How to Return the Exponent In-Reply-To: <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> Message-ID: <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> Hi Roger, Chat GPT gave me an interesting answer to this question. You should try that, then be a little more verbose about what exactly you are trying to do here. Even Chat GPT seemed a little confused by your question. Of course that’s pretty normal for Chat GPT! I at least understand you mean the easier way to do this with LiveCode. When I asked Chat GPT that question it came back with: command findX N, Y -- Calculate log of N and Y put log(N) into logN put log(Y) into logY -- Check if logN is zero to avoid division by zero error if logN = 0 then answer "Logarithm of N is zero, cannot compute x” exit to top end if -- Calculate x using the formula x = log(Y) / log(N) put logY / logN into x -- Return or display the result answer "The value of x is: " & x end findX Explanation: — Example: where N = 1234 and Y = 10 findX 1234, 10 I hope that helps. If it doesn’t, blame Chat GPT! Rick > On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi folks, > > Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? > > > Thanks, > > Roger > _______________________________________________ > 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 irog at mac.com Tue Dec 17 21:20:04 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 18:20:04 -0800 Subject: How to Return the Exponent In-Reply-To: <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> Message-ID: <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> Hi Rick, Sorry to confuse you and ChatGPT. In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . Something like this does not work: Set Itemdelimeter to “^” put char 4 of word 2 of ((1234…)^(1/x)) …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer Thanks, Roger > On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi Roger, > > Chat GPT gave me an interesting answer to this question. > You should try that, then be a little more verbose about > what exactly you are trying to do here. Even Chat GPT > seemed a little confused by your question. Of course > that’s pretty normal for Chat GPT! > > I at least understand you mean the easier way to do this > with LiveCode. When I asked Chat GPT that question > it came back with: > > command findX N, Y > > -- Calculate log of N and Y > put log(N) into logN > put log(Y) into logY > -- Check if logN is zero to avoid division by zero error > if logN = 0 then > answer "Logarithm of N is zero, cannot compute x” > exit to top > end if > > -- Calculate x using the formula x = log(Y) / log(N) > put logY / logN into x > -- Return or display the result > answer "The value of x is: " & x > > end findX > > Explanation: > > — Example: where N = 1234 and Y = 10 findX 1234, 10 > > I hope that helps. If it doesn’t, blame Chat GPT! > > Rick > >> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Hi folks, >> >> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >> >> >> Thanks, >> >> Roger >> _______________________________________________ >> 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 irog at mac.com Tue Dec 17 21:20:04 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 18:20:04 -0800 Subject: How to Return the Exponent In-Reply-To: <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> Message-ID: <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> Hi Rick, Sorry to confuse you and ChatGPT. In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . Something like this does not work: Set Itemdelimeter to “^” put char 4 of word 2 of ((1234…)^(1/x)) …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer Thanks, Roger > On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi Roger, > > Chat GPT gave me an interesting answer to this question. > You should try that, then be a little more verbose about > what exactly you are trying to do here. Even Chat GPT > seemed a little confused by your question. Of course > that’s pretty normal for Chat GPT! > > I at least understand you mean the easier way to do this > with LiveCode. When I asked Chat GPT that question > it came back with: > > command findX N, Y > > -- Calculate log of N and Y > put log(N) into logN > put log(Y) into logY > -- Check if logN is zero to avoid division by zero error > if logN = 0 then > answer "Logarithm of N is zero, cannot compute x” > exit to top > end if > > -- Calculate x using the formula x = log(Y) / log(N) > put logY / logN into x > -- Return or display the result > answer "The value of x is: " & x > > end findX > > Explanation: > > — Example: where N = 1234 and Y = 10 findX 1234, 10 > > I hope that helps. If it doesn’t, blame Chat GPT! > > Rick > >> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Hi folks, >> >> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >> >> >> Thanks, >> >> Roger >> _______________________________________________ >> 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 scott at elementarysoftware.com Tue Dec 17 21:37:16 2024 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Tue, 17 Dec 2024 18:37:16 -0800 Subject: How to Return the Exponent In-Reply-To: <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> Message-ID: <E42D0B42-D80B-47F2-BB1F-C32001829162@elementarysoftware.com> Itemdelimeter should be —> itemdelimiter but perhaps that is a typo > On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi Rick, > > Sorry to confuse you and ChatGPT. > > In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . > > Something like this does not work: > > Set Itemdelimeter to “^” > put char 4 of word 2 of ((1234…)^(1/x)) > > …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer > > Thanks, > > Roger > >> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Hi Roger, >> >> Chat GPT gave me an interesting answer to this question. >> You should try that, then be a little more verbose about >> what exactly you are trying to do here. Even Chat GPT >> seemed a little confused by your question. Of course >> that’s pretty normal for Chat GPT! >> >> I at least understand you mean the easier way to do this >> with LiveCode. When I asked Chat GPT that question >> it came back with: >> >> command findX N, Y >> >> -- Calculate log of N and Y >> put log(N) into logN >> put log(Y) into logY >> -- Check if logN is zero to avoid division by zero error >> if logN = 0 then >> answer "Logarithm of N is zero, cannot compute x” >> exit to top >> end if >> >> -- Calculate x using the formula x = log(Y) / log(N) >> put logY / logN into x >> -- Return or display the result >> answer "The value of x is: " & x >> >> end findX >> >> Explanation: >> >> — Example: where N = 1234 and Y = 10 findX 1234, 10 >> >> I hope that helps. If it doesn’t, blame Chat GPT! >> >> Rick >> >>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>> >>> Hi folks, >>> >>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>> >>> >>> Thanks, >>> >>> Roger >>> _______________________________________________ >>> 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 scott at elementarysoftware.com Tue Dec 17 21:40:00 2024 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Tue, 17 Dec 2024 18:40:00 -0800 Subject: How to Return the Exponent In-Reply-To: <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> Message-ID: <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> does this work? set itemDel to "^" put char 4 of item 2 of "((1234…)^(1/x))" > On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi Rick, > > Sorry to confuse you and ChatGPT. > > In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . > > Something like this does not work: > > Set Itemdelimeter to “^” > put char 4 of word 2 of ((1234…)^(1/x)) > > …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer > > Thanks, > > Roger > >> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Hi Roger, >> >> Chat GPT gave me an interesting answer to this question. >> You should try that, then be a little more verbose about >> what exactly you are trying to do here. Even Chat GPT >> seemed a little confused by your question. Of course >> that’s pretty normal for Chat GPT! >> >> I at least understand you mean the easier way to do this >> with LiveCode. When I asked Chat GPT that question >> it came back with: >> >> command findX N, Y >> >> -- Calculate log of N and Y >> put log(N) into logN >> put log(Y) into logY >> -- Check if logN is zero to avoid division by zero error >> if logN = 0 then >> answer "Logarithm of N is zero, cannot compute x” >> exit to top >> end if >> >> -- Calculate x using the formula x = log(Y) / log(N) >> put logY / logN into x >> -- Return or display the result >> answer "The value of x is: " & x >> >> end findX >> >> Explanation: >> >> — Example: where N = 1234 and Y = 10 findX 1234, 10 >> >> I hope that helps. If it doesn’t, blame Chat GPT! >> >> Rick >> >>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>> >>> Hi folks, >>> >>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>> >>> >>> Thanks, >>> >>> Roger >>> _______________________________________________ >>> 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 irog at mac.com Tue Dec 17 21:54:59 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 18:54:59 -0800 Subject: How to Return the Exponent In-Reply-To: <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> Message-ID: <DC2D585E-5AE6-43AC-B4A2-08E022AB07D3@mac.com> Thanks for correcting my spelling, Scott. It does work! What’s strange, though is that the script editor indicated green for itemdelimeter . . . I think. I must be going blind! Thanks, Roger > On Dec 17, 2024, at 6:40 PM, scott--- via use-livecode <use-livecode at lists.runrev.com> wrote: > > does this work? > > set itemDel to "^" > put char 4 of item 2 of "((1234…)^(1/x))" > >> On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Hi Rick, >> >> Sorry to confuse you and ChatGPT. >> >> In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . >> >> Something like this does not work: >> >> Set Itemdelimeter to “^” >> put char 4 of word 2 of ((1234…)^(1/x)) >> >> …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer >> >> Thanks, >> >> Roger >> >>> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: >>> >>> Hi Roger, >>> >>> Chat GPT gave me an interesting answer to this question. >>> You should try that, then be a little more verbose about >>> what exactly you are trying to do here. Even Chat GPT >>> seemed a little confused by your question. Of course >>> that’s pretty normal for Chat GPT! >>> >>> I at least understand you mean the easier way to do this >>> with LiveCode. When I asked Chat GPT that question >>> it came back with: >>> >>> command findX N, Y >>> >>> -- Calculate log of N and Y >>> put log(N) into logN >>> put log(Y) into logY >>> -- Check if logN is zero to avoid division by zero error >>> if logN = 0 then >>> answer "Logarithm of N is zero, cannot compute x” >>> exit to top >>> end if >>> >>> -- Calculate x using the formula x = log(Y) / log(N) >>> put logY / logN into x >>> -- Return or display the result >>> answer "The value of x is: " & x >>> >>> end findX >>> >>> Explanation: >>> >>> — Example: where N = 1234 and Y = 10 findX 1234, 10 >>> >>> I hope that helps. If it doesn’t, blame Chat GPT! >>> >>> Rick >>> >>>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>>> >>>> Hi folks, >>>> >>>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>>> >>>> >>>> Thanks, >>>> >>>> Roger >>>> _______________________________________________ >>>> 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 irog at mac.com Tue Dec 17 22:07:24 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 19:07:24 -0800 Subject: How to Return the Exponent In-Reply-To: <DC2D585E-5AE6-43AC-B4A2-08E022AB07D3@mac.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> <DC2D585E-5AE6-43AC-B4A2-08E022AB07D3@mac.com> Message-ID: <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> Oops. I take it back. It does not work. set the itemDel to “^" put char 3 of word 2 of "((1234…)^1/x)” returns blank Bummer! > On Dec 17, 2024, at 6:54 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: > > Thanks for correcting my spelling, Scott. It does work! What’s strange, though is that the script editor indicated green for itemdelimeter . . . I think. I must be going blind! > > Thanks, > > Roger > > >> On Dec 17, 2024, at 6:40 PM, scott--- via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> does this work? >> >> set itemDel to "^" >> put char 4 of item 2 of "((1234…)^(1/x))" >> >>> On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>> >>> Hi Rick, >>> >>> Sorry to confuse you and ChatGPT. >>> >>> In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . >>> >>> Something like this does not work: >>> >>> Set Itemdelimeter to “^” >>> put char 4 of word 2 of ((1234…)^(1/x)) >>> >>> …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer >>> >>> Thanks, >>> >>> Roger >>> >>>> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: >>>> >>>> Hi Roger, >>>> >>>> Chat GPT gave me an interesting answer to this question. >>>> You should try that, then be a little more verbose about >>>> what exactly you are trying to do here. Even Chat GPT >>>> seemed a little confused by your question. Of course >>>> that’s pretty normal for Chat GPT! >>>> >>>> I at least understand you mean the easier way to do this >>>> with LiveCode. When I asked Chat GPT that question >>>> it came back with: >>>> >>>> command findX N, Y >>>> >>>> -- Calculate log of N and Y >>>> put log(N) into logN >>>> put log(Y) into logY >>>> -- Check if logN is zero to avoid division by zero error >>>> if logN = 0 then >>>> answer "Logarithm of N is zero, cannot compute x” >>>> exit to top >>>> end if >>>> >>>> -- Calculate x using the formula x = log(Y) / log(N) >>>> put logY / logN into x >>>> -- Return or display the result >>>> answer "The value of x is: " & x >>>> >>>> end findX >>>> >>>> Explanation: >>>> >>>> — Example: where N = 1234 and Y = 10 findX 1234, 10 >>>> >>>> I hope that helps. If it doesn’t, blame Chat GPT! >>>> >>>> Rick >>>> >>>>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Hi folks, >>>>> >>>>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>>>> >>>>> >>>>> Thanks, >>>>> >>>>> Roger >>>>> _______________________________________________ >>>>> 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 Bernd.Niggemann at uni-wh.de Wed Dec 18 03:59:02 2024 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Wed, 18 Dec 2024 08:59:02 +0000 Subject: How to Return the Exponent Message-ID: <4F318EB1-5E02-4817-8AF3-44F3C80A98BD@uni-wh.de> Hi Roger, This does work: Please note the quotes, in your mail it was curly quotes that do not work apart from asking for "word" instead of "token". on mouseUp set the itemDel to "^" put token 3 of item 2 of "((1234…)^1/x)" into field 1 set the itemDelimiter to "/" put cr & token 1 of item 2 of "((1234…)^1/15)" after field 1 end mouseUp Kind regards Bernd >Roger wrote: >Oops. I take it back. It does not work. > set the itemDel to “^" > put char 3 of word 2 of "((1234…)^1/x)” >returns blank From scott at elementarysoftware.com Wed Dec 18 05:02:40 2024 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Wed, 18 Dec 2024 02:02:40 -0800 Subject: How to Return the Exponent In-Reply-To: <4F318EB1-5E02-4817-8AF3-44F3C80A98BD@uni-wh.de> References: <4F318EB1-5E02-4817-8AF3-44F3C80A98BD@uni-wh.de> Message-ID: <ABC4EDE9-BE94-4D32-A539-47078CE06BED@elementarysoftware.com> Roger, I don’t believe that setting the itemDel will change how WORDs break. It will allow you to find ITEM 2: ^1/x) I was getting char 3 of item 2 and that would work as long as x was a single digit (which you implied originally) but Bernd’s solution is more robust (as usual!) because it will find an x that contains 1 or more digits. That is a better solution than using “char” > On Dec 18, 2024, at 12:59 AM, Niggemann, Bernd via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi Roger, > > This does work: > > Please note the quotes, in your mail it was curly quotes that do not work apart from asking for "word" instead of "token". > > on mouseUp > set the itemDel to "^" > put token 3 of item 2 of "((1234…)^1/x)" into field 1 > > set the itemDelimiter to "/" > put cr & token 1 of item 2 of "((1234…)^1/15)" after field 1 > end mouseUp > > Kind regards > Bernd > >> Roger wrote: > >> Oops. I take it back. It does not work. >> set the itemDel to “^" >> put char 3 of word 2 of "((1234…)^1/x)” >> returns blank > _______________________________________________ > 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 irog at mac.com Wed Dec 18 11:16:13 2024 From: irog at mac.com (Roger Guay) Date: Wed, 18 Dec 2024 08:16:13 -0800 Subject: How to Return the Exponent In-Reply-To: <ABC4EDE9-BE94-4D32-A539-47078CE06BED@elementarysoftware.com> References: <4F318EB1-5E02-4817-8AF3-44F3C80A98BD@uni-wh.de> <ABC4EDE9-BE94-4D32-A539-47078CE06BED@elementarysoftware.com> Message-ID: <FB16EEE2-AF5B-47D1-BEC7-B8C8E33CACA6@mac.com> Thanks to Bernd, Scott and Rick for helping me out. I have never run into token before and learned so much from Bernd’s use of it here. I invariably learn valuable lessons from this list. . . ChatGPT, not so much. Cheers, Roger > On Dec 18, 2024, at 2:02 AM, scott--- via use-livecode <use-livecode at lists.runrev.com> wrote: > > Roger, I don’t believe that setting the itemDel will change how WORDs break. It will allow you to find ITEM 2: > > ^1/x) > > I was getting char 3 of item 2 and that would work as long as x was a single digit (which you implied originally) but Bernd’s solution is more robust (as usual!) because it will find an x that contains 1 or more digits. > > That is a better solution than using “char” > >> On Dec 18, 2024, at 12:59 AM, Niggemann, Bernd via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Hi Roger, >> >> This does work: >> >> Please note the quotes, in your mail it was curly quotes that do not work apart from asking for "word" instead of "token". >> >> on mouseUp >> set the itemDel to "^" >> put token 3 of item 2 of "((1234…)^1/x)" into field 1 >> >> set the itemDelimiter to "/" >> put cr & token 1 of item 2 of "((1234…)^1/15)" after field 1 >> end mouseUp >> >> Kind regards >> Bernd >> >>> Roger wrote: >> >>> Oops. I take it back. It does not work. >>> set the itemDel to “^" >>> put char 3 of word 2 of "((1234…)^1/x)” >>> returns blank >> _______________________________________________ >> 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 Wed Dec 18 11:16:50 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Dec 2024 16:16:50 +0000 Subject: How to Return the Exponent In-Reply-To: <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> <DC2D585E-5AE6-43AC-B4A2-08E022AB07D3@mac.com> <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> Message-ID: <62A0AD32-73B1-40A5-8A3A-02E68EE613D5@iotecdigital.com> ITEM 2 not WORD 2. Bob S > On Dec 17, 2024, at 7:07 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: > > Oops. I take it back. It does not work. > > set the itemDel to “^" > put char 3 of word 2 of "((1234…)^1/x)” > > returns blank > > Bummer! > >> On Dec 17, 2024, at 6:54 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Thanks for correcting my spelling, Scott. It does work! What’s strange, though is that the script editor indicated green for itemdelimeter . . . I think. I must be going blind! >> >> Thanks, >> >> Roger >> >> >>> On Dec 17, 2024, at 6:40 PM, scott--- via use-livecode <use-livecode at lists.runrev.com> wrote: >>> >>> does this work? >>> >>> set itemDel to "^" >>> put char 4 of item 2 of "((1234…)^(1/x))" >>> >>>> On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>>> >>>> Hi Rick, >>>> >>>> Sorry to confuse you and ChatGPT. >>>> >>>> In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . >>>> >>>> Something like this does not work: >>>> >>>> Set Itemdelimeter to “^” >>>> put char 4 of word 2 of ((1234…)^(1/x)) >>>> >>>> …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer >>>> >>>> Thanks, >>>> >>>> Roger >>>> >>>>> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Hi Roger, >>>>> >>>>> Chat GPT gave me an interesting answer to this question. >>>>> You should try that, then be a little more verbose about >>>>> what exactly you are trying to do here. Even Chat GPT >>>>> seemed a little confused by your question. Of course >>>>> that’s pretty normal for Chat GPT! >>>>> >>>>> I at least understand you mean the easier way to do this >>>>> with LiveCode. When I asked Chat GPT that question >>>>> it came back with: >>>>> >>>>> command findX N, Y >>>>> >>>>> -- Calculate log of N and Y >>>>> put log(N) into logN >>>>> put log(Y) into logY >>>>> -- Check if logN is zero to avoid division by zero error >>>>> if logN = 0 then >>>>> answer "Logarithm of N is zero, cannot compute x” >>>>> exit to top >>>>> end if >>>>> >>>>> -- Calculate x using the formula x = log(Y) / log(N) >>>>> put logY / logN into x >>>>> -- Return or display the result >>>>> answer "The value of x is: " & x >>>>> >>>>> end findX >>>>> >>>>> Explanation: >>>>> >>>>> — Example: where N = 1234 and Y = 10 findX 1234, 10 >>>>> >>>>> I hope that helps. If it doesn’t, blame Chat GPT! >>>>> >>>>> Rick >>>>> >>>>>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Hi folks, >>>>>> >>>>>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>>>>> >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Roger >>>>>> _______________________________________________ >>>>>> 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 irog at mac.com Wed Dec 18 11:31:33 2024 From: irog at mac.com (Roger Guay) Date: Wed, 18 Dec 2024 08:31:33 -0800 Subject: How to Return the Exponent In-Reply-To: <62A0AD32-73B1-40A5-8A3A-02E68EE613D5@iotecdigital.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> <DC2D585E-5AE6-43AC-B4A2-08E022AB07D3@mac.com> <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> <62A0AD32-73B1-40A5-8A3A-02E68EE613D5@iotecdigital.com> Message-ID: <94330DF8-A9F1-4ACB-9A3F-5DDE9E3BACC1@mac.com> Thanks, Bob. That works. My bad Roger > On Dec 18, 2024, at 8:16 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote: > > ITEM 2 not WORD 2. > > Bob S > > >> On Dec 17, 2024, at 7:07 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Oops. I take it back. It does not work. >> >> set the itemDel to “^" >> put char 3 of word 2 of "((1234…)^1/x)” >> >> returns blank >> >> Bummer! >> >>> On Dec 17, 2024, at 6:54 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>> >>> Thanks for correcting my spelling, Scott. It does work! What’s strange, though is that the script editor indicated green for itemdelimeter . . . I think. I must be going blind! >>> >>> Thanks, >>> >>> Roger >>> >>> >>>> On Dec 17, 2024, at 6:40 PM, scott--- via use-livecode <use-livecode at lists.runrev.com> wrote: >>>> >>>> does this work? >>>> >>>> set itemDel to "^" >>>> put char 4 of item 2 of "((1234…)^(1/x))" >>>> >>>>> On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Hi Rick, >>>>> >>>>> Sorry to confuse you and ChatGPT. >>>>> >>>>> In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . >>>>> >>>>> Something like this does not work: >>>>> >>>>> Set Itemdelimeter to “^” >>>>> put char 4 of word 2 of ((1234…)^(1/x)) >>>>> >>>>> …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer >>>>> >>>>> Thanks, >>>>> >>>>> Roger >>>>> >>>>>> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Hi Roger, >>>>>> >>>>>> Chat GPT gave me an interesting answer to this question. >>>>>> You should try that, then be a little more verbose about >>>>>> what exactly you are trying to do here. Even Chat GPT >>>>>> seemed a little confused by your question. Of course >>>>>> that’s pretty normal for Chat GPT! >>>>>> >>>>>> I at least understand you mean the easier way to do this >>>>>> with LiveCode. When I asked Chat GPT that question >>>>>> it came back with: >>>>>> >>>>>> command findX N, Y >>>>>> >>>>>> -- Calculate log of N and Y >>>>>> put log(N) into logN >>>>>> put log(Y) into logY >>>>>> -- Check if logN is zero to avoid division by zero error >>>>>> if logN = 0 then >>>>>> answer "Logarithm of N is zero, cannot compute x” >>>>>> exit to top >>>>>> end if >>>>>> >>>>>> -- Calculate x using the formula x = log(Y) / log(N) >>>>>> put logY / logN into x >>>>>> -- Return or display the result >>>>>> answer "The value of x is: " & x >>>>>> >>>>>> end findX >>>>>> >>>>>> Explanation: >>>>>> >>>>>> — Example: where N = 1234 and Y = 10 findX 1234, 10 >>>>>> >>>>>> I hope that helps. If it doesn’t, blame Chat GPT! >>>>>> >>>>>> Rick >>>>>> >>>>>>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>>>>>> >>>>>>> Hi folks, >>>>>>> >>>>>>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>>>>>> >>>>>>> >>>>>>> Thanks, >>>>>>> >>>>>>> Roger >>>>>>> _______________________________________________ >>>>>>> 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 rolf.kocherhans at gmail.com Thu Dec 19 06:58:01 2024 From: rolf.kocherhans at gmail.com (Rolf Kocherhans) Date: Thu, 19 Dec 2024 12:58:01 +0100 Subject: [Question] Looking for "Mini Bitmap Editor" Stack Message-ID: <F64C7966-D292-49CC-AD1B-20207F82132C@gmail.com> Hi everyone, I’m on the lookout for an old stack called "Mini Bitmap Editor", created by Malte Brill. It used to be available on revOnline, but I haven’t been able to track it down. You can find a bit of context about it here: https://lists.runrev.com/pipermail/use-livecode/2005-October/068142.html If anyone happens to have a copy of this stack in their collection, I’d be so grateful if you could share it with me (off-list, if possible). Thanks so much in advance! Warm regards, Rolf From dick.kriesel at mail.com Thu Dec 19 13:41:52 2024 From: dick.kriesel at mail.com (Dick Kriesel) Date: Thu, 19 Dec 2024 10:41:52 -0800 Subject: How to Return the Exponent In-Reply-To: <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> <DC2D585E-5AE6-43AC-B4A2-08E022AB07D3@mac.com> <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> Message-ID: <B7973600-45B2-497E-8A52-A82D7C9F0C5B@mail.com> > On Dec 17, 2024, at 7:07 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: > > Oops. I take it back. It does not work. > > set the itemDel to “^" > put char 3 of word 2 of "((1234…)^1/x)” > > returns blank > > Bummer! Hi, Roger. word 2 of "((1234…)^1/x)" is empty because the word delimiter is space. Try "item 2" instead. — Dick From irog at mac.com Thu Dec 19 15:01:33 2024 From: irog at mac.com (Roger Guay) Date: Thu, 19 Dec 2024 12:01:33 -0800 Subject: How to Return the Exponent In-Reply-To: <B7973600-45B2-497E-8A52-A82D7C9F0C5B@mail.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> <DC2D585E-5AE6-43AC-B4A2-08E022AB07D3@mac.com> <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> <B7973600-45B2-497E-8A52-A82D7C9F0C5B@mail.com> Message-ID: <F8C42AAC-976D-44A1-9C99-DEABDF1B66A1@mac.com> Thank you, Dick. Item 2 does indeed work and makes total sense Roger > On Dec 19, 2024, at 10:41 AM, Dick Kriesel via use-livecode <use-livecode at lists.runrev.com> wrote: > > > >> On Dec 17, 2024, at 7:07 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Oops. I take it back. It does not work. >> >> set the itemDel to “^" >> put char 3 of word 2 of "((1234…)^1/x)” >> >> returns blank >> >> Bummer! > > Hi, Roger. > > word 2 of "((1234…)^1/x)" is empty because the word delimiter is space. Try "item 2" instead. > > — Dick > _______________________________________________ > 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 ali.lloyd at livecode.com Fri Dec 20 12:17:31 2024 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Fri, 20 Dec 2024 17:17:31 +0000 Subject: [OT] Puzzle Hunt Message-ID: <CAJR0Q1is-0-w4HcHnq5renOzMksgrRgDOC7GRKKYQtq+-u6pnA@mail.gmail.com> Some time ago I wrote a puzzle hunt for no particular reason other than to amuse myself - it has a couple of bits that are explicitly LiveCode related but mostly it should be solvable without LiveCode knowledge. Since I've titled it LiveCode Puzzle Hunt 2024 I thought I'd better 'release' it now - https://alilloyd.livecodehosting.com/puzzlehunt/home.html For those that don't know what a puzzle hunt is, it's a bunch of puzzles which lead to answers that are a word or phrase, and (in this case) there is a metapuzzle that 'unlocks' at some point which ties together the answers to all the other puzzles to give a final answer to the hunt. Per Wikipedia, "Puzzlehunt puzzles are usually not accompanied by direct instructions for how to solve them; figuring out the necessary approach is part of the puzzle." If solved correctly, it should always be clear that the answer you have is *the* answer to the puzzle. If anyone fancies trying to have a go, I recommend teaming up - especially if you've never done puzzlehunt-style puzzles before. Equally if you're just interested feel free to sign up and put as much effort in as you want. If there is any point at all to me having done this (which there isn't) then it's for people to have fun solving it. On that note, there will probably be a hint system at some point but in the meantime feel free to message me if you're stuck and want a hint. Also you can just see the puzzles here (https://alilloyd.livecodehosting.com/puzzlehunt/puzzindex.html) if you don't want to sign up. I hope the festive period treats you all well! From dvglasgow at gmail.com Sat Dec 21 05:43:05 2024 From: dvglasgow at gmail.com (David Glasgow) Date: Sat, 21 Dec 2024 10:43:05 +0000 Subject: Webby URL search and scrape question Message-ID: <CAJj=i80=opsU085QoT1TaT=9G4=g-D=B-47MeNfxMuQ3UXsi=g@mail.gmail.com> I am alsmost a complete novice with respect to HTML and web stuff, but suddenly find myself needing to change that. I have read around web scraping but most stuff is much more ambitious than what I want to do, focusses on python and assumes slightly (?)shady business goals - like scraping data from your competitors' websites. My goal is pure research...and of course I would love to do it in Livecode I want to work through a list of (pseudo) random URLs, harvest the page title and any keywords, and aggregate the results in a field/table. So I don't want the URLs to be found on the basis of content or top level domain at all. Metaphorically, dipping into the WWW bran tub allowing all domain suffixes, pulling out a random page, checking it has english content, check it has keywords, extract the page title, extract any keywords, save them to a table indexed by URL and then move on to the next lucky dip. The specifics I would appreciate advice on are 1/ how to sample as close to a random sample of URLs as possible. There are websites that purport to take you to a random www page, but I couldn't work out how they pull that off - or indeed how random the destination really is. They also want to do it only one by one, whereas I want to do it a few thousand times on the bounce, ideally without visiting any page in the browsing sense. 2/ how might I check the URL a) is in english and b) contains keywords 3/ is it possible to extract the title and keywords from a URL using Livecode 'remotely' or do I need to use a browser to visit? Thanks in advance for any advice or thoughts Cheers David G -- David Glasgow Consultant Forensic & Clinical Psychologist Honorary Professor, Nottingham Trent University Sexual Offences, Crime and Misconduct Research Unit Carlton Glasgow Partnership Director, Child & Family Training, York From andreas.bergendal at gmail.com Sat Dec 21 07:11:13 2024 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 21 Dec 2024 13:11:13 +0100 Subject: Webby URL search and scrape question In-Reply-To: <CAJj=i80=opsU085QoT1TaT=9G4=g-D=B-47MeNfxMuQ3UXsi=g@mail.gmail.com> References: <CAJj=i80=opsU085QoT1TaT=9G4=g-D=B-47MeNfxMuQ3UXsi=g@mail.gmail.com> Message-ID: <59143415-AF1A-41E2-8C54-302C992E9659@gmail.com> Hi David, I don’t know how to obtain thousands of random urls in a useful way, but I can contribute some ideas on how to process a url once you have it. With LiveCode, you won’t have to actually ’visit' the web site as in seeing it rendered in a browser, but you need to load the content, which may be slow enough, depending on the website. To get started testing, I would do something like put URL tURL into tHTMLcontent put char 1 to 9999 of tHTMLcontent into tHTMLcontent to as soon as possible cut down the memory burden. Then it would be easy to parse out the <title> and <html lang=”..."> tags to find title and language - although neither are mandatory, so you’d need alternative ways if those tags are not present. Keywords are harder to determine, as they can appear (or not) in many different ways. These days, I would simply hook the stack up to an AI api and let that analyse the content, which could work for language categorisation as well. To scale up and automate the analysis of thousands of urls, using ’put URL’ would be too slow though, as it’s a blocking command. You’d have to set up parallel ’load URL’s and have the results processed dynamically as they trickle in, and error handle those that for some reason don’t load. Sounds like a fun project! :) /Andreas > 21 dec. 2024 kl. 11:43 skrev David Glasgow via use-livecode <use-livecode at lists.runrev.com>: > > I am alsmost a complete novice with respect to HTML and web stuff, but > suddenly find myself needing to change that. I have read around web > scraping but most stuff is much more ambitious than what I want to do, > focusses on python and assumes slightly (?)shady business goals - like > scraping data from your competitors' websites. My goal is pure > research...and of course I would love to do it in Livecode > > I want to work through a list of (pseudo) random URLs, harvest the page > title and any keywords, and aggregate the results in a field/table. So I > don't want the URLs to be found on the basis of content or top level domain > at all. Metaphorically, dipping into the WWW bran tub allowing all domain > suffixes, pulling out a random page, checking it has english content, > check it has keywords, extract the page title, extract any keywords, save > them to a table indexed by URL and then move on to the next lucky dip. > > The specifics I would appreciate advice on are > > 1/ how to sample as close to a random sample of URLs as possible. There > are websites that purport to take you to a random www page, but I > couldn't work out how they pull that off - or indeed how random > the destination really is. They also want to do it only one by one, > whereas I want to do it a few thousand times on the bounce, ideally without > visiting any page in the browsing sense. > > 2/ how might I check the URL a) is in english and b) contains keywords > > 3/ is it possible to extract the title and keywords from a URL using > Livecode 'remotely' or do I need to use a browser to visit? > > Thanks in advance for any advice or thoughts > > Cheers > > David G From rolf.kocherhans at gmail.com Sat Dec 21 08:34:12 2024 From: rolf.kocherhans at gmail.com (Rolf Kocherhans) Date: Sat, 21 Dec 2024 14:34:12 +0100 Subject: [Ann] macOS Style ColorPicker designed for the Web Message-ID: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> Hello everyone, I’ve created a ColorPicker designed specifically for the web, perfect for scenarios where a native ColorPicker isn’t available. You can find more information in the Forum here: https://forums.livecode.com/viewtopic.php?f=120&t=39500 If you’d like to try it out, simply click the link below. The app is hosted on GitHub Pages, so it works right out of the box. Live URL: https://rolfkocherhans.github.io/ColorPicker/ Enjoy exploring it! Cheers, Rolf From tom at makeshyft.com Sat Dec 21 16:12:05 2024 From: tom at makeshyft.com (Tom Glod) Date: Sat, 21 Dec 2024 16:12:05 -0500 Subject: [Ann] macOS Style ColorPicker designed for the Web In-Reply-To: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> References: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> Message-ID: <CAPzQJLJPoATTHSu2tmHFbq0MEDSeRf8ZrFbEfWsG5auryodqsQ@mail.gmail.com> nice job! On Sat, Dec 21, 2024 at 8:35 AM Rolf Kocherhans via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello everyone, > > I’ve created a ColorPicker designed specifically for the web, perfect for > scenarios where a native ColorPicker isn’t available. > > You can find more information in the Forum here: > https://forums.livecode.com/viewtopic.php?f=120&t=39500 > > If you’d like to try it out, simply click the link below. The app is > hosted on GitHub Pages, so it works right out of the box. > > Live URL: https://rolfkocherhans.github.io/ColorPicker/ > > Enjoy exploring it! > > 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 > From harrison at all-auctions.com Sun Dec 22 00:14:58 2024 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Sun, 22 Dec 2024 00:14:58 -0500 Subject: [Ann] macOS Style ColorPicker designed for the Web In-Reply-To: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> References: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> Message-ID: <26378745-19F8-4742-89B9-94FED0A724CC@all-auctions.com> Hi Rolf, This is nice, but I was hoping it would show the hexadecimal safe web color values too. Is there a way you could implement that? Rick > On Dec 21, 2024, at 8:34 AM, Rolf Kocherhans via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hello everyone, > > I’ve created a ColorPicker designed specifically for the web, perfect for scenarios where a native ColorPicker isn’t available. > > You can find more information in the Forum here: https://forums.livecode.com/viewtopic.php?f=120&t=39500 > > If you’d like to try it out, simply click the link below. The app is hosted on GitHub Pages, so it works right out of the box. > > Live URL: https://rolfkocherhans.github.io/ColorPicker/ > > Enjoy exploring it! > > 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 From curry at pair.com Wed Dec 25 17:23:14 2024 From: curry at pair.com (Curry Kenworthy) Date: Wed, 25 Dec 2024 17:23:14 -0500 Subject: Merry Christmas and Happy Holidays Message-ID: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> More properly - Merry 'Christ's Mass' and Happy Holy-days! More news after recuperating a bit.... Best wishes, Curry Kenworthy Radically Innovative Christian LiveCode Development "PASSION for Elegant, Efficient Code!" https://livecodeconsulting.com/ From tom at makeshyft.com Thu Dec 26 01:55:38 2024 From: tom at makeshyft.com (Tom Glod) Date: Thu, 26 Dec 2024 01:55:38 -0500 Subject: Merry Christmas and Happy Holidays In-Reply-To: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> Message-ID: <CAPzQJLLMCVJeu-gfKdOtH_8ZMfvSTnaFYXcQbdcf4H95XNNpVQ@mail.gmail.com> Same to you and yours Curry. Merry Christmas everyone! On Wed, Dec 25, 2024 at 5:24 PM Curry Kenworthy via use-livecode < use-livecode at lists.runrev.com> wrote: > More properly - Merry 'Christ's Mass' and Happy Holy-days! > > More news after recuperating a bit.... > > Best wishes, > > Curry Kenworthy > > Radically Innovative Christian LiveCode Development > "PASSION for Elegant, Efficient Code!" > https://livecodeconsulting.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 jbv at souslelogo.com Mon Dec 30 11:13:04 2024 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 30 Dec 2024 11:13:04 -0500 Subject: Problem with the shell command with a local server In-Reply-To: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> Message-ID: <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> Hi list, Long story short : I am using LM Studio as a local server to send requests to an LLM model. I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. The request looks like that : curl http://127.0.0.1:1234/v1/embeddings \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' The response is a json file with a list of vectors. When I execute the command in Terminal, everything works fine. But when I use "put shell(tcurl) into myjson" in a LC script, I get the same result, except for a line that is inserted in the middle of the json and looks like that : ... 0.01324639841914177, 0.085932932794094 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- --:--:-- 913k 09, -0.020998964086174965, ... instead of ... 0.01324639841914177, 0.08593293279409409, -0.020998964086174965, ... Because of that I can't parse the json and I get an error with JsonImport. What am I doing wrong ? How can I fix it ? Thank you in advance jbv From jbv at souslelogo.com Mon Dec 30 11:19:01 2024 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 30 Dec 2024 11:19:01 -0500 Subject: Problem with the shell command on a local server Message-ID: <36e79996b8a97d25cce30227072943a9@souslelogo.com> Hi list, Long story short : I am using LM Studio as a local server to send requests to an LLM model. I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. The request looks like that : curl http://127.0.0.1:1234/v1/embeddings \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' The response is a json file with a list of vectors. When I execute the command in Terminal, everything works fine. But when I use "put shell(tcurl) into myjson" in a LC script, I get the same result, except for a line that is inserted in the middle of the json and looks like that : ... 0.01324639841914177, 0.085932932794094 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- --:--:-- 913k 09, -0.020998964086174965, ... instead of ... 0.01324639841914177, 0.08593293279409409, -0.020998964086174965, ... Because of that I can't parse the json and I get an error with JsonImport. What am I doing wrong ? How can I fix it ? Thank you in advance jbv From bobsneidar at iotecdigital.com Mon Dec 30 12:09:43 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Dec 2024 17:09:43 +0000 Subject: Problem with the shell command with a local server In-Reply-To: <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> Message-ID: <5137292C-C833-483B-9089-71597B6116D6@iotecdigital.com> It looks like a continuation of the second line actually. Bob S > On Dec 30, 2024, at 8:13 AM, jbv via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi list, > > Long story short : I am using LM Studio as a local server to send requests to an LLM model. > I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. > > The request looks like that : > curl http://127.0.0.1:1234/v1/embeddings \ > -H "Content-Type: application/json" \ > -d '{ > "model": "text-embedding-granite-embedding-278m-multilingual", > "input": "some text" > }' > > The response is a json file with a list of vectors. > When I execute the command in Terminal, everything works fine. > But when I use "put shell(tcurl) into myjson" in a LC script, > I get the same result, except for a line that is inserted in the > middle of the json and looks like that : > ... > 0.01324639841914177, > 0.085932932794094 > 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- --:--:-- 913k > 09, > -0.020998964086174965, > ... > > instead of > ... > 0.01324639841914177, > 0.08593293279409409, > -0.020998964086174965, > ... > > Because of that I can't parse the json and I get an error with JsonImport. > > What am I doing wrong ? > How can I fix it ? > > Thank you in advance > jbv > > _______________________________________________ > 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 Dec 30 12:11:25 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Dec 2024 17:11:25 +0000 Subject: Problem with the shell command with a local server In-Reply-To: <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> Message-ID: <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> If you are parsing in LC, you can get the first word of each line. Now if the text returned actually contains a line break in the second line that is producing the erroneous third line, you may have to test the range of each line. Bob S > On Dec 30, 2024, at 8:13 AM, jbv via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi list, > > Long story short : I am using LM Studio as a local server to send requests to an LLM model. > I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. > > The request looks like that : > curl http://127.0.0.1:1234/v1/embeddings \ > -H "Content-Type: application/json" \ > -d '{ > "model": "text-embedding-granite-embedding-278m-multilingual", > "input": "some text" > }' > > The response is a json file with a list of vectors. > When I execute the command in Terminal, everything works fine. > But when I use "put shell(tcurl) into myjson" in a LC script, > I get the same result, except for a line that is inserted in the > middle of the json and looks like that : > ... > 0.01324639841914177, > 0.085932932794094 > 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- --:--:-- 913k > 09, > -0.020998964086174965, > ... > > instead of > ... > 0.01324639841914177, > 0.08593293279409409, > -0.020998964086174965, > ... > > Because of that I can't parse the json and I get an error with JsonImport. > > What am I doing wrong ? > How can I fix it ? > > Thank you in advance > jbv > > _______________________________________________ > 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 jbv at souslelogo.com Mon Dec 30 12:40:26 2024 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 30 Dec 2024 12:40:26 -0500 Subject: Problem with the shell command with a local server In-Reply-To: <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> Message-ID: <4c379911f95d428f841677debefea198@souslelogo.com> Actually it's not so simple, as the line is randomly corrupted and almost doesn't look twice the same. I already tried to clean up the json before using JsonImport, but it's almost impossible to use a general rule. I would prefer to find a way to prevent this to happen, since it doesn't happen in Terminal. So it looks like something specific to the shell command in LC. For the record, I have tried with different models in LM Studio and the problem is the same. However, I am using the same technique with the OpenAI API and I don't have the problem. So I suspect there is something specific happening when using the shell command with a local server. Le 2024-12-30 12:11, Bob Sneidar via use-livecode a crit : > If you are parsing in LC, you can get the first word of each line. Now > if the text returned actually contains a line break in the second line > that is producing the erroneous third line, you may have to test the > range of each line. > > Bob S > >> On Dec 30, 2024, at 8:13 AM, jbv via use-livecode >> <use-livecode at lists.runrev.com> wrote: >> >> Hi list, >> >> Long story short : I am using LM Studio as a local server to send >> requests to an LLM model. >> I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. >> >> The request looks like that : >> curl http://127.0.0.1:1234/v1/embeddings \ >> -H "Content-Type: application/json" \ >> -d '{ >> "model": "text-embedding-granite-embedding-278m-multilingual", >> "input": "some text" >> }' >> >> The response is a json file with a list of vectors. >> When I execute the command in Terminal, everything works fine. >> But when I use "put shell(tcurl) into myjson" in a LC script, >> I get the same result, except for a line that is inserted in the >> middle of the json and looks like that : >> ... >> 0.01324639841914177, >> 0.085932932794094 >> 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- >> --:--:-- 913k >> 09, >> -0.020998964086174965, >> ... >> >> instead of >> ... >> 0.01324639841914177, >> 0.08593293279409409, >> -0.020998964086174965, >> ... >> >> Because of that I can't parse the json and I get an error with >> JsonImport. >> >> What am I doing wrong ? >> How can I fix it ? >> >> Thank you in advance >> jbv >> >> _______________________________________________ >> 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 Dec 30 13:10:51 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Dec 2024 18:10:51 +0000 Subject: Problem with the shell command with a local server In-Reply-To: <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> Message-ID: <9D646428-D251-4B06-A8C0-25CB8EE32BD1@iotecdigital.com> Have you tried getting rid of the line breaks between the curly brackets? Bob S On Dec 30, 2024, at 9:11 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote: -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' From jbv at souslelogo.com Mon Dec 30 13:41:33 2024 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 30 Dec 2024 13:41:33 -0500 Subject: Problem with the shell command with a local server In-Reply-To: <fea096fc-4261-4d1b-b0bc-3aa18e4be3b8@ahsoftware.net> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> <fea096fc-4261-4d1b-b0bc-3aa18e4be3b8@ahsoftware.net> Message-ID: <2c2bb11bfbaf5ebea8ed52dbb99bc885@souslelogo.com> Thank you Mark, the following modification did the trick : curl http://127.0.0.1:1234/v1/embeddings \ -s \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' Le 2024-12-30 13:06, Mark Wieder a crit : > On 12/30/24 08:13, jbv via use-livecode wrote: > >> Because of that I can't parse the json and I get an error with >> JsonImport. >> >> What am I doing wrong ? >> How can I fix it ? > > A couple of curl commandline options to try: > > 1. use the --silent option with curl > 2. send the json output to a file and parse that: > curl <other options here> -o filename From bobsneidar at iotecdigital.com Tue Dec 31 16:45:37 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 31 Dec 2024 21:45:37 +0000 Subject: Problem with the shell command with a local server In-Reply-To: <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> Message-ID: <45FA705C-1A72-4C27-89F4-71C7BB2E7D40@iotecdigital.com> Have you tried getting rid of the line breaks between the curly brackets? Bob S On Dec 30, 2024, at 9:11 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote: -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' From paul at livecode.org Tue Dec 31 18:31:42 2024 From: paul at livecode.org (Paul - Livecode) Date: Tue, 31 Dec 2024 15:31:42 -0800 Subject: Help with Linux app built with LC on Mac Message-ID: <BB79235D-9D97-4071-A619-9757F6C722D4@livecode.org> Hi everyone, I’ve been a long-time list member, but never really felt the need to ask for advice until now. I’ve just built a small app using LC 9.6.13 and built standalones for Mac, Windows, and Linux, which I may look at distributing once all testing is done. I’m using a MacBook Pro M2 for development, and I have Parallels for testing. The Mac and Windows versions appear to be working fine, but when I try to launch the Linux standalone in Ubuntu via Parallels, it won’t even launch. When I double-click the app icon, there is no response. The same is true if I right-click and choose “Run”. I checked the app and folder permissions, and they appear to be OK. The app is on the Linux partition, and I have tried both the standard and x64 versions. I’ve never used Linux before, apart from on RPi, so I’m not sure if there is something that I am missing or doing wrong. Any ideas or advice would be gratefully received. Thank you, and wishing you all a wonderful New Year. Paul From mark at livecode.com Tue Dec 3 03:06:13 2024 From: mark at livecode.com (Mark Waddingham) Date: Tue, 03 Dec 2024 08:06:13 +0000 Subject: Problems with (ask and answer) dialogs with LC 10 on Windows 11 In-Reply-To: <2D0BD881-D3D6-4355-ACF5-2B14B2FCF398@major-k.de> References: <2D0BD881-D3D6-4355-ACF5-2B14B2FCF398@major-k.de> Message-ID: <fe5c43ded543a9f917b55eb3839f5fb5@livecode.com> On 2024-11-29 12:53, Klaus major-k via use-livecode wrote: > Hi friends, > > a friend of mine has recently upgraded to Windows 11 and now has this > problem: > All (ask and answer) dialogs appear in the background and not in front > as exspected. > > Clicking in any IDE window will cause this "block (?)" beep, and he > must use ALT-Tab > until the dialog finally comes to front. And then it takes several > clicks until he can enter > text into the input field (Ask dialog). > > Anyone seen this and/or is this a known problem on Windows (11) with LC > 10? Not that we are aware of :) The code for handling ask/answer dialogs on windows hasn't changed - they are 'just' modal stacks wrapped in engine syntax so if they were generally broken on Windows 11 with LC10, I think we would have heard by now (I do windows development in Windows 11, and haven't see this issue for example). Could ask your friend to see if he sees the same issue with 9.6.13 - that will help narrow down the possible causes. Of course, there could be Windows 11 system settings which are affecting things - or indeed third party software. Any information your friend could provide there might help. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From mark at livecode.com Tue Dec 3 03:10:30 2024 From: mark at livecode.com (Mark Waddingham) Date: Tue, 03 Dec 2024 08:10:30 +0000 Subject: macOS Sequoia (v15) and popup menu bugs? In-Reply-To: <4d7fb922-c073-4d72-b15d-94616f1a9577@researchware.com> References: <4d7fb922-c073-4d72-b15d-94616f1a9577@researchware.com> Message-ID: <ed3eefc8c46275ad4d11706d00ae2737@livecode.com> On 2024-11-30 16:16, Paul Dupuis via use-livecode wrote: > We have a confirmed report of a customer experience a repeatable hard > crash of out application on macOS Sequoia (15.1.1) when trying to > invoke a right-click context menu. We implement context menus by a > Frontscript that looks at mouseDown, and, if it is a mouseDown with the > right modifiers for a context menu, handler it or passes mouseDown. If > it handles it, it modified a button called "popup" to contain the > correct context menu items based on what was clicked on and the > invokes: popup btn "popup" of stack "cm" > > Our app is built under LC 9.6.13. I searched the Livecode Quality > Center (bugzilla) for any bugs related to Sequoia, but found nothing. > It works on macOS Sonoma without any crash. We do not currently have a > Sequoia system to test on. > > Has anyone experienced a crash with a popup menu on Sequoia? Any > insights? Could you submit a bug report with a stack which replicates the initial contents and then modification of the popup menu and then does popup? We can then look into it - given that we haven't had any other reports of this, I suspect it is something in the structure / modification of the popup menu which is causing a problem (I realize you can't test this is context, but it would give us some insight into making a recipe). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From klaus at major-k.de Tue Dec 3 11:03:53 2024 From: klaus at major-k.de (Klaus major-k) Date: Tue, 3 Dec 2024 17:03:53 +0100 Subject: Problems with (ask and answer) dialogs with LC 10 on Windows 11 In-Reply-To: <fe5c43ded543a9f917b55eb3839f5fb5@livecode.com> References: <2D0BD881-D3D6-4355-ACF5-2B14B2FCF398@major-k.de> <fe5c43ded543a9f917b55eb3839f5fb5@livecode.com> Message-ID: <A969A0B0-346B-4DCA-8675-DF0F8DE18B0A@major-k.de> Hi Mark, > Am 03.12.2024 um 09:06 schrieb Mark Waddingham via use-livecode <use-livecode at lists.runrev.com>: > > On 2024-11-29 12:53, Klaus major-k via use-livecode wrote: >> Hi friends, >> a friend of mine has recently upgraded to Windows 11 and now has this problem: >> All (ask and answer) dialogs appear in the background and not in front as exspected. >> Clicking in any IDE window will cause this "block (?)" beep, and he must use ALT-Tab >> until the dialog finally comes to front. And then it takes several clicks until he can enter >> text into the input field (Ask dialog). >> Anyone seen this and/or is this a known problem on Windows (11) with LC 10? > Not that we are aware of :) > The code for handling ask/answer dialogs on windows hasn't changed - they are 'just' modal stacks wrapped in engine syntax so if they were generally broken on Windows 11 with LC10, I think we would have heard by now (I do windows development in Windows 11, and haven't see this issue for example). > Could ask your friend to see if he sees the same issue with 9.6.13 - that will help narrow down the possible causes. > Of course, there could be Windows 11 system settings which are affecting things - or indeed third party software. Any information your friend could provide there might help. > > Warmest Regards, > > Mark. thank you, I will ask him! Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From benr_mc at cogapp.com Wed Dec 4 12:21:56 2024 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 4 Dec 2024 17:21:56 +0000 Subject: Configuring tooltips on Chart widget Message-ID: <ef36cf89-0c44-4f86-bb07-cc961ff3799e@cogapp.com> Has anyone been able to configure tooltips on the Chart widget? My immediate requirement is a scatter plot, ideally with two different colours of markers, and with a custom tooltip on each marker. If I try to edit the 'data labels' in the chart property inspector, my edits are immediately undone. If I set the data points using the 'tsvData' property of the widget, and then set labels using the 'dataLabels' property, the scales of the widget are reset (so horizontal axis runs from 0 to 1.0, where before setting dataLabels, it ran 0 to 3,000). All the markers disappear (even if I deliberately add a datapoint within this range). If I use the chartJsonData property, and include "options" as well as "datasets" in the JSON I submit, setting it has no effect. (Whereas removing that section from the JSON, setting the chartJsonData property does have an effect.) If I use the chartJsonData property to set points including "x", "y" and "label" attributes for each, the data is accepted and the points appear in the expected place. But the tooltip on each point is the x and y values, e.g. "(30, 50)". If I then use the chartOptionsData property I can modify scales, gridlines etc. But if I include a "plugins" attribute defining a "tooltip" callback in the JSON (definition copied from the interweb) then setting it has no visible effect (possibly an error is thrown somewhere). But, from then on when switching from tool mode to browser mode, the revErrorDisplay window pops open with a report of the form: LCB Error array key does not exist Object BensChartWidget LCB File chartlc.lcb LCB Line 1873 Unfortunately, I can't locate a "chartlc.lcb" file in the package. I'm a bit stumped. Is there a way to set a custom label for each point on a scatter chart using this widget? TIA, Ben From paul at researchware.com Wed Dec 4 12:34:55 2024 From: paul at researchware.com (Paul Dupuis) Date: Wed, 4 Dec 2024 12:34:55 -0500 Subject: macOS Sequoia (v15) and popup menu bugs? In-Reply-To: <ed3eefc8c46275ad4d11706d00ae2737@livecode.com> References: <4d7fb922-c073-4d72-b15d-94616f1a9577@researchware.com> <ed3eefc8c46275ad4d11706d00ae2737@livecode.com> Message-ID: <40848ca7-690f-48d1-808e-5d827fb672ff@researchware.com> On 12/3/2024 3:10 AM, Mark Waddingham via use-livecode wrote: > On 2024-11-30 16:16, Paul Dupuis via use-livecode wrote: >> We have a confirmed report of a customer experience a repeatable hard >> crash of out application on macOS Sequoia (15.1.1) when trying to >> invoke a right-click context menu. We implement context menus by a >> Frontscript that looks at mouseDown, and, if it is a mouseDown with >> the right modifiers for a context menu, handler it or passes >> mouseDown. If it handles it, it modified a button called "popup" to >> contain the correct context menu items based on what was clicked on >> and the invokes: popup btn "popup" of stack "cm" >> >> Our app is built under LC 9.6.13. I searched the Livecode Quality >> Center (bugzilla) for any bugs related to Sequoia, but found nothing. >> It works on macOS Sonoma without any crash. We do not currently have >> a Sequoia system to test on. >> >> Has anyone experienced a crash with a popup menu on Sequoia? Any >> insights? > > Could you submit a bug report with a stack which replicates the > initial contents and then modification of the popup menu and then does > popup? > > We can then look into it - given that we haven't had any other reports > of this, I suspect it is something in the structure / modification of > the popup menu which is causing a problem (I realize you can't test > this is context, but it would give us some insight into making a recipe). > > Warmest Regards, > > Mark. > Thank you Mark, We'll do this, but it may be a while. We need to build a Sequoia VM on our Sonoma system (we can't afford to buy another Apple hardware for this). That may take a while since building VM is not a regular occurrence in our lives and we forget all the little tweaks needed for macOS VirtualBox VMs. Once that is done, we will be able to try to reproduce the issue, and if we can, trace it with the debugger. That should allow us to pin point what is causing the crash and create a demo stack with just that code. From andreas.bergendal at gmail.com Wed Dec 4 14:53:04 2024 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Wed, 4 Dec 2024 20:53:04 +0100 Subject: Your scripts as a flowchart In-Reply-To: <A8E6EB90-D569-4807-9EB4-92F6035A95FC@gmail.com> References: <49103ECE-97F3-4305-A3B4-01A0E377E158@gmail.com> <CAKCLKtpqQXm8OwOuhb=2QSTzd+zqFF5fWiWpH0WZ6uxtVuxYRQ@mail.gmail.com> <18a9f0eaa08.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <CAKCLKtofwpfMt7L05z5CbCqA=xeEa3YM3bbodwdv0ZWK3bYBEw@mail.gmail.com> <023C9AEA-7B3A-455E-B6DC-18164BBF04B5@gmail.com> <CAKCLKtrOSD0O3kvs43Q_mJno4Dkf3e4Rv-JigjunPZJJP_s2pQ@mail.gmail.com> <CAKCLKtr7_H9=htuGpOJiM_qOKKHONVimCYFLj2GRsN65jifqWg@mail.gmail.com> <5357224F-1A01-4F2E-804A-014467118930@gmail.com> <45122269-0cd1-47ff-9dac-bb5c003ca1c4@speedbump.io> <C24EEA90-E5E2-4FB8-B0EF-C30DD601FB37@gmail.com> <e2432ecf-2c08-4e3c-a4e0-8337b8541f54@speedbump.io> <A9BBAB28-D426-4613-A45A-C6C8A8E8AD86@gmail.com> <A8E6EB90-D569-4807-9EB4-92F6035A95FC@gmail.com> Message-ID: <77037BF2-95D3-40E8-92C7-3DDCF1F33E6A@gmail.com> Since the list is not very busy these days, I don’t feel too spammy posting a minor update announcement again. :) The WIS_ScriptDependencies v1.2.1 release fixes a bug so that PNGs/SVGs of flowcharts can always be produced. Setting the httpHeaders to "Content-Type: text/plain" fixed it. Download link: https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest /Andreas > 22 nov. 2024 kl. 20:27 skrev Andreas Bergendal <andreas.bergendal at gmail.com>: > > A new WIS_ScriptDependencies update: > > v1.2.0 (22 Nov 2024) > > Finally, in the most recent versions of LiveCode, the browser widget on Windows is upgraded and can run Mermaid code! > > - Enhancement: Flowcharts can now be displayed in the browser widget also on Windows, when using LC versions 9.6.13 (rc and stable), 10.0.0 (rc and stable) and all 10.0.1+ versions as well as the latest LC Create native in classic mode. > - Enhancement: Added a settings pane for which handler types to include/exclude. The setting is global, not per project. Default is to include all handler types. > - Enhancement: Implemented code formatting/colouring in the code display field > - Fixed bug: Some flowchart nodes (handler names) were not correctly styled > > Download link: > https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest > > > And an updated example of how a very simple code base can look like when visualised with this tool: > https://wheninspace.com/browseranimation/WIS_ScriptDependencies_example.png > > Imagine how your code would look - if you haven’t tried it yet! ;-) > > /Andreas From bobsneidar at iotecdigital.com Wed Dec 4 15:41:10 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 4 Dec 2024 20:41:10 +0000 Subject: Your scripts as a flowchart In-Reply-To: <77037BF2-95D3-40E8-92C7-3DDCF1F33E6A@gmail.com> References: <49103ECE-97F3-4305-A3B4-01A0E377E158@gmail.com> <CAKCLKtpqQXm8OwOuhb=2QSTzd+zqFF5fWiWpH0WZ6uxtVuxYRQ@mail.gmail.com> <18a9f0eaa08.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <CAKCLKtofwpfMt7L05z5CbCqA=xeEa3YM3bbodwdv0ZWK3bYBEw@mail.gmail.com> <023C9AEA-7B3A-455E-B6DC-18164BBF04B5@gmail.com> <CAKCLKtrOSD0O3kvs43Q_mJno4Dkf3e4Rv-JigjunPZJJP_s2pQ@mail.gmail.com> <CAKCLKtr7_H9=htuGpOJiM_qOKKHONVimCYFLj2GRsN65jifqWg@mail.gmail.com> <5357224F-1A01-4F2E-804A-014467118930@gmail.com> <45122269-0cd1-47ff-9dac-bb5c003ca1c4@speedbump.io> <C24EEA90-E5E2-4FB8-B0EF-C30DD601FB37@gmail.com> <e2432ecf-2c08-4e3c-a4e0-8337b8541f54@speedbump.io> <A9BBAB28-D426-4613-A45A-C6C8A8E8AD86@gmail.com> <A8E6EB90-D569-4807-9EB4-92F6035A95FC@gmail.com> <77037BF2-95D3-40E8-92C7-3DDCF1F33E6A@gmail.com> Message-ID: <69B08BA2-C219-4E0F-AEFC-9A3160246D1E@iotecdigital.com> I get Syntax Error in Text when attempting a flow chart. It’s a large project. Bob S > On Dec 4, 2024, at 11:53 AM, Andreas Bergendal via use-livecode <use-livecode at lists.runrev.com> wrote: > > Since the list is not very busy these days, I don’t feel too spammy posting a minor update announcement again. :) > > The WIS_ScriptDependencies v1.2.1 release fixes a bug so that PNGs/SVGs of flowcharts can always be produced. > Setting the httpHeaders to "Content-Type: text/plain" fixed it. > > Download link: > https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest > > /Andreas > >> 22 nov. 2024 kl. 20:27 skrev Andreas Bergendal <andreas.bergendal at gmail.com>: >> >> A new WIS_ScriptDependencies update: >> >> v1.2.0 (22 Nov 2024) >> >> Finally, in the most recent versions of LiveCode, the browser widget on Windows is upgraded and can run Mermaid code! >> >> - Enhancement: Flowcharts can now be displayed in the browser widget also on Windows, when using LC versions 9.6.13 (rc and stable), 10.0.0 (rc and stable) and all 10.0.1+ versions as well as the latest LC Create native in classic mode. >> - Enhancement: Added a settings pane for which handler types to include/exclude. The setting is global, not per project. Default is to include all handler types. >> - Enhancement: Implemented code formatting/colouring in the code display field >> - Fixed bug: Some flowchart nodes (handler names) were not correctly styled >> >> Download link: >> https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest >> >> >> And an updated example of how a very simple code base can look like when visualised with this tool: >> https://wheninspace.com/browseranimation/WIS_ScriptDependencies_example.png >> >> Imagine how your code would look - if you haven’t tried it yet! ;-) >> >> /Andreas > > _______________________________________________ > 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 andreas.bergendal at gmail.com Wed Dec 4 15:52:11 2024 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Wed, 4 Dec 2024 21:52:11 +0100 Subject: Your scripts as a flowchart In-Reply-To: <69B08BA2-C219-4E0F-AEFC-9A3160246D1E@iotecdigital.com> References: <49103ECE-97F3-4305-A3B4-01A0E377E158@gmail.com> <CAKCLKtpqQXm8OwOuhb=2QSTzd+zqFF5fWiWpH0WZ6uxtVuxYRQ@mail.gmail.com> <18a9f0eaa08.2814.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <CAKCLKtofwpfMt7L05z5CbCqA=xeEa3YM3bbodwdv0ZWK3bYBEw@mail.gmail.com> <023C9AEA-7B3A-455E-B6DC-18164BBF04B5@gmail.com> <CAKCLKtrOSD0O3kvs43Q_mJno4Dkf3e4Rv-JigjunPZJJP_s2pQ@mail.gmail.com> <CAKCLKtr7_H9=htuGpOJiM_qOKKHONVimCYFLj2GRsN65jifqWg@mail.gmail.com> <5357224F-1A01-4F2E-804A-014467118930@gmail.com> <45122269-0cd1-47ff-9dac-bb5c003ca1c4@speedbump.io> <C24EEA90-E5E2-4FB8-B0EF-C30DD601FB37@gmail.com> <e2432ecf-2c08-4e3c-a4e0-8337b8541f54@speedbump.io> <A9BBAB28-D426-4613-A45A-C6C8A8E8AD86@gmail.com> <A8E6EB90-D569-4807-9EB4-92F6035A95FC@gmail.com> <77037BF2-95D3-40E8-92C7-3DDCF1F33E6A@gmail.com> <69B08BA2-C219-4E0F-AEFC-9A3160246D1E@iotecdigital.com> Message-ID: <B1FE7C66-A6F1-4F31-8BC6-194DF40C958A@gmail.com> Oh crap - yes, I see what you mean! I thought the latest Mermaid version had that sorted out, but apparently not. In the flowchart settings (the cogwheel next to the Create flowchart button), change the Mermaid version to 10.5.1. That fixes it. I will make that the default version again, updating the stack now without a creating new release (gosh, 4 people already downloaded it!). Thanks for that quick feedback, Bob! > 4 dec. 2024 kl. 21:41 skrev Bob Sneidar via use-livecode <use-livecode at lists.runrev.com>: > > I get Syntax Error in Text when attempting a flow chart. It’s a large project. > > Bob S > > >> On Dec 4, 2024, at 11:53 AM, Andreas Bergendal via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Since the list is not very busy these days, I don’t feel too spammy posting a minor update announcement again. :) >> >> The WIS_ScriptDependencies v1.2.1 release fixes a bug so that PNGs/SVGs of flowcharts can always be produced. >> Setting the httpHeaders to "Content-Type: text/plain" fixed it. >> >> Download link: >> https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest >> >> /Andreas >> >>> 22 nov. 2024 kl. 20:27 skrev Andreas Bergendal <andreas.bergendal at gmail.com>: >>> >>> A new WIS_ScriptDependencies update: >>> >>> v1.2.0 (22 Nov 2024) >>> >>> Finally, in the most recent versions of LiveCode, the browser widget on Windows is upgraded and can run Mermaid code! >>> >>> - Enhancement: Flowcharts can now be displayed in the browser widget also on Windows, when using LC versions 9.6.13 (rc and stable), 10.0.0 (rc and stable) and all 10.0.1+ versions as well as the latest LC Create native in classic mode. >>> - Enhancement: Added a settings pane for which handler types to include/exclude. The setting is global, not per project. Default is to include all handler types. >>> - Enhancement: Implemented code formatting/colouring in the code display field >>> - Fixed bug: Some flowchart nodes (handler names) were not correctly styled >>> >>> Download link: >>> https://github.com/wheninspace/WIS_ScriptDependencies/releases/latest >>> >>> >>> And an updated example of how a very simple code base can look like when visualised with this tool: >>> https://wheninspace.com/browseranimation/WIS_ScriptDependencies_example.png >>> >>> Imagine how your code would look - if you haven’t tried it yet! ;-) >>> >>> /Andreas >> >> _______________________________________________ >> 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 Thu Dec 5 02:06:36 2024 From: mark at livecode.com (Mark Waddingham) Date: Thu, 05 Dec 2024 07:06:36 +0000 Subject: macOS Sequoia (v15) and popup menu bugs? In-Reply-To: <40848ca7-690f-48d1-808e-5d827fb672ff@researchware.com> References: <4d7fb922-c073-4d72-b15d-94616f1a9577@researchware.com> <ed3eefc8c46275ad4d11706d00ae2737@livecode.com> <40848ca7-690f-48d1-808e-5d827fb672ff@researchware.com> Message-ID: <583ff1bc39a02aa064e12b393ee458f8@livecode.com> On 2024-12-04 17:34, Paul Dupuis via use-livecode wrote: >> Could you submit a bug report with a stack which replicates the >> initial contents and then modification of the popup menu and then does >> popup? >> >> We can then look into it - given that we haven't had any other reports >> of this, I suspect it is something in the structure / modification of >> the popup menu which is causing a problem (I realize you can't test >> this is context, but it would give us some insight into making a >> recipe). > We'll do this, but it may be a while. We need to build a Sequoia VM on > our Sonoma system (we can't afford to buy another Apple hardware for > this). That may take a while since building VM is not a regular > occurrence in our lives and we forget all the little tweaks needed for > macOS VirtualBox VMs. Once that is done, we will be able to try to > reproduce the issue, and if we can, trace it with the debugger. That > should allow us to pin point what is causing the crash and create a > demo stack with just that code. I should have been more clear - I wasn't suggesting you need to test and reproduce on sequoia first - we just need a stack with a button which has the initial contents of the popup context menu in it, then on mouseDown it rewrites it to the new version (i.e. emulating what is happening). We can then see if that crashes and if so we have a recipe without you having to setup Sequoia - if it doesn't then more work will be needed to establish a recipe. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Build Amazing Things From panos.merakos at livecode.com Thu Dec 5 10:19:55 2024 From: panos.merakos at livecode.com (panagiotis merakos) Date: Thu, 5 Dec 2024 17:19:55 +0200 Subject: [[ ANN ]] Release LiveCode 10.0.1 RC-3 Message-ID: <CA+JfEq80y+5c5yDyPt_k=7rsi07DqTTFhF0fUqhajGo-wnnOvw@mail.gmail.com> Dear list members, We are pleased to announce the release of LiveCode 10.0.1 RC-3. LiveCode 10.0.1 RC-3 comes with 2 bugfixes: - Apps submitted to the iOS app store will no longer have problems with missing privacy manifests - When building for iOS, the standalone builder will now search the new (Xcode 16+) location for provisioning profiles You can find the release in your LiveCode account area or get it via the automatic updater. Enjoy! Kind regards The LiveCode Team -- From htorrado at networkdreams.net Fri Dec 6 18:54:55 2024 From: htorrado at networkdreams.net (Heriberto Torrado) Date: Fri, 6 Dec 2024 18:54:55 -0500 Subject: LiveCode Server 9.6.3 Linux Compatibility Layer Library Dependencies for NetBSD Message-ID: <8d73d350-90e7-4c13-a19d-99aef3970c6b@networkdreams.net> Dear Livecode lovers, I've been messing around these days with the possibility of installing Livecode Server 9.6.3 (Community Edition) on NetBSD (just because I like NetBSD) using the Linux compatibility layer on NetBSD. Well, I've managed to find out the list of libraries that the Livecode Server executable depends on, so this list might be of interest when trying to find out which libraries you guys need on Linux / BSD to run Livecode Server. Shared library: [libdl.so.2] Shared library: [libpthread.so.0] Shared library: [libexpat.so.1] Shared library: [libfreetype.so.6] Shared library: [libfontconfig.so.1] Shared library: [librt.so.1] Shared library: [libstdc++.so.6] Shared library: [libm.so.6] Shared library: [libgcc_s.so.1] Shared library: [libc.so.6] Shared library: [ld-linux-x86-64.so.2] Best, Heriberto Torrado From curry at pair.com Sat Dec 7 15:10:23 2024 From: curry at pair.com (Curry Kenworthy) Date: Sat, 7 Dec 2024 15:10:23 -0500 Subject: LiveCode Server 9.6.3 Linux Compatibility Layer Library Dependencies for NetBSD In-Reply-To: <8d73d350-90e7-4c13-a19d-99aef3970c6b@networkdreams.net> References: <8d73d350-90e7-4c13-a19d-99aef3970c6b@networkdreams.net> Message-ID: <8ae886f6-5584-4f59-a659-5bd1ddebb201@pair.com> Heriberto: > libraries you guys need on Linux / BSD to run Livecode Server. Thanks for the resource - and for your comments a while back! Livecode Community Edition is a vital dev tool option. Best wishes, Curry Kenworthy Radically Innovative Christian LiveCode Development "PASSION for Elegant, Efficient Code!" https://livecodeconsulting.com/ From admin at flexiblelearning.com Sun Dec 8 04:01:09 2024 From: admin at flexiblelearning.com (Hugh Senior) Date: Sun, 8 Dec 2024 09:01:09 -0000 Subject: Window layering screwed In-Reply-To: <mailman.1.1733590802.1255673.use-livecode@lists.runrev.com> References: <mailman.1.1733590802.1255673.use-livecode@lists.runrev.com> Message-ID: <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> After years of working as expected, now any stack opened as modal is mis-layered behind the calling window. As the blocking modal window is hidden and not accessible to dismiss, the only way to regain control seems to be cmd.M to show the message box (dunno why). Anyone else got this problem? Is it the result of a recent Windows update that has somehow screwed up window layering? LC 9.6.12 Win11 Hugh Senior From paul at researchware.com Sun Dec 8 11:18:09 2024 From: paul at researchware.com (Paul Dupuis) Date: Sun, 8 Dec 2024 11:18:09 -0500 Subject: Window layering screwed In-Reply-To: <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> References: <mailman.1.1733590802.1255673.use-livecode@lists.runrev.com> <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> Message-ID: <a7ca6792-2181-45b4-b06c-4f9fc031d76f@researchware.com> I am running Windows 11 with the latest updates on an HP Pavilion laptop with a i7 processor and 16GB of RAM. I have no window layering issues under LC9.6.13, LC 10.0.0, or LC 10.0.1rc3. On 12/8/2024 4:01 AM, Hugh Senior via use-livecode wrote: > After years of working as expected, now any stack opened as modal is > mis-layered behind the calling window. As the blocking modal window is > hidden and not accessible to dismiss, the only way to regain control seems > to be cmd.M to show the message box (dunno why). > > Anyone else got this problem? Is it the result of a recent Windows update > that has somehow screwed up window layering? > > LC 9.6.12 > Win11 > > Hugh Senior > > > _______________________________________________ > 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 martyknappster at gmail.com Sun Dec 8 11:59:03 2024 From: martyknappster at gmail.com (Marty Knapp) Date: Sun, 8 Dec 2024 08:59:03 -0800 Subject: Window layering screwed In-Reply-To: <a7ca6792-2181-45b4-b06c-4f9fc031d76f@researchware.com> References: <mailman.1.1733590802.1255673.use-livecode@lists.runrev.com> <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> <a7ca6792-2181-45b4-b06c-4f9fc031d76f@researchware.com> Message-ID: <5643A1E8-0C8F-4AC8-B16D-2677855439C2@gmail.com> Check to see if raiseWindows is set to true - if so try it set to false. --- Marty Knapp > On Dec 8, 2024, at 8:18 AM, Paul Dupuis via use-livecode <use-livecode at lists.runrev.com> wrote: > > I am running Windows 11 with the latest updates on an HP Pavilion laptop with a i7 processor and 16GB of RAM. I have no window layering issues under LC9.6.13, LC 10.0.0, or LC 10.0.1rc3. > > > On 12/8/2024 4:01 AM, Hugh Senior via use-livecode wrote: >> After years of working as expected, now any stack opened as modal is >> mis-layered behind the calling window. As the blocking modal window is >> hidden and not accessible to dismiss, the only way to regain control seems >> to be cmd.M to show the message box (dunno why). >> >> Anyone else got this problem? Is it the result of a recent Windows update >> that has somehow screwed up window layering? >> >> LC 9.6.12 >> Win11 >> >> Hugh Senior From curry at pair.com Sun Dec 8 16:18:29 2024 From: curry at pair.com (Curry Kenworthy) Date: Sun, 8 Dec 2024 16:18:29 -0500 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> References: <000801db494f$bce30440$36a90cc0$@flexiblelearning.com> Message-ID: <af1de25e-3c14-42fd-8da1-fb92df690b56@pair.com> Hugh: > After years of working as expected, now any stack opened as modal > is mis-layered behind the calling window. Yes, I have seen that a couple of times - You need a recipe! Context makes all the difference. Glad to see you here. Klaus: > Windows 11 ... (ask and answer) dialogs appear in the background ... > he must use ALT-Tab until the dialog finally comes to front. Yes, I have seen that a couple of times - You need a recipe! It's easier to use the Taskbar, back to the calling window. Best wishes, Curry Kenworthy Radically Innovative Christian LiveCode Development "PASSION for Elegant, Efficient Code!" https://livecodeconsulting.com/ From admin at flexiblelearning.com Tue Dec 10 01:40:55 2024 From: admin at flexiblelearning.com (Hugh Senior) Date: Tue, 10 Dec 2024 06:40:55 -0000 Subject: Window layering screwed In-Reply-To: <mailman.1.1733677201.2117759.use-livecode@lists.runrev.com> References: <mailman.1.1733677201.2117759.use-livecode@lists.runrev.com> Message-ID: <001001db4ace$782dafa0$68890ee0$@flexiblelearning.com> Yo Marty, RaiseWindows is the culprit. Good catch. I recall window layering being a PITA in the engine many years ago. Looks like the recent Windows update has thrown a spanner back in the works. Hugh Senior >Marty Knapp wrote > >Check to see if raiseWindows is set to true - if so try it set to false. > On 12/8/2024 4:01 AM, Hugh Senior via use-livecode wrote: >> After years of working as expected, now any stack opened as modal is >> mis-layered behind the calling window. As the blocking modal window >> is hidden and not accessible to dismiss, the only way to regain >> control seems to be cmd.M to show the message box (dunno why). >> >> Anyone else got this problem? Is it the result of a recent Windows >> update that has somehow screwed up window layering? >> >> LC 9.6.12 >> Win11 >> >> Hugh Senior From admin at flexiblelearning.com Tue Dec 10 01:45:51 2024 From: admin at flexiblelearning.com (Hugh Senior) Date: Tue, 10 Dec 2024 06:45:51 -0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: <mailman.1.1733763601.3109176.use-livecode@lists.runrev.com> References: <mailman.1.1733763601.3109176.use-livecode@lists.runrev.com> Message-ID: <001101db4acf$27e3fc60$77abf520$@flexiblelearning.com> Curry: Recipe is engine bug with RaiseWindows. Set to false to regain correct layering, with thanks to Marty. Now just lurking on the lists! Hugh Senior -----Original Message----- Date: Sun, 8 Dec 2024 16:18:29 -0500 From: Curry Kenworthy <curry at pair.com> To: use-livecode at lists.runrev.com Subject: Re: Window layering screwed / Problems with (ask and answer) dialogs Hugh: > After years of working as expected, now any stack opened as modal > is mis-layered behind the calling window. Yes, I have seen that a couple of times - You need a recipe! Context makes all the difference. Glad to see you here. From ambassador at fourthworld.com Tue Dec 10 20:34:52 2024 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 11 Dec 2024 01:34:52 +0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs Message-ID: <21f61ceb7268ee577868d8363bb316c90019d44c@fourthworld.com> Hugh Senior wrote: > Recipe is engine bug with RaiseWindows. Set to false to regain correct > layering, with thanks to Marty. > > Now just lurking on the lists! Before you go, did you file a bug report on that? -- Richard Gaskin FourthWorld.com From admin at flexiblelearning.com Wed Dec 11 13:13:47 2024 From: admin at flexiblelearning.com (Hugh Senior) Date: Wed, 11 Dec 2024 18:13:47 -0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: <mailman.1.1733936401.855935.use-livecode@lists.runrev.com> References: <mailman.1.1733936401.855935.use-livecode@lists.runrev.com> Message-ID: <001901db4bf8$6d225220$4766f660$@flexiblelearning.com> Hi Richard No, I haven't reported it. Not sure I still have access to Bugzilla now. Can you do the honours, please? RaiseWindows LC 9.6.12 Windows When RaiseWindows is set to true, expect modal windows to float. They don't. They appear behind the parent window, inaccessible and undismissable. Hugh >Richard Gaskin <ambassador at fourthworld.com> wrote: >Before you go, did you file a bug report on that? >>Hugh Senior wrote: >> >> Recipe is engine bug with RaiseWindows. Set to false to regain correct >> layering, with thanks to Marty. >> >> Now just lurking on the lists! From paul at researchware.com Wed Dec 11 15:59:34 2024 From: paul at researchware.com (Paul Dupuis) Date: Wed, 11 Dec 2024 15:59:34 -0500 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: <001901db4bf8$6d225220$4766f660$@flexiblelearning.com> References: <mailman.1.1733936401.855935.use-livecode@lists.runrev.com> <001901db4bf8$6d225220$4766f660$@flexiblelearning.com> Message-ID: <b038166c-4504-4067-a7b9-0f16b67159ac@researchware.com> FYI I just created a test stack with a check box (on mouseUp set the raiseWindows to the hilite of me end mouseUp) and a button (on mouseUp answer "Answer Dialog" end mouseUp) and tried it under LC 9.6.12 and 9.6.13 in the IDE on Windows 11 (latest version/updates) on an HP Pavilion (i7, 16GB RAM) and the Answer dialog remained on top regardless of the raiseWindows setting in both version of LC. I think any recipe for an error must be a bit more than just whether raiseWindows is true or not. On 12/11/2024 1:13 PM, Hugh Senior via use-livecode wrote: > Hi Richard > > No, I haven't reported it. Not sure I still have access to Bugzilla now. > Can you do the honours, please? > > RaiseWindows > LC 9.6.12 > Windows > When RaiseWindows is set to true, expect modal windows to float. They don't. > They appear behind the parent window, inaccessible and undismissable. > > Hugh > >> Richard Gaskin <ambassador at fourthworld.com> wrote: >> Before you go, did you file a bug report on that? >>> Hugh Senior wrote: >>> >>> Recipe is engine bug with RaiseWindows. Set to false to regain correct >>> layering, with thanks to Marty. >>> >>> Now just lurking on the lists! > > _______________________________________________ > 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 ambassador at fourthworld.com Wed Dec 11 17:46:11 2024 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 11 Dec 2024 22:46:11 +0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs Message-ID: <0c546adba95c1802268c812efb1548d65855dae0@fourthworld.com> I haven't seen the issue myself. If it's not important to you I'm just as happy to get on with my day. Richard Gaskin FourthWorld.com Hugh Senior wrote: > Hi Richard > > No, I haven't reported it. Not sure I still have access to Bugzilla now. > Can you do the honours, please? > > RaiseWindows > LC 9.6.12 > Windows > When RaiseWindows is set to true, expect modal windows to float. They > don't. > They appear behind the parent window, inaccessible and undismissable. > > Hugh > > Richard Gaskin <ambassador at fourthworld.com> wrote: >> Before you go, did you file a bug report on that? >> >> Hugh Senior wrote: >>> >>> Recipe is engine bug with RaiseWindows. Set to false to regain correct >>> layering, with thanks to Marty. >>> >>> Now just lurking on the lists! From bobsneidar at iotecdigital.com Wed Dec 11 18:52:37 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 11 Dec 2024 23:52:37 +0000 Subject: Window layering screwed / Problems with (ask and answer) dialogs In-Reply-To: <0c546adba95c1802268c812efb1548d65855dae0@fourthworld.com> References: <0c546adba95c1802268c812efb1548d65855dae0@fourthworld.com> Message-ID: <02000CC6-9ADA-4D15-B5AD-6B1B227CBA54@iotecdigital.com> :-) > On Dec 11, 2024, at 2:46 PM, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote: > > I haven't seen the issue myself. If it's not important to you I'm just as happy to get on with my day. > > Richard Gaskin > FourthWorld.com > > > Hugh Senior wrote: > >> Hi Richard >> >> No, I haven't reported it. Not sure I still have access to Bugzilla now. >> Can you do the honours, please? >> >> RaiseWindows >> LC 9.6.12 >> Windows >> When RaiseWindows is set to true, expect modal windows to float. They >> don't. >> They appear behind the parent window, inaccessible and undismissable. >> >> Hugh >> >> Richard Gaskin <ambassador at fourthworld.com> wrote: >>> Before you go, did you file a bug report on that? >>> >>> Hugh Senior wrote: >>>> >>>> Recipe is engine bug with RaiseWindows. Set to false to regain correct >>>> layering, with thanks to Marty. >>>> >>>> Now just lurking on the lists! > > _______________________________________________ > 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 Dec 12 13:59:48 2024 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Thu, 12 Dec 2024 18:59:48 +0000 Subject: 10.0.1rc3, building to iOS: Compulsory 18.1, strange splash screen Message-ID: <a29bdec9-8ec7-44a2-9f11-268a989ec0ff@cogapp.com> It's been a long time since I tried to build an iOS app, I thought I'd try to get it all working again. Inspired by Panos' release notes, I downloaded 10.0.1 (rc 3), so at least I wouldn't get the dreaded "Selected Xcode must have..." message. I checked the handy table at https://livecode.com/resources/support/ask-a-question/ and confirmed that at least LC 10.0.0 (not 10.0.1) would work with Xcode 13.2 (which is what I had) on MacOS 13.4+ (I'm running 14.7) for iOS 15.2. I also read again the lesson at https://lessons.livecode.com/m/4069/l/565715-how-do-i-become-an-ios-developer, which confirmed that LC 10.0.1 would work with any Xcode from 12.4 on. After a few false starts, I decided to explicitly launch Xcode and check it was all running. Sneaky Apple! It automatically updated itself to 16.1! However, it still shows that it has the 15.2 simulator, and indeed I can launch the simulator. However when I re-launch LC 10.0.1rc3, create a new stack with a single control on it, set the standalone settings build for iOS, iPod and iPhone, 15.0 or later; set the Test Target to iPhone Simulator 15.2, and click Test, the result is this message: Unable to build app for simulation: failed to create launch screen: /* com.apple.ibtool.errors */ /var/folders/y7/gddpm8ys0892ztpvq78knn2m0000gq/T/Temporaryltems/tmp.93209.5TVqiHma/trashme.app/LaunchScreen.storyboard: error: iOS 18.1 Platform Not Installed. I really don't want to build for iOS 18 - I only want to build an app for my own phone, which doesn't support 18.1 - but at this stage would be happy if I could just get to the next stage. So I installed iOS 18.0 Simulator from the Xcode Settings>Components window. Same result. Finally I went to Apple's dev site, and downloaded the 18.1 Simulator and installed it from the command line. Success! And it successfully built an app that launched on the 15.2 simulator; and (after another couple of days, trawling through Panos' helpful responses on various forum postings etc) also on my phone running iOS 17. So the first issue is why the 18.1 iOS Simulator is required, in order to build for any other iOS version. However, there is a remaining oddity; when the app launches, on the simulator or my real device, the splash screen is a cropped image of the dialog bearing the above message: https://www.dropbox.com/scl/fi/de06nj2fkxay6nsgb97qp/Screenshot-2024-12-12-at-18.38.03.png?rlkey=d70pjfg7msik4e5f9dsgl89zm&dl=0 How curious. At some point I thought, well what happens if I actually take the trouble to assign a splash screen? So I looked at the Standalone Settings, and it turned out that there was a file assigned for the Launch image, and in fact it was a screenshot I'd made of that dialog, while I was working through the issue. Mystery solved I thought, perhaps at some point I carelessly assigned that and had forgotten about it by the time I finally got a working build. So I deleted it. Same result! Then I replaced it with another image. Now when I launch the app, it first shows the picture of the error dialog, then the newly selected launch image. If I delete the launch image, it just has the error dialog as splash screen. Replace with a different image, I get the two-stage splash as before; first the image of the error dialog, then my chosen image. (All this persists through quitting and relaunching LC, btw.) Has anyone else seen something like this? Ben From merakosp at gmail.com Fri Dec 13 02:37:37 2024 From: merakosp at gmail.com (panagiotis merakos) Date: Fri, 13 Dec 2024 09:37:37 +0200 Subject: 10.0.1rc3, building to iOS: Compulsory 18.1, strange splash screen In-Reply-To: <a29bdec9-8ec7-44a2-9f11-268a989ec0ff@cogapp.com> References: <a29bdec9-8ec7-44a2-9f11-268a989ec0ff@cogapp.com> Message-ID: <CA+JfEq_5QAoc+1uqJrEamXp2=kpp3XW_rScbynLp+GLodCr_bA@mail.gmail.com> Hello Ben, Ok, so what you see RE Xcode happens because: - As of LC 10.0.1 RC-2, it is no longer required to have a specific version of Xcode / iOS SDK installed. LiveCode uses the one that is returned if you run this command in the Terminal: xcode-select -p - As of Xcode 15, the simulator runtimes come as a separate download - and one is required to download them if they want to use the simulator. So, if your existing Xcode 13.2 had not auto-updated to Xcode 16.1, LC would have picked this instead, and you would not be required to download any additional runtimes, since the simulator runtimes for this version were already bundled into the original download. Does that make sense? RE the splash screen issue, it seems that somehow the old splashscreen has made it into the standalone settings. I guess this does not happen with a brand new stack, is that correct? You can have a look at the custom properties of the "problematic" stack, and check the custom property set "cRevStandaloneSettings". If you find there any property related to splash screens, that its value is the path to the screenshot you see, delete it manually. Hope this helps. Kind regards, Panos -- On Thu, 12 Dec 2024 at 21:00, Ben Rubinstein via use-livecode < use-livecode at lists.runrev.com> wrote: > It's been a long time since I tried to build an iOS app, I thought I'd try > to > get it all working again. Inspired by Panos' release notes, I downloaded > 10.0.1 (rc 3), so at least I wouldn't get the dreaded "Selected Xcode must > have..." message. > > I checked the handy table at > https://livecode.com/resources/support/ask-a-question/ and confirmed that > at > least LC 10.0.0 (not 10.0.1) would work with Xcode 13.2 (which is what I > had) > on MacOS 13.4+ (I'm running 14.7) for iOS 15.2. I also read again the > lesson > at > > https://lessons.livecode.com/m/4069/l/565715-how-do-i-become-an-ios-developer, > > which confirmed that LC 10.0.1 would work with any Xcode from 12.4 on. > > After a few false starts, I decided to explicitly launch Xcode and check > it > was all running. Sneaky Apple! It automatically updated itself to 16.1! > > However, it still shows that it has the 15.2 simulator, and indeed I can > launch the simulator. > > However when I re-launch LC 10.0.1rc3, create a new stack with a single > control on it, set the standalone settings build for iOS, iPod and iPhone, > 15.0 or later; set the Test Target to iPhone Simulator 15.2, and click > Test, > the result is this message: > > Unable to build app for simulation: failed to create launch > screen: /* > com.apple.ibtool.errors */ > > /var/folders/y7/gddpm8ys0892ztpvq78knn2m0000gq/T/Temporaryltems/tmp.93209.5TVqiHma/ > trashme.app/LaunchScreen.storyboard: > error: iOS 18.1 Platform Not Installed. > > I really don't want to build for iOS 18 - I only want to build an app for > my > own phone, which doesn't support 18.1 - but at this stage would be happy > if I > could just get to the next stage. So I installed iOS 18.0 Simulator from > the > Xcode Settings>Components window. > > Same result. > > Finally I went to Apple's dev site, and downloaded the 18.1 Simulator and > installed it from the command line. > > Success! And it successfully built an app that launched on the 15.2 > simulator; > and (after another couple of days, trawling through Panos' helpful > responses > on various forum postings etc) also on my phone running iOS 17. > > So the first issue is why the 18.1 iOS Simulator is required, in order to > build for any other iOS version. > > However, there is a remaining oddity; when the app launches, on the > simulator > or my real device, the splash screen is a cropped image of the dialog > bearing > the above message: > > https://www.dropbox.com/scl/fi/de06nj2fkxay6nsgb97qp/Screenshot-2024-12-12-at-18.38.03.png?rlkey=d70pjfg7msik4e5f9dsgl89zm&dl=0 > > How curious. At some point I thought, well what happens if I actually take > the > trouble to assign a splash screen? So I looked at the Standalone Settings, > and > it turned out that there was a file assigned for the Launch image, and in > fact > it was a screenshot I'd made of that dialog, while I was working through > the > issue. > > Mystery solved I thought, perhaps at some point I carelessly assigned that > and > had forgotten about it by the time I finally got a working build. So I > deleted > it. Same result! Then I replaced it with another image. > > Now when I launch the app, it first shows the picture of the error dialog, > then the newly selected launch image. If I delete the launch image, it > just > has the error dialog as splash screen. Replace with a different image, I > get > the two-stage splash as before; first the image of the error dialog, then > my > chosen image. (All this persists through quitting and relaunching LC, btw.) > > Has anyone else seen something like this? > > 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 at cogapp.com Fri Dec 13 06:43:59 2024 From: benr at cogapp.com (Ben Rubinstein) Date: Fri, 13 Dec 2024 11:43:59 +0000 Subject: 10.0.1rc3, building to iOS: Compulsory 18.1, strange splash screen In-Reply-To: <CA+JfEq_5QAoc+1uqJrEamXp2=kpp3XW_rScbynLp+GLodCr_bA@mail.gmail.com> References: <a29bdec9-8ec7-44a2-9f11-268a989ec0ff@cogapp.com> <CA+JfEq_5QAoc+1uqJrEamXp2=kpp3XW_rScbynLp+GLodCr_bA@mail.gmail.com> Message-ID: <d761a7bb-2b14-4346-8d34-26641bf1cbba@cogapp.com> Hi Panos, Thanks for replying. Re the version of Xcode, I think I was giving too much detail, and this part is probably not relevant. I started working with 13.2, and only launched it (and caused it to auto-update) after encountering problems - but it probably made no difference to the problems (it was days ago, I can't recall exactly the sequence) so you're right if I hadn't had those issues I'd probably still be using Xcode 13.2 and it would probably be fine. However, I think the mystery here (at least to me) is why I was unable to build, for iOS 15.2, until I had installed the iOS 18.1 simulator. (The splash screen thing remains a mystery, but I think it will never be solved - and I can't reproduce it. The only property with an image was to the correct image I wanted. Somehow there is a method to make an animated sequence of splash screens!) best regards, Ben On 13/12/2024 07:37, panagiotis merakos via use-livecode wrote: > Hello Ben, > > Ok, so what you see RE Xcode happens because: > > - As of LC 10.0.1 RC-2, it is no longer required to have a specific version > of Xcode / iOS SDK installed. LiveCode uses the one that is returned if you > run this command in the Terminal: xcode-select -p > > - As of Xcode 15, the simulator runtimes come as a separate download - and > one is required to download them if they want to use the simulator. > > So, if your existing Xcode 13.2 had not auto-updated to Xcode 16.1, LC > would have picked this instead, and you would not be required to download > any additional runtimes, since the simulator runtimes for this version were > already bundled into the original download. > > Does that make sense? > > RE the splash screen issue, it seems that somehow the old splashscreen has > made it into the standalone settings. I guess this does not happen with a > brand new stack, is that correct? You can have a look at the custom > properties of the "problematic" stack, and check the custom property set > "cRevStandaloneSettings". If you find there any property related to splash > screens, that its value is the path to the screenshot you see, delete it > manually. > > Hope this helps. > > Kind regards, > Panos > -- > > On Thu, 12 Dec 2024 at 21:00, Ben Rubinstein via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> It's been a long time since I tried to build an iOS app, I thought I'd try >> to >> get it all working again. Inspired by Panos' release notes, I downloaded >> 10.0.1 (rc 3), so at least I wouldn't get the dreaded "Selected Xcode must >> have..." message. >> >> I checked the handy table at >> https://livecode.com/resources/support/ask-a-question/ and confirmed that >> at >> least LC 10.0.0 (not 10.0.1) would work with Xcode 13.2 (which is what I >> had) >> on MacOS 13.4+ (I'm running 14.7) for iOS 15.2. I also read again the >> lesson >> at >> >> https://lessons.livecode.com/m/4069/l/565715-how-do-i-become-an-ios-developer, >> >> which confirmed that LC 10.0.1 would work with any Xcode from 12.4 on. >> >> After a few false starts, I decided to explicitly launch Xcode and check >> it >> was all running. Sneaky Apple! It automatically updated itself to 16.1! >> >> However, it still shows that it has the 15.2 simulator, and indeed I can >> launch the simulator. >> >> However when I re-launch LC 10.0.1rc3, create a new stack with a single >> control on it, set the standalone settings build for iOS, iPod and iPhone, >> 15.0 or later; set the Test Target to iPhone Simulator 15.2, and click >> Test, >> the result is this message: >> >> Unable to build app for simulation: failed to create launch >> screen: /* >> com.apple.ibtool.errors */ >> >> /var/folders/y7/gddpm8ys0892ztpvq78knn2m0000gq/T/Temporaryltems/tmp.93209.5TVqiHma/ >> trashme.app/LaunchScreen.storyboard: >> error: iOS 18.1 Platform Not Installed. >> >> I really don't want to build for iOS 18 - I only want to build an app for >> my >> own phone, which doesn't support 18.1 - but at this stage would be happy >> if I >> could just get to the next stage. So I installed iOS 18.0 Simulator from >> the >> Xcode Settings>Components window. >> >> Same result. >> >> Finally I went to Apple's dev site, and downloaded the 18.1 Simulator and >> installed it from the command line. >> >> Success! And it successfully built an app that launched on the 15.2 >> simulator; >> and (after another couple of days, trawling through Panos' helpful >> responses >> on various forum postings etc) also on my phone running iOS 17. >> >> So the first issue is why the 18.1 iOS Simulator is required, in order to >> build for any other iOS version. >> >> However, there is a remaining oddity; when the app launches, on the >> simulator >> or my real device, the splash screen is a cropped image of the dialog >> bearing >> the above message: >> >> https://www.dropbox.com/scl/fi/de06nj2fkxay6nsgb97qp/Screenshot-2024-12-12-at-18.38.03.png?rlkey=d70pjfg7msik4e5f9dsgl89zm&dl=0 >> >> How curious. At some point I thought, well what happens if I actually take >> the >> trouble to assign a splash screen? So I looked at the Standalone Settings, >> and >> it turned out that there was a file assigned for the Launch image, and in >> fact >> it was a screenshot I'd made of that dialog, while I was working through >> the >> issue. >> >> Mystery solved I thought, perhaps at some point I carelessly assigned that >> and >> had forgotten about it by the time I finally got a working build. So I >> deleted >> it. Same result! Then I replaced it with another image. >> >> Now when I launch the app, it first shows the picture of the error dialog, >> then the newly selected launch image. If I delete the launch image, it >> just >> has the error dialog as splash screen. Replace with a different image, I >> get >> the two-stage splash as before; first the image of the error dialog, then >> my >> chosen image. (All this persists through quitting and relaunching LC, btw.) >> >> Has anyone else seen something like this? >> >> 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 Bernd.Niggemann at uni-wh.de Sat Dec 14 15:12:50 2024 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Sat, 14 Dec 2024 20:12:50 +0000 Subject: [Ann] An accordion widget Message-ID: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> Hi all, I posted an accordion widget on the forum <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> Accordion for LC<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> forums.livecode.com<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> [X] <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> Those things that when clicking on a tile open a text, clicking on the next tile closes previously open tile and opens the next tile. One sees those e.g for frequently asked questions etc on the web. I was trying to do this Livecode. It also works in a "wasm" (web) standalone. Kind regards Bernd From bogdanoff at me.com Sat Dec 14 15:42:46 2024 From: bogdanoff at me.com (Peter Bogdanoff) Date: Sat, 14 Dec 2024 12:42:46 -0800 Subject: [Ann] An accordion widget In-Reply-To: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> References: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> Message-ID: <C11E4D14-C856-4E30-A188-5A4EB977430B@me.com> This is great! Thank you Bernd! > On Dec 14, 2024, at 12:12 PM, Niggemann, Bernd via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi all, > > I posted an accordion widget on the forum > > <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > Accordion for LC<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > forums.livecode.com<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > [X] <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > > Those things that when clicking on a tile open a text, clicking on the next tile closes previously open tile and opens the next tile. > One sees those e.g for frequently asked questions etc on the web. > > I was trying to do this Livecode. It also works in a "wasm" (web) standalone. > > Kind regards > Bernd > _______________________________________________ > 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 marksmithhfx at gmail.com Sat Dec 14 18:02:36 2024 From: marksmithhfx at gmail.com (Mark Smith) Date: Sat, 14 Dec 2024 23:02:36 +0000 Subject: [Ann] An accordion widget In-Reply-To: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> References: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> Message-ID: <B7CCA57B-4A11-472F-AD98-9EDE7684E945@gmail.com> Beautiful! A brilliant piece of work. Thanks for sharing Bernd. Mark > On 14 Dec 2024, at 8:12 PM, Niggemann, Bernd via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi all, > > I posted an accordion widget on the forum > > <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > Accordion for LC<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > forums.livecode.com<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > [X] <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > > Those things that when clicking on a tile open a text, clicking on the next tile closes previously open tile and opens the next tile. > One sees those e.g for frequently asked questions etc on the web. > > I was trying to do this Livecode. It also works in a "wasm" (web) standalone. > > Kind regards > Bernd > _______________________________________________ > 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 Bernd.Niggemann at uni-wh.de Sun Dec 15 12:36:12 2024 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Sun, 15 Dec 2024 17:36:12 +0000 Subject: [Ann] An accordion widget Message-ID: <D5904021-FF2E-44F3-BEA0-1A7FA9A1E892@uni-wh.de> Peter, Mark Thank you for testing bnAccordion. I am glad you liked it. Kind regards Bernd From klaus at major-k.de Mon Dec 16 05:13:43 2024 From: klaus at major-k.de (Klaus major-k) Date: Mon, 16 Dec 2024 11:13:43 +0100 Subject: Problems with (ask and answer) dialogs with LC 10 on Windows 11 In-Reply-To: <fe5c43ded543a9f917b55eb3839f5fb5@livecode.com> References: <2D0BD881-D3D6-4355-ACF5-2B14B2FCF398@major-k.de> <fe5c43ded543a9f917b55eb3839f5fb5@livecode.com> Message-ID: <9744FF92-AEB2-40E7-ABD7-8D492ECBE1C9@major-k.de> Hi Mark and all, > Am 03.12.2024 um 09:06 schrieb Mark Waddingham via use-livecode <use-livecode at lists.runrev.com>: > On 2024-11-29 12:53, Klaus major-k via use-livecode wrote: >> Hi friends, >> a friend of mine has recently upgraded to Windows 11 and now has this problem: >> All (ask and answer) dialogs appear in the background and not in front as exspected. >> Clicking in any IDE window will cause this "block (?)" beep, and he must use ALT-Tab >> until the dialog finally comes to front. And then it takes several clicks until he can enter >> text into the input field (Ask dialog). >> Anyone seen this and/or is this a known problem on Windows (11) with LC 10? > Not that we are aware of :) > The code for handling ask/answer dialogs on windows hasn't changed - they are 'just' modal stacks wrapped in engine syntax so if they were generally broken on Windows 11 with LC10, I think we would have heard by now (I do windows development in Windows 11, and haven't see this issue for example). > Could ask your friend to see if he sees the same issue with 9.6.13 - that will help narrow down the possible causes. > Of course, there could be Windows 11 system settings which are affecting things - or indeed third party software. Any information your friend could provide there might help. > Warmest Regards, > > Mark. OK, "raisewindows" was not the problem, it turned out that he had activated the BACKDROP (don't ask 8-) and after switching it OFF, windows layering worked as advertized! Go figure. :-) Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass klaus at major-k.de From bobsneidar at iotecdigital.com Mon Dec 16 11:28:37 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Dec 2024 16:28:37 +0000 Subject: [Ann] An accordion widget In-Reply-To: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> References: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> Message-ID: <81FF88B7-DF16-4CF8-822D-21F5C15E31FD@iotecdigital.com> Good stuff! Bob S > On Dec 14, 2024, at 12:12 PM, Niggemann, Bernd via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi all, > > I posted an accordion widget on the forum > > <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > Accordion for LC<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > forums.livecode.com<https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > [X] <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > > Those things that when clicking on a tile open a text, clicking on the next tile closes previously open tile and opens the next tile. > One sees those e.g for frequently asked questions etc on the web. > > I was trying to do this Livecode. It also works in a "wasm" (web) standalone. > > Kind regards > Bernd From tom at makeshyft.com Mon Dec 16 22:40:54 2024 From: tom at makeshyft.com (Tom Glod) Date: Mon, 16 Dec 2024 22:40:54 -0500 Subject: [Ann] An accordion widget In-Reply-To: <B7CCA57B-4A11-472F-AD98-9EDE7684E945@gmail.com> References: <F10B1ABC-2620-434C-8E95-52B62E80EB7F@uni-wh.de> <B7CCA57B-4A11-472F-AD98-9EDE7684E945@gmail.com> Message-ID: <CAPzQJLLuKyFnf_n6_RK5tKMycxh=QjiK8gEg2aVcfAahnSY88Q@mail.gmail.com> Nice! Thank you, what license is this under? On Sat, Dec 14, 2024 at 6:03 PM Mark Smith via use-livecode < use-livecode at lists.runrev.com> wrote: > Beautiful! A brilliant piece of work. Thanks for sharing Bernd. > > Mark > > > > On 14 Dec 2024, at 8:12 PM, Niggemann, Bernd via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > Hi all, > > > > I posted an accordion widget on the forum > > > > <https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > Accordion for LC< > https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > forums.livecode.com< > https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > [X] < > https://forums.livecode.com/viewtopic.php?f=9&t=39452&p=232761#p232761> > > > > > > Those things that when clicking on a tile open a text, clicking on the > next tile closes previously open tile and opens the next tile. > > One sees those e.g for frequently asked questions etc on the web. > > > > I was trying to do this Livecode. It also works in a "wasm" (web) > standalone. > > > > Kind regards > > Bernd > > _______________________________________________ > > 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 Bernd.Niggemann at uni-wh.de Tue Dec 17 12:21:28 2024 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Tue, 17 Dec 2024 17:21:28 +0000 Subject: [Ann] An accordion widget Message-ID: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> Tom Glod via use-livecode<https://www.mail-archive.com/search?l=use-livecode at lists.runrev.com&q=from:%22Tom+Glod+via+use%5C-livecode%22> Mon, 16 Dec 2024 19:43:03 -0800<https://www.mail-archive.com/search?l=use-livecode at lists.runrev.com&q=date:20241216> Nice! Thank you, what license is this under? Hi Tom, do whatever you want license. (DWYWL) Kind regards Bernd From irog at mac.com Tue Dec 17 15:16:44 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 12:16:44 -0800 Subject: How to Return the Exponent In-Reply-To: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> Message-ID: <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> Hi folks, Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? Thanks, Roger From harrison at all-auctions.com Tue Dec 17 15:59:36 2024 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Tue, 17 Dec 2024 15:59:36 -0500 Subject: How to Return the Exponent In-Reply-To: <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> Message-ID: <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> Hi Roger, Chat GPT gave me an interesting answer to this question. You should try that, then be a little more verbose about what exactly you are trying to do here. Even Chat GPT seemed a little confused by your question. Of course that’s pretty normal for Chat GPT! I at least understand you mean the easier way to do this with LiveCode. When I asked Chat GPT that question it came back with: command findX N, Y -- Calculate log of N and Y put log(N) into logN put log(Y) into logY -- Check if logN is zero to avoid division by zero error if logN = 0 then answer "Logarithm of N is zero, cannot compute x” exit to top end if -- Calculate x using the formula x = log(Y) / log(N) put logY / logN into x -- Return or display the result answer "The value of x is: " & x end findX Explanation: — Example: where N = 1234 and Y = 10 findX 1234, 10 I hope that helps. If it doesn’t, blame Chat GPT! Rick > On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi folks, > > Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? > > > Thanks, > > Roger > _______________________________________________ > 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 irog at mac.com Tue Dec 17 21:20:04 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 18:20:04 -0800 Subject: How to Return the Exponent In-Reply-To: <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> Message-ID: <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> Hi Rick, Sorry to confuse you and ChatGPT. In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . Something like this does not work: Set Itemdelimeter to “^” put char 4 of word 2 of ((1234…)^(1/x)) …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer Thanks, Roger > On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi Roger, > > Chat GPT gave me an interesting answer to this question. > You should try that, then be a little more verbose about > what exactly you are trying to do here. Even Chat GPT > seemed a little confused by your question. Of course > that’s pretty normal for Chat GPT! > > I at least understand you mean the easier way to do this > with LiveCode. When I asked Chat GPT that question > it came back with: > > command findX N, Y > > -- Calculate log of N and Y > put log(N) into logN > put log(Y) into logY > -- Check if logN is zero to avoid division by zero error > if logN = 0 then > answer "Logarithm of N is zero, cannot compute x” > exit to top > end if > > -- Calculate x using the formula x = log(Y) / log(N) > put logY / logN into x > -- Return or display the result > answer "The value of x is: " & x > > end findX > > Explanation: > > — Example: where N = 1234 and Y = 10 findX 1234, 10 > > I hope that helps. If it doesn’t, blame Chat GPT! > > Rick > >> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Hi folks, >> >> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >> >> >> Thanks, >> >> Roger >> _______________________________________________ >> 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 irog at mac.com Tue Dec 17 21:20:04 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 18:20:04 -0800 Subject: How to Return the Exponent In-Reply-To: <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> Message-ID: <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> Hi Rick, Sorry to confuse you and ChatGPT. In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . Something like this does not work: Set Itemdelimeter to “^” put char 4 of word 2 of ((1234…)^(1/x)) …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer Thanks, Roger > On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi Roger, > > Chat GPT gave me an interesting answer to this question. > You should try that, then be a little more verbose about > what exactly you are trying to do here. Even Chat GPT > seemed a little confused by your question. Of course > that’s pretty normal for Chat GPT! > > I at least understand you mean the easier way to do this > with LiveCode. When I asked Chat GPT that question > it came back with: > > command findX N, Y > > -- Calculate log of N and Y > put log(N) into logN > put log(Y) into logY > -- Check if logN is zero to avoid division by zero error > if logN = 0 then > answer "Logarithm of N is zero, cannot compute x” > exit to top > end if > > -- Calculate x using the formula x = log(Y) / log(N) > put logY / logN into x > -- Return or display the result > answer "The value of x is: " & x > > end findX > > Explanation: > > — Example: where N = 1234 and Y = 10 findX 1234, 10 > > I hope that helps. If it doesn’t, blame Chat GPT! > > Rick > >> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Hi folks, >> >> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >> >> >> Thanks, >> >> Roger >> _______________________________________________ >> 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 scott at elementarysoftware.com Tue Dec 17 21:37:16 2024 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Tue, 17 Dec 2024 18:37:16 -0800 Subject: How to Return the Exponent In-Reply-To: <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> Message-ID: <E42D0B42-D80B-47F2-BB1F-C32001829162@elementarysoftware.com> Itemdelimeter should be —> itemdelimiter but perhaps that is a typo > On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi Rick, > > Sorry to confuse you and ChatGPT. > > In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . > > Something like this does not work: > > Set Itemdelimeter to “^” > put char 4 of word 2 of ((1234…)^(1/x)) > > …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer > > Thanks, > > Roger > >> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Hi Roger, >> >> Chat GPT gave me an interesting answer to this question. >> You should try that, then be a little more verbose about >> what exactly you are trying to do here. Even Chat GPT >> seemed a little confused by your question. Of course >> that’s pretty normal for Chat GPT! >> >> I at least understand you mean the easier way to do this >> with LiveCode. When I asked Chat GPT that question >> it came back with: >> >> command findX N, Y >> >> -- Calculate log of N and Y >> put log(N) into logN >> put log(Y) into logY >> -- Check if logN is zero to avoid division by zero error >> if logN = 0 then >> answer "Logarithm of N is zero, cannot compute x” >> exit to top >> end if >> >> -- Calculate x using the formula x = log(Y) / log(N) >> put logY / logN into x >> -- Return or display the result >> answer "The value of x is: " & x >> >> end findX >> >> Explanation: >> >> — Example: where N = 1234 and Y = 10 findX 1234, 10 >> >> I hope that helps. If it doesn’t, blame Chat GPT! >> >> Rick >> >>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>> >>> Hi folks, >>> >>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>> >>> >>> Thanks, >>> >>> Roger >>> _______________________________________________ >>> 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 scott at elementarysoftware.com Tue Dec 17 21:40:00 2024 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Tue, 17 Dec 2024 18:40:00 -0800 Subject: How to Return the Exponent In-Reply-To: <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> Message-ID: <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> does this work? set itemDel to "^" put char 4 of item 2 of "((1234…)^(1/x))" > On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi Rick, > > Sorry to confuse you and ChatGPT. > > In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . > > Something like this does not work: > > Set Itemdelimeter to “^” > put char 4 of word 2 of ((1234…)^(1/x)) > > …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer > > Thanks, > > Roger > >> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Hi Roger, >> >> Chat GPT gave me an interesting answer to this question. >> You should try that, then be a little more verbose about >> what exactly you are trying to do here. Even Chat GPT >> seemed a little confused by your question. Of course >> that’s pretty normal for Chat GPT! >> >> I at least understand you mean the easier way to do this >> with LiveCode. When I asked Chat GPT that question >> it came back with: >> >> command findX N, Y >> >> -- Calculate log of N and Y >> put log(N) into logN >> put log(Y) into logY >> -- Check if logN is zero to avoid division by zero error >> if logN = 0 then >> answer "Logarithm of N is zero, cannot compute x” >> exit to top >> end if >> >> -- Calculate x using the formula x = log(Y) / log(N) >> put logY / logN into x >> -- Return or display the result >> answer "The value of x is: " & x >> >> end findX >> >> Explanation: >> >> — Example: where N = 1234 and Y = 10 findX 1234, 10 >> >> I hope that helps. If it doesn’t, blame Chat GPT! >> >> Rick >> >>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>> >>> Hi folks, >>> >>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>> >>> >>> Thanks, >>> >>> Roger >>> _______________________________________________ >>> 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 irog at mac.com Tue Dec 17 21:54:59 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 18:54:59 -0800 Subject: How to Return the Exponent In-Reply-To: <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> Message-ID: <DC2D585E-5AE6-43AC-B4A2-08E022AB07D3@mac.com> Thanks for correcting my spelling, Scott. It does work! What’s strange, though is that the script editor indicated green for itemdelimeter . . . I think. I must be going blind! Thanks, Roger > On Dec 17, 2024, at 6:40 PM, scott--- via use-livecode <use-livecode at lists.runrev.com> wrote: > > does this work? > > set itemDel to "^" > put char 4 of item 2 of "((1234…)^(1/x))" > >> On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Hi Rick, >> >> Sorry to confuse you and ChatGPT. >> >> In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . >> >> Something like this does not work: >> >> Set Itemdelimeter to “^” >> put char 4 of word 2 of ((1234…)^(1/x)) >> >> …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer >> >> Thanks, >> >> Roger >> >>> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: >>> >>> Hi Roger, >>> >>> Chat GPT gave me an interesting answer to this question. >>> You should try that, then be a little more verbose about >>> what exactly you are trying to do here. Even Chat GPT >>> seemed a little confused by your question. Of course >>> that’s pretty normal for Chat GPT! >>> >>> I at least understand you mean the easier way to do this >>> with LiveCode. When I asked Chat GPT that question >>> it came back with: >>> >>> command findX N, Y >>> >>> -- Calculate log of N and Y >>> put log(N) into logN >>> put log(Y) into logY >>> -- Check if logN is zero to avoid division by zero error >>> if logN = 0 then >>> answer "Logarithm of N is zero, cannot compute x” >>> exit to top >>> end if >>> >>> -- Calculate x using the formula x = log(Y) / log(N) >>> put logY / logN into x >>> -- Return or display the result >>> answer "The value of x is: " & x >>> >>> end findX >>> >>> Explanation: >>> >>> — Example: where N = 1234 and Y = 10 findX 1234, 10 >>> >>> I hope that helps. If it doesn’t, blame Chat GPT! >>> >>> Rick >>> >>>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>>> >>>> Hi folks, >>>> >>>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>>> >>>> >>>> Thanks, >>>> >>>> Roger >>>> _______________________________________________ >>>> 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 irog at mac.com Tue Dec 17 22:07:24 2024 From: irog at mac.com (Roger Guay) Date: Tue, 17 Dec 2024 19:07:24 -0800 Subject: How to Return the Exponent In-Reply-To: <DC2D585E-5AE6-43AC-B4A2-08E022AB07D3@mac.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> <DC2D585E-5AE6-43AC-B4A2-08E022AB07D3@mac.com> Message-ID: <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> Oops. I take it back. It does not work. set the itemDel to “^" put char 3 of word 2 of "((1234…)^1/x)” returns blank Bummer! > On Dec 17, 2024, at 6:54 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: > > Thanks for correcting my spelling, Scott. It does work! What’s strange, though is that the script editor indicated green for itemdelimeter . . . I think. I must be going blind! > > Thanks, > > Roger > > >> On Dec 17, 2024, at 6:40 PM, scott--- via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> does this work? >> >> set itemDel to "^" >> put char 4 of item 2 of "((1234…)^(1/x))" >> >>> On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>> >>> Hi Rick, >>> >>> Sorry to confuse you and ChatGPT. >>> >>> In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . >>> >>> Something like this does not work: >>> >>> Set Itemdelimeter to “^” >>> put char 4 of word 2 of ((1234…)^(1/x)) >>> >>> …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer >>> >>> Thanks, >>> >>> Roger >>> >>>> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: >>>> >>>> Hi Roger, >>>> >>>> Chat GPT gave me an interesting answer to this question. >>>> You should try that, then be a little more verbose about >>>> what exactly you are trying to do here. Even Chat GPT >>>> seemed a little confused by your question. Of course >>>> that’s pretty normal for Chat GPT! >>>> >>>> I at least understand you mean the easier way to do this >>>> with LiveCode. When I asked Chat GPT that question >>>> it came back with: >>>> >>>> command findX N, Y >>>> >>>> -- Calculate log of N and Y >>>> put log(N) into logN >>>> put log(Y) into logY >>>> -- Check if logN is zero to avoid division by zero error >>>> if logN = 0 then >>>> answer "Logarithm of N is zero, cannot compute x” >>>> exit to top >>>> end if >>>> >>>> -- Calculate x using the formula x = log(Y) / log(N) >>>> put logY / logN into x >>>> -- Return or display the result >>>> answer "The value of x is: " & x >>>> >>>> end findX >>>> >>>> Explanation: >>>> >>>> — Example: where N = 1234 and Y = 10 findX 1234, 10 >>>> >>>> I hope that helps. If it doesn’t, blame Chat GPT! >>>> >>>> Rick >>>> >>>>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Hi folks, >>>>> >>>>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>>>> >>>>> >>>>> Thanks, >>>>> >>>>> Roger >>>>> _______________________________________________ >>>>> 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 Bernd.Niggemann at uni-wh.de Wed Dec 18 03:59:02 2024 From: Bernd.Niggemann at uni-wh.de (Niggemann, Bernd) Date: Wed, 18 Dec 2024 08:59:02 +0000 Subject: How to Return the Exponent Message-ID: <4F318EB1-5E02-4817-8AF3-44F3C80A98BD@uni-wh.de> Hi Roger, This does work: Please note the quotes, in your mail it was curly quotes that do not work apart from asking for "word" instead of "token". on mouseUp set the itemDel to "^" put token 3 of item 2 of "((1234…)^1/x)" into field 1 set the itemDelimiter to "/" put cr & token 1 of item 2 of "((1234…)^1/15)" after field 1 end mouseUp Kind regards Bernd >Roger wrote: >Oops. I take it back. It does not work. > set the itemDel to “^" > put char 3 of word 2 of "((1234…)^1/x)” >returns blank From scott at elementarysoftware.com Wed Dec 18 05:02:40 2024 From: scott at elementarysoftware.com (scott at elementarysoftware.com) Date: Wed, 18 Dec 2024 02:02:40 -0800 Subject: How to Return the Exponent In-Reply-To: <4F318EB1-5E02-4817-8AF3-44F3C80A98BD@uni-wh.de> References: <4F318EB1-5E02-4817-8AF3-44F3C80A98BD@uni-wh.de> Message-ID: <ABC4EDE9-BE94-4D32-A539-47078CE06BED@elementarysoftware.com> Roger, I don’t believe that setting the itemDel will change how WORDs break. It will allow you to find ITEM 2: ^1/x) I was getting char 3 of item 2 and that would work as long as x was a single digit (which you implied originally) but Bernd’s solution is more robust (as usual!) because it will find an x that contains 1 or more digits. That is a better solution than using “char” > On Dec 18, 2024, at 12:59 AM, Niggemann, Bernd via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi Roger, > > This does work: > > Please note the quotes, in your mail it was curly quotes that do not work apart from asking for "word" instead of "token". > > on mouseUp > set the itemDel to "^" > put token 3 of item 2 of "((1234…)^1/x)" into field 1 > > set the itemDelimiter to "/" > put cr & token 1 of item 2 of "((1234…)^1/15)" after field 1 > end mouseUp > > Kind regards > Bernd > >> Roger wrote: > >> Oops. I take it back. It does not work. >> set the itemDel to “^" >> put char 3 of word 2 of "((1234…)^1/x)” >> returns blank > _______________________________________________ > 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 irog at mac.com Wed Dec 18 11:16:13 2024 From: irog at mac.com (Roger Guay) Date: Wed, 18 Dec 2024 08:16:13 -0800 Subject: How to Return the Exponent In-Reply-To: <ABC4EDE9-BE94-4D32-A539-47078CE06BED@elementarysoftware.com> References: <4F318EB1-5E02-4817-8AF3-44F3C80A98BD@uni-wh.de> <ABC4EDE9-BE94-4D32-A539-47078CE06BED@elementarysoftware.com> Message-ID: <FB16EEE2-AF5B-47D1-BEC7-B8C8E33CACA6@mac.com> Thanks to Bernd, Scott and Rick for helping me out. I have never run into token before and learned so much from Bernd’s use of it here. I invariably learn valuable lessons from this list. . . ChatGPT, not so much. Cheers, Roger > On Dec 18, 2024, at 2:02 AM, scott--- via use-livecode <use-livecode at lists.runrev.com> wrote: > > Roger, I don’t believe that setting the itemDel will change how WORDs break. It will allow you to find ITEM 2: > > ^1/x) > > I was getting char 3 of item 2 and that would work as long as x was a single digit (which you implied originally) but Bernd’s solution is more robust (as usual!) because it will find an x that contains 1 or more digits. > > That is a better solution than using “char” > >> On Dec 18, 2024, at 12:59 AM, Niggemann, Bernd via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Hi Roger, >> >> This does work: >> >> Please note the quotes, in your mail it was curly quotes that do not work apart from asking for "word" instead of "token". >> >> on mouseUp >> set the itemDel to "^" >> put token 3 of item 2 of "((1234…)^1/x)" into field 1 >> >> set the itemDelimiter to "/" >> put cr & token 1 of item 2 of "((1234…)^1/15)" after field 1 >> end mouseUp >> >> Kind regards >> Bernd >> >>> Roger wrote: >> >>> Oops. I take it back. It does not work. >>> set the itemDel to “^" >>> put char 3 of word 2 of "((1234…)^1/x)” >>> returns blank >> _______________________________________________ >> 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 Wed Dec 18 11:16:50 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 18 Dec 2024 16:16:50 +0000 Subject: How to Return the Exponent In-Reply-To: <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> <DC2D585E-5AE6-43AC-B4A2-08E022AB07D3@mac.com> <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> Message-ID: <62A0AD32-73B1-40A5-8A3A-02E68EE613D5@iotecdigital.com> ITEM 2 not WORD 2. Bob S > On Dec 17, 2024, at 7:07 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: > > Oops. I take it back. It does not work. > > set the itemDel to “^" > put char 3 of word 2 of "((1234…)^1/x)” > > returns blank > > Bummer! > >> On Dec 17, 2024, at 6:54 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Thanks for correcting my spelling, Scott. It does work! What’s strange, though is that the script editor indicated green for itemdelimeter . . . I think. I must be going blind! >> >> Thanks, >> >> Roger >> >> >>> On Dec 17, 2024, at 6:40 PM, scott--- via use-livecode <use-livecode at lists.runrev.com> wrote: >>> >>> does this work? >>> >>> set itemDel to "^" >>> put char 4 of item 2 of "((1234…)^(1/x))" >>> >>>> On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>>> >>>> Hi Rick, >>>> >>>> Sorry to confuse you and ChatGPT. >>>> >>>> In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . >>>> >>>> Something like this does not work: >>>> >>>> Set Itemdelimeter to “^” >>>> put char 4 of word 2 of ((1234…)^(1/x)) >>>> >>>> …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer >>>> >>>> Thanks, >>>> >>>> Roger >>>> >>>>> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Hi Roger, >>>>> >>>>> Chat GPT gave me an interesting answer to this question. >>>>> You should try that, then be a little more verbose about >>>>> what exactly you are trying to do here. Even Chat GPT >>>>> seemed a little confused by your question. Of course >>>>> that’s pretty normal for Chat GPT! >>>>> >>>>> I at least understand you mean the easier way to do this >>>>> with LiveCode. When I asked Chat GPT that question >>>>> it came back with: >>>>> >>>>> command findX N, Y >>>>> >>>>> -- Calculate log of N and Y >>>>> put log(N) into logN >>>>> put log(Y) into logY >>>>> -- Check if logN is zero to avoid division by zero error >>>>> if logN = 0 then >>>>> answer "Logarithm of N is zero, cannot compute x” >>>>> exit to top >>>>> end if >>>>> >>>>> -- Calculate x using the formula x = log(Y) / log(N) >>>>> put logY / logN into x >>>>> -- Return or display the result >>>>> answer "The value of x is: " & x >>>>> >>>>> end findX >>>>> >>>>> Explanation: >>>>> >>>>> — Example: where N = 1234 and Y = 10 findX 1234, 10 >>>>> >>>>> I hope that helps. If it doesn’t, blame Chat GPT! >>>>> >>>>> Rick >>>>> >>>>>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Hi folks, >>>>>> >>>>>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>>>>> >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Roger >>>>>> _______________________________________________ >>>>>> 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 irog at mac.com Wed Dec 18 11:31:33 2024 From: irog at mac.com (Roger Guay) Date: Wed, 18 Dec 2024 08:31:33 -0800 Subject: How to Return the Exponent In-Reply-To: <62A0AD32-73B1-40A5-8A3A-02E68EE613D5@iotecdigital.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> <DC2D585E-5AE6-43AC-B4A2-08E022AB07D3@mac.com> <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> <62A0AD32-73B1-40A5-8A3A-02E68EE613D5@iotecdigital.com> Message-ID: <94330DF8-A9F1-4ACB-9A3F-5DDE9E3BACC1@mac.com> Thanks, Bob. That works. My bad Roger > On Dec 18, 2024, at 8:16 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote: > > ITEM 2 not WORD 2. > > Bob S > > >> On Dec 17, 2024, at 7:07 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Oops. I take it back. It does not work. >> >> set the itemDel to “^" >> put char 3 of word 2 of "((1234…)^1/x)” >> >> returns blank >> >> Bummer! >> >>> On Dec 17, 2024, at 6:54 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>> >>> Thanks for correcting my spelling, Scott. It does work! What’s strange, though is that the script editor indicated green for itemdelimeter . . . I think. I must be going blind! >>> >>> Thanks, >>> >>> Roger >>> >>> >>>> On Dec 17, 2024, at 6:40 PM, scott--- via use-livecode <use-livecode at lists.runrev.com> wrote: >>>> >>>> does this work? >>>> >>>> set itemDel to "^" >>>> put char 4 of item 2 of "((1234…)^(1/x))" >>>> >>>>> On Dec 17, 2024, at 6:20 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>>>> >>>>> Hi Rick, >>>>> >>>>> Sorry to confuse you and ChatGPT. >>>>> >>>>> In my original example, the user will be able to insert both the digits between the parens and x in the exponent 1/x . And, I want to be able to call back what the user inputted as x . >>>>> >>>>> Something like this does not work: >>>>> >>>>> Set Itemdelimeter to “^” >>>>> put char 4 of word 2 of ((1234…)^(1/x)) >>>>> >>>>> …. and I can’t come up with anything that does work. I will try chatGPT, but I think this list is cleverer >>>>> >>>>> Thanks, >>>>> >>>>> Roger >>>>> >>>>>> On Dec 17, 2024, at 12:59 PM, harrison--- via use-livecode <use-livecode at lists.runrev.com> wrote: >>>>>> >>>>>> Hi Roger, >>>>>> >>>>>> Chat GPT gave me an interesting answer to this question. >>>>>> You should try that, then be a little more verbose about >>>>>> what exactly you are trying to do here. Even Chat GPT >>>>>> seemed a little confused by your question. Of course >>>>>> that’s pretty normal for Chat GPT! >>>>>> >>>>>> I at least understand you mean the easier way to do this >>>>>> with LiveCode. When I asked Chat GPT that question >>>>>> it came back with: >>>>>> >>>>>> command findX N, Y >>>>>> >>>>>> -- Calculate log of N and Y >>>>>> put log(N) into logN >>>>>> put log(Y) into logY >>>>>> -- Check if logN is zero to avoid division by zero error >>>>>> if logN = 0 then >>>>>> answer "Logarithm of N is zero, cannot compute x” >>>>>> exit to top >>>>>> end if >>>>>> >>>>>> -- Calculate x using the formula x = log(Y) / log(N) >>>>>> put logY / logN into x >>>>>> -- Return or display the result >>>>>> answer "The value of x is: " & x >>>>>> >>>>>> end findX >>>>>> >>>>>> Explanation: >>>>>> >>>>>> — Example: where N = 1234 and Y = 10 findX 1234, 10 >>>>>> >>>>>> I hope that helps. If it doesn’t, blame Chat GPT! >>>>>> >>>>>> Rick >>>>>> >>>>>>> On Dec 17, 2024, at 3:16 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >>>>>>> >>>>>>> Hi folks, >>>>>>> >>>>>>> Given the equation (1234…)^(1/x) where x is any digit, what is the easiest way to return x? >>>>>>> >>>>>>> >>>>>>> Thanks, >>>>>>> >>>>>>> Roger >>>>>>> _______________________________________________ >>>>>>> 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 rolf.kocherhans at gmail.com Thu Dec 19 06:58:01 2024 From: rolf.kocherhans at gmail.com (Rolf Kocherhans) Date: Thu, 19 Dec 2024 12:58:01 +0100 Subject: [Question] Looking for "Mini Bitmap Editor" Stack Message-ID: <F64C7966-D292-49CC-AD1B-20207F82132C@gmail.com> Hi everyone, I’m on the lookout for an old stack called "Mini Bitmap Editor", created by Malte Brill. It used to be available on revOnline, but I haven’t been able to track it down. You can find a bit of context about it here: https://lists.runrev.com/pipermail/use-livecode/2005-October/068142.html If anyone happens to have a copy of this stack in their collection, I’d be so grateful if you could share it with me (off-list, if possible). Thanks so much in advance! Warm regards, Rolf From dick.kriesel at mail.com Thu Dec 19 13:41:52 2024 From: dick.kriesel at mail.com (Dick Kriesel) Date: Thu, 19 Dec 2024 10:41:52 -0800 Subject: How to Return the Exponent In-Reply-To: <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> <DC2D585E-5AE6-43AC-B4A2-08E022AB07D3@mac.com> <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> Message-ID: <B7973600-45B2-497E-8A52-A82D7C9F0C5B@mail.com> > On Dec 17, 2024, at 7:07 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: > > Oops. I take it back. It does not work. > > set the itemDel to “^" > put char 3 of word 2 of "((1234…)^1/x)” > > returns blank > > Bummer! Hi, Roger. word 2 of "((1234…)^1/x)" is empty because the word delimiter is space. Try "item 2" instead. — Dick From irog at mac.com Thu Dec 19 15:01:33 2024 From: irog at mac.com (Roger Guay) Date: Thu, 19 Dec 2024 12:01:33 -0800 Subject: How to Return the Exponent In-Reply-To: <B7973600-45B2-497E-8A52-A82D7C9F0C5B@mail.com> References: <87139FB2-1199-4EE4-A669-1E8D546915D7@uni-wh.de> <D7CCE01C-7D9D-402D-A353-8DBFDE98A069@mac.com> <7BF5DD14-9972-45CA-9C98-DF3B2B3E81E6@all-auctions.com> <EA951AD9-218C-4CFC-9DDC-FD8889220760@mac.com> <3DC401AB-FB7B-4FD9-B913-6531D2EB6D4C@elementarysoftware.com> <DC2D585E-5AE6-43AC-B4A2-08E022AB07D3@mac.com> <1E2133B6-E6DD-4895-A622-02C8775681C4@mac.com> <B7973600-45B2-497E-8A52-A82D7C9F0C5B@mail.com> Message-ID: <F8C42AAC-976D-44A1-9C99-DEABDF1B66A1@mac.com> Thank you, Dick. Item 2 does indeed work and makes total sense Roger > On Dec 19, 2024, at 10:41 AM, Dick Kriesel via use-livecode <use-livecode at lists.runrev.com> wrote: > > > >> On Dec 17, 2024, at 7:07 PM, Roger Guay via use-livecode <use-livecode at lists.runrev.com> wrote: >> >> Oops. I take it back. It does not work. >> >> set the itemDel to “^" >> put char 3 of word 2 of "((1234…)^1/x)” >> >> returns blank >> >> Bummer! > > Hi, Roger. > > word 2 of "((1234…)^1/x)" is empty because the word delimiter is space. Try "item 2" instead. > > — Dick > _______________________________________________ > 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 ali.lloyd at livecode.com Fri Dec 20 12:17:31 2024 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Fri, 20 Dec 2024 17:17:31 +0000 Subject: [OT] Puzzle Hunt Message-ID: <CAJR0Q1is-0-w4HcHnq5renOzMksgrRgDOC7GRKKYQtq+-u6pnA@mail.gmail.com> Some time ago I wrote a puzzle hunt for no particular reason other than to amuse myself - it has a couple of bits that are explicitly LiveCode related but mostly it should be solvable without LiveCode knowledge. Since I've titled it LiveCode Puzzle Hunt 2024 I thought I'd better 'release' it now - https://alilloyd.livecodehosting.com/puzzlehunt/home.html For those that don't know what a puzzle hunt is, it's a bunch of puzzles which lead to answers that are a word or phrase, and (in this case) there is a metapuzzle that 'unlocks' at some point which ties together the answers to all the other puzzles to give a final answer to the hunt. Per Wikipedia, "Puzzlehunt puzzles are usually not accompanied by direct instructions for how to solve them; figuring out the necessary approach is part of the puzzle." If solved correctly, it should always be clear that the answer you have is *the* answer to the puzzle. If anyone fancies trying to have a go, I recommend teaming up - especially if you've never done puzzlehunt-style puzzles before. Equally if you're just interested feel free to sign up and put as much effort in as you want. If there is any point at all to me having done this (which there isn't) then it's for people to have fun solving it. On that note, there will probably be a hint system at some point but in the meantime feel free to message me if you're stuck and want a hint. Also you can just see the puzzles here (https://alilloyd.livecodehosting.com/puzzlehunt/puzzindex.html) if you don't want to sign up. I hope the festive period treats you all well! From dvglasgow at gmail.com Sat Dec 21 05:43:05 2024 From: dvglasgow at gmail.com (David Glasgow) Date: Sat, 21 Dec 2024 10:43:05 +0000 Subject: Webby URL search and scrape question Message-ID: <CAJj=i80=opsU085QoT1TaT=9G4=g-D=B-47MeNfxMuQ3UXsi=g@mail.gmail.com> I am alsmost a complete novice with respect to HTML and web stuff, but suddenly find myself needing to change that. I have read around web scraping but most stuff is much more ambitious than what I want to do, focusses on python and assumes slightly (?)shady business goals - like scraping data from your competitors' websites. My goal is pure research...and of course I would love to do it in Livecode I want to work through a list of (pseudo) random URLs, harvest the page title and any keywords, and aggregate the results in a field/table. So I don't want the URLs to be found on the basis of content or top level domain at all. Metaphorically, dipping into the WWW bran tub allowing all domain suffixes, pulling out a random page, checking it has english content, check it has keywords, extract the page title, extract any keywords, save them to a table indexed by URL and then move on to the next lucky dip. The specifics I would appreciate advice on are 1/ how to sample as close to a random sample of URLs as possible. There are websites that purport to take you to a random www page, but I couldn't work out how they pull that off - or indeed how random the destination really is. They also want to do it only one by one, whereas I want to do it a few thousand times on the bounce, ideally without visiting any page in the browsing sense. 2/ how might I check the URL a) is in english and b) contains keywords 3/ is it possible to extract the title and keywords from a URL using Livecode 'remotely' or do I need to use a browser to visit? Thanks in advance for any advice or thoughts Cheers David G -- David Glasgow Consultant Forensic & Clinical Psychologist Honorary Professor, Nottingham Trent University Sexual Offences, Crime and Misconduct Research Unit Carlton Glasgow Partnership Director, Child & Family Training, York From andreas.bergendal at gmail.com Sat Dec 21 07:11:13 2024 From: andreas.bergendal at gmail.com (Andreas Bergendal) Date: Sat, 21 Dec 2024 13:11:13 +0100 Subject: Webby URL search and scrape question In-Reply-To: <CAJj=i80=opsU085QoT1TaT=9G4=g-D=B-47MeNfxMuQ3UXsi=g@mail.gmail.com> References: <CAJj=i80=opsU085QoT1TaT=9G4=g-D=B-47MeNfxMuQ3UXsi=g@mail.gmail.com> Message-ID: <59143415-AF1A-41E2-8C54-302C992E9659@gmail.com> Hi David, I don’t know how to obtain thousands of random urls in a useful way, but I can contribute some ideas on how to process a url once you have it. With LiveCode, you won’t have to actually ’visit' the web site as in seeing it rendered in a browser, but you need to load the content, which may be slow enough, depending on the website. To get started testing, I would do something like put URL tURL into tHTMLcontent put char 1 to 9999 of tHTMLcontent into tHTMLcontent to as soon as possible cut down the memory burden. Then it would be easy to parse out the <title> and <html lang=”..."> tags to find title and language - although neither are mandatory, so you’d need alternative ways if those tags are not present. Keywords are harder to determine, as they can appear (or not) in many different ways. These days, I would simply hook the stack up to an AI api and let that analyse the content, which could work for language categorisation as well. To scale up and automate the analysis of thousands of urls, using ’put URL’ would be too slow though, as it’s a blocking command. You’d have to set up parallel ’load URL’s and have the results processed dynamically as they trickle in, and error handle those that for some reason don’t load. Sounds like a fun project! :) /Andreas > 21 dec. 2024 kl. 11:43 skrev David Glasgow via use-livecode <use-livecode at lists.runrev.com>: > > I am alsmost a complete novice with respect to HTML and web stuff, but > suddenly find myself needing to change that. I have read around web > scraping but most stuff is much more ambitious than what I want to do, > focusses on python and assumes slightly (?)shady business goals - like > scraping data from your competitors' websites. My goal is pure > research...and of course I would love to do it in Livecode > > I want to work through a list of (pseudo) random URLs, harvest the page > title and any keywords, and aggregate the results in a field/table. So I > don't want the URLs to be found on the basis of content or top level domain > at all. Metaphorically, dipping into the WWW bran tub allowing all domain > suffixes, pulling out a random page, checking it has english content, > check it has keywords, extract the page title, extract any keywords, save > them to a table indexed by URL and then move on to the next lucky dip. > > The specifics I would appreciate advice on are > > 1/ how to sample as close to a random sample of URLs as possible. There > are websites that purport to take you to a random www page, but I > couldn't work out how they pull that off - or indeed how random > the destination really is. They also want to do it only one by one, > whereas I want to do it a few thousand times on the bounce, ideally without > visiting any page in the browsing sense. > > 2/ how might I check the URL a) is in english and b) contains keywords > > 3/ is it possible to extract the title and keywords from a URL using > Livecode 'remotely' or do I need to use a browser to visit? > > Thanks in advance for any advice or thoughts > > Cheers > > David G From rolf.kocherhans at gmail.com Sat Dec 21 08:34:12 2024 From: rolf.kocherhans at gmail.com (Rolf Kocherhans) Date: Sat, 21 Dec 2024 14:34:12 +0100 Subject: [Ann] macOS Style ColorPicker designed for the Web Message-ID: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> Hello everyone, I’ve created a ColorPicker designed specifically for the web, perfect for scenarios where a native ColorPicker isn’t available. You can find more information in the Forum here: https://forums.livecode.com/viewtopic.php?f=120&t=39500 If you’d like to try it out, simply click the link below. The app is hosted on GitHub Pages, so it works right out of the box. Live URL: https://rolfkocherhans.github.io/ColorPicker/ Enjoy exploring it! Cheers, Rolf From tom at makeshyft.com Sat Dec 21 16:12:05 2024 From: tom at makeshyft.com (Tom Glod) Date: Sat, 21 Dec 2024 16:12:05 -0500 Subject: [Ann] macOS Style ColorPicker designed for the Web In-Reply-To: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> References: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> Message-ID: <CAPzQJLJPoATTHSu2tmHFbq0MEDSeRf8ZrFbEfWsG5auryodqsQ@mail.gmail.com> nice job! On Sat, Dec 21, 2024 at 8:35 AM Rolf Kocherhans via use-livecode < use-livecode at lists.runrev.com> wrote: > Hello everyone, > > I’ve created a ColorPicker designed specifically for the web, perfect for > scenarios where a native ColorPicker isn’t available. > > You can find more information in the Forum here: > https://forums.livecode.com/viewtopic.php?f=120&t=39500 > > If you’d like to try it out, simply click the link below. The app is > hosted on GitHub Pages, so it works right out of the box. > > Live URL: https://rolfkocherhans.github.io/ColorPicker/ > > Enjoy exploring it! > > 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 > From harrison at all-auctions.com Sun Dec 22 00:14:58 2024 From: harrison at all-auctions.com (harrison at all-auctions.com) Date: Sun, 22 Dec 2024 00:14:58 -0500 Subject: [Ann] macOS Style ColorPicker designed for the Web In-Reply-To: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> References: <FB8DA132-A4E0-4703-BAC6-6904A9EF6570@gmail.com> Message-ID: <26378745-19F8-4742-89B9-94FED0A724CC@all-auctions.com> Hi Rolf, This is nice, but I was hoping it would show the hexadecimal safe web color values too. Is there a way you could implement that? Rick > On Dec 21, 2024, at 8:34 AM, Rolf Kocherhans via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hello everyone, > > I’ve created a ColorPicker designed specifically for the web, perfect for scenarios where a native ColorPicker isn’t available. > > You can find more information in the Forum here: https://forums.livecode.com/viewtopic.php?f=120&t=39500 > > If you’d like to try it out, simply click the link below. The app is hosted on GitHub Pages, so it works right out of the box. > > Live URL: https://rolfkocherhans.github.io/ColorPicker/ > > Enjoy exploring it! > > 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 From curry at pair.com Wed Dec 25 17:23:14 2024 From: curry at pair.com (Curry Kenworthy) Date: Wed, 25 Dec 2024 17:23:14 -0500 Subject: Merry Christmas and Happy Holidays Message-ID: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> More properly - Merry 'Christ's Mass' and Happy Holy-days! More news after recuperating a bit.... Best wishes, Curry Kenworthy Radically Innovative Christian LiveCode Development "PASSION for Elegant, Efficient Code!" https://livecodeconsulting.com/ From tom at makeshyft.com Thu Dec 26 01:55:38 2024 From: tom at makeshyft.com (Tom Glod) Date: Thu, 26 Dec 2024 01:55:38 -0500 Subject: Merry Christmas and Happy Holidays In-Reply-To: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> Message-ID: <CAPzQJLLMCVJeu-gfKdOtH_8ZMfvSTnaFYXcQbdcf4H95XNNpVQ@mail.gmail.com> Same to you and yours Curry. Merry Christmas everyone! On Wed, Dec 25, 2024 at 5:24 PM Curry Kenworthy via use-livecode < use-livecode at lists.runrev.com> wrote: > More properly - Merry 'Christ's Mass' and Happy Holy-days! > > More news after recuperating a bit.... > > Best wishes, > > Curry Kenworthy > > Radically Innovative Christian LiveCode Development > "PASSION for Elegant, Efficient Code!" > https://livecodeconsulting.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 jbv at souslelogo.com Mon Dec 30 11:13:04 2024 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 30 Dec 2024 11:13:04 -0500 Subject: Problem with the shell command with a local server In-Reply-To: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> Message-ID: <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> Hi list, Long story short : I am using LM Studio as a local server to send requests to an LLM model. I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. The request looks like that : curl http://127.0.0.1:1234/v1/embeddings \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' The response is a json file with a list of vectors. When I execute the command in Terminal, everything works fine. But when I use "put shell(tcurl) into myjson" in a LC script, I get the same result, except for a line that is inserted in the middle of the json and looks like that : ... 0.01324639841914177, 0.085932932794094 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- --:--:-- 913k 09, -0.020998964086174965, ... instead of ... 0.01324639841914177, 0.08593293279409409, -0.020998964086174965, ... Because of that I can't parse the json and I get an error with JsonImport. What am I doing wrong ? How can I fix it ? Thank you in advance jbv From jbv at souslelogo.com Mon Dec 30 11:19:01 2024 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 30 Dec 2024 11:19:01 -0500 Subject: Problem with the shell command on a local server Message-ID: <36e79996b8a97d25cce30227072943a9@souslelogo.com> Hi list, Long story short : I am using LM Studio as a local server to send requests to an LLM model. I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. The request looks like that : curl http://127.0.0.1:1234/v1/embeddings \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' The response is a json file with a list of vectors. When I execute the command in Terminal, everything works fine. But when I use "put shell(tcurl) into myjson" in a LC script, I get the same result, except for a line that is inserted in the middle of the json and looks like that : ... 0.01324639841914177, 0.085932932794094 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- --:--:-- 913k 09, -0.020998964086174965, ... instead of ... 0.01324639841914177, 0.08593293279409409, -0.020998964086174965, ... Because of that I can't parse the json and I get an error with JsonImport. What am I doing wrong ? How can I fix it ? Thank you in advance jbv From bobsneidar at iotecdigital.com Mon Dec 30 12:09:43 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Dec 2024 17:09:43 +0000 Subject: Problem with the shell command with a local server In-Reply-To: <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> Message-ID: <5137292C-C833-483B-9089-71597B6116D6@iotecdigital.com> It looks like a continuation of the second line actually. Bob S > On Dec 30, 2024, at 8:13 AM, jbv via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi list, > > Long story short : I am using LM Studio as a local server to send requests to an LLM model. > I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. > > The request looks like that : > curl http://127.0.0.1:1234/v1/embeddings \ > -H "Content-Type: application/json" \ > -d '{ > "model": "text-embedding-granite-embedding-278m-multilingual", > "input": "some text" > }' > > The response is a json file with a list of vectors. > When I execute the command in Terminal, everything works fine. > But when I use "put shell(tcurl) into myjson" in a LC script, > I get the same result, except for a line that is inserted in the > middle of the json and looks like that : > ... > 0.01324639841914177, > 0.085932932794094 > 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- --:--:-- 913k > 09, > -0.020998964086174965, > ... > > instead of > ... > 0.01324639841914177, > 0.08593293279409409, > -0.020998964086174965, > ... > > Because of that I can't parse the json and I get an error with JsonImport. > > What am I doing wrong ? > How can I fix it ? > > Thank you in advance > jbv > > _______________________________________________ > 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 Dec 30 12:11:25 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Dec 2024 17:11:25 +0000 Subject: Problem with the shell command with a local server In-Reply-To: <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> Message-ID: <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> If you are parsing in LC, you can get the first word of each line. Now if the text returned actually contains a line break in the second line that is producing the erroneous third line, you may have to test the range of each line. Bob S > On Dec 30, 2024, at 8:13 AM, jbv via use-livecode <use-livecode at lists.runrev.com> wrote: > > Hi list, > > Long story short : I am using LM Studio as a local server to send requests to an LLM model. > I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. > > The request looks like that : > curl http://127.0.0.1:1234/v1/embeddings \ > -H "Content-Type: application/json" \ > -d '{ > "model": "text-embedding-granite-embedding-278m-multilingual", > "input": "some text" > }' > > The response is a json file with a list of vectors. > When I execute the command in Terminal, everything works fine. > But when I use "put shell(tcurl) into myjson" in a LC script, > I get the same result, except for a line that is inserted in the > middle of the json and looks like that : > ... > 0.01324639841914177, > 0.085932932794094 > 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- --:--:-- 913k > 09, > -0.020998964086174965, > ... > > instead of > ... > 0.01324639841914177, > 0.08593293279409409, > -0.020998964086174965, > ... > > Because of that I can't parse the json and I get an error with JsonImport. > > What am I doing wrong ? > How can I fix it ? > > Thank you in advance > jbv > > _______________________________________________ > 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 jbv at souslelogo.com Mon Dec 30 12:40:26 2024 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 30 Dec 2024 12:40:26 -0500 Subject: Problem with the shell command with a local server In-Reply-To: <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> Message-ID: <4c379911f95d428f841677debefea198@souslelogo.com> Actually it's not so simple, as the line is randomly corrupted and almost doesn't look twice the same. I already tried to clean up the json before using JsonImport, but it's almost impossible to use a general rule. I would prefer to find a way to prevent this to happen, since it doesn't happen in Terminal. So it looks like something specific to the shell command in LC. For the record, I have tried with different models in LM Studio and the problem is the same. However, I am using the same technique with the OpenAI API and I don't have the problem. So I suspect there is something specific happening when using the shell command with a local server. Le 2024-12-30 12:11, Bob Sneidar via use-livecode a crit : > If you are parsing in LC, you can get the first word of each line. Now > if the text returned actually contains a line break in the second line > that is producing the erroneous third line, you may have to test the > range of each line. > > Bob S > >> On Dec 30, 2024, at 8:13 AM, jbv via use-livecode >> <use-livecode at lists.runrev.com> wrote: >> >> Hi list, >> >> Long story short : I am using LM Studio as a local server to send >> requests to an LLM model. >> I use the shell command in LC 9.6 with curl on MacOS Sequoia 15.1.1. >> >> The request looks like that : >> curl http://127.0.0.1:1234/v1/embeddings \ >> -H "Content-Type: application/json" \ >> -d '{ >> "model": "text-embedding-granite-embedding-278m-multilingual", >> "input": "some text" >> }' >> >> The response is a json file with a list of vectors. >> When I execute the command in Terminal, everything works fine. >> But when I use "put shell(tcurl) into myjson" in a LC script, >> I get the same result, except for a line that is inserted in the >> middle of the json and looks like that : >> ... >> 0.01324639841914177, >> 0.085932932794094 >> 100 23374 100 23264 100 110 873k 4227 --:--:-- --:--:-- >> --:--:-- 913k >> 09, >> -0.020998964086174965, >> ... >> >> instead of >> ... >> 0.01324639841914177, >> 0.08593293279409409, >> -0.020998964086174965, >> ... >> >> Because of that I can't parse the json and I get an error with >> JsonImport. >> >> What am I doing wrong ? >> How can I fix it ? >> >> Thank you in advance >> jbv >> >> _______________________________________________ >> 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 Dec 30 13:10:51 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 30 Dec 2024 18:10:51 +0000 Subject: Problem with the shell command with a local server In-Reply-To: <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> Message-ID: <9D646428-D251-4B06-A8C0-25CB8EE32BD1@iotecdigital.com> Have you tried getting rid of the line breaks between the curly brackets? Bob S On Dec 30, 2024, at 9:11 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote: -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' From jbv at souslelogo.com Mon Dec 30 13:41:33 2024 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Mon, 30 Dec 2024 13:41:33 -0500 Subject: Problem with the shell command with a local server In-Reply-To: <fea096fc-4261-4d1b-b0bc-3aa18e4be3b8@ahsoftware.net> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> <fea096fc-4261-4d1b-b0bc-3aa18e4be3b8@ahsoftware.net> Message-ID: <2c2bb11bfbaf5ebea8ed52dbb99bc885@souslelogo.com> Thank you Mark, the following modification did the trick : curl http://127.0.0.1:1234/v1/embeddings \ -s \ -H "Content-Type: application/json" \ -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' Le 2024-12-30 13:06, Mark Wieder a crit : > On 12/30/24 08:13, jbv via use-livecode wrote: > >> Because of that I can't parse the json and I get an error with >> JsonImport. >> >> What am I doing wrong ? >> How can I fix it ? > > A couple of curl commandline options to try: > > 1. use the --silent option with curl > 2. send the json output to a file and parse that: > curl <other options here> -o filename From bobsneidar at iotecdigital.com Tue Dec 31 16:45:37 2024 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 31 Dec 2024 21:45:37 +0000 Subject: Problem with the shell command with a local server In-Reply-To: <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> References: <694a35f5-f1fc-4256-bcb7-9b9f38a2b239@pair.com> <ef1ccbaf123efe1b3aeca7dc7d598920@souslelogo.com> <4975865B-E423-456E-B7F8-CD5ECAD82A3A@iotecdigital.com> Message-ID: <45FA705C-1A72-4C27-89F4-71C7BB2E7D40@iotecdigital.com> Have you tried getting rid of the line breaks between the curly brackets? Bob S On Dec 30, 2024, at 9:11 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote: -d '{ "model": "text-embedding-granite-embedding-278m-multilingual", "input": "some text" }' From paul at livecode.org Tue Dec 31 18:31:42 2024 From: paul at livecode.org (Paul - Livecode) Date: Tue, 31 Dec 2024 15:31:42 -0800 Subject: Help with Linux app built with LC on Mac Message-ID: <BB79235D-9D97-4071-A619-9757F6C722D4@livecode.org> Hi everyone, I’ve been a long-time list member, but never really felt the need to ask for advice until now. I’ve just built a small app using LC 9.6.13 and built standalones for Mac, Windows, and Linux, which I may look at distributing once all testing is done. I’m using a MacBook Pro M2 for development, and I have Parallels for testing. The Mac and Windows versions appear to be working fine, but when I try to launch the Linux standalone in Ubuntu via Parallels, it won’t even launch. When I double-click the app icon, there is no response. The same is true if I right-click and choose “Run”. I checked the app and folder permissions, and they appear to be OK. The app is on the Linux partition, and I have tried both the standard and x64 versions. I’ve never used Linux before, apart from on RPi, so I’m not sure if there is something that I am missing or doing wrong. Any ideas or advice would be gratefully received. Thank you, and wishing you all a wonderful New Year. Paul