Re: Rectangles on Windows?

2023-08-10 Thread Bob Sneidar via use-livecode
Sorry Dar, I do not use rectangles for anything. 

Bob S


> On Aug 10, 2023, at 3:30 PM, Dar Scott via use-livecode 
>  wrote:
> 
> Anybody else seeing missing rectangles on Windows?  — Dar
> 
>> On Aug 8, 2023, at 12:14 PM, Dar Scott via use-livecode 
>>  wrote:
>> 
>> 
>> I have some rectangles that work just fine in development on my Mac.
>> 
>> However, there are problems in my Windows standalone. 
>> 
>> Not Showing Up
>> Two sets of rectangles are not visible in Windows. One set is opaque and one 
>> set is not. The opaque set is made visible or not invisible with a wipe 
>> effect. Both sets have a non-zero border thickness
>> 
>> Showing Up
>> Other rectangles have opaque true, backgroundColor red, and border thickness 
>> 0. They are visible on Windows. They are also within a group. These are made 
>> visible and not visible with a same wipe effect. 

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


Re: Rectangles on Windows?

2023-08-10 Thread Dar Scott via use-livecode
Anybody else seeing missing rectangles on Windows?  — Dar

> On Aug 8, 2023, at 12:14 PM, Dar Scott via use-livecode 
>  wrote:
> 
> 
> I have some rectangles that work just fine in development on my Mac.
> 
> However, there are problems in my Windows standalone. 
> 
> Not Showing Up
> Two sets of rectangles are not visible in Windows. One set is opaque and one 
> set is not. The opaque set is made visible or not invisible with a wipe 
> effect. Both sets have a non-zero border thickness
> 
> Showing Up
> Other rectangles have opaque true, backgroundColor red, and border thickness 
> 0. They are visible on Windows. They are also within a group. These are made 
> visible and not visible with a same wipe effect. 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Android black screen again...

2023-08-10 Thread J. Landman Gay via use-livecode
I looked up the Samsung Tab A and it says it runs Android 9, upgradable to 
11. There are multiple RAM options. Is this the one you have? 



I'm just guessing, but memory may be too low to allow the browser widget 
to work, since it does work after a reboot and the problem only happens 
occasionally. But Android 5 is almost 10 years old and I'd be surprised if 
that is what your tablet is running. Have you checked for an update? You 
have much more control of memory usage with a newer OS.


In any case, you can keep memory usage lower if you delete or disable all 
apps and processes you don't need. You can do that in Settings/Apps. 
Samsung installs a lot of bloatware and if you don't use those things, turn 
them off or remove them. You can't always uninstall these but you can 
disable some of them. Also uninstall any extra apps you don't use. I have a 
newer Samsung tablet and I disabled or deleted almost half the software it 
shipped with. Many of these run in the background and use memory. Launcher 
widgets also run constantly so remove the ones you don't need from your 
launch screens.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On August 10, 2023 5:03:24 AM Klaus major-k via use-livecode 
 wrote:



Hi friends,

maybe you remember my problem, that my app
turns into a black screen occacionally.

This has happened again about four or five times since
I reported it here.

This never happens at home, only when I am at a band
rehearsal, but never at a gig (fingers crossed).

Restarting the dveice definitively cures this, thank you Panos,
but sometimes, especially at a gig, I do not have the time to
do so. :-/

So any further hints highly appreciated!

macOS 12.6.8, LC 9.6.9, android 5.1 on a SAMSUNG TAB A tablet.
I'm mainly using the PDF widget if that matters...


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


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

http://lists.runrev.com/mailman/listinfo/use-livecode





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


Re: Sorting Arrays

2023-08-10 Thread Bob Sneidar via use-livecode
I see you are sorting the keys of the array. I’ll give your method a try.

Bob S


On Aug 10, 2023, at 12:29 PM, Alex Tweedly via use-livecode 
 wrote:

And - overall, an alternate suggestion. I think your way is a bot complex.
Combining my "traditional" way as above, and your example, I came up with a  
simpler way to do the same thing:

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


Re: Sorting Arrays

2023-08-10 Thread Bob Sneidar via use-livecode
Thanks Alex, not sure how I missed that. I was only testing for a specific use 
case and only tried numeric descending. 

Bob S


