Re: LC Roadmap

2021-02-17 Thread Bob Sneidar via use-livecode
I found your approach to publish and subscribe incredibly useful. I have an app 
that has data grids in multiple sub stacks that each can be open or no. Many of 
these data grids display data from the same database table but in different sub 
stacks.

For example, I have a devices and an accessories table. One sub stack is for 
maintaining the devices at a particular site, another is for maintaining the 
accessories attached to a given device. There is a devices data grid on both of 
these.

The quandary is how to reliably tell all open sub stacks with data grids 
containing identical table data to update when any of the others are updated. 
Your Publish and Subscribe method is tailor made for such a scenario. I am in 
the process of converting all my data grid code over to using that.

Bob S


On Feb 17, 2021, at 4:16 AM, Andre Garzia via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:


On 16 Feb 2021, at 15:26, Alex Tweedly via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

A sample 'skeleton' app - i.e. complete but not fleshed-out. Initially it would 
be for a desktop app (the first sequel will cover mobile). It would implement 
"good practices" for many of the common features, with enough code being there 
to do something - but the focus should be on the architecture rather than on 
doing anything useful.

I released:

https://andregarzia.com/books/livecode-advanced-application-architecture.html

To cover as much of this topic as I felt comfortable doing. The main issue is 
that different experienced developers have different opinions about what is the 
best way to organise an app. LiveCode is very versatile and you can do a really 
great app organisation that is completely different than another great app. We 
don’t have a mothership preferred way of doing that, and I didn’t want to force 
my own bias into people.


___
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: Livecode IDE question

2021-02-16 Thread Bob Sneidar via use-livecode
Belay my last post on this thread. I am always plagued with this problem where 
emails on a simple thread come into my inbox as multiple threads, so I don’t 
always see the original post right away. 

Bob S


> On Feb 12, 2021, at 1:21 PM, Roger Guay via use-livecode 
>  wrote:
> 
> I’m having a similar problem on my new MBP, and haven’t figured out  the 
> cause yet. Just type this in the message box for an temporary fix:
> 
>   set the top of stack revMenubar to 25 - - - or so
> 
> 
> Roger
> 
> 
>> On Feb 12, 2021, at 10:58 AM, David Squance via use-livecode 
>>  wrote:
>> 
>> I’m a hobbyist, and infrequent dabbler, and I hope my question isn’t 
>> inappropriate to post here. I find the forum too cumbersome and daunting. 
>> With recent upgrades, the toolbar at the top of the screen in the IDE is 
>> fixed about an inch below the top. Is there anyway to move it up? I use a 
>> MacBook Air and the screen is small enough.
>> 
>> Thanks.
>> Dave
>> 
>> LC9.6.2 RC2
>> OS 11.2.1

___
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: team-xapi-in-LiveCode Update

2021-02-16 Thread Bob Sneidar via use-livecode
I have a custom development menu I remove when creating standalone. In it I 
have a Center Stack which simply sets the loc of the top stack to the 
screenLoc. 

Bob S


> On Feb 13, 2021, at 10:00 AM, Brian K. Duck via use-livecode 
>  wrote:
> 
> Erik,
> 
> The YouTube url has been validated and is included because the direct link to 
> our GitHub team link requires:
> 1) a logged in user
> 2) the user must be a member of the ‘xAPI Cohort Spring 2021’ group
> 
> GitHub gives a 404 error if either of these conditions are not met, there is 
> no feedback provided other than this error number.
> 
> Anyone wishing to see the code is welcome to join the xAPI Learning Cohort 
> and request access to the Cohort GitHub area.
> 
> The YouTube url does not have this limitation.
> 
> As I am cross posting to: use-LiveCode, gutHub discussions, slack channels, 
> and direct email to our team; I’m working to keep the urls posted valid, but 
> I am learning as I go.
> 
> Sent from my iPhone,
> Brian Duck
> 
>> On Feb 13, 2021, at 12:00 PM, use-livecode-requ...@lists.runrev.com wrote:
>> 
>> The URL is not correct.
>> 
>> Best regards,
>> Erik
> 
> ___
> 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: Another question about multiple stack projects

2021-02-16 Thread Bob Sneidar via use-livecode
Listing them in the stack files gives LC the ability to find them when you 
refer to them by name only (as opposed to the full path.) In the case of script 
only Libraries, you can start using them at any time before you make a call to 
them. For instance, I have a database setup card that configures the database 
connection when the card is opened. I start using my database library on 
openCard. 

Bob S


> On Feb 15, 2021, at 9:40 PM, William Prothero via use-livecode 
>  wrote:
> 
> Folks:
> I have a question about multiple stack projects. My project starts with a 
> splash stack. In the standalone preferences of this stack, I list all stacks 
> the project uses, including script only stacks I use as libraries. Should I 
> do a “Start using” on all of these stacks at this point? But I could have 
> just done a “start using” for the required stacks for each of the other 
> component stacks when they were first accessed, and got the same result?
> 
> I guess my question is: how does the build process make use of the list of 
> stacks in the splash stack? Are they all built into the project in some way 
> that doesn’t happen otherwise? I still seem to be required to “Start using” 
> each of the library stacks anyway.
> 
> Best,
> Bill
> 
> William Prothero
> waproth...@gmail.com

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


Re: LC Roadmap

2021-02-16 Thread Bob Sneidar via use-livecode
BIG +

If not for Livecode, I would not be developing at all. I am just grateful that 
there IS a Livecode. I am not a professional developer though, so I understand 
that some have issues with certain things.

Bob S


On Feb 15, 2021, at 4:55 AM, Andre Garzia via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

LC is a small company regardless of how much we love them. They can’t provide 
solution to all our needs. It is not because they don’t want to, they have 
limited resources. We can’t treat LC as we treat Apple or Microsoft.

___
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: test

2021-02-10 Thread Bob Sneidar via use-livecode
How would you know if someone replied? :-)

Bob S


On Feb 10, 2021, at 11:09 AM, Ludovic THEBAULT via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hello,

I haven't received any messages for a week now.

Strange, no ?

Ludovic

___
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: Close Stack Cleanup

2021-02-05 Thread Bob Sneidar via use-livecode
Nice try but sadly it does not work. The message does not even get sent to the 
stack script.

Bob S


On Feb 4, 2021, at 5:22 PM, Mark Wieder via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On 2/4/21 4:19 PM, Bob Sneidar via use-livecode wrote:
NVM I found this bug has already been submitted… IN 2008! LOL! 
https://quality.livecode.com/show_bug.cgi?id=4617 Hey Kevin! 

Looking at that, here's a (completely untested) suggestion:

The revIDEHandleCloseStackRequest handler is in the IDE backscript, so it's 
ready to be overridden. If you don't override it then it executes a 
revSaveCheck before moving on. If you override this command then you might get 
what you want.

...at the risk of losing data...

so maybe in your stack script you have:
on revIDEHandleCloseStackRequest
 return "pass"
end revIDEHandleCloseStackRequest

That said, I agree with others that this isn't a Good Idea, and a cleaning 
routine in preOpenStack would do the trick nicely.

--
Mark Wieder
ahsoftw...@gmail.com<mailto:ahsoftw...@gmail.com>

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


Re: Close Stack Cleanup

2021-02-05 Thread Bob Sneidar via use-livecode
Not sure. If the stack is “dirty” I get the save dialog BEFORE 
closeStackRequest, which is what I am trying to avoid.

To others, I know this is not a good idea in general, but since there have been 
at least 2 versions that were unstable that crash to desktops were not 
uncommon, and after losing so much data, I save frequently, and auto save 
whenever I close a sub stack.

Bob S


On Feb 4, 2021, at 5:36 PM, J. Landman Gay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I did a test before answering and the message was sent to the card of my 
otherwise blank stack, after dismissing the IDE dialog. That makes me think 
something is going on with your particular stack. What happens if you try it 
with a plain new stack?

--
Jacqueline Landman Gay | 
jac...@hyperactivesw.com

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


Re: Close Stack Cleanup

2021-02-05 Thread Bob Sneidar via use-livecode
Thanks all for your suggestions. I will try various methods. 

As to the propriety of certain methods, I suppose in answer to why do it that 
way, to quote another thread, “Because we can!” :-)

Bob S

___
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: Close Stack Cleanup

2021-02-04 Thread Bob Sneidar via use-livecode
NVM I found this bug has already been submitted… IN 2008! LOL! 
https://quality.livecode.com/show_bug.cgi?id=4617 Hey Kevin! 

Bob S


On Feb 4, 2021, at 4:05 PM, Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Thanks Ralph. Actually what I am looking for is a message that gets sent when 
the close button of a window gets clicked. The Message Watcher seems to 
indicate not (or rather fails to indicate). I think this is a bug, or at least 
an oversight. This means that anyone can close a stack, and closeStackRequest 
will not get triggered. This seems contrary to what closeStackRequest is for.

I will submit a feature request, but I suspect it’s going to be low on the 
totem pole.

Bob S

___
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: Close Stack Cleanup

2021-02-04 Thread Bob Sneidar via use-livecode
Thanks Ralph. Actually what I am looking for is a message that gets sent when 
the close button of a window gets clicked. The Message Watcher seems to 
indicate not (or rather fails to indicate). I think this is a bug, or at least 
an oversight. This means that anyone can close a stack, and closeStackRequest 
will not get triggered. This seems contrary to what closeStackRequest is for.

I will submit a feature request, but I suspect it’s going to be low on the 
totem pole.

Bob S


On Feb 4, 2021, at 3:53 PM, Ralph DiMola via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Is this what you're looking for?

revIDESetEdited pStackName
revIDESetUnedited pStackName

Interrogate it with: revIDEStackIsEdited pStackName

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

___
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: Close Stack Cleanup

2021-02-04 Thread Bob Sneidar via use-livecode
 Back to the drawing board. This does NOT work when clicking the red dot.

Bob S


On Feb 4, 2021, at 3:10 PM, Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Thanks for the reply Jacque. I ran the message watcher while clicking the red 
dot. None of the messages that appear have anything to do with closing the 
stack.

Here’s what I came up with. The closeStackRequest is NOT getting sent to the 
current card as the dictionary indicates, although the target IS the current 
card. It DOES get sent to the stack though. So I put this in the stack script 
and it DOES work with the red dot.

on closeStackRequest
  if the short name of the target is "Main” then — I have substacks but no 
other cards called Main
 dispatch resetMainForm to the target
  end if

  save this stack
  pass closeStackRequest
END closeStackRequest

Bob S

___
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: Close Stack Cleanup

2021-02-04 Thread Bob Sneidar via use-livecode
Thanks Curry. That works for the IDE, but not for the standalone. End Users do 
not save their stacks, as I give them no way to do so. The stacks in my app 
perform two functions: An interface to control the app and also a place to 
store persistent data i.e. properties. If a user force-quits my app for any 
reason, saving upon closing a sub stack ensures those updated properties are 
retained.

I could test for the IDE I know, but for my purposes, having lost so much form 
modifications in the past due to some kind of race condition or IDE lock up, I 
auto-save regularly, not just when I close a stack.

As an aside, this is what was slowing my Windows Standalones down so much. It 
has been well documented that the performance of saving a stack (especially one 
as complex as mine) in Windows is fairly oppressive. In a Windows Standalone I 
have to trap most of the times I save a stack, allowing only for saving upon 
close.

Bob S


On Feb 4, 2021, at 3:17 PM, Curry Kenworthy via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Me again:

Don't think "clean up and save." Keep the twain separate.
I choose when to save, it's a conscious choice, and it fires my cleanup.
My stack is almost always saved clean.

___
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: Close Stack Cleanup

2021-02-04 Thread Bob Sneidar via use-livecode
It’s my understanding that I am unable to reference objects on a card of a 
stack in a preOpenStack handler. Referencing an object in the stack opens the 
stack triggering a race condition which continually triggers preOpenStack. That 
is from memory though.

Bob S


On Feb 4, 2021, at 2:50 PM, Tore Nilsen via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Performing the clean up in preOpenStack makes it happen before the stack is 
visible, at least according to the dictionary.

"Unlike openStack <>, preOpenStack handlers <> are executed <> before the stack 
window <> appears. Because of this, the preOpenStack handler <> is a good place 
to put code that adjusts the size, position, and appearance of objects <>; the 
changes are made before the stack <> appears."

My experience is that this is true.


Tore

___
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: Close Stack Cleanup

2021-02-04 Thread Bob Sneidar via use-livecode
Thanks for the reply Jacque. I ran the message watcher while clicking the red 
dot. None of the messages that appear have anything to do with closing the 
stack.

Here’s what I came up with. The closeStackRequest is NOT getting sent to the 
current card as the dictionary indicates, although the target IS the current 
card. It DOES get sent to the stack though. So I put this in the stack script 
and it DOES work with the red dot.

on closeStackRequest
   if the short name of the target is "Main” then — I have substacks but no 
other cards called Main
  dispatch resetMainForm to the target
   end if

   save this stack
   pass closeStackRequest
END closeStackRequest

Bob S


On Feb 4, 2021, at 2:52 PM, J. Landman Gay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

There used to be a gREV* global variable that tracked the dirty status and if 
the stack was dirty it put up the "do you want to save?" dialog. I can't find 
it now so something has changed. When it existed, you could toggle that 
variable via script and the IDE wouldn't bother you.

The IDE does pass the closeStackRequest to your stack after it checks the stack 
status. The docs are correct that you don't get that message when a script 
closes the stack but you can use closeStack instead; however, first we need to 
find out where that variable went to. It used to be in the globals pane of the 
message watcher, and I'd recognize it if I saw it, but I can't remember now 
what it was.

___
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: Close Stack Cleanup

2021-02-04 Thread Bob Sneidar via use-livecode
Thanks for the response Curry and Tore. 

The reason I clean up at close is because when I open the stack the next time I 
do not want to remains of what I was doing before to show. It’s a small point 
but it look cleaner if the first time opening the stack there is nothing in the 
fields. All attempts to hide the stack then clear it before making it visible 
have been iffy. 

I guess what I need is a message or series of messages that get generated 
BEFORE the stack is closed. 

I have this in the only card in my stack: 

on closeStackRequest
   resetMainForm
   save this stack
   pass closeStackRequest — this has a breakpoint
end closeStackRequest

I have a breakpoint on the pass statement. When clicking the red dot I get 
asked if I want to save the stack. For whatever reason, for me the 
closeStackRequest is NOT getting sent to the current card! 

Bob S


> On Feb 4, 2021, at 1:23 PM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Bob:
> 
> > I am trying to clean up my stack (i.e. clear the fields),
> > then save it when I close it
> 
> This is a good topic for LiveCode learners; I'm chiming in
> 
> I often do something similar - but with an important difference:
> I perform cleanup when I save. I do NOT force an auto save.
> (More on that later.)
> 
> > BY ANY MEANS. That means by script, by menu OR by clicking the red dot
> > (of for WIN users the red X) in the title bar.
> > I need this to work in the IDE as well as in standalone.
> 
> So, let's halt at this point and take inventory of your desires!
> You want to trap at least 3 methods of initiating a close action.
> (Tally: 3)
> 
> Furthermore, IDE versus Standalone is an extra complexity.
> I don't like that, but it is the unfortunate reality.
> So I'm accounting for that extra complexity via a "+" designation!
> (Tally: "3+")
> 
> Now jumping ahead a bit to make a connection:
> 
> > If I use “CloseStack” instead
> 
> Remember our tally of "3+" Actions?
> The word "instead" suggests you're assuming a SINGLE trap.
> 
> Everyone here should know my KISS philosophy: less is better.
> 3 birds with one stone is superior; I'm always harping on that.
> But then again, in this case you have 3+ birds! :)
> 
> I'd hazard a guess on 2 traps - that's my experience for similar cases.
> (But if one will work, use one.)
> 
> > You would think closeStackRequest gets sent when I
> > click the red dot or X. You would be mistaken.
> 
> Actually I would NOT be mistaken, as long as we're talking about the X,
> and the stack has been named/saved at least once. Just tested it!
> 
> But among the "extra complexity" I mentioned, if the stack is dirty,
> the IDE will trap the close action at the front, BEFORE you get it.
> It can still fire, but AFTER you dance around a bit with the IDE.
> (Important to note that's the IDE; closeStackRequest does respond.)
> 
> To succeed in the IDE, you may indeed need to use closeStack.
> But that's probably "with" not "instead" of closeStackRequest!
> 
> We can still follow KISS and avoid duplicating code,
> via modularity - the 2 traps can call a common set of code.
> Using params or other means to handle the differences in the 2/3 cases.
> 
> > I just want it to be saved. I can force quit if I mess something up.
> 
> I DISCOURAGE using a custom auto-save and resorting to force quit.
> If you implement an auto-save, do it very well.
> (And done well, a force-quit would not likely be Plan A for reverting.)
> 
> But I encourage cleanup when saving or when closing. I do it constantly.
> It just requires a set of trap(s) that does spring for the 3 actions.
> You're half way there, just think "AND" not "instead" to finish it!
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Close Stack Cleanup

2021-02-04 Thread Bob Sneidar via use-livecode
Hi all. 

I know we have tread this ground before, but I am trying to clean up my stack 
(i.e. clear the fields), then save it when I close it BY ANY MEANS. That means 
by script, by menu OR by clicking the red dot (of for WIN users the red X) in 
the title bar. I need this to work in the IDE as well as in standalone. 

You would think closeStackRequest gets sent when I click the red dot or X. You 
would be mistaken. 

The dictionary reads, 

The closeStackRequest message is only sent if the request to close a stack is 
initiated by the user (eg by clicking file -> close in the LiveCode menu). If 
the request is initiated from a script (eg "close this stack" ) then the 
closeStackRequest message is not sent.

Apparently clicking the red dot is not considered, “initiated by the user.” It 
ought to be. 

If I use “CloseStack” instead, I cannot save the stack because a script is 
currently running, and I do not want to be presented with the dialog to save, 
do not save, or cancel. I just want it to be saved. I can force quit if I mess 
something up. 

Bob S

___
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: Using MySQL on (headless) Linux

2021-02-04 Thread Bob Sneidar via use-livecode
I don’t remember what I had for dinner on Friday. :-)

Bob S


On Feb 3, 2021, at 10:58 PM, Mark Waddingham via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On 2021-02-03 20:07, Richard Gaskin via use-livecode wrote:
LC Server had already been ruled out (for whatever reason) in an earlier part 
of the thread...
That's too bad. LC Server is LiveCode build designed specifically for
command line use.

Interesting - I don't remember that being what I specifically designed it for :P

___
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: Text field in Windows standalone not receiving keyboard focus

2021-02-01 Thread Bob Sneidar via use-livecode
Ah. I should’ve thought of that. I tried years ago to create a kind of kiosk 
app that used a web browser thinking I could put transparent buttons over top 
of the browser object, but as soon as the browser object got focus, I could no 
longer click buttons. The first click worked then nothing worked.

Bob S


On Jan 31, 2021, at 7:28 PM, Andrew at MidWest Coast Media via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

It turns out that this bug was actually another bug manifesting itself. There 
was a rogue browser widget (not visible) hiding in another group on the card 
gobbling up keystrokes on Windows platform. 
https://quality.livecode.com/show_bug.cgi?id=19023 


What’s worse is that the same bug bit me in the ass a year ago too. Fool me 
once, shame on you.

-Andrew Bell

___
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: Double sided PDF Problem

2021-01-29 Thread Bob Sneidar via use-livecode
As an IT technician working for a copier sales and service company, I always 
discourage page imposition in the document itself. Most print drivers have a 
means of producing booklets and handle the imposition for you. If you are 
indeed producing booklets, I assume they need to be center stapled as well. 

Adobe has it’s own means of imposing pages for a booklet. Typically I advise 
having Reader impose the pages, then everything else can be handled in the 
actual print driver properties. That of course is only for Adobe products. 

Bob S

> On Jan 29, 2021, at 1:38 AM, Graham Samuel via use-livecode 
>  wrote:
> 
> I’m thinking (guessing) that he’s into the more general problem that you get 
> when you are trying to print say a booklet with multiple pages of the book 
> per printed sheet. You do have to print double-sided (and your printer may 
> help you with that) but the key is lay it out so that page 2 of the booklet 
> is at the back of page 1 etc. If for example you have an 8 page leaflet 
> printed four up, the first - verso - physical page could be laid out like
> 
> 1   3
> 5   7
> 
> and the other side of the paper - recto - would be laid out
> 
> 4   2
> 8   6
> 
> People who print books etc are having to do this all the time, so it’s 
> reasonable to assume that the problem has been encapsulated in a procedure by 
> now. I won’t start with the links, since I don’t really know if this is the 
> problem Brian is trying to solve.
> 
> Graham
> 
>> On 29 Jan 2021, at 06:21, J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> Right after I sent the message below, I think I understand what you meant. 
>> You want to print double-sided pages of all the cards in a stack. Is that 
>> right? On a regular printer you don't have to do anything special; if the 
>> printer driver supports double-sided printing then it just works.
>> 
>> For PDFs, I'd have to check. What OS are you on?
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> On January 28, 2021 11:59:01 PM "J. Landman Gay via use-livecode" 
>>  wrote:
>> 
>>> I'm confused. Are you writing a card game with decks of cards? Or do you
>>> mean the cards in a lC stack? What is "flipping the page"?
>>> 
>>> --
>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>> HyperActive Software | http://www.hyperactivesw.com
>>> On January 28, 2021 11:15:51 PM "Brian K. Duck via use-livecode"
>>>  wrote:
>>> 
 I’d like to print decks of cards, front and back
 
 The front page is always easy.
 Cards print left to right: 1-3
 
 Flipping the pages, in portrait layout, the cards are now face down, in
 order but reversed: 3,2, 1.
 
 The problem is, printing 3 wide by 4 tall, aligining the two.
 
 Any existing solutions or discussions?
 
 Thanks for your time,
 Brian Duck
 Bduck at m@c dot com
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> 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: Double sided PDF Problem

2021-01-29 Thread Bob Sneidar via use-livecode
I may be missing something, but a document itself is not double sided. I think 
you may be saying that you want to automate the process of printing and force 
the output to be double sided. I do not think that is possible, although I can 
see how that would be useful to push print properties before a print job. 

Bob S


> On Jan 28, 2021, at 10:21 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> Right after I sent the message below, I think I understand what you meant. 
> You want to print double-sided pages of all the cards in a stack. Is that 
> right? On a regular printer you don't have to do anything special; if the 
> printer driver supports double-sided printing then it just works.
> 
> For PDFs, I'd have to check. What OS are you on?
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On January 28, 2021 11:59:01 PM "J. Landman Gay via use-livecode" 
>  wrote:
> 
>> I'm confused. Are you writing a card game with decks of cards? Or do you
>> mean the cards in a lC stack? What is "flipping the page"?
>> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> On January 28, 2021 11:15:51 PM "Brian K. Duck via use-livecode"
>>  wrote:
>> 
>>> I’d like to print decks of cards, front and back
>>> 
>>> The front page is always easy.
>>> Cards print left to right: 1-3
>>> 
>>> Flipping the pages, in portrait layout, the cards are now face down, in
>>> order but reversed: 3,2, 1.
>>> 
>>> The problem is, printing 3 wide by 4 tall, aligining the two.
>>> 
>>> Any existing solutions or discussions?
>>> 
>>> Thanks for your time,
>>> Brian Duck
>>> Bduck at m@c dot com
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
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: open secure socket... using certificate

2021-01-28 Thread Bob Sneidar via use-livecode
With SSL the encryption occurs at the socket level, that is the socket is 
secured by virtue of it’s creation. With StartTLS, also an SSL protocol, the 
socket is first established, then a secure tunnel is created. (Transport Layer 
Security)

My point? The socket connection itself does not need to be secured, and indeed 
it’s less desirable if it is. An SSL encrypted certificate must be passed at 
least once so that host and client both have the public and private key. This 
is necessary when the host is unknown.

To Richard’s point, if you control the host AND the client, a certificate is 
not needed. You KNOW the host is secure. Simply pass encrypted traffic over an 
unsecured socket. The result is the same, only nothing about the method is ever 
passed over the socket connection.

I may misunderstand though.

Bob S


On Jan 28, 2021, at 7:46 PM, Tom Glod via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

well..that was short lived. bummer I guess, esp if you really need it in
that form.
I would ask about it and try to get an answer in clear terms from the team.


Richard. in the labs .. I am testing the viability of using
Livecode as ONLY a UI layer.  So I have to find the fastest way of getting
decrypted JSON data from Core process (Go binary) to the UI Layer that is a
LC stack.
So when communicating data via the localhost or socket, I figured it should
still be encrypted if possible when in transit between the 2 programs.
It's an attack vector in this kind of a scenario, a local one, not remote
as much.

___
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: OT Friendly customers....

2021-01-28 Thread Bob Sneidar via use-livecode
Dude! I am quoting YOUR text!

Bob S


On Jan 28, 2021, at 6:15 PM, Curry Kenworthy via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Bob:
> Why am I still seeing this?

Why are you continuing this topic? And quoting the entire text?

___
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: OT Friendly customers....

2021-01-28 Thread Bob Sneidar via use-livecode
Why am I still seeing this? 

Bob S


> On Jan 28, 2021, at 4:21 PM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Stephen:
> 
> > forgive me that last post was supposed to be for Curry only
> 
> Stephen, I want to thank you for providing verification of the kind of hate 
> speech/harrassment you were sending offline.
> 
> And for the record, I didn't attack you - I mentioned the FBI's lack of 
> action when commenting on the proliferation of scams. Didn't start that 
> thread, nor that topic. Didn't promote politics; stated my position AGAINST 
> politicizing institutions, so that real crime can be addressed.
> 
> Nor did I mention Trump or a political position.
> 
> You ILLOGICALLY jumped to the conclusion that I was talking about this year's 
> political situation (ignoring the details, including the dates that clearly 
> preceded the situation you have in mind) and decided to mentally place me 
> into a category of people that you hate.
> 
> Then you proceeded to attack ME (based on irrational reasoning) and send me 
> hateful messages. Along with creepy demands to know which "team" I'm on.
> 
> You proactively mentioned Trump and your own brand of politics.
> I didn't mention any political position to you.
> 
> I couldn't care less about your political opinions or proclivities.
> I'm not bothered if you have "zero respect" or hate me based on your 
> prejudices and illogical thinking.
> 
> I do find it disturbing when I see hatred, but it doesn't bother me 
> personally when it's directed at me. I'll sleep just fine!
> 
> Rest assured that I'm definitely not on your "team."
> You can keep all that offlist - and remember, I'm not your offlist.
> Start a hate blog, or talk to your buddies about it.
> 
> But I do care about logic. Look at the years: you messed up.
> All that ranting and raving, interrupting a thread with attacks, all based a 
> false premise: assuming that I was talking about this year's events. 
> Congratulations!
> 
> Now, can we get back to LC or not?
> 
> I've stated that I am AGAINST politicizing organizations including this list. 
> Nor do I want your offlist rants. LC only please!
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: open secure socket... using certificate

2021-01-28 Thread Bob Sneidar via use-livecode
Agreed. All a cert does is guarantee (if I can use such a word in the security 
realm) that the current host is who they say they are. If simple encryption is 
needed, just do that.

I use unsecured sockets in one of my libraries, but I encrypt the data before I 
send it, then decrypt it on the other end.

Bob S


On Jan 28, 2021, at 8:40 AM, Richard Gaskin via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Tom Glod wrote:

> Wondering if it will be super hard to create certificate and make it
> work on localhost sockets.

Pardon my naivete, but what is the value of a secured socket in local socket 
comms?

--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web

___
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: OT Friendly customers....

2021-01-26 Thread Bob Sneidar via use-livecode
WAIT… THAT was a SCAM???

Bob S


On Jan 26, 2021, at 9:45 AM, Paul Dupuis via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Honestly with all the SCAM email out there from Nigerian Princes to "I am dying 
and wish you to manage my million as I have no heirs"

___
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: LC Community Ask Password