> On Aug 10, 2023, at 12:29 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> 
> On 09/08/2023 00:15, Bob Sneidar via use-livecode wrote:
>> Has anyone come across a need to sort a numbered array by the values of the 
>> different keys? Here you go.
> 
> Absolutely I have needed that quite often now. I tend to use sequences 
> (numbered arrays) often - maybe too often.
> 
> Up until now I've just done the sorting in the "traditional" way (i.e. using 
> multiple "sort" commands), like
> 
>>put seqAsLines(sQ2) into tKeys
>>sort lines of tKeys numeric by sQ2[each]["anumber"]
>>sort lines of tKeys by sQ2[each]["thecategory"]
>>rebuildSeq sQ2, tKeys
> (the functions seqAsLines and rebuildSeq are included in the code snippet 
> below).
> 
> But I really like your idea of having a handler that can be given multiple 
> sort keys, and just does it all, so I took a detailed look.
> 
> First - a couple of little bugs for you.
> 
>> Keep in mind that there is no error checking so I have no idea what would 
>> happen if you provided a sort key that didn’t exist in the array.
>> 
>> on sortNumberedArray @pArrayDataA, pSortKeys
>>  switch
>> case tKeyWord is among the items of 
>> "asc,ascending,desc,descending"
>>put tKeyWord into tSortKeysA [i] ["sortorder"]
>>break
>> case tKeyWord is "International,Numeric,datetime,text,binary"
> 'is' should be 'is among the items of'
>>put tKeyWord into tSortKeysA [i] ["sorttype"]
>>break
>> default
>>put word 1 to x of tSortIndex into tSortKeysA [i] 
>> ["sortvalue"]
>>  end switch
>>   end repeat
>>end repeat
>>
> 
> Secondly, not sure if it's a bug or simply a limitation - the code fails if 
> one of the array keys to use for sorting is one of "asc,desc,numeric,...".
> 
> 
> And - overall, an alternate suggestion. I think your way is a bot complex.
> Combining my "traditional" way as above, and your example, I came up with a  
> simpler way to do the same thing:
> 
>> on simpleSortNumberedArray @pArrayDataA, pSortKeys
>>local tKeys, tSeq, tOneSortKey, tSortCommand
>>put seqAsLines(pArrayDataA) into tKeys
>>repeat with I = the number of items in pSortKeys down to 1
>>   put item I of pSortKeys into tOneSortKey
>>   put "sort lines of tKeys" && word 2 to -1 of tOneSortKey && \
>> "by pArrayData[each][" && word 1 of tOneSortKey && "]" into 
>> tSortCommand
>>   do tSortCommand
>>end repeat
>>rebuildSeq pArrayDataA, tKeys
>> end simpleSortNumberedArray
>> 
>> function seqAsLines pSeq
>>local tRes
>>repeat with i = 1 to the number of elements in pSeq
>>   put i & CR after tRes
>>end repeat
>>return tRes
>> end seqAsLines
>> 
>> command rebuildSeq @pSeq, pList
>>local tResQ, tCount
>>repeat for each line L in pList
>>   add 1 to tCount
>>   put pSeq[L] into tResQ[tCount]
>>end repeat
>>put tResQ into pSeq
>> end rebuildSeq
> This is simpler and, I think, easier to understand. And it's certainly much 
> faster: takes 89 msec for my test case rather than 3416 msecs.
> 
> Alex.
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: xavvi - temper your expectations

2023-08-10 Thread matthias rebbe via use-livecode
I thought Xavvi will make use of AI, but the use is not mandatory. So even 
without AI, XAVVI would be an online development tool which can deploy web apps 
and which also could import and export Livecode stacks.



Am 10.08.2023 um 21:22 schrieb Mike Kerner via use-livecode 
:
> 
> i'm using chatgpt and bard, every day, because i can, and because
> sometimes they give me more comprehensive things to think about.
> but, they are wrong. a lot.
> zdnet just published a piece, today, documenting the same thing: wrong
>> 50% of the time.
> so, temper your expectations for xavvi in the medium term:
> https://www.zdnet.com/article/chatgpt-answers-more-than-half-of-software-engineering-questions-incorrectly/
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: xavvi - temper your expectations

2023-08-10 Thread Alex Tweedly via use-livecode
I have high expectations of xavvi - mostly because I want the cloud IDE, 
cloud db, new widgets, ...


Oh - and I might just play with the AI, but I have no short-term 
expectations for that part of it.


:-)

Alex.

On 10/08/2023 20:22, Mike Kerner via use-livecode wrote:

i'm using chatgpt and bard, every day, because i can, and because
sometimes they give me more comprehensive things to think about.
but, they are wrong. a lot.
zdnet just published a piece, today, documenting the same thing: wrong

50% of the time.