2021-01-25 Thread Bob Sneidar via use-livecode
Okay Bug Report https://quality.livecode.com/show_bug.cgi?id=23075

Bob S


On Jan 25, 2021, at 4:53 PM, Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Panos.

I have a recipe. It’s when the stack is modal AND I ask password as sheet.

I’ll open a bug report and send the stack along.

Bob S


On Jan 25, 2021, at 8:33 AM, Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Panos.

I’m running High Sierra. I’ll try again with a new stack. It may be something 
in my stack that the older versions of LC do not mind but the latest does.

Bob S


On Jan 21, 2021, at 12:35 AM, panagiotis merakos via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hello Bob,

I just did a quick test in LC 9.6.2 RC-2 and I cannot reproduce this bug. I
put this code in a button:

on mouseUp pButtonNumber
ask password "Please log in:" titled "Password Test"
end mouseUp

I also tried putting this button in a modal stack.

In both cases, I can type in the ask password dialog, and the OK and Cancel
buttons do respond.

Could you file a bug report and attach a sample stack that demonstrates the
problem, so as we fix it asap?

Also, what is your MacOS version? I tested on Mojave.

Kind regards,
Panos
--

On Thu, 21 Jan 2021 at 02:30, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Oddly 9.6.2 RC2 Community DOES solve the Standalone App settings bug I
mentioned in another post. This is all Mac BTW.

Bob S


On Jan 20, 2021, at 4:21 PM, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote:

Hi all.

Ask Password dialog pops but will not take input, nor can I click the
Cancel or OK buttons.

V9.6.2 RC2

Bob S


___
use-livecode mailing list
use-livecode@lists.runrev.com<mailto: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<mailto: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<mailto: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<mailto: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<mailto: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: LC Community Ask Password

2021-01-25 Thread Bob Sneidar via use-livecode
Hi Panos. 

I have a recipe. It’s when the stack is modal AND I ask password as sheet. 

I’ll open a bug report and send the stack along. 

Bob S


> On Jan 25, 2021, at 8:33 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi Panos. 
> 
> I’m running High Sierra. I’ll try again with a new stack. It may be something 
> in my stack that the older versions of LC do not mind but the latest does. 
> 
> Bob S
> 
> 
>> On Jan 21, 2021, at 12:35 AM, panagiotis merakos via use-livecode 
>>  wrote:
>> 
>> Hello Bob,
>> 
>> I just did a quick test in LC 9.6.2 RC-2 and I cannot reproduce this bug. I
>> put this code in a button:
>> 
>> on mouseUp pButtonNumber
>>  ask password "Please log in:" titled "Password Test"
>> end mouseUp
>> 
>> I also tried putting this button in a modal stack.
>> 
>> In both cases, I can type in the ask password dialog, and the OK and Cancel
>> buttons do respond.
>> 
>> Could you file a bug report and attach a sample stack that demonstrates the
>> problem, so as we fix it asap?
>> 
>> Also, what is your MacOS version? I tested on Mojave.
>> 
>> Kind regards,
>> Panos
>> --
>> 
>> On Thu, 21 Jan 2021 at 02:30, Bob Sneidar via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Oddly 9.6.2 RC2 Community DOES solve the Standalone App settings bug I
>>> mentioned in another post. This is all Mac BTW.
>>> 
>>> Bob S
>>> 
>>> 
>>>> On Jan 20, 2021, at 4:21 PM, Bob Sneidar via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> Hi all.
>>>> 
>>>> Ask Password dialog pops but will not take input, nor can I click the
>>> Cancel or OK buttons.
>>>> 
>>>> V9.6.2 RC2
>>>> 
>>>> Bob S
>>>> 
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> 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: LC Community Ask Password

2021-01-25 Thread Bob Sneidar via use-livecode
Hi Panos. 

I’m running High Sierra. I’ll try again with a new stack. It may be something 
in my stack that the older versions of LC do not mind but the latest does. 

Bob S


> On Jan 21, 2021, at 12:35 AM, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hello Bob,
> 
> I just did a quick test in LC 9.6.2 RC-2 and I cannot reproduce this bug. I
> put this code in a button:
> 
> on mouseUp pButtonNumber
>   ask password "Please log in:" titled "Password Test"
> end mouseUp
> 
> I also tried putting this button in a modal stack.
> 
> In both cases, I can type in the ask password dialog, and the OK and Cancel
> buttons do respond.
> 
> Could you file a bug report and attach a sample stack that demonstrates the
> problem, so as we fix it asap?
> 
> Also, what is your MacOS version? I tested on Mojave.
> 
> Kind regards,
> Panos
> --
> 
> On Thu, 21 Jan 2021 at 02:30, Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Oddly 9.6.2 RC2 Community DOES solve the Standalone App settings bug I
>> mentioned in another post. This is all Mac BTW.
>> 
>> Bob S
>> 
>> 
>>> On Jan 20, 2021, at 4:21 PM, Bob Sneidar via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hi all.
>>> 
>>> Ask Password dialog pops but will not take input, nor can I click the
>> Cancel or OK buttons.
>>> 
>>> V9.6.2 RC2
>>> 
>>> Bob S
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
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: Considering work with livecode server

2021-01-24 Thread Bob Sneidar via use-livecode
certain inalienable rights… Ahhh. I love cheese.

Bob S


On Jan 24, 2021, at 9:26 AM, Mark Smith via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Thanks for weighing in on this issue Kee. I realize Apple grants unto itself 
certain inalienable rights that are not always (in my opinion) wise, or 
justified (ie. they are open to all sorts of corporate bias and malfeasance) 
but as you say, “them’s the rules” and if you want to play in their sandbox you 
had better abide by them. I presume there is some semblance of common sense at 
Apple, at least I hope so :)

___
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: How to find the offset of the first character in a string that's not a tab?

2021-01-22 Thread Bob Sneidar via use-livecode
I did not know this! Isn’t anyone else shocked and surprised??

Bob S


On Jan 22, 2021, at 2:33 PM, Ken Ray via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On Jan 21, 2021, at 8:36 AM, Keith Clarke via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Thanks Brian. I looked at matchChunk in the dictionary & it seems to return a 
boolean, rather than the offset.

The boolean is just whether or not the matchChunk operation was successful; you 
need to provide variables for the start and end character offsets in the 
function call:

if matchChunk(myString,"([^\t])",tStart,tEnd) then
 put "The offset to the first non-tab character is:" && tStart
else
 -- matchChunk had an error because the regex was bad or something
end if

I know you've moved on, but just for the record...

:D


Ken Ray
Sons of Thunder Software, Inc.

___
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: lock screen

2021-01-22 Thread Bob Sneidar via use-livecode
I’ll throw in my lot: Some things unlock the screen without an idle. I think 
setting the visible of a stack will do it. 

Bob S



> On Jan 22, 2021, at 12:56 AM, Terence Heaford via use-livecode 
>  wrote:
> 
> Just looking for clarity with regard to lock screen.
> 
> Is there only one state for the screen, either locked or not locked and when 
> is that state changed.
> 
> ---
> on mouseUp
> 
> lock screen
> 
> aTest
> 
> end mouseUp
> 
> 
> on aTest
> 
> — is the screen still locked here
> 
> end aTest
> 
> 
> 
> At what point is unlock screen called by livecode without me calling it 
> directly.
> 
> The docs say when all pending handlers have completed but what exactly is a 
> pending handler.
> 
> 
> 
> Thanks
> 
> Terry
> ___
> 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: LC Community Ask Password

2021-01-20 Thread Bob Sneidar via use-livecode
Oddly 9.6.2 RC2 Community DOES solve the Standalone App settings bug I 
mentioned in another post. This is all Mac BTW. 

Bob S


> On Jan 20, 2021, at 4:21 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. 
> 
> Ask Password dialog pops but will not take input, nor can I click the Cancel 
> or OK buttons. 
> 
> V9.6.2 RC2
> 
> Bob S
> 
> 
> ___
> 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


LC Community Ask Password

2021-01-20 Thread Bob Sneidar via use-livecode
Hi all. 

Ask Password dialog pops but will not take input, nor can I click the Cancel or 
OK buttons. 

V9.6.2 RC2

Bob S


___
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


Standalone app settings

2021-01-20 Thread Bob Sneidar via use-livecode
Hi all. Weird issue. In my Forms Generator app I can no longer open Standalone 
Settings using Indy 9.6.1. I CAN for a brand new stack though! And I CAN if I 
use Community 9.6.0. 

Is there a way to intercept a message when I attempt to get those settings? 

Bob S


___
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: GRID and GRIDSIZE

2021-01-20 Thread Bob Sneidar via use-livecode
If that were allowed one could conceive of writing a standalone that was it’s 
own IDE and selling it as a third party app.

Bob S


On Jan 20, 2021, at 1:02 PM, Tore Nilsen via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

One could think that the grid snap feature would work in Run mode in the IDE if 
scripts would allow the user to move controls in this mode. One could also 
think that the grid snap feature would work in a standalone under the same 
circumstances. This would allow for better control of placement of controls 
«out of the box».

Best regards
Tore Nilsen

___
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: Considering work with livecode server

2021-01-19 Thread Bob Sneidar via use-livecode
If only!

Bob S


On Jan 19, 2021, at 5:56 AM, Andre Garzia via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

A website from 1995
needs to be just as valid to the browser as one from 2021.

___
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: Printing borked for LC Linux?

2021-01-17 Thread Bob Sneidar via use-livecode
I don’t use Linux, but the way things are going with Apple, I may consider it.

Bob S


On Jan 16, 2021, at 10:30 AM, Richard Gaskin via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I've been printing almost exclusively to PDF for the last several years, but 
this morning I wanted to print to actual paper, and found that LC doesn't print 
from Ubuntu.

There's nothing in the result after the print command, so LC thinks it's doing 
fine.

And I can print from any other app on the same machine, just not LC.

This report for Linux Mint seems perhaps relevant:
https://quality.livecode.com/show_bug.cgi?id=21131

But it's from nearly three years ago - has printing been completely broken in 
the LC Linux engine for years and so few noticed?

Any of you able to print from LC in Linux?

--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web

___
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: opened socket in IDE prevents script changes

2021-01-16 Thread Bob Sneidar via use-livecode
Look in the script editor breakpoints tab. If there are any there delete them. 
Just spitballing.

Bob S


On Jan 16, 2021, at 7:10 AM, Bernard Devlin via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Bernd

Thanks for the suggestion. But I think the evidence points away from this.

One thing I've done is
- change the script (could be just addition of a comment)
- copy entire script
- apply & close
- re-open script editor --> *change is missing*

- close IDE
- re-open LC
- open stack script in editor
- delete entire script
- paste script from clipboard
- apply & close
- re-open script editor --> *change is now there*

As soon as I open a socket, back to the situation that where script
changed, apply etc. does not take. And closing all sockets does not work
(although there is always one socket left open, which I believe is a socket
the IDE creates in the background).

I'm working on the assumption that it's something to do with the way I'm
reading/writing to the socket.

It's definitely strange.  But if I can get to the bottom of this it will
help others. The weird thing is that everything is working with the socket
communications, no script or runtime errors thrown by LC, yet this working
app breaks the IDE in the sense that LC is no longer a dynamic scripting
environment (for me anyway).

It's important to get to the bottom of this as it makes LC look bad,
especially the numerous crashes, which all seem to be related to setting
breakpoints in the script editor to try and get to the bottom of what was
not working. At least on OSX I'm getting crash logs in the console.
Strangely the crash errors are not all the same.

Regards
Bernard

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


Re: [ANN] Release 9.6.2 RC-2

2021-01-14 Thread Bob Sneidar via use-livecode
Gawd… now that you mention it, I did too!

Bob S


On Jan 14, 2021, at 2:53 AM, David V Glasgow via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I paid for the Windows version of SuperCard that was advertised in MacUser for 
some considerable time in the ?mid 90s.  I waited, and waited, and waited….

___
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: LC & Mac M1 Chip

2021-01-13 Thread Bob Sneidar via use-livecode
You are new here, so I will just say that among the forbidden topics on this 
list, sex, politics, religion (pretty much everything that really matters in 
this world) is the subject of cheese. Consider yourself notified. ;-)

Bob S


On Jan 13, 2021, at 1:15 PM, JeeJeeStudio via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Stay off the fake Gouda cheese, maybe it's Chinese origin.
Only take the original Dutch Gouda, which is protected by the way, although
in China they don't mind that.

Op zo 10 jan. 2021 om 23:36 schreef Curry Kenworthy via use-livecode <
use-livecode@lists.runrev.com>:


JeeJeeStudio:

One could ask him/her-self the question if it is still ethical to
buy a reall Mac? Seeing the child-labor in their factories in China
is still present.

I'm glad you went there! Thank you. I do ask myself, and the answer is
clear. Whether it's a Mac, or any other product. Same deal.

Not to mention forced organ harvesting (often while conscious), torture,
gulags, repression (now becoming fashionable), ethnic/racial crackdowns,
thought/political/religious crackdowns, IP theft, debt traps,
poison/health risks, safety flaws, hacking and theft, credible plan for
world domination, worker hazards and living/working conditions, and the
list could go on for many pages.

I'm typing this on a PC laptop, with a fan blowing on my face, at a
desk, sitting on a wheelchair, under a light bulb, all of which probably
have the same origin. Consumer choices are limited, but it does bother
me. There's a real need for products produced in a context where human
rights are respected.

(I consider that human decency, not politics. And for the record, I'm
completely off cheese at the moment; developed allergic reaction to it.)

Best wishes,

Curry Kenworthy

Custom Software Development

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


Re: [ANN] Release 9.6.2 RC-2

2021-01-12 Thread Bob Sneidar via use-livecode
I’ve no worries with LC. My concern is all the other apps I bought which the 
devs don’t port. 

Bob S


> On Jan 12, 2021, at 10:32 AM, chaplais via use-livecode 
>  wrote:
> 
> I have gone through this too . The most difficult was the change of OS. Also, 
> Apple had not ported MPW to the PPC, which led to the success of Metrowerks  
> CodeWarrior.
> I stil have a compiler by them for BeOs on PPC.
> This does not really make me feel younger.
> Le 12 janv. 2021 à 19:13 +0100, Richard Gaskin via use-livecode 
> , a écrit :
>> Bob Sneidar wrote:
>> 
>>> Up until the time Apple decides everything has to be M1, at which
>>> support for Rosetta is withdrawn. The question is, how long do Intel
>>> apps have to live? Deja Vu all over again. (see what I did there?)
>> 
>> We've been here before...
>> 
>> 68k -> PPC
>> Classic -> OS X
>> PPC -> Intel
>> 32-bit -> 64-bit
>> 
>> Adding:
>> Intel -> M1
>> ...is just another day in Appleland.
>> 
>> The engine has been carried forward well through all those changes, I'm
>> not worried about this latest one.
>> 
>> --
>> Richard Gaskin
>> Fourth World Systems
>> Software Design and Development for the Desktop, Mobile, and the Web
>> 
>> ambassa...@fourthworld.com http://www.FourthWorld.com
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> 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: [ANN] Release 9.6.2 RC-2

2021-01-12 Thread Bob Sneidar via use-livecode
Talking about how old we feel, when I first began with computers, we were using 
CP/M.

Bob S


On Jan 12, 2021, at 10:32 AM, chaplais via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I have gone through this too . The most difficult was the change of OS. Also, 
Apple had not ported MPW to the PPC, which led to the success of Metrowerks  
CodeWarrior.
I stil have a compiler by them for BeOs on PPC.
This does not really make me feel younger.

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


Re: [ANN] Release 9.6.2 RC-2

2021-01-12 Thread Bob Sneidar via use-livecode
Up until the time Apple decides everything has to be M1, at which support for 
Rosetta is withdrawn. The question is, how long do Intel apps have to live? 
Deja Vu all over again. (see what I did there?) 

Bob S


> On Jan 12, 2021, at 6:11 AM, Andre Garzia via use-livecode 
>  wrote:
> 
> Hi Panos,
> 
> Is there a potential ETA for M1 support?
> 
> Best
> Andre
> 
> On Tue, 12 Jan 2021 at 09:13, panagiotis merakos via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Dear list members,
>> 
>> We are pleased to announce the release of LiveCode 9.6.2 RC-2.
>> 
>> 
>> Getting the Release
>> ===
>> You can get the release at https://downloads.livecode.com/livecode/ or via
>> the automatic updater.
>> 
>> 
>> Release Contents
>> 
>> LiveCode 9.6.2 RC-2 comes with 5 regression fixes, including:
>> 
>> - Opening Color Picker from modal window no longer causes LC to freeze
>> - MacOS Big Sur: fixed display error when switching between card or showing
>> a group
>> - Fix long pause after closing modal dialog on macOS
>> 
>> For the full list of all fixes, updates and enhancements please see the
>> release notes:
>> http://downloads.livecode.com/livecode/9_6_2/LiveCodeNotes-9_6_2_rc_2.pdf
>> 
>> 
>> Known issues
>> 
>> - The Browser widget's native layer is not shown in some Linux distros with
>> Cinnamon window manager.
>> - The use of the Browser widget is not supported on Ubuntu 18.04 64 bit LTS
>> yet.
>> 
>> 
>> Required Software
>> =
>> To build iOS apps with LiveCode you must have the appropriate versions of
>> Xcode as follows:
>> 
>>  - macOS 10.13.4: Xcode 10.1 - LiveCode builds iOS apps using the iOS 12.1
>> SDK
>>  - macOS 10.14.4: Xcode 11.3.x - LiveCode builds iOS apps using the iOS
>> 13.2 SDK
>>  - macOS 10.15.4+: Xcode 12.1.x - LiveCode builds iOS apps using the iOS
>> 14.1 SDK
>> 
>> There is a full list of working LiveCode/macOS/Xcode combinations here:
>> https://livecode.com/docs/9-5-0/faq/faq/
>> 
>> Note: Whilst we endeavour to release updated versions of LiveCode
>> supporting the latest Xcode/iOS SDKs as quickly as possible; we strongly
>> recommend disabling automatic update of Xcode or downloading the specific
>> version of Xcode required directly from the Apple developer portal and
>> installing it separately.
>> 
>> Important: From the end of June 2020, Apple is only accepting apps built
>> using iOS13 SDKs. This means that, if you wish to submit apps to the
>> AppStore you will have to be running at least macOS 10.14 in order to be
>> able to install the necessary version of Xcode.
>> 
>> 
>> Feedback
>> 
>> Please report any bugs encountered on our quality center at
>> http://quality.livecode.com/
>> 
>> We have a forum available for discussing LiveCode Builder at
>> http://forums.livecode.com/viewforum.php?f=93
>> 
>> 
>> Have fun!
>> The LiveCode Team
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> -- 
> https://www.andregarzia.com 
> Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia
> ___
> 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: LC & Mac M1 Chip

2021-01-11 Thread Bob Sneidar via use-livecode
Fuzzy logic makes my brain itch. 

Bob S


> On Jan 9, 2021, at 9:36 PM, Rick Harrison via use-livecode 
>  wrote:
> 
> Otherwise code uses fuzzy logic!  LOL
> 
> Rick
> 
>> On Jan 9, 2021, at 5:34 PM, Curry Kenworthy via use-livecode 
>>  wrote:
>> 
>> Otherwise code would be unpredictable.
> 
> ___
> 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: Threads in LC

2021-01-11 Thread Bob Sneidar via use-livecode
That would be awesome. I really need to do this for the File Storage library I 
want to include in my app. Right now I just save the PDFs on my local HDD, and 
each client has it’s own subset of the files it creates. But if I could pass 
the binary data for the PDF over a client server system of some sort, I could 
centrally store and recall all the documents from ALL the clients, hence the 
beginnings of a Document Capture and Storage app written in LC. 

Bob S


> On Jan 8, 2021, at 5:32 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> 
> On 08/01/2021 01:51, Bob Sneidar via use-livecode wrote:
>> I have thought about this a bit. If what you mean by multiprocessing is that 
>> a new process can be spawned while your app can go off and do other things 
>> and get notified later that something happened, then this is quite doable. 
>> If what you mean is that you want to make the app spawning the processes 
>> operate more efficiently by launching the same process over and over in 
>> multiple instances, then I don’t think so. At some point the parent process 
>> is going to have to get the result of each thread and do something about it.
> 
> I did something like this, but didn't spawn a new process for each asynch 
> task being launched.
> 
> What I did instead was have a very general purpose 'task handler' app, and 
> have multiple instances of this 'server app' running all the time; as long as 
> they're not doing any task, that's a negligible "cost" in resources. Each 
> instance would accept a socket connection on a different port (e.g. 6000, 
> 6001, 6002, ...) and would be passed "requests" to handle a specific task. It 
> would queue up multiple tasks, handle them in turn, and pass the result back 
> over the connection to whichever app requested it.
> 
> Then there was a client library, which would handle all the "messiness" for 
> the client, so the app need not be too involved. The app itself would simply 
> 'start using' the library, tell it which tasks it wanted to be able to do 
> (see below), and then pass in multiple requests through library calls. The 
> library would determine how many task-handler apps were available, parcel out 
> the requests between them, and provide the responses to the client (if 
> needed).
> 
> For each task (or set of tasks) you would write a library stack, which would 
> have handlers to perform the task(s), and respond.
> 
> 
> Example (trivial and may contain typos).
> 
> (you have to imagine that generating random numbers was very time consuming 
> :-),
> 
> 1. Write a library stack to perform some tasks.
> 
> stack "randomstuff"
> global gResultData, gResultObject   -- remember - one task at a time, so no 
> race conditions
> 
> on randomint pData
>local tmp, tMin, tMax
>put word 1 of pData into tMin
>put word 2 of pData into tMax
>put random(tMax - tMin + 1) into tmp
>put tmp-1 + tMin into gResultData
>send "completedTask" to gResultObject in 1 millisec
> end randomint
> 
> 
> 2. In the client app, determine the tasks to be handled
> 
> (within, say, openstack)
> 
>taskClientLoadStack "randomstuff.livecodescript"
> 
> 
> 3. when you need a number of random integers
> 
>   repeat 1000 times
> put taskClientSendARequest("randomstuff", "randomint 12 17", the long ID 
> of me) into tmp
>   end repeat
>-- (the return value is a request id - often can be ignored).
> ...
> on taskcomplete pID, pResult
>-- pID is the request ID, pResult is the returned data from that request
>put pResult  after sNumbers   -- or whatever
> ...
> end taskcomplete
> 
> In addition, there were various 'admin' taks you could request (close 
> connection, cancel pending tasks, get count of remaining tasks pending, ...). 
> The initial version of the client library simply round-robined the task 
> requests between the task-handlers, but the 'status' request would allow for 
> more intelligent load-balancing i fneeded.
> 
> 
> I did all this many years ago (2006 ??) and had this up on the earliest 
> version of revonline (which subsequently got deleted). I developed it to help 
> with indexing (including md5hash) of large numbers of image files. Using 4 
> task handlers, it was able to do the indexing in around 1/3 of the time the 
> single-threaded version took.
> 
> I still have the code - but unfortunately I can't find the write-up / 
> documentation on how to use it. And, I admit I absolutely cringe now to look 
> at the code - it *seriously* needs to be re-written, or heavily revised.
> 
> I'll clean up the code, write up how to use it and post 

Re: Threads in LC

2021-01-07 Thread Bob Sneidar via use-livecode
A little more clearly, ...respond DIRECTLY BACK to the original instances of 
the apps as opposed to the SPAWNING agent.


On Jan 7, 2021, at 5:51 PM, Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

The fix for this is of course to have the spawned query agents, let’s call 
them, respond DIRECTLY BACK to the original instances of the apps as opposed to 
the listening agent. This would free up the spawning agent from having to 
handle the callbacks itself. A passive system of sorts. Hmmm… doable I think.

Bob S

___
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: Threads in LC

2021-01-07 Thread Bob Sneidar via use-livecode
I have thought about this a bit. If what you mean by multiprocessing is that a 
new process can be spawned while your app can go off and do other things and 
get notified later that something happened, then this is quite doable. If what 
you mean is that you want to make the app spawning the processes operate more 
efficiently by launching the same process over and over in multiple instances, 
then I don’t think so. At some point the parent process is going to have to get 
the result of each thread and do something about it.

This assumes you NEED to hear back from the process. If that is not necessary, 
if you have a really good chance that nothing can go wrong, then I suppose it 
can be something along the lines of network multicasting where the packets go 
out into the ether, and they are on their own.

The real advantage to setting up a pseudo multiprocessing system with LC is 
that your main process can go about it’s business while the child process is 
doing some heavy lifting. If the main process cannot continue, or continue very 
far without hearing back from the spawn, then the point is moot.

For example, I can see a scenario where an agent could listen for requests to 
query/update a database from a large number of clients, then spawn a new server 
agent for each request and delete it when finished, but then the listening 
agent becomes the single process bottleneck. All that would have been done is 
remove the bottleneck down the path one step, and incur network delay, and the 
time it takes to spawn and delete the child processes along the way.

The fix for this is of course to have the spawned query agents, let’s call 
them, respond DIRECTLY BACK to the original instances of the apps as opposed to 
the listening agent. This would free up the spawning agent from having to 
handle the callbacks itself. A passive system of sorts. Hmmm… doable I think.

Bob S


On Dec 31, 2020, at 9:22 AM, Bob Sneidar 
mailto:bobsnei...@iotecdigital.com>> wrote:

You can also try using callbacks, although the callback will not get processed 
until the next idle message (script execution termination or wait with 
messages).

Bob S


On Dec 31, 2020, at 8:53 AM, Rick Harrison via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Jerry,

What version of Raspberry PI are you using?

If you are using an older version of Raspberry PI just replacing it
with a newer version might be your best work around.  The older
PI’s are pretty slow.  Have you looked into Banana PI for instance?

While LC isn’t multi-threaded there may be a work around which
could make it behave as though it was.  Have you tried Send in Time?

How often are you telling your stepper motor to run?  Once in every
10 milliseconds or once in every 20 milliseconds etc?

Good luck!

Rick


___
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: Server error? SOLVED

2020-12-31 Thread Bob Sneidar via use-livecode
Yup. I said try replacing the older library with the newer one. You would have 
had to do that in the standalone. I didn’t know there were two versions, but it 
seemed obvious there must have been.

Bob S


On Dec 31, 2020, at 9:15 AM, Klaus major-k via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Bob,

Am 31.12.2020 um 18:01 schrieb Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>>:

Hey, what I said! :-)

oh, really?
Sorry must have missed that. :-(

Anyway, a happy (and better) new year, everybody!

Bob S

___
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: Threads in LC

2020-12-31 Thread Bob Sneidar via use-livecode
You can also try using callbacks, although the callback will not get processed 
until the next idle message (script execution termination or wait with 
messages).

Bob S


On Dec 31, 2020, at 8:53 AM, Rick Harrison via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Jerry,

What version of Raspberry PI are you using?

If you are using an older version of Raspberry PI just replacing it
with a newer version might be your best work around.  The older
PI’s are pretty slow.  Have you looked into Banana PI for instance?

While LC isn’t multi-threaded there may be a work around which
could make it behave as though it was.  Have you tried Send in Time?

How often are you telling your stepper motor to run?  Once in every
10 milliseconds or once in every 20 milliseconds etc?

Good luck!

Rick

___
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: How to set up a library?

2020-12-31 Thread Bob Sneidar via use-livecode
BTW you may want to consider inserting anything with a mouseUp handler in the 
front, if you want every mouseUp to be trapped. If you only want the library’s 
mouseUp to be triggered “on demand” then insert into back and then pass mouseUp 
to trigger your library handler (assuming mouseUp is not trapped anywhere else 
in the message path.)

For example, I have a mouseDown handler in a front script, where I then get the 
target and determine what kind of object it is, handling the objects I want 
(usually for contextual menus) and then passing at the end.

Bob S


On Dec 31, 2020, at 3:55 AM, Ben Rubinstein via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Currently I've got buttons with a script, and a 'mouseup' handler to 'insert 
the script of me into back' in my object library. But I don't think that's very 
modern.

___
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: How to set up a library?

2020-12-31 Thread Bob Sneidar via use-livecode
Trouble with putting a library in the Livecode libraries folder is every time 
you upgrade Livecode, those may get deleted. This is especially true for OS X, 
where those libraries are in the app bundle. I would not put a library in that 
location.

Also, you do not have to specify the path. Add the library to the Stack Files 
of the stack, and then start using it by the stack short name. If you are using 
a script only stack, you should also add the SOS to the stack files, mainly 
because when you create a standalone these will get included in the standalone. 
Otherwise I suppose you *could* start using a stack by full path name or else 
it has to be in the current default folder.

Setting the behavior of something is a one time thing. Start Using is something 
that has to be done every time a stack is opened, unless another stack in the 
IDE has done so. Doing it more than once has no effect, other than pushing the 
script to the back of the stacks in use.

The difference between the two is that a behavior is in the message path of the 
object itself, and so it’s handlers are not accessible to any other object 
unless you send or dispatch to that object.

Start Using makes the script globally accessible to ALL stacks running in the 
IDE (or in the Standalone).

On Dec 31, 2020, at 3:55 AM, Ben Rubinstein via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Thanks Alex and Bob for your responses.

And if I make it a script-only stack, is there a clever place to store it - 
e.g. the standard distribution libraries are in
.../Tools/Toolset/libraries/

Is there a convention or location which would allow me to reference the library 
without having to specify the full path, for example?

thanks,

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


Re: Server error? SOLVED

2020-12-31 Thread Bob Sneidar via use-livecode
Hey, what I said! :-)