so, temper your expectations for xavvi in the medium term:
https://www.zdnet.com/article/chatgpt-answers-more-than-half-of-software-engineering-questions-incorrectly/



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


Re: Sorting Arrays

2023-08-10 Thread Alex Tweedly via use-livecode


On 09/08/2023 00:15, Bob Sneidar via use-livecode wrote:

Has anyone come across a need to sort a numbered array by the values of the 
different keys? Here you go.


Absolutely I have needed that quite often now. I tend to use sequences 
(numbered arrays) often - maybe too often.


Up until now I've just done the sorting in the "traditional" way (i.e. 
using multiple "sort" commands), like



   put seqAsLines(sQ2) into tKeys
   sort lines of tKeys numeric by sQ2[each]["anumber"]
   sort lines of tKeys by sQ2[each]["thecategory"]
   rebuildSeq sQ2, tKeys
(the functions seqAsLines and rebuildSeq are included in the code 
snippet below).


But I really like your idea of having a handler that can be given 
multiple sort keys, and just does it all, so I took a detailed look.


First - a couple of little bugs for you.


Keep in mind that there is no error checking so I have no idea what would 
happen if you provided a sort key that didn’t exist in the array.

on sortNumberedArray @pArrayDataA, pSortKeys
  switch
 case tKeyWord is among the items of "asc,ascending,desc,descending"
put tKeyWord into tSortKeysA [i] ["sortorder"]
break
 case tKeyWord is "International,Numeric,datetime,text,binary"

'is' should be 'is among the items of'

put tKeyWord into tSortKeysA [i] ["sorttype"]
break
 default
put word 1 to x of tSortIndex into tSortKeysA [i] ["sortvalue"]
  end switch
   end repeat
end repeat



Secondly, not sure if it's a bug or simply a limitation - the code fails 
if one of the array keys to use for sorting is one of 
"asc,desc,numeric,...".



And - overall, an alternate suggestion. I think your way is a bot complex.
Combining my "traditional" way as above, and your example, I came up 
with a  simpler way to do the same thing:



on simpleSortNumberedArray @pArrayDataA, pSortKeys
   local tKeys, tSeq, tOneSortKey, tSortCommand
   put seqAsLines(pArrayDataA) into tKeys
   repeat with I = the number of items in pSortKeys down to 1
  put item I of pSortKeys into tOneSortKey
  put "sort lines of tKeys" && word 2 to -1 of tOneSortKey && \
    "by pArrayData[each][" && word 1 of tOneSortKey && "]" 
into tSortCommand

  do tSortCommand
   end repeat
   rebuildSeq pArrayDataA, tKeys
end simpleSortNumberedArray

function seqAsLines pSeq
   local tRes
   repeat with i = 1 to the number of elements in pSeq
  put i & CR after tRes
   end repeat
   return tRes
end seqAsLines

command rebuildSeq @pSeq, pList
   local tResQ, tCount
   repeat for each line L in pList
  add 1 to tCount
  put pSeq[L] into tResQ[tCount]
   end repeat
   put tResQ into pSeq
end rebuildSeq
This is simpler and, I think, easier to understand. And it's certainly 
much faster: takes 89 msec for my test case rather than 3416 msecs.


Alex.



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


xavvi - temper your expectations

2023-08-10 Thread Mike Kerner via use-livecode
i'm using chatgpt and bard, every day, because i can, and because
sometimes they give me more comprehensive things to think about.
but, they are wrong. a lot.
zdnet just published a piece, today, documenting the same thing: wrong
> 50% of the time.
so, temper your expectations for xavvi in the medium term:
https://www.zdnet.com/article/chatgpt-answers-more-than-half-of-software-engineering-questions-incorrectly/

-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."

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


Browzer widget zoom/scale?

2023-08-10 Thread Ben Rubinstein via use-livecode

Is there a way to set the 'zoom level' for the browser widget?

TIA,

Ben

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


Android black screen again...

2023-08-10 Thread Klaus major-k via use-livecode
Hi friends,

maybe you remember my problem, that my app
turns into a black screen occacionally.

This has happened again about four or five times since 
I reported it here.

This never happens at home, only when I am at a band 
rehearsal, but never at a gig (fingers crossed).

Restarting the dveice definitively cures this, thank you Panos,
but sometimes, especially at a gig, I do not have the time to 
do so. :-/

So any further hints highly appreciated!

macOS 12.6.8, LC 9.6.9, android 5.1 on a SAMSUNG TAB A tablet.
I'm mainly using the PDF widget if that matters...


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


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