Bob S


On Dec 31, 2020, at 3:08 AM, Klaus major-k via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi all,

we could finally solve the problem by copying the revsecurity.dll from
LC 9 to the LC 5.x runtime folder! 8-)

I really had no idea that they were compatible!?

Nevertheless I will write to the mothership next week, just to get to
know why everythings works fine in the IDE but not in a runtime.

___
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: Server error?

2020-12-30 Thread Bob Sneidar via use-livecode
Just a shot in the dark, when you are working in the IDE, do you have a newer 
version of Livecode running?

Bob S


On Dec 30, 2020, at 3:09 PM, Klaus major-k via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Bob,

Am 30.12.2020 um 23:59 schrieb Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>>:

TLSv1 is dead. It uses the OpenSSL library that had the Heartbleed 
vulnerability. Not sure if v5 libraries can use the latest encryption 
libraries. I don’t know why not.

the big question is:
Why does it work in the IDE, but not in a runtime made with the same IDE?

Seems that the IDE and the runtime use different "revSecurity.dll"s?!

___
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: LiveCode Advanced Application Architecture eBook price reduced

2020-12-30 Thread Bob Sneidar via use-livecode
Done. 

Bob S


> On Dec 29, 2020, at 4:26 PM, Andre Garzia via use-livecode 
>  wrote:
> 
> Hey Friends,
> 
> I've reduced the price of my LiveCode eBook to £9.99. This book will teach
> you advanced techniques, and contains a ton tips and tricks from a seasoned
> LC developer.
> 
> Get it from:
> https://andregarzia.com/books/livecode-advanced-application-architecture.html
> 
> Kind regards
> Andre
> 
> -- 
> https://www.andregarzia.com 
> Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia
> ___
> 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: Server error?

2020-12-30 Thread Bob Sneidar via use-livecode
TLSv1 is dead. It uses the OpenSSL library that had the Heartbleed 
vulnerability. Not sure if v5 libraries can use the latest encryption 
libraries. I don’t know why not. 

Bob S


> On Dec 30, 2020, at 7:09 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi all,
> 
> I am currently working on a stack in LC 5.x for a customer.
> This stack only loads another stack from a server and displays it.
> 
> Works fine in the IDE, but I get this error when trying this in the 
> standalone, alle externals etc. are in fact present.
> 
> The error reads:
> --
> Cannot connect
> error error:1407742E:SSL
> routines:SSL23_GET_SERVER_HELLO:tlsv1
> alert protocol version
> ---
> 
> Maybe this is a mismatch between the SSL version on the server
> and the SSL version in LC5.x? 
> 
> But then it should also not work in the IDE!? This is very strange.
> 
> Any insights and workarounds, if any, are very welcome, thanks!
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> 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: How to set up a library?

2020-12-29 Thread Bob Sneidar via use-livecode
This is actually the only way. Besides Start Using a stack, which inserts the 
script of the target stack into back, if the script of a button is to be used 
as a library (or back/front script would be a better way to say it), insert 
into back or front is the way to do it. Otherwise setting the behavior of 
something will be persistent, but accomplishes the same thing really. It 
inserts the script of the object containing the behavior into the message path.

Behaviors are a little different however when referring to me or this me. These 
return empty when in a front of back script and return the target and behavior 
of the target respectively when used in a behavior script.

Bob S


On Dec 29, 2020, at 11:34 AM, Ben Rubinstein via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

What is the best way to structure a library these days?

Currently I've got buttons with a script, and a 'mouseup' handler to 'insert 
the script of me into back' in my object library. But I don't think that's very 
modern.

What's the right way to do it? Especially if I want to share it?

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


Re: move cursor to the end of a line in a field

2020-12-23 Thread Bob Sneidar via use-livecode
off the top of my head, select char -1 to -1 of the focusedObject (or me if in 
the script of the field itself). Trouble is I am trying this in the field 
script itself and it doesn’t work, but if I enter select char -1 to -1 of field 
7 in the message box it DOES work. 

Bob S


> On Dec 23, 2020, at 11:57 AM, Douglas A. Ruisaard via use-livecode 
>  wrote:
> 
> I need to position the cursor at the end of the contents of a single line
> field.  This can be "manually" done by pressing the "END" key while the
> cursor is in that field.  I want to do that positioning programmatically...
> but ...
> 
> I've searched all of the "...KeyDown" message options (e.g. commandKeyDown,
> controlKeyDown, optionKeyDown) and the other "key" message options (e.g.
> functionKey) and cannot find one which will tell me what the "END" key is...
> a Windows resource tells me it is "35" 
> 
> "rawKeyDown" tells me the raw key is 65367 ... but how do I "send" a rawkey
> value to the active field?  Or, ideally, can someone tell me how to
> "emulate" the "END" key and position the cursor at the end of the contents
> of a single line field?
> 
> Likely simple but I just can't work it out.  Thanks in advance! 
> 
> Douglas Ruisaard
> 
>Trilogy Software
>  (250) 573-3935
> 
> 
> 
> 
> ___
> 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: Encrypting Stack Breaks Field References

2020-12-23 Thread Bob Sneidar via use-livecode
I chose the more likely of the two possibilities. :-)

Bob S


On Dec 22, 2020, at 9:38 PM, J. Landman Gay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Rather, I didn't mean the team invented script-only stacks for Trevor in 
particular, but rather than they moved to git and needed text files.

English is such a positional language.
--
Jacqueline Landman Gay | 
jac...@hyperactivesw.com
HyperActive Software | 
http://www.hyperactivesw.com

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


Re: Encrypting Stack Breaks Field References

2020-12-22 Thread Bob Sneidar via use-livecode
Hmmm… Isn’t Levure almost completely based on script only stacks? 

Bob S


> On Dec 22, 2020, at 4:09 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> Unless you specifically need text files for git or some other reason, you 
> don't really need script-only stacks. Put the script in a button and then put 
> it in use or use it as a backscript. It will be encrypted when the stack is. 
> Another advantage to keeping scripts in the stack is that they work with 
> remote debugging, unlike text based scripts.
> 
> Brian Milby's script tracker is also a way to get the best of both worlds. It 
> saves scripts out to text files for uploading to github while keeping the 
> advantages of stack-based scripts.
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On December 22, 2020 3:24:11 PM Bob Sneidar via use-livecode 
>  wrote:
> 
>> What he said. The promise of creating standalones and encrypted stacks 
>> containing code sounds promising, but there are caveats. It begs the 
>> question, how do we encrypt script only stacks or libraries? I don’t use 
>> encrypted stacks because my code is for internal use only, but if I ever 
>> went commercial, this would be something I would need.
>> 
>> Bob S
>> 
>> 
>>> On Dec 13, 2020, at 4:02 PM, Richard Gaskin via use-livecode 
>>>  wrote:
>>> 
>>> Ron Noice wrote:
>>> 
>>> ? My program (built with LC 9.6.1 Indy Windows) contains a large number
>>> > of references to fields by variables.
>>> ...
>>> > only when I encrypt it does it fight back. Here's a simplified example
>>> > of what I'm doing:
>>> >
>>> > create group "grpTree"
>>> > ...
>>> > copy fld "baseBox" to grp "grpTree"
>>> 
>>> ^ that's your issue.
>>> 
>>> Copying objects is disallowed in an encrypted stack, since of course once 
>>> an object is copied it could be pasted into an unencrypted stack, and thus 
>>> expose the source.
>>> 
>>> You might consider moving the code from the encrypted stack to an encrypted 
>>> behavior object, leaving the stack where copying must be done unencrypted.
>>> 
>>> But if these objects are being copied only by script for the purpose of 
>>> automatically building out a UI, without a need to alter the user's 
>>> clipboard, you might consider using the clone command instead.
>>> 
>>> --
>>> Richard Gaskin
>>> Fourth World Systems
>>> Software Design and Development for the Desktop, Mobile, and the Web
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Secure connection to server

2020-12-22 Thread Bob Sneidar via use-livecode
I think I remember why I couldn’t do it. I was using the loopback connector for 
some reason.

Bob S


On Dec 22, 2020, at 2:21 PM, Ralph DiMola via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Tried it on Mac (Mojave) and it worked. Though I did have to use the IP address 
rather than the Mac's name in the client. I wonder what I'm doing wrong?

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

___
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: Secure connection to server

2020-12-22 Thread Bob Sneidar via use-livecode
Hmmm… didn’t work on my Mac. Not sure why, it may be something I did.

Bob S


On Dec 22, 2020, at 1:48 PM, Ralph DiMola via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

I'm able to have the socket client and server on the same device. (Win 10)

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

___
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: Secure connection to server

2020-12-22 Thread Bob Sneidar via use-livecode
I created a simple client and server stack combo that uses sockets to pass an 
encrypted stream of data back and forth. I have been meaning to implement it 
for the very reasons you suggest, but since the nature of the data doesn’t 
demand it, and since I develop basically gratis for the company I work for, it 
hasn’t been a priority. The concept is simple though. Start with a server stack 
that listens on a certain port, then create a client stack that opens a port to 
that server. (You can’t do it on a single workstation, the server has to be a 
different device.)

Once you have that, code the server to accept the data, then send it back to 
the client. Once that is working, encrypt / decrypt the data both ways and 
check that what you sent is what you receive.

Finally code the server to receive the data, do some process then return the 
resulting data. Simple, right? :-)

Bob S


On Dec 15, 2020, at 4:32 PM, Neville Smythe via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

A little while ago in this forum we were alerted to the fact that LC direct 
connection to a remote database not using SSL was a security hole. This also 
applies to managing Mailman lists on a remote server.

After a steep (re-)learning curve with the various technologies, I now have a 
working method in place for both mysql and Mailman connections, using php as 
middleware and posting via curl in a shell script. But it is sooo slooow.

Direct connection downloaded an sql query in a fraction of a second. It now 
takes over a second. This is acceptable (barely) for an isolated call,  but I 
sometimes need to make a sequence of posts. As I understand it, the slowness is 
due to the time required to establish the secure connection, not an LC problem. 
For example establishing an ssh connection in Terminal is even slower; but once 
established an ssh session is super fast. Similarly curl will reuse 
authentication credentials within a shell session, so I aggregate as many calls 
as I can with a single shell script before using shell(myscript), and this 
definitely helps.

What I would like to do however is use LC server as the middleware: I could 
then process the required data on the server side; I could not contemplate 
using php to do this. I suspect the LC post command uses curl under the hood, 
but I also suspect each post call would create its own session. I don’t think 
it is possible to establish a single session to talk sequentially to lcserver; 
if so this would be too slow. Am I correct?

Actually I guess I could  just use my present method using curl and shell() 
instead of post, but addressed to an .lc script instead of .php?

Or is there a whole better way to do what I want?

Neville Smythe

___
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: Encrypting Stack Breaks Field References

2020-12-22 Thread Bob Sneidar via use-livecode
What he said. The promise of creating standalones and encrypted stacks 
containing code sounds promising, but there are caveats. It begs the question, 
how do we encrypt script only stacks or libraries? I don’t use encrypted stacks 
because my code is for internal use only, but if I ever went commercial, this 
would be something I would need. 

Bob S


> On Dec 13, 2020, at 4:02 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Ron Noice wrote:
> 
> ? My program (built with LC 9.6.1 Indy Windows) contains a large number
> > of references to fields by variables.
> ...
> > only when I encrypt it does it fight back. Here's a simplified example
> > of what I'm doing:
> >
> > create group "grpTree"
> > ...
> > copy fld "baseBox" to grp "grpTree"
> 
> ^ that's your issue.
> 
> Copying objects is disallowed in an encrypted stack, since of course once an 
> object is copied it could be pasted into an unencrypted stack, and thus 
> expose the source.
> 
> You might consider moving the code from the encrypted stack to an encrypted 
> behavior object, leaving the stack where copying must be done unencrypted.
> 
> But if these objects are being copied only by script for the purpose of 
> automatically building out a UI, without a need to alter the user's 
> clipboard, you might consider using the clone command instead.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web

___
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: Rer: Decrypt problem on Windows solved

2020-12-22 Thread Bob Sneidar via use-livecode
I get a user entered password and encrypt it before storing it. It works cross 
platform. I suppose it would depend on what is in the original string. For 
instance option-v produces a checkmark on a Mac, but NOT on a PC and I assume 
Linux. Normal ASCII-256 characters should work fine.

Bob S


On Dec 14, 2020, at 2:56 PM, Neville Smythe via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Could you try to textEncode the encrypted data before saving it in the
custom property, and then, in the other platform, textDecode it before
decrypting it?

Many thanks Panos, yes, that fixed the problem.

It never occurred to me that reading binary data from the custom properties of 
a stack should be treated with same caveat as downloading from an external 
source. Todays “learnings” (horrible newly fashionable word).

Neville Smythe

___
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: return "error" code from standalone compile

2020-12-11 Thread Bob Sneidar via use-livecode
Autohotkey is a windows only macro program. 

Bob S


> On Dec 11, 2020, at 07:01 , Ken Ray via use-livecode 
>  wrote:
> 
> Wow... I've been using Livecode since its inception (and Revolution before 
> that, and even MetaCard before *that*!), and I never knew this existed!
> 
> Just goes to show that there's always something new to learn about our 
> favorite development tool. 
> 
> (I wonder if anyone's put together a "list of things Livecode can do that you 
> probably didn't know about" ?)
> 
> :D
> 
> 
> Ken Ray
> Sons of Thunder Software, Inc.


___
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: LC 9.6.2RC fix for tabs still a problem for Big Sur

2020-11-25 Thread Bob Sneidar via use-livecode
Precisely why I created my tab group object.

Bob S


On Nov 25, 2020, at 2:28 PM, Bill Vlahos via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

My application is a standalone stub that opens a stack.

If I open the stack in the IDE, the tabs look correct. If my application opens 
the stack, the tabs have the artifact that the selected tab is white text on a 
white background. Strange.

If I create a standalone with tabs they look correct in both the IDE and the 
standalone.

I don’t know what would be different when my application opens the stack.

Thanks for any suggestions.

Bill Vlahos

___
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: Strange bug

2020-11-24 Thread Bob Sneidar via use-livecode
I will attest to the fact that strange things happen with drag drop and not 
just with Livecode. For instance if I drag a PDF to a mounted share, often, but 
not every time, Mail becomes unresponsive and I have to quit it and relaunch 
it. Also when drag dropping files from the Finder onto a Livecode object I get 
the “snap back” visual, and then the next drag drop operation will not work 
until I click the title bar of the LC window I am dragging to, or else move the 
window in some way. 

Bob S


> On Nov 24, 2020, at 4:32 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> FYI: I found a very strange and serious bug, if you have a minute, please 
> take a look:
> 
> A real showstopper in my opinion!
> 
> With an example stack (in my dropbox, my browser does not allow me to select 
> a file as attachment!?). Shows the problem clearly on a Mac.
> May probably work correctly on Windows, maybe not.
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> 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: Getting a real number from scientific notation

2020-11-23 Thread Bob Sneidar via use-livecode
It’s more than that. There is so much to RegEx, and the different iterations of 
it, that no dictionary could really cover it. If you want to familiarize 
yourself with Regex, you really need to visit a tutorial site. Heck, even when 
you google how to do something, you will likely get a discussion going as to 
why the first solution posted won’t work right for situation x or y, then 
someone will contradict that person and before you know it 5 or 6 of the people 
who actually KNOW Regex will jump into the fray. You may or may not get a 
really good answer. 

Bob S


> On Nov 23, 2020, at 4:43 PM, Roger Guay via use-livecode 
>  wrote:
> 
> Unfortunately, there are not enough examples in the dictionary for an amateur 
> like myself to understand it!
> 
> Roger
> 
>> On Nov 23, 2020, at 4:09 PM, Paul Dupuis via use-livecode 
>>  wrote:
>> 
>> All this is why I prefer format() over numberFormat. The function is more 
>> versatile and you get exactly what you specify with less guess work.
>> 
>> On 11/23/2020 6:52 PM, Roger Guay via use-livecode wrote:
>>> Yaknow, this whole thing is confusing. Turns out you don’t even need to set 
>>> the numberFormat.
>>> put 4.21911e+11 + 0 results in 42191000.
>>> 
>>> Roger
>>> 
 On Nov 23, 2020, at 2:44 PM, Craig newman via use-livecode 
  wrote:
 
 Nope.
 
 The "numberFormat" property is perfectly happy with quotes around its 
 formatExpression. It is also perfectly happy without it. But I always use 
 quotes for things like this.
 
 Craig
 
 -Original Message-
 From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
 Behalf Of Roger Guay via use-livecode
 Sent: Monday, November 23, 2020 5:25 PM
 To: How to use LiveCode 
 Cc: Roger Guay 
 Subject: Re: Getting a real number from scientific notation
 
 That works. Thanks, Klaus!
 
 Roger
 
 
 
> On Nov 23, 2020, at 1:55 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Roger,
> 
> you forgot + 0 :-)
> 
> on MouseUp
> set the numberformat to 0 # NO quotes around this 0 or LC gives an
> error  put 4.21911e+11 + 0 End mouseUp
> 
> -> 42191100
> 
>> Am 23.11.2020 um 22:50 schrieb Roger Guay via use-livecode 
>> :
>>  on MouseUp
>>  set the numberformat to  “0"
>>  put 4.21911e+11
>>  End mouseUp
>> puts 4.21911e+11 into msg box
>> What am I missing?
>> 
>> Roger
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> 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
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> 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: filter

2020-11-20 Thread Bob Sneidar via use-livecode
Yeah, not confusing at all. ;-P

Bob S


On Nov 20, 2020, at 9:55 AM, Mark Wieder via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On 11/20/20 3:27 AM, David V Glasgow via use-livecode wrote:
Apologies for barging in, but I am confused by regex generally and in this 
specific example by the function of the terminal ‘+’  If you are only finding 
one character, why do you need to specify 'at least one' of one char?

Ha!
Yeah, I actually mistyped that (moi?).

"^\[" is all that's necessary for the filter command.

...but Klaus' form of "[[]*[]]" is actually better if the field has
[500] and then text

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

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


Re: filter

2020-11-19 Thread Bob Sneidar via use-livecode
I don’t think I could watch! Oh the horror!

Bob S


> On Nov 19, 2020, at 9:17 AM, Keith Clarke via use-livecode 
>  wrote:
> 
> The chronicles of regex - a potential blockbuster there, Bob! :-)
> Best,
> Keith
> 
>> On 19 Nov 2020, at 16:49, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> No one escapes the lair of the Regex Demon. Except for maybe Riddick.
>> 
>> Bob S
>> 
>> 
>> On Nov 19, 2020, at 8:15 AM, Keith Clarke via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Ha, yes I understand that desire - and Mark’s one-character escape trick 
>> beats my hack to bypass the lair of the regex demon! :D
>> Best,
>> Keith
___
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: filter

2020-11-19 Thread Bob Sneidar via use-livecode
No one escapes the lair of the Regex Demon. Except for maybe Riddick.

Bob S


On Nov 19, 2020, at 8:15 AM, Keith Clarke via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Ha, yes I understand that desire - and Mark’s one-character escape trick beats 
my hack to bypass the lair of the regex demon! :D
Best,
Keith

___
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: PDF Manipulation was Design Question

2020-11-18 Thread Bob Sneidar via use-livecode
That should have read preconfigured to read the FDF file (stupid spell correct!)

Bob S


On Nov 18, 2020, at 12:15 PM, Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

preconfigured to read the pdf file of course

___
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: PDF Manipulation was Design Question

2020-11-18 Thread Bob Sneidar via use-livecode
If you are talking about form data, there IS a way to configure a PDF so that 
it reads a data file contains just form data and populates with the new data. 
This works with Mac and Windows, and I assume with Linux, but the caveat is 
that the PDF has to be configured to do this first.

The format is not difficult to grok. I use it in my Forms Generator app 
extensively to fill blank forms with data from an SQL server. I have handlers 
for reading and creating these files (they end in .fdf). It get’s a little more 
difficult to understand when dealing with things like check boxes and radio 
buttons, and especially tables. For instance the two default values for a 
checkbox (unless you modify the checkbox object in the PDF) is false and yes.

My application has an interface for importing a pre-existing fillable form 
(preconfigured to read the pdf file of course), creating relationships between 
the database columns and the form objects, and saving those relationships along 
with the binary data to recreate the pdf on demand, in the SQL database.

Is that what you need?

Bob S


On Nov 18, 2020, at 12:02 PM, Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

At my work we have a, frankly stupid, situation that could be made so
much easier if we had software do a simple function. All that is needed
is that a PDF file that comes to me gets some of its text changed and
the changes are according to a specific pattern.

___
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: PDF Manipulation was Design Question

2020-11-18 Thread Bob Sneidar via use-livecode


On Nov 18, 2020, at 10:34 AM, John McKenzie via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:


Comments people were making to William in the Design Question thread
have caused me to question some things and I am going to the list here
to get an answer.

Can Livecode edit existing PDF files? I would think this far beyond
its scope and just not the sort of thing it would be involved with. Am
I wrong on that though?

Short answer, no. Long answer, it depends. On a Macintosh, AppleScript can be 
used to manipulate form objects, but as far as the actual “burned in” content, 
I do not think so. This is on purpose, as if this were possible, PDFs could not 
be secure. Also if the PDF has been secured, nothing can modify it.

On a PC, there are libraries for C++ and Java that allow manipulation of PDFs, 
again dependent on the PDFs own security settings.

In either case, Acrobat has certain security features built in, so that some 
things cannot be modified by an API if it does not have the proper security 
context. It is kind of like variable scoping, but from a security point of 
view. That may not be a great analogy, but to get more info read the Javascript 
API to learn what I am talking about.

https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_api_reference.pdf

Bob S


At my work we have a, frankly stupid, situation that could be made so
much easier if we had software do a simple function. All that is needed
is that a PDF file that comes to me gets some of its text changed and
the changes are according to a specific pattern.

I thought about getting around to making something that would do that
in one of the more powerful scripting languages. However, if I could use
Livecode it would have some advantages. Namely it would be easier to
create and be very multi-platform.

So here I am having assumed that Livecode is not a tool that could
do what I want but now asking can I use it to automate editing text in a
PDF file?



The edits are simple, BTW. I work at an airport and it would just need
to replace a flight number with the flight number and code next to it.
The code is always the same for a particular route.

So for example, if the incoming PDF has the text "WS252" on it I would
want it changed to "WS252 LV". Each file would have 20-30 flights to
change like this.

Thanks.

___
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: Design Question

2020-11-18 Thread Bob Sneidar via use-livecode
Does your stack auto-save anything at any time? If power fails during a save 
operation, there will be another stack file of the same name preceded by a 
tilde (~). Deleting the tilde will restore the prior version of the stack file.

Sometimes a power outage can damage the partition of the HDD. I would have UPS 
backups on all the systems you deem critical, and check these UPS systems every 
three months or replace them outright every three years (typical life 
expectancy of a lead acid battery).

Bob S


On Nov 18, 2020, at 2:20 AM, Lagi Pittas via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi,

I had 70 PS POS systems in the field and I saved the  list of items and
other info  after each addition it worked 99.9% of the time. But when it
failed (4 or 5  times a year) usually the same
customer (same hardware same windows 7 )I had to log in and copy a blank
livecode stack. In the end I had to save the info in the Sqlite database -
No problems since.

The stackfile never seemed to damage because of a power failure/outage or
anything - but had a greater chance if that was the case. The funny thing
was if you did switch the power off  off
without doing a proper shutdown there was no damage 99.9% of the time.
Never did get to the bottom of it.

Regards Lagi

___
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: Delete Menu Item from Option Menu Button

2020-11-16 Thread Bob Sneidar via use-livecode
I always use “the text of” to make it more readable.

Bob S


On Nov 14, 2020, at 4:31 PM, Mark Wieder via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On 11/14/20 4:03 PM, Roger Guay via use-livecode wrote:
Can someone tell me how to delete a menuItem from an Option Menu button 
programmatically?
Standing by ready to apply dope slap.

No dope slap necessary - it's not really obvious.
The menuItems are stored as the text of the button, so you can get and set it 
easily.

put button  into tText
-- edit tText here
-- you can do a lineOffset and delete line x of tText
put tText into button 

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

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


Re: Reading key values in info.plist file iOS or Mac using XML library?

2020-11-12 Thread Bob Sneidar via use-livecode
It is certainly possible! But depending on the complexity of the xml document 
it may not be easy. I’ve posted before that I attempted to work with an 
exported XML document from a Toshiba Copier’s Templates (scan presets), but the 
document was mindbogglingly complex. One issue I ran into is keys which have 
the same name, so trying to convert the xml to an array failed just on that 
score. Without knowing what the structure of the XML is supposed to be, a data 
dictionary for the XML document as it were, I may as well be reading the output 
of Data’s positronic interface. 

Bob S


> On Nov 12, 2020, at 4:30 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> Hi,
> 
> does anyone know if it is possible to use the xml library to read values from 
> an info.plist file?
> 
> 
> Regards,
> 
> Matthias 
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
> 
> ___
> 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: Best way to add an image to an oval graphic?

2020-11-11 Thread Bob Sneidar via use-livecode
I should have said just create an image file the size and appearance that you 
want it to be, then import it into Livecode.

Bob S


On Nov 11, 2020, at 8:40 AM, Bob Sneidar via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Ideally though, just create an image file the size and appearance that you want 
in Livecode, unless you need it to change.

___
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: Best way to add an image to an oval graphic?

2020-11-11 Thread Bob Sneidar via use-livecode
As a pattern of a graphic, I don’t think so. Even scaling the graphic does not 
shrink or alter the position of the pattern.

Why are you using a graphic instead of just an image? I think you can mask an 
image, so it should be possible to only show through what you want.

Ideally though, just create an image file the size and appearance that you want 
in Livecode, unless you need it to change.

Bob S


On Nov 11, 2020, at 8:20 AM, William de Smet via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Graig,

I think I understand it a bit better now.
The image I used has different dimensions than the graphic oval.
See screenshot: https://ibb.co/0tXkLHy

I could scale the image down to the same size (width) as the oval graphic
but then I don;t get the center of the image.
Because it is a pattern?
Is it possible to get the center of the image in the oval graphic?

LC 9.6.1



greetings,


William

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


Re: The Most Stupid Question Ever?

2020-11-11 Thread Bob Sneidar via use-livecode
The message box is not a container. It’s a stack. A stack that tracks global 
properties, global variables, pending messages and stacks in use actively. It 
stands to reason then that it has to be either in the message path somehow. I’m 
not sure how that affects things, but I have noticed while attempting to track 
the contents of variables while a script was executing buy putting values in 
the msg that it doesn’t update until idle irregardless of whether I issue a 
wait or no, unless I use with messages.

Bob S


On Nov 11, 2020, at 3:04 AM, David V Glasgow via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

So then LC knows when the message box is about to be the target, and
therefore acts differently than with any other container. The actual already
executed  command "put" is left stranded, unrequited, because the next line
in sequence, not yet executed,  has foreknowledge that the upcoming target
is the message box, and is girding itself to access it??

___
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: The Most Stupid Question Ever?

2020-11-10 Thread Bob Sneidar via use-livecode
I vaguely remember long time, many moons, this came up. The upshot of the 
conversation is that because the message box is a stack file in it’s own right, 
certain features would only work this way, or it would interfere with other 
things if it didn’t work this way. I dunno, it was all all so hazy back then, 
what with having to watch for dinosaurs and large predators with teeth like 
swords. 

Bob S


> On Nov 10, 2020, at 12:03 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Ah! That would have to mean that script interaction with the message box is 
> using send in time!
> 
> Bob S
> 
> 
> On Nov 10, 2020, at 10:58 AM, Craig newman via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Not stupid. Wierder than you think.
> 
> Substitute "field 1" for the message box. Works just fine, like it ought to.
> 
> Craig
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
> Of Bob Sneidar via use-livecode
> Sent: Monday, November 09, 2020 12:04 PM
> To: How to use LiveCode 
> mailto:use-livecode@lists.runrev.com>>
> Cc: Bob Sneidar 
> mailto:bobsnei...@iotecdigital.com>>
> Subject: Re: The Most Stupid Question Ever?
> 
> I have seen this sort of thing before with the wait command. Very 
> frustrating. Apparently Livecode is not *strictly* single threaded.
> 
> Bob S
> 
> ___
> 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: The Most Stupid Question Ever?

2020-11-10 Thread Bob Sneidar via use-livecode
Ah! That would have to mean that script interaction with the message box is 
using send in time!

Bob S


On Nov 10, 2020, at 10:58 AM, Craig newman via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Not stupid. Wierder than you think.

Substitute "field 1" for the message box. Works just fine, like it ought to.

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Bob Sneidar via use-livecode
Sent: Monday, November 09, 2020 12:04 PM
To: How to use LiveCode 
mailto:use-livecode@lists.runrev.com>>
Cc: Bob Sneidar 
mailto:bobsnei...@iotecdigital.com>>
Subject: Re: The Most Stupid Question Ever?

I have seen this sort of thing before with the wait command. Very frustrating. 
Apparently Livecode is not *strictly* single threaded.

Bob S

___
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: The Most Stupid Question Ever?

2020-11-09 Thread Bob Sneidar via use-livecode
I have seen this sort of thing before with the wait command. Very frustrating. 
Apparently Livecode is not *strictly* single threaded. 

Bob S


> On Nov 8, 2020, at 22:31 , Roger Guay via use-livecode 
>  wrote:
> 
> Thank you, Mark. You’re very kind! And very helpful. I do remember now how 
> one needs to wait with messages.
> 
> Roger
> 
>> On Nov 8, 2020, at 9:05 PM, Mark Wieder via use-livecode 
>>  wrote:
>> 
>> On 11/8/20 8:02 PM, Mark Wieder via use-livecode wrote:
>>> On 11/8/20 6:57 PM, Roger Guay via use-livecode wrote:
 Please tell me why this doesn’t work:
>> 
>> ...and that is, btw, hardly a stupid question.
>> You want stupid you'll have to get in line after me.
>> 
>> -- 
>> Mark Wieder
>> ahsoftw...@gmail.com
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Is the DateFormat read only?

2020-11-09 Thread Bob Sneidar via use-livecode
Your code contains a smart quote and an em dash. This works:

function fUTCTime
   local t1,t2,t3
   -- this gets the current time and puts it into UTC format, i.e 
-MM-DDThh:mm:ssTZD
   put word 5 to 6 of the internet date into t3 -- we are interested in the 
time and time zone
   put the long time into t1
   convert t1 to dateItems -- format is ,m,d,h,m,s,day no.
   put (item 1 of t1) & "-" & f2digits(item 2 of t1) & "-" & f2digits(item 3 of 
t1) &"T" & word 1 of t3 into t2
   put word 2 of t3 into t1 -- the time zone indication
   get char 1 of t1 -- the code for 0 (zero) is Z, apparently
   
   if it <> "+" and it <> "-" then
   put "Z" after t2
else
   put t1 after t2
end if

return t2
end fUTCTime

function f2digits theNum
-- add a leading zero. We don't check if there are more than two digits
  if number of chars of theNum = 1 then
 return ("0" & theNum)
  else
 return theNum
  end if
end f2digits

Bob S

> On Nov 7, 2020, at 02:27 , Graham Samuel via use-livecode 
>  wrote:
> 
> function fUTCTime
>   local t1,t2,t3
>   -- this gets the current time and puts it into UTC format, i.e 
> -MM-DDThh:mm:ssTZD
>   put word 5 to 6 of the internet date into t3 -- we are interested in the 
> time and time zone
>   put the long time into t1
>   convert t1 to dateItems -- format is ,m,d,h,m,s,day no.
>   put (item 1 of t1) & "-" & f2digits(item 2 of t1) & "-" & f2digits(item 3 
> of t1) &"T" & word 1 of t3 into t2
>   put word 2 of t3 into t1 -- the time zone indication
>   get char 1 of t1 — the code for 0 (zero) is Z, apparently
>   if it <> "+" and it <> "-“ then
>  put "Z" after t2
>   else
>  put t1 after t2
>   end if
>   return t2
> end fUTCTime
> 
> function f2digits theNum
> -- add a leading zero. We don't check if there are more than two digits
>   if number of chars of theNum = 1 then
>  return ("0" & theNum)
>   else
>  return theNum
>   end if
> end f2digits
> 
> 
>> On 7 Nov 2020, at 01:34, Alex Tweedly via use-livecode 
>>  wrote:
>> 
>> I don't think it "strips" the TZ info - it simply ignores it. I think the 
>> key phrase is in the dictionary as :
>> 
>>> *Note:* The *convert* command assumes all dates / times are in local time 
>>> except for 'the seconds', which is taken to be universal time.
>>> 
>> So it assume syou date is in local time (regardless of the +0300), and 
>> therefore your example returns + for you (I assume you're in the UK, or 
>> equivalent,  now). It does the same for me, and returns the date with 
>> "+".
>> 
>> However, the same code run on my LC server (wherever on-rev is these days), 
>> changes the +0300 to -0500 - i.e. it's taken as local time where the server 
>> is.
>> 
>> 
>> I assume you should be able to do something with the TimeZone library - but 
>> I'm struggling to figure that out.
>> 
>>>   local tNow
>>>   put the seconds into tNow
>>>   put FromUniversalTime(tNow,"US/Central") into tt
>>>   put tNow && tt
>>>   put FromUniversalTime(tNow,"US/Alaska") into tt
>>>   put CR & tt after msg
>> gives me
>> 
>> 1604709030 1604709030
>> 
>> 1604709030
>> 
>> so I don't have a clue  what it was trying to do !?!
>> 
>> Alex.
>> 
>> On 06/11/2020 21:28, David Bovill via use-livecode wrote:
>>> Why does:
>>> 
>>> get "Fri, 06 Nov 2020 10:57:37 +0300"
>>> convert it to internet date
>>> put it
>>> 
>>> — give
>>> "Fri, 06 Nov 2020 10:57:37 +"
>>> 
>>> Just seems to strip the timezone info?
>>> On 30 Oct 2020, 21:29 +, How to use LiveCode 
>>> , wrote:
 ToUniversalTime
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 

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


Re: Segmented Control Widget

2020-11-09 Thread Bob Sneidar via use-livecode
I believe so. In my custom tabbed object group, I had to put transparent 
buttons over the tabs, then have a way to size and rearrange the buttons to 
match the size of the tabs, just so I could get it to respond to mouse messages 
and drag/drop operations. It's so ugly it's cute. Like a shar-pei. 

Bob S


> On Nov 7, 2020, at 24:39 , Terence Heaford via use-livecode 
>  wrote:
> 
> 
> 
>> On 5 Nov 2020, at 20:10, J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> I've done this with a custom control group, it should work with a widget 
>> too. Calculate the rectangles (or at least the left and right edges) of each 
>> segment and in a mouseEnter handler compare the mouseLoc to the rectangles 
>> to see which one it's in. Then set the tooltip to the appropriate string. 
>> You can also add a mouseMove handler to do the same thing if you want to 
>> change tooltips as the mouseLoc changes inside the widget.
> 
> 
> I placed the segmented control widget in a group and put a simple
> 
> on mouseEnter
> beep
> end mouseEnter
> 
> in the script of the group.
> 
> This did not implement a beep sound.
> I placed the same script in the segmented control and that did not make a 
> beep either.
> 
> 
> I read the dictionary for mouseEnter and it does not apply to a group, I 
> assume it also does not apply to the segmented control widget.
> 
> 
> I then created three standard buttons and placed those in a group.
> Placed the above script in the group.
> and each time the mouse entered a button it beeped. It did not beep upon 
> entering the group.
> 
> Is all this the correct behaviour?
> 
> If it is then it is not possible to create your own tooltip for a segmented 
> control widget unless there is some more fiddling that can be done.
> 
> It seems creating your own segmented control may be the only solution.
> 
> Any ideas
> 
> Thanks
> 
> Terry
> 
> 
> 
> ___
> 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: Segmented Control Widget

2020-11-05 Thread Bob Sneidar via use-livecode
The segmented control is fairly limited. Most of the widgets are. The 
properties you see are the properties you get. I did however, with a bit of 
clever scripting, develop a tabbed object group that works as well or better 
that the built in tabbed button. And for a bonus, it looks in Windows the same 
as it loos on the Mac. Really, the Windows UI is really horrible for LC. I just 
gotta say. It puts the Ugh in Ughly. 

Bob S


> On Nov 5, 2020, at 12:10 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 11/5/20 1:47 AM, Terence Heaford via use-livecode wrote:
>> I have been messing about with the Segmented Control Widget and have been 
>> trying to apply a tooltip.
>> I noted that the tooltip can only be applied to the whole control, it does 
>> not appear possible to have a tooltip for each segment.
>> Is this possible and if so could someone please advise.
> 
> I've done this with a custom control group, it should work with a widget too. 
> Calculate the rectangles (or at least the left and right edges) of each 
> segment and in a mouseEnter handler compare the mouseLoc to the rectangles to 
> see which one it's in. Then set the tooltip to the appropriate string. You 
> can also add a mouseMove handler to do the same thing if you want to change 
> tooltips as the mouseLoc changes inside the widget.
> 
> If the updated tooltip doesn't display reliably, set the tooltip to empty, 
> wait a millisecond or so, and then set it to the new string.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Plotting Equations that Bifurcate

2020-11-04 Thread Bob Sneidar via use-livecode
The plot sickens…

Bob S


On Nov 4, 2020, at 3:58 PM, Mark Wieder via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

On 11/4/20 3:37 PM, Jerry Jensen via use-livecode wrote:
Neil DeGraph Tyson?
On Nov 4, 2020, at 3:09 PM, Roger Guay via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Oooh, I like it! How about VanDeGraph?

The Graph is Always Greener.

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

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


Re: Ideas on iOS GPS tracking needed

2020-11-03 Thread Bob Sneidar via use-livecode
Seems to me if you are tracking linear movement, you need to average the 
trending values, say the last 5 or 10 reads, against a time base, and reject 
the ones outside an acceptable tolerance. You may reject some good data here 
and there, but something grossly outside tolerance should be pretty easy to 
grok.

Sounds easy, huh? :-) But it really is. For a car moving at 60mph, obviously 
the trend is going to be greater than a person walking, and slower than a small 
airplane. For an alien spacecraft traveling at insane speeds and making wild 
maneuvers, I’m afraid you are on your own. The tolerance can be a percentage of 
the average of the last x reads or the last x seconds. Seconds makes more sense 
to me since if you drop 2 or 3 reads it will skew the averages significantly. 
That is likely how Google Maps does it.

Bob S


On Nov 3, 2020, at 2:39 PM, Alan Stenhouse via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Graham

Are you checking the horizontal accuracy of each reading? (It's part of the 
array of data with your lat-longs, as well as speed, etc - though not on every 
phone).

If not, try that and see if the anomalous readings are hugely out. From my 
experience, that's normally the case. If so, the easiest thing is to drop them 
in the short term, unless you get too many and then you may need to be a bit 
fancier. If you do, would love to hear the solution that you come up with.

HTH, cheers

Alan

___
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: Query large CSV file as a data source?

2020-11-03 Thread Bob Sneidar via use-livecode
Just read for 10,000 lines and check for empty each time. 

Bob S


> On Nov 3, 2020, at 7:09 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> Regarding the loop.
> 
> you could do a
> 
> put the detailed files 
> 
> to get the file size of that csv file.
> 
> With that size you would now how often you have to run the loop
> 
> 
> 
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 03.11.2020 um 15:14 schrieb Keith Clarke via use-livecode 
>> :
>> 
>> Thank you Matthias, I wasn’t aware of that ability to open the file and read 
>> its contents straight from the disk. 
>> 
>> A quick experiment looks positive - no hanging and fast access - so I just 
>> need to work on the loop.
>> 
>> Much obliged.
>> 
>> Best,
>> Keith   
>> 
>>> On 3 Nov 2020, at 13:37, matthias rebbe via use-livecode 
>>>  wrote:
>>> 
>>> Couldn't you read the file partially
>>> 
>>> you would open the file for read
>>> 
>>> open file tFile for read
>>> 
>>> then in a repeat loop you could read e.g. 1 lines and process the data
>>> 
>>> read from file tFile for 1 lines
>>> 
>>> 
>>> Just a thought.
>>> 
>>> 
>>> -
>>> Matthias Rebbe
>>> Life Is Too Short For Boring Code
>>> 
 Am 03.11.2020 um 13:14 schrieb Keith Clarke via use-livecode 
 :
 
 Hi folks,
 I’ve a 3GB CSV file with 18M rows from which I need to create a subset CSV 
 file for the rows containing tString. The following script results in 
 LiveCode becoming unresponsive, so I’m wondering if I’m missing an obvious 
 trick or what alternative approach I might take...
 on mouseUp pButtonNumber
 
 -- Select CSV File
 
 answer file prompt as sheet
 
 put it into tFile
 
 put tFile into field "File"
 
 -- Process CSV extract
 
 put URL ("file:" & tFile) into tText
 
 put line 1 of tText into field "List"
 
 filter lines of tText with "*tString*"
 
 put tText into field tList
 
 end mouseUp
 
 I don’t normally deal with large data sets, so maybe LiveCode isn’t the 
 best tool for this but Excel 365 seems to only offer CSV file import, not 
 query.
 
 Any thoughts greatly appreciated.
 
 Thanks & regards,
 Keith
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> 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: Plotting Equations that Bifurcate

2020-10-30 Thread Bob Sneidar via use-livecode
Last time I plotted an equation while bifurcating, I was pretty drunk, and 
don't remember much. 

Bob S


> On Oct 29, 2020, at 15:03 , Roger Guay via use-livecode 
>  wrote:
> 
> I am trying to plot an equation that bifurcates by setting the points of a 
> polygon as I iterate the equation. But I can’t figure how to handle the 
> bifurcation. Any help will be greatly appreciated!
> 
> Roger

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


Re: Is the DateFormat read only?

2020-10-30 Thread Bob Sneidar via use-livecode
I have a formatDate() function (not to be confused with dateFormat) that has a 
few extra formats, one I call sql date for instance which is -mm-dd (and 
another function for time so I can produce a datetime compatible for SQL 
databases). 

I suppose it can be expanded for other formats, but when it comes to time 
zones, everything gets very complicated. Someone posted an article years ago as 
to why calculating current date and time in any given location is so 
complicated, and it has mostly to do with local standards. There are so many 
special cases, it really takes a centrally managed database to keep track of it 
all. 

Bob S


> On Oct 29, 2020, at 14:33 , Graham Samuel via use-livecode 
>  wrote:
> 
> Jacque
> 
> Right as usual. I had forgotten about the internet date, if I ever knew. I 
> suppose somewhere there is a little essay about all this but if so it is 
> buried in the LC documentation.
> 
> The only souci with this format is that it gives the month in alpha, 
> presumably according to the nationality of the OS. But it’s easy to get the 
> numeric month in other ways. Still, it is just a little bit fiddly to create 
> a full UTC date of the format:
> 
> -MM-DDThh:mm:ssTZD
> 
> Works OK now, just slightly more lines of code than I would have guessed.
> 
> Thanks (again).
> 
> Graham

___
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: Is the DateFormat read only?

2020-10-29 Thread Bob Sneidar via use-livecode
I believe that when you convert a pure time to dateitems it assumes the current 
date. The date has no time component so it assumes midnight of the current 
date. 

Bob S


> On Oct 29, 2020, at 04:04 , Graham Samuel via use-livecode 
>  wrote:
> 
> Just FYI, I think the dictionary is wrong or misleading in respect of what 
> the dateItems does. If you script this in the LC Message Box:
> 
> put the date into t1
> convert t1 to dateItems
> put t1
> 
> You get, e.g.
> 2020,10,29,0,0,0,5
> 
> 
> but if you script
> 
> put the english time into t1
> convert t1 to dateItems
> put t1
> 
> You get e.g.
> 2020,10,29,11,40,0,5
> 
> i.e if you specify the date, you only get the date; but if you specify the 
> time, you get the date thrown in. I could not deduce this from the 
> Dictionary, but maybe I am just poor at reading what it says.
> 
> Graham
> 
>> On 29 Oct 2020, at 09:29, Graham Samuel via use-livecode 
>>  wrote:
>> 
>> Thanks Tore - I had forgotten the existence of dateItems. That of course 
>> will do the trick. BTW I was trying to create dates in standard UTC format, 
>> and now I can.
>> 
>> Graham
>> 
>>> On 28 Oct 2020, at 23:18, Tore Nilsen via use-livecode 
>>>  wrote:
>>> 
>>> You can convert any given date to dateItems. Then you can use dateItems to 
>>> present the date in any format you like. A date converted to dateItems will 
>>> give you the following list of items: 
>>> 
>>> the year
>>> the month number
>>> the day of the month
>>> the hour in 24-hour time
>>> the minute
>>> the second
>>> the numeric day of the week where Sunday is day 1, Monday is day 2, and so 
>>> forth
>>> All according to the Dictionary.
>>> 
>>> To be sure that any valid date format is recognized as a date when you read 
>>> in the date you will like to convert, it is best to ask for the system date 
>>> or set the useSystemDate to true, as this will make all valid date formats 
>>> convert to dateItems.
>>> 
>>> Best regards
>>> Tore Nilsen
 28. okt. 2020 kl. 22:58 skrev Graham Samuel via use-livecode 
 :
 
 A quick test seems to show that the DateFormat can’t be changed by a ‘set’ 
 command.
 
 How then can I force a date to be in a given format? I’m really thinking 
 of the difference between US and European dates, i.e
 
 d/m/y versus m/d/y
 
 Obviously for some types of use, an LC program should be able to force the 
 format for consistency’s sake, regardless of where in the world it’s being 
 run.
 
 Can it be done?
 
 Graham
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> 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: Livecode server UNIX version (not Linux).

2020-10-29 Thread Bob Sneidar via use-livecode
Are we sure about this?? I thought Apple had moved completely away from BSD a 
long while back. 

Bob S


> On Oct 28, 2020, at 12:53 , Heriberto Torrado via use-livecode 
>  wrote:
> 
> Thanks Andre,
> 
> I realized that BSD kernels are not the same as MacOS kernels.
> As you say: MacOS has a hybrid kernel based on XNU and some parts of BSD.


___
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: Line length

2020-10-26 Thread Bob Sneidar via use-livecode
I have a field on one of my apps whose width needs to change depending on 
content, but there is a minimum and a maximum width aspect, so that an empty 
field doesn’t appear like a weird tiny rectangle or stretch to overlap other 
objects. 

I use something like:

if the formattedWidth of field x < tMinWidth then set the width of field x to 
tMinWidth
else if the formattedWidth of field x > tMaxWidth then set the width of field x 
to tMaxWidth
else set the width of field x to the formattedWidth of field x

Bob S


> On Oct 24, 2020, at 3:35 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Richmond,
> 
>> Am 24.10.2020 um 12:17 schrieb Richmond via use-livecode 
>> :
>> 
>> Over in the Forums someone has asked a question about measuring the length 
>> of text lines.
>> Of course one can count characters, but in most alphabetic systems different 
>> characters have different lengths.
>> Is there a way to measure the length as in LENGTH of a line rather than 
>> count the number of characters it
>> contains?
> 
> ...
> put the formattedwidth of line 1 of fld 1
> ...
> 
>> Richmond.
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> 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: DG outcomes on desktop vs mobile

2020-10-23 Thread Bob Sneidar via use-livecode
I got into the habit of setting the dgdata to empty before populating it 
because I ran into issues where my own code set the dgdata to something not an 
array, and this seems to bork the data grid. I think it was an empty array, or 
an empty record. This didn’t show up as a blank line however, the data 
displayed correctly, but the data grid became unresponsive. It didn’t show up 
in the text view of the property inspector either. I had to put the dgtext into 
the msg and then the blank line showed up.

Bob S


On Oct 23, 2020, at 5:19 AM, Andrew at MidWest Coast Media via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

This happened to me, twice, in a project I just launched. I was in crunch so 
didn’t have time to properly document but something happened where the DG 
wasn’t loading. I could take the same dgData or dgText and load it to another 
DG fine. Being on mobile made this harder to debug because even with Remote 
Debugger I would still have to compile and launch to the simulator each time I 
tried a tweak.

Because I was up against a deadline and since I wasted several hours trying to 
troubleshoot I just replaced the DG with a brand new: everything worked. Didn’t 
even bother to troubleshoot the 2nd time it happened, just immediately made a 
new DG and moved on.

Not a definitive answer to your question but an acknowledgement of your problem.

—Andrew Bell

I'm building an iPad app that reads a bunch of files into an array and
then sets the dgData of a form DG to that array. The array is
well-formed for DG use. After setting the dgData of the DG, the result
is empty. Only one problem: the DG now contains no data. (I also tried
setting the dgText of the DG to a flat version of the same data and got
the same outcome.)

I can then create another array from custom property data and set the
dgData of the same form DG to that array and it works.

On the desktop, however, the same DG loading process never fails.

The data being loaded is all text - nothing esoteric.

Does anyone have any ideas how I can find & fix the problem(s)? Or have
you run into this before?

Thank you -
Phil Davis

___
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: Question about Windows 10 for Surface

2020-10-20 Thread Bob Sneidar via use-livecode
Yes. It’s Windows 10. I do not thing there is anything different about a tablet 
running Windows 10 and a PC.

There WERE some mobile devices running some sort of Windows OS that was NOT 
v10, but I haven’t seen one of those in years. They were as I understand it a 
total flop. People who want Windows want WINDOWS and those who don’t, well they 
don’t. Curious that something so simple escapes these big computer companies.

Bob S


On Oct 20, 2020, at 12:48 AM, jbv via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi list,
I have a request from a potential client for an app that should run on iOS, 
Android and Microsoft devices.
AFAIK, Microsoft has dropped Windows 10 Phone in 2019.
But what about devices like Surface tablets that run Windows 10 ? Can a LC app 
compiled for windows run on
these devices ?
Thanks in advance.

___
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: SQL Show Status

2020-10-20 Thread Bob Sneidar via use-livecode
I’m wondering what status you are trying to retrieve. If you are wanting to see 
if the SQL database is accessible/online, using an actual query has it’s 
drawbacks. Querying an SQL database that is inaccessible will result in a 60 
second timeout during which Livecode will be unresponsive. 

What I do instead is I first execute a telnet command using shell(). This will 
tell me if I can get to the SQL server and if it’s listening. The next thing 
you can do is execute a simple query SHOW STATUS will work as well as anything 
else. You can also execute something like select 1+1 as sum. You don’t even 
need to know a table or column. 

Bob S


> On Oct 19, 2020, at 10:53 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> You have to use
> 
> revDataFromQuery()
> 
> because that will execute the SQL statement and will return any data that is 
> coming from the DB Server.
> 
> Regards,
> Matthias
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 19.10.2020 um 19:41 schrieb Sean Cole (Pi) via use-livecode 
>> :
>> 
>> Hi Ralph,
>> 
>> What do I do to see the data in the two columns? My brain is hurting too
>> much to figure it out.
>> 
>> Thanks
>> Sean
>> 
>> On Mon, 19 Oct 2020 at 18:26, Ralph DiMola via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Sean,
>>> 
>>> revQueryDatabase(tConnId, “SHOW STATUS”) only returns an integer
>>> 
>>> That integer is a record set.
>>> In my case it returned 536 rows.
>>> Each row has two columns:
>>> Variable_name
>>> Value
>>> 
>>> 
>>> Let me tell you Mr. Johnson... Some very interesting stuff in there.
>>> 
>>> Ralph DiMola
>>> IT Director
>>> Evergreen Information Services
>>> rdim...@evergreeninfo.net
>>> 
>>> 
>>> -Original Message-
>>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
>>> Behalf Of Sean Cole (Pi) via use-livecode
>>> Sent: Monday, October 19, 2020 12:50 PM
>>> To: How to use LiveCode
>>> Cc: Sean Cole (Pi)
>>> Subject: SQL Show Status
>>> 
>>> Hi
>>> 
>>> As everyone likes to hijack threads here, I’ve started another to make
>>> sure it gets seen.
>>> 
>>> 
>>> revQueryDatabase(tConnId, “SHOW STATUS”) only returns an integer
>>> 
>>> Same for revdb_execute which returns 0
>>> 
>>> Any clues on how to actually get the status back?
>>> 
>>> Still trying to work out why these certificates are not working.
>>> --
>>> Sean Cole
>>> *Pi Digital Productions Ltd*
>>> www.pidigital.co.uk
>>> +44(1634)402193
>>> +44(7702)116447
>>> 'Don't try to think outside the box. Just remember the truth: There is no
>>> box!'
>>> 'For then you realise it is not the box you are trying to look outside of,
>>> but it is yourself!'
>>> 

___
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: Textsize of label of copied btn changes

2020-10-19 Thread Bob Sneidar via use-livecode
One of those gotchas that you learn once and never forget. It's really handy 
when you want to change the look and feel of an entire stack, or each card in a 
stack. It REALLY is handy when creating cross platform apps and you want to use 
one font for both Windows and Mac without having to change the font and size 
for every object. 

Yes, Italic (and also a shade of gray) indicates it is inheriting the 
particular setting from somewhere else. Setting the property to empty (not 
default as might seem intuitive) is how you revert to inheritance. 

Bob S


> On Oct 19, 2020, at 09:17 , ELS Prothero via use-livecode 
>  wrote:
> 
> Richard,
> Yes, if my memory doesn’t fail me, it was in italic. Hmmm, I guess I was 
> supposed to know that meant it wasn’t set and the value shown was a default?
> 
> Best,
> Bill
> 
> William Prothero
> http://es.earthednet.org

___
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: Anyone archived the information from http://andregarzia.com/async.irev

2020-10-13 Thread Bob Sneidar via use-livecode
Whew! That would have been a substantial loss. I remember when this was the hot 
topic of the day. Nice work Andre.

Bob S


On Oct 12, 2020, at 2:30 PM, matthias rebbe via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hi Andre,
thanks for the offer, but i am sure i found now the complete information.
There was also an article written by you in the RevUp newsletter on the 12th of 
August 2010.

Here's the link, if anyone else is interested:
http://newsletters.livecode.com/august/issue98/newsletter2.php

Regards,

-
Matthias Rebbe
Life Is Too Short For Boring Code

___
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


  1   2   3   4   5   6   7   8   9   10   >